text stringlengths 40 299k | repo_name stringlengths 7 71 | path stringlengths 4 235 | source_url stringlengths 45 289 | commit_or_blob_id stringlengths 25 25 | license stringclasses 7
values | source_dataset stringclasses 1
value | content_sha256 stringlengths 64 64 | quality_score float64 0.2 0.95 | category_slice stringclasses 1
value | token_count int64 11 109k | is_synthetic bool 1
class | collected_at stringdate 2026-07-17 00:00:00 2026-07-17 00:00:00 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
using System;
using System.Collections;
using System.Linq;
using Xunit;
namespace Popsql.Tests
{
public class SqlValuesTests
{
[Fact]
public void Add_WithNullValues_ThrowsArgumentNull()
{
var values = new SqlValues();
Assert.Throws<ArgumentNullException>(() => values.Add(null));
}
[Fact]
public v... | WouterDemuynck/popsql | src/Popsql.Tests/SqlValuesTests.cs | https://github.com/WouterDemuynck/popsql/blob/HEAD/src/Popsql.Tests/SqlValuesTests.cs | ghcode:00000:b2e0b66544c6 | mit | codeparrot/github-code | b2e0b66544c6236b4c208501fe6fd023920c2cb7fb52fc53a5ff07cbfa74ce72 | 0.75 | testing_debugging_repair_refactoring | 311 | false | 2026-07-17 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using IdentityServer3.Core.Events;
using IdentityServer3.ElasticSearchEventService.Extensions;
using IdentityServer3.ElasticSearchEventService.Mapping;
using IdentityServer3.ElasticSearchEventService.Mapping.Configuration... | johnkors/IdentityServer3.Contrib.ElasticSearchEventService | source/Unittests/DefaultLogEventMapperTests.cs | https://github.com/johnkors/IdentityServer3.Contrib.ElasticSearchEventService/blob/HEAD/source/Unittests/DefaultLogEventMapperTests.cs | ghcode:00000:62c95991ce59 | mit | codeparrot/github-code | 62c95991ce59dd48b18266846fca83773d612e8adb6834a610e83571190b3fb6 | 0.75 | testing_debugging_repair_refactoring | 871 | false | 2026-07-17 |
using NUnit.Framework;
using Ploeh.AutoFixture;
using RememBeer.Models.Dtos;
using RememBeer.Tests.Utils;
namespace RememBeer.Tests.Models.Dtos
{
[TestFixture]
public class BeerDtoTests : TestClassBase
{
[Test]
public void Setters_ShouldSetProperties()
{
var id = this... | J0hnyBG/RememBeerMe | src/RememBeer.Tests/Models/Dtos/BeerDtoTests.cs | https://github.com/J0hnyBG/RememBeerMe/blob/HEAD/src/RememBeer.Tests/Models/Dtos/BeerDtoTests.cs | ghcode:00000:7688df069cee | mit | codeparrot/github-code | 7688df069cee061d06a9cf4763145c8d0d19ffb2df2db9b651302c5f860ccdcc | 0.75 | testing_debugging_repair_refactoring | 202 | false | 2026-07-17 |
using Academy.Core.Contracts;
using Academy.Commands.Adding;
using Moq;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Academy.Tests.Commands.Mocks;
namespace Academy.Tests.Commands.AddingTests.AddStudentToSea... | TelerikAcademy/Unit-Testing | Topics/04. Workshops/Workshop (Students)/Academy/Workshop/Academy.Tests/Commands/Adding/AddStudentToSeasonCommandTests/Constructor_Should.cs | https://github.com/TelerikAcademy/Unit-Testing/blob/HEAD/Topics/04. Workshops/Workshop (Students)/Academy/Workshop/Academy.Tests/Commands/Adding/AddStudentToSeasonCommandTests/Constructor_Should.cs | ghcode:00000:cf98a61ff470 | mit | codeparrot/github-code | cf98a61ff470b7bc8d239d3b2fcca5f8417c77c3972b82cc8d282a752d246ccc | 0.7 | testing_debugging_repair_refactoring | 376 | false | 2026-07-17 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.AccessControl;
using System.Text;
using System.Threading.Tasks;
namespace DynamicSerializer.Test
{
public class IX
{
public int IP { get; set; }
}
[Serializable]
public class A
{
public A()
{
... | conwid/IL-boss | DynamicSerializer.Test/TestClasses.cs | https://github.com/conwid/IL-boss/blob/HEAD/DynamicSerializer.Test/TestClasses.cs | ghcode:00000:b0599c88794e | mit | codeparrot/github-code | b0599c88794e212ffd1bb5eefd7ef1ddbed5f1468c90b2771320f4f3596c696e | 0.75 | testing_debugging_repair_refactoring | 509 | false | 2026-07-17 |
using System;
using System.Linq;
using Cresce.Datasources.Sql;
using Cresce.Models;
using NUnit.Framework;
namespace Cresce.Business.Tests.Integration.Sql
{
[TestFixture]
internal class InvoiceRepositoryTests : SqlTests
{
private SqlInvoiceRepository _repository;
private Patient _patient;
... | AlienEngineer/Cresce | Cresce.Tests.Integration/Sql/InvoiceRepositoryTests.cs | https://github.com/AlienEngineer/Cresce/blob/HEAD/Cresce.Tests.Integration/Sql/InvoiceRepositoryTests.cs | ghcode:00000:0fab7c20c2fc | mit | codeparrot/github-code | 0fab7c20c2fcbae7a0c5b16bd7438ce567627b99c246efde169061a8690ad3e6 | 0.85 | testing_debugging_repair_refactoring | 815 | false | 2026-07-17 |
using Humanizer.Localisation;
using Xunit;
using Xunit.Extensions;
namespace Humanizer.Tests.Localisation.ptBR
{
public class DateHumanizeTests : AmbientCulture
{
public DateHumanizeTests() : base("pt-BR") { }
[Theory]
[InlineData(-2, "2 segundos atrás")]
[InlineData(-1, "um s... | hhariri/Humanizer | src/Humanizer.Tests/Localisation/pt-BR/DateHumanizeTests.cs | https://github.com/hhariri/Humanizer/blob/HEAD/src/Humanizer.Tests/Localisation/pt-BR/DateHumanizeTests.cs | ghcode:00000:e78becb08234 | mit | codeparrot/github-code | e78becb0823444efdca505f6006b4400a44f5a223c1ca32c876a9391bd38597c | 0.75 | testing_debugging_repair_refactoring | 798 | false | 2026-07-17 |
/* ----------------------------------------------------------------------------
* Copyright (C) 2013 Arne F. Claassen
* geekblog [at] claassen [dot] net
* http://github.com/sdether/Calculon
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated d... | sdether/Calculon | Calculon.Tests/BuilderTests.cs | https://github.com/sdether/Calculon/blob/HEAD/Calculon.Tests/BuilderTests.cs | ghcode:00000:800c1738db87 | mit | codeparrot/github-code | 800c1738db8760aeb30eac1200717484322497eedf0fc53c319c086230619d48 | 0.75 | testing_debugging_repair_refactoring | 436 | false | 2026-07-17 |
using System;
using Xunit;
using System.Linq;
using hihapi.Models;
using hihapi.Controllers;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.OData.Results;
using hihapi.test.common;
namespace hihapi.unittest.Finance
{
[Collection("HIHAPI_Un... | alvachien/achihapi | test/hihapi.test/UnitTests/Finance/Config/FinanceDocumentTypesControllerTest.cs | https://github.com/alvachien/achihapi/blob/HEAD/test/hihapi.test/UnitTests/Finance/Config/FinanceDocumentTypesControllerTest.cs | ghcode:00000:6b7704666b9c | mit | codeparrot/github-code | 6b7704666b9c1f641faefa6934fbcb6881dba4477ef13b10d17a3a3c3b6ccf3e | 0.7 | testing_debugging_repair_refactoring | 847 | false | 2026-07-17 |
using System;
using System.Diagnostics;
namespace Oragon.Architecture.IO.Path
{
partial class PathHelpers
{
#region Private Classes
private sealed class RelativeFilePath : RelativePathBase, IRelativeFilePath
{
#region Internal Constructors
internal RelativeFilePath(string pathString)
: base(pathStr... | luizcarlosfaria/Oragon.Architecture | [source]/Oragon.Architecture/IO/Path/PathHelpers+RelativeFilePath.cs | https://github.com/luizcarlosfaria/Oragon.Architecture/blob/HEAD/[source]/Oragon.Architecture/IO/Path/PathHelpers+RelativeFilePath.cs | ghcode:00000:a4a3103dcd0d | mit | codeparrot/github-code | a4a3103dcd0db38c9ac782114b26051a7c6c94efb8c8368c50011f9fb583e761 | 0.7 | testing_debugging_repair_refactoring | 987 | false | 2026-07-17 |
using System.Threading;
using CodeTiger;
using Xunit;
namespace UnitTests.CodeTiger
{
public class LazyTests
{
public class Create1
{
[Fact]
public void SetsIsValueCreatedToFalse()
{
var target = Lazy.Create<object>();
Assert... | csdahlberg/CodeTigerLib | UnitTests/UnitTests.CodeTiger.Core/LazyTests.cs | https://github.com/csdahlberg/CodeTigerLib/blob/HEAD/UnitTests/UnitTests.CodeTiger.Core/LazyTests.cs | ghcode:00000:0833948d9d3d | mit | codeparrot/github-code | 0833948d9d3d7214c66498d03bef1b0854abb5e89e4fda99ab178734f4e60d40 | 0.75 | testing_debugging_repair_refactoring | 1,176 | false | 2026-07-17 |
using System.Threading.Tasks;
using FluentAssertions;
using Histrio.Testing;
using Xunit;
namespace Histrio.Tests.Cell
{
public class When_getting_a_value_from_a_cell : GivenWhenThen
{
[Theory,
InlineData(true),
InlineData(333),
InlineData(new[] {true, true}),
Inline... | MCGPPeters/Histrio | old/src/Histrio.Tests/Cell/When_getting_a_value_from_a_cell.cs | https://github.com/MCGPPeters/Histrio/blob/HEAD/old/src/Histrio.Tests/Cell/When_getting_a_value_from_a_cell.cs | ghcode:00000:55722cdd779d | mit | codeparrot/github-code | 55722cdd779de79110ed76fe75bf284bf35d78a7fa59dedac5bea519eb2b2a7a | 0.7 | testing_debugging_repair_refactoring | 249 | false | 2026-07-17 |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ModelAppServiceInfoProviderTest.cs" company="Kephas Software SRL">
// Copyright (c) Kephas Software SRL. All rights reserved.
// Licensed under the MIT license. See LICENSE fi... | quartz-software/kephas | src/Tests/Kephas.Model.Tests/ModelAppServiceInfoProviderTest.cs | https://github.com/quartz-software/kephas/blob/HEAD/src/Tests/Kephas.Model.Tests/ModelAppServiceInfoProviderTest.cs | ghcode:00000:84df201141dc | mit | codeparrot/github-code | 84df201141dc50911478f83c0f7a6316bceacc76ec482595fe78052da1f42cb2 | 0.95 | testing_debugging_repair_refactoring | 317 | false | 2026-07-17 |
using System.IO;
using System.Diagnostics;
using NDepend.Path;
namespace NDepend.Test.Unit {
public static class DirForTest {
public static IAbsoluteDirectoryPath ExecutingAssemblyDir {
get {
// If this following line doesn't work, it is because of ShadowCopyCache with NUnit
... | psmacchia/NDepend.Path | NDepend.Path.Tests/DirForTest.cs | https://github.com/psmacchia/NDepend.Path/blob/HEAD/NDepend.Path.Tests/DirForTest.cs | ghcode:00000:6732923fde6f | mit | codeparrot/github-code | 6732923fde6f0fc174f6575c0f19d3d864e10fdf49673948c6df54d1738e0166 | 0.7 | testing_debugging_repair_refactoring | 724 | false | 2026-07-17 |
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Xunit;
namespace MR.AspNetCore.Jobs.Server
{
public class InfiniteRetryProcessorTest
{
[Fact]
public async Task Process_ThrowingProcessingCanceledException_Returns()
{
// Arr... | mrahhal/MR.AspNetCore.Jobs | test/MR.AspNetCore.Jobs.Tests/Server/InfiniteRetryProcessorTest.cs | https://github.com/mrahhal/MR.AspNetCore.Jobs/blob/HEAD/test/MR.AspNetCore.Jobs.Tests/Server/InfiniteRetryProcessorTest.cs | ghcode:00000:2084f9a17c20 | mit | codeparrot/github-code | 2084f9a17c20905529eeeb8b48bf620db6b160405c0ba61d4a2a6e77f32b494b | 0.6 | testing_debugging_repair_refactoring | 185 | false | 2026-07-17 |
namespace RapidFTP.Chilkat.Tests.Utilities
{
using System.Diagnostics;
using RapidFTP.Models;
using RapidFTP.Utilities;
using Xunit;
using Xunit.Extensions;
public class UnixPathTest
{
[InlineData("/lv1", 1)]
[InlineData("/lv1/lv2", 2)]
[InlineData("/lv1/lv2/", 2)... | khoale/RapidFTP | src/RapidFTP.Chilkat.Tests/Utilities/UnixPathTest.cs | https://github.com/khoale/RapidFTP/blob/HEAD/src/RapidFTP.Chilkat.Tests/Utilities/UnixPathTest.cs | ghcode:00000:3df1a7e2411b | mit | codeparrot/github-code | 3df1a7e2411babc769d4d95e840d61e837f83e9bda0dd24948df1d7138808782 | 0.6 | testing_debugging_repair_refactoring | 357 | false | 2026-07-17 |
using System.Collections.Generic;
using System.IO;
using Reinforced.Typings.Fluent;
using Xunit;
namespace Reinforced.Typings.Tests.SpecificCases
{
public partial class SpecificTestCases
{
[Fact]
public void ReferencesPart6ByDanielWest()
{
/**
* Specific test ca... | reinforced/Reinforced.Typings | Reinforced.Typings.Tests/SpecificCases/SpecificTestCases.ReferencesPart6ByDanielWest.cs | https://github.com/reinforced/Reinforced.Typings/blob/HEAD/Reinforced.Typings.Tests/SpecificCases/SpecificTestCases.ReferencesPart6ByDanielWest.cs | ghcode:00000:96c6f879a28e | mit | codeparrot/github-code | 96c6f879a28e175ac2e845234c792e4b598e15938c585132661ee9304523c3eb | 0.6 | testing_debugging_repair_refactoring | 330 | false | 2026-07-17 |
namespace UrlBuilderTests
{
using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Se.Url;
[TestClass]
public class QueryParamTest
{
[TestMethod]
public void DefaultQueryParam()
{
var url = new UrlBuilde... | shoutem/UrlBuilder | UrlBuilderTests/QueryParamTest.cs | https://github.com/shoutem/UrlBuilder/blob/HEAD/UrlBuilderTests/QueryParamTest.cs | ghcode:00000:4937306189eb | mit | codeparrot/github-code | 4937306189eb006d90592d94969ceb96bfba81b1b93c7184ecfb53ed67528b18 | 0.7 | testing_debugging_repair_refactoring | 1,174 | false | 2026-07-17 |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Test.Utilities;
using Xunit;
using VerifyCS = Test.Utilities.CSharpCodeFixVerifier<
Microsoft.CodeQuality.Analyzers.ApiDesignGuidelin... | dotnet/roslyn-analyzers | src/NetAnalyzers/UnitTests/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/EnumsShouldHaveZeroValueTests.Fixer.cs | https://github.com/dotnet/roslyn-analyzers/blob/HEAD/src/NetAnalyzers/UnitTests/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/EnumsShouldHaveZeroValueTests.Fixer.cs | ghcode:00000:69fb81f06b5e | mit | codeparrot/github-code | 69fb81f06b5e4bcf90c043b1b1f8feb093ba933fdfb3a65f8765ed2c58913c1b | 0.7 | testing_debugging_repair_refactoring | 2,703 | false | 2026-07-17 |
//
// PgpMimeTests.cs
//
// Author: Jeffrey Stedfast <jestedfa@microsoft.com>
//
// Copyright (c) 2013-2022 .NET Foundation and Contributors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Soft... | jstedfast/MimeKit | UnitTests/Cryptography/PgpMimeTests.cs | https://github.com/jstedfast/MimeKit/blob/HEAD/UnitTests/Cryptography/PgpMimeTests.cs | ghcode:00000:aca8107dc99f | mit | codeparrot/github-code | aca8107dc99fd7a408a8568f2729692369a5adf320322237f9d1520911b55e94 | 0.72 | testing_debugging_repair_refactoring | 24,267 | false | 2026-07-17 |
using System;
using System.IO;
using Xunit;
namespace OpenSage.Tests.Data
{
internal static class TestUtility
{
public static T DoRoundtripTest<T>(
Func<Stream> getOriginalStream,
Func<Stream, T> parseCallback,
Action<T, Stream> serializeCallback,
bool s... | feliwir/openSage | src/OpenSage.Game.Tests/Data/TestUtility.cs | https://github.com/feliwir/openSage/blob/HEAD/src/OpenSage.Game.Tests/Data/TestUtility.cs | ghcode:00000:ecc693f1e704 | mit | codeparrot/github-code | ecc693f1e70482d389a401b0b838efa4578e8f5dae3174bb3b5e4693d2dd86e1 | 0.75 | testing_debugging_repair_refactoring | 325 | false | 2026-07-17 |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using PholioVisualisation.DataAccess;
using PholioVisualisation.DataConstruction;
using PholioVisualisation.Export;
using PholioVisualisation.Export.FileBuilder.Containers;
using PholioVisualisation.Export.FileBuilder.SupportModels;
using PholioVisualisati... | PublicHealthEngland/fingertips-open | PholioVisualisationWS/ExportTest/FileBuilder/Writers/CsvBuilderIndicatorDataWriterTest.cs | https://github.com/PublicHealthEngland/fingertips-open/blob/HEAD/PholioVisualisationWS/ExportTest/FileBuilder/Writers/CsvBuilderIndicatorDataWriterTest.cs | ghcode:00000:671920d52e2f | mit | codeparrot/github-code | 671920d52e2f08e82efcb37877f2b2c56c8b0cc7369b84f4f2e183739b222eaa | 0.6 | testing_debugging_repair_refactoring | 1,250 | false | 2026-07-17 |
End of preview. Expand in Data Studio
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
csharp-dotnet-cpt-v0
A reproducible C# / .NET continued-pretraining (CPT) corpus for Qwen2.5-Coder-1.5B.
- HF: https://huggingface.co/datasets/Nottybro/csharp-dotnet-cpt-v0 (private)
- Total unique tokens: 695,288,168 (Qwen2.5-Coder-1.5B tokenizer)
- Files: 681,426 | Repositories: 68,869
- Format: Zstandard-compressed Parquet, schema below.
See DATASET_CARD.md for sources, license policy, filtering, limitations. See reports/summary.md for full statistics.
- Downloads last month
- 71