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
042165825a38d8d500189794c2d1b4ef0d2bebab
C#
shendongnian/download4
/code3/391938-8608729-19364681-2.cs
2.53125
3
int roleid; var allowedRoles = new[] {5, 15}; foreach (data r in dataList) { using (DataContext communityContext = new DataContext()) { roleid = communityContext.UserRoles .First(x=> x.UserID == r.ClientId && allowedRoles.Contains(x.RoleID)) .RoleID; ...
04bb5a43363ecfbc1adbe0d3a906ec40b21b5a5d
C#
sayedurrahman/FileProcessor
/FileProcessor.Service/FileProcessorController.cs
3.015625
3
using FileProcessor.Service.Classes; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; namespace FileProcessor.Service { public class FileProcessorController { public string FolderPath { get; set; } public string TargetString { get; set; } public string R...
51d190dbc95ea4cf9bef94ea04570d611a8bd600
C#
will14smith/orbital-core
/src/Orbital.Web/Clubs/ClubService.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Orbital.Data; using Orbital.Data.Entities; using Orbital.Models; using Orbital.Web.Helpers; namespace Orbital.Web.Clubs { public class ClubService : IClubService { ...
16df0a61286212b063fd89543c79446990f01583
C#
shendongnian/download4
/code3/430136-52660901-183140101-4.cs
2.65625
3
// GET api/values [HttpGet] public async Task<ActionResult<string>> postNoBearerAsync(string email, string password,string baseUrl, string action) { var request = new LoginRequest { email = email, password = password }; var callApi = new CallApi(ba...
f4de4fc1eebb5eebc0e8b23b94affda11e68a474
C#
PetarMetodiev/Telerik-Homeworks
/OOP/01.Defining-Classes-Part-1/Defining-Classes-Part-1/GSM/GSM.cs
3.3125
3
namespace GSM { using System; using System.Collections.Generic; public class GSM { #region Fields private string model; // Mandatory private string manifacturer; // Mandatory private decimal? price; private string owner; private Battery batt...
4c7a16a972de6249af6617dc14ace9e87cf15815
C#
urecha/ch.gibz.m120
/M120_urech/Models/Film.cs
2.609375
3
using System.Collections.Generic; namespace M120_urech.Models { public class Film { public static readonly float PRICE_PER_TICKET = 12.95f; private static int NextId = 1; public int Id { get; } public string Title { get; } public Category Category { get; } publi...
fd42985e050fb69af87d76ac976000e046d7e13a
C#
CamYeomans/SpellBook
/Spellbook/CharacterClass.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Spellbook { public abstract class CharacterClass { private int spellSaveDC; private int spellAttackMod; private int[] profBonus = new int[] {0, 2, 2, 2, 2, 3, 3...
f7c503554d3531ca5c56a7fc9a5dbf3381d266dd
C#
Grauenwolf/TravellerTools
/TravellerTools/Grauenwolf.TravellerTools.Characters/Careers/Noble.Dilettante.cs
2.625
3
namespace Grauenwolf.TravellerTools.Characters.Careers { class Dilettante : Noble { public Dilettante(Book book) : base("Dilettante", book) { } protected override string AdvancementAttribute => "Int"; protected override int AdvancementTarget => 8; protected override string Su...
9eda187ae29bd9177b5fb599a2ee18a6d36c77ca
C#
lwolf83/Checkpoint3
/C3Server/UserModule.cs
2.6875
3
using Nancy; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C3Server { public class UserModule:NancyModule { public UserModule() { Get("/file/{FilePath}", param =...
ae42ae9a4e8705fdbcf88cd52317867bc4a87ee9
C#
ESDP-Csharp-2-3-Team1/starkit
/Starkit/Services/UploadService.cs
2.546875
3
using System.IO; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; namespace Starkit.Services { public class UploadService { public async Task Upload(string path, string fileName, IFormFile file) { using var stream = new FileStream(Path.Combine(path, fileName), FileMod...
b0e861fe2148b4b918f5180d37d3b1b609a2fa50
C#
ange1of/DataConverter
/src/JsonToXmlConverter.cs
3.109375
3
using System; using System.IO; using System.Xml.Linq; using Newtonsoft.Json; namespace project { public class JsonToXmlConverter : DataConverter { public override void convert(string sourcePath, string targetPath) { string fullSourcePath = Path.GetFullPath(sourcePath); string ful...
91e69b1b9a898b12a22c0b349517b68440d77e97
C#
0wriken/stduy-daily
/C#/winfrom/wriken_study1/wriken_study1/Form5.cs
2.640625
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 System.IO; using System.Media; namespace wriken_study1 { public partial class Form5 : Form ...
aea15dabccedfba1effb526af3f5c9668fc0445c
C#
mrjavaguy/adventofcode2017
/src/utils/memorize/Memoize.cs
3.375
3
namespace Utils.Memorize { using System; using System.Collections.Concurrent; public static class Memoize { public static Func<TReturn> Memo<TReturn>(this Func<TReturn> func) { object cache = null; return () => { if (cache == null) ...
c695eda3e6b8882fbd2458f001f7026a12ad1c0b
C#
Rokata/TelerikAcademy
/Programming/CSharpPartTwo/4. Numeral Systems/DecimalToHexademical/DecimalToHex.cs
3.25
3
using System; class DecimalToHexademical { static void Main() { Console.Write("Enter decimal number: "); int decimalNumber = int.Parse(Console.ReadLine()); Console.WriteLine("Hexademical presentation: 0x" + Convert.ToString(decimalNumber, 16).ToUpper()); } }
98e984210ca68fc40297c6907c7adc5bd89a7dbf
C#
rodiojp/HealthMonitor
/HealthMonitor.Services/Scheduling/HourlyScheduleProvider.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using HealthMonitor.Domain.Scheduling; using HealthMonitor.Services.Interfaces; namespace HealthMonitor.Services.Scheduling { public class HourlyScheduleProvider : BaseScheduleProvider { ...
4b4291407dc28ad5743b23b2c48cf13376299ff1
C#
dahlsailrunner/simple-serilog
/formatters-added/Simple.Serilog/Middleware/ApiExceptionMiddleware.cs
2.6875
3
using System; using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Newtonsoft.Json; using Serilog; namespace Simple.Serilog.Middleware { public class ApiExceptionMiddleware { private readonly RequestDelegate _next; private readonly ApiExceptionOptions _options...
9c8ef2d990544d84e3c95bfb6827ad1ff230daae
C#
rjohnson102/A6_MovieLibraryWithAbstractClasses
/A6_MovieLibraryWithAbstractClasses/JSONFile.cs
3.28125
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using Json.Net; namespace A6_MovieLibraryWithAbstractClasses { class JSONFile : IRepository { public string Path { get; set; } public JSONFile(string path) { this.Path = path; } ...
8f26a7edb27be071dc913e1f5561c86036459a16
C#
2mhk/All-In-One-Code-Framework
/Visual Studio 2010/CSVSXSaveProject/Files/VSProject.cs
2.984375
3
/************************************* Module Header *********************************\ * Module Name: VSProject.cs * Project : CSVSXSaveProject * Copyright (c) Microsoft Corporation * * This class represents a project in the solution. It supplies method to get the all * the files i...
09eb32b72b36e90c9ccd9c0688beaa1ae37ec2a7
C#
nardilab11/Evaluacion2NET
/Modelo/Cliente.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Evaluacion2NET.Modelo { class Cliente : Persona { private string _direccion; public Cliente(string nombre, string apellido, string direccion) : base(nombre, apellido) ...
b8a31ee0243fd28f1da4ac346446c6c1ce3081e5
C#
jdiin37/MyLittleGame
/ConsoleApp1/Map/Lib/MapTown1.cs
2.53125
3
using ConsoleApp1.Cmd; using ConsoleApp1.Enum; using ConsoleApp1.Hero; using ConsoleApp1.Task; using System; using System.Collections.Generic; namespace ConsoleApp1.Map { public class MapTown1 : AMap { public MapTown1(ITaskProvider taskProvider) : base(taskProvider) { base.name = ...
6063ecd368e303badf6ba1ad22aba61f110c3293
C#
connext-schubs-it/SchuBS-Textadventure
/SchuBS-Textadventure/Objects/Gegner.cs
2.84375
3
using System.Collections.Generic; using SchuBS_Textadventure.KampfHelper; namespace SchuBS_Textadventure.Objects { public enum GegnerTyp { FeuerdracheStark, Ungeheuer, Kobolde, KoboldAnfuehrer, FeuerdracheSchwach } public class Gegner : GegnerBase { ...
093da0a12e690e1fd288903e022ab166264142ad
C#
discospiff/ShowSpecimens
/ConsumeSpecimens/Pages/ValidateXML.cshtml.cs
2.53125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Xml; using System.Xml.Schema; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Consume...
0c672e1645c3461efa7d47948e8b3a9347f2cef4
C#
AslamJiffry/iContactApi
/iContactApi.cs
2.515625
3
 using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Web; using System.Web.Script.Serialization; namespace Tagovi.iContact { public class iContactApi { private const string PROD_URL = "https://app.iconta...
e5f22c23a9141bd33247c88af646645130fe79fe
C#
Yordan432/Exams
/Programming Basics 18 December 2016/01.Distance/Distance.cs
3.203125
3
using System; class Program { static void Main() { var startSpeed = int.Parse(Console.ReadLine()); var firstTimeInMinutes = int.Parse(Console.ReadLine()); var secondTimeInMinutes = int.Parse(Console.ReadLine()); var thirdTimeInMinutes = int.Parse(Console.ReadLine()); de...
3386fe4b32858f460185bdf8261c64b68541f565
C#
pierlabs/pier-sdk-csharp
/src/main/csharp/Conductor/Pier/Model/DocumentoResponse.cs
2.75
3
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Conductor.Pier.Model { /// <summary> /// ...
8532d05b3690ac2240c15f180b5cd8e7e2a3afea
C#
Devil7-Softwares/9AnimeDownloader
/Utils/DownloadJob.cs
2.796875
3
using Devil7.Utils.Automation.NineAnimeDownloader.Models; using ShellProgressBar; using System; using System.ComponentModel; using System.Net; using System.Threading.Tasks; namespace Devil7.Utils.Automation.NineAnimeDownloader.Utils { class DownloadJob : IDisposable { #region Variables private...
c73202f1242aec3d2aab14bf139b9aaa7adfcf5b
C#
Maria13579/Examen_III_
/Examen_III_unidad/Examen_III_unidad/Program.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Examen_III_unidad { class Program { static string[,] agenda; static int Contactos = 0; static int Contador = 0; static bool estado = true; st...
ee3e732c7fa3f6fd4d403f98648315b4b3423f05
C#
ofirandpnina/oop-server
/23.11.2020/WebApi/BLL/UsersManager.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DAL; using DAL.dto; namespace BLL { public class UsersManager { static oopEntities db = new oopEntities(); public static List<users1> GetList() { //oopEn...
31d965541463f6c4ce5ca643e0839a26a5598615
C#
PrzemekOglaza/CsharpStrukturyGenetyczne
/CsharpStrukturyGeneryczne/4_MetodyDelegatyGeneryczne/Program.cs
3.4375
3
using System; namespace _4_MetodyDelegatyGeneryczne { class Program { static void Main(string[] args) { //Predicate(); //Func(); //Action(); var kolejka = new KolejkaKolowa<double>(pojemnosc:3); kolejka.elementUsunie...
4fb1989680136aeb76b5ea9bf52db0399373a237
C#
mhowlett/milib
/Interop.Milib/ImageOperations.cs
2.84375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Runtime.InteropServices; using System.Windows.Media; using System.Windows.Media.Imaging; using Color=System.Drawing.Color; using PixelFormat=System.Drawing.Imaging.PixelFormat; namespace I...
9a148ef052b45973f5f6a234ac74fcfbeb838128
C#
wveik/SilverParser
/SilverParser/DomainClasses/TODAY_PRICE.cs
2.671875
3
using System; using System.Collections.Generic; using System.Data.SQLite; using System.Linq; using System.Text; namespace SilverParser.DomainClasses { public class TODAY_PRICE { public static TODAY_PRICE GET_TODAY_PRICE(SQLiteDataReader reader) { return new TODAY_PRICE() { TP_K...
40eb4e8fa26138fdeead26cd1affd4dd2ecd2873
C#
isabella232/Cake.Apprenda
/src/Cake.Apprenda/AMM/SetNodeState/SetNodeState.cs
2.640625
3
using System; using Cake.Core; using Cake.Core.IO; using Cake.Core.Tooling; namespace Cake.Apprenda.AMM.SetNodeState { /// <summary> /// Sets the state of a node in the cloud /// </summary> /// <seealso cref="MaintenanceModeTool{TSettings}" /> public sealed class SetNodeState : MaintenanceModeTool...
67cc91cddf2d5dbe6dc2e1027b744e54e9628e1a
C#
vanph/MinhNguyenCsharp
/projects/MyCountryApp/View/CountryForm.cs
2.640625
3
using System; using System.Linq; using System.Net.Http; using System.Windows.Forms; using MyCountryApplication.External.Model; using Newtonsoft.Json; using RestSharp; namespace MyCountryApplication.View { public partial class CountryForm : Form { private const string UrlUsaState = "http://services.gro...
4dc187eec6540550e4f67722436f3f20df221ce7
C#
lipingwucs/YummyMummy
/Models/Ingredient.cs
2.703125
3
using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System; using System.Collections; using System.Collections.Generic; namespace YummyMummy.Models { //ERD, one entity, one class //Ingredient class public class Ingredient : BaseEntity { public int ID { get; set; } public string Name { g...
08fe6ff2e88f026696dbd69962e94e57a0f56984
C#
GTom93/kolokwium
/UnitTestProject/UnitTest1.cs
3.140625
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Kolos; namespace UnitTestProject { [TestClass] public class UnitTest1 { /// <summary> /// test czy funkcja poprawnie wykryje liczby półpierwsze /// </summary> [TestMethod] public void TestSemiPr...
5ec7a04df7ca639c76b67d096a7c3ff83d8cc614
C#
kendalhowse/StudyBugApp
/StudyBugApp/ShowCardListUITableViewController.cs
2.75
3
using System; using System.Collections.Generic; using System.IO; using UIKit; using SQLite; using System.Linq; namespace StudyBugApp { /// <summary> /// /// Autohr: Ahmed Mohammed /// show card list of all cards from database /// </summary> public partial class ShowCardListUITableViewController : UITableViewC...
acd9170bd08b110bc4630355003e914277de02d5
C#
DenyaAbramenkov/LibraryApi
/LibraryApi/Controllers/GenresController.cs
3.046875
3
using System.Linq; using Microsoft.AspNetCore.Mvc; using LibraryApi.Models; using LibraryApi.Services; using System.Collections.Generic; namespace LibraryApi.Controllers { /// <summary> /// Genre's controller. /// </summary> [Route("api/genres")] [ApiController] public class GenresController :...
f21c05c9286da2ceff95e85033314cd881a657a1
C#
ArtemKhrolenko/MainAcademy
/Module_01/Lesson_03/HomeWork_03/Games/Program.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Games { class Program { static void Main(string[] args) { long a; Console.WriteLine(@"Please, type the number: 1. Farmer, wolf, goa...
23f32f9fea7180342b758f8855f675615dbcd6bf
C#
paulmordont/EPAM-Mentoring
/Mentoring.Messaging.Service/Program.cs
2.578125
3
using System; namespace Mentoring.Messaging.Service { using System.Configuration; using System.Security.Principal; using System.ServiceModel; class Program { static void Main(string[] args) { using (ServiceHost host = new ServiceHost(typeof(MessagingIntegrationService)...
1826ad0d74c1d7f5643c23d87d0bbb5840ac9e81
C#
kovalpv/payroll
/src/Payroll.Tests/PayrollContext/Domain/SalaryTests.cs
2.84375
3
using NUnit.Framework; using Payroll.PayrollContext.Domain; using Payroll.PayrollContext.Domain.Exceptions; namespace Payroll.Tests.PayrollContext.Domain { public class SalaryTests { [Test] public void ShouldAddSalaries () { var salaryA = new Salary (51, Currency.Dollar); v...
3dc439f5d64932d9e4dbc8d9d5402777e6ce7aac
C#
muhammadikhan/OTS
/OTSAPI/Controllers/DressCategoryController.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Data.Linq; using System.Web.Http; // Handle Database Calls. using DatabaseContext; using DatabaseEntity; // User Defined Model to Handle Api Call Models. using OTS.Model; namespace OTSAPI.Controllers { /// <summary> /// DressCatego...
355462a699a3da2a3c7a207bf60c95062f154632
C#
IMHristov/SoftUni
/Tech Module 3.0/Programming Fundamentals/Methods/P14FactorialTrailingZeroes/Program.cs
3.484375
3
using System; using System.Numerics; namespace _14FactZero { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); Factorial(n); } static void Factorial(int n) { BigInteger sum = 1; ...
3c1fdf042a69c825280d8a3267319b8d86933342
C#
andriusLeksas/.NET-Developer-Task
/DeveloperTask/DeveloperTask/Book.cs
3.484375
3
using System; using System.Collections.Generic; using System.Text; namespace DeveloperTask { //Book structure class Book { public string name; public string author; public string category; public string language; public string publicationDate; public string ...
33dd536e83c8c9fccf5443133616493cd305f389
C#
DerLando/ConwayPrototype
/ConwayPrototype/Core/Parsing/Creator.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ConwayPrototype.Core.Geometry; using ConwayPrototype.Core.Geometry.PlatonicSolids; using ConwayPrototype.Core.Geometry.RegularTilings; using Rhino.Geometry; namespace ConwayPrototype.Core.Parsing ...
1dee490f28fd27e021903773c640598be8267cb0
C#
uzabumuhire/CsharpDefRef
/Advanced/AnonymousTypes/Basics/Demo.cs
3.78125
4
using static System.Console; using static Core.ConsoleHelper; namespace Advanced.AnonymousTypes.Basics { static class Demo { /// <summary> /// Demonstrates usage of anonymous types. /// </summary> internal static void Test() { // An anonymous type is a simp...
9f5582e6b4a7949fc2a0245cd6f6aee6682a665b
C#
efl0004/czml-writer
/DotNet/KmlToCesiumLanguage/Geometry.cs
2.75
3
using System; using System.Drawing; using System.Globalization; using System.Linq; using System.Xml.Linq; using CesiumLanguageWriter; namespace KmlToCesiumLanguage { /// <summary> /// This class provides a placeholder object for all derived Geometry objects. /// </summary> public abstract class Geomet...
1c0e2d94f50b23140e362dc6ecbf8f81d44da2d5
C#
synset/Polymorphism
/Shapes/Circle.cs
3.5
4
using System; using System.Collections.Generic; using System.Text; namespace Shapes { public class Circle : Shape { private int radius; public Circle(int radius) { Radius = radius; } public int Radius { get => radius; set => radius = value; } publi...
754ce006f61dae73ab4ffd6e4e14e9babfbbef67
C#
fishg92/VolunteerManager
/frmMultiSetTime.cs
2.796875
3
using System; using System.ComponentModel; using System.Windows.Forms; namespace VolunteerManager { public partial class frmMultiSetTime : Form { DateTime _baseDate; public frmMultiSetTime(DateTime pBaseDate) { InitializeComponent(); _baseDate = pBaseDate; ...
b46cbc18e1be3125c7d61cccfa8c88fca99319bb
C#
rajeshdewangan12/X-MarketPlace
/XpnMarketPlace.Business.Data.Common/Helpers/DatabaseInitializer.cs
2.59375
3
using System.Data.Entity; namespace XpnMarketPlace.Business.Data.Common { public class DatabaseInitializer<TContext> : IDatabaseInitializer<TContext> where TContext : DbContext { public void InitializeDatabase(TContext context) { //if (!context.Database.Exists()) ...
ef7df937684dd7b3f02640dde59b48725aa07894
C#
nkwasek/EON_network_emulator_G8080ASON
/Subnetwork/Subnetwork/RoutingConntroller.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Subnetwork { class RoutingConntroller { public int lastSlotIndex = 0;//gdzie mozna zajac szczeliny public int[,] localTopology; public int path; private...
944f5593276fdde8fab41e9deeb95a0e5081b42c
C#
aardvark-platform/aardvark.base
/src/Aardvark.Base/Geometry/Types/Cone/Cone3_template.cs
2.546875
3
using System; using System.Globalization; using System.Linq; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Serialization; namespace Aardvark.Base { // AUTO GENERATED CODE - DO NOT CHANGE! //# foreach (var isDouble in new[] { false, true }) { //# var f...
ed4761d2cd5340bf50e276de8319309aa3a370cf
C#
AntonioAngelov/CSharp-Fundamentals--SoftUni
/C#Advanced/11.Exercise-RegularExpressions/06.SentenceExtractor/Startup.cs
2.9375
3
using System; using System.Text.RegularExpressions; namespace _06.SentenceExtractor { public class Startup { static void Main(string[] args) { var keyword = Console.ReadLine(); var text = Console.ReadLine(); Regex regex = new Regex($@"(\w[^.!?]*)?\b{keyword...
d7966a9b36143f6fb9131cd0ba4bf4c7990804c5
C#
laurentksh/navalbattle
/BatailleNavale/BatailleNavaleTest/Model/GridModelTest.cs
2.84375
3
using System; using System.Numerics; using System.Text; using BatailleNavale.Model; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace BatailleNavaleTest.Model { [TestClass] public class GridModelTest { private Random rnd = new Random(); [TestMethod] public void CtorTes...
8df9dad36e42cc8d6323c42a4b8970f892edb68f
C#
DanyBoy20/libretaContactosGestorClientes
/GestionClientes/FMain.cs
2.984375
3
using System; using System.Collections.Generic; using System.Windows.Forms; namespace GestionClientes { public partial class FMain : Form { /// <summary> /// añadimos una isntancia a nuestro customermanager /// </summary> private CustomerManager _customerManager; publi...
ff413e9704e478d1da995ba9583fbfad743e07a7
C#
ErtyHackward/utopia
/Bepu/ConversionHelper/MathConverter.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; namespace ConversionHelper { /// <summary> /// Helps convert between XNA math types and the BEPUphysics replacement math types. /// A version of this converter could be created for...
eb8db9f9f5a1cdd8cdff79b9d290ad20566a8c34
C#
myoxuunt/yh
/8.Src/YeHeCommuniServer/YeHeCommuniServer/YeHeCommuniServer/ResourceManager.cs
2.53125
3
using System; using System.Drawing; using System.Collections.Generic; using System.Text; using System.Windows.Forms; namespace YeHeCommuniServer { /// <summary> /// /// </summary> public class ResourceManager { /// <summary> /// /// </summary> public ImageList Ima...
9869bb079ce6d4c305adf314a05ae38ebf16045e
C#
nemmip/ProgramowanieKomputerow
/Nauka/Interfejsy_I_Kolekcja/Zadania/zad5_6/Program.cs
3.390625
3
using System; using System.Collections.Generic; namespace zad5_6 { class Program { private static Dictionary<string, string> slownik = new Dictionary<string, string>() { {"wg", "według"}, {"np.", "na przykład"}, {"itd.", "i tak dalej"}, {"itp.", ...
7d7404be10be6135cbdf73d1ad33abae0c373bd8
C#
eldarj/NETConsole-WebScraperSample
/CallingCodeScraper/Program.cs
2.9375
3
using HtmlAgilityPack; using System; using System.Collections; using System.Collections.Generic; using System.IO; namespace CallingCodeScraper { class Program { static void Main(string[] args) { Console.WriteLine("Hello World Scraping!"); try { ...
e6cec5a9ac072d420e5f4b8c8421b322fb4c0aff
C#
S8PsyOps/BattleCore
/BattleCore/Protocol/ArenaEnterPacket.cs
2.625
3
//----------------------------------------------------------------------- // // NAME: ArenaEnterPacket.cs // // PROJECT: Battle Core Protocol Library // // COMPILER: Microsoft Visual Studio .NET 2005 // // DESCRIPTION: Arena Enter Packet implementation. // // NOTES: None. // // $History: ArenaEnterP...
ce702dc45ad8f71ca2d6b86d0efaf1a8e419c078
C#
snupsas/SerialDataGraphPlotting
/ToolsLib/BinaryHelper.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ToolsLib { public static class BinaryHelper { public static int IndexOfFirstElement(this byte[] byteArray, Func<byte, bool> searchCriterea) { for (int i = 0...
c9cc9a7ad48902058f725cdde59cfcb8a6b904fd
C#
VinsantSavov/SoftUni-Software-Engineering
/CSharp-Advanced/Homeworks-And-Labs/Workshop/Lab/Lab/WorkshopDemo/StartUp.cs
3.171875
3
using System; namespace WorkshopDemo { class StartUp { static void Main(string[] args) { MyList list = new MyList(2); list.Add(10); list.Add(20); list.Add(30); list.Add(40); list.Add(50); list.Add(60); ...
439139177d4d476e04fec096a370dd6703e5f2f3
C#
sinkien/IBAN4Net
/SinKien.IBAN4Net.NetStandard/BicUtils.cs
2.734375
3
/* * IBAN4Net * Copyright 2020 Vaclav Beca [sinkien] * * Based on Artur Mkrtchyan's project IBAN4j (https://github.com/arturmkrtchyan/iban4j). * * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
3f411b22eb8a4f6440fe0031cc53b3d2f61c583c
C#
SSUrbancic/RockPaperScissors
/RockPaperScissors/Player.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RockPaperScissors { public abstract class Player { //member attributes (HAS A...) //gestureArray[0] = Rock, gestureArray[1] = Paper, gestureArray[2] = Scissors, gestur...
8df0ec34e534774ba232901796bc5eab46ce3b79
C#
jeremyyang824/Leetcode
/Leetcode.Core/OJ082_RemoveDuplicatesFromSortedListII.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Leetcode.Core { /* * Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. * For example, * Given 1->2->3->3->4->4->5, return 1->...
7e91835cd8368d4ff741589aa0c08000625d554a
C#
danbilokha/smart-nation
/server/GmailSender/SmtpClientLibrary.cs
2.78125
3
using System; using System.Net.Mail; namespace GmailSender { public static class SmtpClientLibrary { static bool mailSent = false; public static string SendKey(string messageTo, string messageFrom, string passwordFrom) { SmtpClient client = new SmtpClient(); ...
16bac8402c04d475d522cda982be9f3a86a27cf9
C#
oceancx/ProjectUndefined-Prototype
/Assets/Undefined/Logic/SightVisualFeedback/StateBehavior/SightVisualFeedbackStateBehavior.cs
3.078125
3
namespace SightVisualFeedback { public enum SightVisualFeedbackState { NONE = 0, /// <summary> /// The AI is aware that the Target is near and walk/runs towards its /// </summary> WARNING = 1, /// <summary> /// The AI is seeing it's target. /// ...
bccbf18f89e07a4409820fde701975c6c284977e
C#
gustavogiori/api
/Data/Repository/Repository.cs
2.890625
3
using Data.Context; using Domain.Entities; using Domain.Interfaces; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace Data.Repository { public class Repository<T, TKey> : IRepository<T, TKey> where T ...
c9a15d5a22a71e0e701c21b09bd5a2b0356ca22a
C#
r-pankevicius/SearchCSharp
/SearchCSharp/CSharpStringSearcher.cs
3.03125
3
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; using System; using System.IO; namespace SearchCSharp { class CSharpStringSearcher : CSharpSyntaxWalker { int _foundMatches; SyntaxTree _tree; readonly Func<string,...
72c7349b5ca2cc9be5744d51bac8750ce7dd8a45
C#
Shtereva/CSharp-OOP-Basics
/Working with Abstraction/02. Point in Rectangle/StartUp.cs
3.59375
4
using System; using System.Linq; public class StartUp { public static void Main() { var coordinates = Console.ReadLine() .Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries) .Select(double.Parse) .ToArray(); var rectangle = new Rectangle(new Poi...
f86ad00f103746e8c7c13fd49581bd1baa3f6e7a
C#
sgww/cozy
/src/Practice/CozyKxlol/Kxlol/Extends/VectorExtension.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; namespace CozyKxlol.Kxlol.Extends { public static class VectorExtension { public static Vector2 ClampWithLength(this Vector2 vec, float max) { float len = vec.Length...
3fc306f2942ee4c83a788f6855b2021db7fcb416
C#
Maskln/CSharp-OOP
/OOP_GroupProject_HealthBuddy/HealthBuddy/HealthBuddy/Calculator/MenCaloriesCalculator.cs
3.40625
3
namespace HealthBuddy.Calculator { using System; using HealthBuddy.Interfaces; /// <summary> /// Calculates BMR by different formula depending on the gender (man) /// </summary> /// <returns></returns> public class MenCaloriesCalculator : MenDietCalculator, ICaloriesCalculator, IDie...
20a827d5b225b4019493c8811d60b9519865bf0a
C#
book000/Memorization
/Memorization/Settings.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Memorization { public class Settings { private string _speaker; private int _volume; private int _speed; private int _pitch; private string _api...
b2cc492efe3230a536e2e86409242f1a35df97d6
C#
c3dr0x/AdventCalendar
/AdventCalendar2018.Tests/DayTwoTests.cs
2.96875
3
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AdventCalendar2018.Tests { [TestClass] public class DayTwoTests { [TestMethod] public void CallengeOne_TestSituation1() { string input = "abcdef"; var (Twice, ThreeTimes) = DayTwo.CountTwiceAndTh...
8643b5e794af1aef4060cb19f186dcb31dbb1960
C#
TN8001/HistoryCollection
/HistoryCollectionTests/ColorTranslatorTests.cs
2.71875
3
using System; using System.Drawing; using Microsoft.VisualStudio.TestTools.UnitTesting; //using Chaining Assertion https://github.com/neuecc/ChainingAssertion namespace HistoryCollection.Tests { [TestClass()] public class ColorTranslatorTests { [TestMethod()] public void FromHtmlTest() ...
9cca1b9aae6eed134ded9ea1eb3a7ea8e58af490
C#
imaxmunguia/EjemploPracticos
/QuickStart/Model/Album.cs
3
3
using System; using System.Collections.Generic; namespace Telerik.Examples.WinControls.TreeView.Populating.ObjectRelational { [Serializable] public class Album { private int id; private int artistId; private string title; private List<Track> tracks = new List<Track>(); ...
8582577a5b47bd55dd0541fea283955f44914b33
C#
AlexanderPitsyk/ReactiveUI
/Common/Extentions.cs
3.375
3
using System; using System.Collections.Generic; namespace ReactiveUIApplication.Common { public static class Extentions { public static void ForEach<T>(this IEnumerable<T> list, Action<T> action) { foreach (var item in list) { action(item); }...
ad589dcaed048f587955e3062124b4072d62de71
C#
AndreL2507/ISTA220
/exercises/Duck.cs
2.625
3
using System; using System.Collections.Generic; using System.Text; namespace Farm { class Duck { public Duck() { } public void Speak() { Console.WriteLine("Quack"); } public void Eat() { Console.WriteLine(...
7f6d2dbb2015c4e33363e7dfd372109559d07115
C#
cdacatcnashik/CodingSamples
/MS.NET/Fundamentals/Platform/Persistence/objsertest2.cs
3.265625
3
using HR; using System; using System.IO; static class Program { public static void Main(string[] args) { var serializer = new System.Xml.Serialization.XmlSerializer(typeof(Department)); if(args.Length > 0) { var dept = new Department{Title = args[0]}; dept.AddEmployee(5, 45000); dept....
07b74e12ebf49d2d5d48f883b61593b76ba7747c
C#
TeamAntumbra/wintumbra
/Antumbra/Observer/Colors/Color16Bit.cs
3.5
4
using System; using System.Drawing; namespace Antumbra.Glow.Observer.Colors { public struct Color16Bit { #region Public Fields public UInt16 blue; public UInt16 green; public UInt16 red; #endregion Public Fields } public class Color16BitUtil { #region ...
4ada1fd1ef96c153517186f298884b3552a7b743
C#
dongweiPeng/wangzhe.WangZheDllCode
/Asssembly-CSharp/OutOfControl.cs
2.875
3
using System; public struct OutOfControl { public bool m_isOutOfControl; public OutOfControlType m_outOfControlType; public OutOfControl(bool isOutOfControl = false, OutOfControlType outOfControlType = OutOfControlType.Null) { this.m_isOutOfControl = isOutOfControl; this.m_outOfControlType = outOfControlType...
1874aa1a3e6ed6c8fb0c21a37b1b3cc300ce5b3a
C#
dsxragnarok/CLJ
/UnityProject/Assets/Scripts/InstanceManager.cs
2.765625
3
using UnityEngine; using System.Collections; using System.Collections.Generic; // Efficiently caches game objects for re-use. // It uses the Entity base object which contains the ID as the key public class InstanceManager : MonoBehaviour { // A decent way to hash into all available game objects based on their entit...
952d8bfb66fb5d86255975990b710a130d67d71b
C#
AndYavorskiy/MicroservicessTestApp
/src/services/AuthorizationService/Repositories/RefreshTokenRepository.cs
2.59375
3
using AuthorizationService.DBContext; using AuthorizationService.Entities; using MongoDB.Driver; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace AuthorizationService.Repositories { public class RefreshTokenRepository : IRefreshTokenRepository { private readonly ...
b378614ce9c88ce7b42eca881c3cd49835a73c44
C#
pluveto/Lilywhite
/Tester/Program.cs
2.65625
3
using Scriban; using Scriban.Parsing; using Scriban.Runtime; using System; using System.IO; using System.Threading.Tasks; namespace Tester { class Program { static void Main(string[] args) { var inFilePath = @"D:\in.html"; var template = Template.Parse(Syste...
4725284387e7fbe6513433838b56b55997368065
C#
JohnHumble/BitMiner
/Game1/Game1.cs
2.53125
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using System.Collections.Generic; namespace BitMiner { enum Screen { play,build} /// <summary> /// This is the main type for your game. /// </summary> public class Game1 : Game { ...
38f2080c8b283877fe9b582b91485b139c98ceb4
C#
jabarij/TestData
/src/TestData/Building/Standard/ConstructorInstanceFactory.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace TestData.Building.Standard { public class ConstructorInstanceFactory<T> : IInstanceFactory<T> { public ConstructorInstanceFactory() : this(new ConstructorSelector<T>()) { } public ConstructorI...
a6329b53b5536b1278ab8af7664b1b8844939dd1
C#
shankera/MoveThisThere
/MoveThisThere.Lib/FileMover.cs
3.40625
3
using System; using System.IO; namespace MoveThisThere.Lib { public class FileMover { private static int _copied; private static int _overwritten; private static int _total; private FileMover() {} public static int[] Move(string sourcePath, string destPath) { ...
187d7beb244edda4ca18ecd179fb385a803fec30
C#
markembling/Experimental
/MongoDbNotes-NoRM/src/MongoDbNotes/ViewHelpers.cs
2.515625
3
using System; using System.Linq; using System.Web.Mvc; namespace MongoDbNotes { public static class ViewHelpers { public static string Title (this HtmlHelper html, string title) { const string siteTitle = "Notes"; if (string.IsNullOrEmpty(title)) return siteTitle; ...
c731646ac7fabe3b7129ee05f5146a98a5a788fd
C#
shendongnian/download4
/code5/922930-23111539-63030489-2.cs
2.578125
3
List<MyObject> people = new List<MyObject>{ new MyObject{ID = 1, Name= "Tom", Data= "[22.3,23.4,21.5]"}, new Person{ID = 2, Name= "Tome", LastName = ""[22.3,23.4,21.5]"} }; string jsonString = people.ToJSON();
d6d506e6da4ae815a82572b8b4fcb19a563210c2
C#
valerian720/q_sort
/qSort/qSort/Program.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace qSort { class Program { static void qsort(int l, int r) { int i = l; int j = r; // int x = a[(l + r) / ...
d75ff5e229270afd32ddeae439f8a940be2cf9ed
C#
gturri/hashCode2015
/HashCodePizza/Solver.cs
3.046875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HashCodePizza { public class Solver { private static string BuildFilename() { DateTime now = DateTime.Now; return now.Hour + "_...
b98dd328325a5da061875129fb46f8ccaf5364f3
C#
terrajobst/nquery-vnext
/src/NQuery/Syntax/ExceptQuerySyntax.cs
2.515625
3
namespace NQuery.Syntax { public sealed class ExceptQuerySyntax : QuerySyntax { internal ExceptQuerySyntax(SyntaxTree syntaxTree, QuerySyntax leftQuery, SyntaxToken exceptKeyword, QuerySyntax rightQuery) : base(syntaxTree) { LeftQuery = leftQuery; ExceptKeywor...
618b3285e6544185751b6b1f0a2a156ab75cd479
C#
denisborovnev/NetExpressionEval
/ExpressionEval/ExpressionEvaluator.cs
2.9375
3
using System; using System.Collections.Concurrent; using System.Linq.Expressions; namespace ExpressionEval { public class ExpressionEvaluator { private ConcurrentDictionary<string, Func<object>> _funcsCache0 = new ConcurrentDictionary<string, Func<object>>(); private ConcurrentDictionary<strin...
31c3574f584df379c5e7ee3988c87422d3aec63f
C#
AniCodesIt/Dev-Teams-take-2
/DevTeamKomodo-main/UserInterface.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DevTeamsProject { class UserInterface { //Referencing the class, created an instance (repoholder) //telling system to assign the parameters (meaning properties and meth...
4eaedc429a8113a654a4f73dfe4acd0bf6d985b2
C#
mdmg92/Microservicios.Kaure
/src/microservices/Microservicios.Kaure.Account/Controllers/AccountController.cs
2.5625
3
using System.Linq; using Microservicios.Kaure.Account.DTOs; using Microservicios.Kaure.Account.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace Microservicios.Kaure.Account.Controllers { [Route("api/[controller]")] [ApiController] // [Authorize] public clas...
84413f17e5c9202d0ccc896fd5fa4d27bc918324
C#
HAWKG2/VoiceBot-v0.1
/VoiceBot v0.1/Form1.cs
2.890625
3
using System; using System.IO; using System.Text; 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 System.Speech.Synthesis; using System.Speech.Recognition; name...
2a8b252ab9b6391268333f0614dbd473cc648a15
C#
james-world/monitoring
/Demo5/src/Acme/Features/Orders/ProductCatalog.cs
2.890625
3
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Prometheus; namespace Acme.Features.Orders { public class ProductCatalog { private ConcurrentDictionary<string, int> productStock = new ConcurrentDicti...
2e3c5e66673ad0756e2f1c462ad4cb399e8b2b25
C#
laurentkempe/Demo-WebAPI-MongoDB-Docker
/src/webapi/Services/WeatherService.cs
2.84375
3
using System.Collections.Generic; using MongoDB.Driver; using webapi.Services; namespace webapi.Services { public class WeatherService : IWeatherService { private readonly IMongoCollection<WeatherForecast> _weatherForecasts; public WeatherService(IWeatherDatabaseSettings settings) { ...
60bc3e7ad1c3f92928faf157fbbfe4b80f7475aa
C#
Rongusha/cShardStudy
/ProgramingBasics/ExamPreparation2/04. Tourist Shop/Program.cs
3.640625
4
using System; namespace _04._Tourist_Shop { class Program { static void Main(string[] args) { double budget = double.Parse(Console.ReadLine()); string command = ""; double moneySpend = 0; int gearCounter = 0; while (moneySpend<=budg...
126ea344ef3ea8ccab508c08dd10b1f474e3ba12
C#
YeoHoonYun/Strive
/src/Services/ConferenceManagement/Strive.Core/Extensions/PermissionDescriptorExtensions.cs
2.609375
3
using System; using System.Collections.Generic; using Newtonsoft.Json.Linq; using Strive.Core.Services.Permissions; namespace Strive.Core.Extensions { public static class PermissionDescriptorExtensions { public static KeyValuePair<string, JValue> Configure<T>(this PermissionDescriptor<T> permissionDesc...
0920c7859b705dbe2c012725a65b8419455861ba
C#
IoZackary/AutoReleaseNotesGenerator
/AutoReleaseNotesGenerator/AutoReleaseNotesGenerator.Logic.Tests/DoubleCalcTests/Divide.cs
2.671875
3
using AutoReleaseNotesGenerator.Logic; using Xunit; namespace DoubleCalcTests { public class Divide { private readonly DoubleCalc doubleCalc; public Divide() { doubleCalc = new DoubleCalc(); } [Theory] [InlineData(7.8, 5.3, 0.6794871794871794871794...