Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 1 new columns ({'crossfile_context'})
This happened while the json dataset builder was generating data using
hf://datasets/Vincentvmt/CrossCodeEval/crosscodeeval_data/csharp/line_completion_oracle_bm25.jsonl (at revision 41f916e35cc48bcca5dc369664f931afd9ffa22f)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single
writer.write_table(table)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table
pa_table = table_cast(pa_table, self._schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast
return cast_table_to_schema(table, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2256, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
prompt: string
groundtruth: string
right_context: string
metadata: struct<task_id: string, repository: string, file: string, context_start_lineno: int64, groundtruth_start_lineno: int64, right_context_start_lineno: int64>
child 0, task_id: string
child 1, repository: string
child 2, file: string
child 3, context_start_lineno: int64
child 4, groundtruth_start_lineno: int64
child 5, right_context_start_lineno: int64
crossfile_context: struct<text: string, list: list<item: struct<retrieved_chunk: string, filename: string, score: double>>>
child 0, text: string
child 1, list: list<item: struct<retrieved_chunk: string, filename: string, score: double>>
child 0, item: struct<retrieved_chunk: string, filename: string, score: double>
child 0, retrieved_chunk: string
child 1, filename: string
child 2, score: double
to
{'prompt': Value(dtype='string', id=None), 'groundtruth': Value(dtype='string', id=None), 'right_context': Value(dtype='string', id=None), 'metadata': {'task_id': Value(dtype='string', id=None), 'repository': Value(dtype='string', id=None), 'file': Value(dtype='string', id=None), 'context_start_lineno': Value(dtype='int64', id=None), 'groundtruth_start_lineno': Value(dtype='int64', id=None), 'right_context_start_lineno': Value(dtype='int64', id=None)}}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1321, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 935, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2013, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 1 new columns ({'crossfile_context'})
This happened while the json dataset builder was generating data using
hf://datasets/Vincentvmt/CrossCodeEval/crosscodeeval_data/csharp/line_completion_oracle_bm25.jsonl (at revision 41f916e35cc48bcca5dc369664f931afd9ffa22f)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
prompt string | groundtruth string | right_context string | metadata dict |
|---|---|---|---|
using LassoProcessManager.Models.Rules;
using Newtonsoft.Json;
using ProcessManager.Models.Configs;
using System.Reflection;
namespace ProcessManager.Providers
{
public class ConfigProvider : IConfigProvider
{
private const string ConfigFileName = "Config.json";
private ManagerConfig managerCon... | LassoProfile> GetLassoProfiles()
{ |
Dictionary<string, LassoProfile> lassoProfiles = new Dictionary<string, LassoProfile>();
// Load lasso profiles
foreach (var profile in managerConfig.Profiles)
{
if (!lassoProfiles.ContainsKey(profile.Name))
{
lassoPro... | {
"task_id": "project_cc_csharp/27",
"repository": "kenshinakh1-LassoProcessManager-bcc481f",
"file": "ProcessManager/Providers/ConfigProvider.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 45,
"right_context_start_lineno": 47
} |
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... | Thread> Threads => GetThreads(); |
public Version Version => GetVersion();
#endregion
#region Connection
public void Connect(string host, int port = 731)
{
_cache.Clear();
ConnectionInfo = Session.Connect(host, port);
// init subsystems
Memory = new XboxMemoryS... | {
"task_id": "project_cc_csharp/20",
"repository": "Ernegien-OGXbdmDumper-07a1e82",
"file": "src/OGXbdmDumper/Xbox.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 75,
"right_context_start_lineno": 76
} |
//#define PRINT_DEBUG
using System;
using System.IO;
using Godot;
using Mono.Unix;
using Directory = System.IO.Directory;
using Environment = System.Environment;
using File = System.IO.File;
using Path = System.IO.Path;
namespace GodotLauncher
{
public class DataPaths
{
static string AppDataPath => Environment.Ge... | InstallerEntryData installerEntryData)
{ |
string path = GetExecutablePath(installerEntryData);
bool exists = File.Exists(path);
#if PRINT_DEBUG
GD.Print("Checking if path exists: " + path + " exists=" + exists);
#endif
return exists;
}
public static void ExtractArchive(string fileName, InstallerEntryData installerEntryData)
{
stri... | {
"task_id": "project_cc_csharp/55",
"repository": "NathanWarden-ready-to-launch-58eba6d",
"file": "godot-project/Scripts/DataManagement/DataPaths.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 94,
"right_context_start_lineno": 96
} |
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")]
public int TopicsEntered { get; set; }
[JsonProperty("posts_read_count")]
public int PostsReadCount { get; set; }
[JsonProperty("days_visited"... | {
"task_id": "project_cc_csharp/48",
"repository": "chanos-dev-dotnetdev-badge-5740a40",
"file": "src/dotnetdev-badge/dotnetdev-badge.web/Model/UserSummary.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 6,
"right_context_start_lineno": 8
} |
using System.Net.WebSockets;
using System.Text;
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
namespace TraTech.WebSocketHub
{
public class WebSocketHubMiddleware<TKey>
where TKey : notnull
{
private readonly IServiceProvider _serviceProvider;
private readonly RequestDeleg... | WebSocketHub<TKey> webSocketHub, Func<HttpContext, bool> acceptIf, Func<HttpContext, TKey> keyGenerator)
{ |
_serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
_next = next ?? throw new ArgumentNullException(nameof(next));
_acceptIf = acceptIf ?? throw new ArgumentNullException(nameof(acceptIf));
_webSocketHub = webSocketHub ?? throw... | {
"task_id": "project_cc_csharp/68",
"repository": "TRA-Tech-dotnet-websocket-9049854",
"file": "src/WebSocketHub/Core/src/WebSocketHubMiddleware.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 17,
"right_context_start_lineno": 19
} |
using System.Collections.Generic;
namespace JdeJabali.JXLDataTableExtractor.JXLExtractedData
{
public class JXLDataExtracted
{
public List< | JXLWorkbookData> WorkbooksData { | get; set; } = new List<JXLWorkbookData>();
}
}
| {
"task_id": "project_cc_csharp/50",
"repository": "JdeJabali-JXLDataTableExtractor-90a12f4",
"file": "JdeJabali.JXLDataTableExtractor/JXLExtractedData/JXLDataExtracted.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 6,
"right_context_start_lineno": 7
} |
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Threading;
using static ServiceSelf.AdvApi32;
namespace ServiceSelf
{
sealed class WindowsService : Service
{
priv... | SafeServiceHandle CreateService(SafeServiceHandle managerHandle, string filePath, ServiceOptions options)
{ |
var arguments = options.Arguments ?? Enumerable.Empty<Argument>();
arguments = string.IsNullOrEmpty(options.WorkingDirectory)
? arguments.Append(new Argument(WorkingDirArgName, Path.GetDirectoryName(filePath)))
: arguments.Append(new Argument(WorkingDirArgName, P... | {
"task_id": "project_cc_csharp/14",
"repository": "xljiulang-ServiceSelf-7f8604b",
"file": "ServiceSelf/WindowsService.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 66,
"right_context_start_lineno": 68
} |
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? Title { get; set; }
public string? Content { get; set; }
public string LastModified { get; set; } = null!;
public string... | {
"task_id": "project_cc_csharp/51",
"repository": "pliniobrunelli-JWLSLMerge-7fe66dc",
"file": "JWLSLMerge.Data/Models/Note.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 6,
"right_context_start_lineno": 8
} |
using JWLSLMerge.Data.Attributes;
namespace JWLSLMerge.Data.Models
{
public class PlayListItem
{
[Ignore]
public int PlaylistItemId { get; set; }
public string Label { get; set; } = null!;
public int StartTrimOffsetTicks { get; set; }
public int EndTrimOffsetTicks { get;... | Ignore]
public int NewPlaylistItemId { | get; set; }
}
}
| {
"task_id": "project_cc_csharp/37",
"repository": "pliniobrunelli-JWLSLMerge-7fe66dc",
"file": "JWLSLMerge.Data/Models/PlayListItem.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 15,
"right_context_start_lineno": 17
} |
using JWLSLMerge.Data.Attributes;
namespace JWLSLMerge.Data.Models
{
public class PlaylistItemMarker
{
[Ignore]
public int PlaylistItemMarkerId { get; set; }
public int PlaylistItemId { get; set; }
public string Label { get; set; } = null!;
public long StartTimeTicks { g... | Ignore]
public int NewPlaylistItemMarkerId { | get; set; }
}
}
| {
"task_id": "project_cc_csharp/29",
"repository": "pliniobrunelli-JWLSLMerge-7fe66dc",
"file": "JWLSLMerge.Data/Models/PlaylistItemMarker.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 14,
"right_context_start_lineno": 16
} |
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UIElements;
using UnityEditor.UIElements;
using UnityEditor.Experimental.GraphView;
using UnityEditor;
using UnityEngine.Windows;
using System;
namespace QuestSystem.QuestEditor
{
public class QuestG... | NodeQuest> NodesInGraph)
{ |
int j = 0;
CheckFolders(Q);
string path = QuestConstants.MISIONS_FOLDER + $"/{Q.misionName}/Nodes";
string tempPath = QuestConstants.MISIONS_FOLDER + $"/{Q.misionName}/Temp";
//Move all nodes OUT to temp
if (AssetDatabase.IsValidFolder(path)) {
... | {
"task_id": "project_cc_csharp/49",
"repository": "lluispalerm-QuestSystem-cd836cc",
"file": "Editor/GraphEditor/QuestGraphSaveUtility.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 30,
"right_context_start_lineno": 32
} |
// <copyright file="ToolOptionsPanel.cs" company="algernon (K. Algernon A. Sheppard)">
// Copyright (c) algernon (K. Algernon A. Sheppard). All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
// </copyright>
namespace LineToolMod
{
using Al... | BOBSlider _spacingSlider; |
private UIButton _stepButton;
private UIButton _skipButton;
private UIMultiStateButton _relativeAngleButton;
private UIMultiStateButton _absoluteAngleButton;
/// <summary>
/// Gets the panel width.
/// </summary>
public override float PanelWidth => 36f *... | {
"task_id": "project_cc_csharp/64",
"repository": "algernon-A-LineTool-f63b447",
"file": "Code/UI/ToolOptionsPanel.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 19,
"right_context_start_lineno": 20
} |
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Linq;
using UnityEngine;
using Utilities.WebRequestRest.Interfaces;
namespace BlockadeLabs
{
public sealed class BlockadeLabsSettings : ISettings
{
public BlockadeLabsSettings()
{
... | BlockadeLabsSettingsInfo settingsInfo)
=> Info = settingsInfo; |
public BlockadeLabsSettings(string domain)
=> Info = new BlockadeLabsSettingsInfo(domain);
private static BlockadeLabsSettings cachedDefault;
public static BlockadeLabsSettings Default
{
get => cachedDefault ??= new BlockadeLabsSettings();
internal... | {
"task_id": "project_cc_csharp/69",
"repository": "RageAgainstThePixel-com.rest.blockadelabs-aa2142f",
"file": "BlockadeLabs/Packages/com.rest.blockadelabs/Runtime/BlockadeLabsSettings.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 29,
"right_context_start_lineno": 31
} |
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 !=... | EnemyIdentifier ___eid, ref GameObject ___origWP)
{ |
if (___eid.enemyType != EnemyType.Soldier)
return;
___eid.weakPoint = null;
}
}
class SoliderGrenadeFlag : MonoBehaviour
{
public GameObject tempExplosion;
}
class Solider_ThrowProjectile_Patch
{
static void Postfix(ZombieProjec... | {
"task_id": "project_cc_csharp/11",
"repository": "eternalUnion-UltraPain-ad924af",
"file": "Ultrapain/Patches/Solider.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 23,
"right_context_start_lineno": 25
} |
using HarmonyLib;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEngine;
using UnityEngine.AI;
namespace Ultrapain.Patches
{
class FerrymanFlag : MonoBehaviour
{
private int currentCombo = 0;
public List<int> randomComboPattern = new List<int>();
... | NavMeshAgent ___nma,
ref bool ___useMain, ref bool ___useOar, ref bool ___useKick, ref bool ___backTrailActive,
bool ___bossVersion, bool ___inPhaseChange)
{ |
FerrymanFlag flag = __instance.gameObject.GetComponent<FerrymanFlag>();
if (flag == null)
return;
if (___bossVersion && ___inPhaseChange)
{
flag.remainingCombo = ConfigManager.ferrymanComboCount.value;
return;
... | {
"task_id": "project_cc_csharp/12",
"repository": "eternalUnion-UltraPain-ad924af",
"file": "Ultrapain/Patches/Ferryman.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 49,
"right_context_start_lineno": 53
} |
using HarmonyLib;
using UnityEngine.UI;
namespace Ultrapain
{
class DifficultySelectPatch
{
static void Postfix( | DifficultySelectButton __instance)
{ |
string difficultyName = __instance.transform.Find("Name").GetComponent<Text>().text;
Plugin.ultrapainDifficulty = difficultyName == ConfigManager.pluginName.value || ConfigManager.globalDifficultySwitch.value;
Plugin.realUltrapainDifficulty = difficultyName == ConfigManager.pluginNa... | {
"task_id": "project_cc_csharp/52",
"repository": "eternalUnion-UltraPain-ad924af",
"file": "Ultrapain/DifficultySelectPatch.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 7,
"right_context_start_lineno": 9
} |
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... | Material gabrielFakeMat; |
public static Sprite blueRevolverSprite;
public static Sprite greenRevolverSprite;
public static Sprite redRevolverSprite;
public static Sprite blueShotgunSprite;
public static Sprite greenShotgunSprite;
public static Sprite blueNailgunSprite;
public static Spri... | {
"task_id": "project_cc_csharp/41",
"repository": "eternalUnion-UltraPain-ad924af",
"file": "Ultrapain/Plugin.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 108,
"right_context_start_lineno": 109
} |
using TreeifyTask;
using System;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using TaskStatus = TreeifyTask.TaskStatus;
namespace TreeifyTask.Sample
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summa... | IProgressReporter progressReporter, CancellationToken token, CodeBehavior behaviors = null, string progressMessage = null)
{ |
behaviors ??= new CodeBehavior();
progressMessage ??= "In progress ";
progressReporter.Report(TaskStatus.InProgress, 0, $"{progressMessage}: 0%");
bool error = false;
if (behaviors.ShouldThrowException)
{
throw new Exception();
... | {
"task_id": "project_cc_csharp/63",
"repository": "intuit-TreeifyTask-4b124d4",
"file": "Source/TreeifyTask.WpfSample/MainWindow.xaml.cs",
"context_start_lineno": 0,
"groundtruth_start_lineno": 75,
"right_context_start_lineno": 77
} |
End of preview.
README.md exists but content is empty.
- Downloads last month
- 192