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/Mochineko/RelentStateMachine/FiniteStateMachine.cs",
"retrieved_chunk": " private const float DefaultSemaphoreTimeoutSeconds = 30f;\n public static async UniTask<FiniteStateMachine<TEvent, TContext>> CreateAsync(\n ITransitionMap<TEvent, TCont... | #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... |
var instance = new StackStateMachine<TContext>(
stateStore,
context,
semaphoreTimeout);
await instance.stack.Peek()
.EnterAsync(context, cancellationToken);
return instance;
}
private StackStateMachin... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/RelentStateMachine/StackStateMachine.cs",
"groundtruth_start_lineno": 28,
"repository": "mochi-neko-RelentStateMachine-64762eb",
"right_context_start_lineno": 33,
"task_id": "project_cc_csharp/997"
} | {
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/FiniteStateMachine.cs",
"retrieved_chunk": " private const float DefaultSemaphoreTimeoutSeconds = 30f;\n public static async UniTask<FiniteStateMachine<TEvent, TContext>> CreateAsync(\n ITransitionMap<TEvent, TCont... | IStateStore<TContext> stateStore,
TContext context,
CancellationToken cancellationToken,
TimeSpan? semaphoreTimeout = null)
{ |
{
"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;
... |
//if (Coin_ReflectRevolver.shootingCoin == lastExplosiveCoin)
// return true;
__state = new StateInfo();
bool causeExplosion = false;
if (__instance.dead)
return true;
if ((Coin_ReflectRevolver.coinIsShooting && Coin_ReflectR... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/OrbitalStrike.cs",
"groundtruth_start_lineno": 488,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 490,
"task_id": "project_cc_csharp/921"
} | {
"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... | EnemyIdentifier __instance, out StateInfo __state, Vector3 __2, ref float __3)
{ |
{
"list": [
{
"filename": "Samples/UniFlux.Sample.Experimental/UniFlux_Exp_S_1_B.cs",
"retrieved_chunk": "{\n public class UniFlux_Exp_S_1_B : MonoFlux\n {\n [SerializeField] KeyFluxBase k_doSample;\n [SerializeField] KeyFlux k_onSample;\n protected override void OnFlux(in b... | /*
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, ... |
protected override KeyFlux KeyT => this;
}
} | {
"context_start_lineno": 0,
"file": "Runtime/Experimental/KeyFlux.cs",
"groundtruth_start_lineno": 30,
"repository": "xavierarpa-UniFlux-a2d46de",
"right_context_start_lineno": 32,
"task_id": "project_cc_csharp/968"
} | {
"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 ... | KeyFlux<KeyFlux>
{ |
{
"list": [
{
"filename": "IwaraDownloader/DownloadTask.cs",
"retrieved_chunk": " public VideoTask Video { get; set; }\n public double Progress { get; set; }\n public DownloadOptions Options { get; set; }\n public DownloadTask(VideoTask video)\n {\n Video ... | using IwaraDownloader;
using System.Net;
using System.Net.Http.Headers;
using System.Reflection;
using System.Text.Json;
using System.Text.Json.Serialization;
using static IwaraDownloader.Config;
namespace Dawnlc.Module
{
public class Utils
{
public static class Env
{
private static... | get; set; }
public AuthenticationException(AuthenticationType type, string message) : base(message)
{
AuthenticationType = type;
}
}
public static void Log(string? value)
{
Console.WriteLine($"[{DateTime.Now}] I {value}");
... | {
"context_start_lineno": 0,
"file": "IwaraDownloader/Utils.cs",
"groundtruth_start_lineno": 42,
"repository": "dawn-lc-IwaraDownloader-9a8b7ca",
"right_context_start_lineno": 43,
"task_id": "project_cc_csharp/1078"
} | {
"list": [
{
"filename": "IwaraDownloader/DownloadTask.cs",
"retrieved_chunk": " Cookies.Add(item);\n }\n Options.Cookies = Cookies;\n if (Video.DownloadProxy != null)\n {\n Options.Proxy = new (new Uri(Video.DownloadProxy));\n... | AuthenticationType AuthenticationType { |
{
"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 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": 146,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 148,
"task_id": "project_cc_csharp/989"
} | {
"list": [
{
"filename": "OfficialAccount/OAuthAPI.cs",
"retrieved_chunk": " if (AccessToken.ExpiresIn <= 60)\n {\n return RefreshAccessToken(appID, AccessToken.RefreshToken);\n }\n return AccessToken;\n }\n ... | UserPhoneData GetUserPhone(string code)
{ |
{
"list": [
{
"filename": "src/apphost-extract/apphost-extract/AppHostFileHeader.cs",
"retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace apphost_extract\n{\n public class AppHostFi... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection.PortableExecutable;
using System.Text;
using System.Threading.Tasks;
namespace apphost_extract
{
public class AppHostFile
{
private FileStream FileStream;
public | get; set; }
private ApphostVersion Version { get; set; }
private const int VERSION_OFFSET_NET3 = 0x1A3E8;
private const int HEADER_OFFSET_PTR_NET5 = 0x8E508;
private const int HEADER_OFFSET_PTR_NET3 = 0x27600;
public AppHostFile(FileStream fileStream)
{
... | {
"context_start_lineno": 0,
"file": "src/apphost-extract/apphost-extract/AppHostFile.cs",
"groundtruth_start_lineno": 14,
"repository": "VollRagm-apphost-extract-739a585",
"right_context_start_lineno": 15,
"task_id": "project_cc_csharp/1039"
} | {
"list": [
{
"filename": "src/apphost-extract/apphost-extract/Program.cs",
"retrieved_chunk": " {\n static void Main(string[] args)\n {\n Log.Info(\"apphost-extract by VollRagm\\n\", ConsoleColor.Yellow);\n var path = GetPath(args);\n var path2 = \"te... | AppHostFileHeader Header { |
{
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/Configuration/IDataTableColumnsToSearch.cs",
"retrieved_chunk": " /// <returns></returns>\n /// <exception cref=\"ArgumentNullException\"/>\n IDataTableExtractorWorksheetConfiguration CustomColumnHeaderMatch(Func<string, b... | using JdeJabali.JXLDataTableExtractor.Configuration;
using JdeJabali.JXLDataTableExtractor.DataExtraction;
using JdeJabali.JXLDataTableExtractor.Exceptions;
using JdeJabali.JXLDataTableExtractor.JXLExtractedData;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
namespace JdeJabali.... |
if (conditional is null)
{
throw new ArgumentNullException("Conditional cannot be null.");
}
_headerToSearch = new HeaderToSearch()
{
ConditionalToReadColumnHeader = conditional,
};
_headersToSearch.Ad... | {
"context_start_lineno": 0,
"file": "JdeJabali.JXLDataTableExtractor/DataTableExtractor.cs",
"groundtruth_start_lineno": 207,
"repository": "JdeJabali-JXLDataTableExtractor-90a12f4",
"right_context_start_lineno": 209,
"task_id": "project_cc_csharp/1052"
} | {
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/Configuration/IDataTableColumnsToSearch.cs",
"retrieved_chunk": " /// <exception cref=\"DuplicateColumnException\"/>\n IDataTableExtractorWorksheetConfiguration ColumnIndex(int columnIndex);\n /// <summary>\n /// Th... | IDataTableExtractorWorksheetConfiguration IDataTableColumnsToSearch.CustomColumnHeaderMatch(Func<string, bool> conditional)
{ |
{
"list": [
{
"filename": "Core/Win32Api/Point.cs",
"retrieved_chunk": "using System.Runtime.InteropServices;\nusing System.Text.Json.Serialization;\nnamespace SupernoteDesktopClient.Core.Win32Api\n{\n [StructLayout(LayoutKind.Sequential)]\n public struct Point\n {\n public int X { ge... | using System.Runtime.InteropServices;
using System.Text.Json.Serialization;
namespace SupernoteDesktopClient.Core.Win32Api
{
[StructLayout(LayoutKind.Sequential)]
public struct WindowPlacement
{
public int Length { get; set; }
public int Flags { get; set; }
public int ShowCmd { get;... | get; set; }
public Point MaxPosition { get; set; }
public Rect NormalPosition { get; set; }
[JsonConstructor]
public WindowPlacement(int length, int flags, int showCmd, Point minPosition, Point maxPosition, Rect normalPosition)
{
Length = length;
Flags =... | {
"context_start_lineno": 0,
"file": "Core/Win32Api/WindowPlacement.cs",
"groundtruth_start_lineno": 11,
"repository": "nelinory-SupernoteDesktopClient-e527602",
"right_context_start_lineno": 12,
"task_id": "project_cc_csharp/977"
} | {
"list": [
{
"filename": "Core/Win32Api/Rect.cs",
"retrieved_chunk": " public int Bottom { get; set; }\n [JsonConstructor]\n public Rect(int left, int top, int right, int bottom)\n {\n Left = left;\n Top = top;\n Right = right;\n ... | Point MinPosition { |
{
"list": [
{
"filename": "LootingBots/utils/BotTypes.cs",
"retrieved_chunk": "using System;\nusing EFT;\nnamespace LootingBots.Patch.Util\n{\n [Flags]\n public enum BotType\n {\n Scav = 1,\n Pmc = 2,\n Raider = 4,",
"score": 59.42916874097362
},
{
"fi... | using BepInEx;
using BepInEx.Configuration;
using Comfort.Common;
using EFT;
using LootingBots.Patch.Components;
using LootingBots.Patch.Util;
using LootingBots.Patch;
using LootingBots.Brain;
using DrakiaXYZ.BigBrain.Brains;
using System.Collections.Generic;
using HandbookClass = GClass2775;
namespace LootingBot... |
public static ConfigEntry<BotType> ContainerLootingEnabled;
public static ConfigEntry<BotType> LooseItemLootingEnabled;
public static ConfigEntry<float> TimeToWaitBetweenLoot;
public static ConfigEntry<float> DetectItemDistance;
public static ConfigEntry<float> DetectContainerD... | {
"context_start_lineno": 0,
"file": "LootingBots/LootingBots.cs",
"groundtruth_start_lineno": 31,
"repository": "Skwizzy-SPT-LootingBots-76279a3",
"right_context_start_lineno": 32,
"task_id": "project_cc_csharp/905"
} | {
"list": [
{
"filename": "LootingBots/utils/BotTypes.cs",
"retrieved_chunk": " Cultist = 8,\n Boss = 16,\n Follower = 32,\n Bloodhound = 64,\n All = Scav | Pmc | Raider | Cultist | Boss | Follower | Bloodhound\n }\n public static class BotTypeUtils\n {\n ... | BotType> CorpseLootingEnabled; |
{
"list": [
{
"filename": "Magic.IndexedDb/IndexDbManager.cs",
"retrieved_chunk": " catch (JSException jse)\n {\n RaiseEvent(trans, true, jse.Message);\n }\n return default(TResult);\n }\n public MagicQuery<T> Where<T>(Expression... | 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... |
Type type = typeof(T);
return GetStoreSchema(type, name, PrimaryKeyAuto);
}
public static StoreSchema GetStoreSchema(Type type, string name = null, bool PrimaryKeyAuto = true)
{
StoreSchema schema = new StoreSchema();
schema.PrimaryKeyAuto = Prim... | {
"context_start_lineno": 0,
"file": "Magic.IndexedDb/Helpers/SchemaHelper.cs",
"groundtruth_start_lineno": 91,
"repository": "magiccodingman-Magic.IndexedDb-a279d6d",
"right_context_start_lineno": 93,
"task_id": "project_cc_csharp/1004"
} | {
"list": [
{
"filename": "Magic.IndexedDb/IndexDbManager.cs",
"retrieved_chunk": " {\n return type.IsValueType ? Activator.CreateInstance(type) : null;\n }\n /// <summary>\n /// Adds records/objects to the specified store in bulk\n /// </summary>\n ... | StoreSchema GetStoreSchema<T>(string name = null, bool PrimaryKeyAuto = true) where T : class
{ |
{
"list": [
{
"filename": "VSIntelliSenseTweaks/Utilities/WordScorer.cs",
"retrieved_chunk": " {\n UnmanagedStack<MatchedSpan> matchedSpans;\n public WordScorer(int stackInitialCapacity)\n {\n this.matchedSpans = new UnmanagedStack<MatchedSpan>(stackInitialCapacity);... | /*
Copyright 2023 Carl Foghammar Nömtak
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ... |
CompletionFilterManager filterManager;
bool hasFilterManager;
bool includeDebugSuffix;
bool disableSoftSelection;
bool boostEnumMemberScore;
public CompletionItemManager(GeneralSettings settings)
{
this.includeDebugSuffix = settings.IncludeDebugSuf... | {
"context_start_lineno": 0,
"file": "VSIntelliSenseTweaks/CompletionItemManager.cs",
"groundtruth_start_lineno": 71,
"repository": "cfognom-VSIntelliSenseTweaks-4099741",
"right_context_start_lineno": 72,
"task_id": "project_cc_csharp/1093"
} | {
"list": [
{
"filename": "VSIntelliSenseTweaks/Utilities/WordScorer.cs",
"retrieved_chunk": " {\n int n_spans = data.n_spans;\n Debug.Assert(n_spans > 0);\n var builder = ImmutableArray.CreateBuilder<Span>(n_spans);\n builder.Count = n_spans;\n ... | WordScorer scorer = new WordScorer(256); |
{
"list": [
{
"filename": "Services/CacheService.cs",
"retrieved_chunk": "using GraphNotifications.Models;\nusing Microsoft.Extensions.Logging;\nusing Microsoft.Extensions.Options;\nusing Newtonsoft.Json;\nusing StackExchange.Redis;\nusing System;\nusing System.Text;\nusing System.Threading;\nnamespac... | 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... |
private readonly ICertificateService _certificateService;
private readonly ICacheService _cacheService;
private readonly ILogger _logger;
private readonly AppSettings _settings;
private const string MicrosoftGraphChangeTrackingSpId = "0bf30f3b-4a52-48df-9a82-234910c4a086";
... | {
"context_start_lineno": 0,
"file": "Functions/GraphNotificationsHub.cs",
"groundtruth_start_lineno": 20,
"repository": "microsoft-GraphNotificationBroker-b1564aa",
"right_context_start_lineno": 21,
"task_id": "project_cc_csharp/1065"
} | {
"list": [
{
"filename": "Services/CacheService.cs",
"retrieved_chunk": " /// <summary>\n /// Implements connection to Redis\n /// </summary> \n public class CacheService : ICacheService\n {\n private readonly ILogger<CacheService> _logger;\n private readonly IRedisFactor... | IGraphNotificationService _graphNotificationService; |
{
"list": [
{
"filename": "src/LegendaryLibrarySettingsViewModel.cs",
"retrieved_chunk": " {\n await Login();\n });\n }\n public LegendaryLibrarySettingsViewModel(LegendaryLibrary library, IPlayniteAPI api) : base(library, api)\n {\n ... | using CliWrap;
using CliWrap.EventStream;
using LegendaryLibraryNS.Enums;
using LegendaryLibraryNS.Models;
using LegendaryLibraryNS.Services;
using Playnite.Common;
using Playnite.SDK;
using Playnite.SDK.Data;
using Playnite.SDK.Events;
using Playnite.SDK.Models;
using Playnite.SDK.Plugins;
using System;
using System.C... |
if (Instance.LegendaryDownloadManager == null)
{
Instance.LegendaryDownloadManager = new LegendaryDownloadManager();
}
return Instance.LegendaryDownloadManager;
}
internal Dictionary<string, GameMetadata> GetInstalledGames()
{
... | {
"context_start_lineno": 0,
"file": "src/LegendaryLibrary.cs",
"groundtruth_start_lineno": 51,
"repository": "hawkeye116477-playnite-legendary-plugin-d7af6b2",
"right_context_start_lineno": 53,
"task_id": "project_cc_csharp/1005"
} | {
"list": [
{
"filename": "src/LegendaryLibrarySettingsViewModel.cs",
"retrieved_chunk": " try\n {\n var clientApi = new EpicAccountClient(PlayniteApi, LegendaryLauncher.TokensPath);\n await clientApi.Login();\n OnPropertyChanged(nameo... | LegendaryDownloadManager GetLegendaryDownloadManager()
{ |
{
"list": [
{
"filename": "source/NowPlaying.cs",
"retrieved_chunk": " }\n return false;\n }\n public bool GameHasEnablerQueued(string id)\n {\n return gameEnablerQueue.Where(e => e.Id == id).Count() > 0;\n }\n public async void Deque... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static NowPlaying.Models.RoboCacher;
using NowPlaying.Utils;
using System.Threading.Tasks;
using Playnite.SDK;
namespace NowPlaying.Models
{
public class GameCacheManager
{
private readonly ILogger logger;
... |
if (!cacheEntries.ContainsKey(id))
{
throw new InvalidOperationException($"Game Cache with Id={id} not found");
}
if (cachePopulateJobs.ContainsKey(id))
{
throw new InvalidOperationException($"Cache populate already in progress... | {
"context_start_lineno": 0,
"file": "source/Models/GameCacheManager.cs",
"groundtruth_start_lineno": 229,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 231,
"task_id": "project_cc_csharp/962"
} | {
"list": [
{
"filename": "source/NowPlaying.cs",
"retrieved_chunk": " var activeId = gameEnablerQueue.Dequeue().Id;\n Debug.Assert(activeId == id, $\"Unexpected game enabler Id at head of the Queue ({activeId})\");\n // . update status of queued enablers\n ... | RoboStats jobStats, int interPacketGap = 0, PartialFileResumeOpts pfrOpts = null)
{ |
{
"list": [
{
"filename": "TrayIconWindow.xaml.cs",
"retrieved_chunk": "using System;\nusing System.Windows;\nnamespace ACCWindowManager {\n\tpublic partial class TrayIconWindow : System.Windows.Window {\n\t\tpublic Action OpenRequested;\n\t\tpublic Action LaunchACCRequested;\n\t\tpublic Action ExitR... | using ProcessHelpers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
namespace ACCWindowManager {
public class ACCWindowController : INotifyPropertyChanged {
public enum ErrorCode {
NoError,
SteamNotFound,
ACCAlreadyRunning,
... |
get { return m_settings; }
set {
m_settings = value;
OnPropertyChanged(nameof(Settings));
}
}
public KeyValuePair<string, WindowProperties> SelectedWindowProperties {
get { return m_selectedWindowProperties; }
set {
m_selectedWindowProperties = value;
OnPropertyChanged(nameof(Select... | {
"context_start_lineno": 0,
"file": "ACCWindowController.cs",
"groundtruth_start_lineno": 21,
"repository": "kristofkerekes-acc-windowmanager-46578f1",
"right_context_start_lineno": 22,
"task_id": "project_cc_csharp/1127"
} | {
"list": [
{
"filename": "TrayIconWindow.xaml.cs",
"retrieved_chunk": "\t\tprivate void TrayIconDoubleClicked(object sender, System.Windows.Input.MouseButtonEventArgs e) {\n\t\t\tOpenRequested?.Invoke();\n\t\t}\n\t\tprivate void OnOpenRequested(object sender, RoutedEventArgs e) {\n\t\t\tOpenRequested... | WindowProperties>> Settings { |
{
"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 |
public abstract void Update(GameObject connected, float delta);
public virtual void Draw(SpriteBatch spriteBatch, GameObject connected)
{
if (!Visible) return;
}
}
} | {
"context_start_lineno": 0,
"file": "VeilsClaim/Classes/Objects/Constraint.cs",
"groundtruth_start_lineno": 7,
"repository": "IsCactus0-Veils-Claim-de09cef",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/1007"
} | {
"list": [
{
"filename": "VeilsClaim/Classes/Objects/Particles/Particle.cs",
"retrieved_chunk": " {\n Colour = Color.White;\n StartSize = 10f;\n EndSize = 10f;\n Size = StartSize;\n }\n public Particle(Color colour)\n : base(... | GameObject Anchor; |
{
"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... | using System.Diagnostics;
using System.Text;
using Gum.Blackboards;
using Gum.Utilities;
namespace Gum.InnerThoughts
{
[DebuggerDisplay("{DebuggerDisplay(),nq}")]
public class DialogAction
{
public readonly Fact Fact = new();
public readonly BlackboardActionKind Kind = BlackboardActionKind... |
bool? @bool = null;
int? @int = null;
string? @string = null;
string? component = null;
// Do not propagate previous values.
switch (fact.Kind)
{
case FactKind.Bool:
@bool = (bool)value;
... | {
"context_start_lineno": 0,
"file": "src/Gum/InnerThoughts/DialogAction.cs",
"groundtruth_start_lineno": 24,
"repository": "isadorasophia-gum-032cb2d",
"right_context_start_lineno": 26,
"task_id": "project_cc_csharp/1023"
} | {
"list": [
{
"filename": "src/Gum/InnerThoughts/Criterion.cs",
"retrieved_chunk": " /// </summary>\n public static Criterion Component => new(Fact.Component, CriterionKind.Is, true);\n public Criterion(Fact fact, CriterionKind kind, object @value)\n {\n bool? @b... | BlackboardActionKind kind, object value)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/V2Second.cs",
"retrieved_chunk": " if (!__instance.launched && eii != null && (eii.eid.enemyType == EnemyType.V2 || eii.eid.enemyType == EnemyType.V2Second))\n return false;\n }\n retur... | using HarmonyLib;
using UnityEngine;
namespace Ultrapain.Patches
{
class Virtue_Start_Patch
{
static void Postfix(Drone __instance, ref EnemyIdentifier ___eid)
{
VirtueFlag flag = __instance.gameObject.AddComponent<VirtueFlag>();
flag.virtue = __instance;
}
}... |
public GameObject ligtningBoltAud;
public Transform windupObj;
private EnemyIdentifier eid;
public Drone virtue;
public void Awake()
{
eid = GetComponent<EnemyIdentifier>();
ligtningBoltAud = Instantiate(Plugin.lighningBoltSFX, transform);
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Virtue.cs",
"groundtruth_start_lineno": 28,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 29,
"task_id": "project_cc_csharp/978"
} | {
"list": [
{
"filename": "Ultrapain/Patches/V2Second.cs",
"retrieved_chunk": " //readonly static FieldInfo maliciousIgnorePlayer = typeof(RevolverBeam).GetField(\"maliciousIgnorePlayer\", BindingFlags.NonPublic | BindingFlags.Instance);\n Transform shootPoint;\n public Transform ... | AudioSource lighningBoltSFX; |
{
"list": [
{
"filename": "CubicMusic/Assets/_CubicMusic/Runtime/CubesManagement/Scripts/CubesManager.cs",
"retrieved_chunk": " /// </summary>\n [SerializeField]\n public GameObject CubePrefab;\n /// <summary>\n /// The assemblies that the generated scripts will refe... | /*
* Copyright (C) Antony Vitillo (aka Skarredghost), Perpetual eMotion 2023.
* Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*/
using OpenAI.Audio;
using RoslynCSharp;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Thr... |
//create the runtime domain where the scripts will be loaded and add the references
m_scriptsDomain = ScriptDomain.CreateDomain(nameof(vrroom.Dynaimic));
foreach (var reference in referenceAssets)
{
m_scriptsDomain.RoslynCompilerService.ReferenceAssembli... | {
"context_start_lineno": 0,
"file": "CubicMusic/Assets/_DynaimicLogic/Runtime/GenerativeLogic/GenerativeLogicManager.cs",
"groundtruth_start_lineno": 42,
"repository": "Perpetual-eMotion-DynaimicApps-46c94e0",
"right_context_start_lineno": 44,
"task_id": "project_cc_csharp/1008"
} | {
"list": [
{
"filename": "CubicMusic/Assets/_CubicMusic/Runtime/CubesManagement/Scripts/CubesManager.cs",
"retrieved_chunk": " /// </summary>\n private AiQueryPerformer m_aiQueryPerformer;\n /// <summary>\n /// The element that creates the logic from the AI prompts\n ... | AiQueryPerformer aiQueryPerformer, AiGenerationParameters aiParameters, AssemblyReferenceAsset[] referenceAssets)
{ |
{
"list": [
{
"filename": "src/dotnetdev-badge/dotnetdev-badge.web/Model/User.cs",
"retrieved_chunk": " public string Username { get; set; }\n [JsonProperty(\"name\")]\n public string Name { get; set; }\n [JsonProperty(\"avatar_template\")]\n public string AvatarTemp... | using Newtonsoft.Json;
namespace DotNetDevBadgeWeb.Model
{
public class UserSummary
{
[JsonProperty("likes_given")]
public int LikesGiven { get; set; }
[JsonProperty("likes_received")]
public int LikesReceived { get; set; }
[JsonProperty("topics_entered")]
publ... | get; set; }
[JsonProperty("post_count")]
public int PostCount { get; set; }
[JsonProperty("time_read")]
public int TimeRead { get; set; }
[JsonProperty("recent_time_read")]
public int RecentTimeRead { get; set; }
[JsonProperty("bookmark_count")]
publi... | {
"context_start_lineno": 0,
"file": "src/dotnetdev-badge/dotnetdev-badge.web/Model/UserSummary.cs",
"groundtruth_start_lineno": 21,
"repository": "chanos-dev-dotnetdev-badge-5740a40",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/1085"
} | {
"list": [
{
"filename": "src/dotnetdev-badge/dotnetdev-badge.web/Model/User.cs",
"retrieved_chunk": " public bool? Admin { get; set; }\n [JsonProperty(\"moderator\")]\n public bool? Moderator { get; set; }\n public ELevel Level => TrustLevel switch\n {\n ... | JsonProperty("topic_count")]
public int TopicCount { |
{
"list": [
{
"filename": "EF012.CodeFirstMigration/Migrations/20230521143459_AddScheduleEnumAsValueConverter.Designer.cs",
"retrieved_chunk": "// <auto-generated />\nusing System;\nusing EF012.CodeFirstMigration.Data;\nusing Microsoft.EntityFrameworkCore;\nusing Microsoft.EntityFrameworkCore.Infrast... | // <auto-generated />
using System;
using EF012.CodeFirstMigration.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#n... |
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "7.0.5")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlSer... | {
"context_start_lineno": 0,
"file": "EF012.CodeFirstMigration/Migrations/20230521142708_RenameOwnedEntityColumn.Designer.cs",
"groundtruth_start_lineno": 13,
"repository": "metigator-EF012-054d65d",
"right_context_start_lineno": 17,
"task_id": "project_cc_csharp/1067"
} | {
"list": [
{
"filename": "EF012.CodeFirstMigration/Migrations/20230521143459_AddScheduleEnumAsValueConverter.Designer.cs",
"retrieved_chunk": "{\n [DbContext(typeof(AppDbContext))]\n [Migration(\"20230521143459_AddScheduleEnumAsValueConverter\")]\n partial class AddScheduleEnumAsValueConvert... | AppDbContext))]
[Migration("20230521142708_RenameOwnedEntityColumn")]
partial class RenameOwnedEntityColumn
{ |
{
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/DataExtraction/DataReader.cs",
"retrieved_chunk": " {\n public List<string> Workbooks { get; set; } = new List<string>();\n public int SearchLimitRow { get; set; }\n public int SearchLimitColumn { get; set; }\n p... | using JdeJabali.JXLDataTableExtractor.Configuration;
using JdeJabali.JXLDataTableExtractor.DataExtraction;
using JdeJabali.JXLDataTableExtractor.Exceptions;
using JdeJabali.JXLDataTableExtractor.JXLExtractedData;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
namespace JdeJabali.... |
private HeaderToSearch _headerToSearch;
private DataReader _reader;
private DataTableExtractor()
{
}
public static IDataTableExtractorConfiguration Configure()
{
return new DataTableExtractor();
}
public IDataTableExtractorWorkbook... | {
"context_start_lineno": 0,
"file": "JdeJabali.JXLDataTableExtractor/DataTableExtractor.cs",
"groundtruth_start_lineno": 25,
"repository": "JdeJabali-JXLDataTableExtractor-90a12f4",
"right_context_start_lineno": 26,
"task_id": "project_cc_csharp/1091"
} | {
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/DataExtraction/DataReader.cs",
"retrieved_chunk": " {\n ExcelWorksheet sheet = DataReaderHelpers.GetWorksheetByName(worksheetName, workbook, excel);\n worksheetData = ExtractRows(sheet);\n ... | HeaderToSearch> _headersToSearch = new List<HeaderToSearch>(); |
{
"list": [
{
"filename": "Applets/Applets.cs",
"retrieved_chunk": " /// </summary>\n /// <param name=\"data\">下发数据</param>\n /// <returns></returns>\n public BaseResult UniformSend(UniformSendData data)\n {\n var config = this.Config.GetConfig(WeChatType.... | using FayElf.Plugins.WeChat.Applets;
using FayElf.Plugins.WeChat.Applets.Model;
using FayElf.Plugins.WeChat.OfficialAccount;
using System;
using System.Collections.Generic;
using System.Text;
using XiaoFeng;
using XiaoFeng.Http;
/****************************************************************
* Copyright © (2021) ww... |
/// <summary>
/// 获取全局唯一后台接口调用凭据
/// </summary>
/// <param name="weChatType">微信类型</param>
/// <returns></returns>
public static AccessTokenData GetAccessToken(WeChatType weChatType = WeChatType.OfficeAccount) => GetAccessToken(new Config().GetConfig(weChatType));
... | {
"context_start_lineno": 0,
"file": "Common.cs",
"groundtruth_start_lineno": 73,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 74,
"task_id": "project_cc_csharp/1000"
} | {
"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 ... | AccessTokenData GetAccessToken(WeChatConfig config) => GetAccessToken(config.AppID, config.AppSecret); |
{
"list": [
{
"filename": "CalloutInterfaceAPI/Records/PedRecord.cs",
"retrieved_chunk": "namespace CalloutInterfaceAPI.Records\n{\n using System;\n using LSPD_First_Response.Engine.Scripting.Entities;\n /// <summary>\n /// Represents a ped record.\n /// </summary>\n public class Pe... | namespace CalloutInterfaceAPI.Records
{
using System;
using System.Collections.Generic;
using LSPD_First_Response.Engine.Scripting.Entities;
/// <summary>
/// Represents a database of ped records.
/// </summary>
internal class |
private int invalidLicenseCount = 0;
private int wantedCount = 0;
/// <summary>
/// Gets or sets the max invalid license rate.
/// </summary>
internal float MaxInvalidLicenseRate { get; set; } = 0.05f;
/// <summary>
/// Gets or sets the max wanted rate.... | {
"context_start_lineno": 0,
"file": "CalloutInterfaceAPI/Records/PedDatabase.cs",
"groundtruth_start_lineno": 9,
"repository": "Immersive-Plugins-Team-CalloutInterfaceAPI-2c5a303",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/1132"
} | {
"list": [
{
"filename": "CalloutInterfaceAPI/Records/VehicleDatabase.cs",
"retrieved_chunk": " private int invalidDocumentCount = 0;\n /// <summary>\n /// Gets or sets the maximum invalid document rate.\n /// </summary>\n internal float MaxInvalidDocumentRate { get... | PedDatabase : RecordDatabase<Rage.Ped, PedRecord>
{ |
{
"list": [
{
"filename": "src/SKernel/Factory/NativeSkillsImporter.cs",
"retrieved_chunk": "using Microsoft.SemanticKernel;\nusing SKernel.Factory.Config;\nusing System;\nusing System.Collections.Generic;\nnamespace SKernel.Factory\n{\n public class NativeSkillsImporter : ISkillsImporter\n {\n... | using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Memory;
using SKernel.Factory.Config;
using System.Collections.Generic;
using System.Linq;
namespace SKernel.Factory
{
public class SemanticKernelFactory
{
private readonly NativeSkillsImporter _native;
... |
private readonly SKConfig _config;
private readonly IMemoryStore _memoryStore;
private readonly ILogger _logger;
public SemanticKernelFactory(NativeSkillsImporter native, SemanticSkillsImporter semantic, SKConfig config,
IMemoryStore memoryStore, ILoggerFactory logger)
... | {
"context_start_lineno": 0,
"file": "src/SKernel/Factory/SemanticKernelFactory.cs",
"groundtruth_start_lineno": 12,
"repository": "geffzhang-ai-search-aspnet-qdrant-chatgpt-378d2be",
"right_context_start_lineno": 13,
"task_id": "project_cc_csharp/1108"
} | {
"list": [
{
"filename": "src/SKernel/Factory/NativeSkillsImporter.cs",
"retrieved_chunk": " public NativeSkillsImporter(SkillOptions skillOptions, IServiceProvider provider)\n {\n _skills = skillOptions.NativeSkillTypes;\n _provider = provider;\n }\n ... | SemanticSkillsImporter _semantic; |
{
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/Anki/Anki.cs",
"retrieved_chunk": " /// Class for connecting to the anki API. \n /// </summary>\n public partial class AnkiAPI : Component {\n public string URL { get; set; } \n public string ankiDeck{ get; set; }\n publi... | #nullable disable
using System;
using System.Text;
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Logging;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Game.Beatmaps;
us... |
public OsuSpriteText leftWordText;
public OsuSpriteText rightWordText;
[Resolved]
protected IBeatmap beatmap { get; set; }
private Random leftRightOrderRandom;
/// <summary>
/// Function to update the text of the two translation words (<see cref="leftWordText"... | {
"context_start_lineno": 0,
"file": "osu.Game.Rulesets.Gengo/UI/Translation/TranslationContainer.cs",
"groundtruth_start_lineno": 23,
"repository": "0xdeadbeer-gengo-dd4f78d",
"right_context_start_lineno": 24,
"task_id": "project_cc_csharp/1068"
} | {
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/Anki/Anki.cs",
"retrieved_chunk": " protected GengoRulesetConfigManager config { get; set; }\n [Resolved]\n protected IBeatmap beatmap { get; set; }\n [Resolved] \n protected IDialogOverlay dialogOverlay { get; set; ... | Card> fakesLine = new List<Card>(); |
{
"list": [
{
"filename": "Ultrapain/Patches/SisyphusInstructionist.cs",
"retrieved_chunk": " esi.enraged = true;\n }\n GameObject effect = GameObject.Instantiate(Plugin.enrageEffect, __instance.transform);\n effect.transform.localScale = Vector3.one * 0... | using BepInEx;
using UnityEngine;
using UnityEngine.SceneManagement;
using System;
using HarmonyLib;
using System.IO;
using Ultrapain.Patches;
using System.Linq;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System.Reflection;
using Steamworks;
using Unity.Audio;
using System.Text;
using System.Collection... |
public static GameObject virtueInsignia;
public static GameObject rocket;
public static GameObject revolverBullet;
public static GameObject maliciousCannonBeam;
public static GameObject lightningBoltSFX;
public static GameObject revolverBeam;
public static GameOb... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 75,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 76,
"task_id": "project_cc_csharp/995"
} | {
"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 sandExplosion; |
{
"list": [
{
"filename": "WAGIapp/AI/AICommands/SearchWebCommand.cs",
"retrieved_chunk": " i = 0;\n while (output.Split(\" \").Length < 800 && i < headers.Count)\n {\n output += (i + 1) + \". \" + headers[i] + \"\\n\";\n output += \"[\" +... | using WAGIapp.AI.AICommands;
namespace WAGIapp.AI
{
internal class Commands
{
private static Dictionary<string, Command> commands;
static Commands()
{
commands = new Dictionary<string, Command>();
Command c;
c = new NoActionCommand();
co... |
string[] args = commandText.Split("|");
for (int i = 0; i < args.Length; i++)
{
args[i] = args[i].Trim();
}
args[0] = args[0].ToLower();
caller.Actions.AddAction("Running cmd: " + args[0], LogAction.CommandIcon);
if... | {
"context_start_lineno": 0,
"file": "WAGIapp/AI/Commands.cs",
"groundtruth_start_lineno": 45,
"repository": "Woltvint-WAGI-d808927",
"right_context_start_lineno": 47,
"task_id": "project_cc_csharp/1115"
} | {
"list": [
{
"filename": "WAGIapp/AI/Memory.cs",
"retrieved_chunk": " foreach (string tag in tags)\n {\n if (Tags.Contains(tag))\n return tag;\n }\n return \"\";\n }\n public override string ToString()\n ... | Master caller, string commandText)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/LipSync/LipSample.cs",
"retrieved_chunk": "#nullable enable\nusing System;\nusing System.Runtime.InteropServices;\nnamespace Mochineko.FacialExpressions.LipSync\n{\n /// <summary>\n /// A sample of lip morphing.\n /// </summary>\n ... | #nullable enable
using System;
using System.Runtime.InteropServices;
namespace Mochineko.FacialExpressions.LipSync
{
/// <summary>
/// A frame of lip animation.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public readonly struct LipAnimationFrame : IEquatable<LipAnimationFrame>
{
... |
/// <summary>
/// Duration of this frame in seconds.
/// </summary>
public readonly float durationSeconds;
/// <summary>
/// Creates a new instance of <see cref="LipAnimationFrame"/>.
/// </summary>
/// <param name="sample">Sample of lip morphing.</para... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/FacialExpressions/LipSync/LipAnimationFrame.cs",
"groundtruth_start_lineno": 15,
"repository": "mochi-neko-facial-expressions-unity-ab0d020",
"right_context_start_lineno": 16,
"task_id": "project_cc_csharp/1009"
} | {
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/LipSync/LipSample.cs",
"retrieved_chunk": " {\n /// <summary>\n /// Viseme to morph.\n /// </summary>\n public readonly Viseme viseme;\n /// <summary>\n /// Weight of morphing.\n /// </sum... | LipSample sample; |
{
"list": [
{
"filename": "src/client.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;\nusing ProtoIP;\nusing ProtoIP.Common;\nnamespace ProtoIP\n{\n public class ProtoClient\n {",
... | // Copyright (c) 2023, João Matos
// Check the end of the file for extended copyright notice.
using System;
namespace ProtoIP
{
class Node
{
protected ProtoServer _server;
protected |
// Constructors
public Node()
{
}
}
}
// MIT License
//
// Copyright (c) 2023 João Matos
//
// 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 Sof... | {
"context_start_lineno": 0,
"file": "src/p2p.cs",
"groundtruth_start_lineno": 10,
"repository": "JoaoAJMatos-ProtoIP-84f8797",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/1087"
} | {
"list": [
{
"filename": "src/client.cs",
"retrieved_chunk": " protected Common.Network.Connection _serverConnection;\n protected ProtoStream _protoStream;\n public ProtoClient() {}\n // Connect to the remote host and create a new ProtoStream object.\n ... | ProtoClient _client; |
{
"list": [
{
"filename": "DragonFruit.Kaplan/ViewModels/RemovalProgressViewModel.cs",
"retrieved_chunk": "{\n public class RemovalProgressViewModel : ReactiveObject, IHandlesClosingEvent, IExecutesTaskPostLoad, ICanCloseWindow\n {\n private readonly ILogger _logger = App.GetLogger<Remova... | // 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.... |
private string _searchQuery = string.Empty;
private PackageInstallationMode _packageMode = PackageInstallationMode.User;
private IReadOnlyCollection<PackageViewModel> _discoveredPackages = Array.Empty<PackageViewModel>();
public MainWindowViewModel()
{
_packageMana... | {
"context_start_lineno": 0,
"file": "DragonFruit.Kaplan/ViewModels/MainWindowViewModel.cs",
"groundtruth_start_lineno": 30,
"repository": "dragonfruitnetwork-kaplan-13bdb39",
"right_context_start_lineno": 31,
"task_id": "project_cc_csharp/1133"
} | {
"list": [
{
"filename": "DragonFruit.Kaplan/ViewModels/RemovalProgressViewModel.cs",
"retrieved_chunk": " private PackageRemovalTask _current;\n public RemovalProgressViewModel(IEnumerable<Package> packages, PackageInstallationMode mode)\n {\n _mode = mode;\n ... | PackageViewModel>> _displayedPackages; |
{
"list": [
{
"filename": "src/RosettaStone.Core/Services/VendorMetadataService.cs",
"retrieved_chunk": " _ORM.GetColumnName<VendorMetadata>(nameof(VendorMetadata.IsAssigned)),\n OperatorEnum.Equals,\n 1);\n return _ORM.Exists<VendorMetadata>(exp... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExpressionTree;
using FindClosestString;
using SyslogLogging;
using Watson.ORM;
using static Mysqlx.Expect.Open.Types.Condition.Types;
namespace RosettaStone.Core.Services
{
public class CodecM... |
if (expr == null) throw new ArgumentNullException(nameof(expr));
if (startIndex < 0) throw new ArgumentOutOfRangeException(nameof(startIndex));
if (maxResults > 1000) throw new ArgumentOutOfRangeException(nameof(maxResults));
return _ORM.SelectMany<CodecMetadata>(startI... | {
"context_start_lineno": 0,
"file": "src/RosettaStone.Core/Services/CodecMetadataService.cs",
"groundtruth_start_lineno": 148,
"repository": "jchristn-RosettaStone-898982c",
"right_context_start_lineno": 150,
"task_id": "project_cc_csharp/1152"
} | {
"list": [
{
"filename": "src/RosettaStone.Core/Services/VendorMetadataService.cs",
"retrieved_chunk": " }\n public bool ExistsByGuid(string guid)\n {\n if (String.IsNullOrEmpty(guid)) throw new ArgumentNullException(nameof(guid));\n guid = guid.ToUpper();\n... | CodecMetadata> Search(Expr expr, int startIndex, int maxResults)
{ |
{
"list": [
{
"filename": "UserManagement.Api/Controllers/RefreshTokensController.cs",
"retrieved_chunk": " foreach (var user in users)\n {\n user.RefreshToken = null;\n await _userManager.UpdateAsync(user);\n }\n return Ok(\"Su... | using Microsoft.AspNetCore.Identity;
using Microsoft.IdentityModel.Tokens;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Security.Cryptography;
using System.Text;
using UserManagement.Data.Models;
namespace UserManagement.Api.Services
{
public class AuthService : IAuthService
... |
TokenViewModel _TokenViewModel = new();
var principal = GetPrincipalFromExpiredToken(model.AccessToken);
string username = principal.Identity.Name;
var user = await userManager.FindByNameAsync(username);
if (user == null || user.RefreshToken != model.Refresh... | {
"context_start_lineno": 0,
"file": "UserManagement.Api/Services/AuthService.cs",
"groundtruth_start_lineno": 91,
"repository": "shahedbd-API.RefreshTokens-c4d606e",
"right_context_start_lineno": 93,
"task_id": "project_cc_csharp/1139"
} | {
"list": [
{
"filename": "UserManagement.Api/Controllers/RefreshTokensController.cs",
"retrieved_chunk": " foreach (var user in users)\n {\n user.RefreshToken = null;\n await _userManager.UpdateAsync(user);\n }\n return Ok(\"Su... | TokenViewModel> GetRefreshToken(GetRefreshTokenViewModel model)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/Parry.cs",
"retrieved_chunk": " GameObject.Destroy(flag.temporaryBigExplosion);\n flag.temporaryBigExplosion = null;\n }\n }\n }\n }\n class Grenade_Collision_Patch\n {\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 (___hitColliders.Contains(__0)/* || __instance.transform.parent.GetComponent<OrbitalStrikeFlag>() == null*/)
return true;
Coin coin = __0.GetComponent<Coin>();
if (coin != null)
{
OrbitalStrikeFlag flag = coin.GetComponent<OrbitalStrik... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/OrbitalStrike.cs",
"groundtruth_start_lineno": 53,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 55,
"task_id": "project_cc_csharp/1013"
} | {
"list": [
{
"filename": "Ultrapain/Patches/SomethingWicked.cs",
"retrieved_chunk": " {\n GameObject goreZone = new GameObject();\n goreZone.AddComponent<GoreZone>();\n Vector3 spawnPos = new Vector3(86.7637f, -39.9667f, 635.7572f);\n ... | Collider __0, List<Collider> ___hitColliders)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/YouTubeLiveStreamingClient/Responses/Localized.cs",
"retrieved_chunk": "#nullable enable\nusing Newtonsoft.Json;\nnamespace Mochineko.YouTubeLiveStreamingClient.Responses\n{\n [JsonObject]\n public sealed class Localized\n {\n [JsonProperty(\... | #nullable enable
using System;
using Newtonsoft.Json;
namespace Mochineko.YouTubeLiveStreamingClient.Responses
{
[JsonObject]
public sealed class VideoSnippet
{
[JsonProperty("publishedAt"), JsonRequired]
public DateTime PublishedAt { get; private set; }
[JsonProperty("channelId"),... | get; private set; } = new();
[JsonProperty("channelTitle"), JsonRequired]
public string ChannelTitle { get; private set; } = string.Empty;
[JsonProperty("tags")]
public string[]? Tags { get; private set; }
[JsonProperty("categoryId"), JsonRequired]
public string Categ... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/YouTubeLiveStreamingClient/Responses/VideoSnippet.cs",
"groundtruth_start_lineno": 22,
"repository": "mochi-neko-youtube-live-streaming-client-unity-b712d77",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/1074"
} | {
"list": [
{
"filename": "Assets/Mochineko/YouTubeLiveStreamingClient/Responses/LiveChatMessageSnippet.cs",
"retrieved_chunk": " public string DisplayMessage { get; private set; } = string.Empty;\n [JsonProperty(\"textMessageDetails\")]\n public TextMessageDetails? TextMessageDet... | VideoThumbnails Thumbnails { |
{
"list": [
{
"filename": "Benchmark/Nest/Benchmark_Nest_UniFlux.cs",
"retrieved_chunk": " _mark_store.Begin();\n for (int i = 0; i < iteration; i++) \"1\".Dispatch();\n _mark_store.End();\n }\n }\n private void OnGUI()\n {\n... | /*
Copyright (c) 2023 Xavier Arpa López Thomas Peter ('Kingdox')
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, ... | }
[Flux(false)] private void Example_Dispatch_Boolean_2(){}
[Flux(false)] private void Example_Dispatch_Boolean_3(){}
[Flux(false)] private void Example_Dispatch_Boolean_4(){}
[Flux(false)] private void Example_Dispatch_Boolean_5(){}
[Flux(false)] private void Example_Dispatch_Bo... | {
"context_start_lineno": 0,
"file": "Benchmark/General/Benchmark_UniFlux.cs",
"groundtruth_start_lineno": 240,
"repository": "xavierarpa-UniFlux-a2d46de",
"right_context_start_lineno": 241,
"task_id": "project_cc_csharp/1031"
} | {
"list": [
{
"filename": "Benchmark/Nest/Benchmark_Nest_UniFlux.cs",
"retrieved_chunk": " rect_area = new Rect(0, _style.Value.lineHeight, Screen.width, Screen.height / 2);\n GUI.Label(rect_area, _mark_fluxAttribute.Visual, _style.Value);\n }\n if (... | Flux(__m_dispatch)] private void Example_Dispatch_Byte(){ |
{
"list": [
{
"filename": "HikariEditor/Preview/PDFPageInfo.cs",
"retrieved_chunk": "namespace HikariEditor\n{\n internal class PDFPageInfo\n {\n public MainWindow? mainWindow;\n public FileItem? fileItem;\n }\n}",
"score": 22.379636986453992
},
{
"filename"... | using System.Diagnostics;
namespace HikariEditor
{
internal class LaTeX
{
async public static Task<bool> Compile(MainWindow mainWindow, |
bool tex_compile_error = false;
try
{
using (Process process = new())
{
process.StartInfo.UseShellExecute = false;
process.StartInfo.FileName = "C:\\texlive\\2022\\bin\\win32\\ptex2pdf.exe";
... | {
"context_start_lineno": 0,
"file": "HikariEditor/LaTeX.cs",
"groundtruth_start_lineno": 6,
"repository": "Himeyama-HikariEditor-c37f978",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/1131"
} | {
"list": [
{
"filename": "HikariEditor/Preview/PDFPageInfo.cs",
"retrieved_chunk": "namespace HikariEditor\n{\n internal class PDFPageInfo\n {\n public MainWindow? mainWindow;\n public FileItem? fileItem;\n }\n}",
"score": 16.552873351163008
},
{
"filename"... | FileItem fileItem, Editor editor)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/LipSync/ISequentialLipAnimator.cs",
"retrieved_chunk": " {\n /// <summary>\n /// Animates lip sequentially by a collection of <see cref=\"LipAnimationFrame\"/>.\n /// </summary>\n /// <param name=\"frames\">Ta... | #nullable enable
using System.Collections.Generic;
using Mochineko.FacialExpressions.LipSync;
using Mochineko.VOICEVOX_API.QueryCreation;
namespace Mochineko.FacialExpressions.Extensions.VOICEVOX
{
/// <summary>
/// Provides converting from <see cref="AudioQuery"/> to collection of <see cref="LipAnimationFrame... |
var frames = new List<LipAnimationFrame>();
frames.Add(new LipAnimationFrame(
new LipSample(Viseme.sil, weight: 0f),
audioQuery.PrePhonemeLength / audioQuery.SpeedScale));
foreach (var phase in audioQuery.AccentPhases)
{
... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/FacialExpressions.Extensions/VOICEVOX/AudioQueryConverter.cs",
"groundtruth_start_lineno": 41,
"repository": "mochi-neko-facial-expressions-unity-ab0d020",
"right_context_start_lineno": 44,
"task_id": "project_cc_csharp/1037"
} | {
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/LipSync/AnimatorLipMorpher.cs",
"retrieved_chunk": " }\n else\n {\n return 0f;\n }\n }\n public void Reset()\n {\n foreach (var pair in idMap)\n ... | LipAnimationFrame> ConvertToSequentialAnimationFrames(
AudioQuery audioQuery)
{ |
{
"list": [
{
"filename": "VSIntelliSenseTweaks/GeneralSettings.cs",
"retrieved_chunk": "using Microsoft.VisualStudio.Shell;\nusing System.ComponentModel;\nnamespace VSIntelliSenseTweaks\n{\n public class GeneralSettings : DialogPage\n {\n public const string PageName = \"General\";\n ... | using Microsoft.VisualStudio.Shell;
using System;
using System.Runtime.InteropServices;
using System.Threading;
using Microsoft.VisualStudio.Shell.Interop;
using System.Diagnostics;
using Task = System.Threading.Tasks.Task;
using Microsoft;
namespace VSIntelliSenseTweaks
{
/// <summary>
/// This is the class t... |
/// <summary>
/// VSIntelliSenseTweaksPackage GUID string.
/// </summary>
public const string PackageGuidString = "8e0ec3d8-0561-477a-ade4-77d8826fc290";
public const string PackageDisplayName = "IntelliSense Tweaks";
#region Package Members
/// <summary>
... | {
"context_start_lineno": 0,
"file": "VSIntelliSenseTweaks/VSIntelliSenseTweaksPackage.cs",
"groundtruth_start_lineno": 30,
"repository": "cfognom-VSIntelliSenseTweaks-4099741",
"right_context_start_lineno": 33,
"task_id": "project_cc_csharp/1176"
} | {
"list": [
{
"filename": "VSIntelliSenseTweaks/GeneralSettings.cs",
"retrieved_chunk": " [Description(\"Disables initial soft-selection in the completion-list when completion was triggered manually (usually by ctrl + space).\")]\n public bool DisableSoftSelection\n {\n ... | GeneralSettings), categoryName: PackageDisplayName, pageName: GeneralSettings.PageName, 0, 0, true)]
public sealed class VSIntelliSenseTweaksPackage : AsyncPackage
{ |
{
"list": [
{
"filename": "VeilsClaim/Classes/Managers/ProjectileManager.cs",
"retrieved_chunk": " null,\n Main.Camera.Transform);\n for (int i = 0; i < projectiles.Count; i++)\n projectiles[i].Draw(spriteBatch);\n spriteBatch.End();\n... | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using VeilsClaim.Classes.Enums;
using VeilsClaim.Classes.Utilities;
namespace VeilsClaim.Classes.Objects
{
public class Polygon
{
public Polygon()
{
OriginalVertice... |
switch (axis)
{
case Axis.X:
Roll += angle;
if (Roll > MathHelper.TwoPi)
Roll -= MathHelper.TwoPi;
break;
case Axis.Y:
Pitch += angle;
if (... | {
"context_start_lineno": 0,
"file": "VeilsClaim/Classes/Objects/Polygon.cs",
"groundtruth_start_lineno": 134,
"repository": "IsCactus0-Veils-Claim-de09cef",
"right_context_start_lineno": 136,
"task_id": "project_cc_csharp/1060"
} | {
"list": [
{
"filename": "VeilsClaim/Classes/Managers/ProjectileManager.cs",
"retrieved_chunk": " (int)(position.X - (range / 2f)),\n (int)(position.Y - (range / 2f)),\n (int)range,\n (int)range);\n List<Projectile> found = FindAl... | Axis axis)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/StateStoreBuilder.cs",
"retrieved_chunk": " private bool disposed = false;\n public static StateStoreBuilder<TContext> Create<TInitialState>()\n where TInitialState : IStackState<TContext>, new()\n {\n ... | #nullable enable
using System;
using System.Collections.Generic;
namespace Mochineko.RelentStateMachine
{
public sealed class StateStore<TContext> : IStateStore<TContext>
{
private readonly IStackState<TContext> initialState;
private readonly IReadOnlyList<IStackState<TContext>> states;
... |
IStackState<TContext> IStateStore<TContext>.Get<TState>()
{
foreach (var state in states)
{
if (state is TState target)
{
return target;
}
}
throw new ArgumentException($"Not found stat... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/RelentStateMachine/StateStore.cs",
"groundtruth_start_lineno": 19,
"repository": "mochi-neko-RelentStateMachine-64762eb",
"right_context_start_lineno": 21,
"task_id": "project_cc_csharp/1096"
} | {
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/StateStoreBuilder.cs",
"retrieved_chunk": " private bool disposed = false;\n public static StateStoreBuilder<TContext> Create<TInitialState>()\n where TInitialState : IStackState<TContext>, new()\n {\n ... | IStackState<TContext> IStateStore<TContext>.InitialState
=> initialState; |
{
"list": [
{
"filename": "Runtime/NodeQuest.cs",
"retrieved_chunk": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\nnamespace QuestSystem\n{\n [CreateAssetMenu(fileName = \"New NodeQuest\", menuName = \"QuestSystem/NodeQuest\")]\n [System.Serializable]\n p... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace QuestSystem
{
[CreateAssetMenu(fileName = "New Quest", menuName = "QuestSystem/Quest")]
[System.Serializable]
public class Quest : ScriptableObject
{
[Header("Warning!!!! This ScriptaleO... |
public List<int> state;
public int limitDay;
public int startDay;
public string misionName;
public bool isMain;
[Header("Graph Part")]
public List<NodeLinksGraph> nodeLinkData;
[System.Serializable]
public class NodeLinksGraph
{
... | {
"context_start_lineno": 0,
"file": "Runtime/Quest.cs",
"groundtruth_start_lineno": 14,
"repository": "lluispalerm-QuestSystem-cd836cc",
"right_context_start_lineno": 15,
"task_id": "project_cc_csharp/1144"
} | {
"list": [
{
"filename": "Runtime/QuestLog.cs",
"retrieved_chunk": " {\n public List<Quest> curentQuests = new List<Quest>();\n public List<Quest> doneQuest = new List<Quest>();\n public List<Quest> failedQuest = new List<Quest>();\n public int businessDay;\n pub... | NodeQuest nodeActual; |
{
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/LipSync/FollowingLipAnimator.cs",
"retrieved_chunk": " /// A framewise lip animator that animates lip by following target weights.\n /// </summary>\n public sealed class FollowingLipAnimator : IFramewiseLipAnimator\n {\n ... | #nullable enable
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Mochineko.FacialExpressions.Emotion
{
/// <summary>
/// An emotion animator that animates emotion by following target weights exclusively.
/// </summary>
public sealed class ExclusiveFollowingEmotionAnimator<T... |
private readonly Dictionary<TEmotion, float> velocities = new();
/// <summary>
/// Creates a new instance of <see cref="ExclusiveFollowingEmotionAnimator{TEmotion}"/>.
/// </summary>
/// <param name="morpher">Target morpher.</param>
/// <param name="followingTime">Follo... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/FacialExpressions/Emotion/ExclusiveFollowingEmotionAnimator.cs",
"groundtruth_start_lineno": 16,
"repository": "mochi-neko-facial-expressions-unity-ab0d020",
"right_context_start_lineno": 17,
"task_id": "project_cc_csharp/1046"
} | {
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/LipSync/FollowingLipAnimator.cs",
"retrieved_chunk": " private CancellationTokenSource? animationCanceller;\n /// <summary>\n /// Creates a new instance of <see cref=\"FollowingLipAnimator\"/>.\n /// </summary>\n... | EmotionSample<TEmotion>> targets = new(); |
{
"list": [
{
"filename": "Source/TreeifyTask/TaskTree/TaskNode.cs",
"retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Linq;\nusing System.Threading;\nusing System.Threading.Tasks;\nnamespace TreeifyTask\n{\n public class TaskNode : IT... | using System;
using System.Runtime.Serialization;
namespace TreeifyTask
{
[Serializable]
public class TaskNodeCycleDetectedException : Exception
{
public ITaskNode NewTask { get; }
public | get; }
public string MessageStr { get; private set; }
public TaskNodeCycleDetectedException()
: base("Cycle detected in the task tree.")
{
}
public TaskNodeCycleDetectedException(ITaskNode newTask, ITaskNode parentTask)
: base($"Task '{newTask?.Id}' wa... | {
"context_start_lineno": 0,
"file": "Source/TreeifyTask/TaskTree/TaskNodeCycleDetectedException.cs",
"groundtruth_start_lineno": 9,
"repository": "intuit-TreeifyTask-4b124d4",
"right_context_start_lineno": 10,
"task_id": "project_cc_csharp/1148"
} | {
"list": [
{
"filename": "Source/TreeifyTask/TaskTree/TaskNode.cs",
"retrieved_chunk": " private static Random rnd = new Random();\n private readonly List<Task> taskObjects = new();\n private readonly List<ITaskNode> childTasks = new();\n private bool hasCustomAction;\n ... | ITaskNode ParentTask { |
{
"list": [
{
"filename": "Runtime/NodeQuest.cs",
"retrieved_chunk": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\nnamespace QuestSystem\n{\n [CreateAssetMenu(fileName = \"New NodeQuest\", menuName = \"QuestSystem/NodeQuest\")]\n [System.Serializable]\n p... | using UnityEngine;
namespace QuestSystem
{
public class QuestOnObjectWorld : MonoBehaviour
{
//Structs in order to show on editor
[System.Serializable]
public struct ObjectsForQuestTable
{
public Quest quest;
public ActivationRowNode[] tableNodes;
... |
public bool activate;
}
public ObjectsForQuestTable[] objectsForQuestTable;
public GameObject[] objectsToControlList;
private QuestManager questManagerRef;
// Start is called before the first frame update
private void Awake()
{
questMan... | {
"context_start_lineno": 0,
"file": "Runtime/QuestOnObjectWorld.cs",
"groundtruth_start_lineno": 17,
"repository": "lluispalerm-QuestSystem-cd836cc",
"right_context_start_lineno": 18,
"task_id": "project_cc_csharp/1151"
} | {
"list": [
{
"filename": "Runtime/Quest.cs",
"retrieved_chunk": " [Header(\"Warning!!!! This ScriptaleObject has to be in a resources folder under Missions/[MisionName]\")]\n public NodeQuest firtsNode;\n public NodeQuest nodeActual;\n public List<int> state;\n pub... | NodeQuest node; |
{
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/UI/GengoPlayfield.cs",
"retrieved_chunk": " protected readonly AnkiAPI anki = new AnkiAPI();\n [BackgroundDependencyLoader]\n private void load()\n {\n AddInternal(anki);\n AddInternal(playfieldContain... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System;
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Gr... | get; set; }
private Card assignedCard;
private Card baitCard;
private Box cardDesign;
private OsuSpriteText cardText;
[BackgroundDependencyLoader]
private void load(TextureStore textures)
{
assignedCard = anki.FetchRandomCard();
... | {
"context_start_lineno": 0,
"file": "osu.Game.Rulesets.Gengo/Objects/Drawables/DrawableGengoHitObject.cs",
"groundtruth_start_lineno": 48,
"repository": "0xdeadbeer-gengo-dd4f78d",
"right_context_start_lineno": 49,
"task_id": "project_cc_csharp/1143"
} | {
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/Replays/GengoAutoGenerator.cs",
"retrieved_chunk": " {\n Time = hitObject.StartTime,\n Position = hitObject.Position,\n });\n }\n }\n }\n}",
"score": 24.032... | AnkiAPI anki { |
{
"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... | 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;
... |
var selected = (skills ?? new List<string>())
.Select(_ => _.ToLower()).ToList();
var kernel = new KernelBuilder()
.WithOpenAI(_config, key)
.WithLogger(_logger)
.Build()
.RegistryCoreSkills(selected)
... | {
"context_start_lineno": 0,
"file": "src/SKernel/Factory/SemanticKernelFactory.cs",
"groundtruth_start_lineno": 27,
"repository": "geffzhang-ai-search-aspnet-qdrant-chatgpt-378d2be",
"right_context_start_lineno": 29,
"task_id": "project_cc_csharp/1173"
} | {
"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... | ApiKey key, IList<string>? skills = null)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/V2Second.cs",
"retrieved_chunk": " }\n altFireCharge += Time.deltaTime;\n }\n }\n void OnDisable()\n {\n altFireCharging = false;\n }\n void PrepareFire()\n {",
... | using HarmonyLib;
using Mono.Cecil;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Text;
using UnityEngine;
namespace Ultrapain.Patches
{
/*
u = initial, f = final, d = delta, s = speed multiplier
u = 40f * Time.deltaT... |
if(__instance.gunVariation == 0 && __instance.pierceCharge < 100f)
{
__instance.pierceCharge = Mathf.Min(100f, __instance.pierceCharge + 40f * Time.deltaTime * (ConfigManager.chargedRevRegSpeedMulti.value - 1f) * (__instance.altVersion ? 0.5f : 1f));
}
r... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/PlayerStatTweaks.cs",
"groundtruth_start_lineno": 23,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 25,
"task_id": "project_cc_csharp/1010"
} | {
"list": [
{
"filename": "Ultrapain/Patches/V2Second.cs",
"retrieved_chunk": " Instantiate<GameObject>(Plugin.v2flashUnparryable, this.shootPoint.position, this.shootPoint.rotation).transform.localScale *= 4f;\n }\n void SetRocketRotation(Transform rocket)\n {\n ... | Revolver __instance)
{ |
{
"list": [
{
"filename": "Editor/GraphEditor/QuestGraphView.cs",
"retrieved_chunk": " }\n private void RemovePort(NodeQuestGraph node, Port p)\n {\n var targetEdge = edges.ToList().Where(x => x.output.portName == p.portName && x.output.node == p.node);\n if ... | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UIElements;
using UnityEditor.UIElements;
using UnityEditor.Experimental.GraphView;
using UnityEditor;
using UnityEngine.Windows;
using System;
namespace QuestSystem.QuestEditor
{
public class QuestG... |
List<QuestObjective> Listaux = new List<QuestObjective>();
foreach (QuestObjectiveGraph obj in qog)
{
QuestObjective aux = new QuestObjective
{
keyName = obj.keyName,
maxItems = obj.maxItems,
... | {
"context_start_lineno": 0,
"file": "Editor/GraphEditor/QuestGraphSaveUtility.cs",
"groundtruth_start_lineno": 318,
"repository": "lluispalerm-QuestSystem-cd836cc",
"right_context_start_lineno": 320,
"task_id": "project_cc_csharp/1162"
} | {
"list": [
{
"filename": "Editor/GraphEditor/QuestGraphView.cs",
"retrieved_chunk": " node.outputContainer.Remove(p);\n node.RefreshPorts();\n node.RefreshExpandedState();\n }\n public void removeQuestObjective(NodeQuestGraph nodes, QuestObjectiveGraph o... | QuestObjectiveGraph> qog)
{ |
{
"list": [
{
"filename": "HttpMessageHandlerFactory/Implementations/ActiveHandlerEntry.cs",
"retrieved_chunk": " sealed class ActiveHandlerEntry\n {\n private static readonly TimerCallback timerCallback = (s) => ((ActiveHandlerEntry)s!).Timer_Tick();\n private readonly object root... | 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... |
/// <summary>
/// Http消息处理者工厂
/// </summary>
/// <param name="nameRegistration"></param>
/// <param name="serviceScopeFactory"></param>
/// <param name="expiredHandlerEntryCleaner"></param>
public DefaultHttpMessageHandlerFactory(
NameRegistration na... | {
"context_start_lineno": 0,
"file": "HttpMessageHandlerFactory/Implementations/DefaultHttpMessageHandlerFactory.cs",
"groundtruth_start_lineno": 26,
"repository": "xljiulang-HttpMessageHandlerFactory-4b1d13b",
"right_context_start_lineno": 27,
"task_id": "project_cc_csharp/1189"
} | {
"list": [
{
"filename": "HttpMessageHandlerFactory/Implementations/ExpiredHandlerEntryCleaner.cs",
"retrieved_chunk": " private readonly ILogger<ExpiredHandlerEntryCleaner> logger;\n /// <summary>\n /// 已过期的条目清除器\n /// </summary>\n public ExpiredHandlerEntryCleaner... | ActiveHandlerEntry>> activeHandlerEntries = new(); |
{
"list": [
{
"filename": "Ultrapain/Patches/Mindflayer.cs",
"retrieved_chunk": " }\n else\n patch.swingComboLeft = 2;*/\n }\n }\n class Mindflayer_MeleeTeleport_Patch\n {\n public static Vector3 deltaPosition = new Vector3(0, -10, 0);\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 GameObject decoy;
public static void CreateDecoy()
{
if (decoy != null ... |
if (___eid.health <= 0)
return true;
MinosPrimeFlag flag = __instance.GetComponent<MinosPrimeFlag>();
if (flag == null)
return true;
if (!flag.explosionAttack)
return true;
___anim.speed = ___eid.totalSpeedMo... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/MinosPrime.cs",
"groundtruth_start_lineno": 303,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 305,
"task_id": "project_cc_csharp/1036"
} | {
"list": [
{
"filename": "Ultrapain/Patches/Ferryman.cs",
"retrieved_chunk": " //if (flag.remainingCombo == ConfigManager.ferrymanComboCount.value && clipName == \"KickCombo\")\n // flag.remainingCombo -= 1;\n flag.remainingCombo -= 1;\n if(flag.remainin... | EnemyIdentifier ___eid, Animator ___anim, ref bool ___vibrating)
{ |
{
"list": [
{
"filename": "App.xaml.cs",
"retrieved_chunk": "using wingman.ViewModels;\nusing wingman.Views;\nnamespace wingman\n{\n public partial class App : Application, IDisposable\n {\n private readonly IHost _host;\n private readonly AppUpdater _appUpdater;\n public Ap... | using CommunityToolkit.Mvvm.DependencyInjection;
using Microsoft.UI.Dispatching;
using Microsoft.UI.Input;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Windows.UI.Core;
using wingman.Helpers;
using wingman.Interfaces;
using wingman.ViewModels;
namespace wingman.Views
{
public class GridExposeCu... |
public MainWindow(IEventHandlerService eventsHandler)
{
InitializeComponent();
_dispatcherQueue = DispatcherQueue.GetForCurrentThread();
this.eventsHandler = eventsHandler;
eventsHandler.InferenceCallback += HandleInferenceAsync;
ExtendsCo... | {
"context_start_lineno": 0,
"file": "Views/MainWindow.xaml.cs",
"groundtruth_start_lineno": 26,
"repository": "dannyr-git-wingman-41103f3",
"right_context_start_lineno": 27,
"task_id": "project_cc_csharp/1084"
} | {
"list": [
{
"filename": "Views/StatusWindow.xaml.cs",
"retrieved_chunk": " private readonly DispatcherQueue _dispatcher;\n private Window _previousActiveWindow;\n private const int StatusDisplayDurationMilliseconds = 20000;\n private bool _disposed = false;\n priva... | App _app; |
{
"list": [
{
"filename": "Services/MediaDeviceService.cs",
"retrieved_chunk": "using MediaDevices;\nusing SupernoteDesktopClient.Core;\nusing SupernoteDesktopClient.Extensions;\nusing SupernoteDesktopClient.Models;\nusing SupernoteDesktopClient.Services.Contracts;\nusing System.Linq;\nnamespace Supe... | using MediaDevices;
using SupernoteDesktopClient.Models;
namespace SupernoteDesktopClient.Services.Contracts
{
public interface IMediaDeviceService
{
bool IsDeviceConnected { get; }
| get; }
MediaDevice SupernoteManager { get; }
void RefreshMediaDeviceInfo();
}
} | {
"context_start_lineno": 0,
"file": "Services/Contracts/IMediaDeviceService.cs",
"groundtruth_start_lineno": 9,
"repository": "nelinory-SupernoteDesktopClient-e527602",
"right_context_start_lineno": 10,
"task_id": "project_cc_csharp/1082"
} | {
"list": [
{
"filename": "Services/MediaDeviceService.cs",
"retrieved_chunk": " private const string SUPERNOTE_DEVICE_ID = \"VID_2207&PID_0011\";\n private MediaDriveInfo _driveInfo;\n private bool _isDeviceConnected;\n public bool IsDeviceConnected\n {\n ... | SupernoteInfo SupernoteInfo { |
{
"list": [
{
"filename": "Ultrapain/Patches/OrbitalStrike.cs",
"retrieved_chunk": " class EnemyIdentifier_DeliverDamage\n {\n static Coin lastExplosiveCoin = null;\n class StateInfo\n {\n public bool canPostStyle = false;\n public OrbitalExplosionInfo ... | 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(EnemyIdentifier __instance)
{
EidStatCon... |
if (currentCause != DamageCause.Unknown && (__instance.hitter == "enemy" || __instance.hitter == "ffexplosion"))
{
switch(currentCause)
{
case DamageCause.Projectile:
//if (ConfigManager.friendlyFireDamageOverrideProjec... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/GlobalEnemyTweaks.cs",
"groundtruth_start_lineno": 153,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 156,
"task_id": "project_cc_csharp/1040"
} | {
"list": [
{
"filename": "Ultrapain/Patches/V2Common.cs",
"retrieved_chunk": " }\n private void Update()\n {\n if (!hasTargetPoint)\n transform.position += transform.forward * speed;\n else\n {\n if (transform.positio... | HarmonyBefore]
static bool Prefix(EnemyIdentifier __instance, ref float __3)
{ |
{
"list": [
{
"filename": "BootCamp.DataAccess/Extension/PropertyInfoExtensions.cs",
"retrieved_chunk": "using Amazon.DynamoDBv2.Model;\nusing BootCamp.DataAccess.Contract;\nusing System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Reflection;\nnamespace BootCamp.DataA... | using BootCamp.Service;
using BootCamp.Service.Contract;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Windows.Forms;
namespace BootCampDynamoDB
{
public partial class Form1 : Form
{
private int _transactionLevel = 0;
private |
public Form1()
{
InitializeComponent();
InitializeServices();
}
private void InitializeServices()
{
_productService = new ProductService();
productType.SelectedIndex = 0;
}
private void clearComponent()
{... | {
"context_start_lineno": 0,
"file": "BootCampDynamoDBAppCore/WindowsFormsApp1/Form1.cs",
"groundtruth_start_lineno": 14,
"repository": "aws-samples-amazon-dynamodb-transaction-framework-43e3da4",
"right_context_start_lineno": 15,
"task_id": "project_cc_csharp/1171"
} | {
"list": [
{
"filename": "BootCampDynamoDBAppCore/WindowsFormsApp1/Program.cs",
"retrieved_chunk": " /// <summary>\n /// The main entry point for the application.\n /// </summary>\n [STAThread]\n static void Main()\n {\n Application.SetHighDpiMode... | IProductService _productService; |
{
"list": [
{
"filename": "src/Gum/InnerThoughts/Fact.cs",
"retrieved_chunk": " internal static Fact Weight => new(FactKind.Weight);\n /// <summary>\n /// Creates a fact of type <see cref=\"FactKind.Component\"/>.\n /// </summary>\n internal static Fact Component => ... | using System.Text;
using System.Diagnostics;
using Gum.Utilities;
namespace Gum.InnerThoughts
{
[DebuggerDisplay("{DebuggerDisplay(),nq}")]
public readonly struct Criterion
{
public readonly Fact Fact = new();
public readonly CriterionKind Kind = CriterionKind.Is;
public readonly ... |
bool? @bool = null;
int? @int = null;
string? @string = null;
// Do not propagate previous values.
switch (fact.Kind)
{
case FactKind.Bool:
@bool = (bool)@value;
break;
case... | {
"context_start_lineno": 0,
"file": "src/Gum/InnerThoughts/Criterion.cs",
"groundtruth_start_lineno": 31,
"repository": "isadorasophia-gum-032cb2d",
"right_context_start_lineno": 33,
"task_id": "project_cc_csharp/1136"
} | {
"list": [
{
"filename": "src/Gum/InnerThoughts/Fact.cs",
"retrieved_chunk": " internal static Fact Weight => new(FactKind.Weight);\n /// <summary>\n /// Creates a fact of type <see cref=\"FactKind.Component\"/>.\n /// </summary>\n internal static Fact Component => ... | Fact fact, CriterionKind kind, object @value)
{ |
{
"list": [
{
"filename": "objective/objective/objective.Core/DragMoveContent.cs",
"retrieved_chunk": "using System.Windows;\nusing System.Windows.Controls;\nusing System.Windows.Input;\nusing System.Windows.Media;\nnamespace objective.Core\n{\n public abstract class DragMoveContent : ReportOb... | using objective.Models;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace objective.Core
{
public abstract class ReportObject : ContentControl
{
public abstract |
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
{
base.OnPropertyChanged(e);
}
public abstract void SetLeft(double d);
public abstract void SetTop(double d);
public... | {
"context_start_lineno": 0,
"file": "objective/objective/objective.Core/ReportObject.cs",
"groundtruth_start_lineno": 9,
"repository": "jamesnet214-objective-0e60b6f",
"right_context_start_lineno": 10,
"task_id": "project_cc_csharp/1062"
} | {
"list": [
{
"filename": "objective/objective/objective.Core/DragMoveContent.cs",
"retrieved_chunk": " public DragMoveContent()\n {\n MouseLeftButtonDown += DraggableRectangle_MouseLeftButtonDown;\n MouseLeftButtonUp += Dragg... | ReportObjectModel GetProperties(); |
{
"list": [
{
"filename": "SemanticXamlPrint/Extensions/XamlComponentFormattingExtensions.cs",
"retrieved_chunk": "using SemanticXamlPrint.Parser.Components;\nusing System.Drawing;\nusing System.Drawing.Drawing2D;\nnamespace SemanticXamlPrint\n{\n internal static class XamlComponentFormattingExten... | using System.Drawing;
namespace SemanticXamlPrint
{
public static class Defaults
{
public static |
Font = new Font("Calibri", 12, FontStyle.Regular),
StringFormat = new StringFormat { Alignment = StringAlignment.Near, LineAlignment = StringAlignment.Near },
Brush = Brushes.Black
};
}
}
| {
"context_start_lineno": 0,
"file": "SemanticXamlPrint/_Defaults.cs",
"groundtruth_start_lineno": 6,
"repository": "swagfin-SemanticXamlPrint-41d87fa",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/1155"
} | {
"list": [
{
"filename": "SemanticXamlPrint/DefaultXamlGraphics.cs",
"retrieved_chunk": " public static float DrawXamlComponent(this PrintPageEventArgs eventArgs, IXamlComponent xamlComponent, float yPositionDraw = 0)\n {\n if (xamlComponent == null) return yPositionDraw;\n ... | ComponentDrawingFormatting Formatting = new ComponentDrawingFormatting
{ |
{
"list": [
{
"filename": "src/SQLServerCoverageLib/Objects/CoveredStatement.cs",
"retrieved_chunk": "namespace SQLServerCoverage.Objects\n{\n public class CoveredStatement\n {\n public int Offset;\n public int OffsetEnd;\n public int ObjectId;\n }\n}",
"score": 22... | using SQLServerCoverage.Objects;
namespace SQLServerCoverage
{
public class StatementChecker
{
public bool Overlaps(Statement statement, |
var coveredOffsetStart = coveredStatement.Offset / 2;
var coveredOffsetEnd = coveredStatement.OffsetEnd;
if (coveredOffsetEnd == -1)
{
// Last statement in the batch, so only covered if the 'start' is equal to or less than the statement start
... | {
"context_start_lineno": 0,
"file": "src/SQLServerCoverageLib/StatementChecker.cs",
"groundtruth_start_lineno": 6,
"repository": "sayantandey-SQLServerCoverage-aea57e3",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/1167"
} | {
"list": [
{
"filename": "src/SQLServerCoverageLib/Parsers/TSqlParserBuilder.cs",
"retrieved_chunk": " {\n case SqlServerVersion.Sql90:\n return new TSql90Parser(quoted);\n case SqlServerVersion.Sql100:\n return new TSql10... | CoveredStatement coveredStatement)
{ |
{
"list": [
{
"filename": "Services/MicrophoneDeviceService.cs",
"retrieved_chunk": "using Windows.Media.Capture;\nusing Windows.Media.MediaProperties;\nusing Windows.Media.Render;\nusing Windows.Storage;\nusing wingman.Interfaces;\nusing WinRT;\nnamespace wingman.Services\n{\n public class Microph... | using CommunityToolkit.Mvvm.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Windows.Media.Core;
using Windows.Media.Playback;
using wingman.Helpers;
using wingman.Interfaces;
using wingman.ViewModels;
namespace wingman.Ser... |
private readonly IMicrophoneDeviceService micService;
private readonly IStdInService stdInService;
private readonly ISettingsService settingsService;
private readonly ILoggingService Logger;
private readonly IWindowingService windowingService;
private readonly OpenAICont... | {
"context_start_lineno": 0,
"file": "Services/EventHandlerService.cs",
"groundtruth_start_lineno": 15,
"repository": "dannyr-git-wingman-41103f3",
"right_context_start_lineno": 16,
"task_id": "project_cc_csharp/1128"
} | {
"list": [
{
"filename": "Services/MicrophoneDeviceService.cs",
"retrieved_chunk": " MicrophoneDevice? _currentMicrophoneDevice;\n public event EventHandler<double>? VolumeChanged;\n private AudioGraph? graph;\n private AudioFrameInputNode? _frameInputNode;\n privat... | IGlobalHotkeyService globalHotkeyService; |
{
"list": [
{
"filename": "Assets/SceneTools/Editor/Common/Data/AssetFileInfo.cs",
"retrieved_chunk": "using System.Collections.Generic;\nnamespace Sandland.SceneTool.Editor.Common.Data\n{\n internal class AssetFileInfo\n {\n public string Name { get; set; }\n public string Path { ... | using System.Collections.Generic;
namespace Sandland.SceneTool.Editor.Common.Data
{
internal class SceneInfo : AssetFileInfo
{
public int BuildIndex { get; set; }
public string Address { get; set; }
public | get; set; }
private SceneInfo(string name, string path, string guid, string bundleName, List<string> labels) : base(name, path, guid, bundleName, labels)
{
}
public static class Create
{
public static SceneInfo Addressable(string address, string name = null, string... | {
"context_start_lineno": 0,
"file": "Assets/SceneTools/Editor/Common/Data/SceneInfo.cs",
"groundtruth_start_lineno": 8,
"repository": "migus88-Sandland.SceneTools-64e9f8c",
"right_context_start_lineno": 9,
"task_id": "project_cc_csharp/1154"
} | {
"list": [
{
"filename": "Assets/SceneTools/Editor/Common/Data/AssetFileInfo.cs",
"retrieved_chunk": " public AssetFileInfo(string name, string path, string guid, string bundleName, List<string> labels)\n {\n Name = name;\n Path = path;\n Guid = guid;\n ... | SceneImportType ImportType { |
{
"list": [
{
"filename": "SemanticXamlPrint.PDF.NetCore/DefaultXamlXGraphics.cs",
"retrieved_chunk": " if (xamlComponent == null) return yPositionDraw;\n if (xamlComponent.Type != typeof(TemplateComponent)) throw new Exception($\"Root Component must be that of a [{nameof(Templat... | using PdfSharp.Drawing;
using PdfSharp.Pdf;
using SemanticXamlPrint.Parser.Components;
using System;
namespace SemanticXamlPrint.PDF
{
public static class DefaultXamlXGraphics
{
public static float DrawXamlComponent(this XGraphics graphics, IXamlComponent xamlComponent, float yPositionDraw = 0)
... |
if (xamlComponent == null) return yPositionDraw;
if (xamlComponent.Type != typeof(TemplateComponent)) throw new Exception($"Root Component must be that of a [{nameof(TemplateComponent)}] but currently is: [{xamlComponent.Name}]");
TemplateComponent Template = (TemplateComponent)xaml... | {
"context_start_lineno": 0,
"file": "SemanticXamlPrint.PDF/DefaultXamlXGraphics.cs",
"groundtruth_start_lineno": 21,
"repository": "swagfin-SemanticXamlPrint-41d87fa",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/1150"
} | {
"list": [
{
"filename": "SemanticXamlPrint.PDF.NetCore/DefaultXamlXGraphics.cs",
"retrieved_chunk": " public static float DrawXamlComponent(this PdfDocument document, IXamlComponent xamlComponent, float yPositionDraw = 0, PdfSharpCore.PageOrientation pageOrientation = PdfSharpCore.PageOrienta... | IXamlComponent xamlComponent, float yPositionDraw = 0, PdfSharp.PageOrientation pageOrientation = PdfSharp.PageOrientation.Portrait)
{ |
{
"list": [
{
"filename": "Benchmark/Nest/Benchmark_Nest_UniFlux.cs",
"retrieved_chunk": " _mark_store.Begin();\n for (int i = 0; i < iteration; i++) \"1\".Dispatch();\n _mark_store.End();\n }\n }\n private void OnGUI()\n {\n... | /*
Copyright (c) 2023 Xavier Arpa López Thomas Peter ('Kingdox')
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, ... | }
[Flux(0)] private void Example_Dispatch_Int(){}
[Flux(__m_dispatch)] private void Example_Dispatch_Byte(){}
[Flux(false)] private void Example_Dispatch_Boolean_2(){}
[Flux(false)] private void Example_Dispatch_Boolean_3(){}
[Flux(false)] private void Example_Dispatch_Boolean_4(... | {
"context_start_lineno": 0,
"file": "Benchmark/General/Benchmark_UniFlux.cs",
"groundtruth_start_lineno": 238,
"repository": "xavierarpa-UniFlux-a2d46de",
"right_context_start_lineno": 239,
"task_id": "project_cc_csharp/1112"
} | {
"list": [
{
"filename": "Benchmark/Nest/Benchmark_Nest_UniFlux.cs",
"retrieved_chunk": " rect_area = new Rect(0, _style.Value.lineHeight, Screen.width, Screen.height / 2);\n GUI.Label(rect_area, _mark_fluxAttribute.Visual, _style.Value);\n }\n if (... | Flux("UniFlux.Dispatch")] private void Example_Dispatch_String2(){ |
{
"list": [
{
"filename": "Ultrapain/Patches/DruidKnight.cs",
"retrieved_chunk": " return true;\n }\n public static float offset = 0.2f;\n static void Postfix(Drone __instance, bool ___exploded, bool __state)\n {\n if (__state)\n return;... | 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;
if (__instance.rocket)
{
if (flag.temporaryExplosion != null)
{
GameObject.Destroy(flag.temporaryExplos... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Parry.cs",
"groundtruth_start_lineno": 138,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 140,
"task_id": "project_cc_csharp/1048"
} | {
"list": [
{
"filename": "Ultrapain/Patches/OrbitalStrike.cs",
"retrieved_chunk": " OrbitalExplosionInfo info = explosion.AddComponent<OrbitalExplosionInfo>();\n info.id = ConfigManager.orbStrikeRevolverStyleText.guid;\n ... | Grenade __instance, ref bool ___exploded)
{ |
{
"list": [
{
"filename": "Model/WeChatConfig.cs",
"retrieved_chunk": " #endregion\n #region 属性\n /// <summary>\n /// AppID\n /// </summary>\n [Description(\"AppID\")]\n public string AppID { get; set; } = \"\";\n /// <summary>\n /// 密钥\n ... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using XiaoFeng.Config;
/****************************************************************
* Copyright © (2021) www.fayelf.com All Rights Reserved. *
* Author : jacky *
* ... | get; set; } = new WeChatConfig();
/// <summary>
/// 小程序配置
/// </summary>
[Description("小程序配置")]
public WeChatConfig Applets { get; set; } = new WeChatConfig();
/// <summary>
/// 开放平台配置
/// </summary>
[Description("开放平台配置")]
public WeChatCo... | {
"context_start_lineno": 0,
"file": "Model/Config.cs",
"groundtruth_start_lineno": 55,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 56,
"task_id": "project_cc_csharp/1130"
} | {
"list": [
{
"filename": "Model/WeChatConfig.cs",
"retrieved_chunk": " [Description(\"密钥\")]\n public string AppSecret { get; set; } = \"\";\n #endregion\n #region 方法\n #endregion\n }\n}",
"score": 29.07599869137351
},
{
"filename": "Model/Art... | WeChatConfig OfficeAccount { |
{
"list": [
{
"filename": "Assets/SimplestarGame/Network/Scripts/Runner/Player/PlayerAgent.cs",
"retrieved_chunk": "using Fusion;\nusing UnityEngine;\nnamespace SimplestarGame\n{\n public class PlayerAgent : NetworkBehaviour\n {\n [SerializeField] TMPro.TextMeshPro textMeshPro;\n ... | using Fusion;
namespace SimplestarGame
{
public class NetworkPlayer : NetworkBehaviour, IBeforeTick
{
[Networked] internal | get; set; }
public override void Spawned()
{
this.name = "[Network]Player:" + this.Object.InputAuthority;
SceneContext.Instance.Game?.Join(this);
}
void IBeforeTick.BeforeTick()
{
if (this.GetInput(out PlayerInput input))
{
... | {
"context_start_lineno": 0,
"file": "Assets/SimplestarGame/Network/Scripts/Runner/Player/NetworkPlayer.cs",
"groundtruth_start_lineno": 6,
"repository": "simplestargame-SimpleChatPhoton-4ebfbd5",
"right_context_start_lineno": 7,
"task_id": "project_cc_csharp/1200"
} | {
"list": [
{
"filename": "Assets/SimplestarGame/Network/Scripts/Runner/Player/PlayerAgent.cs",
"retrieved_chunk": " [Rpc(sources: RpcSources.InputAuthority, targets: RpcTargets.StateAuthority)]\n public void RPC_SendMessage(string message)\n {\n if (this.textMeshPro !=... | PlayerAgent ActiveAgent { |
{
"list": [
{
"filename": "Assets/Mochineko/LLMAgent/Operation/DemoOperator.cs",
"retrieved_chunk": "using UnityEngine;\nusing UniVRM10;\nusing VRMShaders;\nnamespace Mochineko.LLMAgent.Operation\n{\n internal sealed class DemoOperator : MonoBehaviour\n {\n [SerializeField] private Model ... | #nullable enable
using System;
using Cysharp.Threading.Tasks;
using UniRx;
using UnityEngine;
using UnityEngine.UI;
namespace Mochineko.LLMAgent.Operation
{
internal sealed class DemoOperatorUI : MonoBehaviour
{
[SerializeField] private |
[SerializeField] private TMPro.TMP_InputField? messageInput = null;
[SerializeField] private Button? sendButton = null;
private void Awake()
{
if (demoOperator == null)
{
throw new NullReferenceException(nameof(demoOperator));
}
... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/LLMAgent/Operation/DemoOperatorUI.cs",
"groundtruth_start_lineno": 11,
"repository": "mochi-neko-llm-agent-sandbox-unity-6521c0b",
"right_context_start_lineno": 12,
"task_id": "project_cc_csharp/1106"
} | {
"list": [
{
"filename": "Assets/Mochineko/LLMAgent/Operation/AgentIdleState.cs",
"retrieved_chunk": " private CancellationTokenSource? eyelidAnimationCanceller;\n public UniTask<IResult<IEventRequest<AgentEvent>>> EnterAsync(\n AgentContext context,\n Cancellation... | DemoOperator? demoOperator = null; |
{
"list": [
{
"filename": "ViewModels/DashboardViewModel.cs",
"retrieved_chunk": " private const string CONNECTED_STATUS_TEXT_OFF = \"Disconnected\";\n [ObservableProperty]\n private bool _isDeviceConnected;\n [ObservableProperty]\n private string _connectedStatusIco... | using MediaDevices;
using SupernoteDesktopClient.Core;
using SupernoteDesktopClient.Extensions;
using SupernoteDesktopClient.Models;
using SupernoteDesktopClient.Services.Contracts;
using System.Linq;
namespace SupernoteDesktopClient.Services
{
public class MediaDeviceService : IMediaDeviceService
{
pr... |
public SupernoteInfo SupernoteInfo
{
get { return _supernoteInfo; }
}
private MediaDevice _supernoteManager;
public MediaDevice SupernoteManager
{
get { return _supernoteManager; }
}
public MediaDeviceService()
{
... | {
"context_start_lineno": 0,
"file": "Services/MediaDeviceService.cs",
"groundtruth_start_lineno": 21,
"repository": "nelinory-SupernoteDesktopClient-e527602",
"right_context_start_lineno": 22,
"task_id": "project_cc_csharp/1123"
} | {
"list": [
{
"filename": "ViewModels/DashboardViewModel.cs",
"retrieved_chunk": " private string _serialNumber;\n [ObservableProperty]\n private string _serialNumberMasked;\n [ObservableProperty]\n private string _batteryPowerIcon = \"Battery124\";\n [Observa... | SupernoteInfo _supernoteInfo; |
{
"list": [
{
"filename": "Ultrapain/Patches/PlayerStatTweaks.cs",
"retrieved_chunk": " CodeInstruction pelletStoreInst = new CodeInstruction(OpCodes.Stloc_0);\n int pelletCodeIndex = 0;\n // Find pellet local variable index\n for (int i = 0; i < code.Count;... | 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 (code.opcode == OpCodes.Ldc_I4_S)
return (sbyte)code.operand;
if (code.opcode == OpCodes.Ldc_I4)
return (int)code.operand;
if (code.opcode == OpCodes.Ldc_I4_0)
return 0;
if (code.opcode == OpCodes.Ldc_I4_1)
... | {
"context_start_lineno": 0,
"file": "Ultrapain/ILUtils.cs",
"groundtruth_start_lineno": 134,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 136,
"task_id": "project_cc_csharp/1055"
} | {
"list": [
{
"filename": "Ultrapain/Patches/PlayerStatTweaks.cs",
"retrieved_chunk": " code[i] = new CodeInstruction(OpCodes.Ldc_R4, (Single)(ConfigManager.maxPlayerHp.value - 1));\n }\n }\n return code.AsEnumerable();\n }\n }\n cla... | CodeInstruction code)
{ |
{
"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( |
public virtual void Draw(SpriteBatch spriteBatch, GameObject connected)
{
if (!Visible) return;
}
}
} | {
"context_start_lineno": 0,
"file": "VeilsClaim/Classes/Objects/Constraint.cs",
"groundtruth_start_lineno": 9,
"repository": "IsCactus0-Veils-Claim-de09cef",
"right_context_start_lineno": 10,
"task_id": "project_cc_csharp/1158"
} | {
"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, float delta); |
{
"list": [
{
"filename": "IwaraDownloader/ExtensionMethods.cs",
"retrieved_chunk": " private static readonly SHA1 SHA1 = SHA1.Create();\n private static readonly SHA256 SHA256 = SHA256.Create();\n private static readonly MD5 MD5 = MD5.Create();\n public static string ToRea... | using IwaraDownloader;
using System.Net;
using System.Net.Http.Headers;
using System.Reflection;
using System.Text.Json;
using System.Text.Json.Serialization;
using static IwaraDownloader.Config;
namespace Dawnlc.Module
{
public class Utils
{
public static class Env
{
private static... | get; set; } = DeserializeJSONFile<Config>(System.IO.Path.Combine(Path, "config.json"));
}
public static JsonSerializerOptions JsonOptions { get; set; } = new()
{
WriteIndented = true,
PropertyNameCaseInsensitive = true,
Converters =
{
... | {
"context_start_lineno": 0,
"file": "IwaraDownloader/Utils.cs",
"groundtruth_start_lineno": 21,
"repository": "dawn-lc-IwaraDownloader-9a8b7ca",
"right_context_start_lineno": 22,
"task_id": "project_cc_csharp/1249"
} | {
"list": [
{
"filename": "IwaraDownloader/ExtensionMethods.cs",
"retrieved_chunk": " {\n numBytes /= 1024;\n suffixIndex++;\n }\n return $\"{numBytes.ToString($\"N{decimalPlaces}\")} {suffixes[suffixIndex]}\";\n }\n public s... | Config MainConfig { |
{
"list": [
{
"filename": "src/SQLServerCoverageLib/Utils/XmlTextEncoder.cs",
"retrieved_chunk": " {\n private static readonly Dictionary<char, string> Entities =\n new Dictionary<char, string>\n {\n {'\"', \""\"}, {'&', \"&\"}, {'\\'', \"'\... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
using SQLServerCoverage.Gateway;
using SQLServerCoverage.Source;
using SQLServerCoverage.Trace;
namespace SQLServerCoverage
{
public class CodeCoverage
{
private const i... | get; private set; } = null;
public bool IsStarted { get; private set; } = false;
private TraceController _trace;
//This is to better support powershell and optional parameters
public CodeCoverage(string connectionString, string databaseName) : this(connectionString, databaseName, null... | {
"context_start_lineno": 0,
"file": "src/SQLServerCoverageLib/CodeCoverage.cs",
"groundtruth_start_lineno": 25,
"repository": "sayantandey-SQLServerCoverage-aea57e3",
"right_context_start_lineno": 26,
"task_id": "project_cc_csharp/1198"
} | {
"list": [
{
"filename": "src/SQLServerCoverageLib/Utils/XmlTextEncoder.cs",
"retrieved_chunk": " /// <param name=\"source\">The data to be encoded in UTF-16 format.</param>\n /// <param name=\"filterIllegalChars\">\n /// It is illegal to encode certain\n /// chara... | SQLServerCoverageException Exception { |
{
"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... |
[SerializeField] internal ButtonPressDetection buttonDown;
[SerializeField] internal ButtonPressDetection buttonLeft;
[SerializeField] internal ButtonPressDetection buttonRight;
[SerializeField] internal TMPro.TMP_InputField inputField;
[SerializeField] internal ButtonPressDetec... | {
"context_start_lineno": 0,
"file": "Assets/SimplestarGame/Network/Scripts/Scene/SceneContext.cs",
"groundtruth_start_lineno": 9,
"repository": "simplestargame-SimpleChatPhoton-4ebfbd5",
"right_context_start_lineno": 10,
"task_id": "project_cc_csharp/1231"
} | {
"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... | ButtonPressDetection buttonUp; |
{
"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... | // Licensed under the MIT License. See LICENSE in the project root for license information.
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.Scripting;
using Utilities.WebRequestRest;
name... |
SkyboxInfo = skyboxInfo;
}
[Preserve]
[JsonProperty("request")]
public SkyboxInfo SkyboxInfo { get; }
}
[Preserve]
private class SkyboxOperation
{
[Preserve]
[JsonConstructor]
public Sk... | {
"context_start_lineno": 0,
"file": "BlockadeLabs/Packages/com.rest.blockadelabs/Runtime/Skyboxes/SkyboxEndpoint.cs",
"groundtruth_start_lineno": 21,
"repository": "RageAgainstThePixel-com.rest.blockadelabs-aa2142f",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/1211"
} | {
"list": [
{
"filename": "BlockadeLabs/Packages/com.rest.blockadelabs/Runtime/Skyboxes/SkyboxHistory.cs",
"retrieved_chunk": " [JsonProperty(\"totalCount\")] int totalCount,\n [JsonProperty(\"has_more\")] bool hasMore)\n {\n Skyboxes = skyboxes;\n To... | SkyboxInfo skyboxInfo)
{ |
{
"list": [
{
"filename": "src/Gum/InnerThoughts/Situation.cs",
"retrieved_chunk": " [JsonProperty]\n public readonly string Name = string.Empty;\n public int Root = 0;\n public readonly List<Block> Blocks = new();\n /// <summary>\n /// This points\n //... | using System;
using System.Diagnostics;
using System.Text;
namespace Gum.InnerThoughts
{
[DebuggerDisplay("{DebuggerDisplay(),nq}")]
public class Block
{
public readonly int Id = 0;
/// <summary>
/// Stop playing this dialog until this number.
/// If -1, this will play fore... |
/// <summary>
/// Go to another dialog with a specified id.
/// If this is -1, it will immediately exit the dialog interaction.
/// </summary>
public int? GoTo = null;
public bool NonLinearNode = false;
public bool IsChoice = false;
public bool Condit... | {
"context_start_lineno": 0,
"file": "src/Gum/InnerThoughts/Block.cs",
"groundtruth_start_lineno": 21,
"repository": "isadorasophia-gum-032cb2d",
"right_context_start_lineno": 22,
"task_id": "project_cc_csharp/1193"
} | {
"list": [
{
"filename": "src/Gum/InnerThoughts/Situation.cs",
"retrieved_chunk": " /// This points\n /// [ Node Id -> Parent ]\n /// If parent is empty, this is at the top.\n /// </summary>\n public readonly Dictionary<int, HashSet<int>> ParentOf = new();\n ... | DialogAction>? Actions = null; |
{
"list": [
{
"filename": "Assets/TimelineExtension/Editor/CustomActivationTrackEditor/CustomActivationTrackCustomEditor.cs",
"retrieved_chunk": " }\n [CustomTimelineEditor(typeof(AbstractFloatValueControlClip))]\n public class AbstractFloatValueControlCustomEditor : ClipEditor\n {\n ... | using UnityEditor;
using UnityEditor.Timeline;
using UnityEngine;
using UnityEngine.Timeline;
namespace dev.kemomimi.TimelineExtension.AbstractValueControlTrack.Editor
{
internal static class AbstractIntValueControlTrackEditorUtility
{
internal static Color PrimaryColor = new(1f, 1f, 0.5f);
}
... |
public override void OnInspectorGUI()
{
DrawDefaultInspector();
}
}
} | {
"context_start_lineno": 0,
"file": "Assets/TimelineExtension/Editor/AbstractValueControlTrackEditor/AbstractIntValueControlTrackCustomEditor.cs",
"groundtruth_start_lineno": 38,
"repository": "nmxi-Unity_AbstractTimelineExtention-b518049",
"right_context_start_lineno": 41,
"task_id": "project_cc_csharp/11... | {
"list": [
{
"filename": "Assets/TimelineExtension/Editor/CustomActivationTrackEditor/CustomActivationTrackCustomEditor.cs",
"retrieved_chunk": " [CustomTimelineEditor(typeof(CustomActivationClip))]\n public class CustomActivationClipCustomEditor : ClipEditor\n {\n public override Cli... | AbstractIntValueControlClip))]
public class AbstractIntValueControlClipEditor : UnityEditor.Editor
{ |
{
"list": [
{
"filename": "Benchmark/General/Benchmark_UniFlux.cs",
"retrieved_chunk": "\t\t\talignment = TextAnchor.MiddleLeft,\n padding = new RectOffset(10, 0, 0, 0)\n\t\t});\n [SerializeField] private int _iterations = default;\n [SerializeField] private List<string> _Resu... | /*
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, ... | // 1 - Subscribe OnPrimaryChange and invokes automatically
private void Start() => K_Primary.DispatchState(color_2); // 2 - Change to secondary color state
private void OnPrimaryChange(Color color)
{
color_current = color;
history_colors.Add(color);
}
[F... | {
"context_start_lineno": 0,
"file": "Samples/UniFlux.Sample.5/Sample_5.cs",
"groundtruth_start_lineno": 38,
"repository": "xavierarpa-UniFlux-a2d46de",
"right_context_start_lineno": 39,
"task_id": "project_cc_csharp/1160"
} | {
"list": [
{
"filename": "Benchmark/General/Benchmark_UniFlux.cs",
"retrieved_chunk": " {\n StoreTest_Add();\n StoreTest_Remove();\n }\n public void Start()\n {\n DispatchTest();\n }\n private void Update()\n {",
... | OnFlux(in bool condition) => K_Primary.StoreState<Color>(OnPrimaryChange, condition); |
{
"list": [
{
"filename": "csharp/redisTest/DevLog.cs",
"retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing System.Runtime.CompilerServices;\nusing System.Threading;\nnamespace csharp_test_client\n{\n pu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace csharp_test_client
{
public partial class mainForm
{
Dictionary< |
void SetPacketHandler()
{
PacketFuncDic.Add(PACKET_ID.DEV_ECHO, PacketProcess_DevEcho);
PacketFuncDic.Add(PACKET_ID.LOGIN_RES, PacketProcess_LoginResponse);
PacketFuncDic.Add(PACKET_ID.ROOM_ENTER_RES, PacketProcess_RoomEnterResponse);
PacketFuncDic.Add(P... | {
"context_start_lineno": 0,
"file": "cpp/Demo_2020-02-15/Client/PacketProcessForm.cs",
"groundtruth_start_lineno": 10,
"repository": "jacking75-how_to_use_redis_lib-d3accba",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/1114"
} | {
"list": [
{
"filename": "csharp/redisTest/DevLog.cs",
"retrieved_chunk": " {\n static System.Collections.Concurrent.ConcurrentQueue<string> logMsgQueue = new System.Collections.Concurrent.ConcurrentQueue<string>();\n static Int64 출력가능_로그레벨 = (Int64)LOG_LEVEL.TRACE;\n static p... | PACKET_ID, Action<byte[]>> PacketFuncDic = new Dictionary<PACKET_ID, Action<byte[]>>(); |
{
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/Anki/Anki.cs",
"retrieved_chunk": " /// Class for connecting to the anki API. \n /// </summary>\n public partial class AnkiAPI : Component {\n public string URL { get; set; } \n public string ankiDeck{ get; set; }\n publi... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System;
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Gr... |
private Box cardDesign;
private OsuSpriteText cardText;
[BackgroundDependencyLoader]
private void load(TextureStore textures)
{
assignedCard = anki.FetchRandomCard();
baitCard = anki.FetchRandomCard();
translationContainer.AddCard(a... | {
"context_start_lineno": 0,
"file": "osu.Game.Rulesets.Gengo/Objects/Drawables/DrawableGengoHitObject.cs",
"groundtruth_start_lineno": 51,
"repository": "0xdeadbeer-gengo-dd4f78d",
"right_context_start_lineno": 52,
"task_id": "project_cc_csharp/1228"
} | {
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/Anki/Anki.cs",
"retrieved_chunk": " protected GengoRulesetConfigManager config { get; set; }\n [Resolved]\n protected IBeatmap beatmap { get; set; }\n [Resolved] \n protected IDialogOverlay dialogOverlay { get; set; ... | Card baitCard; |
{
"list": [
{
"filename": "Core/Win32Api/Point.cs",
"retrieved_chunk": "using System.Runtime.InteropServices;\nusing System.Text.Json.Serialization;\nnamespace SupernoteDesktopClient.Core.Win32Api\n{\n [StructLayout(LayoutKind.Sequential)]\n public struct Point\n {\n public int X { ge... | using System.Runtime.InteropServices;
using System.Text.Json.Serialization;
namespace SupernoteDesktopClient.Core.Win32Api
{
[StructLayout(LayoutKind.Sequential)]
public struct WindowPlacement
{
public int Length { get; set; }
public int Flags { get; set; }
public int ShowCmd { get;... | get; set; }
[JsonConstructor]
public WindowPlacement(int length, int flags, int showCmd, Point minPosition, Point maxPosition, Rect normalPosition)
{
Length = length;
Flags = flags;
ShowCmd = showCmd;
MinPosition = minPosition;
MaxPos... | {
"context_start_lineno": 0,
"file": "Core/Win32Api/WindowPlacement.cs",
"groundtruth_start_lineno": 13,
"repository": "nelinory-SupernoteDesktopClient-e527602",
"right_context_start_lineno": 14,
"task_id": "project_cc_csharp/1163"
} | {
"list": [
{
"filename": "Core/Win32Api/Point.cs",
"retrieved_chunk": " public Point(int x, int y)\n {\n X = x;\n Y = y;\n }\n }\n}",
"score": 65.45912600862562
},
{
"filename": "Core/Win32Api/Rect.cs",
"retrieved_chunk": " ... | Rect NormalPosition { |
{
"list": [
{
"filename": "ViewModels/DashboardViewModel.cs",
"retrieved_chunk": " private const string CONNECTED_STATUS_TEXT_OFF = \"Disconnected\";\n [ObservableProperty]\n private bool _isDeviceConnected;\n [ObservableProperty]\n private string _connectedStatusIco... | using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using CommunityToolkit.Mvvm.Messaging;
using Microsoft.Toolkit.Uwp.Notifications;
using SupernoteDesktopClient.Core;
using SupernoteDesktopClient.Extensions;
using SupernoteDesktopClient.Messages;
using SupernoteDesktopClient.Services.Contra... |
[ObservableProperty]
private bool _archivesVisible;
public void OnNavigatedTo()
{
DiagnosticLogger.Log($"{this}");
UpdateSync();
}
public void OnNavigatedFrom()
{
}
public SyncViewModel(IMediaDeviceService mediaDeviceS... | {
"context_start_lineno": 0,
"file": "ViewModels/SyncViewModel.cs",
"groundtruth_start_lineno": 37,
"repository": "nelinory-SupernoteDesktopClient-e527602",
"right_context_start_lineno": 38,
"task_id": "project_cc_csharp/1172"
} | {
"list": [
{
"filename": "ViewModels/DashboardViewModel.cs",
"retrieved_chunk": " private string _serialNumber;\n [ObservableProperty]\n private string _serialNumberMasked;\n [ObservableProperty]\n private string _batteryPowerIcon = \"Battery124\";\n [Observa... | ArchiveFileAttributes> _archiveFiles; |
{
"list": [
{
"filename": "Ultrapain/Patches/Virtue.cs",
"retrieved_chunk": " GameObject xAxisInsignia = createInsignia(__instance, ref ___eid, ref ___difficulty, ref ___target);\n xAxisInsignia.transform.Rotate(new Vector3(90, 0, 0));\n xAxisInsignia.transform.localSc... | using HarmonyLib;
using MonoMod.Utils;
using System.Collections.Generic;
using UnityEngine;
namespace Ultrapain.Patches
{
/*public class SisyphusInstructionistFlag : MonoBehaviour
{
}
[HarmonyPatch(typeof(Sisyphus), nameof(Sisyphus.Knockdown))]
public class SisyphusInstructionist_Knockdown_Patch
... |
//___explosion = shockwave/*___m_ShockwavePrefab.gameObject*/;
___m_ShockwavePrefab = shockwave.GetComponent<PhysicalShockwave>();
}
}
/*
* A bug occurs where if the player respawns, the shockwave prefab gets deleted
*
* Check existence of the prefab on update
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/SisyphusInstructionist.cs",
"groundtruth_start_lineno": 91,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 93,
"task_id": "project_cc_csharp/1113"
} | {
"list": [
{
"filename": "Ultrapain/Patches/Panopticon.cs",
"retrieved_chunk": " if (___fleshDroneCooldown < 1f)\n {\n ___fleshDroneCooldown = 1f;\n }\n return false;\n }\n }\n class Panopticon_HomingProjectileAttack\n {\n ... | Sisyphus __instance, ref GameObject ___explosion, ref PhysicalShockwave ___m_ShockwavePrefab)
{ |
{
"list": [
{
"filename": "Assets/ZimGui/Core/Quad.cs",
"retrieved_chunk": " quad.V0.Write(position + new Vector2(0, scale.y), size, color, uv.z, uv.w + uv.y);\n quad.V1.Write(position + scale, size, color, new Vector2(uv.x + uv.z, uv.y + uv.w));\n quad.V2.Write(positi... | using System;
using System.Collections.Generic;
using TMPro;
using Unity.Collections;
using Unity.Collections.LowLevel.Unsafe;
using UnityEngine;
using UnityEngine.Profiling;
using UnityEngine.Rendering;
using UnityEngine.TextCore;
using static ZimGui.Core.MathHelper;
namespace ZimGui.Core {
public sealed unsafe cl... |
CheckAddLength(1);
var last = _quads.Length;
_quads.Length = last + 1;
var scale = new Vector2(rect.width, rect.height);
var position = rect.min;
var uv = CircleCenter;
ref var quad = ref _quads.Ptr[last];
quad.V0.Write(pos... | {
"context_start_lineno": 0,
"file": "Assets/ZimGui/Core/UiMesh.cs",
"groundtruth_start_lineno": 448,
"repository": "Akeit0-ZimGui-Unity-cc82fb9",
"right_context_start_lineno": 449,
"task_id": "project_cc_csharp/1169"
} | {
"list": [
{
"filename": "Assets/ZimGui/Core/Quad.cs",
"retrieved_chunk": " }\n [MethodImpl(MethodImplOptions.AggressiveInlining)]\n public void Write(float xMin, float xMax, float yMin, float yMax, ref Vector4 uv) {\n V3.Position.x = V0.Position.x = xMin;\n ... | UiColor leftColor, UiColor rightColor) { |
{
"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; protected set; }
/// <summary>
/// The Xbox memory stream.
/// </summary>
public XboxMemoryStream Memory { get; private set; }
public Kernel Kernel { get; private set; }
public List<Module> Modules => GetModules();
public List<Thread> Threads => GetThrea... | {
"context_start_lineno": 0,
"file": "src/OGXbdmDumper/Xbox.cs",
"groundtruth_start_lineno": 64,
"repository": "Ernegien-OGXbdmDumper-07a1e82",
"right_context_start_lineno": 65,
"task_id": "project_cc_csharp/1258"
} | {
"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... | ConnectionInfo? ConnectionInfo { |
{
"list": [
{
"filename": "Tokenizer/TSLangTokenTypes.cs",
"retrieved_chunk": "namespace Tokenizer\n{\n /// <summary>\n /// Static class which includes token types of TSLang.\n /// </summary>\n public static class TSLangTokenTypes\n {\n public static readonly TokenType\n ... | using System.Collections.ObjectModel;
using System.Text;
namespace Tokenizer
{
/// <summary>
/// Represents a TSLang source code tokenizer.
/// </summary>
public class TSLangTokenizer
{
/// <summary>
/// Current line of source code which <see cref="stream"/> is pointing to.
... |
TSLangTokenTypes.kw_for,
TSLangTokenTypes.kw_while,
TSLangTokenTypes.kw_if,
TSLangTokenTypes.kw_else,
TSLangTokenTypes.kw_var,
TSLangTokenTypes.kw_def,
TSLangTokenTypes.kw_int,
TSLangTokenTypes.kw_vector,
TSLang... | {
"context_start_lineno": 0,
"file": "Tokenizer/TSLangTokenizer.cs",
"groundtruth_start_lineno": 223,
"repository": "amirsina-mashayekh-TSLang-Compiler-3a68caf",
"right_context_start_lineno": 225,
"task_id": "project_cc_csharp/1277"
} | {
"list": [
{
"filename": "Tokenizer/TSLangTokenTypes.cs",
"retrieved_chunk": " kw_for\n = new(\"kw_for\", @\"for\"),\n kw_while\n = new(\"kw_while\", @\"while\"),\n kw_if\n = new(\"kw_if\", @\"if\"),\n kw_else\n =... | TokenType> Keywords = new(new List<TokenType>()
{ |
{
"list": [
{
"filename": "WAGIapp/AI/AICommands/RemoveNoteCommand.cs",
"retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace WAGIapp.AI.AICommands\n{\n internal class RemoveNoteCommand : Command\n ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WAGIapp.AI.AICommands
{
internal class SearchWebCommand : Command
{
public override string Name => "search-web";
public override string |
public override string Format => "search-web | querry";
public override async Task<string> Execute(Master caller, string[] args)
{
if (args.Length < 2)
return "error! not enough parameters";
string web = await Utils.WebResult("https://html.duckduckgo.c... | {
"context_start_lineno": 0,
"file": "WAGIapp/AI/AICommands/SearchWebCommand.cs",
"groundtruth_start_lineno": 12,
"repository": "Woltvint-WAGI-d808927",
"right_context_start_lineno": 13,
"task_id": "project_cc_csharp/1259"
} | {
"list": [
{
"filename": "WAGIapp/AI/AICommands/RemoveNoteCommand.cs",
"retrieved_chunk": " public override string Description => \"Removes a note from the list\";\n public override string Format => \"remove-note | number of the note to remove\";\n public override async Task<stri... | Description => "Searches the web and returns a list of links and descriptions"; |
{
"list": [
{
"filename": "Assets/Mochineko/LLMAgent/Operation/AgentSpeakingState.cs",
"retrieved_chunk": "using Mochineko.VOICEVOX_API.QueryCreation;\nusing UnityEngine;\nnamespace Mochineko.LLMAgent.Operation\n{\n internal sealed class AgentSpeakingState : IState<AgentEvent, AgentContext>\n {\... | #nullable enable
using System;
using System.Threading;
using Cysharp.Threading.Tasks;
using Mochineko.Relent.Result;
using Mochineko.RelentStateMachine;
namespace Mochineko.LLMAgent.Operation
{
internal static class AgentStateMachineFactory
{
public static async UniTask<IFiniteStateMachine< |
var transitionMapBuilder = TransitionMapBuilder<AgentEvent, AgentContext>
.Create<AgentIdleState>();
transitionMapBuilder.RegisterTransition<AgentIdleState, AgentSpeakingState>(AgentEvent.BeginSpeaking);
transitionMapBuilder.RegisterTransition<AgentSpeak... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/LLMAgent/Operation/AgentStateMachineFactory.cs",
"groundtruth_start_lineno": 11,
"repository": "mochi-neko-llm-agent-sandbox-unity-6521c0b",
"right_context_start_lineno": 15,
"task_id": "project_cc_csharp/1180"
} | {
"list": [
{
"filename": "Assets/Mochineko/LLMAgent/Operation/AudioSourceExtension.cs",
"retrieved_chunk": " this AudioSource audioSource,\n AudioClip audioClip,\n CancellationToken cancellationToken)\n {\n audioSource.Stop();\n audioSourc... | AgentEvent, AgentContext>> CreateAsync(
AgentContext context,
CancellationToken cancellationToken)
{ |
{
"list": [
{
"filename": "WindowManager.cs",
"retrieved_chunk": "\t\tWINDOWINFO m_windowInfo;\n\t}\n\tpublic static class WindowManager {\n\t\tpublic static WindowProperties ToProperties(this WINDOWINFO windowInfo) {\n\t\t\treturn new WindowProperties() {\n\t\t\t\tPosX = windowInfo.rcWindow.left,\n\t... | using ACCWindowManager;
using System.Collections.Generic;
namespace ACCData {
public static class ProcessInfo {
public static string AppName = "AC2";
public static string MainWindowName = "AC2";
public static string AppID = "805550";
}
public static class DefaultWindowSettings {
private static uint Default... |
PosX = -2560,
PosY = 0,
Width = 7680,
Height = 1440,
Style = DefaultStyle,
ExStyle = DefaultExStyle
};
private static WindowProperties m_triple4kOffsetLeft = new WindowProperties() {
PosX = -5120,
PosY = 0,
Width = 7680,
Height = 1440,
Style = DefaultStyle,
ExStyle = DefaultExS... | {
"context_start_lineno": 0,
"file": "ACCData.cs",
"groundtruth_start_lineno": 41,
"repository": "kristofkerekes-acc-windowmanager-46578f1",
"right_context_start_lineno": 42,
"task_id": "project_cc_csharp/1300"
} | {
"list": [
{
"filename": "WindowManager.cs",
"retrieved_chunk": "\tpublic class WindowPropertiesConverter : TypeConverter {\n\t\tpublic override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {\n\t\t\treturn sourceType == typeof(string);\n\t\t}\n\t\tpublic override object Conver... | WindowProperties m_triple4k = new WindowProperties() { |
{
"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/1202"
} | {
"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 ... | Entity target)
{ |
{
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Extensions/ContribuyenteExtension.cs",
"retrieved_chunk": "using LibreDteDotNet.RestRequest.Interfaces;\nnamespace LibreDteDotNet.RestRequest.Extensions\n{\n public static class ContribuyenteExtension\n {\n public static IContribuyent... | using System.Xml.Linq;
using LibreDteDotNet.RestRequest.Interfaces;
namespace LibreDteDotNet.RestRequest.Extensions
{
public static class FolioCafExtension
{
private static CancellationToken CancellationToken { get; set; }
public static IFolioCaf Conectar(this IFolioCaf instance)
{
... |
return await (await instance).Descargar();
}
public static async Task<IFolioCaf> Confirmar(this Task<IFolioCaf> instance)
{
return await (await instance).Confirmar();
}
}
}
| {
"context_start_lineno": 0,
"file": "LibreDteDotNet.RestRequest/Extensions/FolioCafExtension.cs",
"groundtruth_start_lineno": 15,
"repository": "sergiokml-LibreDteDotNet.RestRequest-6843109",
"right_context_start_lineno": 17,
"task_id": "project_cc_csharp/1209"
} | {
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Extensions/ContribuyenteExtension.cs",
"retrieved_chunk": "using LibreDteDotNet.RestRequest.Interfaces;\nnamespace LibreDteDotNet.RestRequest.Extensions\n{\n public static class ContribuyenteExtension\n {\n public static IContribuyent... | IFolioCaf> instance)
{ |
{
"list": [
{
"filename": "Assets/Scripts/StableDiffusion/VAE.cs",
"retrieved_chunk": "using Microsoft.ML.OnnxRuntime;\nusing Microsoft.ML.OnnxRuntime.Tensors;\nusing System.Collections.Generic;\nusing System.Linq;\nusing UnityEngine;\nnamespace StableDiffusion\n{\n public class VAE\n {\n ... | using Microsoft.ML.OnnxRuntime;
using Microsoft.ML.OnnxRuntime.Tensors;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Unity.Mathematics;
using UnityEngine;
using MathRandom = Unity.Mathematics.Random;
namespace StableDiffusion
{
public class Unet
{
private sta... |
private const int batch_size = 1;
private const int height = 512;
private const int width = 512;
private const int channels = 4;
private const float scale = 1.0f / 0.18215f;
public static void LoadModel(string path)
{
unetEncoderModel = new Inferen... | {
"context_start_lineno": 0,
"file": "Assets/Scripts/StableDiffusion/Unet.cs",
"groundtruth_start_lineno": 14,
"repository": "Haoming02-stable-diffusion-for-unity-ce23966",
"right_context_start_lineno": 15,
"task_id": "project_cc_csharp/1280"
} | {
"list": [
{
"filename": "Assets/Scripts/StableDiffusion/VAE.cs",
"retrieved_chunk": " public static void LoadModel(string path)\n {\n vaeDecoderModel = new InferenceSession(path);\n }\n public static void Free() { vaeDecoderModel.Dispose(); }\n public st... | SchedulerBase scheduler; |
{
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/IStateStoreBuilder.cs",
"retrieved_chunk": "#nullable enable\nusing System;\nnamespace Mochineko.RelentStateMachine\n{\n public interface IStateStoreBuilder<TContext> : IDisposable\n {\n void Register<TState>()\n wh... | #nullable enable
using System;
namespace Mochineko.RelentStateMachine
{
public interface IStateStore<TContext> : IDisposable
{
internal | get; }
internal IStackState<TContext> Get<TState>() where TState : IStackState<TContext>;
}
} | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/RelentStateMachine/IStateStore.cs",
"groundtruth_start_lineno": 7,
"repository": "mochi-neko-RelentStateMachine-64762eb",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/1223"
} | {
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/IStateStoreBuilder.cs",
"retrieved_chunk": "#nullable enable\nusing System;\nnamespace Mochineko.RelentStateMachine\n{\n public interface IStateStoreBuilder<TContext> : IDisposable\n {\n void Register<TState>()\n wh... | IStackState<TContext> InitialState { |
{
"list": [
{
"filename": "LootingBots/utils/Log.cs",
"retrieved_chunk": " BepInEx.Configuration.ConfigEntry<LogLevel> logLevels\n )\n {\n Logger = logger;\n LogLevels = logLevels;\n }\n public bool IsDebug()\n {\n return L... | using BepInEx;
using BepInEx.Configuration;
using Comfort.Common;
using EFT;
using LootingBots.Patch.Components;
using LootingBots.Patch.Util;
using LootingBots.Patch;
using LootingBots.Brain;
using DrakiaXYZ.BigBrain.Brains;
using System.Collections.Generic;
using HandbookClass = GClass2775;
namespace LootingBot... |
public static ConfigEntry<EquipmentType> PMCGearToPickup;
public static ConfigEntry<EquipmentType> ScavGearToEquip;
public static ConfigEntry<EquipmentType> ScavGearToPickup;
public static ConfigEntry<LogLevel> ItemAppraiserLogLevels;
public static Log ItemAppraiserLog;
... | {
"context_start_lineno": 0,
"file": "LootingBots/LootingBots.cs",
"groundtruth_start_lineno": 50,
"repository": "Skwizzy-SPT-LootingBots-76279a3",
"right_context_start_lineno": 51,
"task_id": "project_cc_csharp/1125"
} | {
"list": [
{
"filename": "LootingBots/utils/Log.cs",
"retrieved_chunk": " public void LogDebug(object data)\n {\n if (LogLevels.Value.HasDebug())\n {\n Logger.LogDebug(data);\n }\n }\n public void LogInfo(object data)\n ... | EquipmentType> PMCGearToEquip; |
{
"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/1226"
} | {
"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>>>
transitionMap = new(); |
{
"list": [
{
"filename": "src/FunctionApp/Models/LoggedInUser.cs",
"retrieved_chunk": "using Microsoft.Graph.Models;\nusing Newtonsoft.Json;\nnamespace FunctionApp.Models\n{\n /// <summary>\n /// This represents the entity for logged-in user details.\n /// </summary>\n public class Logged... | using System.Net;
using System.Text;
using Azure.Identity;
using FunctionApp.Configurations;
using FunctionApp.Models;
using Microsoft.Azure.Functions.Worker;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes;
using Microsoft.Azure.WebJobs.Extensions.OpenAp... |
private readonly ILogger _logger;
/// <summary>
/// Initialise the new instance of the <see cref="UserDetailsHttpTrigger"/> class.
/// </summary>
/// <param name="settings"><see cref="GraphSettings"/> instance.</param>
/// <param name="loggerFactory"><see cref="ILoggerF... | {
"context_start_lineno": 0,
"file": "src/FunctionApp/Triggers/UserDetailsHttpTrigger.cs",
"groundtruth_start_lineno": 24,
"repository": "justinyoo-ms-graph-on-aswa-83b3f54",
"right_context_start_lineno": 25,
"task_id": "project_cc_csharp/1281"
} | {
"list": [
{
"filename": "src/FunctionApp/Models/LoggedInUser.cs",
"retrieved_chunk": " /// Initializes a new instance of the <see cref=\"LoggedInUser\" /> class.\n /// </summary>\n /// <param name=\"user\"><see cref=\"User\"/> instance.</param>\n public LoggedInUser(User ... | GraphSettings _settings; |
{
"list": [
{
"filename": "src/RedisCache.Benchmark/EasyHybridCache.cs",
"retrieved_chunk": " // busConf.Endpoints.Add(new ServerEndPoint(\"127.0.0.1\", 6380));\n // // do not forget to set the SerializerName for the bus here !!\n // busConf.Ser... | using BenchmarkDotNet.Attributes;
using HybridRedisCache;
using Microsoft.Extensions.Caching.Memory;
using StackExchange.Redis;
using System;
using System.Linq;
using System.Text.Json;
using System.Threading.Tasks;
namespace RedisCache.Benchmark
{
//[MemoryDiagnoser]
[Orderer(BenchmarkDotNet.Order.SummaryOrder... |
static Lazy<SampleModel> _singleModel = new Lazy<SampleModel>(() => _data[0], true);
static Lazy<SampleModel> _singleWorseModel = new Lazy<SampleModel>(() => _data[1], true);
[Params(1, 10, 100)]
public int RepeatCount { get; set; }
[GlobalSetup]
public void GlobalSetu... | {
"context_start_lineno": 0,
"file": "src/RedisCache.Benchmark/BenchmarkManager.cs",
"groundtruth_start_lineno": 25,
"repository": "bezzad-RedisCache.NetDemo-655b311",
"right_context_start_lineno": 26,
"task_id": "project_cc_csharp/1310"
} | {
"list": [
{
"filename": "src/RedisCache.Benchmark/EasyHybridCache.cs",
"retrieved_chunk": " var result = _provider.Get<T>(key);\n return result.Value;\n }\n public async Task<T> GetAsync<T>(string key)\n {\n var result = await _provider.GetAsync<... | SampleModel[] _data; |
{
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Extensions/ContribuyenteExtension.cs",
"retrieved_chunk": "using LibreDteDotNet.RestRequest.Interfaces;\nnamespace LibreDteDotNet.RestRequest.Extensions\n{\n public static class ContribuyenteExtension\n {\n public static IContribuyent... | using System.Xml.Linq;
using LibreDteDotNet.RestRequest.Interfaces;
namespace LibreDteDotNet.RestRequest.Extensions
{
public static class FolioCafExtension
{
private static CancellationToken CancellationToken { get; set; }
public static IFolioCaf Conectar(this |
return instance.SetCookieCertificado().Result;
}
public static async Task<XDocument> Descargar(this Task<IFolioCaf> instance)
{
return await (await instance).Descargar();
}
public static async Task<IFolioCaf> Confirmar(this Task<IFolioCaf> instance)
... | {
"context_start_lineno": 0,
"file": "LibreDteDotNet.RestRequest/Extensions/FolioCafExtension.cs",
"groundtruth_start_lineno": 10,
"repository": "sergiokml-LibreDteDotNet.RestRequest-6843109",
"right_context_start_lineno": 12,
"task_id": "project_cc_csharp/1221"
} | {
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Extensions/ContribuyenteExtension.cs",
"retrieved_chunk": "using LibreDteDotNet.RestRequest.Interfaces;\nnamespace LibreDteDotNet.RestRequest.Extensions\n{\n public static class ContribuyenteExtension\n {\n public static IContribuyent... | IFolioCaf instance)
{ |
{
"list": [
{
"filename": "Assets/SimplestarGame/Network/Scripts/Sample/TemplateTexts.cs",
"retrieved_chunk": " }\n void OnClickGood()\n {\n this.inputField.text = \"Good!\";\n }\n void OnClickHello()\n {\n this.inputField.text = \"Hello.... | using Fusion;
using UnityEngine;
namespace SimplestarGame
{
public class PlayerAgent : NetworkBehaviour
{
[SerializeField] TMPro.TextMeshPro textMeshPro;
[Networked] internal int Token { get; set; }
[Networked(OnChanged = nameof(OnChangedMessage), OnChangedTargets = OnChangedTargets.Pr... |
this.transform.position += input.move * this.moveSpeed;
}
float moveSpeed = 0.1f;
Transform mainCamera;
}
}
| {
"context_start_lineno": 0,
"file": "Assets/SimplestarGame/Network/Scripts/Runner/Player/PlayerAgent.cs",
"groundtruth_start_lineno": 92,
"repository": "simplestargame-SimpleChatPhoton-4ebfbd5",
"right_context_start_lineno": 94,
"task_id": "project_cc_csharp/1282"
} | {
"list": [
{
"filename": "Assets/SimplestarGame/Network/Scripts/Runner/Game/NetworkGame.cs",
"retrieved_chunk": " int pointIndex = this.TotalPlayerCount % this.spawnPoints.Length;\n int colorIndex = this.TotalPlayerCount % this.playerColors.Length;\n player.ActiveAgen... | PlayerInput input)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/Leviathan.cs",
"retrieved_chunk": " }\n return false;\n }\n }\n class Leviathan_ProjectileBurst\n {\n static bool Prefix(LeviathanHead __instance, Animator ___anim,\n ref int ___projectilesLeftInBurst,... | using HarmonyLib;
using Sandbox;
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.AI;
namespace Ultrapain.Patches
{
class MinosPrimeCharge
{
static GameObject decoy;
public static void CreateDecoy()
{
if (decoy != null ... |
MinosPrimeFlag flag = __instance.GetComponent<MinosPrimeFlag>();
if (flag == null)
return true;
if (!flag.throwingProjectile)
{
if (ConfigManager.minosPrimeExplosionToggle.value
&& UnityEngine.Random.Range(0, 99.9f) < ... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/MinosPrime.cs",
"groundtruth_start_lineno": 203,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 205,
"task_id": "project_cc_csharp/1182"
} | {
"list": [
{
"filename": "Ultrapain/Patches/Cerberus.cs",
"retrieved_chunk": " {\n CerberusFlag flag = __instance.GetComponent<CerberusFlag>();\n if (flag == null)\n return true;\n if (___eid.hitter != \"punch\" && ___eid.hitter != \"shotgunzone\... | MinosPrime __instance, EnemyIdentifier ___eid, ref bool ___inAction, Animator ___anim)
{ |
{
"list": [
{
"filename": "src/Nebula.Caching.Redis/Extensions/RedisExtensions/RedisExtensions.cs",
"retrieved_chunk": "using Microsoft.Extensions.Configuration;\nusing Microsoft.Extensions.DependencyInjection;\nusing Nebula.Caching.Common.Constants;\nusing Nebula.Caching.Redis.Settings;\nusing Redis.... | using Nebula.Caching.Common.Settings;
using Redis.Settings;
using StackExchange.Redis;
namespace Nebula.Caching.Redis.Settings
{
public class RedisConfigurations : Configurations
{
public | get; set; }
public Action<ConfigurationOptions>? Configure { get; set; }
public ConfigurationOptions? Configuration { get; set; }
public TextWriter? Log { get; set; }
}
} | {
"context_start_lineno": 0,
"file": "src/Nebula.Caching.Redis/Settings/RedisConfigurations.cs",
"groundtruth_start_lineno": 8,
"repository": "Nebula-Software-Systems-Nebula.Caching-1f3bb62",
"right_context_start_lineno": 9,
"task_id": "project_cc_csharp/1164"
} | {
"list": [
{
"filename": "src/Nebula.Caching.Redis/Extensions/RedisExtensions/RedisExtensions.cs",
"retrieved_chunk": " public static IServiceCollection AddRedisExtensions(this IServiceCollection services, RedisConfigurations configs)\n {\n CacheDurationConstants.DefaultCache... | RedisConfigurationFlavour ConfigurationFlavour { |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.