Datasets:

blob_id
large_stringlengths
40
40
language
large_stringclasses
1 value
repo_name
large_stringlengths
5
119
path
large_stringlengths
4
271
score
float64
2.52
4.84
int_score
int64
3
5
text
stringlengths
26
4.09M
4c58e86775dd3513b9f278708d9825841922eae2
C#
MiBuena/SoftUniCourses
/CSharpOOPBasics/Homeworks/PolymorphismExercises/01.Vehicles/Vehicle.cs
3.484375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01.Vehicles { public abstract class Vehicle { protected Vehicle(double fuelQuantity, double fuelConsumption, double tankCapacity) { this.FuelQuantity = fue...
1fb088cfcc23c8e4f2b6c3b4e361607c6cbd4b30
C#
Kamil-Zakiev/CSharp
/NHibernate/AutomapperQuirk/Program.cs
3.109375
3
using System; using System.Collections.Generic; using AutoMapper; using EntitiesAndMaps.Books; using NHibernate; namespace AutomapperQuirk { public class BookDto { public long Id { get; set; } public string Title { get; set; } public int Year { get; set; } } intern...
821daf70924a33f0ef2f8d7c27259d1a8d811f31
C#
MaksymLabutin/algorithms_leetcode
/Longest Substring Without Repeating Characters/Longest Substring Without Repeating Characters/UnitTest1.cs
3.234375
3
using System.Collections.Generic; using NUnit.Framework; namespace Tests { public class Tests { [Test] public void Test1() { var res = LengthOfLongestSubstring("abcabcbb"); Assert.AreEqual(res, 3); } [Test] public void Test2() { ...
cd81f04fc7ca334b73afcf421468ee509ca3590f
C#
mikeswright49/ProjectEuler
/ProjectEuler/Problems/Problem25.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace ProjectEuler.Problems { public class Problem25 : IProblem { public string Run() { string result = ""; BigIn...
123a81bb4f055789b1f48100f727c76040385e48
C#
hassench/FiveStars
/BL/Services/ServiceEmail.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Text; using System.Threading.Tasks; namespace BL.Services { public class ServiceEmail { static public void sendEmail(string to,string subject,string body) { MailMessage mail = ne...
6c133916b8ba61500905a6549e7a0aa6892a45dc
C#
StefanMladenov/MedicalRecord
/eKarton/eKarton/Services/VaccineService.cs
2.6875
3
using eKarton.Models.SQL; using System.Collections.Generic; using System.Linq; namespace eKarton.Services { public class VaccineService : IService<Vaccine> { private readonly MedicalRecordContext _context; public VaccineService(MedicalRecordContext context) { _context = co...
4fe47082a1b7b06ad4d9bd7a7cd30442892de943
C#
Izigraim/FileCabinetApp
/FileCabinetApp/CommandHandlers/AppCommandRequest.cs
2.65625
3
using System; using System.Collections.Generic; using System.Text; namespace FileCabinetApp.CommandHandlers { /// <summary> /// Request class. /// </summary> public class AppCommandRequest { /// <summary> /// Initializes a new instance of the <see cref="AppCommandRequest"/> class. ...
8e18d493e6be19c2361adbd92b6b1009a2336410
C#
rfcclub/opmscoral_bk
/Enhancement2011/POSClient/AppFrame/Common/ClonableObject.cs
2.609375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; namespace AppFrame.Common { [Serializable] public class ClonableObject : ICloneable { #region ICloneable Members publi...
986b4215f4be30f4dc15212b4a9eda49c00d690f
C#
milicajevremovic/Hotel_Reservation
/Hotel_Reservation_C#/Room_Reservation_Sys/Program.cs
3.359375
3
using System; using System.Collections.Generic; using System.Text; namespace Room_Reservation_Sys { class Program { public List<Reservation> ReservationList; public bool[,] bookedRooms; public int size; public void Lets_Book(Reservation res) { if (res.Start ...
acd0ed5c36867d10eaa2595ff355b138276f907c
C#
Dragoshk/SkayFall
/SkyFall/Assets/Scripts/PlayerScripts/Charater Class/CharacterGenerator.cs
2.546875
3
using UnityEngine; using System.Collections; using System; public class CharacterGenerator : MonoBehaviour { #region Stats Variables public GameObject mount; private const int STARTING_POINTS = 350; private const int MIN_STARTING_ATTRIBUTES_VALUE = 10; private const int STARTING_VALUE = 35; ...
8b1d565e6f4879aceb14cf246eb44b0dadab5a62
C#
Ki-van/LB2_Cryptography
/Program.cs
2.65625
3
using System; using System.IO; using System.Text; using LB2_Cryptography; namespace LB2_Cryptography { class Program { static void Main(string[] args) { //Console.WriteLine(Crypto.GetFileLenghtInLetters("in.txt")); /* Crypto.EncryptRailFenceCipher("in.txt", 2); ...
40d935ffc197de8b6e9e7405ec4888282f05e652
C#
gsh87/Aprendizado_Curso_C_Sharp
/secao6/Course/hotel/hotel/hotel/Program.cs
3.453125
3
using System; namespace hotel { class Program { static void Main(string[] args) { Console.WriteLine("Quantos quartos serão alugados:"); int n = int.Parse(Console.ReadLine()); Quarto[] vect = new Quarto[9]; int k = 1; while (k <= n) ...
770bf743ad22c490af8f709927f540a0b1b61dc0
C#
WojciechKmiecik/ExtremePC.Courses-Old
/src/ExtremePC.Courses.WebApi/Controllers/SignupController.cs
2.59375
3
using System.Net; using System.Threading.Tasks; using ExtremePC.Courses.Models; using ExtremePC.Courses.WebApi.Services; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace ExtremePC.Courses.WebApi.Controllers { [Route("api/[controller]")] [ApiController] public class SignupContr...
2ecf30bee933deb30aa4fe77c409bf2363df0e46
C#
jaywapp/Graphic.Component
/Geometry/Model/Curve.cs
3
3
using Graphic.Component.Geometry.Interface; using Graphic.Component.Geometry.Operator; using System; namespace Graphic.Component.Geometry.Model { /// <summary> /// 곡선 /// </summary> public class Curve : IGraphicTrace { #region Properties /// <summary> /// Point1 ///...
908468cb4f9fbd77f1cface0b7d147847dce82b4
C#
richcollins/GridWars
/Assets/GridWars/Resources/_Globals/Timer.cs
2.765625
3
using System; using System.Reflection; using UnityEngine; using System.Collections.Generic; namespace AssemblyCSharp { public class Timer : IComparable<Timer> { public TimerCenter timerCenter; public object target; public string method; public Action action; public float timeout; // helper public float f...
ca69264100f8f19237b688ae390096b8033fb44c
C#
randymcbride/LevelingUp
/DesignPatterns/Builder/Classes/TerraformingMarsBuilder.cs
2.796875
3
using System; using System.Collections.Generic; using System.Text; namespace DesignPatterns.Builder.Classes { public class TerraformingMarsBuilder : BoardGameBuilder { public override void AddGameDetails() { BoardGame.Name = "Terraforming Mars"; BoardGame.ComplexityRating = 3.6; } public override voi...
1a16e3aa8d342fdf20dd2d7d9581954d52f6458a
C#
Solidsnake9058/SRPGTest
/Assets/Scripts/GenericFunction.cs
3.203125
3
using System.Collections; using System.Collections.Generic; public class GenericFunction { public static void Swap<T>(ref T item1, ref T item2) { T temp = item1; item1 = item2; item2 = temp; } public static List<T> Shuffle<T>(IEnumerable<T> values) { List<T> list =...
b847fb0cb7aae7b1b1f11b2c70f74e8d5f3c9fa3
C#
gcbento/netCoreDDD
/JogosAPI2.0/JogosAPI.Infra.Data/Repositories/AccountRepository.cs
2.546875
3
using JogosAPI.Domain.Entities; using JogosAPI.Domain.Filters; using JogosAPI.Domain.Interfaces; using JogosAPI.Infra.Data.Context; using Microsoft.EntityFrameworkCore; using System; using System.Linq; namespace JogosAPI.Infra.Data.Repositories { public class AccountRepository : BaseRepository<Account, AccountFil...
ca62def6cc2282d295a3579c3edcd11372308e6b
C#
shendongnian/download4
/code4/719178-42018374-137488744-1.cs
3.15625
3
public static string ConvertIntoJson(DataTable dt) { var jsonString = new StringBuilder(); if (dt.Rows.Count > 0) { jsonString.Append("["); for (int i = 0; i < dt.Rows.Count; i++) { jsonString.Append("{"); for (int j = 0...
842e63705a2580f0a1d0989bab0091f41faced1d
C#
Devonlg98/IntroToC-
/8-27&11-10/Text/trig/Trig/Trig/Program.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Trig { class Program { static void Main(string[] args) { float degree2Radian(float x) { float result = (x * ((float)Math.PI / 180f)); ...
07ecdd3f2cd5a813017f8a4e9ef1d04ca27a094f
C#
Pethaf/DenMagiskaFabriken
/DenMagiskaFabriken/Blueprint.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DenMagiskaFabriken { class Blueprint { private List<Part> _partsNeeded; public List<Part> partsNeeded { get => _partsNeeded; } publ...
f82f2225a46d59910c9b41ffd44bed274e895839
C#
microsoft/Zen
/ZenLib/ModelChecking/Representation/SymbolicFSeq.cs
2.75
3
// <copyright file="SymbolicFSeq.cs" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> namespace ZenLib.ModelChecking { using System.Collections.Immutable; using System.Diagnostics.CodeAnalysis; using System.Linq; using ZenLib.Solver; /// <summary> /// Repr...
4f3ff2b241c4194e9f9b3d57ccc1321ccbe23971
C#
sdanna/Warmup-MVC4
/src/__NAME__/Components/Security/CustomIdentity.cs
2.625
3
using System.Security.Principal; namespace __NAME__.Components.Security { public class CustomIdentity : IIdentity { public CustomIdentity(string email) { this.IsAuthenticated = true; this.Name = email; this.AuthenticationType = "Forms"; } pu...
e2a7feafee7bb59f0eed55b725affd989ea53642
C#
balazs-kis/utils-lite
/UtilsLite/Pooling/IObjectPool.cs
3.359375
3
using System; using System.Collections.Generic; using UtilsLite.Events; namespace UtilsLite.Pooling { /// <summary> /// A simple generic pool interface, with a Get and Release method, /// and a method to dynamically change the maximum size of the pool. /// </summary> /// <typeparam name="T">The t...
cafd294dedc7409fae1e516f3f76eee00b43e191
C#
ThatcherHealy/Ronin-Duel
/Assets/Scripts/SuddenDeathColorChange.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SuddenDeathColorChange : MonoBehaviour { float delay; float timer; public Color myColor; // Use this for initialization void Start() { bool myColor = false; //Set the value of 'delay' to 10:...
3183e8eb9cef6aa9264dba2ac3e3ea236026a607
C#
jsweeney91/Napier-Banking-System
/NapierBankingSystem/NapierBankingSystem/Tweet.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows; namespace NapierBankingSystem { public class Tweet : Message { /// <summary> /// validates and creates a new tweet...
caa0d1912f8b554262d6539612bdf7e10379d6f8
C#
weiqing-nic/microservices-task-2
/BookApi/Startup.cs
2.75
3
using BookApi.Models; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logg...
f694efe169cb68fee51e6e36e3c03028f0cf7134
C#
jpauloconnor/CSharpLibrary
/0.18_Interfaces_Collections_Pseudo/ArrayClass.cs
3.703125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _0._18_Interfaces_Collections_Pseudo { class ArrayClass : IListMethods, ICollect, IEnum { public void AddSomeStuff() { Console.WriteLine("You can't add stuf...
c3b29f8660f0a447c1cbfef4964f98363fa47bb1
C#
EPMORDOR/PP2
/Week 2/Task 1/Task 1/Program.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Task_1 { class Program { static void Main(string[] args) { string s = File.ReadAllText(@"C:\Users\admin\source\repos\Week 2\Task 1\input.tx...
dce497e59bc9ee1accb64ee2a1ae3695d1b62099
C#
ypochien/TDD_HW_1
/TDD_HW_1/TDD_HW_1/UnitTest1.cs
2.78125
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace TDD_HW_1 { [TestClass] public class SheetTest { [TestMethod] public void Test_取3筆_Cost欄位_總和() { //arrange var field = "Cost"; var subgroup = 3; var expected =...
2028d313296a53e11073081a1e6b7e24bad8e924
C#
dlemstra/Magick.NET
/tests/Magick.NET.Tests/Colors/ColorHSVTests/TheOperators.cs
2.84375
3
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET. // Licensed under the Apache License, Version 2.0. using ImageMagick; using Xunit; namespace Magick.NET.Tests; public partial class ColorHSVTests { public class TheOperators { [Fact] public void ShouldReturnTheCorrectValueWhen...
27e389920429ff331cd47f8a84985f1ee613ae41
C#
sattep91/ITDEV-115-Intermediate-OOP
/assignment4_satterlee/MagicPCApp/MagicPC.cs
3.296875
3
using System; using System.Collections.Generic; using System.Text; using static System.Console; namespace MagicPCApp { class MagicPC { public void GetUserAnswer() { Random random = new Random(); switch(random.Next(8)) { case 0: ...
b7531a01aa2e63773ee546fc61c4d016c486ff35
C#
schifflee/OpenIDE
/OpenIDE.Tests/CommandBuilding/CommandAutoCompletionTests.cs
2.90625
3
using System; using NUnit.Framework; using OpenIDE.CommandBuilding; namespace OpenIDE.Tests.CommandBuilding { [TestFixture] public class CommandAutoCompletionTests { [Test] public void Autocompleting_nothing_gives_nothing() { Auto.Completing("").Using("") .ResultsIn(""); } ...
0070282d7f111392d818ba717c85dea2c2769f34
C#
shendongnian/download4
/latest_version_download2/216957-46914163-159045330-6.cs
2.703125
3
using System; using System.IO; using System.Messaging; using System.Runtime.InteropServices; namespace StructToBytes { // 4 bytes [Serializable] [StructLayout(LayoutKind.Explicit)] public unsafe struct DiObject { [FieldOffset(0)] pu...
40cec4b1e307cabc55b4217ffa4a5ad7ee7ef8e6
C#
jonathancm/Unity-RoboPush
/Assets/Scripts/GameComponents/Damageable.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Damageable : MonoBehaviour { public enum HealthLevel { High = 0, Mid = 1, Low = 2 }; [Header("Health Stats")] [Min(1.0f)] [SerializeField] float baseMaxHealth = 20.0f; [SerializeField] float healthRegenPerSecond =...
ddebbd20b8d7b1e49e0c45884afddecab783889d
C#
pablorivassanchez/NeptunoMVC
/Neptuno.Data/Pagination/PagedListExtensions.cs
3.046875
3
using System.Collections.Generic; using System.Linq; namespace Neptuno.Data.Pagination { /// <summary> /// Extensiones para obtener resultados paginas en las consultas con EF /// https://www.talksharp.com/entity-framework-paging /// </summary> public static class PagedListExtensions { ...
6d60c3e2dfb8b2d896027ce21d979b61a949a2ac
C#
Amber-De/SecurityAssignment
/AssignmentTask.Data/Repositories/CommentsRepository.cs
2.59375
3
using AssignmentTask.Data.Context; using AssignmentTask.Domain.Interfaces; using AssignmentTask.Domain.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AssignmentTask.Data.Repositories { public class CommentsRepository : I...
fdee944b161389576caf10280bf158598a36965e
C#
indianamorlock/PDFLinkDownloader
/Downloader.cs
3.21875
3
using System; using System.Collections.Generic; using System.Text; using System.Net; using System.IO; using System.Linq; namespace PDFLinkDownloader { public static class Downloader { public static void DownloadFile(string url, string destinationFolder, string filename) { string f...
df30c26a5689ac9b492ebd74917b52968bd11e55
C#
jcambert/WeETL
/src/WeETL/Observables/Dxf/HandleRegistry.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WeETL.Utilities; namespace WeETL.Observables.Dxf { public interface IHandleRegistry { List<IDxfObject> AddDocument(IDxfDocument document); void AssignHandle(IDxfDocument do...
63083937090cca238e11ceafcb19a7f315520d92
C#
kasskata/All-HomeWorks-SoftwareUniversity-TelerikAcademy
/[C#]Arrays/01.Massives/04.TheBiggerSequence/TheBiggerSequence.cs
3.9375
4
using System; using System.Collections.Generic; //Write a program that finds the maximal sequence of equal elements in an array. // Example: {2, 1, 1, 2, 3, 3, 2, 2, 2, 1} > {2, 2, 2}. class TheBiggerSequence { static void Main() { //Initilize the array int[] sequenceArray = { 1, 1, 3, 3, 3,...
71c7f30cb9e7e73172c6bfd6a6b16c2a8fdbfaea
C#
tmag84/ps-webapi
/PS-project/Utils/ClaimsHandler.cs
2.796875
3
using System.Security.Claims; using PS_project.Models.Exceptions; namespace PS_project.Utils { public class ClaimsHandler { private const string CLAIM_SUB = "sub"; public static string GetUserNameFromClaim(ClaimsPrincipal principal) { string username = null; f...
1a0ca398050f465c6f602529fce80cbcbeed511f
C#
GuenotF/testService
/MyService/Service1.cs
2.609375
3
using System; using System.IO; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Linq; using System.ServiceProcess; using System.Text; using System.Threading.Tasks; namespace MyService { public partial class Service1 : ServiceBase...
d13654e3121203b8c5d04d4ae8de430dc065b00b
C#
ibrahimhuycn/SwatInc.Experimental
/ReplaceDataInList/Program.cs
3.78125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReplaceDataInList { partial class Program { static void Main(string[] args) { //Make an instance of a list of person var people = new List<Perso...
ad7055fb08a632a19ac0dcef4e342d4f5bc7c095
C#
puneethnarayana/CSharp
/SwitchExercise/SwitchExercise/Loops.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SwitchExercise { class Loops { static void Loo(String[] args){ String strInput; // bool Ingestion = true; int[] intNos = new int[10]; for(int i=0;i<10;i++){ ...
3b517a2646a1770fae3fc33f3b5bbca6931911de
C#
csharspproduction/OOAD
/Laboration2.B34Final/ThresholdDiscount.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Laboration2.B34Final { public class ThresholdDiscount : IPriceStrategy { private decimal _threshold; private decimal _discount; public ThresholdDiscount(decimal threshold,decimal discount) ...
ede3fcc529d0cf23c3399861a701404fc8ac4fb1
C#
mteffaha/projetjanvier
/updateclient/updateClient/UserControlSerialPortReader.cs
2.5625
3
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; using System.Net; using System.Web; using System.IO; namespace updateClient { public partial class U...
9b54b45625a79badcc0033a7e8897ea22bc385e2
C#
Mostafa-Piash/BSTEST
/Asp.Net_Test_Project/API.Service/Concrete/VoteService.cs
2.546875
3
using API.Data.Model; using API.Repository.Abstract; using API.Service.Abstract; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace API.Service.Concrete { public class VoteService : IVoteService { private readonly IVoteRepository _repository; ...
931f797c839a195dd8dfc87ce89a5b4659c3d7b1
C#
ahmed-ibrahim1998/the-project-to-company-of-programming
/the project to company of programming/the project/the project/Form2.cs
2.53125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace the_project { public partial class Form2 : Form { public Form2() { Initia...
1a8a9f7135abf8e93dce8f0948368d741126d04a
C#
SergeyMSS/CVS
/table-parser.csproj/FieldsParserTask.cs
3.375
3
using System.Collections.Generic; namespace TableParser { public class FieldsParserTask { // При решении этой задаче постарайтесь избежать создания методов, длиннее 10 строк. // Ниже есть метод ReadField — это подсказка. Найдите класс Token и изучите его. // Подумайте как можно использовать ReadField и Token ...
11a664b03ebe8979af4e4ed183cf54e5176ccdd4
C#
darrensapalo/HorrorGame
/HorrorGame/HorrorGame/ShadowHandler.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Fram...
bbb2a68038ceef463101c574dc222ffc3dd3939c
C#
alpercogurcu/TCMBExchangeRates
/Currencies/Currency.cs
2.859375
3
using System; namespace TCMBCurrencies { public class Currency { public string Name { get; } public string Code { get; } public string CrossRateName { get; } public double ForexBuying { get; } public double ForexSelling { get; } public double Banknote...
960a83cbcf355c01de72b1e3b1e1d28f41441974
C#
markwiliz30/LagotronicsProjects
/CSharp/Cognitive_V10/CognitivePrototype/SocketConnectionLib/SendReceive.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace SocketConnectionLib { public class SendReceive { public static Socket _clientSocket = new Socket(AddressFamily.InterNetwork, SocketT...
922668c68454fa1ae96f1d6a7a04161f6b728419
C#
trunghien123/QuanLyBanHang
/DAL/DAL_Invoice.cs
2.671875
3
using DTO; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DAL { public class DAL_Invoice : DBConnect { //lấy hết hóa đơn public DataTable getAllInvoice() { ...
4771bec60934d4d63cc5ab01382953275481bc4a
C#
dlebansais/Easly-Number
/Easly-Number/Number/Number.cs
2.859375
3
namespace EaslyNumber; using System; using System.Globalization; using Contracts; using Interop.Mpfr; using static Interop.Mpfr.NativeMethods; /// <summary> /// Represents numbers with arbitrary precision. /// </summary> public partial struct Number : IFormattable { #region Special Values /// <summary> /...
1149bc4ebc69e07e9a4b42cf92f27f8789cf2e14
C#
SemsK/SolGestABI
/GestABI/frmNewClie.cs
2.9375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace GestABI { public partial class frmNewClie : frmClie { public frmNewClie() { InitializeComponent(); ...
df52a7fb1380fe7c597a74daf9cf92605bb5cfda
C#
AHaoPang/MacSolveProblems
/ForSolveProblem/Competitions/Problem5366.cs
3.328125
3
using System; using System.Collections.Generic; namespace ForSolveProblem { public class Problem5366 : IProblem { public void RunProblem() { var t = HasValidPath(new int[][] { new int[] { 1, 1, 2 } }); } public bool HasValidPath(int[][] grid) { ...
15e0f3174dc1bdcfab5d4151ea4f4e0c429a1c07
C#
Omegaframe/XmlRpc
/projects/XmlRpc.Client/Internals/XmlRpcClientProtocol.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using XmlRpc.Client.Attributes; using XmlRpc.Client.Exceptions; using XmlRpc.Client.Model; namespace XmlRpc.Client.Internals { static class XmlRpcClientProtocol { public static MethodData[] GetXmlRpcMethods(Type...
9da9ee148092706ea97e8beb014c2a73fa454d0e
C#
heleaf/Comfy-Knitting
/Comfy Knitting/Assets/Scripts/Pulse.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Pulse : MonoBehaviour { private Image img; private float pulseTime = 10; private float changeInB = 160; private float scalar; public string color; // Start is called befor...
1ce2b7a34dfb43ea5e0a9980762a236259034fad
C#
filnet/AsteroidGame
/GameLibrary/Util/QuaternionUtil.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; namespace GameLibrary.Component.Util { public static class QuaternionUtil { private const float epsilon = 0.00001f; // floating point epsilon for single precision. todo: ver...
a60c9139897300272a763b757a8604a004684628
C#
ADRC4/nature-of-code-f-4
/Assets/DLA/DLA.cs
3.203125
3
using System; using System.Collections; using System.Collections.Generic; using System.Threading.Tasks; using System.Threading; public class DLA { public int[,] Cells; public int GenerationCount = 0; private readonly Random random = new Random(42); private readonly int _width; private readonly in...
2effce0a35e377a435e82990575bff9887a5103d
C#
TsuyoshiUshio/DurablePerformance
/RequestClient/Program.cs
3.0625
3
using System; using System.Linq; using System.Net.Http; using System.Threading.Tasks; namespace RequestClient { class Program { static void Main(string[] args) { Console.WriteLine("Strat emitting 100 requirests to Durable Functions Sample_HttpStart"); ExecuteAsync().Get...
5ec41b32ed10633d42a3ce1c4db361bb031c5386
C#
shakuu/Exams
/C# OOP Exam/Dealership_Description/Dealership-Skeleton/Dealership/Models/Car.cs
3
3
namespace Dealership.Models { using System.Text; using Dealership.Common; using Dealership.Common.Enums; using Dealership.Contracts; internal class Car : Vehicle, ICar { private int seats; public Car(string make, string model, decimal price, int seats) : base(make...
0bbef01ec87ba929bb1f16f3d0808fb8e195c567
C#
shendongnian/download4
/first_version_download2/19892-1018807-1978811-2.cs
3.0625
3
Using System; Using System.Threading; class Foo { static AutoResetEvent autoEvent = new AutoResetEvent(false); static void Main() { ThreadPoolQueueUserWorkItem(new WaitCallback(FireAway), autoEvent); autoEvent.WaitOne(); // Will wait for thread to complete } ...
425b65fe0c98c24a26983b55616c0341b1ffea18
C#
docent28/IJunior
/EVL_HomeWork_28/Program.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace EVL_HomeWork_28 { class Program { static void Main(string[] args) { Player player_one = new Player(); Play...
1cb22dbb1116ab191760d08d782c2afc83f8754f
C#
mai1121/plural_form_program
/plural_form_program/Program.cs
3.5625
4
//プログラム概要 //入力された英単語を複数形に変換するプログラム //・末尾が s, sh, ch, o, x のいずれかである英単語の末尾に es を付ける //・末尾が f, fe のいずれかである英単語の末尾の f, fe を除き、末尾に ves を付ける //・末尾の1文字が y で、末尾から2文字目が a, i, u, e, o のいずれでもない英単語の末尾の y を除き、末尾に ies を付ける //・上のいずれの条件にも当てはまらない英単語の末尾には s を付ける using System; using System.Collections.Generic; using System.Linq...
092b189acce65491fcd2a4930101b568d08df52f
C#
amirhossein-tohidi/DDD-Fall-99-2
/Scoring/code/src/Scoring.Domain/Model/Applicants/Applicant.cs
2.546875
3
using System; using Framework.Domain; namespace Scoring.Domain.Model.Applicants { public class Applicant : AggregateRoot<long> { public string Fullname { get; set; } public DateTime HireDate { get; private set; } public long PositionId { get; private set; } public Applicant(lon...
9e12f7c16d5a09635fcca350cf04f926ba2a546e
C#
Ricc-dev-Game-Jam-Projects/the-magic-table
/TableCraft - CraftJam/Assets/Scripts/Controllers/ItemController.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using UnityEngine; public class ItemController { public static List<Item> Items { get; private set; } = new List<Item>(); private string ItemPath = "Data/Items/"; private DataReader reader = new DataReader(false); public ItemControll...
012020b26d57e31f90ae2c86437e424bc2e82fd8
C#
DenisStolyarov/EPAM.NET
/NET.W.2019.Stolyarov.12/Timer/Timer.cs
3.109375
3
// <copyright file="Timer.cs" company="Epam"> // Copyright (c) Epam. All rights reserved. // </copyright> // <author>Denis Stolyarov</author> namespace Clock { using System; using System.Threading; /// <summary> /// Class for time delay. /// </summary> public class Timer { /// ...
1e80266a8088d620d97764a60f05458a35a6315c
C#
battula32/BasicSamples
/Tuples/Program.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Tuples { class Program { static void Main(string[] args) { TuplesUsage tupleUsage = new TuplesUsage(); tupleUsage.UsageofTuple(); tupleUsage.UsageofTuple1(); ...
c1d9d096fea3634ddb3e718a73b5a49d9ee7bec0
C#
zigaosolin/SharpMedia
/SharpMedia.Graphics.GUI/Validation/RegexValidator.cs
2.546875
3
// This file constitutes a part of the SharpMedia project, (c) 2007 by the SharpMedia team // and is licensed for your use under the conditions of the NDA or other legally binding contract // that you or a legal entity you represent has signed with the SharpMedia team. // In an event that you have received or obtained ...
96b4d58855d4e7a21f5ed4936baf7d4cfe79046b
C#
YSFlight-opensource/Orb
/Orb/Network/Packets/Specialise/Type07_SmokeCol.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Orb { public static partial class Network { public static partial class Packets { public partial class Type07_SmokeCol : CommonPacket { public uint Type = 7; ...
9cdd9783030b6545ad501442f54f085bf282fac0
C#
Corpelijn/CVLRemake
/Assets/Scripts/Game/ObjectClasses/Vault.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Assets.Scripts.Game.ObjectClasses { class Vault { #region "Fields" private int maxSize; private List<string> resourcesInVault; #endregion #region "Constructors" p...
bd2c8fb1163fe011d739c483cadd6c029c375e03
C#
Proyectos1-FDI-UCM/c1819-P1-Indie
/INDIE/Assets/Scripts/Camara.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Camara : MonoBehaviour { public Transform player; public float limiteX, limiteY; // Se asigna desde el inspector el límite de movimiento de float offsetZ, movX, movY; // la cámara para que no muestre...
ab2b0ddff78d65b4dec62ba77f8182ccc4908ba7
C#
VanHakobyan/ISTC_Coding_School
/ISTC.SecondStage.OOP/ISTC.SecondStage.OOP.LINQ01/Program.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ISTC.SecondStage.OOP.LINQ01 { class Program { public static void DoSomethig(dynamic myAnonymousType) { Console.WriteLine(myAnonymousType.anotherAnonymousTyp...
aca2beb93094317600c622c263e9b277f6b8358c
C#
KrasenShivikov/Sportiada.Services
/Admin/Implementations/FootballCompetitionAdminService.cs
2.703125
3
namespace Sportiada.Services.Admin.Implementations { using Interfaces; using Sportiada.Data; using Sportiada.Data.Models.Football; using Sportiada.Services.Admin.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; public class Fo...
db6bdb4970cf416d24aac68813a6f0c2b71a2287
C#
jeins/pim-suite
/PIMSuite.Persistence/Validators/DomainValidator.cs
2.59375
3
using FluentValidation; using PIMSuite.Persistence.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PIMSuite.Persistence.Validators { public class DomainValidator : AbstractValidator<Domain> { public DomainValidator...
d5a8cc672da8aa555bf104b61500f6edf85e3368
C#
Isao-Shinohara/SampleAspNetCore-Server
/Models/MyClass.cs
2.765625
3
using MessagePack; [MessagePackObject] public class MyClass { // Key is serialization index, it is important for versioning. [Key(0)] public int Age { get; set; } [Key(1)] public string FirstName { get; set; } [Key(2)] public string LastName { get; set; } [Key(3)] public Address Address { get; set; } ...
2de23b6486ae818ef7cd0afa792de484aa96c22c
C#
jeabus519/Snake
/Blockade/GameScreen.cs
2.71875
3
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; using System.Media; namespace Blockade { public partial class GameScreen : UserControl { ...
ef5ee64a3c9039db2bc711b93eb94cf654a7a5e1
C#
danielcirket/language
/src/Compiler/IComparableExtensions.cs
3.40625
3
using System; namespace Compiler { internal static class IComparableExtensions { public static T Min<T>(this T source, T min) where T : IComparable<T> { if (source.CompareTo(min) < 0) return min; return source; } public static T Max<T>(t...
d5d1f3f9676c63bdd923c33ae9edb2f98104749f
C#
Ai00000/networkGameDemo
/Assets/_Scripts/NetManager.cs
2.90625
3
using System; using System.Collections.Generic; using System.Net.Sockets; using System.Text; using UnityEngine; namespace _Scripts { public static class NetManager { /// <summary> /// Socket实例 /// </summary> public static Socket Socket { get; set; } /// <summa...
544b6f77870e6f2aa62fcb003c6b35df35620d18
C#
christophla/Envoice.Conditions
/test/Envoice.Conditions.Tests/SelfTests.cs
3.046875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using Xunit; namespace Envoice.Conditions.Tests { public class SelfTests { private enum DescriptionStatus { Correct = 0, NoDescriptionAttribute, ...
b30a6243e417fd4f07c2e47047f163c2a28c6da7
C#
luizosb/Desafios-em-C-
/Loja/VideoGame.cs
3.046875
3
using System; using System.Collections.Generic; using System.Text; namespace Loja { class VideoGame : Produto { public VideoGame(string nome, double preco, int qtd, string marca, string modelo, bool isUsado) : base(nome, preco, qtd) { Marca = marca; Modelo = ...
b7b2ffaec35478335773cfc05436123ad0b5ef2b
C#
MrSteveP/BigBizInsurance
/CrossCutting/Core/Utils/SequentialGuid.cs
3.125
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="SequentialGuid.cs" company="Usama Nada"> // No Copyright .. Copy, Share, and Evolve. // </copyright> // -------------------------------------------------------------------------...
bee94ef7cb04c7df93777f1a8bda3bbbed9e4c4f
C#
rockhe168/PracticeCode
/C#/Linq/MyCode/LinqToJoinSelect/Program.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LinqToJoinSelect { /// <summary> /// 产品 /// </summary> class Product { /// <summary> /// 产品Id /// </summary> public int ProductId { get; set; } /// <summary> ...
8a5ddabf93ecdf1e8ccb9d39ee715257f5c5b4cd
C#
shuvoranger/AspNetCore-3.1-With-Generic-Repository-Pattern-With-CodeFirstApproach
/Repository/UnitOfWork.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using TvShowWebApp.Data; using TvShowWebApp.Models; namespace TvShowWebApp.Repository { public class UnitOfWork : IDisposable { private readonly TvShowWebAppContext _context; public GenericReposito...
6e037a70e0eb5ffb1efe5115a3a230a4a3a7154e
C#
benzemann/Harvest
/Harvest/Assets/Scripts/FPSCounter.cs
2.609375
3
using UnityEngine; using System.Collections; using UnityEngine.UI; public class FPSCounter : MonoBehaviour { int frameCount = 0; float dt = 0.0f; float fps = 0.0f; public int updateRate; public Text fpsText; // Use this for initialization void Start () { } // Update is called once per fr...
177c4d286cb19b71732dbb172487bd7f3f20c7f8
C#
fredericocurti/cse165-adventuremachinevr
/Assets/Synthesizer Scripts/SynthSound.cs
2.890625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; //Code is based on this tutorial: https://www.youtube.com/watch?v=GqHFGMy_51c //Procedural calculation of piano sounds are based on this website: https://keithwhor.com/music/ public class SynthSound : MonoBehaviour { ...
2956d2aa2f1fe65b4289d7c10e8b8da1203a2c28
C#
KoreaDigital/StandardAwsLogger
/SensorProjects/KD_SWHT_7101/SensorMain.cs
2.5625
3
using SDKforAWS; namespace KD_SWHT_7101 { public class SensorMain : WSensor { private const string TAG = "SWHT_7101"; private byte[] mWriteBuffer; private byte[] mReadBuffer; public SensorMain(int n1, int n2) : base(n1, n2) { this.input_type = SensorInputType.COMM_I2C; this.minsamplingHz = 1; ...
201215e92fa2b7dd861111b5798bcf9f0987b489
C#
Newplyks/FurnitureTask
/BLL/FurnitureCategoryService/FurnitureCategoryService.cs
2.5625
3
using BLL.Models.FurnitureCategory; using DataAccessLayer.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CategoryCollectionItemOutModel = BLL.Models.FurnitureCategory.OutputCategory; namespace BLL.FurnitureCategoryService { pu...
73d1afb2077a453f011698eb144f846105ded443
C#
kcseason/LeetCode
/112. Path Sum(E)/Program.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _112.Path_Sum_E_ { class Program { static void Main(string[] args) { TreeNode t1 = new TreeNode(1); TreeNode t11 = new TreeNode(-2); ...
7853c65e3f1ed78320d5c0c96de79eed38d47aab
C#
wechuli/sample_questions
/question2/LinkedListHelperLib/LinkedListHelperLib/LinkedListHelpers.cs
3.671875
4
using System; using System.Collections.Generic; using System.Text; namespace LinkedListHelperLib { public static class LinkedListHelpers { public static void RemoveNodesRepeatingMoreThanTwoTimes(DynamicList<char> list) { ListNode<char> node = list.Root; ListNode<char> ...
1a6f2e5d3acfa1a367613eac3e01c88c1bf99fa2
C#
ICC3101-201810/proyecto-grupo-07
/Notes/Notes/Apunte.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Notes { [Serializable()] public class Apunte { public static int Contador_ID = 0; private int ID { get; set; } // ID, el sistema crea uno unico o se i...
049bd8ed78e4dd8028808ad0cb91d194530ceddc
C#
chkr1011/Wirehome.Core
/Wirehome.Core/Extensions/ArraySegmentExtensions.cs
2.890625
3
using System; namespace Wirehome.Core.Extensions; public static class ArraySegmentExtensions { public static ArraySegment<TItem> AsArraySegment<TItem>(this TItem[] source) { if (source is null) { throw new ArgumentNullException(nameof(source)); } return new ArrayS...
d237c9050375a2ec16040ebbd6326ec7b801a6f0
C#
SevdanurGENC/Magaza-Otomasyonu
/magaza1/domain_layer/Kategori.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace magaza1.domain_layer { public class Kategori { private int kategori_id; public int Kategori_id { get { return kategori_id; } set { kategori_id = value; ...
154042ff669631e4037a562b397d32c6f56c1ee0
C#
PJayB/ADQS
/QAudioSwitch/AudioDeviceListItem.xaml.cs
2.515625
3
using System; using System.Windows; using System.Windows.Controls; using AudioEndPointControllerWrapper; using ADQSCommon; namespace ADQSBackgroundApp { /// <summary> /// Interaction logic for AudioDeviceListItem.xaml /// </summary> public partial class AudioDeviceListItem : UserControl { ...
24a499b579d1e17a0d64cc64b4b92d32e2ebb933
C#
DogaruAlexandru/School-Projects
/C sharp/Tema 1/Tema1/Tema1/Models/Words.cs
3.25
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tema1.Models { public class Words { private ObservableCollection<Word> words = new ObservableCo...
cb9616dbc8123d12c3f31400e2b01eb07e8e6ea2
C#
bartelemi/PerlinNoise
/Perlin.GUI/Kernel/Stopwatch.cs
3.140625
3
using System; using System.Timers; namespace Perlin.GUI.Kernel { /// <summary> /// Provides calculation of elapsed time. /// </summary> class Stopwatch { #region Fields private readonly Timer _computationTimer; private DateTime _computationStartTime; #endregion // F...
544f056eb840c621cc710f0dcfb3f2f1e3f5fad1
C#
arex388/Arex388.Carmine
/Arex388.Carmine/Models/Vehicle.cs
2.625
3
using Arex388.Carmine.Converters; using System.Text.Json.Serialization; namespace Arex388.Carmine; /// <summary> /// Vehicle object. /// </summary> public sealed class Vehicle { private decimal? _carbonEmissionsInTonsPerLiter; private decimal? _fuelConsumptionInKilometersPerLiter; private decimal? _fuelConsumptio...
25025ad5aa69d87c28afc43598114843cecdfbcd
C#
dradoslavov/Technology-Fundamentals
/05.Lists - Exercise/01. Train/01. Train.cs
3.578125
4
using System; using System.Collections.Generic; using System.Linq; namespace _01._Train { class Program { static void Main(string[] args) { List<int> passengers = Console.ReadLine().Split().Select(int.Parse).ToList(); int maxPassengers = int.Parse(Console.R...
41f9d47ca6eac46fada4dc6ed020c5183639a512
C#
iCheh/EV3Basic2
/SmallBasicEV3Extension/Mailbox.cs
2.6875
3
/* EV3-Basic: A basic compiler to target the Lego EV3 brick Copyright (C) 2015 Reinhard Grafl This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...