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": "EF012.CodeFirstMigration/Data/AppDbContext.cs",
"retrieved_chunk": "using EF012.CodeFirstMigration.Entities;\nusing Microsoft.EntityFrameworkCore;\nusing Microsoft.Extensions.Configuration;\nnamespace EF012.CodeFirstMigration.Data\n{\n public class AppDbContext : DbConte... | using EF012.CodeFirstMigration.Enums;
namespace EF012.CodeFirstMigration.Entities
{
public class Schedule
{
public int Id { get; set; }
public | get; set; }
public bool SUN { get; set; }
public bool MON { get; set; }
public bool TUE { get; set; }
public bool WED { get; set; }
public bool THU { get; set; }
public bool FRI { get; set; }
public bool SAT { get; set; }
public ICollection<Section> Sect... | {
"context_start_lineno": 0,
"file": "EF012.CodeFirstMigration/Entities/Schedule.cs",
"groundtruth_start_lineno": 7,
"repository": "metigator-EF012-054d65d",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/4046"
} | {
"list": [
{
"filename": "EF012.CodeFirstMigration/Data/AppDbContext.cs",
"retrieved_chunk": " public DbSet<Section> Sections { get; set; }\n public DbSet<Schedule> Schedules { get; set; }\n public DbSet<Student> Students { get; set; }\n public DbSet<Enrollment> Enrollment... | ScheduleEnum Title { |
{
"list": [
{
"filename": "source/NowPlayingInstallController.cs",
"retrieved_chunk": " public readonly RoboStats jobStats;\n public readonly GameCacheViewModel gameCache;\n public readonly GameCacheManagerViewModel cacheManager;\n public readonly InstallProgressViewModel p... | using NowPlaying.Utils;
using NowPlaying.Models;
using Playnite.SDK.Data;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Threading;
using System.Windows.Threading;
using static NowPlaying.Models.GameCacheManager;
using Playnite.SDK;... |
this.manager = manager;
this.gameCache = gameCache;
this.InstallDone = installDone;
this.InstallCancelled = installCancelled;
this.cancelOnMaxFill = false;
}
public void Done(object sender, GameCacheJob job)
... | {
"context_start_lineno": 0,
"file": "source/ViewModels/GameCacheManagerViewModel.cs",
"groundtruth_start_lineno": 510,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 514,
"task_id": "project_cc_csharp/3914"
} | {
"list": [
{
"filename": "source/NowPlayingInstallController.cs",
"retrieved_chunk": " : base(nowPlayingGame)\n {\n this.plugin = plugin;\n this.settings = plugin.Settings;\n this.PlayniteApi = plugin.PlayniteApi;\n this.cacheManager = plu... | GameCacheJob> installDone,
Action<GameCacheJob> installCancelled
)
{ |
{
"list": [
{
"filename": "src/SKernel.Services/Extensions.cs",
"retrieved_chunk": " return apiConfig;\n }\n public static bool TryGetKernel(this HttpRequest request, SemanticKernelFactory factory,\n out IKernel? kernel, IList<string>? selected = null)\n {\n ... | using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Connectors.Memory.Qdrant;
using Microsoft.SemanticKernel.CoreSkills;
using Microsoft.SemanticKe... |
importer.ImportSkills(kernel, skills);
return kernel;
}
public static IKernel RegistryCoreSkills(this IKernel kernel, IList<string> skills)
{
if (ShouldLoad(skills, nameof(FileIOSkill)))
kernel.ImportSkill(new FileIOSkill(), nameof(FileIOSki... | {
"context_start_lineno": 0,
"file": "src/SKernel/KernelExtensions.cs",
"groundtruth_start_lineno": 73,
"repository": "geffzhang-ai-search-aspnet-qdrant-chatgpt-378d2be",
"right_context_start_lineno": 75,
"task_id": "project_cc_csharp/4097"
} | {
"list": [
{
"filename": "src/SKernel.Services/Extensions.cs",
"retrieved_chunk": " ? Results.BadRequest(result.LastErrorDescription)\n : Results.Ok(new Message { Variables = result.Variables, Skills = skills ?? new List<string>() });\n }\n}",
"score": 47.57971937747025... | ISkillsImporter importer, IList<string> skills)
{ |
{
"list": [
{
"filename": "Runtime/Scripts/AASEmulator.cs",
"retrieved_chunk": " public delegate void AddTopComponent(Component component);\n public static AddTopComponent addTopComponentDelegate;\n public delegate void RuntimeInitialized(AASEmulatorRuntime runtime);\n publ... | using ABI.CCK.Scripts;
using NAK.AASEmulator.Runtime.SubSystems;
using System.Collections.Generic;
using UnityEngine;
using static ABI.CCK.Scripts.CVRAdvancedSettingsEntry;
namespace NAK.AASEmulator.Runtime
{
[AddComponentMenu("")]
public class AASMenu : EditorOnlyMonoBehaviour
{
#region Static Ini... |
#endregion Variables
#region Menu Setup
private void Start() => SetupAASMenus();
private void SetupAASMenus()
{
entries.Clear();
if (runtime == null)
{
SimpleLogger.LogError("Unable to setup AAS Menus: AASEmulatorRuntime i... | {
"context_start_lineno": 0,
"file": "Runtime/Scripts/AASMenu.cs",
"groundtruth_start_lineno": 34,
"repository": "NotAKidOnSteam-AASEmulator-aacd289",
"right_context_start_lineno": 35,
"task_id": "project_cc_csharp/4129"
} | {
"list": [
{
"filename": "Runtime/Scripts/AASEmulator.cs",
"retrieved_chunk": " [HideInInspector]\n public RuntimeAnimatorController defaultRuntimeController;\n private string controllerGUID = \"ff926e022d914b84e8975ba6188a26f0\";\n private string controllerPath = \"Assets... | AASEmulatorRuntime runtime; |
{
"list": [
{
"filename": "BlockadeLabs/Packages/com.rest.blockadelabs/Editor/BlockadeLabsConfigurationInspector.cs",
"retrieved_chunk": "// Licensed under the MIT License. See LICENSE in the project root for license information.\nusing System;\nusing UnityEditor;\nusing Utilities.Rest.Editor;\nnamesp... | // Licensed under the MIT License. See LICENSE in the project root for license information.
using BlockadeLabs.Skyboxes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Authentication;
using UnityEditor;
using UnityEngine;
namespace BlockadeLabs.Editor
{
[CustomPropertyDra... |
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
try
{
if (!BlockadeLabsClient.HasValidAuthentication)
{
EditorGUI.LabelField(position, "Cannot fetch skybox styles");
... | {
"context_start_lineno": 0,
"file": "BlockadeLabs/Packages/com.rest.blockadelabs/Editor/SkyboxStylePropertyDrawer.cs",
"groundtruth_start_lineno": 17,
"repository": "RageAgainstThePixel-com.rest.blockadelabs-aa2142f",
"right_context_start_lineno": 18,
"task_id": "project_cc_csharp/4051"
} | {
"list": [
{
"filename": "BlockadeLabs/Packages/com.rest.blockadelabs/Editor/BlockadeLabsConfigurationInspector.cs",
"retrieved_chunk": " private SerializedProperty apiKey;\n private SerializedProperty proxyDomain;\n #region Project Settings Window\n [SettingsProvider]\n ... | BlockadeLabsClient BlockadeLabsClient => blockadeLabsClient ??= new BlockadeLabsClient(); |
{
"list": [
{
"filename": "Packages/net.koyashiro.genericdatacontainer/Runtime/DataList.cs",
"retrieved_chunk": " {\n return (DataList<T>)(object)new DataList();\n }\n public static DataList<T> New(params T[] array)\n {\n var tokens = DataTokenUtil.New... | using VRC.SDK3.Data;
using Koyashiro.GenericDataContainer.Internal;
namespace Koyashiro.GenericDataContainer
{
public static class DataListExt
{
public static int Capacity<T>(this DataList<T> list)
{
var dataList = (DataList)(object)(list);
return dataList.Capacity;
... |
var dataList = (DataList)(object)(list);
return (DataList<T>)(object)dataList.GetRange(index, count);
}
public static int IndexOf<T>(this DataList<T> list, T item)
{
var dataList = (DataList)(object)(list);
var token = DataTokenUtil.NewDataToken(... | {
"context_start_lineno": 0,
"file": "Packages/net.koyashiro.genericdatacontainer/Runtime/DataListExt.cs",
"groundtruth_start_lineno": 74,
"repository": "koyashiro-generic-data-container-1aef372",
"right_context_start_lineno": 76,
"task_id": "project_cc_csharp/4050"
} | {
"list": [
{
"filename": "Packages/net.koyashiro.genericdatacontainer/Runtime/DataList.cs",
"retrieved_chunk": " {\n return (DataList<T>)(object)new DataList();\n }\n public static DataList<T> New(params T[] array)\n {\n var tokens = DataTokenUtil.New... | DataList<T> GetRange<T>(this DataList<T> list, int index, int count)
{ |
{
"list": [
{
"filename": "ChatGPTInterface/ChatGPT.cs",
"retrieved_chunk": "namespace ChatGPTInterface\n{\n public class ChatGPT : IChatGPT\n {\n private readonly IConfiguration _configuration;\n private readonly ApplicationDbContext _context;\n public ChatGPT(\n ... | using AI.Dev.OpenAI.GPT;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using SemanticSearch;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Transactions;
namespace ChatGPTInterface
{
public class Know... |
KnowledgeRecord recordAdded;
using (var transactionScope = new TransactionScope())
{
try
{
List<int> tokens = GPT3Tokenizer.Encode(newRecord.Content);
newRecord.Tokens = tokens.Count;
// Ah... | {
"context_start_lineno": 0,
"file": "ChatGPTInterface/KnowledgeRecordManager.cs",
"groundtruth_start_lineno": 31,
"repository": "TaxAIExamples-semantic-search-using-chatgpt-a90ef71",
"right_context_start_lineno": 33,
"task_id": "project_cc_csharp/4095"
} | {
"list": [
{
"filename": "ChatGPTInterface/ChatGPT.cs",
"retrieved_chunk": " {\n _configuration = configuration;\n _context = context;\n }\n public EmbeddingResponse GetEmbedding(string embedding)\n {\n string apiKey = Environment.GetEnviro... | KnowledgeRecord newRecord)
{ |
{
"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 lightningBoltSFX;
public static GameObject revolverBeam;
public static GameObject blastwave;
public static GameObject cannonBall;
public static GameObject shockwave;
public static GameObject sisyphiusExplosion;
public static GameObject si... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 79,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 80,
"task_id": "project_cc_csharp/3940"
} | {
"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 maliciousCannonBeam; |
{
"list": [
{
"filename": "Assets/SceneTools/Editor/Views/SceneSelectorWindow/SceneSelectorWindow.cs",
"retrieved_chunk": " internal class SceneSelectorWindow : SceneToolsWindowBase\n {\n private const string WindowNameInternal = \"Scene Selector\";\n private const string KeyboardS... | using System.Collections.Generic;
using System.Threading.Tasks;
using Sandland.SceneTool.Editor.Common.Utils;
using Sandland.SceneTool.Editor.Views.Base;
using Sandland.SceneTool.Editor.Views.Handlers;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
namespace Sandland.SceneTool.Editor.Views
{
i... |
public override string StyleSheetName => nameof(SceneToolsSetupWindow);
private readonly List<ISceneToolsSetupUiHandler> _uiHandlers = new();
private Button _saveAllButton;
[MenuItem(WindowMenuItem, priority = 0)]
public static void ShowWindow()
{
var wind... | {
"context_start_lineno": 0,
"file": "Assets/SceneTools/Editor/Views/SceneToolsSetupWindow/SceneToolsSetupWindow.cs",
"groundtruth_start_lineno": 18,
"repository": "migus88-Sandland.SceneTools-64e9f8c",
"right_context_start_lineno": 19,
"task_id": "project_cc_csharp/4025"
} | {
"list": [
{
"filename": "Assets/SceneTools/Editor/Views/SceneSelectorWindow/SceneSelectorWindow.cs",
"retrieved_chunk": " private SceneInfo[] _sceneInfos;\n private SceneInfo[] _filteredSceneInfos;\n private ListView _sceneList;\n private TextField _searchField;\n ... | VisualTreeName => nameof(SceneToolsSetupWindow); |
{
"list": [
{
"filename": "Interoperability/ExpressionHelpers/TimeSpanHelper.cs",
"retrieved_chunk": "using UiPath.UIAutomationNext.API.Contracts;\nusing UiPath.UIAutomationNext.API.Models;\nusing UiPath.UIAutomationNext.Enums;\n// NOTICE: The Coded Automations feature is available as a preview featur... | using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.Scripting.Hosting;
// NOTICE: The Coded Automations feature is available as a preview feature and APIs may be subject to change.
// No warranty or technical support is provided for this preview feature.
// Missing feature... |
private Lazy<ScriptEngine> _engine;
public PythonCodedWorkflowWrapper()
{
_workflowUtils = new Lazy<PythonWorkflowUtils>(() => new PythonWorkflowUtils(a => RunWorkflow(a), a => Log(a)));
_engine = new Lazy<ScriptEngine>(() => PythonEngineBuilder.Build());
}
protected void Close()
{
_engine.V... | {
"context_start_lineno": 0,
"file": "PythonSeleniumTestsInteroperability/PythonCodedWorkflowWrapper.cs",
"groundtruth_start_lineno": 13,
"repository": "UiPath-codedautomations-samples-dd4b2c2",
"right_context_start_lineno": 14,
"task_id": "project_cc_csharp/4111"
} | {
"list": [
{
"filename": "Interoperability/ExpressionHelpers/TimeSpanHelper.cs",
"retrieved_chunk": " {\n private static Random _random = new Random();\n private static object _lockObj = new object();\n public static TimeSpan GetRandomTimeSpanBetween(int lowerBoundMs, int upperBoundMs)\n ... | PythonWorkflowUtils> _workflowUtils; |
{
"list": [
{
"filename": "src/RosettaStone.Core/ApiErrorResponse.cs",
"retrieved_chunk": " public int StatusCode { get; set; } = 200;\n public string Message { get; set; } = null;\n public string Context { get; set; } = null;\n public Exception Exception { get; set; } = nu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RosettaStone.Core
{
public class ResultSet
{
#region Public-Members
public string Key { get; set; } = null;
public string Left { get; set; } = null;
pub... | get; set; } = null;
public CodecMetadata Codec { get; set; } = null;
public List<CodecMetadata> Codecs { get; set; } = null;
#endregion
#region Private-Members
#endregion
#region Constructors-and-Factories
public ResultSet()
{
}
#en... | {
"context_start_lineno": 0,
"file": "src/RosettaStone.Core/ResultSet.cs",
"groundtruth_start_lineno": 16,
"repository": "jchristn-RosettaStone-898982c",
"right_context_start_lineno": 17,
"task_id": "project_cc_csharp/4136"
} | {
"list": [
{
"filename": "src/RosettaStone.Core/ApiErrorResponse.cs",
"retrieved_chunk": " }\n #endregion\n #region Public-Methods\n #endregion\n #region Private-Methods\n #endregion\n }\n}",
"score": 55.50690203976395
},
{
"filename": ... | VendorMetadata> Vendors { |
{
"list": [
{
"filename": "Assets/Mochineko/LLMAgent/Summarization/Summarizer.cs",
"retrieved_chunk": " public sealed class Summarizer\n {\n private readonly Model model;\n private readonly TikToken tikToken;\n private readonly RelentChatCompletionAPIConnection connection;\n... | #nullable enable
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Cysharp.Threading.Tasks;
using Mochineko.ChatGPT_API;
using Mochineko.LLMAgent.Summarization;
using Mochineko.Relent.Result;
using TiktokenSharp;
using UnityEngine;
namespace Mochineko.LLMA... |
private readonly IChatMemoryStore store;
private Message summary;
internal Message Summary => summary;
private readonly object lockObject = new();
public static async UniTask<LongTermChatMemory> InstantiateAsync(
int maxShortTermMemoriesTokenLength,
int ... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/LLMAgent/Memory/LongTermChatMemory.cs",
"groundtruth_start_lineno": 25,
"repository": "mochi-neko-llm-agent-sandbox-unity-6521c0b",
"right_context_start_lineno": 26,
"task_id": "project_cc_csharp/3999"
} | {
"list": [
{
"filename": "Assets/Mochineko/LLMAgent/Summarization/Summarizer.cs",
"retrieved_chunk": " string apiKey,\n Model model)\n {\n this.model = model;\n tikToken = TikToken.EncodingForModel(model.ToText());\n connection = new Relen... | Summarizer summarizer; |
{
"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 Newtonsoft.Json;
namespace Gum.InnerThoughts
{
public class CharacterScript
{
/// <summary>
/// List of tasks or events that the <see cref="Situations"/> may do.
/// </summary>
[JsonProperty]
private readonly SortedList<int, Situation> _situations = new();
... |
public Situation CurrentSituation =>
_currentSituation ?? throw new InvalidOperationException("☠️ Unable to fetch an active situation.");
public bool HasCurrentSituation => _currentSituation != null;
public bool AddNewSituation(ReadOnlySpan<char> name)
{
... | {
"context_start_lineno": 0,
"file": "src/Gum/InnerThoughts/CharacterScript.cs",
"groundtruth_start_lineno": 21,
"repository": "isadorasophia-gum-032cb2d",
"right_context_start_lineno": 22,
"task_id": "project_cc_csharp/4024"
} | {
"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 ... | Situation? _currentSituation; |
{
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Proxy/IDbContextEntityProxyGenerator.cs",
"retrieved_chunk": "using Microsoft.EntityFrameworkCore;\nnamespace Ryan.EntityFrameworkCore.Proxy\n{\n /// <summary>\n /// 数据上下文实体代理生成器\n /// </summary>\n public in... | using Microsoft.EntityFrameworkCore;
namespace Ryan.EntityFrameworkCore.Proxy
{
/// <inheritdoc cref="IDbContextEntityProxyGenerator"/>
public class DbContextEntityProxyGenerator : IDbContextEntityProxyGenerator
{
/// <inheritdoc/>
public |
return new DbContextEntityProxy(context);
}
}
}
| {
"context_start_lineno": 0,
"file": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Proxy/DbContextEntityProxyGenerator.cs",
"groundtruth_start_lineno": 8,
"repository": "c-y-r-Ryan.EntityFrameworkCore.Shard-f15124c",
"right_context_start_lineno": 10,
"task_id": "project_cc_csharp/4013"
} | {
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Proxy/IDbContextEntityProxyGenerator.cs",
"retrieved_chunk": " /// </summary>\n DbContextEntityProxy Create(DbContext context);\n }\n}",
"score": 22.611319651572312
},
{
"filename": "... | DbContextEntityProxy Create(DbContext context)
{ |
{
"list": [
{
"filename": "Services/RedisFactory.cs",
"retrieved_chunk": " /// </summary> \n public class RedisFactory : IRedisFactory\n {\n private static Lazy<IConnectionMultiplexer> _multiplexer;\n private static Lazy<IDatabase> _cache;\n private bool _disposed = false... |
using GraphNotifications.Models;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
using StackExchange.Redis;
using System;
using System.Text;
using System.Threading;
namespace GraphNotifications.Services
{
/// <summary>
/// Implements connection to Redis
/// ... |
_redisFactory = redisFactory;
_logger = logger;
}
public async Task<bool> AddAsync<T>(string key, T value, TimeSpan? expiry = default(TimeSpan?))
{
try
{
var redis = _redisFactory.GetCache();
if (redis == null) thr... | {
"context_start_lineno": 0,
"file": "Services/CacheService.cs",
"groundtruth_start_lineno": 22,
"repository": "microsoft-GraphNotificationBroker-b1564aa",
"right_context_start_lineno": 24,
"task_id": "project_cc_csharp/4113"
} | {
"list": [
{
"filename": "Services/CertificateService.cs",
"retrieved_chunk": " private byte[] _publicKeyBytes = null;\n private byte[] _privateKeyBytes = null;\n public CertificateService(IOptions<AppSettings> options, ILogger<CertificateService> logger)\n {\n ... | IRedisFactory redisFactory, ILogger<CacheService> logger)
{ |
{
"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 (cm == null) throw new ArgumentNullException(nameof(cm));
cm.Key = cm.Key.ToUpper();
cm.GUID = cm.GUID.ToUpper();
cm.VendorGUID = cm.VendorGUID.ToUpper();
if (ExistsByGuid(cm.GUID)) throw new ArgumentException("Object with GUID '" + cm.GUID + "' already ... | {
"context_start_lineno": 0,
"file": "src/RosettaStone.Core/Services/CodecMetadataService.cs",
"groundtruth_start_lineno": 157,
"repository": "jchristn-RosettaStone-898982c",
"right_context_start_lineno": 159,
"task_id": "project_cc_csharp/4147"
} | {
"list": [
{
"filename": "src/RosettaStone.Core/Services/VendorMetadataService.cs",
"retrieved_chunk": " return _ORM.SelectMany<VendorMetadata>(startIndex, maxResults, expr);\n }\n public VendorMetadata Add(VendorMetadata vm)\n {\n if (vm == null) throw new ... | CodecMetadata Add(CodecMetadata cm)
{ |
{
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Services/DTEService.cs",
"retrieved_chunk": "using LibreDteDotNet.Common;\nusing LibreDteDotNet.Common.Models;\nusing LibreDteDotNet.RestRequest.Infraestructure;\nusing LibreDteDotNet.RestRequest.Interfaces;\nusing Microsoft.Extensions.Configuratio... | using System.Net.Http.Json;
using System.Text.Json;
using System.Text.Json.Serialization;
using EnumsNET;
using LibreDteDotNet.Common;
using LibreDteDotNet.RestRequest.Infraestructure;
using LibreDteDotNet.RestRequest.Interfaces;
using LibreDteDotNet.RestRequest.Models.Request;
using LibreDteDotNet.RestRequest.Models... |
private readonly JsonSerializerOptions options =
new() { DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull };
private const string namesspace =
"cl.sii.sdi.lob.diii.consemitidos.data.api.interfaces.FacadeService/";
public LibroService(IRepositoryRest reposito... | {
"context_start_lineno": 0,
"file": "LibreDteDotNet.RestRequest/Services/LibroService.cs",
"groundtruth_start_lineno": 16,
"repository": "sergiokml-LibreDteDotNet.RestRequest-6843109",
"right_context_start_lineno": 17,
"task_id": "project_cc_csharp/4030"
} | {
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Services/DTEService.cs",
"retrieved_chunk": " private List<string> MensajeError { get; set; } = new List<string>();\n private List<string> MensajeWarning { get; set; } = new List<string>();\n private string Rut { get; }\n ... | IRepositoryRest repositoryRest; |
{
"list": [
{
"filename": "NonprofitVirtualAssistant/csharp/NonprofitVirtualAssistant/Bots/Bot.cs",
"retrieved_chunk": " _sentenceUpdate = new TaskCompletionSource<string>();\n }\n protected override async Task OnMessageActivityAsync(ITurnContext<IMessageActivity> turnContext,... | using Azure;
using Azure.AI.OpenAI;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Schema;
using NVA.Enums;
using NVA.Models;
using System.Collections.Concurrent;
using System.Net;
using System.Text;
namespace NVA.Services
{
public class ConversationManager
{
private const string CONVERSATION_STORE_K... |
try
{
using var token = new DisposableToken(turnContext.Activity.Conversation.Id);
var question = new ChatMessage(ChatRole.User, turnContext.Activity.Text);
// limit the size of the user question to a reasonable length
if (questi... | {
"context_start_lineno": 0,
"file": "NonprofitVirtualAssistant/csharp/NonprofitVirtualAssistant/Services/ConversationManager.cs",
"groundtruth_start_lineno": 54,
"repository": "microsoft-NonprofitVirtualAssistant-be69e9b",
"right_context_start_lineno": 57,
"task_id": "project_cc_csharp/4124"
} | {
"list": [
{
"filename": "NonprofitVirtualAssistant/csharp/NonprofitVirtualAssistant/Services/OpenAIService.cs",
"retrieved_chunk": "To write a fundraising letter Assistant will ask the user these details:\n1. What are your organization details and what is the programmatic focus of the requested fund... | ConversationResponse> GenerateResponse(
ITurnContext<IMessageActivity> turnContext, Action<string> updateCallback, CancellationToken cancellationToken)
{ |
{
"list": [
{
"filename": "source/ViewModels/NowPlayingPanelViewModel.cs",
"retrieved_chunk": " public ICommand AddGameCachesCommand { get; private set; }\n public ICommand InstallCachesCommand { get; private set; }\n public ICommand UninstallCachesCommand { get; private set; }\n ... | using NowPlaying.Utils;
using NowPlaying.Views;
using Playnite.SDK;
using System.Collections;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Windows;
using System.Windows.Input;
using static NowPlaying.ViewModels.CacheRootsViewModel;
namespace NowPlaying.ViewModels
{
publi... |
public CacheRootViewModel SelectedCacheRoot { get; set; }
public string EmptyRootsVisible => CacheRoots.Count > 0 ? "Collapsed" : "Visible";
public string NonEmptyRootsVisible => CacheRoots.Count > 0 ? "Visible" : "Collapsed";
public CacheRootsViewModel(NowPlaying plugin)
{
... | {
"context_start_lineno": 0,
"file": "source/ViewModels/CacheRootsViewModel.cs",
"groundtruth_start_lineno": 21,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 22,
"task_id": "project_cc_csharp/3976"
} | {
"list": [
{
"filename": "source/ViewModels/NowPlayingPanelViewModel.cs",
"retrieved_chunk": " public bool MultipleCacheRoots => plugin.cacheManager.CacheRoots.Count > 1;\n public string GameCachesVisibility => AreCacheRootsNonEmpty ? \"Visible\" : \"Collapsed\";\n public string ... | CacheRootViewModel> CacheRoots => plugin.cacheManager.CacheRoots; |
{
"list": [
{
"filename": "API/API.cs",
"retrieved_chunk": " var headers = GetEssentialHeaders();\n headers[\"Authorization\"] = \"Bearer \" + this.token?.Token;\n var path = \"req/api/self-tsp/sync/\" + Constants.PacketType.PACKET_TYPE_INQUIRY_BY_REFERENCE_NUMBER;\n ... | using Moadian.Dto;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace Moadian.Services
{
public class HttpClientService
... |
headers = FillEssentialHeaders(headers);
if (sign)
{
foreach (var packet in packets)
{
SignPacket(packet);
}
}
if (encrypt)
{
packets = EncryptPackets(packets);
... | {
"context_start_lineno": 0,
"file": "Services/HttpClientService.cs",
"groundtruth_start_lineno": 58,
"repository": "Torabi-srh-Moadian-482c806",
"right_context_start_lineno": 60,
"task_id": "project_cc_csharp/4131"
} | {
"list": [
{
"filename": "API/API.cs",
"retrieved_chunk": " packet.fiscalId = this.username;\n var headers = GetEssentialHeaders();\n headers[\"Authorization\"] = \"Bearer \" + this.token?.Token;\n var path = \"req/api/self-tsp/sync/\" + Constants.PacketTyp... | Packet> packets, Dictionary<string, string> headers, bool encrypt = false, bool sign = false)
{ |
{
"list": [
{
"filename": "source/ViewModels/CacheRootViewModel.cs",
"retrieved_chunk": " public long BytesAvailableForCaches { get; private set; }\n public string SpaceAvailableForCaches { get; private set; }\n public string SpaceAvailableForCachesColor => BytesAvailableForCaches... | using NowPlaying.Utils;
using NowPlaying.Models;
using System;
using System.Collections.Generic;
using System.IO;
namespace NowPlaying.ViewModels
{
public class GameCacheViewModel : ObservableObject
{
private readonly NowPlaying plugin;
public readonly GameCacheManagerViewModel manager;
... |
this.manager = manager;
this.plugin = manager.plugin;
this.entry = entry;
this.cacheRoot = cacheRoot;
this.nowInstalling = manager.IsPopulateInProgess(entry.Id);
this.PartialFileResume = false;
this.formatStringXofY = plugin.GetResour... | {
"context_start_lineno": 0,
"file": "source/ViewModels/GameCacheViewModel.cs",
"groundtruth_start_lineno": 86,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 88,
"task_id": "project_cc_csharp/3993"
} | {
"list": [
{
"filename": "source/ViewModels/CacheRootViewModel.cs",
"retrieved_chunk": " this.cachesAggregateSizeOnDisk = 0;\n SetMaxFillLevel(root.MaxFillLevel);\n UpdateGameCaches();\n }\n public void UpdateGameCaches()\n {\n GameCach... | GameCacheEntry entry, CacheRootViewModel cacheRoot)
{ |
{
"list": [
{
"filename": "Assets/SceneTools/Editor/Views/SceneSelectorWindow/SceneListItem/SceneItemView.cs",
"retrieved_chunk": "using System;\nusing Sandland.SceneTool.Editor.Common.Data;\nusing Sandland.SceneTool.Editor.Common.Utils;\nusing UnityEditor;\nusing UnityEditor.SceneManagement;\nusing U... | using System;
using Sandland.SceneTool.Editor.Common.Data;
using Sandland.SceneTool.Editor.Common.Utils;
using UnityEditor;
using UnityEngine.UIElements;
namespace Sandland.SceneTool.Editor.Views
{
internal class ThemeDisplay : RadioButton, IDisposable
{
public event Action< |
private readonly AssetFileInfo _themeInfo;
public ThemeDisplay(AssetFileInfo themeInfo) : base()
{
_themeInfo = themeInfo;
var visualTree = AssetDatabaseUtils.FindAndLoadVisualTreeAsset(nameof(ThemeDisplay));
visualTree.CloneTre... | {
"context_start_lineno": 0,
"file": "Assets/SceneTools/Editor/Views/SceneToolsSetupWindow/ThemeDisplay/ThemeDisplay.cs",
"groundtruth_start_lineno": 10,
"repository": "migus88-Sandland.SceneTools-64e9f8c",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/4053"
} | {
"list": [
{
"filename": "Assets/SceneTools/Editor/Views/SceneSelectorWindow/SceneListItem/SceneItemView.cs",
"retrieved_chunk": " {\n public const float FixedHeight = 100;\n private readonly Image _iconImage;\n private readonly FavoritesButton _favoritesButton;\n priva... | AssetFileInfo> Selected; |
{
"list": [
{
"filename": "Question.cs",
"retrieved_chunk": "using System;\nnamespace it\n{\n [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Auto)]\n public readonly struct Question\n {\n internal Question(string text, string answer)\n ... | using System;
using System.Collections.Generic;
using System.Linq;
namespace it
{
internal static class Questions
{
private static readonly Dictionary<string, string> questionDict = new Dictionary<string, string>(3, StringComparer.Ordinal)
{
//3 Question examples:
["Tes... |
return questionDict.Select(item => new Question(item.Key, item.Value)).ToList();
}
}
}
| {
"context_start_lineno": 0,
"file": "Questions.cs",
"groundtruth_start_lineno": 19,
"repository": "Teun-vdB-NotifySolver-88c06a6",
"right_context_start_lineno": 21,
"task_id": "project_cc_csharp/4042"
} | {
"list": [
{
"filename": "Question.cs",
"retrieved_chunk": "using System;\nnamespace it\n{\n [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Auto)]\n public readonly struct Question\n {\n internal Question(string text, string answer)\n ... | Question> LoadQuestions()
{ |
{
"list": [
{
"filename": "CubicMusic/Assets/_CubicMusic/Runtime/AudioManagement/AudioDataSources.cs",
"retrieved_chunk": " /// Interface for elements that provide audio data\n /// </summary>\n public interface IAudioDataSource\n {\n /// <summary>\n /// True if the audio sour... | /*
* Copyright (C) Antony Vitillo (aka Skarredghost), Perpetual eMotion 2023.
* Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace vrroom.CubicMusic.Audio
{
/// <summary>
//... |
/// <summary>
/// Array that contains the values we read from the audio source
/// </summary>
private float[] m_audioReadValue;
/// <summary>
/// Number of samples we read from the audio source
/// </summary>
private int m_samplesCount;
/// <su... | {
"context_start_lineno": 0,
"file": "CubicMusic/Assets/_CubicMusic/Runtime/AudioManagement/AudioAnalyzer.cs",
"groundtruth_start_lineno": 36,
"repository": "Perpetual-eMotion-DynaimicApps-46c94e0",
"right_context_start_lineno": 37,
"task_id": "project_cc_csharp/4039"
} | {
"list": [
{
"filename": "CubicMusic/Assets/_CubicMusic/Runtime/AudioManagement/AudioDataSources.cs",
"retrieved_chunk": " /// </summary>\n abstract int AudioChannels { get; }\n /// <summary>\n /// Gets the audio data from a specific channel of the audio source\n //... | IAudioDataSource m_audioDataSource; |
{
"list": [
{
"filename": "Views/Windows/MainWindow.xaml.cs",
"retrieved_chunk": " {\n WindowPlacement windowPlacement = SettingsManager.Instance.Settings.General.AppWindowPlacement;\n NativeMethods.SetWindowPlacementEx(_windowHandle, ref windowPlacement);\n ... | using System;
using System.Drawing;
using System.Runtime.InteropServices;
namespace SupernoteDesktopClient.Core.Win32Api
{
public sealed class NativeMethods
{
// imports
[DllImport("user32.dll")]
internal static extern bool SetForegroundWindow(IntPtr hWnd);
[DllImport("user32.d... |
WindowPlacement lpwndpl;
GetWindowPlacement(hWnd, out lpwndpl);
return lpwndpl;
}
public static Icon GetIcon(string path, ItemType type, IconSize iconSize, ItemState state)
{
uint attributes = (uint)(type == ItemType.Folder ? FileAttribute.Direc... | {
"context_start_lineno": 0,
"file": "Core/Win32Api/NativeMethods.cs",
"groundtruth_start_lineno": 58,
"repository": "nelinory-SupernoteDesktopClient-e527602",
"right_context_start_lineno": 60,
"task_id": "project_cc_csharp/4017"
} | {
"list": [
{
"filename": "Models/FileSystemObjectInfo.cs",
"retrieved_chunk": " {\n public DummyFileSystemObjectInfo()\n : base(new DirectoryInfo(\"DummyFileSystemObjectInfo\"))\n {\n }\n }\n}",
"score": 9.673278879397309
},
{
"filename": "Cor... | WindowPlacement GetWindowPlacementEx(IntPtr hWnd)
{ |
{
"list": [
{
"filename": "godot-project/Scripts/DataManagement/Downloader.cs",
"retrieved_chunk": "\t\tprivate byte[] data;\n\t\tprivate bool done;\n\t\tprivate string error;\n\t\tpublic Downloader(string url, Node downloaderParent)\n\t\t{\n\t\t\tthis.url = url;\n\t\t\tdownloaderParent.AddChild(this)... | //#define PRINT_DEBUG
using System;
using Godot;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Path = System.IO.Path;
using File = System.IO.File;
namespace GodotLauncher
{
public partial class LauncherManager : Control
{
[Export] private bool useLocalData;
private CheckBox insta... |
private Config config;
public override void _Ready()
{
GetWindow().Title = "Ready To Launch (Alpha)";
GetWindow().FilesDropped += _onFilesDropped;
DataPaths.CreateInstallationDirectory();
var configJson = DataPaths.ReadFile(ConfigFileName, "{}");
config = DataBuilder.LoadConfigFromJson(config... | {
"context_start_lineno": 0,
"file": "godot-project/Scripts/DataManagement/LauncherManager.cs",
"groundtruth_start_lineno": 42,
"repository": "NathanWarden-ready-to-launch-58eba6d",
"right_context_start_lineno": 43,
"task_id": "project_cc_csharp/4151"
} | {
"list": [
{
"filename": "godot-project/Scripts/DataManagement/Downloader.cs",
"retrieved_chunk": "\t\t\tdownloader.RequestCompleted += OnRequestCompleted;\n\t\t}\n\t\tvoid OnRequestCompleted(long result, long responseCode, string[] headers, byte[] body)\n\t\t{\n\t\t\tif (responseCode != (int)HttpCli... | Downloader> downloaders = new (); |
{
"list": [
{
"filename": "Microsoft.Build.Utilities/DependencyTableCacheEntry.cs",
"retrieved_chunk": " public ITaskItem[] TlogFiles { get; }\n public DateTime TableTime { get; }\n public IDictionary DependencyTable { get; }\n internal DependencyTableCacheEntry(ITaskItem[]... | using Microsoft.Build.Framework;
using Microsoft.Build.Shared;
using System;
using System.Collections.Generic;
using System.Text;
namespace Microsoft.Build.Utilities
{
internal static class DependencyTableCache
{
private class TaskItemItemSpecIgnoreCaseComparer : IEqualityComparer<ITaskItem>
{
... |
if (DependencyTable.TryGetValue(tLogRootingMarker, out var value))
{
if (DependencyTableIsUpToDate(value))
{
return value;
}
DependencyTable.Remove(tLogRootingMarker);
}
return null;
... | {
"context_start_lineno": 0,
"file": "Microsoft.Build.Utilities/DependencyTableCache.cs",
"groundtruth_start_lineno": 56,
"repository": "Chuyu-Team-MSBuildCppCrossToolset-6c84a69",
"right_context_start_lineno": 58,
"task_id": "project_cc_csharp/3911"
} | {
"list": [
{
"filename": "Microsoft.Build.Utilities/DependencyTableCacheEntry.cs",
"retrieved_chunk": " TlogFiles[i] = new TaskItem(text);\n DateTime lastWriteFileUtcTime = NativeMethods.GetLastWriteFileUtcTime(text);\n if (lastWriteFileUtcTime > TableTime... | DependencyTableCacheEntry GetCachedEntry(string tLogRootingMarker)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/StateStoreBuilder.cs",
"retrieved_chunk": " throw new ObjectDisposedException(nameof(StateStoreBuilder<TContext>));\n }\n var result = new StateStore<TContext>(\n initialState,\n ... | #nullable enable
using System;
using System.Collections.Generic;
namespace Mochineko.RelentStateMachine
{
public sealed class TransitionMapBuilder<TEvent, TContext>
: ITransitionMapBuilder<TEvent, TContext>
{
private readonly IState<TEvent, TContext> initialState;
private readonly List<... |
var result = new Dictionary<
IState<TEvent, TContext>,
IReadOnlyDictionary<TEvent, IState<TEvent, TContext>>>();
foreach (var (key, value) in transitionMap)
{
result.Add(key, value);
}
return result;
}
... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/RelentStateMachine/TransitionMapBuilder.cs",
"groundtruth_start_lineno": 116,
"repository": "mochi-neko-RelentStateMachine-64762eb",
"right_context_start_lineno": 120,
"task_id": "project_cc_csharp/4108"
} | {
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/StateStoreBuilder.cs",
"retrieved_chunk": " throw new ObjectDisposedException(nameof(StateStoreBuilder<TContext>));\n }\n var result = new StateStore<TContext>(\n initialState,\n ... | IState<TEvent, TContext>,
IReadOnlyDictionary<TEvent, IState<TEvent, TContext>>>
BuildReadonlyTransitionMap()
{ |
{
"list": [
{
"filename": "SemanticXamlPrint.PDF/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(TemplateCompone... | using PdfSharpCore.Drawing;
using PdfSharpCore.Pdf;
using SemanticXamlPrint.Parser.Components;
using System;
namespace SemanticXamlPrint.PDF.NetCore
{
public static class DefaultXamlXGraphics
{
public static float DrawXamlComponent(this XGraphics graphics, IXamlComponent xamlComponent, float yPositionD... |
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.NetCore/DefaultXamlXGraphics.cs",
"groundtruth_start_lineno": 21,
"repository": "swagfin-SemanticXamlPrint-41d87fa",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/4109"
} | {
"list": [
{
"filename": "SemanticXamlPrint.PDF/DefaultXamlXGraphics.cs",
"retrieved_chunk": " public static float DrawXamlComponent(this PdfDocument document, IXamlComponent xamlComponent, float yPositionDraw = 0, PdfSharp.PageOrientation pageOrientation = PdfSharp.PageOrientation.Portrait)\n... | IXamlComponent xamlComponent, float yPositionDraw = 0, PdfSharpCore.PageOrientation pageOrientation = PdfSharpCore.PageOrientation.Portrait)
{ |
{
"list": [
{
"filename": "IwaraDownloader/ExtensionMethods.cs",
"retrieved_chunk": "using Microsoft.Data.Sqlite;\nusing System.Collections;\nusing System.Collections.ObjectModel;\nusing System.Security.Cryptography;\nusing System.Text;\nusing System.Text.Json;\nnamespace Dawnlc.Module\n{\n public... | using Microsoft.Data.Sqlite;
using System.Collections.Specialized;
using System.Text.Json;
using static Dawnlc.Module.Utils;
using System.Collections.ObjectModel;
namespace Dawnlc.Module
{
public class Database
{
public ObservableCollection< | get; set; }
private static SqliteConnection DBConnect { get; set; } = new SqliteConnection($"Data Source={Path.Combine(Env.Path, $"{Env.Name}.db")}");
private static SqliteDataReader ExecuteReaderCommand(string command)
{
SqliteCommand DBCommand = DBConnect.CreateCommand();
... | {
"context_start_lineno": 0,
"file": "IwaraDownloader/Database.cs",
"groundtruth_start_lineno": 10,
"repository": "dawn-lc-IwaraDownloader-9a8b7ca",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/4184"
} | {
"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... | Video> Videos { |
{
"list": [
{
"filename": "src/RosettaStone.Core/Services/CodecMetadataService.cs",
"retrieved_chunk": "namespace RosettaStone.Core.Services\n{\n public class CodecMetadataService\n {\n #region Public-Members\n #endregion\n #region Private-Members\n private LoggingMod... | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using GetSomeInput;
using RosettaStone.Core;
using RosettaStone.Core.Services;
using SyslogLogging;
using Watson.ORM;
using WatsonWebserver;
namespace RosettaStone.Server
{
publ... |
private static WatsonWebserver.Server _Server = null;
#endregion
#region Entrypoint
public static void Main(string[] args)
{
Welcome();
InitializeSettings(args);
InitializeGlobals();
if (_Settings.EnableConsole)
{
... | {
"context_start_lineno": 0,
"file": "src/RosettaStone.Server/Program.cs",
"groundtruth_start_lineno": 33,
"repository": "jchristn-RosettaStone-898982c",
"right_context_start_lineno": 34,
"task_id": "project_cc_csharp/4189"
} | {
"list": [
{
"filename": "src/RosettaStone.Core/Services/CodecMetadataService.cs",
"retrieved_chunk": " #region Constructors-and-Factories\n public CodecMetadataService(LoggingModule logging, WatsonORM orm)\n {\n _Logging = logging ?? throw new ArgumentNullException(na... | VendorMetadataService _Vendors = null; |
{
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Expressions/ExpressionImplementationFinder.cs",
"retrieved_chunk": " }\n /// <inheritdoc/>\n public IEnumerable<Type> Find<TEntity>(Expression expression)\n {\n // 访问器\n ... | using Microsoft.EntityFrameworkCore;
using Ryan.EntityFrameworkCore.Expressions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace Ryan.EntityFrameworkCore.Builder
{
/// <summary>
/// 实体模型构建器接口
/// </summary>
public interface IEntityModelBuilder... |
/// <summary>
/// 获取表名
/// </summary>
string GetTableName(Dictionary<string, string> value);
}
/// <summary>
/// 实体模型构造器
/// </summary>
public abstract class EntityModelBuilder<TEntity> : IEntityModelBuilder where TEntity : class
{
/// <summary>
... | {
"context_start_lineno": 0,
"file": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Builder/EntityModelBuilder.cs",
"groundtruth_start_lineno": 18,
"repository": "c-y-r-Ryan.EntityFrameworkCore.Shard-f15124c",
"right_context_start_lineno": 19,
"task_id": "project_cc_csharp/4073"
} | {
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Expressions/EntityExpressionVisitor`.cs",
"retrieved_chunk": " /// <param name=\"value\">表达式值</param>\n /// <returns>是否添加成功</returns>\n protected virtual bool AddExpressionValue(TValue value)\n ... | EntityExpressionVisitor> GetExpressionVisitors(); |
{
"list": [
{
"filename": "Views/Pages/SettingsPage.xaml.cs",
"retrieved_chunk": "using Wpf.Ui.Common.Interfaces;\nnamespace SupernoteDesktopClient.Views.Pages\n{\n /// <summary>\n /// Interaction logic for SettingsPage.xaml\n /// </summary>\n public partial class SettingsPage : INavigabl... | using Wpf.Ui.Common.Interfaces;
namespace SupernoteDesktopClient.Views.Pages
{
/// <summary>
/// Interaction logic for SyncPage.xaml
/// </summary>
public partial class SyncPage : INavigableView<ViewModels. |
public ViewModels.SyncViewModel ViewModel
{
get;
}
public SyncPage(ViewModels.SyncViewModel viewModel)
{
ViewModel = viewModel;
InitializeComponent();
}
}
}
| {
"context_start_lineno": 0,
"file": "Views/Pages/SyncPage.xaml.cs",
"groundtruth_start_lineno": 7,
"repository": "nelinory-SupernoteDesktopClient-e527602",
"right_context_start_lineno": 9,
"task_id": "project_cc_csharp/4043"
} | {
"list": [
{
"filename": "Views/Pages/SettingsPage.xaml.cs",
"retrieved_chunk": " get;\n }\n public SettingsPage(ViewModels.SettingsViewModel viewModel)\n {\n ViewModel = viewModel;\n InitializeComponent();\n }\n }\n}",
"score": 54... | SyncViewModel>
{ |
{
"list": [
{
"filename": "Common.cs",
"retrieved_chunk": " return fun.Invoke(aToken);\n }\n /// <summary>\n /// 运行\n /// </summary>\n /// <typeparam name=\"T\">对象</typeparam>\n /// <param name=\"path\">请求路径</param>\n /// <param name=\"data\"... | using FayElf.Plugins.WeChat.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 result = new HttpRequest
{
Address = $"{HttpApi.HOST}/cgi-bin/wxaapp/createwxaqrcode?access_token={token.A... | {
"context_start_lineno": 0,
"file": "Applets/Applets.cs",
"groundtruth_start_lineno": 327,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 329,
"task_id": "project_cc_csharp/4083"
} | {
"list": [
{
"filename": "Common.cs",
"retrieved_chunk": " public static T Execute<T>(string path, string data, Func<int, string>? errorMessage = null) where T : BaseResult, new()\n {\n var result = new HttpRequest()\n {\n Address = HttpApi.HOST + pa... | QrCodeResult CreateQRCode(string path, int width)
{ |
{
"list": [
{
"filename": "Support/Models/SupportGrpc.cs",
"retrieved_chunk": " [global::System.CodeDom.Compiler.GeneratedCode(\"grpc_csharp_plugin\", null)]\n static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser<T> parser) where T :... | // <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Customer.proto
// </auto-generated>
#pragma warning disable 0414, 1591, 8981
#region Designer generated code
using grpc = global::Grpc.Core;
namespace Customer {
public static partial class CustomerService
{
sta... |
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller<global::Customer.ChatMessageResponse> __Marshaller_customer_ChatMessageResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Customer.Cha... | {
"context_start_lineno": 0,
"file": "Server/Models/CustomerGrpc.cs",
"groundtruth_start_lineno": 48,
"repository": "behdad088-gRPC-SupportChat-fbe7bbe",
"right_context_start_lineno": 49,
"task_id": "project_cc_csharp/4092"
} | {
"list": [
{
"filename": "Support/Models/SupportGrpc.cs",
"retrieved_chunk": " }\n [global::System.CodeDom.Compiler.GeneratedCode(\"grpc_csharp_plugin\", null)]\n static readonly grpc::Marshaller<global::Support.AddSupportEngineerRequest> __Marshaller_support_AddSupportEngineerRequest = grpc... | ChatMessageRequest> __Marshaller_customer_ChatMessageRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Customer.ChatMessageRequest.Parser)); |
{
"list": [
{
"filename": "ClipboardMonitor.cs",
"retrieved_chunk": "using System;\nusing System.ComponentModel;\nusing System.Runtime.InteropServices;\nusing System.Windows.Forms;\nnamespace it\n{\n internal sealed class ClipboardChangedEventArgs : EventArgs\n {\n public ClipboardChange... | using System;
using System.Windows.Forms;
namespace it
{
internal static class Program
{
private static |
[STAThread]
private static void Main()
{
bootstrap = new Bootstrap();
Application.Run();
}
}
}
| {
"context_start_lineno": 0,
"file": "Program.cs",
"groundtruth_start_lineno": 7,
"repository": "Teun-vdB-NotifySolver-88c06a6",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/4082"
} | {
"list": [
{
"filename": "ClipboardMonitor.cs",
"retrieved_chunk": " DataObject = dataObject;\n }\n public IDataObject DataObject { get; }\n }\n [DefaultEvent(\"ClipboardChanged\")]\n internal sealed class ClipboardMonitor : Control\n {\n private IntPtr Nex... | Bootstrap bootstrap; |
{
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Builder/EntityImplementation.cs",
"retrieved_chunk": "using System;\nnamespace Ryan.EntityFrameworkCore.Builder\n{\n /// <summary>\n /// 实体实现\n /// </summary>\n public class EntityImplementation\n {\n ... | using System;
using System.Collections.Generic;
namespace Ryan.EntityFrameworkCore.Builder
{
/// <summary>
/// 实体实现字典
/// </summary>
public class EntityImplementationDictionary : Dictionary<string, |
/// <summary>
/// 实体类型
/// </summary>
public Type EntityType { get; }
/// <summary>
/// 创建实体实现字典
/// </summary>
public EntityImplementationDictionary(Type entityType)
{
EntityType = entityType;
}
}
}
| {
"context_start_lineno": 0,
"file": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Builder/EntityImplementationDictionary.cs",
"groundtruth_start_lineno": 8,
"repository": "c-y-r-Ryan.EntityFrameworkCore.Shard-f15124c",
"right_context_start_lineno": 10,
"task_id": "project_cc_csharp/4096"
} | {
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Builder/EntityModelBuilder.cs",
"retrieved_chunk": " /// </summary>\n public interface IEntityModelBuilder\n {\n /// <summary>\n /// 获取访问器\n /// </summary>\n /// <returns></returns>\n... | EntityImplementation>
{ |
{
"list": [
{
"filename": "WAGIapp/AI/AICommands/SearchWebCommand.cs",
"retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace WAGIapp.AI.AICommands\n{\n internal class SearchWebCommand : Command\n {\... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WAGIapp.AI.AICommands
{
internal class GoalReachedCommand : Command
{
public override string Name => "goal-reached";
public override string |
public override string Format => "goal-reached";
public override async Task<string> Execute(Master caller, string[] args)
{
caller.Done = true;
return "done.";
}
}
}
| {
"context_start_lineno": 0,
"file": "WAGIapp/AI/AICommands/GoalReachedCommand.cs",
"groundtruth_start_lineno": 12,
"repository": "Woltvint-WAGI-d808927",
"right_context_start_lineno": 13,
"task_id": "project_cc_csharp/4162"
} | {
"list": [
{
"filename": "WAGIapp/AI/AICommands/SearchWebCommand.cs",
"retrieved_chunk": " public override string Description => \"Searches the web and returns a list of links and descriptions\";\n public override string Format => \"search-web | querry\";\n public override async ... | Description => "Command that you must call when you reach the main goal"; |
{
"list": [
{
"filename": "Views/Pages/SyncPage.xaml.cs",
"retrieved_chunk": "using Wpf.Ui.Common.Interfaces;\nnamespace SupernoteDesktopClient.Views.Pages\n{\n /// <summary>\n /// Interaction logic for SyncPage.xaml\n /// </summary>\n public partial class SyncPage : INavigableView<ViewMo... | using Wpf.Ui.Common.Interfaces;
namespace SupernoteDesktopClient.Views.Pages
{
/// <summary>
/// Interaction logic for SettingsPage.xaml
/// </summary>
public partial class SettingsPage : INavigableView<ViewModels. |
public ViewModels.SettingsViewModel ViewModel
{
get;
}
public SettingsPage(ViewModels.SettingsViewModel viewModel)
{
ViewModel = viewModel;
InitializeComponent();
}
}
} | {
"context_start_lineno": 0,
"file": "Views/Pages/SettingsPage.xaml.cs",
"groundtruth_start_lineno": 7,
"repository": "nelinory-SupernoteDesktopClient-e527602",
"right_context_start_lineno": 9,
"task_id": "project_cc_csharp/4055"
} | {
"list": [
{
"filename": "Views/Pages/SyncPage.xaml.cs",
"retrieved_chunk": " get;\n }\n public SyncPage(ViewModels.SyncViewModel viewModel)\n {\n ViewModel = viewModel;\n InitializeComponent();\n }\n }\n}",
"score": 54.04457903059... | SettingsViewModel>
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/Virtue.cs",
"retrieved_chunk": " class Virtue_SpawnInsignia_Patch\n {\n static bool Prefix(Drone __instance, ref EnemyIdentifier ___eid, ref int ___difficulty, ref Transform ___target, ref int ___usedAttacks)\n {\n if (___eid.... | using HarmonyLib;
using 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
... |
Vector3 vector = __instance.transform.position + Vector3.up;
if (Physics.Raycast(vector, ___target.position - vector, Vector3.Distance(___target.position, vector), LayerMaskDefaults.Get(LMD.Environment)))
{
vector = __instance.transform.position + Vector3.up * 5f;
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/SisyphusInstructionist.cs",
"groundtruth_start_lineno": 153,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 155,
"task_id": "project_cc_csharp/4037"
} | {
"list": [
{
"filename": "Ultrapain/Patches/SwordsMachine.cs",
"retrieved_chunk": " }\n class ThrownSwordCollisionDetector : MonoBehaviour\n {\n public bool exploded = false;\n public void OnCollisionEnter(Collision other)\n {\n if (exploded)\n ... | Sisyphus __instance, Transform ___target, EnemyIdentifier ___eid)
{ |
{
"list": [
{
"filename": "EF012.CodeFirstMigration/Program.cs",
"retrieved_chunk": "using EF012.CodeFirstMigration.Data;\nusing Microsoft.EntityFrameworkCore;\nnamespace EF012.CodeFirstMigration\n{\n class Program\n {\n public static void Main(string[] args)\n {\n usin... | using EF012.CodeFirstMigration.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
namespace EF012.CodeFirstMigration.Data
{
public class AppDbContext : DbContext
{
public DbSet< | get; set; }
public DbSet<Instructor> Instructors { get; set; }
public DbSet<Office> Offices { get; set; }
public DbSet<Section> Sections { get; set; }
public DbSet<Schedule> Schedules { get; set; }
public DbSet<Student> Students { get; set; }
public DbSet<Enrollment> Enr... | {
"context_start_lineno": 0,
"file": "EF012.CodeFirstMigration/Data/AppDbContext.cs",
"groundtruth_start_lineno": 8,
"repository": "metigator-EF012-054d65d",
"right_context_start_lineno": 9,
"task_id": "project_cc_csharp/4145"
} | {
"list": [
{
"filename": "EF012.CodeFirstMigration/Program.cs",
"retrieved_chunk": " var sections = context.Sections\n .Include(x => x.Course)\n .Include(x => x.Instructor)\n .Include(x => x.Schedule);\n Console.Wr... | Course> Courses { |
{
"list": [
{
"filename": "JWLSLMerge.Data/Models/Bookmark.cs",
"retrieved_chunk": " public string Title { get; set; } = null!;\n public string? Snippet { get; set; }\n public int BlockType { get; set; }\n public int? BlockIdentifier { get; set; }\n }\n}",
"score":... | using JWLSLMerge.Data.Attributes;
namespace JWLSLMerge.Data.Models
{
public class Note
{
[Ignore]
public int NoteId { get; set; }
public string Guid { get; set; } = null!;
public int? UserMarkId { get; set; }
public int? LocationId { get; set; }
public string? Ti... | get; set; }
}
}
| {
"context_start_lineno": 0,
"file": "JWLSLMerge.Data/Models/Note.cs",
"groundtruth_start_lineno": 18,
"repository": "pliniobrunelli-JWLSLMerge-7fe66dc",
"right_context_start_lineno": 20,
"task_id": "project_cc_csharp/4188"
} | {
"list": [
{
"filename": "JWLSLMerge.Data/Models/Bookmark.cs",
"retrieved_chunk": " public string Title { get; set; } = null!;\n public string? Snippet { get; set; }\n public int BlockType { get; set; }\n public int? BlockIdentifier { get; set; }\n }\n}",
"score":... | Ignore]
public int NewNoteId { |
{
"list": [
{
"filename": "src/SQLServerCoverageLib/Parsers/TSqlParserBuilder.cs",
"retrieved_chunk": "using System;\nusing Microsoft.SqlServer.TransactSql.ScriptDom;\nusing SQLServerCoverage.Objects;\nnamespace SQLServerCoverage.Parsers\n{\n internal static class TSqlParserBuilder\n {\n ... | using System.Collections.Generic;
using System.IO;
using System;
using Microsoft.SqlServer.TransactSql.ScriptDom;
using SQLServerCoverage.Objects;
namespace SQLServerCoverage.Parsers
{
public class StatementParser
{
private readonly |
public StatementParser(SqlServerVersion version)
{
_version = version;
}
public List<Statement> GetChildStatements(string script, bool quotedIdentifier)
{
try
{
var visitor = new StatementVisitor(script);
var ... | {
"context_start_lineno": 0,
"file": "src/SQLServerCoverageLib/Parsers/StatementParser.cs",
"groundtruth_start_lineno": 10,
"repository": "sayantandey-SQLServerCoverage-aea57e3",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/4133"
} | {
"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... | SqlServerVersion _version; |
{
"list": [
{
"filename": "Ultrapain/Patches/Leviathan.cs",
"retrieved_chunk": " class Leviathan_FixedUpdate\n {\n public static float projectileForward = 10f;\n static bool Roll(float chancePercent)\n {\n return UnityEngine.Random.Range(0, 99.9f) <= chancePercent... | 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... |
Grenade grn = __0.GetComponent<Grenade>();
if(grn != null)
{
if (grn.rocket && !ConfigManager.rocketBoostToggle.value)
return true;
if (!ConfigManager.grenadeBoostToggle.value)
return true;
Mono... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Parry.cs",
"groundtruth_start_lineno": 25,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 27,
"task_id": "project_cc_csharp/4033"
} | {
"list": [
{
"filename": "Ultrapain/Patches/OrbitalStrike.cs",
"retrieved_chunk": " {\n GameObject.Destroy(__instance.blastWave);\n __instance.blastWave = Plugin.explosionWaveKnuckleblaster;\n }\n }\n class Explosion_Collide\n {\n static bool Prefix... | Transform __0, ref bool __result, ref bool ___hitSomething, Animator ___anim)
{ |
{
"list": [
{
"filename": "Source/TreeifyTask/TaskTree/TaskNodeCycleDetectedException.cs",
"retrieved_chunk": "using System;\nusing System.Runtime.Serialization;\nnamespace TreeifyTask\n{\n [Serializable]\n public class TaskNodeCycleDetectedException : Exception\n {\n public ITaskNode... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using TreeifyTask;
using System.Linq;
namespace TreeifyTask.Test
{
[TestClass]
public class TaskNodeTest
{
[TestMethod]
[ExpectedException(typeof( |
var t1 = new TaskNode("t1");
var t2 = new TaskNode("t2");
var t3 = new TaskNode("t3");
var t4 = new TaskNode("t4");
t1.AddChild(t2);
t2.AddChild(t3);
t2.AddChild(t4);
t3.AddChild(t4);
}
[TestMethod]
... | {
"context_start_lineno": 0,
"file": "Test/TreeifyTask.Test/TaskNodeTest.cs",
"groundtruth_start_lineno": 10,
"repository": "intuit-TreeifyTask-4b124d4",
"right_context_start_lineno": 13,
"task_id": "project_cc_csharp/4175"
} | {
"list": [
{
"filename": "Source/TreeifyTask.BlazorSample/Program.cs",
"retrieved_chunk": " public class Program\n {\n public static void Main(string[] args)\n {\n CreateHostBuilder(args).Build().Run();\n }\n public static IHostBuilder CreateHostBuilder(st... | TaskNodeCycleDetectedException))]
public void TestCycleDetection()
{ |
{
"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 minosPrime;
//public static GameObject maliciousFace;
public static GameObject somethingWicked;
public static Turret turret;
public static GameObject turretFinalFlash;
public static GameObject enrageEffect;
public static GameObject v2fla... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 95,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 96,
"task_id": "project_cc_csharp/4063"
} | {
"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 ferryman; |
{
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/Blink/CompositeEyelidMorpher.cs",
"retrieved_chunk": " /// <summary>\n /// Creates a new instance of <see cref=\"CompositeEyelidMorpher\"/>.\n /// </summary>\n /// <param name=\"morphers\">Composited morphers.</p... | #nullable enable
using System.Collections.Generic;
namespace Mochineko.FacialExpressions.LipSync
{
/// <summary>
/// Composition of some <see cref="Mochineko.FacialExpressions.LipSync.ILipMorpher"/>s.
/// </summary>
public sealed class CompositeLipMorpher : ILipMorpher
{
private readonly IR... |
foreach (var morpher in morphers)
{
morpher.MorphInto(sample);
}
}
float ILipMorpher.GetWeightOf(Viseme viseme)
{
return morphers[0].GetWeightOf(viseme);
}
void ILipMorpher.Reset()
{
foreach (v... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/FacialExpressions/LipSync/CompositeLipMorpher.cs",
"groundtruth_start_lineno": 21,
"repository": "mochi-neko-facial-expressions-unity-ab0d020",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/4104"
} | {
"list": [
{
"filename": "Assets/Mochineko/FacialExpressions/Blink/CompositeEyelidMorpher.cs",
"retrieved_chunk": " foreach (var morpher in morphers)\n {\n morpher.MorphInto(sample);\n }\n }\n float IEyelidMorpher.GetWeightOf(Eyelid eyelid... | ILipMorpher.MorphInto(LipSample sample)
{ |
{
"list": [
{
"filename": "src/apphost-extract/apphost-extract-v2/Models/General/IApphostFile.cs",
"retrieved_chunk": " internal FileStream FileStream;\n public PEHeaders PEHeader;\n public AppHostFileHeader Header;\n public IApphostFile(FileStream fs, PEHeaders peheader)\n... | using apphost_extract_v2.General;
using apphost_extract_v2.Models;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection.PortableExecutable;
using System.Text;
using static apphost_extract_v2.Util;
namespace apphost_extract_v2
{
public... |
switch (versionString)
{
case "3.0":
return new ApphostFile30(File, PEHeader, headerOffset);
case "3.1":
return new ApphostFile31(File, PEHeader, headerOffset);
case "5.0":
return new App... | {
"context_start_lineno": 0,
"file": "src/apphost-extract/apphost-extract-v2/Analyzer.cs",
"groundtruth_start_lineno": 69,
"repository": "VollRagm-apphost-extract-739a585",
"right_context_start_lineno": 71,
"task_id": "project_cc_csharp/4209"
} | {
"list": [
{
"filename": "src/apphost-extract/apphost-extract/AppHostFile.cs",
"retrieved_chunk": " public void ExtractAll(string outputDir)\n {\n Directory.CreateDirectory(outputDir);\n foreach (var fileEntry in Header.Manifest.FileEntries)\n {\n ... | IApphostFile Open(string versionString, uint headerOffset)
{ |
{
"list": [
{
"filename": "src/OGXbdmDumper/ConnectionInfo.cs",
"retrieved_chunk": " public IPEndPoint Endpoint { get; set; }\n public string? Name { get; set; }\n public ConnectionInfo(IPEndPoint endpoint, string? name = null)\n {\n Endpoint = endpoint;\n ... | 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... |
return ConnectionInfo.DiscoverXbdm(731, timeout);
}
public void Connect(IPEndPoint endpoint)
{
Connect(endpoint.Address.ToString(), endpoint.Port);
}
public void Connect(int timeout = 500)
{
Connect(Discover(timeout).First().Endpoint... | {
"context_start_lineno": 0,
"file": "src/OGXbdmDumper/Xbox.cs",
"groundtruth_start_lineno": 113,
"repository": "Ernegien-OGXbdmDumper-07a1e82",
"right_context_start_lineno": 115,
"task_id": "project_cc_csharp/4233"
} | {
"list": [
{
"filename": "src/OGXbdmDumper/ScratchBuffer.cs",
"retrieved_chunk": " /// </summary>\n /// <param name=\"data\"></param>\n /// <returns>Returns the allocation address.</returns>\n public uint Alloc<T>(T data)\n {\n // keep track of the alloca... | ConnectionInfo> Discover(int timeout = 500)
{ |
{
"list": [
{
"filename": "WAGIapp/AI/AICommands/SearchWebCommand.cs",
"retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nnamespace WAGIapp.AI.AICommands\n{\n internal class SearchWebCommand : Command\n {\... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace WAGIapp.AI.AICommands
{
internal class NoActionCommand : Command
{
public override string Name => "no-action";
publ... |
public override string Format => "no-action";
public override async Task<string> Execute(Master caller, string[] args)
{
return "command did nothing";
}
}
}
| {
"context_start_lineno": 0,
"file": "WAGIapp/AI/AICommands/NoActionCommand.cs",
"groundtruth_start_lineno": 13,
"repository": "Woltvint-WAGI-d808927",
"right_context_start_lineno": 14,
"task_id": "project_cc_csharp/4223"
} | {
"list": [
{
"filename": "WAGIapp/AI/AICommands/SearchWebCommand.cs",
"retrieved_chunk": " public override string Description => \"Searches the web and returns a list of links and descriptions\";\n public override string Format => \"search-web | querry\";\n public override async ... | Description => "does nothing"; |
{
"list": [
{
"filename": "ChatGPTInterface/ChatGPT.cs",
"retrieved_chunk": "namespace ChatGPTInterface\n{\n public class ChatGPT : IChatGPT\n {\n private readonly IConfiguration _configuration;\n private readonly ApplicationDbContext _context;\n public ChatGPT(\n ... | using AI.Dev.OpenAI.GPT;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using SemanticSearch;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Transactions;
namespace ChatGPTInterface
{
public class Know... |
KnowledgeRecord recordAdded;
using (var transactionScope = new TransactionScope())
{
try
{
List<int> tokens = GPT3Tokenizer.Encode(newRecord.Content);
newRecord.Tokens = tokens.Count;
// Ah... | {
"context_start_lineno": 0,
"file": "ChatGPTInterface/KnowledgeRecordManager.cs",
"groundtruth_start_lineno": 31,
"repository": "TaxAIExamples-semantic-search-using-chatgpt-a90ef71",
"right_context_start_lineno": 33,
"task_id": "project_cc_csharp/4211"
} | {
"list": [
{
"filename": "ChatGPTInterface/ChatGPT.cs",
"retrieved_chunk": " {\n _configuration = configuration;\n _context = context;\n }\n public EmbeddingResponse GetEmbedding(string embedding)\n {\n string apiKey = Environment.GetEnviro... | KnowledgeRecord AddRecord(KnowledgeRecord newRecord)
{ |
{
"list": [
{
"filename": "OfficialAccount/Model/IndustryTemplateSendData.cs",
"retrieved_chunk": " [Description(\"模板跳转链接(海外帐号没有跳转能力)\"), JsonElement(\"url\"), OmitEmptyNode]\n public string Url { get; set; }\n /// <summary>\n /// 跳小程序所需数据,不需跳小程序可不用传该数据\n /// </summa... | using System;
using System.Collections.Generic;
using System.Text;
using XiaoFeng;
using XiaoFeng.Json;
using System.ComponentModel;
/****************************************************************
* Copyright © (2022) www.fayelf.com All Rights Reserved. *
* Author : jacky ... | get; set; }
#endregion
#region 方法
#endregion
}
} | {
"context_start_lineno": 0,
"file": "Applets/Model/UniformSendData.cs",
"groundtruth_start_lineno": 72,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 73,
"task_id": "project_cc_csharp/4116"
} | {
"list": [
{
"filename": "OfficialAccount/Model/IndustryTemplateSendData.cs",
"retrieved_chunk": " [Description(\"模板数据\"), JsonElement(\"data\")] \n public Dictionary<string, ValueColor> Data { get; set; }\n #endregion\n #region 方法\n #endregion\n }\n /// <summ... | ValueColor> data { |
{
"list": [
{
"filename": "LootingBots/logics/LootingLogic.cs",
"retrieved_chunk": " internal class LootingLogic : CustomLogic\n {\n private readonly LootingBrain _lootingBrain;\n private readonly BotLog _log;\n private float _closeEnoughTimer = 0f;\n private float _m... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Comfort.Common;
using EFT;
using EFT.InventoryLogic;
using LootingBots.Patch.Util;
using UnityEngine;
namespace LootingBots.Patch.Components
{
public class GearValu... |
try
{
_log = new BotLog(LootingBots.LootLog, botOwner);
_lootingBrain = lootingBrain;
_isBoss = LootUtils.IsBoss(botOwner);
_itemAppraiser = LootingBots.ItemAppraiser;
// Initialize bot inventory controller
... | {
"context_start_lineno": 0,
"file": "LootingBots/components/InventoryController.cs",
"groundtruth_start_lineno": 101,
"repository": "Skwizzy-SPT-LootingBots-76279a3",
"right_context_start_lineno": 103,
"task_id": "project_cc_csharp/4022"
} | {
"list": [
{
"filename": "LootingBots/logics/LootingLogic.cs",
"retrieved_chunk": " : base(botOwner)\n {\n _log = new BotLog(LootingBots.LootLog, botOwner);\n _lootingBrain = botOwner.GetPlayer.gameObject.GetComponent<LootingBrain>();\n }\n public... | LootingBrain lootingBrain)
{ |
{
"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 Turret turret;
public static GameObject turretFinalFlash;
public static GameObject enrageEffect;
public static GameObject v2flashUnparryable;
public static GameObject ricochetSfx;
public static GameObject parryableFlash;
public static AudioClip ca... | {
"context_start_lineno": 0,
"file": "Ultrapain/Plugin.cs",
"groundtruth_start_lineno": 98,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 99,
"task_id": "project_cc_csharp/4078"
} | {
"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 somethingWicked; |
{
"list": [
{
"filename": "YY.Build.Cross.Tasks/Cross/Compile.cs",
"retrieved_chunk": " protected override bool GenerateCostomCommandsAccordingToType(CommandLineBuilder builder, string switchName, bool dummyForBackwardCompatibility, CommandLineFormat format = CommandLineFormat.ForBuildLog, Esca... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Resources;
using System.Text;
using System.Text.RegularExpressions;
using Microsoft.Build.CPPTasks;
using Microsoft.Build.Framework;
using Microsoft.Build.Shared;
using Microsoft.Build.Uti... |
StringBuilder stringBuilder = new StringBuilder();
bool flag = false;
string text = string.Empty;
if (property.ArgumentRelationList != null)
{
foreach (ArgumentRelation argumentRelation in property.ArgumentRelationList)
{
... | {
"context_start_lineno": 0,
"file": "Microsoft.Build.CPPTasks/VCToolTask.cs",
"groundtruth_start_lineno": 469,
"repository": "Chuyu-Team-MSBuildCppCrossToolset-6c84a69",
"right_context_start_lineno": 471,
"task_id": "project_cc_csharp/3990"
} | {
"list": [
{
"filename": "YY.Build.Cross.Tasks/Cross/Compile.cs",
"retrieved_chunk": " {\n if (IsPropertySet(\"LanguageStandard_C\"))\n {\n return base.ActiveToolSwitches[\"LanguageStandard_C\"].Value;\n }\n ret... | ToolSwitch property, CommandLineFormat format = CommandLineFormat.ForBuildLog)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/CommonComponents.cs",
"retrieved_chunk": " public Rigidbody rb;\n public bool kinematic;\n public bool colDetect;\n public Collider col;\n public AudioSource aud;\n public List<MonoBehaviour> comps = new List<MonoBe... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEngine.UIElements;
using UnityEngine.UIElements.UIR;
namespace Ultrapain.Patches
{
class DrillFlag : MonoBehaviour
{
public Harpoon drill;
public Rigidbody rb;
public List... |
void Awake()
{
if (drill == null)
drill = GetComponent<Harpoon>();
if (rb == null)
rb = GetComponent<Rigidbody>();
}
void Update()
{
if(targetEids != null)
{
if (currentTargetEid ==... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Screwdriver.cs",
"groundtruth_start_lineno": 18,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 19,
"task_id": "project_cc_csharp/4059"
} | {
"list": [
{
"filename": "Ultrapain/Patches/CommonComponents.cs",
"retrieved_chunk": " if (rend != null)\n rend.enabled = true;\n if (rb != null)\n {\n rb.isKinematic = kinematic;\n rb.detectCollisions = colDetect;\n ... | EnemyIdentifier currentTargetEid; |
{
"list": [
{
"filename": "Editor/GraphEditor/QuestGraphView.cs",
"retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing UnityEditor.Experimental.GraphView;\nusing UnityEditor;\nusing UnityEngine;\nusing UnityEngine.UIElements;\nusing UnityEditor.UIElements;\n... | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEditor.Experimental.GraphView;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
using UnityEditor.UIElements;
using System;
namespace QuestSystem.QuestEditor
{
public class QuestGraphEditor : GraphViewEdito... |
private QuestGraphView _questGraph;
private bool mouseClicked;
[MenuItem("Tools/QuestGraph")]
public static void OpenQuestGraphWindow()
{
questForGraph = null;
var window = GetWindow<QuestGraphEditor>();
window.titleContent = new GUIContent(... | {
"context_start_lineno": 0,
"file": "Editor/GraphEditor/QuestGraphEditor.cs",
"groundtruth_start_lineno": 14,
"repository": "lluispalerm-QuestSystem-cd836cc",
"right_context_start_lineno": 15,
"task_id": "project_cc_csharp/4217"
} | {
"list": [
{
"filename": "Editor/GraphEditor/QuestGraphView.cs",
"retrieved_chunk": " public class QuestGraphView : GraphView\n {\n public string misionName;\n private QuestNodeSearchWindow _searchWindow;\n public Quest questRef;\n private QuestGraphView _self;\n ... | Quest questForGraph; |
{
"list": [
{
"filename": "src/SKernel/Factory/SemanticSkillsImporter.cs",
"retrieved_chunk": "using Microsoft.Extensions.Logging;\nusing Microsoft.SemanticKernel;\nusing SKernel.Factory.Config;\nusing System.Collections.Generic;\nnamespace SKernel.Factory\n{\n public class SemanticSkillsImporter ... | using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Memory;
using SKernel.Factory.Config;
using System.Collections.Generic;
using System.Linq;
namespace SKernel.Factory
{
public class SemanticKernelFactory
{
private readonly NativeSkillsImporter _native;
... |
_native = native;
_semantic = semantic;
_config = config;
_memoryStore = memoryStore;
_logger = logger.CreateLogger<SemanticKernelFactory>();
}
public IKernel Create(ApiKey key, IList<string>? skills = null)
{
var selected... | {
"context_start_lineno": 0,
"file": "src/SKernel/Factory/SemanticKernelFactory.cs",
"groundtruth_start_lineno": 17,
"repository": "geffzhang-ai-search-aspnet-qdrant-chatgpt-378d2be",
"right_context_start_lineno": 20,
"task_id": "project_cc_csharp/4241"
} | {
"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... | NativeSkillsImporter native, SemanticSkillsImporter semantic, SKConfig config,
IMemoryStore memoryStore, ILoggerFactory logger)
{ |
{
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Proxy/IEntityProxyGenerator.cs",
"retrieved_chunk": " /// </summary>\n EntityProxy Create(object entity, EntityProxyType type, DbContext dbContext);\n }\n}",
"score": 24.372292330055814
},
... | using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.ChangeTracking;
using Ryan.DependencyInjection;
using Ryan.EntityFrameworkCore.Builder;
using Ryan.EntityFrameworkCore.Proxy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection... |
// 上下文代理
var dbContextProxy = Dependencies.DbContextEntityProxyLookupGenerator
.Create(this)
.GetOrDefault(entity.GetType().BaseType!, this);
// 创建代理
var proxy = dbContextProxy.EntityProxies.FirstOrDefault(x => x.Entity == entity);
... | {
"context_start_lineno": 0,
"file": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/ShardDbContext.cs",
"groundtruth_start_lineno": 77,
"repository": "c-y-r-Ryan.EntityFrameworkCore.Shard-f15124c",
"right_context_start_lineno": 79,
"task_id": "project_cc_csharp/4139"
} | {
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/EntityFrameworkCore/Proxy/IEntityProxyGenerator.cs",
"retrieved_chunk": " /// </summary>\n EntityProxy Create(object entity, EntityProxyType type, DbContext dbContext);\n }\n}",
"score": 16.270198311584473
},
... | EntityProxyType type)
{ |
{
"list": [
{
"filename": "Assets/ZimGui/Core/UiColor.cs",
"retrieved_chunk": " /// <summary>\n /// #FF00FFFF\n /// </summary>\n public static UiColor Magenta => new UiColor(255, 0, 255);\n /// <summary>\n /// #F97306FF\n /// </summary>\n public ... | using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Unity.Collections.LowLevel.Unsafe;
using UnityEngine;
namespace ZimGui.Core {
[StructLayout(LayoutKind.Sequential)]
public struct Options {
public byte Size;
public byte Padding0; //TODO use padding... |
public Vector2 UV;
public Options Options;
public void Write(Vector2 position, byte scale, UiColor color, Vector2 uv) {
Position = position;
Color = color;
UV = uv;
Options.Size = scale;
}
[MethodImpl((MethodImplOptions) 256)]
... | {
"context_start_lineno": 0,
"file": "Assets/ZimGui/Core/Quad.cs",
"groundtruth_start_lineno": 22,
"repository": "Akeit0-ZimGui-Unity-cc82fb9",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/4120"
} | {
"list": [
{
"filename": "Assets/ZimGui/Core/UiColor.cs",
"retrieved_chunk": " public static UiColor AlphaDiv(UiColor color, byte fadeAlpha) =>\n new UiColor(color.R, color.G, color.B, (byte) (color.A / fadeAlpha));\n public static UiColor WithAlpha(UiColor color, byte alpha)... | UiColor Color; |
{
"list": [
{
"filename": "JWLSLMerge.Data/Models/TagMap.cs",
"retrieved_chunk": "using JWLSLMerge.Data.Attributes;\nnamespace JWLSLMerge.Data.Models\n{\n public class TagMap\n {\n [Ignore]\n public int TagMapId { get; set; }\n public int? PlaylistItemId { get; set; }\n ... | using JWLSLMerge.Data.Attributes;
namespace JWLSLMerge.Data.Models
{
public class PlayListItem
{
[ | get; set; }
public string Label { get; set; } = null!;
public int StartTrimOffsetTicks { get; set; }
public int EndTrimOffsetTicks { get; set; }
public int Accuracy { get; set; }
public int EndAction { get; set; }
public string ThumbnailFilePath { get; set; } = null!;
... | {
"context_start_lineno": 0,
"file": "JWLSLMerge.Data/Models/PlayListItem.cs",
"groundtruth_start_lineno": 6,
"repository": "pliniobrunelli-JWLSLMerge-7fe66dc",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/4250"
} | {
"list": [
{
"filename": "JWLSLMerge.Data/JWDal.cs",
"retrieved_chunk": " {\n connectionString = $\"Data Source={dbPath}\";\n }\n public IEnumerable<T> TableList<T>()\n {\n using (IDbConnection cnn = new SQLiteConnection(connectionString))\n ... | Ignore]
public int PlaylistItemId { |
{
"list": [
{
"filename": "Ultrapain/Patches/PlayerStatTweaks.cs",
"retrieved_chunk": "\t\tstatic FieldInfo f_HealthBar_hp = typeof(HealthBar).GetField(\"hp\", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);\n\t\tstatic FieldInfo f_HealthBar_antiHp = typeof(HealthBar).GetField(\... | using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.ConstrainedExecution;
using UnityEngine;
namespace Ultrapain.Patches
{
class Drone_Start_Patch
{
static void Postfix(Drone __instance, ref EnemyIdentifier ___eid)
{... |
if (___eid.enemyType != EnemyType.Drone)
return true;
if(__0 == __instance.windUpSound)
{
DroneFlag flag = __instance.GetComponent<DroneFlag>();
if (flag == null)
return true;
List<Tuple<DroneFlag.... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Drone.cs",
"groundtruth_start_lineno": 27,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 29,
"task_id": "project_cc_csharp/4102"
} | {
"list": [
{
"filename": "Ultrapain/Patches/PlayerStatTweaks.cs",
"retrieved_chunk": "\t\t\t\t\tfloat operand = (Single)inst.operand;\n\t\t\t\t\tif (operand == 30f)\n\t\t\t\t\t\tcode[i].operand = (Single)(ConfigManager.maxPlayerHp.value * 0.3f);\n\t\t\t\t\telse if (operand == 50f)\n\t\t\t\t\t\tcode[i... | Drone __instance, EnemyIdentifier ___eid, AudioClip __0)
{ |
{
"list": [
{
"filename": "Assets/ZimGui/Core/UiMesh.cs",
"retrieved_chunk": " quad2.V2.Position.x = quad2.V1.Position.x = center.x + frontRadius;\n quad2.V3.Position.y = quad2.V2.Position.y = center.y - frontRadius;\n quad2.V3.UV.x = quad2.V0.UV.x = quad1.V3.UV.x = qu... | using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Unity.Collections.LowLevel.Unsafe;
using UnityEngine;
namespace ZimGui.Core {
[StructLayout(LayoutKind.Sequential)]
public struct Options {
public byte Size;
public byte Padding0; //TODO use padding... |
var uv = info.UV;
V3.UV.x = V0.UV.x = uv.z;
V1.UV.y = V0.UV.y = uv.w + uv.y;
V2.UV.x = V1.UV.x = uv.x + uv.z;
V3.UV.y = V2.UV.y = uv.w;
x += fontSize * info.XOffset;
V3.Position.x = V0.Position.x = x;
V2.Position.x = V1.Pos... | {
"context_start_lineno": 0,
"file": "Assets/ZimGui/Core/Quad.cs",
"groundtruth_start_lineno": 164,
"repository": "Akeit0-ZimGui-Unity-cc82fb9",
"right_context_start_lineno": 165,
"task_id": "project_cc_csharp/4123"
} | {
"list": [
{
"filename": "Assets/ZimGui/Core/UiMesh.cs",
"retrieved_chunk": " public void AddRadialFilledSquare(Vector2 center, float size, UiColor color,float fillAmount) {\n AddRadialFilledUnScaledUV(new Vector4(0,0,CircleCenter.x,CircleCenter.y), center, size, color, fillAmount);... | UiMesh.CharInfo info) { |
{
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Extensions/ContribuyenteExtension.cs",
"retrieved_chunk": "using LibreDteDotNet.RestRequest.Interfaces;\nnamespace LibreDteDotNet.RestRequest.Extensions\n{\n public static class ContribuyenteExtension\n {\n public static IContribuyent... | using LibreDteDotNet.RestRequest.Interfaces;
namespace LibreDteDotNet.RestRequest.Extensions
{
public static class BoletaExtension
{
public static |
IBoleta instance = folioService;
return instance.SetCookieCertificado().Result;
}
}
}
| {
"context_start_lineno": 0,
"file": "LibreDteDotNet.RestRequest/Extensions/BoletaExtension.cs",
"groundtruth_start_lineno": 6,
"repository": "sergiokml-LibreDteDotNet.RestRequest-6843109",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/4172"
} | {
"list": [
{
"filename": "LibreDteDotNet.RestRequest/Extensions/ContribuyenteExtension.cs",
"retrieved_chunk": "using LibreDteDotNet.RestRequest.Interfaces;\nnamespace LibreDteDotNet.RestRequest.Extensions\n{\n public static class ContribuyenteExtension\n {\n public static IContribuyent... | IBoleta Conectar(this IBoleta folioService)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/TransitionMap.cs",
"retrieved_chunk": "#nullable enable\nusing System.Collections.Generic;\nusing Mochineko.Relent.Result;\nnamespace Mochineko.RelentStateMachine\n{\n internal sealed class TransitionMap<TEvent, TContext>\n : ITr... | #nullable enable
using System;
using System.Threading;
using Cysharp.Threading.Tasks;
using Mochineko.Relent.Result;
namespace Mochineko.RelentStateMachine
{
public sealed class FiniteStateMachine<TEvent, TContext>
: IFiniteStateMachine<TEvent, TContext>
{
private readonly ITransitionMap<TEvent... |
public bool IsCurrentState<TState>()
where TState : IState<TEvent, TContext>
=> currentState is TState;
private readonly SemaphoreSlim semaphore = new(
initialCount: 1,
maxCount: 1);
private readonly TimeSpan semaphoreTimeout;
private c... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/RelentStateMachine/FiniteStateMachine.cs",
"groundtruth_start_lineno": 13,
"repository": "mochi-neko-RelentStateMachine-64762eb",
"right_context_start_lineno": 14,
"task_id": "project_cc_csharp/4195"
} | {
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/IFiniteStateMachine.cs",
"retrieved_chunk": " bool IsCurrentState<TState>() where TState : IState<TEvent, TContext>;\n UniTask<IResult> SendEventAsync(TEvent @event, CancellationToken cancellationToken);\n UniTask Upda... | IState<TEvent, TContext> currentState; |
{
"list": [
{
"filename": "Ultrapain/Patches/FleshPrison.cs",
"retrieved_chunk": "using HarmonyLib;\nusing System.Collections.Generic;\nusing System.Reflection;\nusing UnityEngine;\nusing UnityEngine.UI;\nnamespace Ultrapain.Patches\n{\n class FleshObamium_Start\n {\n static bool Prefix(... | using HarmonyLib;
using UnityEngine;
namespace Ultrapain.Patches
{
class SwingCheck2_CheckCollision_Patch2
{
static bool Prefix( |
if (__0.gameObject.tag != "Player")
return true;
if (__instance.transform.parent == null)
return true;
EnemyIdentifier eid = __instance.transform.parent.gameObject.GetComponent<EnemyIdentifier>();
if (eid == null || eid.enemyType != Enem... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Filth.cs",
"groundtruth_start_lineno": 7,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 9,
"task_id": "project_cc_csharp/4114"
} | {
"list": [
{
"filename": "Ultrapain/Patches/FleshPrison.cs",
"retrieved_chunk": " {\n if (__instance.altVersion)\n return true;\n if (__instance.eid == null)\n __instance.eid = __instance.GetComponent<EnemyIdentifier>();\n __instan... | SwingCheck2 __instance, Collider __0, EnemyIdentifier ___eid)
{ |
{
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/GengoRuleset.cs",
"retrieved_chunk": "{\n public class GengoRuleset : Ruleset\n {\n public override string Description => \"osu!gengo\";\n public override DrawableRuleset CreateDrawableRulesetWith(IBeatmap beatmap, IReadOnlyList<Mo... | // 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.
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Framework.Input;
using osu.Game.Beatmaps;
using osu.Game.Input.Handlers;
using osu.Game.Replay... |
}
public override PlayfieldAdjustmentContainer CreatePlayfieldAdjustmentContainer() => new GengoPlayfieldAdjustmentContainer();
protected override Playfield CreatePlayfield() => new GengoPlayfield();
protected override ReplayInputHandler CreateReplayInputHandler(Replay replay) => new ... | {
"context_start_lineno": 0,
"file": "osu.Game.Rulesets.Gengo/UI/DrawableGengoRuleset.cs",
"groundtruth_start_lineno": 24,
"repository": "0xdeadbeer-gengo-dd4f78d",
"right_context_start_lineno": 27,
"task_id": "project_cc_csharp/4232"
} | {
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/UI/GengoPlayfield.cs",
"retrieved_chunk": " protected override GameplayCursorContainer CreateCursor() => new GengoCursorContainer();\n public static readonly Vector2 BASE_SIZE = new Vector2(512, 384);\n private FillFlowContainer p... | GengoRuleset ruleset, IBeatmap beatmap, IReadOnlyList<Mod>? mods = null)
: base(ruleset, beatmap, mods)
{ |
{
"list": [
{
"filename": "Core/ImageManager.cs",
"retrieved_chunk": " {\n using (var icon = NativeMethods.GetIcon(directory, ItemType.Folder, IconSize.Large, folderType))\n {\n return Imaging.CreateBitmapSourceFromHIcon(icon.Handle,\n Sys... | using System;
using System.Drawing;
using System.Runtime.InteropServices;
namespace SupernoteDesktopClient.Core.Win32Api
{
public sealed class NativeMethods
{
// imports
[DllImport("user32.dll")]
internal static extern bool SetForegroundWindow(IntPtr hWnd);
[DllImport("user32.d... |
uint attributes = (uint)(type == ItemType.Folder ? FileAttribute.Directory : FileAttribute.File);
uint flags = (uint)(ShellAttribute.Icon | ShellAttribute.UseFileAttributes);
if (type == ItemType.Folder && state == ItemState.Open)
flags = flags | (uint)ShellAttribut... | {
"context_start_lineno": 0,
"file": "Core/Win32Api/NativeMethods.cs",
"groundtruth_start_lineno": 66,
"repository": "nelinory-SupernoteDesktopClient-e527602",
"right_context_start_lineno": 68,
"task_id": "project_cc_csharp/4135"
} | {
"list": [
{
"filename": "Core/ImageManager.cs",
"retrieved_chunk": " string cacheKey = $\"{(itemType is ItemType.Folder ? ItemType.Folder : Path.GetExtension(itemName))}\";\n ImageSource returnValue;\n _imageSourceCache.TryGetValue(cacheKey, out returnValue);\n ... | ItemState state)
{ |
{
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/TransitionMapBuilder.cs",
"retrieved_chunk": " private readonly Dictionary<IState<TEvent, TContext>, Dictionary<TEvent, IState<TEvent, TContext>>>\n transitionMap = new();\n private readonly Dictionary<TEvent, ISta... | #nullable enable
using System.Collections.Generic;
using Mochineko.Relent.Result;
namespace Mochineko.RelentStateMachine
{
internal sealed class TransitionMap<TEvent, TContext>
: ITransitionMap<TEvent, TContext>
{
private readonly IState<TEvent, TContext> initialState;
private readonly ... |
public TransitionMap(
IState<TEvent, TContext> initialState,
IReadOnlyList<IState<TEvent, TContext>> states,
IReadOnlyDictionary<
IState<TEvent, TContext>,
IReadOnlyDictionary<TEvent, IState<TEvent, TContext>>>
transit... | {
"context_start_lineno": 0,
"file": "Assets/Mochineko/RelentStateMachine/TransitionMap.cs",
"groundtruth_start_lineno": 17,
"repository": "mochi-neko-RelentStateMachine-64762eb",
"right_context_start_lineno": 19,
"task_id": "project_cc_csharp/4193"
} | {
"list": [
{
"filename": "Assets/Mochineko/RelentStateMachine/TransitionMapBuilder.cs",
"retrieved_chunk": " }\n private TransitionMapBuilder(IState<TEvent, TContext> initialState)\n {\n this.initialState = initialState;\n states.Add(this.initialState);\n ... | IState<TEvent, TContext>>
anyTransitionMap; |
{
"list": [
{
"filename": "Actions/timezoneActions.cs",
"retrieved_chunk": " DateTimeOffset dateTime = TimeZoneInfo.ConvertTime(DateTimeOffset.Now, timeZoneInfo);\n actionResult.Description = dateTime.ToString(\"HH:mm\", CultureInfo.CurrentCulture);\n return actionResu... | using System.Collections.Generic;
using System.Linq;
namespace it
{
internal static partial class Countries
{
private static readonly Dictionary<UtcOffset, string[]> countriesByUtcOffset = new Dictionary<UtcOffset, string[]>
{
[UtcOffset.UtcMinusTwelve] = new[]
{
... |
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Auto)]
public readonly struct Offset
{
public const byte HalfHours = 2;
public const byte Hours = 4;
public const byte QuarterHours = 1;
public const byte T... | {
"context_start_lineno": 0,
"file": "Countries.cs",
"groundtruth_start_lineno": 159,
"repository": "Teun-vdB-NotifySolver-88c06a6",
"right_context_start_lineno": 160,
"task_id": "project_cc_csharp/4167"
} | {
"list": [
{
"filename": "Actions/MathActions.cs",
"retrieved_chunk": " if (op == '+')\n x += y;\n else\n x -= y;\n }\n }\n }\n}",
"score": 57.68577954149701
},
{
"filename": "Actions/MathActi... | UtcOffset, string[]> CountriesByUtcOffset => countriesByUtcOffset; |
{
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/UI/GengoPlayfieldAdjustmentContainer.cs",
"retrieved_chunk": " // Scale = 1.6\n Scale = new Vector2(Parent.ChildSize.X / GengoPlayfield.BASE_SIZE.X);\n Position = new Vector2(0, (PlayfieldShift ? 8f : 0f) *... | // 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 osu.Framework.Allocation;
using osu.Framework.Logging;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Over... |
[Cached]
protected readonly AnkiAPI anki = new AnkiAPI();
[BackgroundDependencyLoader]
private void load()
{
AddInternal(anki);
AddInternal(playfieldContainer);
HitObjectContainer.Anchor = Anchor.TopCentre;
HitObjectContainer.Ori... | {
"context_start_lineno": 0,
"file": "osu.Game.Rulesets.Gengo/UI/GengoPlayfield.cs",
"groundtruth_start_lineno": 33,
"repository": "0xdeadbeer-gengo-dd4f78d",
"right_context_start_lineno": 34,
"task_id": "project_cc_csharp/4243"
} | {
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/UI/GengoPlayfieldAdjustmentContainer.cs",
"retrieved_chunk": " // Scale = 1.6\n Scale = new Vector2(Parent.ChildSize.X / GengoPlayfield.BASE_SIZE.X);\n Position = new Vector2(0, (PlayfieldShift ? 8f : 0f) *... | TranslationContainer translationContainer = new TranslationContainer(); |
{
"list": [
{
"filename": "src/WebSocketHub/Core/src/WebSocketRequestHandlerProvider.cs",
"retrieved_chunk": "using System.Diagnostics.CodeAnalysis;\nnamespace TraTech.WebSocketHub\n{\n /// <summary>\n /// Provides WebSocket request handlers for handling WebSocket requests.\n /// </summary>\... | using Newtonsoft.Json;
namespace TraTech.WebSocketHub
{
/// <summary>
/// Represents the options for configuring the WebSocketHub.
/// </summary>
/// <remarks>
/// This class represents the options for configuring the WebSocketHub. It contains properties for configuring the WebSocket request handle... | get; private set; }
/// <summary>
/// Gets the JSON serializer settings.
/// </summary>
/// <remarks>
/// This property gets the JSON serializer settings. It is used to configure the JSON serializer used to serialize WebSocket messages.
/// </remarks>
public Jso... | {
"context_start_lineno": 0,
"file": "src/WebSocketHub/Core/src/WebSocketHubOptions.cs",
"groundtruth_start_lineno": 18,
"repository": "TRA-Tech-dotnet-websocket-9049854",
"right_context_start_lineno": 19,
"task_id": "project_cc_csharp/4272"
} | {
"list": [
{
"filename": "src/WebSocketHub/Core/src/WebSocketRequestHandlerProvider.cs",
"retrieved_chunk": " /// Attempts to add a WebSocket request handler of type THandler for the specified message type to the handler type map.\n /// </summary>\n /// <typeparam name=\"THandler... | IWebSocketRequestHandlerProvider WebSocketRequestHandler { |
{
"list": [
{
"filename": "Ultrapain/Patches/OrbitalStrike.cs",
"retrieved_chunk": " {\n OrbitalStrikeFlag orbitalFlag = Coin_ReflectRevolver.shootingAltBeam.GetComponent<OrbitalStrikeFlag>();\n if (orbitalFlag != null)\n list... | using HarmonyLib;
using System.Collections.Generic;
using System.Reflection;
using System;
using System.Linq;
using System.Xml.Linq;
using UnityEngine;
namespace Ultrapain
{
public static class UnityUtils
{
public static LayerMask envLayer = new LayerMask() { value = (1 << 8) | (1 << 24) };
pu... |
string logMessage = "";
for (int i = 0; i < iters; i++)
logMessage += '|';
logMessage += o.name;
Debug.Log(logMessage);
foreach (Transform t in o.transform)
PrintGameobject(t.gameObject, iters + 1);
}
public s... | {
"context_start_lineno": 0,
"file": "Ultrapain/UnityUtils.cs",
"groundtruth_start_lineno": 29,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 31,
"task_id": "project_cc_csharp/4121"
} | {
"list": [
{
"filename": "Ultrapain/ILUtils.cs",
"retrieved_chunk": " for (int i = 0; i < seq.Count; i++)\n {\n if (seq[i].opcode != code[i + index].opcode)\n return false;\n else if (code[i + index].operand != null && !code[i + i... | GameObject o, int iters = 0)
{ |
{
"list": [
{
"filename": "Enum/Industry.cs",
"retrieved_chunk": " /// </summary>\n public enum Industry\n {\n /// <summary>\n /// IT科技-互联网/电子商务\n /// </summary>\n [Description(\"IT科技-互联网/电子商务\")]\n IT科技_互联网_电子商务=1,\n /// <summary>\n /// IT科技-I... | using FayElf.Plugins.WeChat.OfficialAccount.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XiaoFeng;
using XiaoFeng.Http;
/****************************************************************
* Copyright © (2022) www.fayelf.com All Rights R... |
var config = this.Config.GetConfig(WeChatType.Applets);
return Common.Execute(config.AppID, config.AppSecret, token =>
{
var response = HttpHelper.GetHtml(new HttpRequest
{
Method = HttpMethod.Get,
Address = $"h... | {
"context_start_lineno": 0,
"file": "OfficialAccount/Template.cs",
"groundtruth_start_lineno": 98,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 100,
"task_id": "project_cc_csharp/4174"
} | {
"list": [
{
"filename": "Enum/Industry.cs",
"retrieved_chunk": " /// </summary>\n [Description(\"IT科技-IT软件与服务\")]\n IT科技_IT软件与服务 = 2,\n /// <summary>\n /// IT科技-IT硬件与设备\n /// </summary>\n [Description(\"IT科技-IT硬件与设备\")]\n IT科技_IT硬件与设备 = 3,\n ... | IndustryModelResult GetIndustry()
{ |
{
"list": [
{
"filename": "Common.cs",
"retrieved_chunk": " /// <param name=\"config\">配置</param>\n /// <returns></returns>\n public static AccessTokenData GetAccessToken(WeChatConfig config) => GetAccessToken(config.AppID, config.AppSecret);\n /// <summary>\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 *
* ... |
var config = this[weChatType.ToString()] as WeChatConfig;
if (config == null) return new WeChatConfig
{
AppID = this.AppID,
AppSecret = this.AppSecret
};
else
return config;
}
}
} | {
"context_start_lineno": 0,
"file": "Model/Config.cs",
"groundtruth_start_lineno": 71,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 73,
"task_id": "project_cc_csharp/4171"
} | {
"list": [
{
"filename": "Common.cs",
"retrieved_chunk": " #region 运行\n /// <summary>\n /// 运行\n /// </summary>\n /// <typeparam name=\"T\">类型</typeparam>\n /// <param name=\"appID\">appid</param>\n /// <param name=\"appSecret\">密钥</param>\n ///... | WeChatConfig GetConfig(WeChatType weChatType = WeChatType.OfficeAccount)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/GlobalEnemyTweaks.cs",
"retrieved_chunk": " }\n class EnemyIdentifier_DeliverDamage_FF\n {\n public enum DamageCause\n {\n Explosion,\n Projectile,\n Fire,\n Melee,\n Unknown",
... | using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.ConstrainedExecution;
using UnityEngine;
namespace Ultrapain.Patches
{
class Drone_Start_Patch
{
static void Postfix(Drone __instance, ref EnemyIdentifier ___eid)
{... |
public LineRenderer lr;
public Firemode currentMode = Firemode.Projectile;
private static Firemode[] allModes = Enum.GetValues(typeof(Firemode)) as Firemode[];
static FieldInfo turretAimLine = typeof(Turret).GetField("aimLine", BindingFlags.NonPublic | BindingFlags.Public | BindingFlag... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Drone.cs",
"groundtruth_start_lineno": 188,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 189,
"task_id": "project_cc_csharp/4137"
} | {
"list": [
{
"filename": "Ultrapain/Patches/GlobalEnemyTweaks.cs",
"retrieved_chunk": " }\n public static DamageCause currentCause = DamageCause.Unknown;\n public static bool friendlyBurn = false;\n [HarmonyBefore]\n static bool Prefix(EnemyIdentifier __instance, re... | ParticleSystem particleSystem; |
{
"list": [
{
"filename": "BootCamp.Service.Contract/IProductService.cs",
"retrieved_chunk": "using System;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\nnamespace BootCamp.Service.Contract\n{\n public interface IProductService\n {\n /// <summary>\n /// Create... | using BootCamp.DataAccess;
using BootCamp.DataAccess.Contract;
using BootCamp.Service.Contract;
using System.Threading.Tasks;
using BootCamp.Service.Extension;
using BootCamp.DataAccess.Common.AWS.DynamoDB.Transaction;
using System.Collections.Generic;
namespace BootCamp.Service
{
public class ProductService : IPr... |
/// <summary>
/// Product provider.
/// </summary>
private readonly IProductProvider _productProvider;
public ProductService()
{
_productProvider = new ProductProvider();
}
/// <summary>
/// Create table service.
/// </summa... | {
"context_start_lineno": 0,
"file": "BootCamp.Service/ProductService.cs",
"groundtruth_start_lineno": 15,
"repository": "aws-samples-amazon-dynamodb-transaction-framework-43e3da4",
"right_context_start_lineno": 16,
"task_id": "project_cc_csharp/4244"
} | {
"list": [
{
"filename": "BootCamp.DataAccess/Extension/ProductRequestExtension.cs",
"retrieved_chunk": " {\n /// <summary>\n /// Create the DynamoDB table request object.\n /// </summary>\n /// <param name=\"tableName\"></param>\n /// <param name=\"partitionKey\... | TransactScope _scope; |
{
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/DependencyInjection/ServiceCollectionExtensions.cs",
"retrieved_chunk": " services.TryAddSingleton<IDynamicTypeGenerator, DynamicTypeGenerator>();\n services.TryAddSingleton<IEntityModelBuilderGenerator, EntityModelBui... | using Ryan.EntityFrameworkCore.Builder;
using Ryan.EntityFrameworkCore.Dynamic;
using Ryan.EntityFrameworkCore.Expressions;
using Ryan.EntityFrameworkCore.Proxy;
using Ryan.EntityFrameworkCore.Query;
namespace Ryan.DependencyInjection
{
/// <inheritdoc cref="IShardDependency"/>
public class ShardDependency : I... |
DynamicSourceCodeGenerator = dynamicSourceCodeGenerator;
DynamicTypeGenerator = dynamicTypeGenerator;
EntityModelBuilderGenerator = entityModelBuilderGenerator;
EntityImplementationDictionaryGenerator = entityImplementationDictionaryGenerator;
EntityModelBui... | {
"context_start_lineno": 0,
"file": "src/Ryan.EntityFrameworkCore.Shard/DependencyInjection/ShardDependency.cs",
"groundtruth_start_lineno": 19,
"repository": "c-y-r-Ryan.EntityFrameworkCore.Shard-f15124c",
"right_context_start_lineno": 24,
"task_id": "project_cc_csharp/4170"
} | {
"list": [
{
"filename": "src/Ryan.EntityFrameworkCore.Shard/DependencyInjection/IShardDependency.cs",
"retrieved_chunk": " IDbContextEntityProxyGenerator DbContextEntityProxyGenerator { get; }\n IQueryableFinder QueryableFinder { get; }\n IExpressionImplementationFinder Expressi... | IDbContextEntityProxyLookupGenerator dbContextEntityProxyLookupGenerator
, IDbContextEntityProxyGenerator dbContextEntityProxyGenerator
, IQueryableFinder queryableFinder
, IExpressionImplementationFinder expressionImplementationFinder)
{ |
{
"list": [
{
"filename": "BlockadeLabs/Packages/com.rest.blockadelabs/Runtime/BlockadeLabsBaseEndpoint.cs",
"retrieved_chunk": "// Licensed under the MIT License. See LICENSE in the project root for license information.\nusing Utilities.WebRequestRest;\nnamespace BlockadeLabs\n{\n public abstract ... | // Licensed under the MIT License. See LICENSE in the project root for license information.
using BlockadeLabs.Skyboxes;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Security.Authentication;
using Utilities.WebRequestRest;
namespace BlockadeLabs
{
public sealed class BlockadeLabsClient : ... |
JsonSerializationOptions = new JsonSerializerSettings
{
DefaultValueHandling = DefaultValueHandling.Ignore
};
SkyboxEndpoint = new SkyboxEndpoint(this);
}
protected override void ValidateAuthentication()
{
if (!HasVal... | {
"context_start_lineno": 0,
"file": "BlockadeLabs/Packages/com.rest.blockadelabs/Runtime/BlockadeLabsClient.cs",
"groundtruth_start_lineno": 12,
"repository": "RageAgainstThePixel-com.rest.blockadelabs-aa2142f",
"right_context_start_lineno": 15,
"task_id": "project_cc_csharp/4248"
} | {
"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... | BlockadeLabsSettings settings = null)
: base(authentication ?? BlockadeLabsAuthentication.Default, settings ?? BlockadeLabsSettings.Default)
{ |
{
"list": [
{
"filename": "source/NowPlayingUninstallController.cs",
"retrieved_chunk": "{\n public class NowPlayingUninstallController : UninstallController\n {\n private readonly ILogger logger = NowPlaying.logger;\n private readonly NowPlaying plugin;\n private readonly N... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows;
using System.IO;
using System.Diagnostics;
using System.Data;
using System.Threading.Tasks;
using System.Windows.Media;
using System.Windows.Shapes;
using Path = System.IO.Path;
using Playnite.... | get; private set; }
public int SpeedLimitIpg { get; private set; } = 0;
private string formatStringXofY;
public Queue<NowPlayingGameEnabler> gameEnablerQueue;
public Queue<NowPlayingInstallController> cacheInstallQueue;
public Queue<NowPlayingUninstallController> cacheUninstall... | {
"context_start_lineno": 0,
"file": "source/NowPlaying.cs",
"groundtruth_start_lineno": 59,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 60,
"task_id": "project_cc_csharp/4150"
} | {
"list": [
{
"filename": "source/NowPlayingUninstallController.cs",
"retrieved_chunk": " private readonly string installDir;\n public readonly GameCacheViewModel gameCache;\n public NowPlayingUninstallController(NowPlaying plugin, Game nowPlayingGame, GameCacheViewModel gameCache... | WhilePlaying WhilePlayingMode { |
{
"list": [
{
"filename": "ServiceSelf/Service.cs",
"retrieved_chunk": " /// <returns></returns>\n protected abstract bool TryGetProcessId(out int processId);\n /// <summary>\n /// 创建服务对象\n /// </summary>\n /// <param name=\"name\">服务名称</param>\n /// <r... | using Microsoft.Extensions.Hosting.Systemd;
using Microsoft.Extensions.Hosting.WindowsServices;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
namespace ServiceSelf
{
partial class Service
{
[Dll... |
var serviceOptions = new ServiceOptions { Arguments = serviceArguments };
return UseServiceSelf(args, serviceName, serviceOptions);
}
/// <summary>
/// 为程序应用ServiceSelf
/// 返回true表示可以正常进入程序逻辑
/// <para>start 安装并启动服务</para>
/// <para>stop 停止并删除服务... | {
"context_start_lineno": 0,
"file": "ServiceSelf/Service.Self.cs",
"groundtruth_start_lineno": 31,
"repository": "xljiulang-ServiceSelf-7f8604b",
"right_context_start_lineno": 33,
"task_id": "project_cc_csharp/4279"
} | {
"list": [
{
"filename": "ServiceSelf/Service.cs",
"retrieved_chunk": " if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))\n {\n return new WindowsService(name);\n }\n if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))\n ... | Argument>? serviceArguments = null)
{ |
{
"list": [
{
"filename": "Services/OpenAIAPIService.cs",
"retrieved_chunk": " private readonly ISettingsService settingsService;\n private readonly ILoggingService Logger;\n private readonly string _apikey;\n private readonly bool _disposed;\n public OpenAIAPIServic... | 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 MediaPlayer mediaPlayer;
private readonly Stopwatch micQueueDebouncer = new Stopwatch();
private bool isDisposed;
private bool isRecording;
private bool isProcessing;
public EventHandler<bool> InferenceCallback { get; set; }
public EventHandler... | {
"context_start_lineno": 0,
"file": "Services/EventHandlerService.cs",
"groundtruth_start_lineno": 21,
"repository": "dannyr-git-wingman-41103f3",
"right_context_start_lineno": 22,
"task_id": "project_cc_csharp/4198"
} | {
"list": [
{
"filename": "Services/OpenAIAPIService.cs",
"retrieved_chunk": " {\n _apikey = \"Api Key Is Null or Empty\";\n Logger.LogError(\"_apikey\");\n }\n _openAIService = new OpenAIService(new OpenAiOptions()\n {\n ... | OpenAIControlViewModel openAIControlViewModel; |
{
"list": [
{
"filename": "CloudDistributedLock/CloudDistributedLockProvider.cs",
"retrieved_chunk": "namespace CloudDistributedLock\n{\n public interface ICloudDistributedLockProvider\n {\n Task<CloudDistributedLock> TryAquireLockAsync(string name);\n Task<CloudDistributedLock> A... | using Microsoft.Extensions.Options;
using System.Collections.Concurrent;
namespace CloudDistributedLock
{
public interface ICloudDistributedLockProviderFactory
{
ICloudDistributedLockProvider GetLockProvider();
ICloudDistributedLockProvider GetLockProvider(string name);
}
public class ... |
return clients.GetOrAdd(name, n => CreateClient(n));
}
public ICloudDistributedLockProvider GetLockProvider()
{
return GetLockProvider(DefaultName);
}
protected ICloudDistributedLockProvider CreateClient(string name)
{
var options = ... | {
"context_start_lineno": 0,
"file": "CloudDistributedLock/CloudDistributedLockProviderFactory.cs",
"groundtruth_start_lineno": 25,
"repository": "briandunnington-CloudDistributedLock-04f72e6",
"right_context_start_lineno": 27,
"task_id": "project_cc_csharp/4327"
} | {
"list": [
{
"filename": "CloudDistributedLock/CloudDistributedLockProvider.cs",
"retrieved_chunk": " private readonly CosmosLockClient cosmosLockClient;\n public CloudDistributedLockProvider(CloudDistributedLockProviderOptions options)\n {\n this.options = options;\n ... | ICloudDistributedLockProvider GetLockProvider(string name)
{ |
{
"list": [
{
"filename": "src/dotnetdev-badge/dotnetdev-badge.web/Interfaces/IProvider.cs",
"retrieved_chunk": "using DotNetDevBadgeWeb.Model;\nnamespace DotNetDevBadgeWeb.Interfaces\n{\n public interface IProvider\n {\n Task<(UserSummary summary, User user)> GetUserInfoAsync(string id,... | using DotNetDevBadgeWeb.Common;
namespace DotNetDevBadgeWeb.Interfaces
{
public interface IBadge
{
Task<string> GetSmallBadge(string id, ETheme theme, CancellationToken token);
|
}
public interface IBadgeV1 : IBadge
{
}
}
| {
"context_start_lineno": 0,
"file": "src/dotnetdev-badge/dotnetdev-badge.web/Interfaces/IBadge.cs",
"groundtruth_start_lineno": 7,
"repository": "chanos-dev-dotnetdev-badge-5740a40",
"right_context_start_lineno": 8,
"task_id": "project_cc_csharp/4290"
} | {
"list": [
{
"filename": "src/dotnetdev-badge/dotnetdev-badge.web/Interfaces/IProvider.cs",
"retrieved_chunk": "using DotNetDevBadgeWeb.Model;\nnamespace DotNetDevBadgeWeb.Interfaces\n{\n public interface IProvider\n {\n Task<(UserSummary summary, User user)> GetUserInfoAsync(string id,... | Task<string> GetMediumBadge(string id, ETheme theme, CancellationToken token); |
{
"list": [
{
"filename": "IwaraDownloader/Config.cs",
"retrieved_chunk": " {\n None,\n Token\n }\n public int Port { get; set; } = 6800;\n public int ConcurrentDownloads { get; set; } = 4;\n public long BufferBlockSize { get; set; } = 16000000;... | 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... |
AuthenticationType = type;
}
}
public static void Log(string? value)
{
Console.WriteLine($"[{DateTime.Now}] I {value}");
//AnsiConsole.MarkupLine($"[bold][[{DateTime.Now}]] [lime]I[/][/] {Markup.Escape(value ?? "null")}");
}
p... | {
"context_start_lineno": 0,
"file": "IwaraDownloader/Utils.cs",
"groundtruth_start_lineno": 43,
"repository": "dawn-lc-IwaraDownloader-9a8b7ca",
"right_context_start_lineno": 45,
"task_id": "project_cc_csharp/4324"
} | {
"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 type, string message) : base(message)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/V2First.cs",
"retrieved_chunk": " if (flag == null)\n return true;\n // PISTOL\n if (___currentWeapon == 0 && ConfigManager.v2FirstCoreSnipeToggle.value)\n {\n Transform closestGrenad... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
using System.Text;
using ULTRAKILL.Cheats;
using UnityEngine;
namespace Ultrapain.Patches
{
class Leviathan_Flag : MonoBehaviour
{
private LeviathanHead comp;
private Animator anim;
//p... |
public void PrepareForFire()
{
charging = false;
// OLD PREDICTION
//targetShootPoint = NewMovement.Instance.playerCollider.bounds.center;
//if (Physics.Raycast(NewMovement.Instance.transform.position, Vector3.down, out RaycastHit hit, float.MaxValue, en... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Leviathan.cs",
"groundtruth_start_lineno": 88,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 89,
"task_id": "project_cc_csharp/4166"
} | {
"list": [
{
"filename": "Ultrapain/Patches/SwordsMachine.cs",
"retrieved_chunk": " class ThrownSword_Start_Patch\n {\n static void Postfix(ThrownSword __instance)\n {\n __instance.gameObject.AddComponent<ThrownSwordCollisionDetector>();\n }\n }\n class Thr... | Grenade targetGrenade = null; |
{
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/DataExtraction/HeaderCoord.cs",
"retrieved_chunk": "namespace JdeJabali.JXLDataTableExtractor.DataExtraction\n{\n internal struct HeaderCoord\n {\n public int Row { get; set; }\n public int Column { get; set; }\n }\n}",... | using System;
namespace JdeJabali.JXLDataTableExtractor.DataExtraction
{
internal class HeaderToSearch
{
public string ColumnHeaderName { get; internal set; }
public int? ColumnIndex { get; internal set; }
public Func<string, bool> ConditionalToReadColumnHeader { get; internal set; }
... | get; internal set; } = new HeaderCoord();
}
} | {
"context_start_lineno": 0,
"file": "JdeJabali.JXLDataTableExtractor/DataExtraction/HeaderToSearch.cs",
"groundtruth_start_lineno": 10,
"repository": "JdeJabali-JXLDataTableExtractor-90a12f4",
"right_context_start_lineno": 11,
"task_id": "project_cc_csharp/4301"
} | {
"list": [
{
"filename": "JdeJabali.JXLDataTableExtractor/DataExtraction/HeaderCoord.cs",
"retrieved_chunk": "namespace JdeJabali.JXLDataTableExtractor.DataExtraction\n{\n internal struct HeaderCoord\n {\n public int Row { get; set; }\n public int Column { get; set; }\n }\n}",... | HeaderCoord HeaderCoord { |
{
"list": [
{
"filename": "source/Models/GameCacheManager.cs",
"retrieved_chunk": " throw new InvalidOperationException($\"Game Cache with Id={id} not found\");\n }\n return cachePopulateJobs.ContainsKey(id);\n }\n public void StartPopulateGameCacheJo... | using NowPlaying.Utils;
using System.Collections.Generic;
using System.Threading;
namespace NowPlaying.Models
{
public class GameCacheJob
{
public readonly GameCacheEntry entry;
public readonly RoboStats stats;
public readonly CancellationTokenSource tokenSource;
public readonly... |
this.entry = entry;
this.tokenSource = new CancellationTokenSource();
this.token = tokenSource.Token;
this.stats = stats;
this.pfrOpts = pfrOpts;
this.interPacketGap = interPacketGap;
this.cancelledOnDiskFull = false;
this.... | {
"context_start_lineno": 0,
"file": "source/Models/GameCacheJob.cs",
"groundtruth_start_lineno": 20,
"repository": "gittromney-Playnite-NowPlaying-23eec41",
"right_context_start_lineno": 22,
"task_id": "project_cc_csharp/4158"
} | {
"list": [
{
"filename": "source/Models/RoboCacher.cs",
"retrieved_chunk": " GameCacheEntry entry = job.entry;\n RoboStats stats = job.stats;\n string cacheDir = entry.CacheDir;\n string installDir = entry.InstallDir;\n // The Game Cache is only ... | GameCacheEntry entry, RoboStats stats=null, int interPacketGap = 0, PartialFileResumeOpts pfrOpts = null)
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/CommonComponents.cs",
"retrieved_chunk": " public Transform targetTransform;\n public float scaleSpeed = 1f;\n void Update()\n {\n float deltaSize = Time.deltaTime * scaleSpeed;\n targetTransform.localScale ... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
using System.Text;
using ULTRAKILL.Cheats;
using UnityEngine;
namespace Ultrapain.Patches
{
class Leviathan_Flag : MonoBehaviour
{
private LeviathanHead comp;
private Animator anim;
//p... |
if (currentProjectileEffect != null)
return;
this.shootPoint = shootPoint;
charging = true;
currentProjectileSize = 0;
currentProjectileEffect = GameObject.Instantiate(Plugin.chargeEffect, shootPoint);
currentProjectileAud = curre... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Leviathan.cs",
"groundtruth_start_lineno": 53,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 55,
"task_id": "project_cc_csharp/4156"
} | {
"list": [
{
"filename": "Ultrapain/Patches/CommonComponents.cs",
"retrieved_chunk": " public Quaternion targetRotation;\n private void Awake()\n {\n transform.rotation = targetRotation;\n }\n }\n public class CommonActivator : MonoBehaviour\n {\n ... | Transform shootPoint)
{ |
{
"list": [
{
"filename": "NodeBot/github/Git_Subscribe.cs",
"retrieved_chunk": "{\n public class Git_Subscribe : ICommand\n {\n public static List<GitSubscribeInfo> Info = new List<GitSubscribeInfo>();\n public Git_Subscribe()\n {\n LoadInfo();\n }\n ... | using EleCho.GoCqHttpSdk;
using EleCho.GoCqHttpSdk.Message;
using EleCho.GoCqHttpSdk.Post;
using NodeBot.Classes;
using NodeBot.Command;
using NodeBot.Event;
using NodeBot.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Metadata;
using System.Text;
using System.Thread... |
public List<IService> Services = new List<IService>();
public Queue<Task> ToDoQueue = new Queue<Task>();
public NodeBot(string ip)
{
session = new(new()
{
BaseUri = new Uri("ws://" + ip),
UseApiEndPoint = true,
UseE... | {
"context_start_lineno": 0,
"file": "NodeBot/NodeBot.cs",
"groundtruth_start_lineno": 23,
"repository": "Blessing-Studio-NodeBot-ca9921f",
"right_context_start_lineno": 24,
"task_id": "project_cc_csharp/4268"
} | {
"list": [
{
"filename": "NodeBot/github/WebhookService.cs",
"retrieved_chunk": " {\n MessageEvent += (_, e) =>\n {\n if(e.MessageType == \"push\")\n {\n PushEvent pushEvent = Newtonsoft.Json.JsonConvert.DeserializeObject<P... | ICommand> Commands = new List<ICommand>(); |
{
"list": [
{
"filename": "Tokenizer/Token.cs",
"retrieved_chunk": "namespace Tokenizer\n{\n /// <summary>\n /// Represents a token in code.\n /// </summary>\n public class Token\n {\n /// <summary>\n /// Type of the current <see cref=\"Token\"/>.\n /// </summary>"... | using Parser.SymbolTableUtil;
using Tokenizer;
namespace Parser
{
/// <summary>
/// Represents a TSLang source code parser.
/// </summary>
public partial class TSLangParser
{
/// <summary>
/// A <see cref="TSLangTokenizer"/> which provides tokens of code.
/// </summary>
... |
/// <summary>
/// Root symbol table of the code.
/// </summary>
private readonly SymbolTable rootSymTab;
/// <summary>
/// Symbol table for current scope.
/// </summary>
private SymbolTable currentSymTab;
/// <summary>
/// Gets whether ... | {
"context_start_lineno": 0,
"file": "Parser/TSLangParser.cs",
"groundtruth_start_lineno": 28,
"repository": "amirsina-mashayekh-TSLang-Compiler-3a68caf",
"right_context_start_lineno": 29,
"task_id": "project_cc_csharp/4314"
} | {
"list": [
{
"filename": "Tokenizer/TSLangTokenizer.cs",
"retrieved_chunk": " /// <exception cref=\"ArgumentNullException\"></exception>\n public TSLangTokenizer(StreamReader stream)\n {\n this.stream = stream ?? throw new ArgumentNullException(nameof(stream));\n ... | Token CurrentToken => lastToken; |
{
"list": [
{
"filename": "src/OGXbdmDumper/ScratchBuffer.cs",
"retrieved_chunk": "using Serilog;\nnamespace OGXbdmDumper\n{\n public class ScratchBuffer\n {\n private bool _hasScratchReassigned;\n private Xbox _xbox;\n public MemoryRegion Region;\n public ScratchBuf... | 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... |
public bool HasFastGetmem
{
get
{
if (_hasFastGetmem == null)
{
try
{
long testAddress = 0x10000;
if (IsValidAddress(testAddress))
{
... | {
"context_start_lineno": 0,
"file": "src/OGXbdmDumper/Xbox.cs",
"groundtruth_start_lineno": 22,
"repository": "Ernegien-OGXbdmDumper-07a1e82",
"right_context_start_lineno": 23,
"task_id": "project_cc_csharp/4298"
} | {
"list": [
{
"filename": "src/OGXbdmDumper/ScratchBuffer.cs",
"retrieved_chunk": " _xbox = xbox ?? throw new ArgumentNullException(nameof(xbox));\n // get the xbdm reloc section info to be used as a scratch buffer\n var xbdm = xbox.Modules.Find(m => m.Name == \"xbdm.d... | ScratchBuffer StaticScratch; |
{
"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("bookmark_count")]
public int BookmarkCount { get; set; }
[JsonProperty("can_see_summary_stats")]
public bool CanSeeSummaryStats { get; set; }
[JsonProperty("solved_count")]
public int SolvedCount { get; set; }
}
}
| {
"context_start_lineno": 0,
"file": "src/dotnetdev-badge/dotnetdev-badge.web/Model/UserSummary.cs",
"groundtruth_start_lineno": 30,
"repository": "chanos-dev-dotnetdev-badge-5740a40",
"right_context_start_lineno": 32,
"task_id": "project_cc_csharp/4302"
} | {
"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("recent_time_read")]
public int RecentTimeRead { |
{
"list": [
{
"filename": "Microsoft.Build.Shared/FileSystem/ManagedFileSystem.cs",
"retrieved_chunk": " return File.ReadAllBytes(path);\n }\n public virtual IEnumerable<string> EnumerateFiles(string path, string searchPattern, SearchOption searchOption)\n {\n ... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.IO.Enumeration;
using System.Linq;
using System.Security;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Microsoft.Build.Shared;
using Microsoft.Build.Shared.F... |
try
{
string path2 = ((path.Length == 0) ? s_thisDirectory : path);
IEnumerable<string> enumerable;
if (filespec == null)
{
enumerable = fileSystem.EnumerateFiles(path2);
}
else
... | {
"context_start_lineno": 0,
"file": "Microsoft.Build.Shared/FileMatcher.cs",
"groundtruth_start_lineno": 252,
"repository": "Chuyu-Team-MSBuildCppCrossToolset-6c84a69",
"right_context_start_lineno": 254,
"task_id": "project_cc_csharp/4101"
} | {
"list": [
{
"filename": "Microsoft.Build.Shared/FileSystem/ManagedFileSystem.cs",
"retrieved_chunk": " public virtual IEnumerable<string> EnumerateFileSystemEntries(string path, string searchPattern, SearchOption searchOption)\n {\n return Directory.EnumerateFileSystemEntrie... | IFileSystem fileSystem, string path, string filespec, string projectDirectory, bool stripProjectDirectory)
{ |
{
"list": [
{
"filename": "Editor/AASEmulatorRuntimeEditor.cs",
"retrieved_chunk": " #region Drawing Methods\n private void Draw_ScriptWarning()\n {\n if (_targetScript.isInitializedExternally) \n return;\n EditorGUILayout.HelpBox(\"Warning: Do... | using NAK.AASEmulator.Runtime;
using UnityEditor;
using UnityEngine;
using static ABI.CCK.Scripts.CVRAdvancedSettingsEntry;
using static NAK.AASEmulator.Runtime.AASEmulatorRuntime;
using static NAK.AASEmulator.Runtime.AASMenu;
namespace NAK.AASEmulator.Editor
{
[CustomEditor(typeof(AASMenu))]
public class AASM... |
GUILayout.BeginVertical("box");
EditorGUILayout.LabelField("Menu Name", entry.menuName);
EditorGUILayout.LabelField("Machine Name", entry.machineName);
EditorGUILayout.LabelField("Settings Type", entry.settingType.ToString());
switch (entry.sett... | {
"context_start_lineno": 0,
"file": "Editor/AASMenuEditor.cs",
"groundtruth_start_lineno": 57,
"repository": "NotAKidOnSteam-AASEmulator-aacd289",
"right_context_start_lineno": 59,
"task_id": "project_cc_csharp/4333"
} | {
"list": [
{
"filename": "Editor/AASEmulatorRuntimeEditor.cs",
"retrieved_chunk": " EditorGUILayout.Space();\n _targetScript.avatarInfoFoldout = EditorGUILayout.Foldout(_targetScript.avatarInfoFoldout, \"Avatar Info\", true, _boldFoldoutStyle);\n if (_targetScript.ava... | AASMenuEntry entry)
{ |
{
"list": [
{
"filename": "OfficialAccount/Subscribe.cs",
"retrieved_chunk": " }\n });\n }\n #endregion\n #region 获取公众号类目\n /// <summary>\n /// 获取公众号类目\n /// </summary>\n /// <returns></returns>\n public TemplateCategory... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XiaoFeng;
using FayElf.Plugins.WeChat.OfficialAccount.Model;
/****************************************************************
* Copyright © (2022) www.fayelf.com All Rights Reserved. *
* Au... |
var config = this.Config.GetConfig(WeChatType.Applets);
return Common.Execute(config.AppID, config.AppSecret, token =>
{
var response = XiaoFeng.Http.HttpHelper.GetHtml(new XiaoFeng.Http.HttpRequest
{
Method = "GET",
... | {
"context_start_lineno": 0,
"file": "OfficialAccount/Menu.cs",
"groundtruth_start_lineno": 118,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 120,
"task_id": "project_cc_csharp/4228"
} | {
"list": [
{
"filename": "OfficialAccount/Subscribe.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... | MenuModel GetMenu()
{ |
{
"list": [
{
"filename": "OfficialAccount/Model/TemplateResult.cs",
"retrieved_chunk": " #region 构造器\n /// <summary>\n /// 无参构造器\n /// </summary>\n public TemplateResult()\n {\n }\n #endregion\n #region 属性\n /// <summary>",
"... | using System;
using System.Collections.Generic;
using System.Text;
using FayElf.Plugins.WeChat.OfficialAccount.Model;
using XiaoFeng;
using XiaoFeng.Http;
/****************************************************************
* Copyright © (2022) www.fayelf.com All Rights Reserved. *
* Author : jacky ... |
var config = this.Config.GetConfig(WeChatType.Applets);
return Common.Execute(config.AppID, config.AppSecret, token =>
{
var response = HttpHelper.GetHtml(new HttpRequest
{
Method = HttpMethod.Get,
Address = $"h... | {
"context_start_lineno": 0,
"file": "OfficialAccount/Subscribe.cs",
"groundtruth_start_lineno": 291,
"repository": "zhuovi-FayElf.Plugins.WeChat-5725d1e",
"right_context_start_lineno": 293,
"task_id": "project_cc_csharp/4222"
} | {
"list": [
{
"filename": "Applets/Applets.cs",
"retrieved_chunk": " public UserPhoneData GetUserPhone(string code)\n {\n var config = this.Config.GetConfig(WeChatType.Applets);\n return Common.Execute(config.AppID, config.AppSecret, token =>\n {\n ... | TemplateResult GetTemplateList()
{ |
{
"list": [
{
"filename": "Ultrapain/Patches/Stray.cs",
"retrieved_chunk": " public static int projectileDamage = 10;\n public static int explosionDamage = 20;\n public static float coreSpeed = 110f;\n static void Postfix(ZombieProjectiles __instance, ref EnemyIdentifier __... | using HarmonyLib;
using UnityEngine;
namespace Ultrapain.Patches
{
class Solider_Start_Patch
{
static void Postfix(ZombieProjectiles __instance, ref GameObject ___decProjectile, ref GameObject ___projectile, ref EnemyIdentifier ___eid, ref Animator ___anim)
{
if (___eid.enemyType !=... |
if (___eid.enemyType != EnemyType.Soldier)
return;
___currentProjectile.GetComponent<ProjectileSpread>().spreadAmount = 10;
___currentProjectile.SetActive(true);
SoliderShootCounter counter = __instance.gameObject.GetComponent<SoliderShootCounter>();
... | {
"context_start_lineno": 0,
"file": "Ultrapain/Patches/Solider.cs",
"groundtruth_start_lineno": 39,
"repository": "eternalUnion-UltraPain-ad924af",
"right_context_start_lineno": 41,
"task_id": "project_cc_csharp/4180"
} | {
"list": [
{
"filename": "Ultrapain/Patches/Stray.cs",
"retrieved_chunk": " class Swing\n {\n static void Postfix()\n {\n Debug.Log(\"Swing()\");\n }\n }*/\n class SwingEnd\n {\n static bool Prefix(ZombieProjectiles __instance, ref EnemyIdentifier... | EnemyIdentifier ___eid, ref GameObject ___player, ref Animator ___anim, ref float ___coolDown)
{ |
{
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/Replays/GengoReplayFrame.cs",
"retrieved_chunk": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\nusing osu.Game.Rulesets.Replays;\nusing osuTK;\nn... | // 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.
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Gengo.Objects;
using osu.Game.Rulesets.Replays;
namespace osu.Game.Rulesets.Gengo.Replays
{
public class GengoAutoGe... |
public GengoAutoGenerator(IBeatmap beatmap)
: base(beatmap)
{
}
protected override void GenerateFrames()
{
Frames.Add(new GengoReplayFrame());
foreach (GengoHitObject hitObject in Beatmap.HitObjects)
{
Frames.Add... | {
"context_start_lineno": 0,
"file": "osu.Game.Rulesets.Gengo/Replays/GengoAutoGenerator.cs",
"groundtruth_start_lineno": 11,
"repository": "0xdeadbeer-gengo-dd4f78d",
"right_context_start_lineno": 12,
"task_id": "project_cc_csharp/4285"
} | {
"list": [
{
"filename": "osu.Game.Rulesets.Gengo/Replays/GengoReplayFrame.cs",
"retrieved_chunk": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\nusing osu.Game.Rulesets.Replays;\nusing osuTK;\nn... | GengoHitObject> Beatmap => (Beatmap<GengoHitObject>)base.Beatmap; |
{
"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 IGraphNotificationService _graphNotificationService;
private readonly ICertificateService _certificateService;
private readonly ICacheService _cacheService;
private readonly ILogger _logger;
private readonly AppSettings _settings;
private const string Mi... | {
"context_start_lineno": 0,
"file": "Functions/GraphNotificationsHub.cs",
"groundtruth_start_lineno": 19,
"repository": "microsoft-GraphNotificationBroker-b1564aa",
"right_context_start_lineno": 20,
"task_id": "project_cc_csharp/4306"
} | {
"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... | ITokenValidationService _tokenValidationService; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.