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
25699219b7078c29a4d2d5390487465f4a3b3c1e
C#
Anastasoff/Coursera.org
/Princeton University - Algorithms Part I/01.UnionFind/UnionFind/QuickUnionUF.cs
3.71875
4
/// <summary> /// The QuickUnionUF class represents a union-find data structure. /// It supports the union and find operations, along with methods for determining whether two objects are in the same component and the total number of components. /// This implementation uses quick union. Initializing a data structure ...
cc3c08f6b2007e6a0f1832849f90301fc5dd4738
C#
dan-repo/lms-gateway
/src/Libraries/LmsGateway.Core/Infrastructure/AppTypeFinder.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Reflection; namespace LmsGateway.Core.Infrastructure { public class AppTypeFinder : ITypeFinder { public List<Assembly> GetAssemblies() { List<Assembly> assemblies = new L...
1df2becf8c48a46be320a46b6992ff1543268d8f
C#
ilpadre/one-time-pad
/C#/OneTimePad/OneTimePad.Lib/OTP.cs
3.203125
3
using System; using System.Linq; using System.Text; namespace OneTimePad.Lib { public class OTP { private static Random random = new Random(); public string Generate(int keyLengthInBytes) { const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; return new ...
1e474ac3cca5ecdf9422ecce8d9341566bfab8de
C#
isSmileYang/DynamicCylinderTest
/MainProj/Util/Curve.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MainProj.Utils { public class Curve { IList<double> XList { get; set; } IList<double> YList { get; set; } public double[] X { get ...
b9bd12b064ce273667f15fd2e0d0013900fb8910
C#
LapisDev/LapisScript
/src/Lapis.Script.Execution/Ast/Members/Property.cs
2.953125
3
/******************************************************************************** * Module : Lapis.Script.Execution  * Class : Property  * Description : Represents a property declarasion in the syntax tree.  * Created : 2015/7/12  * Note : ********************************************************...
1c669ed08fd692130592531275ce49ece7954ee2
C#
ds600/Text_Based_Steampunk
/Assets/Scripts/AdventureGame.cs
2.609375
3
using System.Collections; using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; public class AdventureGame : MonoBehaviour { [SerializeField] TextMeshProUGUI storyText, lifeText, shipLifeText; [SerializeField] TextMeshProUGUI hpValueText, acValueText, nameValueTe...
62c985194d9bb1dd228b50d7b58c9c2e6be800c5
C#
DanzoLion/SKINET-2.0
/Core/Entities/OrderAggregate/Order.cs
2.71875
3
using System.Collections.Generic; using System; namespace Core.Entities.OrderAggregate { public class Order : BaseEntity { public Order() { } public Order(IReadOnlyList<OrderItem> orderItems, string buyerEmail, Address shipToAddress, DeliveryMethod deliveryMethod, decimal subt...
9c5853d4cbab84dcdba816dd119b88ee4e4d04f6
C#
twsouthwick/Open-XML-SDK
/src/DocumentFormat.OpenXml.Framework/Framework/OpenXmlNamespace.cs
2.71875
3
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; namespace DocumentFormat.OpenXml.Framework; internal readonly partial struct OpenXmlNamespace : IComparable<OpenXmlNamespace>, IEquatable<OpenXmlNamesp...
c5060f6101682b99fd282d244ceda2758365991c
C#
shitanshupatil/GaussSeidel-Jacobi
/GaussSeidel-Jacobi/Program.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; namespace GaussSeidel_Jacobi { class Program { private static int roundingDecimals = 4; static void Main(string[] args) { //string values = "5.0000,-1.0000,3.00000,2.00000,-8.00000,1.00000,-2.000000,0.000000...
132ded97941a866b6a319a7591fc2eeba867a072
C#
ricklove/ToldEm
/ToldEm.Definitions/Behaviors/Inputable.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ToldEm.Core { public interface IInputable : IBehavior { GameBounds GetBounds(); bool HandlesKeyboardInput { get; } bool HandlesGlobalTouchInput { get; } ...
f534a3eb836e1dcfb9612747b536df2c8af1637b
C#
AlexanderLevenskikh/home-ebook-library
/Web/Mapper/ObjectMapper.cs
2.640625
3
using System; using System.Linq; using AutoMapper; using Core.Entities; using Web.ViewModels.Author; using Web.ViewModels.Book; using Web.ViewModels.Chapter; using Web.ViewModels.Upload; namespace Web.Mapper { // The best implementation of AutoMapper for class libraries - https://stackoverflow.com/questions/26458...
4c27809d7b675091939c5236518a6eabecd4854a
C#
MorenoGentili/UnicamScacchi
/Extensions/ScacchieraExtensions.cs
2.640625
3
using System.Collections.Generic; using System.Linq; using Scacchi.Modello; using Scacchi.Modello.Pezzi; namespace Scacchi.Extensions { public static class ScacchieraExtensions { public static IEnumerable<ICasa> ConPezzi(this IEnumerable<ICasa> listaCase) { return listaCase.Where(casa => casa.P...
42d5530ef65ad44350258271b68be3ba4c5251f7
C#
Rocket47/algorithms
/AlgorithmsDataStructures/LinkedList.cs
3.546875
4
using System; using System.Collections.Generic; namespace AlgorithmsDataStructures { public class Node { public int value; public Node next; public Node(int _value) { value = _value; } } public class LinkedList { public Node head; public Node tail; ...
54f58b9c501655671017081c7efa340833cf6d44
C#
BukatkoA/TAT-2019.1
/Dev1/Dev1/EntryPoint.cs
3.609375
4
using System; namespace Dev1 { /// <summary> /// Class EntryPoint which realized SearchMethod. /// Finds sequences in string without repetitive in a row elements. /// </summary> class EntryPoint { /// <summary> /// Entry point. /// Checks input string and calls checker'...
e84bf86acb062fa57fe8a488a4b4fb64cdcf2c9e
C#
shawnweisfeld/Imdb2CosmosDB
/ImdbLoader2/Util/BlobHelper.cs
2.640625
3
using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Blob; using Microsoft.WindowsAzure.Storage.Blob.Protocol; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ImdbLoader2.Util...
c0b9f6bb0d9e850650e1b6abc4f8385133ec8440
C#
ujalaarshad/FYP-Portal
/fyp _project/fyp project/Form3.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.Data.SqlClient; namespace fyp_project { public partial class Form3 : Form { ...
7b56c502d9e1f39b66f9a7ea9dcf09d9ce8c36a3
C#
harddevelopersfreelance/EgitimPortal
/EgitimPortalProject/EgitimPortalProject.Business/Concrete/EntityManagers/CourseCategoriesManager.cs
2.640625
3
using AutoMapper; using EgitimPortal.Business.Abstract; using EgitimPortal.DataAccess.Abstract; using EgitimPortal.Entities.Concrete; using System.Collections.Generic; namespace EgitimPortal.Business.Concrete.Managers { public class CourseCategoriesManager : ICourseCategoriesService { private ICourseCa...
e4350180f3a3da3155cf7f92ce12e1fe3de7583d
C#
BeGoCode/ProsperaProject
/Services/DataFetcher.cs
2.71875
3
using System.Net; using System.Linq; using Newtonsoft.Json; using System.Threading; using System.Collections.Generic; using WeatherAndMoviesApp.Models; using Microsoft.Extensions.Configuration; using System; using Microsoft.Extensions.Logging; using System.Threading.Tasks; namespace WeatherAndMoviesApp.Services { ...
ecd6fd39402a8c60c8c2021b075d1dae50668766
C#
Lyubo03/OOP-Algorithms
/Practise/Practise/Truck.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; namespace Practise { public class Truck { private string name; private int capacity; private List<Freight> freights = new List<Freight>(); ...
fde2fa8587d23632ea7e07c02d67fd88814afc1e
C#
tarekElHajji/UploadFiles
/UploadFiles/UploadFiles/Controllers/UploadFilesController.cs
2.640625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; using System.Web.Mvc; namespace UploadFiles.Controllers { public class UploadFilesController : Controller { [HttpGet] public ActionResult UploadFiles() { return View(); ...
0cbfd6cabea77355d3d15a0565a00ba6eb471ca6
C#
Emiilly/C-2
/Movement/Assets/Script/Bubbles.cs
3.03125
3
using Assets.Script; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; /// <summary> /// Bubbles scripter class /// </summary> public class Bubbles : MonoBehaviour { public static int health = 3; //hp of the player, 3 wrongs and they are out. public static string word = null; ...
e31cdfa10d538503b686582c367f464414174c52
C#
OliBomby/Mapping_Tools
/Mapping_Tools/Components/Graph/Markers/CompositeMarkerGenerator.cs
2.65625
3
using Mapping_Tools.Annotations; using System.Collections.Generic; using System.Windows.Controls; namespace Mapping_Tools.Components.Graph.Markers { public class CompositeMarkerGenerator : IMarkerGenerator { [NotNull] public IMarkerGenerator[] Generators { get; set; } public CompositeMark...
af27756394d3e0b36118a276869d2d0894fef9f3
C#
ImCasm/Ecommerce
/Application/Services/CategoryService.cs
2.59375
3
using Application.Core.Repositories; using Application.Core.Services; using Domain.Entities; using System.Collections.Generic; using System.Threading.Tasks; namespace Application.Services { public class CategoryService : ICategoryService { private readonly IGenericRepository<Category> _repository; ...
4a20d36fa3c6113b351b4ebc8c752efdada6c1df
C#
blizzy78/VFW
/Assets/VFW Examples/Scripts/Attributes/ComplexDrawingExample.cs
2.859375
3
using System.Collections.Generic; using UnityEngine; using Vexe.Runtime.Types; namespace VFWExamples { public class ComplexDrawingExample : BetterBehaviour { // let's say we have an array of Lookup (custom dictionary of sorts) objects // we want to apply Display on the array to give it a custo...
e9e9ceb6e8905dd2a59b3c1b137c71b29d08bdc5
C#
JohnsonYuan/Notepadder
/MyFormDemo.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Notepadder { public class MyFormDemo : Form { public MyFormDemo() { this.Text = "Hello world"; MenuStrip menu = new...
bdc5dc2676c894f2f3fcd1e2b9786991a8303fc5
C#
whatever9999/LaundromatClicker
/LaundromatClicker/Assets/Scripts/SFXManager.cs
2.75
3
using UnityEngine; using UnityEngine.Audio; public enum SoundEffectNames { BUTTON, DINGONE, DINGTWO, DINGTHREE, KACHING, BUBBLE, FANFARE, FANFARETWO, WHOOSH } public class SFXManager : MonoBehaviour { public static SFXManager instance; public SoundEffect[] soundEffects; ...
91ee2faad415fc93026c1bc7f5e6b61f9a50d1d8
C#
nagfar/AspNetCore
/erp_usitronic.business/services/CustomerService.cs
2.703125
3
using erp_usitronic.business.interfaces; using erp_usitronic.business.models; using erp_usitronic.business.models.Validations; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace erp_usitronic.business.services { public class CustomerService : BaseService, IC...
4315fc101d63eefef255f0dcda9f263ee81dc6f4
C#
shendongnian/download4
/latest_version_download2/187395-39127927-125755481-2.cs
3.015625
3
[TestMethod] public void Mock_Custom_Collection_Using_Moq() { //Arrange var parentPrefixes = new List<string>() { "__", "wsg" }; var fakeSheetNames = new List<string>(){ "Master", "A", "B", "C", "__ParentA", "D", ...
1bfa0414c7f56042b9858332ebf639ccb5994b0e
C#
Kahdeg-15520487/CubeRenderWebService
/CubeRenderWebAPI/CubeRenderWebAPI/Controllers/RenderController.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using RenderCube; namespace CubeRenderWebAPI.Controllers { [Route("api/[controller]")] public class RenderController : Controller { // GET api/render/8/7/6 [Http...
114ef3905dcb8d6348f1d93c177af6c00df5a25a
C#
djaus2/Jekyll-Filter
/FilterWF/frmInputBox.cs
2.59375
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 FilterWF { public partial class frmInputBox : Form { public frmInputBox() ...
82861b53c9938c7604f478d5804b19f58ca39825
C#
Haadka/functional-c-sharp
/Model/Employee.cs
2.8125
3
using System; using System.Collections.Generic; namespace ListProcessing { internal class Employee : IComparable { public Guid Id { get; set; } public long Value { get; set; } public int Index { get; set; } public string Guid { get; set; } public bool Isactive { get; se...
d9dee94add5d12c212325bb605955fb123745cf0
C#
KelvinBituin03/Home-Service-Reservation-System
/LogIn/LogIn/testfordecimal.cs
2.578125
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.Data.Sql; using System.Data.SqlClient; using MySql.Data.MySqlClient; namespace LogIn { public partial class testforde...
048d93a98f08a4f8e65afc86da2762596c8008b7
C#
hassanbaig/CodeNameMed123
/CareHub/Medicare.Repository/RepositoryClasses/ProviderServicesRepository.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Medicare.Data; using CareHub.Factory.Factories; namespace CareHub.Repository.RepositoryClasses { public class ProviderServicesRepository : IRepository { public ProviderServicesRepo...
74aef75559088c869cc09f5f00a6a100cf31b606
C#
uriisan23/ControlConsultorioEscolar
/EasyMed/EventDataProcessor.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; using System.Data; using System.Data.SqlTypes; using System.Windows.Forms; using System.CodeDom; using EasyMed.Medical; namespace EasyMed { sealed par...
2e486e9f3404ab6e11285e999f431dfc5d77aa53
C#
santhotech/MtConnectAgentDataSimulator
/AgentDataSimulator/GeneralUtility.cs
2.9375
3
using System; using System.Collections.Generic; using System.Text; namespace AgentDataSimulator { class GeneralUtility { public bool IsAllDigits(string s) { foreach (char c in s) { if (!Char.IsDigit(c)) return false; ...
b494695cde6f9b6079ea6de951ef251fd82523eb
C#
aealduraiweesh/EBLA_Internal
/EBLAcorp/Eblacorp_internal/DAL/EmployeeDal.cs
2.53125
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace Eblacorp_internal.DAL { ...
9ce8258813be8206af0ddeaa115143d93abe50aa
C#
hmakda01/Simple-Online-Forum
/OnlineForumsTests/tstCommentCollection.cs
3.03125
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using OnlineForumClasses; using System.Collections.Generic; namespace OnlineForumsTests { [TestClass] public class tstCommentCollection { public void InstanceOK() { clsComment AllComment = new clsComment(); ...
245d96ed7a571307471f94a632d4f309b4e2738d
C#
Domer79/33kitstest
/33Kits.DataRepository/MenuOnDayRepository.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using CommonContracts; using _33kits.Contracts.Collections; using _33kits.Contracts.Interfaces; using _33kits.Contracts.Poco; namespace _33Kits.DataRepository { public class MenuOnDayRepository: IMenuOnDayRepository { private readonly ...
4953025bfe25c6a0ccfe7fb615e6677c865c2be8
C#
shendongnian/download4
/code11/1940675-58744234-208732803-2.cs
3
3
public static T Get<T>(int id) { string json = DoSomething(); // <-- making it easy for this post List<T> items = JsonConvert.DeserializeObject<List<T>>(json); return items.FirstOrDefault( item => (int)item.GetType() .GetProperties() ...
37ae01b52afbdffa41dd06dd348d14f55eab6895
C#
loning/AElf
/AElf.Types.CSharp/MethodHandler`.cs
2.640625
3
using System; using System.Linq; using System.Reflection; namespace AElf.Types.CSharp { public class MethodHandler<T> : IMethodHandler { protected MethodInfo _methodInfo; protected object _contract; protected readonly Type[] _parameterTypes; protected Func<T, byte[]> _encoder; ...
5ecbf7c717b3f165243807fd4695e8704a29c6ec
C#
MicahRClarke/CI328-Server
/Game/Systems/ColliderSystem.cs
2.84375
3
using PIGMServer.Game.Components; using PIGMServer.Game.Types; using PIGMServer.Game.Worlds; using PIGMServer.Network; namespace PIGMServer.Game.Systems { /// <summary> /// System which processes all Collider for ECS technique. /// </summary> public class ColliderSystem : GameSystem<Collider> { ...
a027f5fe180ed679d09e1753e45ebfc821daba6a
C#
Cysharp/UniTask
/src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ForEach.cs
2.53125
3
using Cysharp.Threading.Tasks.Internal; using System; using System.Threading; namespace Cysharp.Threading.Tasks.Linq { public static partial class UniTaskAsyncEnumerable { public static UniTask ForEachAsync<TSource>(this IUniTaskAsyncEnumerable<TSource> source, Action<TSource> action, CancellationToke...
bd333998c4dbbd949c857b64fc7c79d45859c73c
C#
SilentZeroOne/DaHua-Design-Pattern
/MediatorPattern/Country.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MediatorPattern { abstract class Country { protected UnitedNations mediator; public Country(UnitedNations mediator) { this.mediator = mediator; ...
33bc3b1a9a592405adb4ae3cd6fbe0c35606b7cf
C#
lucasmarianokotcz/Arena---SETUP-MySql
/Model/Arena/Regras/Classes/ArenaRegras.cs
2.6875
3
namespace Model.Arena.Regras.Classes { public static class ArenaRegras { public static int EnergiasPorRound => 5; //Energias que o personagem ganha por round. public static int ChanceDeComecar => 5000;// 5000; //Chance de começar o jogo. Valor Exclusive. Quando vale 2 -> 1/2 chances de começa...
3e9b16bb1ecb66ef90210997046a1e1e020a2232
C#
rob-moore1894/codingDojoCSharp
/RandomPasscode/Controllers/HomeController.cs
2.734375
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using RandomPasscode.Models; namespace RandomPasscode.Controllers { public class HomeController : Controller { ...
2707e0b1cdea3857af5e73e06620ebd850968c33
C#
smbarton/Robot-Pope-Escapes
/Assets/Scripts/Level01/Door.cs
2.65625
3
using UnityEngine; using System.Collections; public class Door : MonoBehaviour { private bool _open = false; public bool SwitchOpen { get; set; } public AudioSource doorOpen; // Use this for initialization void Start () { SwitchOpen = false; } // Update is called once per frame ...
ece35acd3bc258256940065c109b745c7860f7d9
C#
TotemArts/Rx_Launcher
/RXPatchLib/DirectoryPathIterator.cs
3.171875
3
using System; using System.Collections.Generic; using System.IO; namespace RXPatchLib { enum InclusionResult { Include, ExcludeEntirely, ExcludePartially, // Continue searching for possibly included files deeper in the recursion. (e.g. when .../a/ is excluded, but .../a/b is ...
27e72aa1d60e60c6b5b113bfda410d328f400e94
C#
markwilkie/ROVControlV2
/ROVMain/ComPortClass.cs
2.828125
3
using System; using System.IO; using System.IO.Ports; using System.Text; using System.Windows.Forms; using System.Collections.Generic; using System.Collections; using System.Net; using System.Runtime.InteropServices; using System.Diagnostics; using HexDump; namespace SerialCom { class ComPortClass { ...
9cd00ad9680e4938634a300bd27cd178abd7628a
C#
noahhusby/NetworkTables
/src/Shared/ListStream.cs
3.203125
3
using System; using System.Collections.Generic; using System.IO; namespace NetworkTables { internal class ListStream : Stream { private readonly IList<byte> m_buffer; private int m_position; public ListStream(IList<byte> list) { m_buffer = list ?? throw new Argume...
8955ca20ca32437b5e0c78d04e5cecf99bcc9217
C#
Schalasoft/Toms-Puzzle
/Toms Puzzle/Factories/LayerFactory.cs
2.8125
3
using System; using Toms_Puzzle.Enumerations; using Toms_Puzzle.Layers; using Toms_Puzzle.Interfaces; namespace Toms_Puzzle.Factories { class LayerFactory { public static ILayer InitializeLayer(LayerEnum type) { // Initialize the appropriate decoder switch (type) ...
56e386aa5e8838b7df74f711c820e85089c858bf
C#
msruzy/digimon-linkz-client
/Assembly-CSharp/NormalTask.cs
3.03125
3
using System; using System.Collections; public class NormalTask : TaskBase { private Func<IEnumerator> task; public NormalTask() { } public NormalTask(IEnumerator task) { this.task = (() => task); } public NormalTask(Func<IEnumerator> task) { this.task = task; } public override...
990a71144fbadbc1600cd9843660e451fa87e968
C#
shuvro-zz/QuickBill-Invoice-A-Inventory-management-system
/QuickBill/Global.cs
2.796875
3
using System; using System.Data.SqlServerCe; using System.Reflection; using System.Text; namespace QuickBill { internal static class Global { public static readonly String DB_NAME_PREFIX ; public static readonly string ROOT_DATA_FOLDER; static Global() { ...
f5dd38656eca1fbb9c060cc873aedb9f71f2fe81
C#
EvgeniyKrasnoshtan/Codewars
/c#/int32 to IPv4.cs
2.90625
3
/* Kata Link: https://www.codewars.com/kata/52e88b39ffb6ac53a400022e */ using System; public class Kata { public static string UInt32ToIP(uint ip) { string binary = Convert.ToString(ip, 2); binary = new string('0', 32 - binary.Length) + binary; binary = Convert.ToInt32(binary.Sub...
a04c0e7ae2a5c8a0c91181e50aa2547a7602a54f
C#
HelgaGebremariam/ASP.NET.GEBREMARIAM.DATASTRUCTURES
/BinaryTree/Tree.cs
3.328125
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BinaryTree { public class Tree<DataType, KeyType> : IEnumerable<DataType> { private TreeLeaf<DataType, KeyType> Root { get; set; } private Fun...
299ffe1d6a4f37cb71fd4423a86d40ff932da07a
C#
SimpleSimple/AspNetTest
/TemplateMethod.Console/CaffeineBeverage.cs
3.390625
3
using System.Collections.Generic; using System.Linq; using System.Text; namespace TemplateMethod.Console { using System; /// <summary> /// 咖啡因饮料抽象类(父类) /// </summary> public abstract class CaffeineBeverage { /// <summary> /// 定义要实现的 TemplateMethod(模板方法) ...
15625a160f58c14763c052d390244e0c630f5999
C#
weizhangxiaohan/Learn.BBS
/Learn.Log/LogEntry/OperationLogInfo.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Learn.Log.LogEntry { public class OperationLogInfo : LogInfo { private string _targetUrl; public override LogType Type { get { ...
95bbe63a992b59055488759018f8b3f8e68caf03
C#
DiscreteMelody/melody-maker
/Melody Maker/Scale.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Melody_Maker { public class Scale { int halfStepsUpFromC; //0 and 4 are the lowest and highest octaves int highOctave; int ...
f42a9f8fe097e80f25433627ca9ebbdc9a2ec29b
C#
vivek7266/trial
/ClassLibrary1/Largest.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LargestFunction { public class LargestNumber { public static int Largest (int[] list) { int index, max = 0; for (index = 0; index < list.Length ...
1d519ef46760ce73387b92f895836e8c7dba1e21
C#
OzerBey/ReCapProject
/ConsoleUI/Program.cs
2.90625
3
using System; using System.Linq; using Business.Concrete; using Core.Entities.Concrete; using DataAccess.Abstract; using DataAccess.Concrete.EntityFramework; using DataAccess.Concrete.InMemory; using Entities.Concrete; namespace ConsoleUI { class Program { static void Main(string[] args) { ...
12e96f9a833051e34dae975a6bf3dc21ca5b91f0
C#
shiow620412/Aha-Algorithm
/3-3火柴棒等式/3-3火柴棒等式/Program.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace _3_3火柴棒等式 { class Program { static void Main(string[] args) { Console.WriteLine("請用現有的火柴棒排出 □ + □ = □"); Console.WriteL...
eb17984241259d0e1c055e57c8be6971b741b5ee
C#
gioscaduto/DesignPatternCSharp
/Visitor/Program.cs
3.59375
4
using System; namespace Visitor { class Program { static void Main(string[] args) { /* Visitor Usado para visitar e realizar o processamento em cada parte(nó) de uma arvore de Expressoes EXEMPLO COM UMA EXPRESSAO MATEMATICA: ( 2 + 30...
b75a567822dc05016921ad67d91f4079ebea4c27
C#
MS1227/SSE594
/ClassLibrary1/ChatRoom.cs
3.09375
3
using System; using System.Collections.Generic; using System.Text; namespace Server { public class ChatRoom { string m_Name; private Dictionary<string, User> m_Users; private List<Message> m_Messages; public ChatRoom(string name) { this.m_Name = name; ...
6c81c56a1fd9050f4f5faa7ffeafc59c8b0c9549
C#
arthur-apanovics/Contoso-msa
/ContosoData/Contollers/QueryStringBuilder.cs
2.984375
3
using ContosoData.Model; namespace ContosoData.Contollers { class QueryStringBuilder { //TODO: Use StringBuilder instead of string concatenation public string TransactionBuilder(Account account, EntityProps entities) { //if no usable entities supplied by user, return latest...
e7a9a0e97724d0d387fcb1912020a8c1cd8d6501
C#
karolberezicki/AdventOfCode2015
/day03/Program03.cs
3.4375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace day03 { class Program03 { static void Main() { string source = File.ReadAllText(@"..\..\input.txt"); // Part 1 Point currentSantaLocation = new Point(0, 0); ...
dd23f5b8c8c5c9c2998f606a189c8860230d0652
C#
hhy5277/savagesvg
/test/SharpVectors/Dom/Svg/Color/SvgColorTests.cs
2.515625
3
using System; using NUnit.Framework; using SharpVectors.Dom.Svg; using SharpVectors.Dom.Css; using System.Collections; namespace SharpVectors.UnitTests.Svg.Color { [TestFixture] public class SvgColorTests : CssValueTests { #region Helper stuff for CssValueTests protected override string aCssText { get{retu...
5dfacc283243a0476bdedae91ed26aa6b066ae5d
C#
shailza85/4.1-EF_CodeFirstCar
/4Point1_EF/Models/CarsCodeFirstContext.cs
2.90625
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Text; namespace _4Point1_EF.Models { public partial class CarsCodeFirstContext : DbContext { public CarsCodeFirstContext() { } public CarsCodeFirstContext(DbContextOptions<CarsCo...
add5118138bf4c5892a558d1576daa28cbea17c0
C#
julioverissimo88/AtechTestBackend
/AtechTestBackend/infrastructure/Validators/PessoaValidator.cs
2.578125
3
using AtechTestBackend.Domain.Models; using FluentValidation; namespace AtechTestBackend.infrastructure.Validators { public class PessoaValidator : AbstractValidator<Pessoa> { public PessoaValidator() { RuleFor(x => x.Nome).NotNull().WithMessage("Campo Nome é obrigatório."); ...
1c051f1951e6be27758641d1e6ab65a650bb1eb9
C#
rkttu/ClouDeveloper.OpenAPI
/ClouDeveloper.OpenAPI.TED/Search/TEDSearchClient.cs
2.703125
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Net.Http; using System.Text; using System.Xml; namespace ClouDeveloper.OpenAPI.TED.Search { /// <summary> /// TEDSearchClient /// </summary> public sealed class TEDSearchClient { ///...
dda673d6b9bc92cb0898a6e63b8fe6b9fd6ef3d2
C#
shendongnian/download4
/first_version_download2/147749-10797087-24935647-2.cs
3.140625
3
interface IVisitor { void DoBehavior(B item); void DoBehavior(C item); } abstract class A { abstract void DoBehavior(IVisitor visitor); } class B : A { override void DoBehavior(IVisitor visitor) { //can do some internal behavior here ...
f703471aad7eff94b5765f7063383172545a3d4d
C#
sconnemara19/Sweepstake
/Sweepstake/SweepstakesQueueManager.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sweepstake { class SweepstakesQueueManager : ISweepstakeManager { private Queue<Sweepstake> sweepstakeQueue; public void InsertSweepstakes(Sweepstake sweepstake) ...
2ae3a39199ae844e1009c550dc59fa500beb6195
C#
radtek/Ducky
/SplashScreen/SplashScreenViewModel.cs
2.703125
3
using Ducky.ViewModel; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ducky.SplashScreen { class SplashScreenViewModel : ViewModelBase { public SplashScreenViewModel() { Load(); } ...
1a486a6b25a1b925f6e7133bbd58bb35e6330dac
C#
Bjtrammel/DGM1600-Summer-2017
/Homework Test 2/Assets/VFunction.cs
3.1875
3
using UnityEngine; using System.Collections; public class VFunction : MonoBehaviour { //similar to declairing a veriable, you are declairing a function or section of code that can be called upon by name and proformed without having to copy and paste the code. public void Butterfly() { print("...
241d7f5af66b46dec1951b495c963e53694ae231
C#
hherzl/CatFactory
/CatFactory/CodeFactory/CommentLine.cs
3.3125
3
namespace CatFactory.CodeFactory { /// <summary> /// Represents a line of comment for a programming language /// </summary> public class CommentLine : Line { /// <summary> /// Initializes a new instance of <see cref="CommentLine"/> class /// </summary> public Comment...
aac0b29f5e425a19e5f1638a79e67e73a51b89dc
C#
brianke/IsDirtyValidator
/CalendarTest/ViewModels/MainPageViewModel.cs
2.640625
3
// Toolkit namespace using SimpleMvvmToolkit; using System; // Toolkit extension methods namespace CalendarTest { /// <summary> /// This class contains properties that a View can data bind to. /// <para> /// Use the <strong>mvvmprop</strong> snippet to add bindable properties to this ViewM...
dc1d4a182f41ad32d09811e3b7eb8a1b8c1701ff
C#
EraYaN/Moonstone
/win32/src/Moonstone.Providers/BaseProvider.cs
2.65625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Linq; using System.Text; using System.Windows.Media.Imaging; namespace Moonstone.Providers { public sealed class BaseProvider : IProvider { public event PropertyChangedEventHandle...
03f6e48bd9ab8bc7e768133c950cee40eecbd475
C#
corthiclem/3D_CABLE
/Stepper-simple/MyStepper.cs
2.796875
3
using System; using System.Collections.Generic; using System.Text; using Phidgets; //For the Stepper class and the exceptions class using Phidgets.Events; //For the event handling classes namespace Stepper_simple { public class MyStepper { const double pas = 2.5; //Pas de la vis sans fin en mm...
a9010d9cf3b95cf4e8ede52e5dc050b724ce165e
C#
PatiVioleta/C-Sharp-ConsoleApplication
/C# ConsoleApp/Lab10/Lab10/Domain/Tema.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Lab10.Domain { class Tema : IHasID<int> { private int id; public int Id { get { return id; } set { id = value; } } public string Descriere { get; set; } public int Deadline { get; se...
a56a900c278d82d125437d748a2d8ec01844fd7e
C#
mattdoller/RandomData
/RandomData.Tests/Categories/RandomNameTests.cs
2.59375
3
using FluentAssertions; using NUnit.Framework; using RandomData.Categories; using RandomData.Generators; namespace RandomData.Tests.Categories { [TestFixture] public class RandomNameTests { private RandomName randomized; [SetUp] public void SetUp() { randomized = new RandomName(new FakeRandom()); ...
b40413f2d36648d82cf417cf9373136b545ef205
C#
kayodeaking/ShadowPrime
/Assets/Scripts/HUDs_Windows/BarScript.cs
2.71875
3
using UnityEngine; using UnityEngine.UI; using System.Collections; public class BarScript : MonoBehaviour { private float fillAmount; [SerializeField] private Image bar; [SerializeField] private Text valueText; [SerializeField] private float lerpSpeed; [SerializeField] private Color fullColor; [Serial...
6d8a86e4b76448b7f566a2a9042a995baecec19e
C#
dwmkerr/apex
/Apex/Core/Apex/Controls/ImageCheckBox.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Media; namespace Apex.Controls { public class ImageCheckBox : CheckBox { /// <summary> /// Initializes the <see cref="Ima...
8fc1c0d3623d0d9a01205bd78836ca18383354c3
C#
CS-SourceCode/cs-merchandise-system
/cs_merchandise/databaseConn.cs
2.703125
3
using System; using System.Data; using System.Windows.Forms; using MySql.Data.MySqlClient; namespace cs_merchandise { internal class DatabaseConn { private DataTable _holder; private MySqlCommand _cmd; private string _sql = ""; private bool _flag; public DatabaseConn(...
1bbb8fc8952faa47bde9b88b1bbe036985d75dee
C#
tobixdev/CsvCheetah
/CsvCheetah.Tests/Tokenization/StateMachine/States/StateTestsBase.cs
2.671875
3
using FakeItEasy; using NUnit.Framework; using tobixdev.github.io.CsvCheetah.Tokenization.StateMachine; namespace tobixdev.github.io.CsvCheetah.Tests.Tokenization.StateMachine.States { public class StateTestsBase { protected ITokenizerStateContext TokenizerStateContext; [SetUp] public ...
22053d7de7a4af7488859b65bcfe888651ff02d8
C#
landon/Chess
/MaterialOnlyEvaluator.cs
2.625
3
using System; using System.Collections.Generic; using System.Text; namespace Generator { public class MaterialOnlyEvaluator : StaticEvaluator { protected override int EvaluateInternal(Board board) { int score = 0; score += PieceValue[Pieces.Pawn] * BitOperations.Popula...
65ca68395f29b780156fe63194e6e76ffde01fff
C#
BassieOfficial/sprint11tm14-CRYBS
/Sprint-11/Boekopdrachten/hoofdstuk2/Opdracht4/Program.cs
3.703125
4
using System; namespace Opdracht4 { class Program { static void Main(string[] args) { int Min = 10; int Max = 99; // this declares an integer array with 10 elements // and initializes all of them to their default value // which is ze...
bd92cde7589466a903ac97d5016da713f46eb28e
C#
baking-bad/tzkt
/Tzkt.Api/Models/Accounts/Base/Account.cs
2.671875
3
using System.Runtime.Serialization; using Newtonsoft.Json; using NJsonSchema.Converters; namespace Tzkt.Api.Models { [JsonConverter(typeof(AccountJsonInheritanceConverter), "type")] [KnownType(typeof(User))] [KnownType(typeof(Delegate))] [KnownType(typeof(Contract))] [KnownType(typeof(Ghost))] ...
90804a4a5b4925e7248d116d84c1aab874ce694a
C#
stenionobres/EntityFrameworkCoreLab
/EntityFrameworkCoreLab.Application/DataFactory/Amazon/CartDataFactory.cs
3.046875
3
using EntityFrameworkCoreLab.Persistence.DataTransferObjects.Amazon; using FizzWare.NBuilder; using System; using System.Collections.Generic; namespace EntityFrameworkCoreLab.Application.DataFactory.Amazon { public class CartDataFactory { public static IEnumerable<Cart> Make(int quantityOfCarts, int q...
daff4fd3355cbf2af94a1f803f6238d1ecbdf646
C#
LukaDevic/ReadLater
/ReadLater5.Repositories/Bookmarks/BookmarksRepository.cs
2.5625
3
using Microsoft.EntityFrameworkCore; using ReadLater5.Data; using ReadLater5.Entity; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace ReadLater5.Repositories.Bookmarks { public class BookmarksRepository : IBookmarksRepository { private ReadLaterDataContext _readL...
d977ec9816f1e2c8f4030e850391e738ede77919
C#
JacobCrombie/keepr
/Services/VaultsService.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using Keepr.Models; using Keepr.Repositories; namespace Keepr.Services { public class VaultsService { private readonly VaultsRepository _vaultsRepo; public VaultsService(VaultsRepository vaultsRepo) { _vaultsRepo = vaultsRepo; ...
e36ebb93661e8a0cb953d8f0e24b2290669296cd
C#
mcgrathjoe/test-examples
/TestExamples.Web/Dal/RidersDal.cs
2.78125
3
using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; namespace TestExamples.Dal { public class RidersDal : IRidersDal { public IEnumerable<RiderDto> GetRidersByTeam(string teamName) { var dtos = new List<RiderDto>(); using (var connection = new SqlConnect...
fcc7150ce7874211cbe18dc7b1164fc4145d1ee0
C#
rafsanulhasan/CodeHubX
/CodeHubX/Helpers/ParseHelper.cs
2.921875
3
using ArgumentNullException = System.ArgumentNullException; namespace CodeHubX.Helpers { public static class ParseHelper { public static bool TryParse<TTargetType>(this object sourceType, out TTargetType targetType) where TTargetType : class { if (sourceType is null) { throw new ArgumentNullExce...
7cee2a98e0dd5ac6a37b9ef9221c8b3d4192536e
C#
harunkara/AntrenmanlarlaVeriYapilariCSharp
/dataStructure_homeWork6_insertionSort__181180085/dataStructure_homeWork6_insertionSort__181180085/Program.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace dataStructure_homeWork6_insertionSort__181180085 { class Program { static void Main(string[] args) { int temporary; int[] array = new int[100]; ...
4a9f7dced48b2607a08a6d761be51096216e95d1
C#
2644783865/Achieve
/DAL/AchieveDALFactory/DALFactory.cs
2.5625
3
using AchieveInterfaceDAL; using System; using System.Collections.Generic; using System.Text; namespace AchieveDALFactory { /// <summary> /// 工厂类:创建访问数据库的实例对象 /// </summary> public class DALFactory { /// <summary> /// 根据传入的类名获取实例对象 /// </summary> private static obje...
5978156cc3e0b363b0cef4a31c43be5b40813d0c
C#
elisee/NuclearWinter
/NuclearWinter/Animation/AnimatedValue.cs
2.84375
3
using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; namespace NuclearWinter.Animation { public enum AnimationDirection { Forward, Backward, Stopped } public enum AnimationLoop { NoLoop, Loop, ...
618ede0075bee5c650b8aa972827d7ccf47c5fae
C#
kokosda/vacation-rental
/tests/VacationRental.Domain.Tests/DateRangeTests.cs
2.796875
3
using System; using VacationRental.Domain.DateRanges; using Xunit; namespace VacationRental.Domain.Tests { [Collection("Common")] public sealed class DateRangeTests { [Theory] [InlineData("2000-01-01", 1, "2000-01-01", 1, true)] [InlineData("2000-01-01", 5, "2000-01-01", 5, true)] ...
b4541820334e2e152d06b0124da9aeb3f31b4b47
C#
Kaaaaay/483ExamPrep
/11 - Exercise/Program.cs
4.03125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _11___Exercise { class Program { static void Main(string[] args) { // Exercise 1 /*Build a simple calculator. Read in two integers from the use...
40ce03d5ee4fc18a24d4b6b1ffbfd142f3dec5f9
C#
marisolmaldonado/EjercicioEn-ClaseUsoFramework
/Calculadora.cs
3.171875
3
using System; using System.IO; namespace Matematicas.FrameworkTest { internal class Calculadora { public Calculadora() { } internal int AumentarEntero(int numeroEntero1, int numeroEntero2) { int sum = numeroEntero1; for (int i ...
ff5a97cc551405a8d547bbdface221d898da1a47
C#
Nollili/FirstCsharps
/6/enum_pelda.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EnumPelda { class Program { enum Allat { kutya, macska, farkas, tigris } static void Main(string[] args) { Allat allat = Allat.macska; C...
1033f99015999ed31d9a68883ba0c52bca1758af
C#
5665tm/GeometryApp
/GeometryApp/Models/Attributes/Position.cs
2.953125
3
using System.Collections.Generic; using GeometryApp.Models.Base; using GeometryApp.Models.GeometryShapes; namespace GeometryApp.Models.Attributes { /// <summary> /// Информация о позиции фигуры /// </summary> public class Position : BaseModel { /// <summary> /// Координата X /// </summary> public...
1f451a4ef50d3c49c650afe9702e62519d9f363e
C#
LimYunGyoo/ForStudy_Jenkins
/ForJenkins/ForJenkins/Controllers/MongoController.cs
2.890625
3
using MongoDB.Bson; using MongoDB.Driver; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using System.Web.Http.Cors; namespace ForJenkins.Controllers { [EnableCors(origins: "*", headers: "*", methods: "*")] public class MongoC...
5d2864d8e55bd0fa225ab5d8a99bb818d624fafd
C#
lkubis/RemindersOnContainers
/src/BuildingBlocks/Framework/Framework.Authentication.JwtBearer/JwtTicketDataFormat.cs
2.65625
3
using System; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using Microsoft.AspNetCore.Authentication; using Microsoft.IdentityModel.Tokens; namespace Framework.Authentication.JwtBearer { public class JwtTicketDataFormat : ISecureDataFormat<AuthenticationTicket> { private readon...