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
a29a410123c27947c3e681036df366496ac1d86f
C#
princeroshan/C-sharp-Programs
/VariableInitializationType/VariableInitializationType/Program.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VariableInitializationType { class Program { int y; var abcd=103; static void Main() { //compile time Initialization ...
a5fabe277ae94ce04b2a8ae570b69b19fc365ab0
C#
Bovtun/Laba5
/WindowsFormsApplication1/Address.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindowsFormsApplication1 { public class Address { public int Sell1; public int Sell2; public int Sell3; public int Sell4; public Address (int Se...
e272aad0f05686191a9019758a6fd39c3677d38c
C#
chantysothy/Compas
/CompasServices/Contractors/ContractorTypesLogic.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Compas.Model; namespace Compas.Logic.Contractors { /// <summary> /// Упавління довідником типів контрагентів /// </summary> public class ContractorTypesLogic : IGenericInterface<ContractorType> { ...
42bfac4d6f3048d3e8f1e0a50186ea94cccd6bdc
C#
PavloVoitenko/timeTracker
/TimeTracker/TimeTracker.Dto/TrackingDto.cs
2.765625
3
using System; using TimeTracker.Model.Entities; namespace TimeTracker.DTOs { public class TrackingDto { public int? TrackingId { get; set; } public string ProjectName { get; set; } public string TaskName { get; set; } public string TaskDescription { get; set; } public T...
fae48a714abdfa2c1a2f6e556da5e5b29248abc2
C#
kwaclaw/EtwStream
/EtwStream/SubscriptionContainer.cs
2.640625
3
using System; using System.Reactive.Disposables; namespace EtwStream { public interface ISubscriptionContainer { void Add(IDisposable subscription); } public class SubscriptionContainer : ISubscriptionContainer { readonly CompositeDisposable subscriptions = new CompositeDisposable...
4434cb0d3fa3607ed73b05e0ac2420365c23b7b9
C#
asz3740/CDB
/MembAs.cs
2.5625
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; namespace WINTEST { public partial class MembAs : Form { private string id; priv...
558ac271459e011c2ddce379a01e15c49c9c6752
C#
karunyam90/Code_Practice
/Graphs_UniqueRegions_InBooleanMatrix/Program.cs
3.328125
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; //Eugune session problem. Check book for diagrams // Matrix (eg., 4X4) of bools where True represent / and False represent \. Then ...
0b9c4cc38d8a5796501e2cca86a2232f80fd8d96
C#
charygao/Net4.5ConsoleAppTest
/Net4.5ConsoleAppTest/codes/No000004SortedList.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; namespace Chinese中文排序Sort { internal class Program { private static void Main(string[] args) { var tmpDic = new SortedList<string, string>(); tmpDic.Add("a", "a"); tmpDic.Add("1", "1"); ...
421718603349320ebe0c0c66b1ec645a86ad9856
C#
shauryamalik/ImplementML
/ImplementML/KernelLogisticProgram.cs
3.109375
3
using System; namespace ImplementML { class KernelLogisticProgram { static Random rnd = new Random(0); public static void MainFunc() { Console.WriteLine("\nBegin kernel logistic regression demo \n"); int numFeatures = 2; Console.WriteLine("Goal is bi...
60f797c80e6b070a5efe6fcb1ad26049a43d31a1
C#
ojpbay/CodeWars
/SpacesRemover.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CodeWars { public static class SpacesRemover { public static string NoSpace(string input) { return new string(input.ToCharArray().Where(c => c.ToString() != " ").ToArray()); } ...
e0c2fea1ca15fa82367e1451ad8f250d447d0294
C#
kimyoungsun3/_Lesson_ScriptTest6
/Assets/100/130 Fun(Array)/ArrayFloat.cs
3.046875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace ArrayTest { public class ArrayFloat : MonoBehaviour { public float[] array = new float[2]; void Start() { Display<float>("Start1", array); Fun1(array); Display<float>("Start2", array); } void Fun1(float[] _a...
664c3a9a3452e974576c72e978cb5874a87aeb74
C#
B-166ER/3DPinBallDemo
/3DPingPong/Assets/BallBehaviour.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BallBehaviour : MonoBehaviour { Rigidbody selfRigidBody; [SerializeField] float anyDirectionLimit; [SerializeField] float breakAmount; [SerializeField] float zVelocity; [SerializeField] float yMaxVelocity; ...
7852825dbc7be208b3c5e18cd4b8f83fea8e303a
C#
pranayapragyan/RoyalCottage
/src/Platform/Nandalala.Paas.Core/Broker.cs
2.5625
3
using SimpleInjector; using Nandalala.Paas.Core.Command; using Nandalala.Paas.Core.Eventing; using Nandalala.Paas.Core.Query; using System; namespace Nandalala.Paas.Core { public class Broker : IBroker { private readonly Container _container; public Broker(Container container) ...
34954c78c00b4b6e10a91ab60402eef733d4e4df
C#
VERNADOM/newmail_OutlookCOM
/newmail_OutlookCOM/IMAP.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Net; using System.Net.Sockets; using System.Net.Security; using System.IO; namespace newmail_OutlookCOM { class Imap { protected TcpClient _tcpClient; prote...
96884dc3f3e85d7cdb047b313665c48fa5c66d68
C#
harpagornis/coding.abel.nu
/TestLib/Tuples/GoodTupleSamples.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestLib.Tuples { public class GoodTupleSamples { public struct TirePressureInfo { readonly double front, back; public TirePressureInfo(double f...
d301cad792210b35f65a272cfda3f5b7364193d1
C#
TeamDve/LearnIt
/LearnIt/LearnIt.Tests/Services/DataServices/CourseServiceTests/GetCourseById_Should.cs
2.5625
3
using LearnIt.Data.Context; using LearnIt.Data.Models; using LearnIt.Data.Services; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; namespace LearnIt.Tests.Services.DataServices.CourseServiceTests { [TestCl...
112ea1e74955e1268710c7eef26072b3704f699c
C#
liangshulsh/src
/Ai/Control/MenuItem.cs
2.703125
3
// Ai Software Control Library. using System; using System.Drawing; using System.ComponentModel; using System.Windows.Forms; namespace Ai.Control { /// <summary> /// Provide a base class for all menu item used in TabbedMenu control. /// </summary> public abstract class MenuItem { /// <summary> /// Def...
33ba66fc4380ebb6e23e7d3a70950a8000292707
C#
Vory7/sibsutis
/4 семестр/VirtualProgramming/Лабораторные работы/laboratoryWork_5/laboratoryWork_5/FormMain.cs
2.765625
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; namespace laboratoryWork_5 { public partial class FormMain : Form { private Rectangle re...
c0fcac93bb69c4afcfa2698b0383ef96229bc770
C#
pete0877/MindHub
/MindHub/Engine/Environment.cs
2.859375
3
using System; namespace Engine { /// <summary> /// Responsible for ecapsulating application-environment parameters such as DB connection specs, UI paths, etc. /// </summary> [Serializable] public class Environment { /// <summary> /// Environment ID /// </summary> public string ID; /// ...
ed12da15be3e3ea876b6e5bd025cfa2f15fbeec6
C#
kierannichol/Time.NET
/Time.Tests/IntervalTest.cs
2.78125
3
using NUnit.Framework; namespace Time.Tests { [TestFixture] public class IntervalTest { [Test] public void IsEmptyTests() { var emptyInterval = Interval<int>.Open(1,1); var smallOpenInterval = Interval<int>.Open(1,2); var singleValueInterval = In...
b51790af8485befc7f45ee8d3607105af1af730d
C#
sreenandini/test_buildscripts
/Common/BMC.CoreLib/Tasks/IRunnableObject.cs
2.59375
3
/* ================================================================================= * Purpose : Runnable Object Interface * File Name : IRunnableObject.cs * Author : A.Vinod Kumar * Created : 20/12/2010 * ================================================================================= * Revision Histor...
98bf590a86261186e58e001e42b0ddfce25cf649
C#
TopShares/CSharp-Study
/高级进阶-02期/第04次课:OOP三大特性封装继承接口多态等案例分析/授课笔记和源码(现场)/DPTeachDem/Law-of-Demeter/Program.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Law_of_Demeter { class Program { static void Main(string[] args) { //IPrinter printer = new HPPrinter(); IPrinter printer = SimpleFactory.Creat...
3e0bf2ce14c86e03c08ebbd128d8305ecc1edc2d
C#
944095635/NavigatorToolkit
/NavigatorToolkit/Navigator.cs
3.140625
3
using System; using System.Collections.Generic; namespace NavigatorToolkit { public class Navigator { /// <summary> /// 页面集合 /// </summary> private static readonly Dictionary<object, object> views = new Dictionary<object, object>(); /// <summary> /// 注册事件 ...
bdb9797ddd85860256c31be2acee18d640733207
C#
AliumFX/Framework
/src/Alium.Core.Abstractions/Tenancy/TenantId.cs
3.046875
3
// Copyright (c) Alium FX. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Alium.Tenancy { using System; using System.Diagnostics; /// <summary> /// Represents a tenant id. /// </summary> [DebuggerD...
02026b62503a2110aa0626b8ce69332aa999e04e
C#
shendongnian/download4
/first_version_download2/411029-35929420-112934500-2.cs
3.71875
4
static void Main(String[] args) { foreach (var column in GetColumns().Take(52)) { Console.WriteLine(column); } Console.ReadLine(); } public static IEnumerable<string> GetColumns() { const string Alphabet = " ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for...
92aa910a882252dc633c20378d144c9d5ee90c81
C#
n1k0s79/ConfigurableAngularComponent
/Controllers/GenericEntityController.cs
2.703125
3
using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using QualcoApp.Models; using System; using System.Collections.Generic; using System.Linq; namespace QualcoApp.Controllers { [ApiController] [Route("[controller]")] public class GenericEntityController : ControllerBase { priv...
dac42f9934e118c2d5f144a446af75ec5c1c7f38
C#
JMILI/DatabaseDesign
/TheProgramSRC/DatabaseDesignOFBank/TestBank/SqlBank/ViewContext.cs
2.84375
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Text; namespace TestBank.SqlBank { class ViewContext:bankContext { /// <summary> /// 定义一个DbSet<Information>的集合属性Information,EF Core会自动为其赋值,然后可以利用ViewContextt.Information属性来读取数据库中Information视图的数据 ...
c817baab5b5dec4ad685328edb7a270baa766256
C#
EppuHeilimo/ASPRealTimeTest
/MoveShape/MoveShape.cs
2.609375
3
using System; using System.Threading; using Microsoft.AspNet.SignalR; using Newtonsoft.Json; using System.Collections.Generic; namespace Hatsoff { public class Broadcaster { private readonly static Lazy<Broadcaster> _instance = new Lazy<Broadcaster>(() => new Broadcaster()); // We'...
5f331e8ddae351711fbbf0fd4b3d171bce812c8b
C#
lordofduct/spacepuppy-unity-framework
/SpacepuppyBase/Utils/LayerUtil.cs
2.578125
3
using UnityEngine; using System.Collections.Generic; namespace com.spacepuppy.Utils { public static class LayerUtil { private static List<int> layerNumbers; private static List<string> layerNames; private static long lastUpdateTick; private static void TestUpdateL...
863b72e580009dfcd68afddd86e7b4ea79669e33
C#
camotts/383-Api
/GameingStoreAPI/Controllers/TagsController.cs
2.59375
3
using GamingStoreAPI.Models; using GamingStoreAPI.Models.DTOS; using GamingStoreAPI.Services; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace GamingStoreAPI.Controllers { [Authorize(Roles = "Employee, StoreAdmin")] pu...
91e9955e6cda45f20c7658942a09a8fc86afb523
C#
JC-85/DesignPatterns
/DesignPatterns/SoftwareDesignPattern/Behavioral/TemplateMethod/TemplateMethodPatternSample.cs
3.046875
3
using System; namespace DesignPatterns.SoftwareDesignPattern.Behavioral.TemplateMethod { // Defines the skeleton of an Algorithm in a operation deferring some steps to subclases. // Template method lets subclasses redefine certain steps of the algorithm // without changing the algorithm structure. public clas...
3e192e5a1eb7f34cd789df882ac34c6594463486
C#
karthik25/taskable
/src/Taskable/Taskable.ScriptCs.Contracts/Parameters/ActionParameterFluentExtensions.cs
2.96875
3
using System; using System.Linq; using TaskableScriptCs.Contracts; namespace TaskableScriptCs.Contracts.Parameters { public static class ActionParameterFluentExtensions { public static TConcrete Bind<TConcrete>(this string[] args) where TConcrete : class { return (TConc...
aa195ae1cd30f222537b0c6e702eb7084aaf11dc
C#
Sseriously/Sharpcoderepo
/Stackoverflow/ActivateCube.cs
2.96875
3
using UnityEngine; public class ActivateCube : MonoBehaviour { //Create an array to hold any number of cubes you want public GameObject[] cubeArray = new GameObject[10]; //initialize the array for e.g. 10 cubes //Holds the index of the cubeArray, which corresponds to the next cube to be activated ...
e08ade20edf2f1fd5839748cfe312e4ce97639d1
C#
awesomedotnetcore/mbrace.stockticker
/mbrace.stockticker/StockDataConverter.cs
2.921875
3
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace mbrace.stockticker { public class StockDataConverter { public async Task<string> Run(string symbol) ...
58a22de111a6c804128e779ab33523c5dc5935fb
C#
Smytt/SoftUni-Homeworks
/05 2017 - Progframming Fundamentals/06 02 - Data Types and Variables - More Exercises/12. Beer Kegs/Program.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _12.Beer_Kegs { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); double biggestVolume = 0; s...
f4c9eb8af301889014a3444ebba9d745cd72494a
C#
alexger97/Finvitamin-Manager
/FinVitamin Manager/Service/CourerTaskManager.cs
2.5625
3
using FinVitamin_Manager.Models; using FinVitamin_Manager.Models.Context; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FinVitamin_Manager.Service { public class CourerTaskManager { public static ProductContext ProductConte...
d3c44076dcdb912133d6d33a3323939f8c3c8b0d
C#
cbjmars/Study
/Core30.WebApi.Sample/Controllers/TbTestApisController.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Core30.WebApi.Sample.Models; using Core30.WebApi.Sample.Services; namespace Core30.WebApi.Sample.Controllers { [ApiController] //[ApiContr...
6844e09bee8ffbf91bce2a58542288bb7020170a
C#
stevenmatetch/PIzzaApplikation
/Resto/ViewModels/PizzaViewModel.cs
2.59375
3
using Newtonsoft.Json; using Resto.Models; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; using System.Web.Http; namespace Resto.ViewModels...
da1278e7fd4fd51399e6fe12460bfc60c6b1eb09
C#
ScreeM92/Software-University
/Level #2/High Quality Code/High-Quality Code Exam Preparation/TravelAgency/TicketCatalog.cs
2.6875
3
namespace TravelAgency { using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using TravelAgency.Tickets; using TravelAgency.Utilities; using Wintellect.PowerCollections; public class TicketCatalog : I...
56edd5d350c82e78d73744d593cbad8fdce035ab
C#
amjad-Alhusseini/ToDoSampleWithAuth
/PerToDo/Pages/MainPage.xaml.cs
2.53125
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using Xamarin.Forms; namespace PerToDo { public partial class MainPage : ContentPage { //List<ToDoItem> todoList; ToDoRepository todoRepo = new ToDoRepository(new ToDoService()); public MainPage() { InitializeComponent(); ...
8468a0f2ddbf9d8c19645fb32bbec09a17dbc865
C#
CasperGuo/ExcelDataReader
/src/ExcelDataReader/Core/BinaryFormat/XlsBiffSST.cs
3.1875
3
using System; using System.Collections.Generic; using System.Text; namespace ExcelDataReader.Core.BinaryFormat { /// <summary> /// Represents a Shared String Table in BIFF8 format /// </summary> internal class XlsBiffSST : XlsBiffRecord { private readonly List<IXlsString> _string...
f717990c3a0ddada03c0d19747882061d25dc38f
C#
hackf5/xamlr
/src/Xamlr.Core.Test/StringDiff.cs
2.65625
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="StringDiff.cs" company="Xamlr"> // The MIT License (MIT) // // Copyright (c) 2019 Brian Tyler // // Permission is hereby granted, free of charge, to any person obtain...
9db6ff2474f1ce035db1882dac9e7d081790ecc3
C#
Rezasanjari1996/Store
/myweb/Models/kala.cs
2.515625
3
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace myweb.Models.DomainModel { [MetadataType(typeof(UserDto))] public partial class user { [Display(Name = "تکرار پسورد")] [Required(ErrorMessage = "لطفا تکرار پسورد راوارد کن...
72163310f2b1d5651e0f1205250af6bcd924fa46
C#
SokratisV/Virtual-Keyboard-2018.4
/Assets/Virtual Keyboard/Scripts/Misc/ReceiveInput.cs
2.875
3
using System.Collections.Generic; using TMPro; using UnityEngine; namespace VirtualKeyboard { public class ReceiveInput : MonoBehaviour { TextMeshProUGUI textComponent; Dictionary<string, string> greekToEnglishDict = new Dictionary<string, string>() { {"διαγραφή", "backspace"}, ...
cf9a82f8834fdfb3876daff8e6245412f5e65b9b
C#
sono8stream/AtPractice
/AtTest/400Problems(remain)/Tenka2016B_B.cs
3.203125
3
using System; using System.Collections.Generic; using System.Text; namespace AtTest._400Problems_remain_ { class Tenka2016B_B { static void ain(string[] args) { Method(args); Console.ReadLine(); } static void Method(string[] args) { ...
0e9595de1760d45429fecbe24f9f320a0f5fd2b3
C#
loai007/last_group_26
/WindowsFormsApp1Tests/Form1Tests.cs
2.625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using WindowsFormsApp1; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace WindowsFormsApp1.Tests { [TestClass()] public class Form1Tests { [TestMethod()] ...
c41151d7ecd9ef24db64c2edce6d826830ece61f
C#
Team-5-Jellyfish-Store/Jellyfish-Store
/OnlineStore/OnlineStore.Providers/Providers/PDFExporter.cs
2.8125
3
using iTextSharp.text; using iTextSharp.text.pdf; using OnlineStore.DTO.OrderModels.Constracts; using OnlineStore.DTO.ProductModels.Contracts; using OnlineStore.Providers.Contracts; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace OnlineStore.Providers.Providers { publ...
b57b0e7832e53a1217146efe3f282bc34d5bbd3f
C#
mohi-othman/ray-tracer-c-sharp-teaching
/RayTraceLearning/Units/Vector3D.cs
3.515625
4
//Struct to represent a three dimensional vector value using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SystemDown.RayTracer { public struct Vector3D { //Properties public double x { get; set; } public double y { get; set; } ...
7f980d09d7f7c894022e7ad4a7cb97aea7a636e3
C#
MCR2601/ConsoleRenderingFramework
/CRFVideoTools/Extensions.cs
2.953125
3
using FFMediaToolkit.Graphics; using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace CRFVideoTools { public static class Extensions { // Ima...
8e11546b775955baeedb79af75575b02bea7121d
C#
xAmaris/questionnaire
/questionnaire.Infrastructure/Repositories/QuestionRepository.cs
2.578125
3
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using questionnaire.Core.Domains.Surveys; using questionnaire.Infrastructure.Data; using questionnaire.Infrastructure.Repositories.Interfaces; using Microsoft.EntityFrameworkCore; namespace questionnaire.Infrastructure.Repositories { ...
2b222adf8560ab5a2cfd0a02d3255a30c47495b5
C#
dhutchinson5/TestConsole
/TestConsole/Program.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestConsole { class Program { static void Main(string[] args) { // Generate Random Number var number = new Random((int)DateTime.Now.Ticks).Next(...
5191b33245a0cd9806a012ac21b0cfbb3148e29a
C#
182648820/Three_Framework
/applyFrame/Form1.cs
2.765625
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 MyBll; using MyModel; namespace applyFrame { public partial class Form1 : Form { pu...
3d59036a5236fe64e77e718634c92e815c76d100
C#
Yurii-Yanovitsky/c--essential-homework
/Lesson1/Task3/Program.cs
3.125
3
using System; namespace Task3 { public class Program { static void Main(string[] args) { Console.WriteLine("Creat a book"); Console.WriteLine("Input: title, author, content"); string title = Console.ReadLine(); string author = Console.ReadLine();...
8cb93a0380ae3951d9e327c6bc23f7851b70332b
C#
rkelkka/receiptparser
/src/ReceiptParser/ReceiptParser.Interface/IReceiptParser.cs
2.515625
3
using ReceiptParser.ReceiptParser.Interface.Input; namespace ReceiptParser.ReceiptParser.Interface { interface IReceiptParser { /// <summary> /// Attempt to parse a receipt. /// </summary> /// <param name="receipt"></param> /// <returns>T</returns> //...
4062ebb0fa0d9a0ecfd858dbcaf98bcce0f3e2a0
C#
Dorrro/CSharp_Advanced_Historical_Repo
/CSharp.Advanced.Sii.Trainings.Tests/Reflection/Refl1.cs
3.234375
3
namespace CSharp.Advanced.Sii.Trainings.Tests.Reflection { using System; public class Refl1 { public string Output() { return "Test-Output"; } public int AddInts(int i1, int i2) { return i1 + i2; } static void Main(string[] ...
48aa48b8161d21a92b1e105c16f3ea1d425db286
C#
will14smith/Crypto
/Crypto/Encryption/AEADCipherAdapter.cs
2.78125
3
using Crypto.Encryption.AEAD; using Crypto.Encryption.Parameters; namespace Crypto.Encryption { public class AEADCipherAdapter : ICipher { public IAEADBlockCipher Cipher { get; } public AEADCipherAdapter(IAEADBlockCipher cipher) { this.Cipher = cipher; } p...
5254eef858909149e04a1592b9b43fb89a20dbb8
C#
ahaase/CS1
/Assignment5 C#1/Assignment5/ContactFiles/Contact.cs
3.546875
4
using System; using System.Collections.Generic; using System.Text; /// <summary> /// Haase /// </summary> namespace Assignment5 { /// <summary> /// Klass som beskriver ett Contact objekt. /// </summary> public class Contact { private Phone phone; private Email email; privat...
d1bcb6a0cc122dd192812f65d2d96ebe5f088120
C#
nasa03/tesserae
/Tesserae/src/Helpers/ComponentCacheBase.cs
3.0625
3
using System.Collections.Generic; using System.Linq; namespace Tesserae { public abstract class ComponentCacheBase<TComponent> where TComponent : class { protected readonly List<(int Key, TComponent Component)> _componentsAndKeys; protected ComponentCacheBase() { _component...
c1f4ea2307f429a441a1e718232cedde848580cd
C#
sid22seth/HotelReservation
/HotelReservationTest/UnitTest1.cs
2.578125
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using HotelReservation; namespace HotelReservationTest { [TestClass] public class UnitTest1 { [TestMethod] public void GivenRegularCustomerTypeAndValidDates_ShouldReturn_CheapestHotelWithHighestRating() { CustomerService...
f9f1b052bcdc3bb4568e13252982cce726e9f3fe
C#
rebus-org/Rebus
/Rebus/Persistence/InMem/InMemorySagaStorage.cs
2.78125
3
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; using Rebus.Exceptions; using Rebus.Reflection; using Rebus.Sagas; #pragma warning disable 1998 namespace Rebus.Persistence.InMem; /// <summary> /// Implementat...
d6ebfdde25806526ba38f025d13bba80c0211e54
C#
Skeen/ATC
/ATC_Tests/DirectionTest.cs
3.28125
3
using ATC; namespace ATC_Tests { using NUnit.Framework; [TestFixture] class DirectionTest { [Test] public void constructionTest() { Direction direction = new Direction(Direction.DirectionType.NORTH); Assert.AreEqual(Direction.DirectionType....
d2df4d18f7e95ca73133b1bc926b149be26e1501
C#
PBotusan/Prototype-2d-rpg
/topdown rpg/Assets/Script/Rooms/DungeonEnemyRoom.cs
2.8125
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class DungeonEnemyRoom : Room { [SerializeField] Door[] doors; [SerializeField] GameObject door; int count; /// <summary> /// Check if the enemies are still alive. /// </summary> public vo...
d3df536bb83edad78223e01e4815153e157ba5b8
C#
LiuyangRY/BlogCore
/Blog.Core.Repository/Base/IBaseRepository.cs
2.703125
3
using System; using System.Data; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; using SqlSugar; using Blog.Core.Model.Models; namespace Blog.Core.Repository.Base { public interface IBaseRepository<TEntity> where TEntity : class { /// <summary> ///...
e37e7080e2ae2e6e7c6ab4d32b0301be5de4d758
C#
nagyist/WinDesktop-FlashAir-SnowyImageCopy
/Source/SnowyImageCopy.Lexicon/ResourceService.cs
2.734375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using SnowyImageCopy.Lexicon.Properties; namespace SnowyImageCopy.Lexicon { /// <summary> /// Switches ...
63b586eb88bdb9e08f0921c79c2d8ec876043fb0
C#
Optis-World/ATF
/Framework/Atf.Gui.WinForms/Controls/Adaptable/Graphs/KeyboardIOGraphNavigator.cs
2.5625
3
//Copyright © 2014 Sony Computer Entertainment America LLC. See License.txt. using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; using System.Linq; using Sce.Atf.Applications; namespace Sce.Atf.Controls.Adaptable.Graphs { /// <summary> /// Allows for navigating ...
7373656f48b93a0f4ae24c0ce655579bb5ace56d
C#
MartinLenaerts/school-ISF-project
/Models/Client.cs
2.75
3
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; namespace Bank.Models { [Table("Client")] public class Client { private int _tries; public Client() { ...
6211c431f9ff7e01741f419f1c53921f1d8a30dd
C#
sharpshooter1099/SimpliSafeMonitorService
/SimpliSafeMonitorService/Configurer.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimpliSafeMonitorService { //this code was written by Alex Wardlaw, the best programmer in the world. copyright 2015. public class Configurer { #region Fields pri...
885fe5a0aa9382011a603c66f5319dd5b8ecefe4
C#
SingleAccretion/Accretion.JitDumpVisualizer
/Source/Accretion.JitDumpVisualizer.Parsing/Tokens/Lexing/Lexer.DetalizationState.cs
2.5625
3
using Accretion.JitDumpVisualizer.Parsing.Auxiliaries; using System.Runtime.CompilerServices; namespace Accretion.JitDumpVisualizer.Parsing.Tokens.Lexing { internal static unsafe partial class Lexer { public static DetalizationState ParseStatementDetalizationState(char* start, out int width) {...
f93dac4c16bbed22637a6fb3ae33afcb8e109519
C#
shendongnian/download4
/code7/1335879-36048030-113410257-2.cs
3.140625
3
using System; using System.Collections.Generic; using System.Net; using System.IO; namespace SExperiment { class MainClass { public static void Main(string[] args) { try{ string webAddr="http://gurujsonrpc.appspot.com/gu...
59822482959ad45a4006a67d27f8a725687cac1a
C#
danvasem/bitacoraRP3
/Rp3.Test.Data/DAL/Repositories/TransactionRepository.cs
2.671875
3
using Rp3.Test.Data.Models; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Rp3.Test.Data.Repositories { public class TransactionRepository : Repository<Transaction> { public TransactionRepository(D...
b2e634e26441ed36ae909c54c98a09a2d3d169cc
C#
viper3400/MovieSearchEngine
/OfdbParser/XPathRequest.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using HtmlAgilityPack; using System.IO; using System.Xml; //using System.Xml.XPath; namespace OfdbParser { public class XPathRequest { XmlDocument xDoc; public List<string...
695605faf9e2eaffd96bfcda6a0201858f02af07
C#
dreipoe/hse-cs
/HelloWorld/Lab3.cs
3.546875
4
using static System.Console; using static System.Math; namespace HelloWorld { class Lab3 { // TODO: Что-то здесь не так public static void Run() { WriteLine("Циклическое вычисление:"); double a = PI / 5; double b = 9 * a; double step = ...
521c971c42ec1eb4057f51746505afd439a29bf3
C#
JerryAllMighty/ConsoleApp0916
/ConsoleApp0916/ForInheritance.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp0916 { class ForInheritance //형 변환을 담당하는 클래스 { public virtual int CheckErr(string str) { int number; bool bFlag = int.TryParse(...
67e1940394f7411c0a7be6991857e29fa21c6faa
C#
PlumpMath/DesignPatterns-257
/DesignPatterns/BridgePattern/StandardFormatter.cs
2.875
3
namespace DesignPatterns.BridgePattern { class StandardFormatter : ICustomFormatter { public string Format(string key, string value) { return $"{key} : {value}"; } } }
988d2223eb43acc3c2873e3cc0f342668a481e6a
C#
FireBall1725/Razor.Framework
/Backup/Razor/Networking/Http/HttpContentEncodings.cs
2.53125
3
using System; namespace Razor.Networking.Http { /// <summary> /// Summary description for HttpContentEncodings. /// </summary> public class HttpContentEncodings { /// <summary> /// An encoding format produced by the file compression program gzip (GNU zip) as described in RFC 1952 [25]. This format i...
d93e4ce2e2e2620f587cbb22244bebb2a69f5220
C#
nelson9/repositorypattern
/ConsoleApplication/Program.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Data; using Data.SchoolDb; using Model; using Ninject; namespace ConsoleApplication { class Program { public static void Main(string[] args) { // Add student an...
3a064cd8dc9a377258bfe03ac29dd065c7c4be9f
C#
fullphat/TheSauceStation
/0.8/app/IngredientSetter.cs
2.6875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Diagnostics; using System.Windows.Forms; using SauceStation; namespace TheSauceStation { // lookup - search field // ...
33a6ba14eee78bbd5dd5a22ecad3cfc2919df600
C#
tanneryea/cs
/Program-6.cs
3.34375
3
using System; using static System.Console; namespace CH8HW { class Program { static void Main(string[] args) { double[,] waterDepth = new double[6, 5]; //Initialized as 6/5 to have extra space for averages string[] location = {"Surf City", "Solomons", ...
9ec9563d1a9087d9a181c2e61ebfeab6e93a5fdc
C#
Whiteknight/CSPath
/CSPath/Predicates/AllAtLeastOneArityComparer.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; namespace CSPath.Predicates { public class AllAtLeastOneArityComparer : IArityComparer { public bool IsMatch(IReadOnlyList<object> values, Func<object, bool> predicate) => values.Count >= 1 && values.All(predicate); } }
201bf9329de192cb73f151ad49ab490022801b2b
C#
AJEETX/Smart.Chat.Bot
/Dialogs/MainDialog.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.Bot.Builder; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Builder.Dialogs.Adaptive.Recognizers; using Microsoft.Bot.Schema; using Microsoft.Extensions.Logging; using Micr...
3426b6a9226e6d5695436532282890b0d60d7fc2
C#
hj0807/HJ-Project
/Unity_Pattern/Assets/Scripts/Visitor_Pattern/Ex1/Wheel.cs
3.015625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace VisitorPattern.ex1 { /// <summary> /// 데이터 클래스 /// Visit에게 자신을 전달. /// </summary> public class Wheel : ICarElement { private string name; public Wheel(string name) { thi...
c7fba584e77eacba2c47d5ff5c9f5e4c3b2db40b
C#
Shawdown/MorningPagesApp
/src/DropboxManager.cs
2.65625
3
using System; using System.IO; using System.Net; using System.Net.Http; using System.Runtime.InteropServices; using System.Threading.Tasks; using Dropbox.Api; using Dropbox.Api.Files; namespace MorningPagesApp { public class DropboxManager { private static readonly string API_KEY = "9f7kpp1386tvyuf"; ...
005a36d926c9628d42fb2f0f76d92daefae54f94
C#
tezjarl/FixedThreadPool
/FixedThreadPool/FixedThreadPool.cs
3.0625
3
using System; using System.Collections.Concurrent; using System.ComponentModel; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace FixedThreadPool { public class FixedThreadPool { private bool _isStopped; private readonly int _workCount; private readonly Cancellati...
ac7ca3ced2ac5cf7d543f2993d72c0b8dbfd33f7
C#
t-ashula/bl4n
/bl4n/Data/ResultPagingOptions.cs
2.84375
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ResultPagingOptions.cs"> // bl4n - Backlog.jp API Client library // this file is part of bl4n, license under MIT license. http://t-ashula.mit-license.org/2015 // </copyright> /...
b976751fa58b6b9cfc26cf351e52a939f9d8b8a4
C#
yifrach/ImageService
/ImageServiceGui/VM/VM_MainWindow.cs
2.609375
3
using ImageServiceGui.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ImageServiceGui.VM { class VM_MainWindow { private IMainWindowModel model; /// <summary> /// C'tor. /// </summary> ...
4c10c992bcdbdbb724daa6c57a50a8b424b08513
C#
jacobwillinger/NoteService
/NoteService/Startup.cs
2.640625
3
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using MongoDB.Bson; using Newtonsoft.Json; using Newtonsoft.Json.Bson.Converters; using System; namespace NoteService { ...
fa1a3b7840f748b7f9de293f58ff7f86c9918503
C#
Feroks/DailyCodingProblem
/DailyCodingProblem/8/Problem8Linq.cs
3.28125
3
using System.Linq; namespace DailyCodingProblem._8 { public class Problem8Linq : IProblem8 { public int Run(Node node) { return RunInternal(node); } private static int RunInternal(Node node) { var (value, children) = node; var count = AllChildrenEqual(node, value) ? 1 : 0; return...
f2fc15f9a6d47d30d7397bd3c573f45b14d27b86
C#
brandon-irl/Bridge
/Tests/Batch1/BasicCSharp/TestValueTypes.cs
2.96875
3
using Bridge.Test.NUnit; namespace Bridge.ClientTest.BasicCSharp { public struct Point { // TODO Add more types public static int StatitIntNotInitialized; public static string StatitStringNotInitialized; public static int StaticInt; public static string StaticString; ...
4944ec7c70a6a052363d64a8bf6cf55d6dbeba2d
C#
TAnisha28/FairManagementSystem
/FairManagementApp/BLL/VisitorEntryManager.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FairManagementApp.DAL; using FairManagementApp.Model; namespace FairManagementApp.BLL { class VisitorEntryManager { VisitorEntryGateway aVisitorEntryGateway=new VisitorEntryGateway...
3df2837196b943329a91cbfaa5453737ee0140a9
C#
mibrahim2018/xperience-module-bynder
/src/DancingGoatCore/Models/Grinders/GrinderFilterWhereCondition.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using CMS.DataEngine; using CMS.DocumentEngine.Types.DancingGoatCore; namespace DancingGoat.Models { public class GrinderFilterWhereCondition { private readonly GrinderFilterViewModel grinderFilter; public Grin...
28e5ffb80ad155865a52c94e2219a910ef5d8544
C#
sindamnataraj/Algorithms-and-Data-Structures
/Program.cs
2.8125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace prepPhase3 { class Program { static void Main(string[] args) { #region Bit Problems ...
c9c248c10791974b41f1e2d2f93fe38b8b92677c
C#
lushijun8/teamtool
/Entity/TEAMTOOL/DATABASE_TABLE_UPDATELOG.cs
2.75
3
 using System; namespace Entity.TEAMTOOL { /// <summary> /// 本类中的(系统代码部分)由代码生成器自动生成,如果数据库表结构有所改动请及时更新 /// DataBase="TEAMTOOL" /// Table="DATABASE_TABLE_UPDATELOG" /// Columns="ID,WEBMANAGER_NAME,DATABASE_IP_ROMOTE,DATABASE_NAME,TABLE_NAME,COLUMN_NAME,DESCRIPTION,CREATETIME" /// PrimaryKeys="ID" ///...
8322927fb53876c4d02f4706ad85fc3b14a1afeb
C#
bharatmangal04/ms-idm-net
/IdmNet/IdmNet/Models/Resource.cs
2.890625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; // ReSharper disable InconsistentNaming namespace IdmNet.Models { /// <summary> /// Resource - This is the base resource type. The attributes bound to this resource type appears in all resources. ...
f0d5dc6e81449020f232a86442c01dedaaf219b7
C#
Didnelpsun/HotelManagementSystem
/HotelManagementBLL/Roomer.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Windows.Forms; namespace HotelManagementBLL { public class Roomer { private DataGridView _dgv; public Roomer(DataGridView dgr) { _dgv = dgr; } ...
d055f411d1488e6548004766aed17a9e3cd52910
C#
oakop01/CPMPlatform
/Common/EIS.Common.Pipe/NamedPipeServer.cs
2.53125
3
using System; using System.Collections.Generic; using System.IO.Pipes; using System.Reflection; using System.Reflection.Emit; using System.IO; using System.Threading; namespace EIS.Common.Pipe { public class NamedPipeServer { private NamedPipeServer.DelegateProcessMessage msgHandler; private List<NamedPipeServer...
bf7307fdafa3bc1cba9b610ab0ff6641acf23cc4
C#
mertgogersin/Blog_Website_Project
/Blog-Website-Project/Models/Repositories/ConvertToDTORepository.cs
2.515625
3
using Blog_Website_Project.Models.DTOs; using Core.Entities; using Core.Services; using System.Collections.Generic; namespace Blog_Website_Project.Models.Repositories { public class ConvertToDTORepository { IUserService userService; public ConvertToDTORepository(IUserService userService) ...
6650c14636030f108509dd33fa94a037a47b3db4
C#
HvaiY/MyCoreStudy
/Day26跨域请求/Startup.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensio...
d2b702ea01eb34aedd6508d4948bb9d3e1f3c055
C#
itsMatoosh/logitow-bridge
/src/main/resources/native/LogitowWindowsNative/Scanner.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Windows.Devices.Bluetooth; using Windows.Devices.Enumeration; using Windows.Devices.Radios; namespace LogitowWindowsNative { /// <summary> /// Used for scanning for active LOGITOW devices. /// </summary>...
edd2f79a28070ff06332ef9a4c9b0f50ecba9840
C#
JackWitek/stickies-sync
/HtmlToRtfX/Html/HtmlTokenDefinition.cs
2.828125
3
using X.HtmlToRtfConverter.Tokenizer; namespace X.HtmlToRtfConverter.Html { public class HtmlTokenDefinition : TokenDefinition<HtmlTokenMatch> { public HtmlTokenType ReturnsToken { get; } public HtmlTokenDefinition(HtmlTokenType returnsToken, string regexPattern) : base(regexPatte...
5674f498ec8b03dd46917b66c72dd4b781f100c9
C#
AngelHristov/Encapsulation_exercise
/03.ShoppingSpree/Product.cs
3.578125
4
namespace _03.ShoppingSpree { public class Product { private string name; private int cost; public string Name { get => this.name; set { Validator.ValidateName(value); // checks if name is not null or empty string; ...