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
63186bd61e7daae0df24116b1b04600afbeaf7c2
C#
A1chem1st/GrayscaleConverter
/Grayscale Converter/Grayscale Converter/Program.cs
3.453125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Text; namespace Grayscale_Converter { class Program { static void Main(string[] args) { var image = new Bitmap(@"D:\DiplomaProject\te...
445e6d112ac5e2559f0c70669af8a80d29520c13
C#
michaelcadilhac/AutomataTutorUpdates
/automatatutor-backend/AutomataPDL/PDA/PDA/AcceptanceCondition.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AutomataPDL.PDA.PDA { public abstract class AcceptanceCondition : IEquatable<AcceptanceCondition> { const string finalState = "finalState"; const string emptyStack = "e...
df3f9bff02353b20efad768c363c02972aaf58a2
C#
dotnet/dotnet-api-docs
/snippets/csharp/System/BitConverter/ToInt16/batoint32.cs
3.265625
3
//<Snippet2> // Example of the BitConverter.ToInt32 method. using System; class BytesToInt32Demo { const string formatter = "{0,5}{1,17}{2,15}"; // Convert four byte array elements to an int and display it. public static void BAToInt32( byte[ ] bytes, int index ) { int value = BitConverter.To...
4eca0eb0acfef5990eb5c4d6316dc3c04da13edd
C#
Unity-Technologies/Unity-Robotics-Hub
/tutorials/ros_unity_integration/unity_scripts/RosUnityServiceExample.cs
2.59375
3
using RosMessageTypes.UnityRoboticsDemo; using UnityEngine; using Unity.Robotics.ROSTCPConnector; using Unity.Robotics.ROSTCPConnector.ROSGeometry; /// <summary> /// Example demonstration of implementing a UnityService that receives a Request message from another ROS node and sends a Response back /// </summary> publi...
8a50c39cd5eca23c2d49018998cc93382080a317
C#
pogoMena/BookSearchAndBarberShop
/Lab3/Lab3B/Program.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; /* * Name: Michael Mena * Date: 10/29/2020 * This program is a Windows form application that gets the info of an order at a hair salon and displays each option witht eh correspondin...
080c018523d3dfe20e3da3e3b79c0499aadb58d8
C#
CodeSolider/winform-demo
/WinFormsApp/Program.cs
2.640625
3
using System; using System.Threading; using System.Windows.Forms; namespace WinFormsApp { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { using Mutex mutex = new Mutex...
4d7d1c7a5047364f66629ef056ae4a109d5002af
C#
tru3v0r/TPPokemon
/Model/Pokemon.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Fr.EQL.AI109.TPPokemon.Model { public class Pokemon { #region CONSTANTS public const float MAX_HEIGHT = 2.36f; #endregion #region PROPERTIES p...
1aea913287b315dad29d05cb239158a3fda47cb6
C#
streamba/LINQ-to-BigQuery
/BigQuery.Linq.Tests/Builder/JoinTest.cs
2.53125
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace BigQuery.Linq.Tests.Builder { [TestClass] public class JoinTest { [TableName("publicdata:samples.wikipedia")] class Wikipe { public string title { get; set; } } [TestMethod] ...
8c304d7f8601e36822e4b9fe96aa71b344f8560c
C#
aspose-pub/Aspose.PUB-for-.NET
/Examples/CSharp/RunExamples.cs
2.671875
3
using CSharp.ConvertPUBFiles; using CSharp.GettingStarted; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSharp { class RunExamples { static void Main(string[] args) { Console.WriteLine...
98bd1be73eda177d2da294429655234d7d62774d
C#
Thomseeen/wine-lite
/wine-lite-view/Models/WineLiteContext.cs
2.515625
3
using Microsoft.EntityFrameworkCore; namespace wine_lite_view.Models { public class WineLiteContext : DbContext { #region Private Fields private string _dbPath; #endregion #region Properties public DbSet<Wine> Wines { get; set; } public DbSet<Booking> Bookings { ge...
00784d037a823d49f78bb94aa1a85f0dfa0b8d03
C#
LiviuD/KeyWordsWebCrawler
/WebCrawlerEngine/IWebCrawlerEngine.cs
3.09375
3
using System; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace WebCrawlerEngine { /// <summary> /// /// </summary> public interface IWebCrawlerEngine { /// <summary> /// Crawls the specified URL, for the searched keys. /// </summary> //...
1969a82078e62a59f0e27dde860e27ecf9fe4240
C#
OlegGelezcov/boscs
/GeneratorMult.cs
2.90625
3
namespace Bos { public class GeneratorMult { public string Id { get; private set; } public double Mult { get; private set; } public GeneratorMult(string id, double mult) { Id = id; Mult = mult; } public override string ToString() { retur...
556f8c64518cc1337cec4b576e39def6d958377c
C#
EppuSyyrakki/Bomberfox
/Assets/Scripts/Player/ShockWave.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Bomberfox.Player { public class ShockWave : MonoBehaviour { public Vector3 Direction { get; set; } public bool Blocked { get; set; } public bool Penetration { get; private set; } private fl...
498160567c0c52355385b71d31dd87fdc900a747
C#
trippsc2/OpenTracker
/OpenTracker.Models/AutoTracking/Logging/IAutoTrackerLogService.cs
2.5625
3
using System.Collections.ObjectModel; using OpenTracker.Models.Logging; namespace OpenTracker.Models.AutoTracking.Logging { /// <summary> /// This interface handles logging the auto-tracker. /// </summary> public interface IAutoTrackerLogService { /// <summary> /// The <see cref="O...
824e8ab604a5fb400cd4dfd35d32f841f54f4284
C#
Kathya-wh/PracticeLinq
/PracticeLinq/Program.cs
3.1875
3
using Microsoft.VisualBasic; using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography.X509Certificates; namespace PracticeLinq { class Program { static void Main(string[] args) { string[] carsNames = { "ford", "Lexus", "Toyota" }; ...
a4719b2d94243430bfca2cc7f5d0a84ddc6591b3
C#
halilibrahimyildirim/Bioinformatics
/Dot Plot & Similarity/Form Version/Biyo Odev 2/Form1.cs
2.859375
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; using System.Windows.Forms.DataVisualization.Charting; namespace Biyo_Odev_2 { public partial class Form1 : Form { pub...
e4bfbf8f74c3269b6f832290fc0f37abb92d0768
C#
dauzhantok/PP2
/Lab2/Task3/Program.cs
3.203125
3
using System; using System.Collections.Generic; using System.IO; namespace Task3 { public class FarMan { int cursor; DirectoryInfo dir; public static FileSystemInfo[] vse; public FarMan() { dir = new DirectoryInfo(@"C:\Users\dauzh\Desktop\"); vse...
e7f77bf82016c5bb734be6e243fe7b028c5f6152
C#
AlexKven/Three_Item_Match
/Three Item Match/Three Item Match/Three Item Match.Shared/CardFace.cs
3.484375
3
using System; using System.Collections.Generic; using System.Text; namespace Three_Item_Match { public struct CardFace { public CardFace(CardNumber number, CardShape shape, CardColor color, CardFill fill) { Number = number; Shape = shape; Color = color; ...
fc02c9bb136adf98e87adfa53b691039fb4f5a0e
C#
dhamotharang/eudoxus-osy
/EudoxusOsy.Portal/Utils/WebConfigEncryption.cs
2.671875
3
using System.Configuration; using System.Web; using System.Web.Configuration; namespace EudoxusOsy.Portal.Utils { /// <summary> /// Utility class for encrypting and decrypting the web.config file /// </summary> public static class WebConfigEncryption { /// <summary> ///...
7830105230961250f9d41f04bb5d23963c0aa362
C#
VelizarVeli/SoftUni-Software-Engineering
/02.C#Fundamentals/02.OOPBasics/04.ExercisesDefiningClasses/06.1.CompanyRoaster/Department.cs
3.453125
3
//using System.Collections.Generic; //using System.Linq; //public class Department //{ // public string DepartmentName { get; set; } // public decimal AverageSalary { get; set; } // public List<Employee> DepartmentEmployees { get; set; } // public Department(string name, decimal salary) // { // ...
cfd57066be2c999ea01bf167e41ff85030a8e08a
C#
Marsemperena/plat_desa_tp
/tp1/tp1/MercadoTest.cs
2.875
3
using System; namespace tp1 { public class MercadoTest { Mercado mercado; public MercadoTest() { //listas iniciales mercado = new Mercado(); } public void iniciar() { bool continuar = true; Console.WriteLine("m...
f3f6483dd04e17d81355722985472173bfbabfdd
C#
KLNHOMEALONE/XOps
/XOps/XOps.Game/Core/CellGridState.cs
2.6875
3
using System.Linq; namespace XOps.Core { public abstract class CellGridState { protected CellGrid _cellGrid; protected CellGridState(CellGrid cellGrid) { _cellGrid = cellGrid; } public virtual void OnUnitClicked(Unit unit) { } public virtu...
20d53f27c61bad276ba7bef7f686182fb2673243
C#
allahaka/CarTrade
/CarTrade/Part.cs
3.328125
3
namespace CarTrade { class Part{ public readonly string name; public bool needRepairing; public readonly int valueIncrease; public decimal repairPrice; public Part(string name, bool needRepairing, int valueIncrease){ this.name = name; this.needRepair...
8b005bee82c0e185aa3b42b6b5dbe76356687492
C#
alex-bely/NET.S.2017.01.Bely.04
/Task3.NUnitTests/IntOperationsTests.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; using Task3; namespace Task3.NUnitTests { [TestFixture] public class IntOperationsTests { [TestCase(12, ExpectedResult = 21)] [TestCase(513, ExpectedR...
abf6e4e7bd81c919e78b14f6d682d7ad7a58e249
C#
ESysop/b
/Problems_b_P1_20160322/List.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Problems_b_P1_20160322 { class List { List<string> wordList = new List<string>(); public void initiateList () { wordList.Add(" "); } public void AskF...
b71034aca5b19fcb311c2e7f174d617ba810e922
C#
tonytornado/OverclockedRazorZero
/OverclockedRazor/Data/Client.cs
2.515625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace OverclockedRazor.Data { public class Client { public enum Sex { [Display(Name = "Male")] Male, [Display(Na...
43741b3a1b1c855ab61b6f932c7e0cba37bcab27
C#
DevVeryMe/TripFlip
/TripFlip/TripFlip.Tests/WebApiUnitTests/CreateRouteViewModelTests/CreateRouteViewModelTestsBase.cs
2.671875
3
using TripFlip.ViewModels.RouteViewModels; namespace WebApiUnitTests.CreateRouteViewModelTests { public abstract class CreateRouteViewModelTestsBase { /// <summary> /// Creates CreateRouteViewModel object with given Title and Trip id. /// </summary> /// <param name="title">Rout...
ccdea1af2042d19c459aceb4cf3f46ea11b151da
C#
jbsolucoes/ARETEPOP
/SDK/Windows/AretePop2/AretePop2/CustToggleButton.cs
2.6875
3
//!------------------------------------------------------------------- //! Copyright (C) 2015 PHYCHIPS //! //! @file toggleButton.cs //! @brief custom toggle button class //! //! $Id: toggleButton.cs 3549 2015-04-15 06:36:16Z jsyi $ //!------------------------------------------------------------------- //! His...
d997d53bbe8737261c8b1e01e795e05df4cf6276
C#
Ellpeck/MLEM
/MLEM/Graphics/StaticSpriteBatch.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; #if FNA using MLEM.Extensions; using System.IO; #endif namespace MLEM.Graphics { /// <summary> /// A static sprite batch is a highly optimized variation of <see cref="Sprit...
5b1ea901f748be88b8c61dfbc33a6c7938bdac70
C#
mihajlokusljic/Weather-Forecast
/WeatherForecast/WeatherForecast/model/WeatherAPIModel.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; namespace WeatherForecast.model { public class Coordinates { public double lat { get; set; } //latitude public double lon { get; set; } //longitude ...
8be8749ed4e657cf376dbe3d20e4a7c6a05a3e48
C#
ofirmakmal/NinjaCoderForMvvmCross
/NinjaCoder.MvvmCross.Tests/Helper.cs
2.796875
3
// -------------------------------------------------------------------------------------------------------------------- // <summary> // Defines the Helper type. // </summary> // -------------------------------------------------------------------------------------------------------------------- namespace NinjaC...
08d83a4760bb9cbd944d4001aa149e47d0a4b7f2
C#
Gms427/PII_TreasureHunt_Start
/src/Program/Program.cs
2.953125
3
using System; using Vigenere.Library; namespace Program { class Program { static void Main(string[] args) { VigenereCode v = new VigenereCode("ucu", 8); VigenereCode vLowerCase = new VigenereCode("ucu", 0); VigenereCode vLowerCaseSalt = new VigenereCode("ucu...
5c9718ff062c0cf177bdf20f8c304c478c67226a
C#
tiagos4ntos/ltm
/backend/LTM.Dominio/Entities/UserProfile.cs
2.890625
3
using LTM.Core.Domain.Entities; using System; namespace LTM.Domain.Entities { public class UserProfile : Entity { public virtual string Name { get; protected set; } public virtual string Login { get; protected set; } public virtual string Password { get; protected set; } public...
10d02083d072c2a119b479b002b86f061200a7c6
C#
byBlurr/LorisAngel
/LorisAngel.Bot/Utils/Help.cs
2.90625
3
using Discord; using Discord.Net.Bot; using Discord.Net.Bot.Database.Configs; using System.Collections.Generic; namespace LorisAngel.Bot.Utils { class Help { public static EmbedBuilder GetCommandHelp(ulong guildId, string c = null, int page = 1) { BotConfig conf = BotConfig.Load();...
da02c4de9416dc4b95eecb41acd50c7eead6e0d6
C#
WeichenLiu/CSE165-FinalProject
/Assets/Scripts/Production/Shot.cs
2.6875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Shot : MonoBehaviour { public Quaternion startRotation; public Quaternion endRotation; public Vector3 startPosition; public Vector3 endPosition; public float duration; // Use this for initialization ...
a6704bf6b30ffb20b1a3e9ed8d0272b479838424
C#
Maki99999/isekai-fake-rpg
/Assets/External/Alchemy-Circles-Generator/CiaccoRandom.cs
2.8125
3
using UnityEngine; using System.Collections; namespace AlchemyCirclesGenerator { public class CiaccoRandom { private static int superSeed = 0; /// Sets the seed of the Random Generator. /// seed can only be positive and seed range is [0 -> 9999998] seed=9999999 should give the same as ...
e32322cfafb23e1d7500773fa329a4d8e553058d
C#
GNR092/SecureGameGuard
/DataEncript.cs
2.59375
3
/* * Creado por SharpDevelop. * Usuario: GNR092 * Fecha: 06/02/2017 * Hora: 08:04 p.m. * * Para cambiar esta plantilla use Herramientas | Opciones | Codificación | Editar Encabezados Estándar */ using System.Text; namespace SecureGameGuard { public class DataEncript { public static byte[] DataEncrip(int n...
3b1834e1ed8d422b2648d7f38b9ab151b28b93aa
C#
elsa-workflows/elsa-core
/src/core/Elsa.Abstractions/Services/Models/ActivityBlueprintWrapper.cs
2.859375
3
using System; using System.Linq.Expressions; using System.Threading; using System.Threading.Tasks; namespace Elsa.Services.Models { public class ActivityBlueprintWrapper : IActivityBlueprintWrapper { protected ActivityExecutionContext ActivityExecutionContext { get; } public ActivityBlueprint...
13245340e6bcb7e94a9f891be98a00d36962ec3f
C#
jacobmalliet/ArtifactTypeConverter
/ArtifactTypeConverter/TypeConverters/FieldTypeConverterBase.cs
2.875
3
using System; using ArtifactTypeConverter.Exceptions; using kCura.Relativity.Client; namespace ArtifactTypeConverter.TypeConverters { /// <summary> /// FieldTypeConverterBase is the base implementation of IFieldTypeConverter. /// Any class wishing to implement this will need to override multiple convert ...
33a1ad9bd441d80e94df8edb5ec3bb4872559976
C#
qq1588518/BookSystem
/BookSystem/AddBookForm.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using DataFac; namespace BookSystem { public partial class AddBookForm : Form { DataDal ...
8d7ee23acbecc4275365df98a43db08dced17b17
C#
phi1ipp/okta-sdk-dotnet
/src/Okta.Sdk/Generated/OAuthResponseType.Generated.cs
2.53125
3
// <copyright file="OAuthResponseType.Generated.cs" company="Okta, Inc"> // Copyright (c) 2014 - present Okta, Inc. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. // </copyright> // This file was automatically generated. Don't modif...
798864f9eafe950e8a4a1223d7df40d3a6c6907a
C#
KrEdu/c-sharp-syllabus
/csharp-basics/exercises/Arithmetic/GravityCalculator/GravityCalculatorTest/GravityCalculatorTest.cs
2.703125
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; namespace GravityCalculator.Test { [TestClass] public class GravityCalculatorTest { [DataTestMethod] [DataRow(-9.81, 0, 10.0 ,0, -490.5)] [DataRow(-9.81, 0, 10.0, 10, -480.5)] [DataRow(-9.81, 20.0, 10.0, 0, -...
3c750593c2aa14bdbdb94d5289ae57388e8d0139
C#
MatthewCsharp/DocumentParser
/DocumentParser/FredsImageMagickScripts/Threshold/TextCleaner/TextCleanerScript.cs
2.734375
3
// <copyright file="TextCleanerScript.cs" company="Dirk Lemstra, Fred Weinhaus"> // https://github.com/dlemstra/FredsImageMagickScripts.NET // // Copyright 2015-2017 Dirk Lemstra, Fred Weinhaus // // These scripts are available free of charge for non-commercial use, ONLY. // // For use of these scripts in commercial (...
020bdebcb34430ca2ec23afe2a7f771ba0b09e0d
C#
lucerogr/RestcodeAPI_ISW
/RestCode_WebApplication/Services/CommentService.cs
2.5625
3
using RestCode_WebApplication.Domain.Models; using RestCode_WebApplication.Domain.Repositories; using RestCode_WebApplication.Domain.Services; using RestCode_WebApplication.Domain.Services.Communication; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace RestCod...
e8df3092231fd80ef11ba8e0fe989e6d19bb92a1
C#
LeonMalakov/Freezing-Demo
/Assets/Game/Scripts/Extensions/ListExtensions.cs
3.09375
3
using System.Collections.Generic; using System.Linq; using UnityEngine; namespace WGame { public static class ListExtensions { public static IList<T> Shuffle<T>(this IList<T> list) { for (int i = 0; i < list.Count; i++) { int index = UnityEngine.Random.R...
fe864474a3f78e9309616600497d563cce645c9e
C#
invio/Peddler
/src/Peddler/MaybeDefaultComparableGenerator.cs
2.953125
3
using System; using System.Collections.Generic; namespace Peddler { /// <summary> /// An <see cref="IComparableGenerator{T}" /> that may provide a default /// value for <typeparamref name="T" /> in place of a value an inner /// <see cref="IComparableGenerator{T}" /> might otherwise provide. ...
3937bc7101c9dd95c0a30eb7c9c8174812fb9be9
C#
Gutem/RatSources
/Sources/[C#] DarkAgent RAT/DarkAgent-master/DarkAgent RAT/src/Network/FileServer/FileClientProcessor.cs
2.515625
3
using System; using System.Collections.Generic; using System.Text; using System.Net.Sockets; using System.Net; using System.Windows.Forms; using DarkAgent_RAT.src.Network.FileServer.Packets; using DarkAgent_RAT.src.Utils; namespace DarkAgent_RAT.src.Network.FileServer { public class FileClientProcessor { ...
52095d5e1054d6368b038cf0c2c76db1fefe95cc
C#
adamkarb/effective-octo-guacamole
/WebApi/Controllers/UsersController.cs
2.546875
3
using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using WebApi.Domain.Model; using WebApi.Application; using WebApi.Application.Dto; namespace WebApi.Controllers { [Route("[controller]")] [Produces("application/json")] public class UsersController : ControllerBase { private readonl...
9adedead548569d3ae1c646fa11944063b2a9f60
C#
vlad72-1/SIGame_megalab2020
/SIGame/Program.cs
2.71875
3
using SIGameLibrary; using System; using System.Collections.Generic; using System.Threading; namespace SIGame { class Program { private static PressedKeys keys; private const int WindowWidth = 45; private const int WindowHeight = 25; [STAThread] static void Main() ...
8fb7774c055f2ab668be37b546dd1be50daa26ad
C#
Jdkruege/Asteroids
/Asteroids/Asteroids/Asteroids/Asteroid.cs
2.71875
3
using BEPUphysics.Entities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Asteroids { class Asteroid { private Drawable _drawObj; public Entity entity; public enum S...
a60b9b5df108b85cd3f7bf04cb26d7f293faf8fc
C#
SGDatUVA/PizzaJam-Slost
/Slost/Assets/Resources/Scripts/Obstacle.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public delegate void ObstEvent(); public class Obstacle : MonoBehaviour { public ObstEvent hitEvent; Rigidbody2D rb; private void Start() { rb = GetComponent<Rigidbody2D>(); } private void OnCollisionEnter2...
de164f49e2c39b30602dcda637c2c39492c22a33
C#
jonatanYanovsky/youtubePlaylistDataExporter
/youtubePlaylistExporter/Program.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using YoutubeExplode.Playlists; using CsvHelper; using System.Globalization; using System.IO; using VideoDataNameSpace; namespace youtubePlaylistExporter { class Program { static void Main(...
6ddf3a6d3700b9e2afec93ce2f21ff7d7868f2ea
C#
mastersdeveloper/base-design-patterns
/base-design-patterns/07-Composite/Component.cs
2.859375
3
using System; using System.Collections.Generic; using System.Text; namespace _07_Composite { public abstract class Component { public string Nombre { get; set; } public decimal Costo { get; set; } public Component(string Nombre, decimal Costo) { this.Nombre = Nombr...
acbaa14908b594c4f88f56844b375ae551f21250
C#
sabujsen/DsAlgo
/DsAlgo/Interfaces/IDSAService.cs
2.640625
3
using System; using System.Collections.Generic; using System.Text; namespace DsAlgo { public interface IDSAService { int[] TwoSum(int[] nums, int target); Stack<int> ReverseStack(Stack<int> list); //Recursion int Fibbonaci(int i); IList<string> LetterCombinations(i...
36946f98f076ec9ab8c1954c08444a74917a3785
C#
KiiPlatform/KiiCloudUnitySDK
/KiiCloudStorageSDK/storage/exception/BadRequestException.cs
2.875
3
using System; namespace KiiCorp.Cloud.Storage { /// <summary> /// The exception that is thrown when the Request is not acceptable due to the request is not expected. /// Reason would be represented by enum. /// </summary> public class BadRequestException : CloudException { internal BadR...
d61baa4b3dac37a1839cccbc960587349daef1e0
C#
HussainAlazzani/CodingChallenges
/LeetCode/Arrays/Remove duplicates.cs
3.421875
3
static void Main(string[] args) { int[] a = { 0, 0, 0, 0, 0, 0, 2, 3, 4, 4, 4, 4, 4, 5, 6, 7, 7, 8, 8, 8, 9, 12, 12, 13 }; int length = GetLength(a); System.Console.WriteLine(length); for (int i = 0; i < length; i++) { System.Console.Write(a[i] + ", "); } } static int GetLength(int[] a) { int index = 0; int m...
0985f967a22ed9667201389ce0fad3f1f5c1348d
C#
prasanths/TcpFileMigrator
/TcpServerConnector/TcpServer.cs
2.90625
3
using System; using System.Net.Sockets; using System.Net; using System.ComponentModel; using System.Threading.Tasks; using System.Threading; using CloudMigrator.Azure; using System.IO; namespace TcpServerConnector { public class TcpServer { public IPAddress IP { get ...
03d17c48f233a5d1094a4fb2c410b9233c72ed7a
C#
LiuYi0526/jellyfin-plugin-douban
/Jellyfin.Plugin.Douban/IDoubanClient.cs
2.5625
3
using System.Net.Http; using System.Threading; using System.Threading.Tasks; namespace Jellyfin.Plugin.Douban { public enum MediaType { movie, tv } public interface IDoubanClient { /// <summary> /// Gets one movie or tv item by doubanID. /// </summary> ...
d0cd8dd5b4b7c6cf871a96efaf5164be8ac375ec
C#
josh-asi/random-user
/src/RandomUser.Infrastructure/EntityFramework/Context.cs
2.734375
3
using Microsoft.EntityFrameworkCore; using RandomUser.Infrastructure.DataSeeding; using RandomUser.Infrastructure.EntityFramework.Entities; using System; using System.Collections.Generic; namespace RandomUser.Infrastructure.EntityFramework { public class Context : DbContext { public DbSet<User> Users ...
af67d93bc74fbdab5e57410601f43b68c187c5b5
C#
WangQuanKnight/eShopOnWebWQ
/ApplicationCore/Services/BasketService.cs
2.828125
3
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using ApplicationCore.Interface; using ApplicationCore.Entities.BasketAggegate; using Ardalis.GuardClauses; using ApplicationCore.Specifications; using System.Linq; namespace ApplicationCore.Services { public class Ba...
99514a4e6a0beffa62afd4454a386b346f71a5c8
C#
reashore/ConcurrentGames
/SportsIq.Models/GamesDto/IGameDto.cs
2.546875
3
using System; using System.Collections.Generic; namespace SportsIq.Models.GamesDto { public interface IGameDto { Guid GameId { get; } DateTime StartDateTime { get; set; } bool Started { get; set; } } public class GameDto : IGameDto { public Guid GameId { get; set; ...
2b0c1ed62361530420318d6b477d168dd2b6ca3a
C#
digtive/antrian
/plugins/Numeric Keypad Detector/RawInput.Sharp/Native/RawInputDeviceHandle.cs
2.875
3
using System; namespace Linearstar.Windows.RawInput.Native { /// <summary> /// HANDLE /// </summary> public struct RawInputDeviceHandle : IEquatable<RawInputDeviceHandle> { readonly IntPtr value; public static RawInputDeviceHandle Zero => (RawInputDeviceHandle)IntPtr.Zero; ...
472a25b2616cec2ee67823089824b82960509026
C#
kation1/Lab13.2
/Lab13.2/Models/DAL.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Dapper.Contrib.Extensions; using System.Data.SqlClient; using System.Data; using Dapper; namespace Lab13._2.Models { public class DAL { public static List<Product> Read() { Syste...
4931f79751039b714deb859d84abab3242f5ca0e
C#
Rexarrior/CyberLife
/CyberLife/StateMetadata.cs
3.25
3
using System; namespace CyberLife { public class StateMetadata { public string Name { get; set; } public double Value { get; set; } /// <summary> /// Получает прототип этих метаданных /// </summary> /// <returns>прототип googleProtobuff</returns> pub...
b95cc91386f7e71aab22afb3222fae151308dc68
C#
meierhofer/RollABall
/Assets/Scripts/PlayerController.cs
2.515625
3
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; using UnityEngine; using UnityEngine.InputSystem; using UnityEngine.SceneManagement; public class PlayerController : MonoBehaviour { [SerializeField] private float m_speed = 1...
df421128782cf35eec345dcb61b08cb83557bd53
C#
DanielLause/MiniGame-Project4
/Assets/Scripts/ObstacleSpawn.cs
2.59375
3
////////////////////////////////////////////// /// /// /// Last Day - Source Code /// /// /// /// Lead Programmer Second Programmer /// /// Daniel Lause Julian Hopp /// /// ...
448e4e8f9cf251cee8d42edac34b8865f2b69596
C#
StephenJSmith/TDD-MarsRovers-Sep2010
/MarsRover/Rover.cs
3.140625
3
namespace MarsRover { public class Rover { private int maxX; private int maxY; private IOrientation orientation; public Rover(IOrientation orientation, int maxX, int maxY) : this(orientation, maxX, maxY, 0, 0) { } public Rover(IOrientation ...
af2e8c57607cb23c7d5b57ca428e76d95af00d77
C#
radtek/2SA
/2SA/Models/Repositories/Shared/ClientsRepository.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace eArchiver.Models.Repositories.Shared { public class ClientsRepository { EArchiverDataContext _context = new EArchiverDataContext(); public IQueryable<Client> GetAllClients() { ...
c83824db3ab0ae9afc4e22ae37cd0f9b66ca9d70
C#
neron1234/EFCore.CodeGenerator
/EFCore.Scaffolding.Extension.Entity/Class.cs
2.6875
3
using System; using System.Collections.Generic; namespace Entities { /// <summary> /// 班级. /// </summary> public partial class Class { public Class() { this.Student = new HashSet<Student>(); } /// <summary> /// 主键. /// </summary> ...
fb20ef846a1c4b2a9019df9b34a2cfee6240d57e
C#
jmescuderojustel/talks-and-presentations
/Gasteiz Developers - Clean Code/clean-code/refactor-example/After/ExecutorLogger.cs
2.71875
3
using After.Entities; using After.Extensions; using After.Logger; namespace After { public class ExecutorLogger { private int _count; private readonly ILogger _log; public ExecutorLogger(ILogger log) { _log = log; } internal void Summary(EmailAcco...
fb5ba8f26d697d7534c4aa6136d70f5eb20c9ff8
C#
lauris339/Csharp-Basic
/11-6 uzduotis/Program.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _11_6_uzduotis { class Program { static void Main(string[] args) { var a = new Random(); var b = a.Next(1,11); int c = 0; ...
5b80ed09c0715a59a15aa8c3feb366f7155f4ee8
C#
EPAM-training/Task3_Maxim_Pashuta
/EPAM_Task3_Test/FiguresTest/PaperFiguresTest/PaperTriangleUnitTest.cs
2.875
3
using EPAM_Task3.Enums; using EPAM_Task3.Figures.PaperFigures; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; namespace EPAM_Task3_Test.FiguresTest.PaperFiguresTest { /// <summary> /// Class for testing the class PaperTriangle. /// </summary> [TestC...
a321510d85020930109c791103cb88ee721b2c72
C#
ugurkryl41/Ornekler
/Ornek3/Program.cs
3.546875
4
using System; using System.Collections; namespace Ornek3 { class Program { /* Girilen cümlenin Kelime ve Karakter tekrarı sayısını bulan örnek */ static void Main(string[] args) { Console.Write("Cümle giriniz: "); string cumle = Console.ReadLine().ToString(); ...
2b0c8516c57ec9dfb55ce8dde6450c22bdb1c349
C#
alexvmhsr/VisualCliente
/TelnetC/Clases/Originador.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Net.NetworkInformation; namespace TelnetC.Clases { class Originador { public static readonly String CLIENTE = "C"; public static readonly String SRV_APLI...
e8197d3180b6941ba6121c12c914e8396df0474f
C#
willrockoliv/EstudosEmCSharp
/Console Application/008_PosicionaCursor_e_controle_do_Tempo/PosicionaCursor/PosicionaCursor/Program.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace Jogo_da_Forca { class Program { static void Main(string[] args) { Console.CursorLeft = 60; Console.CursorTop = 10; Console.ReadLine(); ...
891b5df2c974eb0fd56c5cb295a214a95ee31a0c
C#
vladimir-nazarenko/spbu
/Homeworks2/FinalExam/FinalExamTests/ComparatorsTests.cs
3.046875
3
using System; using NUnit.Framework; using FinalExam; namespace FinalExamTests { [TestFixture] public class ComparatorsTests { private StringAlphabeticComparer alpha; private StringReverseComparer reverse; private StringLengthComparer len; public ComparatorsTests()...
d096d036b86c898801aee3b50f6bf0fa8984e043
C#
Ahmed-slaah/ExaminationSystem
/TrueOrFalseQuestion.cs
2.75
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Examination { public partial class TrueOrFalseQuestion : Form...
6e271bbb1e2094a87756289730854ec4f10543a9
C#
Shahmeer245/SmartApp-EMR
/MazikCareService.Core/Models/HL7/Helper.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MazikCareService.Core.Models.HL7 { public class Helper { public static string decodeEscapeChar(string _str) { if (_str.Contains(@"\E\")) { ...
7f015f4a336bf52cad2235de4745d13d440d05a7
C#
rubenthedragon/Duncan-s-Demise
/Assets/Scripts/Combat/AttackPoint/AlphaChangingAttackPoint.cs
2.578125
3
using UnityEngine; [RequireComponent(typeof(SpriteRenderer))] public class AlphaChangingAttackPoint : AttackPoint { private SpriteRenderer spriteRenderer; private void Start() => spriteRenderer = GetComponent<SpriteRenderer>(); private float prepareTimer = 0; public override void Activate(MeleeAttac...
6e1ed1e72330ddfd85f54b048aa23be0d46d2b2b
C#
Givko/NumberGeneratorWithKafka
/KafkaDemo/NumberConsumerProject/Program.cs
3.046875
3
using Confluent.Kafka; using Domain.Loggers; using NumberConsumerProject.Consumers; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace NumberConsumerProject { class Program { static List<int> numbersConsumed = new List<int...
28b52e45d0a52a167965c2380843d5e70097c474
C#
mkbiltek/files
/encrypt/ConsoleApplication1/Cryptor/AesCryptor.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Security.Cryptography; using System.IO; namespace ConsoleApplication1 { class AesCryptor : ICryptograph { Aes myAes; ICryptoTransform encryptor, decryptor; public AesCryptor(byte[] Key, ...
4a2283dc3319bf45fd3a2ae56952171e02d614f2
C#
ACP-TIC/ERP
/view/Converters/ValueToEnumConverter.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Data; namespace Cognitivo.Converters { class ValueToEnumConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo cultu...
b3fa4713e852527a3383b733bca89c1131a13720
C#
FursiK911/C-SharpLabs
/Лабораторная работа №3/Program5.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int m = 5; int[,] mas1 = new int[m, m]; int[,] mas2 = new int[m, m]; int[,] ma...
86b04e2b3b9f748e4229a36c014ec0c234de9485
C#
Mihai-ai/PSSC-2019
/Filip_Madalin/Proiect/Old_/AspNetCoreBackend/WeTestBackend/WeTestBackend/Models/Tester.cs
2.53125
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace WeTestBackend.Models { public class Tester { [Key] [DatabaseGenerated(DatabaseGeneratedOpt...
eceb44bae6989d2a2787ec087acef39fc1dc5adc
C#
kvoloboy/TravelHelper
/TravelHelper.DataAccess/Repositories/TourRepository.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using TravelHelper.Domain.Models; using TravelHelper.Domain.Models.Enums; namespace TravelHelper.DataAccess.Repositories { public class TourRepositor...
f5d3e5c7e4cd73995e024ab7dc39a86eb6db7d7c
C#
Resgrid/Core
/Core/Resgrid.Config/ConfigProcessor.cs
2.84375
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Reflection; namespace Resgrid.Config { public static class ConfigProcessor { public static bool LoadAndProcessConfig(string path = null) { try { if (String.IsNullOrWhiteSpace(path)) { path = P...
692d46e97d564e7f1a71390a31f0e7e3c71b8a62
C#
rikrdosfreitas/calculojuros
/Src/Common/Juros.Common/Validation/GuardValidationException.cs
2.59375
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; namespace Juros.Common.Validation { public class GuardValidationException : Exception { public GuardValidationException() : base("One or more validation failures have occurred.") ...
140a9b1ff1ada4b683994ed96d3191eafa2eff4f
C#
FuzzySlipper/Framework
/Assets/Framework/Entity/CachedEntity.cs
2.53125
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using System; namespace PixelComrades { [System.Serializable] public class CachedEntity : IDisposable, ISerializable { private int _entityId = -1; private Entity _entity; ...
c1bd20c810647754df93be6d84ad02207145fd33
C#
SpinDOS/WalkingSimulator
/WalkVisualizer/Helpers/StringTimeSpanConverter.cs
3.046875
3
using System; using System.Globalization; using System.Windows; using System.Windows.Data; namespace WalkVisualizer { public sealed class StringTimeSpanConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var tim...
248b36285c0e1cba4ecdb24dffca2e119b0b575a
C#
Team-Ironlight/Ironlight_Codebase
/IronlightCode/Assets/TESTING/Rob/ROFO/AISCRIPTSPART1/Enumerations/StateEnum.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace ROFO { //states public enum State { None, Rotate, Searching, SnakeRattle, Projectile, PF_GoTo, PF_Wander}; public static class StateEnum { //return state attached to gameobject passed in ...
7e3eb915bbc3d1bfb660a16d6dbe2e22919cadc8
C#
NikkoStro/Jantern-s-Woods
/.github/workflows/Janterns Woods/Assets/Scripts/Sprint.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System; public class Sprint : MonoBehaviour { [SerializeField] private int maxSprint = 300; public int currentSprint; public int i; public int j; public Player player; public event A...
085a388f6fcfa2cfb0ec96aa2d5680f152cf1274
C#
VarunKrishna03/BlockBreakerGame
/Assets/BlockBreakerTemplate/Scripts/Brick.cs
3.03125
3
using UnityEngine; using System.Collections; public class Brick : MonoBehaviour { public GameManager manager; //The GameManager //Called whenever a trigger has entered this objects BoxCollider2D. The value 'col' is the Collider2D object that has interacted with this one void OnTriggerEnter2D (Collider2D col) {...
da77ca80a14e83890e40a3f3afac22a3ecfbe366
C#
1806-jun25-net/CloudCipher-project2
/RestaurantAPI/RestaurantAPI.Testing/RestaurantRepoTest.cs
2.53125
3
using Microsoft.EntityFrameworkCore; using RestaurantAPI.Data; using RestaurantAPI.Library.Repos; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; namespace RestaurantAPI.Testing { public class RestaurantRepoTest { public RestaurantRepoTest() {...
6d2b9ba743a2900932289ea7685f8ee33062e1d6
C#
dumitriudenis/Magazin-piese-auto
/WindowsFormsApp2/Clase/Detalii_comanda.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindowsFormsApp2.Clase { class Detalii_comanda { private int order_id; private string name; private int product_quantity; private string date; p...
ca672db214b771a24aeaf8ae2b99995b501183ba
C#
AndreyChechel/Explosuress
/src/Explosuress/Internal/ExplosuressRewriter.cs
3.1875
3
using System; using System.Collections.ObjectModel; using System.Linq.Expressions; namespace Explosuress { /// <summary> /// Rewrites an Expression Tree - removes closure references when possible. /// Closures are replaced with corresponding constant values. /// </summary> internal class Explosure...
17b24318af8857864eb1ea1de1ec1b88c0a6531a
C#
genbtc/FileTime
/Classes/ExplorerLikeSort.cs
2.765625
3
using System; using System.Collections; using System.Collections.Generic; using System.Windows.Forms; namespace genBTC.FileTime.Classes { /// <summary> Explorer-like Sort, for strings </summary> public class ExplorerLikeComparer : IComparer<string> { public int Compare(string x, string y) ...
52ea2ae6677dae5c3c23eee205a5172b544475e2
C#
SHUSHI-warlock/MinesGame
/MinesGame/Converter/FlagStyleConverter.cs
2.84375
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; using System.Windows.Media; namespace MinesGame.Converter { class FlagStyleConverter : IValueConverter { public object Convert(obje...
1b1ec03959a1aba6fae67878467f106c548cd1be
C#
willjames/Seasoning
/Seasoning/Fr.cs
2.59375
3
using System; namespace Seasoning { public class Fr : SeasonUtilities { public static bool IsLabourDay(DateTime dateToEvaluate) { return (dateToEvaluate.Month == 5 && dateToEvaluate.Day == 1); } public static bool IsVEDay(DateTime dateToEvaluate) { return (dateToEvaluate.Month == 5 && ...
a1899548a7804ebd3bd028ff0ec9e7b3f93e5ecf
C#
the-mech/ZahlensystemeRechner
/ZahlensystemeRechner/Utilities/ProtocolUtils.cs
3.578125
4
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace ZahlensystemeRechner.Utilities { /// <summary> /// Stellt Funktionen bereit um Nachrichten zu protokollieren und auf Festplatte zu schreiben. /// </summary> class ProtocolUtils { /// <summary> ...
a8482128514a9b0876286b2d2fa90e3f64e426bf
C#
OceLotKaka123/WebApplication1
/DAL.Logic/BaseFundSql.cs
2.625
3
using BLL.Model; using DAL.ISql; using Dapper; using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; namespace DAL.Sql { public class BaseFundSql:IBaseFundSql { private readonly SqlConnection _con; public BaseFundSql(SqlConnection co...