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
4a2b71807f65246baea3177b68060f45fddc1aa0
C#
shendongnian/download4
/first_version_download2/493326-44815690-150436469-2.cs
2.65625
3
public class MyFixture: Interpreter { public void Interpret(CellProcessor processor, Tree<Cell> table) { new Traverse<Cell>() .Rows.Header(row => FunctionThatDoesSomethingWithTheHeaderRow(row)) .Rows.Rest(row => FunctionThatDoesSomethingWithEachSubsequentRow(row)) .VisitT...
3f6f0ff50a151ebb35032e2effe51b15764092f5
C#
heloisarsantos/crud-user
/crud-api/Crud.Infra.Data/Repository/BaseRepository.cs
2.90625
3
using System.Collections.Generic; using System.Linq; using Crud.Domain.Entities; using Crud.Domain.Interfaces; using Crud.Infra.Data.Context; namespace Crud.Infra.Data.Repository { public class BaseRepository<TEntity> : IBaseRepository<TEntity> where TEntity : BaseEntity { protected readonly DataConte...
d69ac04cd70c72395db2354bc72ec5c798e2960e
C#
LeodevCL/Custom-Controls-Library
/Solution Controls/Solution Controls/Converters/Boolean To Object Converter.cs
2.859375
3
using System; using System.Globalization; using System.Windows.Data; namespace Converters { [ValueConversion(typeof(bool), typeof(object))] public class BooleanToObjectConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) ...
1cb4dadc11b455d5d048e987396a9a45122075af
C#
jebakani/TicTacToeGame_Workshop
/Workshop/Program.cs
3.5
4
using System; namespace Workshop { class Program { static void Main(string[] args) { Console.WriteLine("Welcome to Tic Tac Toe Game"); TicTacToeGame ticTacToeGame = new TicTacToeGame(); char[] board =ticTacToeGame.CreateBoard(); char playerChoice...
702bc51e1713a2e86aa578bcc214be69f7fb4d7e
C#
twinmind/cars
/Cars/DataContext.cs
2.78125
3
using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace Cars { public class DataContext : DbC...
27699117e2e33945f225b55e21492a67b0065ed4
C#
BenderRodrigez/SpeakerVerification
/HelpersLibrary/DspAlgorithms/Filters/BPF.cs
2.734375
3
using System; namespace HelpersLibrary.DspAlgorithms.Filters { //bug: this implementation not working well. /// <summary> /// Полосовой фильтр /// </summary> public class Bpf { private readonly int _elementsNumber; private double[] _a; private double[] _b; priva...
38c6e102100b2e9e7f81252d686b3c663418b210
C#
ImaginaryDevelopment/LinqPad
/LINQPad Queries/WIP/click without moving pinvoke.linq
2.65625
3
<Query Kind="FSharpProgram"> <Reference>&lt;RuntimeDirectory&gt;\System.Windows.Forms.dll</Reference> </Query> // purpose click without using the mouse, so perhaps we can be free to use the computer while it clicks a background/other monitor app // https://stackoverflow.com/questions/7315196/performing-a-mouse-click...
66a5879f5bd35bf7a7b7b2ad0418980c15d62846
C#
snozbot/fungus
/Assets/Fungus/Scripts/Commands/Input/GetKey.cs
2.640625
3
// This code is part of the Fungus library (https://github.com/snozbot/fungus) // It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE) using UnityEngine; namespace Fungus { // <summary> /// Store Input.GetKey in a variable. Supports an optional Neg...
fb182f8018f3098438d7ea666ebae920d5290de3
C#
daveganote/AdventOfCode
/Puzzle15.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AdventOfCode { public static class Puzzle15 { public static void SolvePuzzle15() { string input = "2,20,0,4,1,17"; int lastSpoken =...
04b7e4a3dc46872036b1d1017eee26cdf2433037
C#
Lar089/Gerenciador_Cinema
/Gerenciador_Cinema.Controlador/ModuleControladorLogin/ControladorLogin.cs
2.578125
3
using Gerenciador_Cinema.Controlador.Shared; using Gerenciador_Cinema.Dominio.ModuleLogin; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Gerenciador_Cinema.Controlador.ModuleControladorLogin { public class Controlad...
e96d13d61fb63635398fff3ca39d887c5725675c
C#
falcopellegrino/FacadeDesignPatternTester
/FacadeDesignPatternTester/MyCode/VerificaAcquaPotabileFacade.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FacadeDesignPatternTester.MyCode { /// <summary> /// The 'Facade' class /// </summary> class VerificaAcquaPotabileFacade { private VerificaSeIncolore _c; pr...
167c36c2f7562e0f16322da70361a4286b48ddfa
C#
shendongnian/download4
/first_version_download2/84810-5557500-11926887-2.cs
3.125
3
void BitmapCopy(System.Drawing.Bitmap source, string filename) { if (!String.IsNullOrEmpty(filename) && (source != null)) { string dirName = @"C:\Seva"; if (!System.IO.Directory.Exists(dirName)) { dirName = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); } ...
8899fc746ee37ad0b1e49be73f754430061dceb9
C#
thepigeonfighter/Automated-Desktop
/AutomatedDesktopBackground_Library/File Management/DirectoryNavigator.cs
2.71875
3
using System.IO; namespace AutomatedDesktopBackgroundLibrary { public class DirectoryNavigator { private readonly static string _imageInfoFolder = InternalFileDirectorySystem.ImageInfoFolder; private readonly static string _interestInfoFolder = InternalFileDirectorySystem.InterestInfo...
1295306047cf81b892419c6cf8a0dc790ab2b5a0
C#
Nguyenntvb/csharp
/Level 1/04_Converter/ConverterTest/UnitTest1.cs
3.09375
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using _04_Converter; namespace ConverterTest { [TestClass] public class UnitTest1 { [TestMethod] public void ZeroTest() { int x = Converter.ToInt("0"); Assert.AreEqual(0, x); } ...
65088db603e78ad265286ab7c990a51ad6a5a7c1
C#
DedulkoN/MyBigNotebook
/MyBigNotebook/Classes/ClassPhoto.cs
3.28125
3
using System; using System.Collections.Generic; namespace MyBigNotebook { public class ClassPhoto :ICrypt { public List<Photograph> Photographs; public ClassPhoto() { Photographs = new List<Photograph>(); } /// <summary> /// Дешифрование //...
c76fd1fb74333889a790747a24a163dfc34aee18
C#
ReichertMark/PanzerAdmiral
/Graphics/Animation.cs
2.921875
3
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.ComponentModel; using System.Runtime.Serialization; using PanzerAdmiral.ScreenSystem; using PanzerAdmiral.Helpers; namespace PanzerAdmiral.Graphics { /// <summary> /// Animation class /// </summary...
db4d6fa17409e3db99f116744f6ada5c73e08235
C#
Juan-Zambrano/Sample_Lesson_Plan
/1/Activites/Ins_console_App/Solved/CalculatorConsole_App/CalculatorConsole_App/Program.cs
3.421875
3
using System; using System.Reflection.Metadata.Ecma335; using System.Runtime.CompilerServices; using System.Security.Cryptography.X509Certificates; namespace CalculatorConsole_App { class Program { static void Main(string[] args) { //Since first lecture we are not covering...
7607bd6e878f641d54a12f933c0311dea6f77bc2
C#
finalstream/Movselex
/Movselex/ViewModels/DatabaseViewModel.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using Livet; using Livet.Commands; using Livet.Messaging; using Livet.Messaging.IO; using Livet.EventListeners; using Livet.Messaging.Windows; using Movselex.Models; namespace Movselex.ViewModels { ...
3f691fdc4c01825403502f4b118fc8f7b6e73e98
C#
Foustian/IQMedia2010-Prod
/IQMediaGroup.CoreServices/Util/CommonFunctions.cs
2.515625
3
using System.Web; using IQMediaGroup.CoreServices.Serializers; using System; using IQMediaGroup.Common.Util; using System.Configuration; using System.IO; namespace IQMediaGroup.CoreServices.Util { public class CommonFunctions { public static T InitializeRequest<T>(HttpRequest p_httpRequest,...
3304af8d934f53086ffbc641b034f799b871d8dc
C#
laxman77D/GameScoringApp1
/SOLID_Principles/SolidPrinciple.cs
3.921875
4
using System; using System.Collections.Generic; namespace SOLID_Principles { public interface IShape { int Side { get; set; } } public interface IArea { double GetArea(); } public interface IPerimeter { double GetPerimeter(); } public interface IAreaC...
29be6ab7fc2fc1ed54da7629d02e3b61ed5800d5
C#
Ratomir/StartCourse
/StartCourse/Delegate/GenericDelegate.cs
3.34375
3
using AppModel; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Delegate { class GenericDelegate { delegate T Transformer<T>(T x); static void Main(string[] args) { var titleModel = new TitleMode...
353551a838489bb6500097983c261f4b21964e60
C#
yuriwithowsky/rabbitmq-docker-masstransit
/JobConsumer/Consumers/SendMessageConsumer.cs
2.625
3
using System.Threading.Tasks; using Job.Messages; using MassTransit; using Microsoft.Extensions.Logging; using Newtonsoft.Json; namespace JobConsumer.Consumers { public class SendMessageConsumer : IConsumer<TextMessage> { private readonly ILogger<SendMessageConsumer> logger; public SendMessage...
18d6015ca85259596bc4dc3c5ab34006555f1084
C#
lilOkay/ReCapProject1
/DataAccess/Concrete/InMemory/InMemoryCarDal.cs
2.90625
3
//using DataAccess.Abstract; //using Entities.Concrete; //using System; //using System.Collections.Generic; //using System.Linq; //using System.Linq.Expressions; //using System.Text; //namespace DataAccess.Concrete.InMemory //{ // public class InMemoryCarDal : ICarDal // { // List<Car> _car; // ...
639b636ecdd4f4bc169e8f1c5a191736102847d7
C#
bmwant/ecc
/EllipticCurveCryptography/Ternary.cs
2.625
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.Numerics; using System.IO; using System.Diagnostics; namespace EllipticCurveCryptography { class Ternar...
8ca7cdecf872a6f34f0a8682bdbcc3ce61349665
C#
itReverie/itR-web-WebCrawler
/mnEntityObjects/IPlanet.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace mnEntityObjects { /// <summary> /// Planet is a website stored in a bookmark file. /// </summary> public interface IPlanet { /// <summary> /// Id of the pla...
97b931c70d294a528bd7458ac82912197c2da7b7
C#
tk4218/MxNet.Sharp
/src/MxNet/Util/MxUtil.cs
2.671875
3
/***************************************************************************** Copyright 2018 The MxNet.Sharp Authors. All Rights Reserved. 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 the License ...
386625d486ee347f4e736aed814a04a2870a4d8c
C#
BourjijKiller/Program_CSharp
/Usine_Article/T.P2/T.P2/Article.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace T.P2 { public class Article : Usine { private int id; private string nom; private string forme; private Matiere matiere; public Article(int id...
2034c899a43bf3d13d934e8cb26ee594333c3fc6
C#
diegoncollazo/UTN
/Laboratorio II/Cursada/2020/Segunda parte/3.Generics/Generics/Generics.2020/Restrictiva.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Generics._2020 { public class Restrictiva<T> where T : MiClase { public List<T> miLista; public Restrictiva() { this.miLista = new List<T>(); ...
56f037f7f734bc336134af3f3b26e6cadde69e90
C#
Opiumtm/CodeExamples
/ReflectionBenchmark/ReflectionBenchmark/Scenario/DynamicCall/CallableCaseDispatcher.cs
3.03125
3
using System; using ReflectionBenchmark.Callable; namespace ReflectionBenchmark.DynamicCall { /// <summary> /// Callable dispatcher using switch statement. /// </summary> public sealed class CallableCaseDispatcher : IDispatcherProxy { private readonly ICallableInterface _callable; ...
9258b7d1a1ef8b3196264de4627ceb9e31852285
C#
nmilushev/head-first-dp
/hf-dp-solution/FactoryMethodPattern/Stores/ChicagoStylePizzaStore.cs
3.203125
3
using FactoryMethodPattern.Pizzas; using System; namespace FactoryMethodPattern.Stores { public class ChicagoStylePizzaStore : PizzaStore { protected override Pizza CreatePizza(string type) { switch (type) { case "cheese": return new ...
967b20737a58838034ace57566254cda2659d2af
C#
GibraltarSoftware/Loupe.Agent.Core
/src/Core/Server/Client/IClientLogger.cs
2.625
3
using System; using Loupe.Extensibility.Data; namespace Gibraltar.Server.Client { /// <summary> /// HTTP Client logging interface /// </summary> public interface IClientLogger { /// <summary> /// Indicates if only minimal logging should be performed /// </summary> b...
f72bdc181c68905aaf89e9b4a00016cfac8452ca
C#
konyetamas/AccessControlSystemWEBAngular
/EntryMWeb/EntryMWeb/DAL/CompanyDAL.cs
2.765625
3
using DataBase; using EntryMWeb.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using EntryMWeb.Model; using EntryMWeb.Repositry; namespace EntryMWeb.DAL { public class CompanyDAL : ICompanyRepository { public List<CompanyModel...
367a73b911842506d329bb90dc6de9a1b45143e2
C#
HeyItsPatrick/VolumeMixerAPI
/VolumeMixerAPISelfHost/Terminal.cs
2.703125
3
using System; using System.Runtime.InteropServices; namespace VolumeMixerAPISelfHost { public class Terminal { const int ERROR_TOP = 33; const int OUTPUT_TOP = 4; const int OUTPUT_COLUMN = 67; const int OUTPUT_LINES = 30; const int WINDOW_HEIGHT = 40; const int ...
07b74c2723f18ee947d8e8f9241043cf6837791a
C#
gabriellaxh/WebAPI
/WebAPI/Homework/Models/CustomerModel.cs
2.78125
3
using System.ComponentModel.DataAnnotations; namespace Homework.Models { public class CustomerModel { public int Id { get; set; } [Required] [MaxLength(100, ErrorMessage = "Firstname is too long!")] public string Firstname { get; set; } [Required] [MaxLength(1...
de93c8b1cc82925fb0bdacefdc09777ea4d60ccc
C#
ArturWD/DarkDarkWeb
/DarkDarkWeb/Extencions.cs
3.046875
3
using DDW.Core.Entities; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Web; namespace DarkDarkWeb { public static class Extencions { public static ICollection<Keyword> GetKeywords(this string keywords) { string[] stringS...
f052fae76c7c7fdcdb2c3e8f2cdf056b7cb08dec
C#
shendongnian/download4
/latest_version_download2/148477-30370733-90987598-2.cs
3.3125
3
static void Main () { // Input array double[,] u = { { 1, 9, 3 }, { 0, 3, 4 }, { 3, 4, 5 }, { 3, 6, 8 }, { 3, 5, 7 }, }; // Get dimension sizes, specify column to order by int count = u.GetLength(0), length = u.G...
91730bc1874b90f6b5e422b59c77fd2e8d927c02
C#
NoahLangenwalter/kwisatz-api
/Models/JournalEntry.cs
2.609375
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using kwisatz.Data.Entities; namespace kwisatz.Models { public class JournalEntrySubmission { [Required] [StringLength(100)] public string Title { get; set; } [StringL...
3966d8aebbda1bcca50fc5a1263de3429d4a70a8
C#
andreasjacobsen93/XamarinThirdpartySamples
/oxyplot-develop/Source/OxyPlot/Rendering/RenderContext/RenderContextBase.cs
3.234375
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="RenderContextBase.cs" company="OxyPlot"> // Copyright (c) 2014 OxyPlot contributors // </copyright> // <summary> // Provides an abstract base class for rendering contexts. // ...
2cd83cc2e4cec7df7a87f3dc593149729457ebd2
C#
aramzham/AllTestingStuff
/Experimenting/DependencyInjectionContainer/HelloService.cs
3.125
3
using System; namespace DependencyInjectionContainer { public class HelloService { private readonly MessageService _messageService; private readonly int _random; public HelloService(MessageService messageService) { _messageService = messageService; _ran...
d4a50e67e988ee60f3ae8f35fb963505b3d416a4
C#
EliSih/Hotel_System-
/PumlaKamnandi Project/PumlaKamnandi Project/Data/PhumlaKamnandiDatabase.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.ObjectModel; using System.Data; using System.Data.SqlClient; using PumlaKamnandi_Project.Business; namespace PumlaKamnandi_Project.Data { enum DBOperation { Add, Delete, Ed...
0abc7cd4f21d93ff8182686c715ad2db47031141
C#
lkasana/Tizen-CSharp-Samples
/Wearable/WidgetSample/UIandWidget/ElmSharpWidget/MyWidget.cs
2.640625
3
using ElmSharp; using System; using Tizen.Applications; namespace ElmSharpWidget { public class MyWidget : WidgetBase { Label label; public override void OnCreate(Bundle content, int w, int h) { base.OnCreate(content, w, h); Console.WriteLine("[OnCreate] ###")...
ed0c6bc9fa9a2d760c20d6cb80bf542bf25f3731
C#
JorisAlbers/Stella
/StellaServerLib/Animation/Drawing/Fade/FadingPulseDrawer.cs
2.875
3
using System; using System.Collections; using System.Collections.Generic; using System.Drawing; using StellaLib.Animation; namespace StellaServerLib.Animation.Drawing.Fade { public class FadingPulseDrawer : IDrawer { private const int MINIMUM_FADEPOINTS_ADDED_EVERY_FRAME = 1; private readonly ...
887496357ad015a304217c5b4a3f10052ae2bde6
C#
heyimrlin/ESD
/ESD/UDPBroadcast.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using System.Windows.Forms; namespace ESD { class UDPBroadcast { public static Dictionary<string, string> gw_info = new Dictionary<string, string>()...
7d28625f8261dec147698cf867306828fff8c299
C#
marzim/SSCATGit
/src/Backup/Sscat.Core/Util/Argument.cs
2.8125
3
// <copyright file="Argument.cs" company="NCR"> // Copyright 2017 NCR Corporation. All rights reserved. // </copyright> namespace Sscat.Core.Util { using System.Collections.Generic; /// <summary> /// Initializes a new instance of the Argument class /// </summary> public class Argument { ...
9fdb6c83f2654cfe85916611ff587db27d8edcba
C#
alscoundrel/eShopOnWeb
/src/ApplicationCore/Entities/WishListAggregate/WishList.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using ApplicationCore.UseTypes; using Microsoft.eShopWeb.ApplicationCore.Interfaces; namespace Microsoft.eShopWeb.ApplicationCore.Entities.WishListAggregate { public class WishList : BaseEntity, IAggregateRoot { public string WisherId ...
9d52b72bddfc6e6c6718a727c8199959eeb9b9a8
C#
FredEkstrand/EnhanceGroupBox
/GroupBoxDemo/SelectablePanel.cs
2.796875
3
using System; using System.Drawing; using System.Windows.Forms; // taken from: https://stackoverflow.com/questions/3562235/panel-not-getting-focus namespace GroupBoxDemo { class SelectablePanel : Panel { #region Fields private Ekstrand.Windows.Forms.EnhanceGroupBox _groupBox; private...
3be65cd19e6d7f6d1a230066b3f9cc671773d3e4
C#
cmusman2/WcfService2
/WcfService2/IService1.cs
2.796875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; using System.Threading.Tasks; namespace WcfService2 { // NOTE: You can use the "Rename" command on the "Refactor" men...
1f0e41ed44ae915adfcc688978fd60c846a5cf80
C#
linocontreras/pcompiler
/Lexing/Tokens/TokenRelational.cs
3.328125
3
using System; namespace Lexing.Tokens { public enum TokenRelationalEnum { EQ, NE, LT, LE, GT, GE } public class TokenRelational : Symbol { public TokenRelationalEnum Value { get; private set; } public TokenRelational(TokenRelationalEnum tokenRelationalEnum) : base(SymbolType.Relati...
b466bdca1fbcce5ff3cb7ea055b3fa79823884cc
C#
lightcici/StationeryStore
/App_Code/CoreLayer/HistoryDisbursement.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class HistoryDisbursement { /// <summary> /// key ItemID /// </summary> Dictionary<string, DisbursementLog> summaryByItem; /// <summary> /// key DepartmentID, key ItemI...
4e48f8fe4917ba1369f139e89bc585a339b1cd15
C#
VladZahrodskyi/TaskManager
/DAL/Repositories/UnitOfWork_Identity.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DAL.Interfaces; using DAL.Entities; using DAL.Identity; using DAL.EF.Context; using Microsoft.AspNet.Identity.EntityFramework; namespace DAL.Repositories { public class UnitOfWork_Identity : IUni...
a14e839e4c9b7c37e241f8a93f1133b869d88912
C#
lucidcoding/BusConductor2
/BusConductor.Domain/Entities/Task.cs
2.53125
3
using System; using System.Linq; using BusConductor.Domain.Common; using BusConductor.Domain.Constants; using BusConductor.Domain.Enumerations; namespace BusConductor.Domain.Entities { public class Task : Entity<Guid> { public virtual string Description { get; set; } public virtual Guid? Assig...
c26b577abb19449ce0715d6f81dc8185acd47982
C#
JuYoung-Choi/TCP_Example
/TCPSocketTest/Assets/Scripts/TCPSocket.cs
2.625
3
using System.Collections; using System.Collections.Generic; using System.Net; using System.Net.Sockets; using UnityEngine; public class TCPSocket : MonoBehaviour { private string m_address = ""; private const int m_port = 3333; private Socket m_listener = null; private Socket m_socket = null; ...
a05f5eb168cb2007c20999e4a4bbf406a064ecba
C#
wojciechstylok/StudentDB
/StudentDB/EditStudentWindow.xaml.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
60c19e4eb11658ec510b1895bd919107ee43dd62
C#
SzymonSmagowski/Object-Oriented-Design-Task
/Archer.cs
3.53125
4
using System; using Enemies; namespace Defenders { class Archer : Warrior { private int arrows; public Archer(string name, int strength, int arrows) : base(name, strength) { this.arrows = arrows; } public override int AtakGiant(Giant enemy) ...
0992ca034540865145c56fd3b053730622773220
C#
BobanStojanov/csharp_basic
/Exercise7SEDC/Vezbi Exercise 7 SEDC/Libraries/Program.cs
2.5625
3
 using Libraries.class_library; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Libraries { class Program { static void Main(string[] args) { Employee Zlatko = new Employee { }; Zlatko.FirstN...
13ab9f680ab9183e2c195497c0c6fdcd5e02bfc6
C#
ArunDahayalan/ArunAcademyProject
/AcademyApplication/Models/Academy.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using AcademyApplication.Entity; namespace AcademyApplication.Models { public class Academy { public string AddContactUsValues(ContactFormValues contactForm) { string isContactAdded = string.Empty;...
4d5cb8c940ad47d57a760a74f9d8350ef65d4f0c
C#
kaue-guerra/TestCrud
/Database/SeedingService.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using TesteCrud.Models; namespace TesteCrud.Database { public class SeedingService { private AppDBContext _context; public SeedingService(AppDBContext context) { _context = con...
82a3aaf333036a566a1a800c44ad399a3b06433e
C#
JamesBabz/SymbolMotor
/SymbolMotor/GUICommunication/GUITagReader.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using SymbolMotor.Helpers; using NolekMoxa; using NolekMoxa.Model; namespace SymbolMotor.GUICommunication { public class GUITagReader { public List<string[]> ReadTagsFromFile(string path) {...
22fe747eacae47e6da1a184fc648e1daa42de0f2
C#
benknoble/junk-drawer
/c-sharp/statistics/BivariateDataSet.cs
3.15625
3
// //Ben Knoble's Project using System.Collections; using System.Collections.Generic; using System.Linq; namespace CollectionTypes { /// <summary> /// Immutable collection of (X,Y) data points of quantitative data sorted by X value. /// </summary> public class BivariateDataSet : IEnumerable<BivariateDataSet.DataP...
ef16377067164782ff8758476b8208e0af29ff16
C#
scottt4/TowerDefence
/Assets/Scripts/GameManager.cs
2.671875
3
using UnityEngine; public class GameManager : MonoBehaviour { private static GameManager Instance = null; private static int EnemiesRemaining; private static float Score; private int Level; private static float Gold; public bool Loss; private float ArmorPenetration; private float GoldM...
5ff3cf22df83c2409e07771a54813689e8971b66
C#
shendongnian/download4
/first_version_download2/573153-54797522-192083032-2.cs
2.515625
3
public partial class TaskProgress : Form { private string parameter = null; private string parameter2 = null; private string parameter3 = null; public TaskProgress(string parameter, string parameter2, string parameter3) { InitializeComponent(); this.parameter = parameter; this.parameter2 = param...
7ac87b62bf3666be11cb6714183b37e173ccd64c
C#
HeikkiDev/XFExpandableListViewItem
/ExpandableListViewItemApp/ExpandableListViewItemApp/Cinema.cs
2.6875
3
using System; using System.Collections.Generic; using System.Text; namespace ExpandableListViewItemApp { public class Cinema { public string Name { get; set; } public string Adress { get; set; } public string Phone { get; set; } public double ViewPointY { get; set; } p...
f8c3d8033d605bc716fe8aefefae232c791fdc25
C#
CWillJ/ModuleManager-Phase1-2
/Phase1/ModuleManager/ModuleManager/Classes/MethodParameter.cs
3.9375
4
namespace ModuleManager.Classes { /// <summary> /// An object designed to hold the type and name of a method's parameter. /// </summary> public class MethodParameter { private string _parameterType; private string _parameterName; private string _parameterDescription...
4deaabb074c9c38480d886a51b4adb806be74ac7
C#
masterprompt/TankWarz
/Assets/Tangatek/Extensions/Vector3Extensions.cs
2.53125
3
using System; using System.Collections.Generic; using UnityEngine; namespace Tangatek { public static class Vector3Extensions { #region StripY /// <summary> /// Strips Y component /// </summary> /// <param name="source"></param> /// <returns></returns>...
6ad8943e7652f8a96d358a0b45e8a54500a52a0f
C#
Wicher/ISIN_Validator
/ISIN_Validator_Tests/Models_Tests/IsinCountry_Tests.cs
2.640625
3
using FluentAssertions; using ISIN_Validator.Models; using Microsoft.VisualStudio.TestTools.UnitTesting; using NUnit.Framework; namespace ISIN_Validator_Tests.Models_Tests { [TestClass] public class IsinCountryTests { [TestCase("AF", "AFGHANISTAN")] [TestCase("AG", "ANTIGUA AND BARBUDA")] ...
9d6f5bec3dc6e3ff5dcd22b9d29a3b2e792ace33
C#
parveshnarwal/FactoryDesignPatternDemo
/ConsoleApp1/Factory/EmployeeManagerFactory.cs
2.59375
3
using ConsoleApp1.Managers; namespace ConsoleApp1.Factory { public class EmployeeManagerFactory { public IEmployeeManager GetEmployeeManager(int employeeType) { if (employeeType == 1) return new PermanentEmployeeManager(); else return ne...
88ec037c0509fa7cc720fb56139fcda085c90981
C#
Ama2002ru/EPAM_Ext_lab_Q4_2018_Anton_Metlyakov
/Task 3/Task3/3.7. ArraySort.cs
3.6875
4
namespace Task3 { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class ArrayTask1 : SubTask { private const int PositionsToPrint = 5; private const int ArraySize = 20; private int[] myArray;...
a5b2488d62b2666ac1648099d4f5db9acc203623
C#
betosmith2000/dmyblogAPI
/dMyBlogAPI/dMyBlogAPI/Controllers/InteractionsController.cs
2.546875
3
using dMyBlogAPI.Helpers; using dMyBlogAPI.Models; using dMyBlogAPI.Services; using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; namespace dMyBlogAPI.Controllers { [Route("api/[controller]")] [ApiController] [EnableCors("_AllowOrigins")] public class In...
89e5ba2904ea45eba9274b361dbf95ffb49ccb6c
C#
Emiton/c_sharp_intro_mosh
/WorkingWithFilesExercises/WorkingWithFilesExercises/Program.cs
3.78125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace WorkingWithFilesExercises { class Program { static void Main(string[] args) { var path = @"C:\MEAN\TestFile.txt"; var wholeFile...
766bcc7d4ba9055bee3fbdfe6be548b593275905
C#
Pgsuarez/Gestor_DIA
/DIAGraficos/BarChart.cs
3.015625
3
using System; using Gtk; using System.Collections.Generic; using System.Linq; using System.Text; using Charts.Data; namespace Charts { public class BarChart : VBox { /// <summary> /// Padding to the Drawing Area borders /// </summary> /// <value>The padding.</value> public int Padding { get; set; ...
b8b4a9d6482d6b471215888be2f4f6bb61580f8d
C#
systemmetaphor/shapeflow
/src/engine/ShapeFlow.Core/Declaration/ShapeDeclaration.cs
2.828125
3
using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using ShapeFlow.Collections; using ShapeFlow.Infrastructure; namespace ShapeFlow.Declaration { public class ShapeDeclaration { private readonly Dictionary<string, string> _parameters; priva...
10b99b31a9c6484324b3968e711bdfe8c22907b5
C#
garinich/Lesson23
/ConsoleApp/ConsoleApp/Program.cs
3.21875
3
using System; using System.Threading.Tasks; namespace ConsoleApp { public class Program { public static async Task Main(string[] args) { await PrintAsync(); PrintSync(); Console.WriteLine("Check Async!"); } public static async Task PrintAs...
9f4495b2b1b55c7f0e371d747f2c169324110020
C#
Liggettech/DragonDiceRoller
/DragonDiceRoller/Classes/Spell.cs
2.84375
3
using System.Collections.Generic; namespace DragonDiceRoller { class Spell { public string Name { get; set; } public string School { get; set; } public string Type { get; set; } public int Cost { get; set; } public string CastTime { get; set; } public int Target...
4fe6d2fa460ec237a06d6b66fd86721bef8595ae
C#
Ewelaajn/PeriodMerger
/PeriodMerger/Program.cs
3.5625
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace Periods { class Program { static void Main() { var periods = new List<Period> { new Period (1, 3), new Period (3, 5), n...
a4b1a1e77aa5042a7c91b2cd6c5840da321bd9bf
C#
shendongnian/download4
/code7/1261395-33737154-104229734-2.cs
2.546875
3
var listsToAdd = new List<List<string>>(); foreach (List<string> q in questions) { if (!groupOfQuestions.Except(q).Any()) { questions.Add(groupOfQuestions); } } questions.AddRange(listsToAdd);
a0dcbf4ef3b1ab4f0f7dc25ba0f3028fb1e36325
C#
VincentPlasse/Weathering
/Weathering/Model/VM_Weather.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml; namespace Weathering.Model { class VM_Weather { /// <summary> /// private raw model /// </summary> private Weather model; /// <sum...
de9736fd65dd6da99174f8c725deef85e3f80b59
C#
DeHeeeb/M151
/m151_api-master/m151_api/Controllers/EmployeesController.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using m151_api.Classes; using m151_api.Entities; using m151_api.Models; namespace m151_api.Controllers { public class EmployeesController : ApiController { private static ...
36879d3c79b268d02b4a8385982fbaa8a8435e10
C#
stronkz/NET.S.2017.Yarosh.01
/ConsoleUI/Program.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleUI { class Program { static void Main(string[] args) { int[] array1 = new int[17] { 54, 23, 1, 3, 4, -34, 5, 15, 2, 61, 23, -1, 53, 34, 42, 0, -6 }; ...
eaa8e929b6209ee055f3726142b47a2dc627e90d
C#
aproctor/ggj2018
/Assets/ShootGame/Enemies/EnemyGod.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyGod : MonoBehaviour { [Header("Gods")] public BulletGod bulletGod; public ScoreGod scoreGod; [Header("Enemy Types")] public Enemy roundboyPrefab; public Enemy catboyPrefab; private int wave = 0; private float ...
3538e49cbd5008c46da29ab084498dcf6cd24473
C#
nagyist/remobjects-internetpack
/Source/SimpleServer.cs
2.609375
3
/*--------------------------------------------------------------------------- RemObjects Internet Pack for .NET (c)opyright RemObjects Software, LLC. 2003-2016. All rights reserved. ---------------------------------------------------------------------------*/ namespace RemObjects.InternetPack { public class Simp...
5dd04e278dfdbb43b6b001b791d9133eb27632b3
C#
diegoleonardo/CarrierRatingSample
/CarrierRatingSystemSolution/CarrierRating.Validation/Validators/UserValidator/UserValidator.cs
2.625
3
using System; using CarrierRating.Domain.Entities; using CarrierRating.Data.Repository.Interfaces; using CarrierRating.Data.ServiceLocator; using System.Collections.Generic; namespace CarrierRating.Validation.UserValidation { public class UserValidator : IUserValidator { private readonly IUs...
6763d4f13311222c16fcb86a62c54476e12e7fa9
C#
Mihani1/Projects
/Service/Models/Sherbim.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Data.Sql; using System.Data.SqlClient; using System.Web.Configuration; namespace servisi.Models { public class Sherbim { public string emer { get; set; } ...
d61ddfc8f95328530674786d5b77872d609312e9
C#
VoodinaCO/kprocess
/Sources/KL2-Core/KProcess.Ksmed.Presentation.Core/Behaviors/CloseChildWindowOnShutdownBehavior.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Interactivity; using KProcess.Ksmed.Presentation.Core.Controls; using KProcess.Presentation.Windows; namespace KProcess.Ksmed.Presentation.Core.Behaviors { /// <summary> /// Associe...
24fa933161992c9fdc728db276010b1f8aa520ae
C#
fernandolucasgsouza/CSharp-POO
/Developer.POO/Developer.Parametros.Dinamicos/Program.cs
2.609375
3
using System; namespace Developer.Parametros.Dinamicos { class Program { static void Main(string[] args) { double soma = Calculator.Sum(1,2,3.25,4); Console.WriteLine($"Soma = {soma}"); } } }
d928817926513b1bd33a0edbf76d69ed6cce1af3
C#
scottoffen/pizza-size
/Program.cs
2.984375
3
using System; using System.Linq; namespace SampleProject { public class Program { static void Main(string[] args) { foreach (var ps in Enum.GetValues(typeof(PizzaSize)).Cast<PizzaSize>()) { Console.WriteLine($"{ps.ToString()} : Radius {ps.GetRadius()}, T...
a842c7215d9e44f273af14c8d1fafb604661a425
C#
svedm/monodevelop-hg-addin
/MonoDevelop.VersionControl.Mercurial/TestConsoleApp/Program.cs
2.625
3
using System; using System.IO; using System.Runtime.InteropServices; using Hg.Net; namespace TestConsoleApp { class MainClass { public static void Main(string[] args) { var currentPath = Directory.GetCurrentDirectory(); var testRepoPath = Path.Combine(currentPath, "testRepo"); if (Directory.Exists(test...
6e9128bd5900faa72517229666399bf48a70fff9
C#
yielding/code
/0.algorithm/euler/010.prime.cs
3.5
4
using System; using System.Collections.Generic; using System.Collections; namespace euler1 { class Problem10 { const int numm = 2000000; public static void Main(string[] args) { new Problem10().TrialDivision(); new Problem10().SieveOfEratosthenes(); new Problem10().SieveOfAtkin(); } ...
e7b25d2e117b46fac2282eebdd3940b9ccec0a6b
C#
ThePriestt/Chapter3
/16Task/Program.cs
3.390625
3
using System; // Напишете програма, която разменя битовете на позиции {p, p+1, …, p+k-1) с битовете на позиции {q, q+1, …, q+k-1} на дадено цяло положително число. class Program { static void Main() { uint n = 88; uint mask; uint resoult; int v1; int v2; int k ...
ea45f08718cc2138ffeb0078f8c665bc84bdce9f
C#
FTWinston/ForTheWin
/Engine/Engine.Client/NetworkInfo.cs
2.640625
3
#if NET_INFO using System; using System.Collections.Generic; using System.Linq; using System.Text; using FTW.Engine.Shared; namespace FTW.Engine.Client { public class NetworkInfo { public bool Enabled = false; public void Add(InboundMessage m) { Add(m, false); } ...
64b529f226e5c0b2414a6a5ae070e12009fefe0e
C#
wincenty24/MSCPLAYER
/Sort_ENUM.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MSCPLAYER { class Sort_TYPE { public enum Sort { BY_TITLE, BY_AUTHOR, MIX_FROM_PATH, BY_ALPHABET_FROM_PATH, ...
b15ed51d78cead9035d18b739cb7aad3bbb545bb
C#
farzadmb/LeadManagement
/LeadManagement.Domain/Suburb.cs
2.921875
3
namespace LeadManagement.Domain { /// <summary> /// The Suburb /// </summary> public class Suburb { #region Properties /// <summary> /// Gets the Id of the suburb /// </summary> public uint Id { get; private set; } /// <summary> /// Gets the...
4e6cfacf4fe6c4537e15495ab17ef0e1492abdef
C#
KalinaMitova/csharp-oop-basic
/Inheritance/03_Mordor’sCrueltyPlan/FoodFactory.cs
3.078125
3
using System; namespace _03_Mordor_sCrueltyPlan { public class FoodFactory { private string name; public const int HappinessPoints = -1; public string Name { get { return this.name; } protected set { ...
350aea0867f7c15bac8b7720b5e6ae780e1f4d8d
C#
ch3rag/BCA-Repository
/C#/MyAssistant/MyAssistant/frmMain.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.Threading.Tasks; using System.Windows.Forms; using System.Speech.Recognition; using System.Speech.Synthesis; namespace MyAssistant { public partia...
1c93aa256b15e54a336f0d02970a01ad4401c389
C#
joshmaletz/ucd-csci-5640
/Compiler/MicroParser.Domain/ShapedWriter.cs
3.171875
3
// <copyright file="ShapedWriter.cs" company="Maletz, Josh" dateCreated="2015-08-28"> // Copyright 2015 Maletz, Josh- For eductional purposes. Created while student of UCD CSCI 5640 - Universal Compiler. // </copyright> namespace MicroParser.Domain { using System.Text; /// <summary> /// The ShapedWr...
1e76512eea4ec334eaea2ff4841d1221cde6a5e3
C#
innersilence/sleepwalker
/src/monitor/Sleepwalker.HRVA.QRSParser/HRVAnalyzer.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; namespace Sleepwalker.HRVA.Realtime { public enum SleepState { NonREM, REM } public delegate void HeartRateEventHandler(object sender, double rate); public delegate void SleepStateEventHandler(object sender, Sleep...
acaa036f15b0cbd2b00386c7b1791e217d9e7aec
C#
maziart/asphtml5
/DotM.Html5/Html5/SVG/SvgStyle.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.UI; namespace DotM.Html5.SVG { public class SvgStyle { private const string AttribPrefix = "$st"; private StateBag Bag; public SvgStyle(StateBag bag) { ...
bb6b10dc5bbf3f09b25b803b5b371dc274aa72a2
C#
vag1830/SimpleEntity
/Infrastructure/Persistense/SqlLiteSimpleEntityRepository.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Application.Boundaries.Persistence; using Domain.Entities; using Microsoft.EntityFrameworkCore; namespace Infrastructure.Persistense { public class SqlLiteSimpleEntityRepository : ISimpleEntityReposito...
6b764835a4de6aaea2c075948881cf557fb25526
C#
koala-v/Affect
/Common/Configuration/Utils.cs
2.765625
3
using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.IO; using System.Net; using System.Configuration; using System.Web; using System.Security.Cryptography; namespace Common { /// <summary> /// /// </summary> public class Utils { ...
2e085340f8d5939067446026d2a030a60603c9c6
C#
AdriBlt-zz/CellsSharp
/CellsCore/Fractals/FractalEngine.cs
2.640625
3
using System; using System.Collections.Generic; using System.Drawing; using CellsCore.Maths; namespace CellsCore.Fractals { struct Rectangle { public int MinI; public int MaxI; public int MinJ; public int MaxJ; public Rectangle(int minI, int maxI, int minJ, int maxJ) ...
7b7431d806be3ec38b75cb3cd33d8a114f6ff192
C#
tddold/TelerikAcademy-4
/C# part 2/StringsAndTextProcessing/07.EncodeDecode/Coder.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _07.EncodeDecode { public class Coder { private const string KEY = "pass"; public string Encode(string text) { string encryptText = String.Empty; ...