added string | created string | id string | metadata dict | source string | text string | code-score float64 | md5 string |
|---|---|---|---|---|---|---|---|
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817018 | {
"extension": "c-sharp",
"max_stars_count": "3.0",
"max_stars_repo_name": "Senkobot/Senko.Discord",
"max_stars_repo_path": "src/Senko.Discord.Core/Packets/Events/GuildEmojisUpdateEventArgs.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136238"
} | starcoder | using System.Runtime.Serialization;
using System.Text.Json.Serialization;
namespace Senko.Discord.Packets
{
[DataContract]
public class GuildEmojisUpdateEventArgs
{
[JsonPropertyName("guild_id")]
[DataMember(Name = "guild_id", Order = 1)]
public ulong GuildId { get; set; }
[JsonPropertyName("e... | 1.844247 | ca055f93ebf0016e839268dfa2e16fcb |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817019 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "CHSR/PyramidModelWebApp",
"max_stars_repo_path": "Pyramid/Pyramid/Models/CodeParticipantType.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136239"
} | starcoder | <reponame>CHSR/PyramidModelWebApp
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be ... | 1.686904 | 4b5f512109994b14af3267093d18ac72 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817020 | {
"extension": "c-sharp",
"max_stars_count": "1.0",
"max_stars_repo_name": "AndreasESchneider/AbpUpdateHelper",
"max_stars_repo_path": "AbpUpdateHelper/AbpUpdateController.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136240"
} | starcoder | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using AbpUpdateHelper.Services;
namespace AbpUpdateHelper
{
public class AbpUpdateController
{
private readonly List<IFileGroupAction> _fileActions;
private readonly List<IPostUpdateFileGro... | 2.46082 | a0fc6a6b04ec798cad64eaa4e41f2bd2 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817021 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "hallambaker/Callsign",
"max_stars_repo_path": "Goedel.Callsign.Log/CallsignServer.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136241"
} | starcoder | <filename>Goedel.Callsign.Log/CallsignServer.cs
// Copyright © 2021 by Threshold Secrets Llc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including w... | 1.81673 | 8c8e4ce051a3581693de86d26303f479 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817022 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "isabella232/Prism-Samples-Windows",
"max_stars_repo_path": "AdventureWorks.Shopper/AdventureWorks.Shopper/Services/AlertMessageService.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136242"
} | starcoder | using AdventureWorks.UILogic.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Windows.UI.Popups;
namespace AdventureWorks.Shopper.Services
{
public class AlertMessageService : IAlertMessageService
{
private static bool _isShowin... | 2.449357 | 377be402a89e74f2dffb216cdaf22bad |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817023 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "devhl-labs/DBAutomator",
"max_stars_repo_path": "DBAutomatorStandard/Models/RegisteredProperty.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136243"
} | starcoder | <gh_stars>0
using System;
using System.Reflection;
namespace devhl.DBAutomator
{
public class RegisteredProperty
{
#pragma warning disable CS8618 // Non-nullable field is uninitialized. Consider declaring as nullable.
public PropertyInfo Property { get; set; }
public Type PropertyType { get; ... | 1.780318 | 0dbbfbfd34570b37d40d74d157bf00e1 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817024 | {
"extension": "c-sharp",
"max_stars_count": "1.0",
"max_stars_repo_name": "VincentH-Net/Comet",
"max_stars_repo_path": "tests/Comet.Tests/Handlers/TextHandler.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136244"
} | starcoder | using System.Drawing;
namespace Comet.Tests.Handlers
{
public class TextHandler : GenericViewHandler
{
public TextHandler()
{
OnGetIntrinsicSize = HandleOnGetIntrinsicSize;
}
public Text VirtualView => (Text)CurrentView;
private SizeF HandleOnGetIntrinsicSize(SizeF arg)
{
var length = VirtualVie... | 2.606992 | 9a9efae1cb2aea6ee8070d91c52101a2 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817025 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "AddinX/Sample.Wcf",
"max_stars_repo_path": "src/AddinContext.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136245"
} | starcoder | <filename>src/AddinContext.cs<gh_stars>0
using System.Threading;
using AddinX.Configuration.Contract;
using AddinX.Sample.WcfSample.Controller;
using Autofac;
namespace AddinX.Sample.WcfSample
{
public class AddinContext
{
public static IConfigurationManager ConfigManager { get; set; }
privat... | 1.6832 | 40ac387e7b0d75ed407d9986a52cd8c7 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817026 | {
"extension": "c-sharp",
"max_stars_count": "16.0",
"max_stars_repo_name": "FalconNL93/WslToolbox",
"max_stars_repo_path": "WslToolbox.Gui/Validators/DistributionNameValidator.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136246"
} | starcoder | using System.Text.RegularExpressions;
namespace WslToolbox.Gui.Validators
{
public static class DistributionNameValidator
{
public static bool ValidateName(string name)
{
Regex validCharacters = new("^[a-zA-Z0-9]*$");
return name != null && validCharacters.IsMatch(name... | 2.400427 | a95e104c60fb5b3eb0518c67aed77596 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817027 | {
"extension": "c-sharp",
"max_stars_count": "1167.0",
"max_stars_repo_name": "LaudateCorpus1/LockstepFramework",
"max_stars_repo_path": "Integration/Environment/Heightmap/Long2D.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136247"
} | starcoder | <filename>Integration/Environment/Heightmap/Long2D.cs<gh_stars>1000+
namespace Lockstep
{
[System.Serializable]
public class Long2D : Array2D<long>
{
public Long2D()
{
}
public Long2D(int width, int height) : base(width, height)
{
}
}
} | 2.271498 | 06d9cd59ec74ad5a035c20cf8a01e570 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817028 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "12062021-dynamics365-uta/StanleyChanRevature1",
"max_stars_repo_path": "CodingChallenges_Due12.31.2021_Midnight/9_Classes/9_Classes/Human2.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136248"
} | starcoder | <reponame>12062021-dynamics365-uta/StanleyChanRevature1
using System;
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("9_ClassesChallenge.Tests")]
namespace _9_ClassesChallenge
{
internal class Human2
{
private string firstName = "Pat";
private string lastName = "Smyth";
... | 2.81069 | 26cb515aa5d11cf2490ebfb3b4083690 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817029 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "dmars8047/DSMZip",
"max_stars_repo_path": "DSMZip.Console/ExtractCommand.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136249"
} | starcoder | using System.Diagnostics.CodeAnalysis;
using System.IO.Compression;
using Spectre.Console;
using Spectre.Console.Cli;
namespace DSMZip.Console
{
public class ExtractCommand : Command<ExtractSettings>
{
public override int Execute([NotNull] CommandContext context, [NotNull] ExtractSettings settings)
... | 2.806942 | d0a60de200f86e4874d8d2457ae70e2f |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817030 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "rickevry/protoactor-dotnet",
"max_stars_repo_path": "examples/AKS/AKS.Shared/Settings/GenericDataBaseSettings.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136250"
} | starcoder | namespace AKS.Shared
{
public class GenericDataBaseSettings : IGenericDataBaseSettings
{
public string ConnectionName { get; set; } = "";
public string CollectionName { get; set; } = "";
public string ConnectionString { get; set; } = "";
public string DatabaseName { get; set; } ... | 1.561898 | fc9355aa106cd4c018a84a32dbd11563 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817031 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "DAXGRID/tile-watcher",
"max_stars_repo_path": "src/TileWatcher/Config/KafkaSetting.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136251"
} | starcoder | namespace TileWatcher.Config
{
public record KafkaSetting
{
public string Consumer { get; set; }
public string Server { get; set; }
public string Topic { get; set; }
}
}
| 1.447446 | 955e30b59e3166822e2f650aad16f2e4 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817032 | {
"extension": "c-sharp",
"max_stars_count": "2.0",
"max_stars_repo_name": "rlbisbe/RealPollSignalR",
"max_stars_repo_path": "RealPollSignalR/Services/MailService.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136252"
} | starcoder | using System;
using System.Collections.Generic;
using System.Web.Configuration;
using System.Linq;
using System.Net.Mail;
using System.Net.Mime;
using System.Web;
using System.Web.Hosting;
using System.IO;
namespace RealPollSignalR.Services
{
public class MailService : IMailService
{
public string Gen... | 2.339809 | 72dfbf42a8bccf06ba2c013e613b89f7 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817033 | {
"extension": "c-sharp",
"max_stars_count": "223.0",
"max_stars_repo_name": "KenitoInc/AspNetCoreOData",
"max_stars_repo_path": "test/Microsoft.AspNetCore.OData.E2E.Tests/UriParserExtension/UnqualifiedCallTest.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136253"
} | starcoder | <gh_stars>100-1000
//-----------------------------------------------------------------------------
// <copyright file="UnqualifiedCallTest.cs" company=".NET Foundation">
// Copyright (c) .NET Foundation and Contributors. All rights reserved.
// See License.txt in the project root for license information.
// <... | 1.867665 | 72ad0b9302fa5a034556b3786f6608ad |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817034 | {
"extension": "c-sharp",
"max_stars_count": "23.0",
"max_stars_repo_name": "Ladesb/task-list",
"max_stars_repo_path": "csharp/Tasks.Tests/BlockingStream.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136254"
} | starcoder | <filename>csharp/Tasks.Tests/BlockingStream.cs
using System;
using System.IO;
using System.Threading;
namespace Tasks
{
public class BlockingStream : Stream
{
private readonly Stream underlyingStream;
public BlockingStream(Stream underlyingStream)
{
this.underlyingStream = underlyingStream;
}
public ... | 3.161508 | f68b5c4165aebd345831572b4e064ce4 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817035 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "gagnedavid25/SimpleValidatorBuilder",
"max_stars_repo_path": "src/SimpleValidatorBuilder/Parser/ValueIsGreaterThanOrEqual.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136255"
} | starcoder | using CSharpFunctionalExtensions;
namespace SimpleValidatorBuilder.Parser;
public sealed class ValueIsGreaterThanOrEqual<TValue, TError> : IParser<TValue, TError>
where TValue : IComparable<TValue>
{
private readonly Func<TError> _errorFactory;
public TValue MinValue { get; }
internal ValueIsGreate... | 2.715963 | 270b137073043746d1f2252d1fad603d |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817036 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "pjtucker/WebApiStrap",
"max_stars_repo_path": "WebApiStrap/Application/Filters/Extensions.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136256"
} | starcoder | namespace WebApiStrap.Application.Filters
{
using System;
using System.Net;
using System.Net.Http;
using Domain.Exception;
using Search;
public static class Extensions
{
public static HttpResponseMessage CreateHandledExceptionResponse(this HttpRequestMessage request, Exception excep... | 2.304661 | b4abcf571b0220d243d317fd993405a0 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817037 | {
"extension": "c-sharp",
"max_stars_count": "1.0",
"max_stars_repo_name": "basp/raina",
"max_stars_repo_path": "Raina/Model/INamespace.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136257"
} | starcoder | namespace Raina.Model
{
using System;
using System.Collections.Generic;
public interface INamespace
{
int NamespacesUsed { get; }
}
} | 1.713907 | 043f21fb49b58169070ad9db3dd47f96 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817038 | {
"extension": "c-sharp",
"max_stars_count": "8.0",
"max_stars_repo_name": "BeatSkip/PrimeDev",
"max_stars_repo_path": "PrimeWeb/HpTypes/HpInfos.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136258"
} | starcoder | namespace PrimeWeb.Types
{
public struct HpInfos
{
public byte[] Data { get; private set; } = new byte[0];
public string Serial { get; private set; } = "";
public string Version { get; private set; } = "";
public int Build { get; private set; } = 0;
public string Product { get; set; } = "";
public u... | 2.706212 | 9e53c3f93f0da46326fb8435d798c98c |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817039 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "kidfearless/kfgo",
"max_stars_repo_path": "code/swb_base/WeaponBase.Shotty.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136259"
} | starcoder | <reponame>kidfearless/kfgo
/*
* Weapon base for weapons using shell based reloading
*/
namespace SWB_Base
{
public partial class WeaponBaseShotty : WeaponBase
{
public virtual float ShellReloadTimeStart => -1; // Duration of the reload start animation
public virtual float ShellReloadTimeInsert => -1; // Dura... | 1.94713 | efc214074b88673e4d9aa8cef584e84c |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817040 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "delainewendling/BeWell",
"max_stars_repo_path": "src/BeWellApi/Controllers/EmotionController.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136260"
} | starcoder | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using BeWellApi.Data;
using BeWellApi.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identi... | 2.454776 | c0d686fbb834f64a9a8fae9f7eb895c0 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817041 | {
"extension": "c-sharp",
"max_stars_count": "1.0",
"max_stars_repo_name": "kevinsmgov/Orchard",
"max_stars_repo_path": "src/Orchard.Web/Core/Common/Migrations.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136261"
} | starcoder | using System;
using System.Linq;
using Orchard.ContentManagement.MetaData;
using Orchard.Core.Common.Models;
using Orchard.Core.Contents.Extensions;
using Orchard.Data;
using Orchard.Data.Migration;
namespace Orchard.Core.Common {
public class Migrations : DataMigrationImpl {
private readonly IRepository<... | 2.002521 | 45d0966167ae2ba698a85ab83272db88 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817042 | {
"extension": "c-sharp",
"max_stars_count": "911.0",
"max_stars_repo_name": "cnork/referencesource",
"max_stars_repo_path": "System.ServiceModel/System/ServiceModel/AuditLevel.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136262"
} | starcoder | <reponame>cnork/referencesource<filename>System.ServiceModel/System/ServiceModel/AuditLevel.cs
//----------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
namespace System.ServiceModel
{
us... | 2.576503 | 399909db4349508b22299dc6a557bda9 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817043 | {
"extension": "c-sharp",
"max_stars_count": "1.0",
"max_stars_repo_name": "JTOne123/Calliope",
"max_stars_repo_path": "tests/Calliope.Tests/Validators/NotEmptyStringValidatorTests.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136263"
} | starcoder | using System.Linq;
using Calliope.Validation;
using Calliope.Validators;
using Xunit;
namespace Calliope.Tests.Validators
{
public class NotEmptyStringValidatorTests
{
private readonly NotEmptyStringValidator _validator;
public NotEmptyStringValidatorTests()
{
_validator = ... | 2.924322 | f87639fa9cda717c62c00f871f15cc73 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817044 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "Experiad/Xd.StorageProvider.Redis",
"max_stars_repo_path": "Tests/Orleans.Persistence.Redis.Tests/ClusterFixture.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136264"
} | starcoder | <reponame>Experiad/Xd.StorageProvider.Redis
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Orleans.Hosting;
using Orleans.TestingHost;
using StackExchange.Redis;
using System;
namespace Orleans.Persistence.Redis.Tests
{
public class ClusterFixture : IDisposable
... | 1.904046 | e26971aab6e7bdf7d439ed6b78084731 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817045 | {
"extension": "c-sharp",
"max_stars_count": "13.0",
"max_stars_repo_name": "JohanLarsson/Gu.PropertyGrid",
"max_stars_repo_path": "Gu.Wpf.PropertyGrid.Demo/Windows/RowStyleWindow.xaml.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136265"
} | starcoder | <gh_stars>10-100
namespace Gu.Wpf.PropertyGrid.Demo
{
using System.Windows;
public partial class RowStyleWindow : Window
{
public RowStyleWindow()
{
this.InitializeComponent();
}
}
}
| 1.398939 | 2b10f8d3748fc46fbbcfb3b9dfed3f85 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817046 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "randomnoun/packetmap",
"max_stars_repo_path": "PacketMap/SharpPcap/Util/Convert.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136266"
} | starcoder | /*
Copyright (c) 2005 <NAME>, http://www.tamirgal.com, All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of co... | 2.696855 | d7eacf3d7f8c2e3de84b711a831683b6 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817047 | {
"extension": "c-sharp",
"max_stars_count": "244.0",
"max_stars_repo_name": "JTOne123/Musoq",
"max_stars_repo_path": "Musoq.Evaluator.Tests.Core/EvaluationHelperTests.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136267"
} | starcoder | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Musoq.Evaluator.Helpers;
namespace Musoq.Evaluator.Tests.Core
{
[TestClass]
public class EvaluationHelperTests
{
public class TestSubClass
{
... | 2.355096 | 036b77a52a02d2294cb44b46a3745a05 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817048 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "illuminati-inc-2020/toadler",
"max_stars_repo_path": "Assets/Scripts/Floating.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136268"
} | starcoder | <reponame>illuminati-inc-2020/toadler
using UnityEngine;
using System.Collections;
public class Floating : MonoBehaviour {
private Vector3 initPos;
private float seed;
private float index;
public float speed = 0.25f;
public float amplitude = 1f;
public float drownSpeed = 0.2f;
public GameObject water;
// U... | 2.147882 | fe76f1d89786024f675ac8a1d5683849 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817049 | {
"extension": "c-sharp",
"max_stars_count": "2.0",
"max_stars_repo_name": "ancailliau/KAOSTools",
"max_stars_repo_path": "MetaModel/Model/Expert.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136269"
} | starcoder | using System.Collections.Generic;
using System;
using System.Linq;
using System.Runtime.Serialization;
namespace UCLouvain.KAOSTools.Core
{
public class Expert : KAOSCoreElement
{
public string Name { get; set; }
public override string FriendlyName {
get {
return s... | 2.207117 | 753c32c20898b164553209acdd8b6d0f |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817050 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "curtisy1/Localizati18n",
"max_stars_repo_path": "src/Localizati18n.ResourceManager/JsonResourceManager.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136270"
} | starcoder | namespace Localizati18n.ResourceManager {
using System;
using System.Collections.Concurrent;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Resources;
public class JsonResourceManager : ResourceManager {
private const string jsonExtension = ".... | 2.659858 | 940f912d9638255f7c007057c27d880c |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817051 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "aushakov/Xsrv-Windows-Controls",
"max_stars_repo_path": "src/Xsrv.Windows.Controls/Converters/BooleanConverter.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136271"
} | starcoder | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows.Data;
namespace Xsrv.Windows.Controls.Converters
{
/// <summary>
/// Base class for boolean converters.
/// </summary>
/// <typeparam name="T">The target type.</typeparam>
public abstract cl... | 3.232249 | 7cf2a3411c6aaf25e2d2124b90421d6b |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817052 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "rohan-warang/.net-symmetric-encryption",
"max_stars_repo_path": "SymmetricEncryption/CryptoUtil.Test/StringEncryptionTest.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136272"
} | starcoder | using CryptoUtil.Algorithms;
using CryptoUtil.Decryptors;
using CryptoUtil.Encryptors;
using CryptoUtil.Settings;
using NUnit.Framework;
using System.Security.Cryptography;
namespace CryptoUtil.Test
{
[TestFixture]
public class StringEncryptionTest
{
private IEncryptor<string, string> encryptor;
... | 2.977133 | b7a259048845bc38bdd984ece779a1c8 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817053 | {
"extension": "c-sharp",
"max_stars_count": "614.0",
"max_stars_repo_name": "isabella232/Comet",
"max_stars_repo_path": "src/Comet/Graphics/PathBuilder.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136273"
} | starcoder | //using System;
//using System.Collections.Generic;
//using System.Text.RegularExpressions;
//using System.Text;
//using System.Globalization;
//
//namespace Comet.Graphics
//{
// public class PathBuilder
// {
// public static PathF Build(string definition)
// {
// if (string.IsNullOrEmpty(definition))
// retu... | 2.87885 | 542075d4fa9142e3ff22a341d3bd8127 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817054 | {
"extension": "c-sharp",
"max_stars_count": "1.0",
"max_stars_repo_name": "jensandresen/clee",
"max_stars_repo_path": "src/Clee.Tests/TestDefaultCommandExecutor.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136274"
} | starcoder | <gh_stars>1-10
using System;
using Moq;
using Xunit;
namespace Clee.Tests
{
public class TestDefaultCommandExecutor
{
[Fact]
public void invokes_execute_method()
{
var mock = new Mock<ICommand<EmptyArgument>>();
var dummyArgument = new EmptyArgument();
... | 2.733994 | ebd645a9b2bf7844c1828088df486216 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817055 | {
"extension": "c-sharp",
"max_stars_count": "7.0",
"max_stars_repo_name": "lukedinkler/SecureMe-Windows",
"max_stars_repo_path": "App/SecureMe/SecureMe/obj/Debug/MainWindow.g.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136275"
} | starcoder | <filename>App/SecureMe/SecureMe/obj/Debug/MainWindow.g.cs
#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "F42151693D5624ABA3B4D4772EF68BD9"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
/... | 1.566346 | 77d754b65f4424c399ebb1125adbd4d4 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817056 | {
"extension": "c-sharp",
"max_stars_count": "2.0",
"max_stars_repo_name": "weitzhandler/entityframework-sharpdevelop",
"max_stars_repo_path": "src/EntityFramework/Core/Common/EntitySql/AST/MethodExpr.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136276"
} | starcoder | <reponame>weitzhandler/entityframework-sharpdevelop
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
namespace System.Data.Entity.Core.Common.EntitySql.AST
{
using System.Data.Entity.Utilities;
using System.Diagnostics;
//... | 1.94845 | 25fead9efe242a29ad815afb24a23121 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817057 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "BHAVIUS/PDP-DREAM",
"max_stars_repo_path": "PDP.DREAM.ScribeWebLib/Areas/NPDS/Views/Shared/Components/OtherTexts/AuthorEdit.cshtml",
"provenance": "train-00027-of-00045.jsonl.gz:136277"
} | starcoder | @model NexusResrepEditModel
@{ var NpdsController = "AuthorScribeTkgr"; var UtcdtFormat = "{0:yyyy-MM-dd HH:mm}"; }
@(Html.Kendo().Grid<OtherTextEditModel>()
.Name("OtherTexts#=RRRecordGuid#")
.DataSource(ds => ds.Ajax()
.Model(m => {
m.Id(p => p.RRFgroupGuid);
m.Field(p => p.RRFgroupGuid).Editable(false).Defaul... | 1.984515 | 053a4496c9d2356effd873929397951a |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817058 | {
"extension": "c-sharp",
"max_stars_count": "18.0",
"max_stars_repo_name": "jpaberc/CampfireNet",
"max_stars_repo_path": "CampfireNet/CampfireNet.Identities/TrustChainUtil.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136278"
} | starcoder | using System;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace CampfireNet.Identities {
public static class TrustChainUtil {
public const int UNASSIGNED_DATA_SIZE = 254;
// data [parent id][this id][held permissions][grantable permissions][parent ... | 2.615584 | 98e755c76345388aded4e75ef5a2d38c |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817059 | {
"extension": "c-sharp",
"max_stars_count": "116.0",
"max_stars_repo_name": "renu5682/Module-Zero",
"max_stars_repo_path": "sample/ModuleZeroSampleProject.Web/Views/ModuleZeroSampleProjectWebViewPageBase.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136279"
} | starcoder | using Abp.Web.Mvc.Views;
namespace ModuleZeroSampleProject.Web.Views
{
public abstract class ModuleZeroSampleProjectWebViewPageBase : ModuleZeroSampleProjectWebViewPageBase<dynamic>
{
}
public abstract class ModuleZeroSampleProjectWebViewPageBase<TModel> : AbpWebViewPage<TModel>
{
protec... | 1.513413 | cccda5e7879430991e3834a81da03360 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817060 | {
"extension": "c-sharp",
"max_stars_count": "1.0",
"max_stars_repo_name": "niklascp/ncode",
"max_stars_repo_path": "src/nCode.CRM/CrmModel.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136280"
} | starcoder | namespace nCode.CRM
{
using System;
using System.Linq;
using System.IO;
using System.Xml.Serialization;
using nCode;
using nCode.Metadata;
partial class CrmModel
{
/// <summary>
/// Initialized the Crm Model.
/// </summary>
public CrmModel()
... | 2.837029 | 9aaf6ecafbaf2a4c721d39ff451fa22d |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817061 | {
"extension": "c-sharp",
"max_stars_count": "3.0",
"max_stars_repo_name": "averrunci/UwpMvc",
"max_stars_repo_path": "Source/UwpMvc/Mvc/Wrappers/RefreshRequestedEventArgsWrapper.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136281"
} | starcoder | <reponame>averrunci/UwpMvc
// Copyright (C) 2019 Fievus
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
using Windows.Foundation;
using Windows.UI.Xaml.Controls;
namespace Charites.Windows.Mvc.Wrappers
{
/// <summary>
/// Provides d... | 1.926967 | c370d504b92cc249732c9147160dde14 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817062 | {
"extension": "c-sharp",
"max_stars_count": "1.0",
"max_stars_repo_name": "jbray1982/hotchocolate",
"max_stars_repo_path": "src/Core/Benchmark.Tests/Execution/SchemaFactory.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136282"
} | starcoder | using System;
using System.Collections.Generic;
using Moq;
namespace HotChocolate.Benchmark.Tests.Execution
{
public static class SchemaFactory
{
public static Schema Create()
{
var repository = new CharacterRepository();
var services = new Dictionary<Type, object>();
... | 2.41158 | 0015fa8c978f69c036bbf34f878ae943 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817063 | {
"extension": "c-sharp",
"max_stars_count": "694.0",
"max_stars_repo_name": "maddin30/LogExpert",
"max_stars_repo_path": "src/sftp-plugin/SftpFileSystem.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136283"
} | starcoder | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Xml.Serialization;
using System.IO;
using Chilkat;
using LogExpert;
namespace SftpFileSystem
{
public class SftpFileSystem : IFileSystemPlugin, ILogExpertPluginConfigurator
{
#regio... | 2.475624 | f9753c95a4a194ce12727ece52c07485 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817064 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "shurun19851206/ignite",
"max_stars_repo_path": "modules/platform/src/main/dotnet/Apache.Ignite.Core/Events/CacheRebalancingEvent.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136284"
} | starcoder | <reponame>shurun19851206/ignite
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version ... | 2.187834 | fe2c02a97cc71300c3a1c894785142e0 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817065 | {
"extension": "c-sharp",
"max_stars_count": "5.0",
"max_stars_repo_name": "Shyam200408/Binance.Net",
"max_stars_repo_path": "Binance.Net/Objects/BinanceDustLog.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136285"
} | starcoder | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Binance.Net.Objects
{
internal class BinanceDustLogListWrapper
{
public bool Success { get; set; }
public BinanceDustLogList? Results { get; set; }
}
internal class BinanceDustLogList
{
public... | 2.272888 | cd46d9db0cd89201601db21fab622213 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817066 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "renebentes/HeadFirstCSharp",
"max_stars_repo_path": "Cap7/Page289/IScaryClown.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136286"
} | starcoder | <reponame>renebentes/HeadFirstCSharp
namespace Page289
{
interface IScaryClown : IClown
{
string ScaryThingIHave { get; }
void ScareLittleChildren();
}
}
| 1.533906 | 644b5dc4ed405531fe85afaf9b1c1428 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817067 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "kczs6/Lingang3DScreen",
"max_stars_repo_path": "Lingang.City.Brain/Model/ControlPanelModel.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136287"
} | starcoder | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Lingang.City.Brain.Web.Model
{
public class ControlPanelModel
{
}
public class mapControlModel
{
public string xyz { get; set; }
public string angle { get; set; }
}
... | 1.183643 | d9f97ffefca61d760ce86aefeee2403d |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817068 | {
"extension": "c-sharp",
"max_stars_count": "1.0",
"max_stars_repo_name": "douglasramos/plannoy",
"max_stars_repo_path": "src/WebApi/CustomValidations/NotFutureDate.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136288"
} | starcoder | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace Plannoy.WebApi.CustomValidations
{
public class NotFutureDate : ValidationAttribute
{
public override string FormatErrorMessage(string name)
{... | 2.870558 | 8a5a82e85dba0349efc8e1abbccfc1d8 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817069 | {
"extension": "c-sharp",
"max_stars_count": "14.0",
"max_stars_repo_name": "dotnet9/Dotnet9",
"max_stars_repo_path": "src/Dotnet9.Domain/UrlLinks/UrlLinkManager.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136289"
} | starcoder | <reponame>dotnet9/Dotnet9
using Dotnet9.Core;
namespace Dotnet9.Domain.UrlLinks;
public class UrlLinkManager
{
private readonly IUrlLinkRepository _urlLinkRepository;
public UrlLinkManager(IUrlLinkRepository urlLinkRepository)
{
_urlLinkRepository = urlLinkRepository;
}
public async Tas... | 2.542006 | cbd197707fc86789d424bf31132ba298 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817070 | {
"extension": "c-sharp",
"max_stars_count": "3.0",
"max_stars_repo_name": "chrhodes/VNC",
"max_stars_repo_path": "VNC.Core/Xaml/Transitions/Rotate3D.xaml.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136290"
} | starcoder | <reponame>chrhodes/VNC
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Media.Media3D;
using Sys... | 2.002449 | a2bcf2f52c89ceb2ca6696dd73671b2f |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817071 | {
"extension": "c-sharp",
"max_stars_count": "1.0",
"max_stars_repo_name": "dyatlov-a/DDD-demo",
"max_stars_repo_path": "DDD.Web/App_Start/ProjectionConfig.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136291"
} | starcoder | using AutoMapper;
using DDD.Services;
namespace DDD.Web
{
public static class ProjectionConfig
{
private static void RegisterProfiles(IMapperConfigurationExpression config)
{
config.AddProfile(new DtosProfile());
}
/// <summary>
/// Projection Register
... | 1.836561 | a1749ee986510749ec8514cfe35a67fc |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817072 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "idubnori/fo-dicom",
"max_stars_repo_path": "DICOM/DicomRange.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136292"
} | starcoder | <filename>DICOM/DicomRange.cs
// Copyright (c) 2012-2018 fo-dicom contributors.
// Licensed under the Microsoft Public License (MS-PL).
using System;
namespace Dicom
{
public class DicomRange<T>
where T : IComparable<T>
{
public DicomRange(T min, T max)
{
Minimum = min;
... | 3.006812 | 9e1cf8d6db68da21b15410db7806da18 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817073 | {
"extension": "c-sharp",
"max_stars_count": "2.0",
"max_stars_repo_name": "natas1984/VRestionnaires",
"max_stars_repo_path": "VRestionnairesUnity/Assets/VRestionnaires/Scripts/UI/QuestionPanels/QuestionPanelDropDownUI.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136293"
} | starcoder | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using TMPro;
namespace VRestionnaire {
public class QuestionPanelDropDownUI:QuestionPanelUI, IQuestionPanelUI {
[SerializeField] TMP_Dropdown dropdown;
DropDownQuestion downQuestion;
public ... | 2.160733 | 9e38ecd8c484eb5c43ee39dc295c8592 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817074 | {
"extension": "c-sharp",
"max_stars_count": "4.0",
"max_stars_repo_name": "erictuvesson/OpenInput",
"max_stars_repo_path": "src/Mallos.Input.Windows/RawInput/Internal/DataStructures.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136294"
} | starcoder | namespace Mallos.Input.RawInput
{
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Explicit)]
struct DeviceInfo
{
[FieldOffset(0)] public int Size;
[FieldOffset(4)] public int Type;
[FieldOffset(8)] public RawDeviceMouse Mouse;
[FieldOffs... | 2.69221 | f69264c705c44242c2ba6e256e97e42d |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817075 | {
"extension": "c-sharp",
"max_stars_count": "135.0",
"max_stars_repo_name": "sgmunn/xts-test",
"max_stars_repo_path": "Tests/EscTests/Commands.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136295"
} | starcoder | using System;
using System.Collections.Generic;
using XtermSharp;
using Xunit;
namespace XtermSharp.Tests.EscTests {
static class Commands {
public static int [] ReadCSI (this IResponseReader reader, string final, string prefix = null)
{
var code = reader.ReadNext ();
switch (code) {
case 27:
re... | 2.901928 | 6022e033c4869a617d844e1cfb51c1fe |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817076 | {
"extension": "c-sharp",
"max_stars_count": "2.0",
"max_stars_repo_name": "ferrandisme/ProDataBase",
"max_stars_repo_path": "Core/Binary/PDBSave.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136296"
} | starcoder | <gh_stars>1-10
using UnityEngine;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using UnityEditor.Experimental.RestService;
using UnityEditor.UIElements;
using NUnit.Framework;
using System.Collections;
using System;
using System.Transactions;
using UnityEditorInternal;
using static PDBCore;
... | 1.898722 | 52ccb6a566a90598089349056ab8fcaa |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817077 | {
"extension": "c-sharp",
"max_stars_count": "10.0",
"max_stars_repo_name": "msdx321/Glamourer",
"max_stars_repo_path": "Glamourer.GameData/Customization/Customization.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136297"
} | starcoder | <filename>Glamourer.GameData/Customization/Customization.cs
using System.Runtime.InteropServices;
namespace Glamourer.Customization
{
[StructLayout(LayoutKind.Explicit)]
public readonly struct Customization
{
[FieldOffset(0)]
public readonly CustomizationId Id;
[FieldOff... | 2.429526 | 2bead342aac05e68cdf3fa5e411593c3 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817078 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "AngeloCresta/winforms-datavisualization-net4.8",
"max_stars_repo_path": "WebSamples/Appearance/Appearance/ChartAppearance.aspx.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136298"
} | starcoder | <reponame>AngeloCresta/winforms-datavisualization-net4.8<gh_stars>0
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using... | 2.183473 | 4a44d402b62f0f2f365800bea56a2353 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817079 | {
"extension": "c-sharp",
"max_stars_count": "3.0",
"max_stars_repo_name": "signalx/dev",
"max_stars_repo_path": "SignalX.SignalXLib/ISignalXSerializer.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136299"
} | starcoder | <gh_stars>1-10
namespace SignalXLib.Lib
{
public interface ISignalXSerializer
{
T DeserializeObject<T>(string data, string correlationId);
string SerializeObject(object data, string correlationId);
}
} | 1.577637 | 41a9b2389e4d13775436913adb71b318 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817080 | {
"extension": "c-sharp",
"max_stars_count": "173.0",
"max_stars_repo_name": "biesigrr/Rafty",
"max_stars_repo_path": "test/Rafty.UnitTests/TestingNode.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136300"
} | starcoder | using Rafty.FiniteStateMachine;
namespace Rafty.UnitTests
{
using System;
using System.Threading.Tasks;
using Concensus;
using Concensus.Messages;
using Concensus.Node;
using Concensus.States;
using Infrastructure;
/* Followers(�5.2):
� Respond to RPCs from candidates and leaders
... | 2.388836 | a77a21e0509413fd313ea99ca6d200d3 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817081 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "kant/mapillary_windows_phone",
"max_stars_repo_path": "src/Main/Mapillary/UserProfile.xaml.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136301"
} | starcoder | <reponame>kant/mapillary_windows_phone
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System.Threading.Tasks;
using System.Net.H... | 2.029164 | 6ecda22d5e0ae0ab336998b8b1eb792a |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817082 | {
"extension": "c-sharp",
"max_stars_count": "2.0",
"max_stars_repo_name": "TheKronks/ConsoleGraphics",
"max_stars_repo_path": "ConsoleGraphics/Game/Level.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136302"
} | starcoder | using ConsoleGraphics.Events;
using ConsoleGraphics.Graphics;
using ConsoleGraphics.Net;
using ConsoleGraphics.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleGraphics.Game
{
public class Level
{
public Space Sp... | 2.505433 | e8ba508c183e7c2452238550ebbd08f5 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817083 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "ericsingletonjr/Lab17-API-Double-Resource",
"max_stars_repo_path": "ToDoApi/ToDoApiTests/ToDoListControllerTests.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136303"
} | starcoder | <reponame>ericsingletonjr/Lab17-API-Double-Resource
using System;
using Xunit;
using System.Linq;
using ToDoApi.Data;
using Microsoft.EntityFrameworkCore;
using ToDoApi.Models;
using ToDoApi.Controllers;
using System.Net;
using Microsoft.AspNetCore.Mvc;
namespace ToDoApiTests
{
public class ToDoListControllerTest... | 2.468647 | 1ca832335c34e9bcc1141dcfd2be5bcb |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817084 | {
"extension": "c-sharp",
"max_stars_count": "1.0",
"max_stars_repo_name": "Jokerlocco/2019-2020_DAM1_EjerciciosClase",
"max_stars_repo_path": "chapter02-controlStructures/056d-MarksSwitch4-emptyCases.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136304"
} | starcoder | // <NAME>
// Numeric mark to text mark
// V4: empty cases
using System;
class NotaSwitch
{
static void Main()
{
Console.Write("Enter your mark: ");
int mark = Convert.ToInt32 (Console.ReadLine());
switch (mark)
{
case 0:
case 1:
... | 3.482708 | 58dfffb4ae0818aced4569cbc177f651 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817085 | {
"extension": "c-sharp",
"max_stars_count": "103.0",
"max_stars_repo_name": "scottbrady91/Blog-Example-Classes",
"max_stars_repo_path": "EcdsaIdentityServer4/Startup.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136305"
} | starcoder | using System;
using System.Security.Cryptography;
using IdentityServer4;
using IdentityServerHost.Quickstart.UI;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.IdentityModel.Tokens;
namespace EcdsaIdentityServer4
{
public class Startup
{
public void... | 1.661141 | 4850ccc44749b8d68a8ae12b31ce3100 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817086 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "Steffkn/TelerikAcademy",
"max_stars_repo_path": "Programming/03. OOP/04.OOPFundamentalPrinciplesI/03.TestAnimal/TestAnimal.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136306"
} | starcoder | <gh_stars>0
using System;
class TestAnimal
{
static void Main()
{
// declare some cats dogs and frogs
Cat[] cats =
{
new Kitten("Katarina", 2),
new Tomcat("Haro", 9),
new Kitten("Suzi", 3),
new Tomcat("Djaro", 10)
... | 3.503494 | 19b5f552e2fc2fde6100e069cb8d500f |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817087 | {
"extension": "c-sharp",
"max_stars_count": "60.0",
"max_stars_repo_name": "Margen67/KAMI",
"max_stars_repo_path": "KAMI.Core/Utilities/DerefChain.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136307"
} | starcoder | using System;
using System.Collections.Generic;
namespace KAMI.Core.Utilities
{
public class DerefChain
{
private IntPtr m_ipc;
private DerefChain m_parent;
// TODO: Is this really the right structure for this? We might never care about having children offsets like this.
privat... | 2.693472 | 1d37a518fa218dd3cadc27a8adf99f81 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817088 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "yindaheng98/LittleProgramSet",
"max_stars_repo_path": "BankWithForm/BankWithForm/GlobalClass.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136308"
} | starcoder | using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankWithForm
{
class GlobalClass
{
public static Banker banker;
public static int[] REQUEST;
public static int[] AVAILABLE; ... | 2.723308 | c8e3dd3a72d7264929e655e884fff532 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817089 | {
"extension": "c-sharp",
"max_stars_count": "20.0",
"max_stars_repo_name": "jeffnwarner/BrawlManagers",
"max_stars_repo_path": "CostumeManager/Portrait Viewers/SinglePortraitViewer.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136309"
} | starcoder | <reponame>jeffnwarner/BrawlManagers<filename>CostumeManager/Portrait Viewers/SinglePortraitViewer.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
usin... | 2.391534 | 9826c152fab71183799df239d3047357 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817090 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "pb10001/brainfxxk-introduction",
"max_stars_repo_path": "Str2BF.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136310"
} | starcoder | <reponame>pb10001/brainfxxk-introduction
using System;
using System.Collections.Generic;
using System.Linq;
public class Program{
public static void Main(){
/* ASCII文字列を標準入力から受け取って、同じ文字列を出力するBFのコードを返す */
var line = System.Console.ReadLine();
var array = new CharArray(line);
var res =... | 3.071474 | ec587ab5200448b6c094eac5aacc29ef |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817091 | {
"extension": "c-sharp",
"max_stars_count": "8130.0",
"max_stars_repo_name": "Ivanidzo4ka/machinelearning",
"max_stars_repo_path": "src/Microsoft.ML.CpuMath/FactorizationMachine/FactorizationMachineInterface.netstandard.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136311"
} | starcoder | <gh_stars>1000+
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.ML.Internal.CpuMath.Core;
namespace Microsoft.ML.Internal.CpuMath.FactorizationMac... | 1.83358 | c7639a858d0bae2ebe88c8d6a390874a |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817092 | {
"extension": "c-sharp",
"max_stars_count": "2.0",
"max_stars_repo_name": "csMACnz/Beefeater",
"max_stars_repo_path": "src/Beefeater.Tests/OptionExtensionsTests/ToNullableTests.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136312"
} | starcoder | using Xunit;
namespace Beefeater.Tests.OptionExtensionsTests
{
public class ToNullableTests
{
[Theory]
[InlineData(0)]
[InlineData(42)]
[InlineData(-12)]
[InlineData(int.MinValue)]
[InlineData(int.MaxValue)]
public void GivenAValueToNullableResultHasValu... | 2.498563 | 8e08bc5ed961b5ea6bd5c23691931eff |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817093 | {
"extension": "c-sharp",
"max_stars_count": "60.0",
"max_stars_repo_name": "evgkarpov/azure-notificationhubs-dotnet",
"max_stars_repo_path": "Samples/RedundantHubSample/RedundantHubSample/RedundantNotificationHubClient.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136313"
} | starcoder | using System.Threading;
using System.Threading.Tasks;
using Microsoft.Azure.NotificationHubs;
namespace RedundantHubSample
{
public enum DefaultNamespace
{
Primary = 1,
Backup = 2
}
public class RedundantNotificationHubClient
{
private readonly INotificationHubClient _prim... | 2.387937 | a21922d725c7e4ae206e88670675b53f |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817094 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "iuemon83/Cauldron",
"max_stars_repo_path": "Cauldron.Core/Entities/Effect/MoveCardContext.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136314"
} | starcoder | using Cauldron.Shared;
using Cauldron.Shared.MessagePackObjects;
namespace Cauldron.Core.Entities.Effect
{
public record MoveCardContext(Zone From, Zone To, InsertCardPosition InsertCardPosition = null);
} | 1.244427 | e331f05fb62a75a5348e67f268e34de2 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817095 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "RomanSN/AquariumPlant",
"max_stars_repo_path": "AquaMarket/AquaMarket/Views/Articles/Index.cshtml",
"provenance": "train-00027-of-00045.jsonl.gz:136315"
} | starcoder | <filename>AquaMarket/AquaMarket/Views/Articles/Index.cshtml
@using PagedList.Mvc;
@using PagedList;
@model AquaMarket.Models.ArticleViewModel
@{
ViewBag.Title = "Articles";
}
<div class="partial_Lable catalogue">
<div class="container-fluid catalogue_header">
<h2>@Model.Section</h2>
<hr />... | 2.32366 | bfdc544e458e036c85ef106f789dfdb5 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817096 | {
"extension": "c-sharp",
"max_stars_count": "4.0",
"max_stars_repo_name": "MCGPPeters/Radix",
"max_stars_repo_path": "C#/src/Radix/AggregateInstance.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136316"
} | starcoder | <filename>C#/src/Radix/AggregateInstance.cs
using System.Threading.Channels;
using Radix.Data;
using static Radix.Control.Result.Extensions;
namespace Radix;
/// <summary>
/// Represent an instance of an aggregate root which can accept commands to process
/// </summary>
/// <typeparam name="TCommand">The type o... | 2.598659 | 811c8040bd8d37c207c2fe174535b5ff |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817097 | {
"extension": "c-sharp",
"max_stars_count": "80.0",
"max_stars_repo_name": "bunbup/c-sharp",
"max_stars_repo_path": "src/Api/PubnubApi/Model/Derived/Files/PNGenerateFileUploadUrlResultExt.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136317"
} | starcoder | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PubnubApi
{
public class PNGenerateFileUploadUrlResultExt : PNCallback<PNGenerateFileUploadUrlResult>
{
readonly Action<PNGenerateFileUploadUrlResult, PNStatus> callbackAction;... | 2.156904 | ed1f73d4e1028c2cd7d287a030582d28 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817098 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "goofy5752/Plant-A-Plant",
"max_stars_repo_path": "Web/Plant-A-Plant.Web/Areas/Identity/Pages/_ViewImports.cshtml",
"provenance": "train-00027-of-00045.jsonl.gz:136318"
} | starcoder | <filename>Web/Plant-A-Plant.Web/Areas/Identity/Pages/_ViewImports.cshtml
@namespace Plant_A_Plant.Web.Areas.Identity.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers | 1.527521 | cc29584bd409622b40f1f8e6a4217db4 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817099 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "aikixd/CodeGeneration",
"max_stars_repo_path": "Aikixd.CodeGeneration.Test.CSharp.Target.Standard2/Class1.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136319"
} | starcoder | <gh_stars>0
using Aikixd.CodeGeneration.Test.CSharp.Bridge;
using System;
namespace Aikixd.CodeGeneration.Test.CSharp.Target.Standard2
{
[Detect]
public class Class1
{
public string str;
}
}
| 0.901279 | c2cc29ad392308cabf434e51a4022788 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817100 | {
"extension": "c-sharp",
"max_stars_count": "62.0",
"max_stars_repo_name": "Dzmuh/webstack-by-daniel",
"max_stars_repo_path": "linger/src/linger.Tests/DatabaseJobRepositoryTests.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136320"
} | starcoder | using System;
using System.Linq;
using NUnit.Framework;
namespace linger.Tests
{
public class DatabaseJobRepositoryTests
{
private readonly DatabaseJobRepository _repository;
public DatabaseJobRepositoryTests(DatabaseJobRepository repository)
{
_repository = repository;
... | 2.606185 | e4d64f422c64328f62623c07fb0db349 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817101 | {
"extension": "c-sharp",
"max_stars_count": "3.0",
"max_stars_repo_name": "philips-software/licenator",
"max_stars_repo_path": "Licenator/Parsers/XmlTagParsers.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136321"
} | starcoder | using System;
using System.Collections.Generic;
namespace Licenator
{
public class XmlTag
{
public string Name { get ;set; }
public string Value { get; set; }
}
public static class XmlTagParser
{
public static IEnumerable<XmlTag> Parse(string line)
{
var... | 3.268568 | 1a8322f96c8ec8d57c4a296daf9ef1d9 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817102 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "d4160/UnityGameFramework",
"max_stars_repo_path": "GameFramework.Editor/Graphs/GameFrameworkGraphView.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136322"
} | starcoder | <reponame>d4160/UnityGameFramework
namespace d4160.GameFramework.Editor
{
using GraphProcessor;
using UnityEditor;
public class GameFrameworkGraphView : BaseGraphView
{
public GameFrameworkGraphView(EditorWindow window) : base(window) {}
}
} | 1.132839 | ef22fa39affb9cba0132a96352215932 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817103 | {
"extension": "c-sharp",
"max_stars_count": "4.0",
"max_stars_repo_name": "VioletaKirova/CookWithMe",
"max_stars_repo_path": "Web/CookWithMe.Web/Areas/Identity/Pages/Account/Manage/DeletePersonalData.cshtml",
"provenance": "train-00027-of-00045.jsonl.gz:136323"
} | starcoder | <gh_stars>1-10
@page
@model DeletePersonalDataModel
@{
ViewData["Title"] = "Delete Personal Data";
ViewData["ActivePage"] = ManageNavPages.PersonalData;
}
<!-- Titlebar
================================================== -->
<section id="titlebar">
<div class="container">
<div class="eight columns"... | 2.175706 | 41e2d3e73bf3d0360bb8c6171706f8ab |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817104 | {
"extension": "c-sharp",
"max_stars_count": "219.0",
"max_stars_repo_name": "Manny27nyc/SecureDNS",
"max_stars_repo_path": "Texnomic.SecureDNS.Core/Records/DNSKEY.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136324"
} | starcoder | using Texnomic.SecureDNS.Abstractions;
using Texnomic.SecureDNS.Abstractions.Enums;
namespace Texnomic.SecureDNS.Core.Records
{
// 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3
// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+... | 2.17693 | 319e48f3a7f1418d8b480adef33a5d18 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817105 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "raedle/huddle-polar-engine",
"max_stars_repo_path": "Engine/Huddle.Engine/Processor/Complex/BinaryThresholding.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136325"
} | starcoder | using Emgu.CV;
using Emgu.CV.Structure;
using Huddle.Engine.Util;
namespace Huddle.Engine.Processor.Complex
{
[ViewTemplate("Binary Thresholding", "BinaryThresholding")]
public class BinaryThresholding : RgbProcessor
{
#region properties
#region BinaryThreshold
/// <summary>
... | 2.555551 | bfebbc6ed09b059a5d704bab6c08bcd8 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817106 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "AnaReyna2019/LenguajeAnaReyna",
"max_stars_repo_path": "DataSet1.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136326"
} | starcoder | <gh_stars>0
namespace Reserva_de_Vuelos
{
partial class DataSet1
{
partial class FacturaDataTable
{
}
partial class VueloDataTable
{
}
}
}
| 0.996418 | 2b303bdf4db1f50c968fa6af0a1ee808 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817107 | {
"extension": "c-sharp",
"max_stars_count": "3.0",
"max_stars_repo_name": "velcrome/mp.essentials",
"max_stars_repo_path": "string/XxHashNode.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136327"
} | starcoder | <reponame>velcrome/mp.essentials
#region usings
using System;
using System.ComponentModel.Composition;
using System.Security.Cryptography;
using System.Text;
using Extensions.Data;
using VVVV.PluginInterfaces.V1;
using VVVV.PluginInterfaces.V2;
using VVVV.Utils.VColor;
using VVVV.Utils.VMath;
using VVVV.Core.Logging;... | 1.977376 | 7d7c97791225d6f220e8869ad8392fd1 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817108 | {
"extension": "c-sharp",
"max_stars_count": "1344.0",
"max_stars_repo_name": "riesvriend/Stl.Fusion255",
"max_stars_repo_path": "src/Stl.CommandR/Interception/CommandServiceProxyGenerator.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136328"
} | starcoder | using System;
using System.Collections.Concurrent;
using Castle.DynamicProxy;
using Castle.DynamicProxy.Generators;
using Castle.DynamicProxy.Generators.Emitters;
using Stl.Concurrency;
using Stl.Interception.Interceptors;
namespace Stl.CommandR.Interception
{
public interface ICommandServiceProxyGenerator
{
... | 1.954005 | 27aea6c478526a40a14801a108d6f78d |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817109 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "EnigmaDragons/SecurityConsultantCore",
"max_stars_repo_path": "test/SecurityConsultantCore.Test/Security/Alarms/AdvancedAlarmTests.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136329"
} | starcoder | using Microsoft.VisualStudio.TestTools.UnitTesting;
using SecurityConsultantCore.Domain.Basic;
using SecurityConsultantCore.Security.Alarms;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using SecurityConsultantCore.Engine;
using SecurityConsultantCore.Event;
using SecurityConsultantCore.Test.Engine;
name... | 2.46419 | c388988a1e3d0af93bb8675d39428cab |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817110 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "themuhsinoglu/PLAKDUKKANI-ASP.NET_CORE_MVC",
"max_stars_repo_path": "PlakDukkani.UI.MVC/Controllers/CartController.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136330"
} | starcoder | <reponame>themuhsinoglu/PLAKDUKKANI-ASP.NET_CORE_MVC
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using PlakDukkani.UI.MVC.Helpers;
using PlakDukkani.BLL.Abstract;
using PlakDukkani.BLL.Concrete;
using... | 2.258505 | b5f68d12a834803e37cc218d0f1a6313 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817111 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "Tudor1415/SelfDrivingCarPrototype",
"max_stars_repo_path": "GeneticAlgorithm/NeuralNetwork.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136331"
} | starcoder | <filename>GeneticAlgorithm/NeuralNetwork.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NeuralNetwork {
public int hiddenLayers = 1;
public int size_hidden_layers = 10;
public int outputs = 2;
public int inputs = 15;
public float maxInitialValue = 5... | 2.921 | f3608d44d0fe3869ced0915075b038b8 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817112 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "nathanjwtx/Test_Tank_2_CSharp",
"max_stars_repo_path": "terrain/TileSetMaker.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136332"
} | starcoder | using Godot;
using System;
public class TileSetMaker : Node
{
public Vector2 Tilesize = new Vector2(128, 128);
private Sprite _sprite;
public override void _Ready()
{
_sprite = (Sprite) GetNode("Sprite");
var texture = _sprite.Texture;
var texwidth = texture.GetWidth() / Tilesi... | 2.550056 | f6de8715e21c508a4bdda006d377e44b |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817113 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "Excalib88/itext7-dotnet",
"max_stars_repo_path": "itext/itext.kernel/itext/kernel/pdf/canvas/parser/PdfCanvasProcessor.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136333"
} | starcoder | <gh_stars>0
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2019 iText Group NV
Authors: <NAME>, <NAME>, et al.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation with... | 1.527649 | b4f1fb96823d205406b2671e4f07ecdd |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817114 | {
"extension": "c-sharp",
"max_stars_count": "5.0",
"max_stars_repo_name": "afscrome/IronVElocity",
"max_stars_repo_path": "src/IronVelocity/Compilation/AST/MethodInvocationExpression.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136334"
} | starcoder | using IronVelocity.Binders;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Dynamic;
using System.Linq.Expressions;
namespace IronVelocity.Compilation.AST
{
public class MethodInvocationExpression : VelocityExpression
{
private readonly InvokeMemberBind... | 2.476671 | 75a4c21b1fcca008aa59c7885871d883 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817115 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "StevenYu0124/C_10_And_NET_6_Modern_Crossplatform_Development",
"max_stars_repo_path": "06/ex02/Rectangle.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136335"
} | starcoder | record Rectangle
(
double Height,
double Width
)
: Shape (Height, Width); | 1.997408 | fdd1ffee6ed6ca3431d067129cf32da8 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817116 | {
"extension": "c-sharp",
"max_stars_count": "1.0",
"max_stars_repo_name": "linjianlin/Havit.Blazor",
"max_stars_repo_path": "Havit.Blazor.Components.Web.Bootstrap/Badges/BadgeType.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136336"
} | starcoder | namespace Havit.Blazor.Components.Web.Bootstrap
{
/// <summary>
/// Type (shape) for <see cref="HxBadge"/>
/// </summary>
public enum BadgeType
{
Regular = 0,
/// <summary>
/// <a href="https://getbootstrap.com/docs/5.0/components/badge/#pill-badges"/>
/// </summary>
RoundedPill = 1
}
}
| 2.193946 | ccaad51aed367e65f089e69a16d12fb1 |
2023-09-08T23:13:54.396Z | 2023-09-08T23:13:54.396Z | 8817117 | {
"extension": "c-sharp",
"max_stars_count": "0.0",
"max_stars_repo_name": "ilovepilav/Csharp-DesignPatterns",
"max_stars_repo_path": "ObserverPattern/Concrete/Observable.cs",
"provenance": "train-00027-of-00045.jsonl.gz:136337"
} | starcoder | using ObserverPattern.Abstract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ObserverPattern.Concrete
{
public class Observable : IObservable
{
public IList<IObserver> Observers = new List<IObserver>();
private s... | 3.563237 | f244848a82c479accf97ce7297e606b0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.