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
c179ad55a2353df65a513a0dbf462d8adaff482c
C#
StanislavStefanovPetrov/Software-University-SoftUni
/C# OOP Basics/Exam Preparation/Need For Speed - 11 July 2017/Controllers/CarManager.cs
2.828125
3
namespace Need_For_Speed___11_July_2017.Controllers { using Models; using Models.Cars; using Models.Races; using System.Collections.Generic; using System.Linq; public class CarManager { private Dictionary<int, Car> cars; private Dictionary<int, Race> races; private ...
dd3dc5b1da523962be19cab3e6a3cdb746838bef
C#
niksmanov/Telerik_Academy
/C-Sharp-part-1/04.Console-Input-and-Output/01. Sum of 3 numbers.cs
3.4375
3
using System; class sumOf3numbers { static void Main() { decimal a = decimal.Parse(Console.ReadLine()); decimal b = decimal.Parse(Console.ReadLine()); decimal c = decimal.Parse(Console.ReadLine()); Console.WriteLine(a + b + c); } }
4098e47a2c3dcdee1f21f8f4ca4f85ec4282ef33
C#
vortydev/planetesimal-games-collection
/Assets/Scripts/EnemySpawn.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemySpawn : MonoBehaviour { public GameObject Enemy; [SerializeField] Wave waveText; public float rngWaveType = 1; public float rngTimeBetweenSpawn = 1; public float rngNbEnemies = 1; public float mul...
c65e4a721baf8837feb4b2be949a2113184447ee
C#
softskandeveloper1/Emergency_Dev_MHealth
/DAL/Service/MentalHealthPlanService.cs
2.578125
3
using DAL.IService; using DAL.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DAL.Service { public class MentalHealthPlanService: IMentalHealthPlanService { private readonly HContext _context = new HContext();...
b7c064f3d0d232dead6ff6e29673b06c747a05bd
C#
AF-application-team/drama-festival-archive
/AF Models/PersonMap.cs
2.609375
3
using System; using System.Collections.Generic; using System.Data.Entity.ModelConfiguration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AF_Models { public class PersonMap : EntityTypeConfiguration<Person> { PersonMap() { // Primary Key ...
f42d38a16a26fe663903564b8246bf7c0f664286
C#
saarias/QuienSePega
/QuienSePega/Migrations/Configuration.cs
2.5625
3
namespace QuienSePega.Migrations { using System; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration<QuienSePega.Models.ApplicationDbContext> { public Configuration() { Auto...
2561b3416a6153f6d5748177b1d89cc5049c48b7
C#
IGood/Wallpaperr
/Code/GaussianBlurEffect.cs
2.65625
3
///////////////////////////////////////////////////////////////////////////////// // Paint.NET // // Copyright (C) dotPDN LLC, Rick Brewster, Tom Jackson, and contributors. // // Portions Copyright (C) Microsoft Corporation. All Rights Reserved. ...
be47c02c9b9542ae0a75a7e4664534d0e3dcf464
C#
easonjim/QrCodePlatform
/Gma.QrCodeNet.Encoder/VersionDetail.cs
2.828125
3
namespace Gma.QrCodeNet.Encoding { public struct VersionDetail { internal int Version { get; private set; } internal int NumTotalBytes { get; private set; } internal int NumDataBytes { get; private set; } internal int NumECBlocks { get; private set; } internal VersionDetail(int version, int numTotalByte...
873697c6205bf2a209aa5d23d4e1b18d1cb0116b
C#
Leoltron/PayDebt
/Infrastructure/ScalarType.cs
3.34375
3
using System; namespace Infrastructure { public abstract class ScalarType<TValue, TUnit> : ValueType<ScalarType<TValue, TUnit>> where TUnit : IEquatable<TUnit> { public TUnit Unit { get; } public TValue Value { get; } protected ScalarType(TValue value, TUnit unit) ...
8fdb3cd1b24dfb499e65a0ded3ca1c7dae736722
C#
Valravn87/Catan-test
/IntegrationTest1.1/IntegrationTest1.1/Objects/Road.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace IntegrationTest1._1 { public class Road { private int playerNum; private Color colour; public Road(int num, Color colore) ...
cceddf407ac864a05d48dc0032924c9478f614a5
C#
lkaucic/oop_zadaca_kaucic
/DZ4/MyLibrary/Episode.cs
3.515625
4
using System; using System.Globalization; using System.Collections.Generic; namespace MyLibrary { public class Episode { List<double> scores = new List<double>(); //a list which will keep track of all generated ratings Description description = new Description(); public ...
b4db942f6a85d12885e7fe0bc8e9246ac1fdc334
C#
VadimOliseichik/EPAM_Tasks
/NET.W.2019.Oliseichik.04/1_Task_and_Tests_GCD/NUnitTestTask_1_GCD/FindGCDTests.cs
2.859375
3
using NUnit.Framework; using Task_1_GCD; namespace NUnitTestTask_1_GCD { /// <summary> /// Testing class /// </summary> public class FindGCDTests { [SetUp] public void Setup() { } /// <summary> /// Test Method for EuclideanBinaryAlgorithmMethod ...
bf1ff97f3bac7f984cbcd2f9dee7b85c2de87ac5
C#
VelyanGedzhev/MedicReach
/MedicReach.Tests/Data/MedicalCenterTypes.cs
2.53125
3
using MedicReach.Data.Models; using System.Collections.Generic; using System.Linq; namespace MedicReach.Tests.Data { public class MedicalCenterTypes { public static IEnumerable<MedicalCenterType> GetTypes(string name = null) { var types = Enumerable.Range(0, 3).Select(p => new Medi...
317e4d62cdee78956b407958c1aa60e59978af9e
C#
inevolin/YouTubeRankCalculator
/Common/Common.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YTR { public static class Common { public static string toRelativeTime(DateTime value) { int SECOND = 1; int MINUTE = 60 * SECOND; i...
bb7eba80cb3b004c9d5d2241d4a796006deb1367
C#
AngelikaUshakova/epam
/Angelika_Ushakova_Task04/Task2/Operation.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Task2 { public static class Operation { static HashSet<char> strChar = new HashSet<char>(); public static HashSet<char> GetFillSet(string str) { fo...
197cfbee25cec1847312a56cf6b0e01a3694ee5b
C#
kcreadus/Readus_Keesha_Portfolio2
/readus_keesha_finalProject/Hand.cs
3.484375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace readus_keesha_finalProject { class Hand { private List<Cards> _hand; public Hand() { _hand = new List<Cards>(); } ...
0ded29190407aa2485e834cb9cd03ac6f82a230a
C#
smartquant/SharpQuant.ObjectStore
/TagsSerializer.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SharpQuant.ObjectStore { /// <summary> /// REMARK: The reason we want to serialize tags into text is that they can be read in a /// DB field with another API as opposed to the binary object data /// </summa...
93c77e86ac904197646321d862851ed222392c89
C#
TMaj/BlueCinema
/BlueCinema/Data/DbInitializer.cs
2.875
3
using BlueCinema.Models; using System; using System.Collections.Generic; using System.Linq; namespace BlueCinema.Data { public static class DbInitializer { public static void Initialize(BlueCinemaContext context) { context.Database.EnsureCreated(); var fil...
9abe9ec762d58081929de73dfb8bfd58b045219d
C#
BehroozBahrameh/ExcelDynamicReaderWriter
/Wisgance.Office.Excel/Reader/Read.Utility.cs
3.046875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Spreadsheet; namespace Wisgance.Office.Excel.Reader { public partial class Read { /// <summary> /// Get all specific column's cell data ...
ea7c4e7ea2031004f6cdabf07c0fde6db215813d
C#
jasdvk1129/LibraryManager
/TimeControl_MYSql_Library/TimeControlClass.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TimeControl_MYSql_Library.Enums; using TimeControl_MYSql_Library.Methods; using TimeControl_MYSql_Library.Modules; namespace TimeControl_MYSql_Library { /// <summary> /// 時控 /// </summ...
2c9dece9c3de7f5c1a1617216dbd62394caf5644
C#
azureautomation/azure-automation-ise-addon
/AutomationISE/NewOrEditCredentialDialog.xaml.cs
2.640625
3
using System; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using AutomationISE.Model; namespace AutomationISE { /// <summary> /// Interaction logic for NewOrEditCredentialDialog.xaml /// </summary> public partial class NewOrEditCredentialDialog : Window { ...
551c6df7bd3d2675a65ea4012341bfe32c360d08
C#
iludart/Algorithms-Data-Structures-SoftUni
/DataStructures/05_TreesAndGraphTraversal/P04.LongestPathInATree/LongestPathInATree.cs
3.59375
4
namespace P04.LongestPathInATree { using System; using System.Collections.Generic; using System.Linq; public class LongestPathInATree { private static Dictionary<int, List<int>> tree; private static Dictionary<int, int?> parents; static void Main() { va...
1a200c3f3ea787d040e308e02f380b4d8d205915
C#
Borowik1/HeadFirstCsharp
/Chapter 09/09 - Read Serialized Cards/Program.cs
3.546875
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Threading.Tasks; namespace _09___Read_Serialized_Cards { class Program { static void Main(string[] args) { Cards...
daa24a2cb90612e0d1cb47432e28a7bc852155d9
C#
jjvanzon/JJ.Framework
/Archive/ThirdParty/NPersist/Source Code/NPersist/Framework/Enums/LoadBehavior.cs
2.609375
3
// * // * Copyright (C) 2005 Mats Helander : http://www.puzzleframework.com // * // * This library is free software; you can redistribute it and/or modify it // * under the terms of the GNU Lesser General Public License 2.1 or later, as // * published by the Free Software Foundation. See the included license.txt // * o...
b288e20dc453641cb5a0264936c84e029fed809c
C#
Nik300/TestEnvOS
/Cosmos.System2.Emulation/Core/Instruction.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cosmos.System.Emulation { public abstract class InstructionSet { public static Dictionary<uint, Instruction> instructions = new Dictionary<uint, Instruction>(); public ...
f27c1ef93257ee71a5dd27dab0613133981c3058
C#
pseudoinsp/AdventOfCode18
/Day5/NonRecursive_fix.cs
3.484375
3
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace Day5 { class NonRecursive_fix { static void Main_(string[] args) { Task<string> textReadingTask = System.IO.File.ReadAllTextAsync("..\\..\\..\\input.txt"); string...
7a48db2006b95f505d3b03cbd672f80e3fda968b
C#
muslumgezgin/WebShop
/Src/Core/WepShop.Application/Features/Commands/SupplierCommands/CreateSupplierCommandHandler.cs
2.53125
3
using System; using System.Threading; using System.Threading.Tasks; using AutoMapper; using MediatR; using WepShop.Application.Dtos; using WepShop.Application.Exceptions; using WepShop.Application.Interfaces.Repository.Base; using WepShop.Application.Wrappers; using WepShop.Domain.Entities; namespace WepShop.Applicati...
42646411c5b1797c2a996d37fb32e237624616c9
C#
bitpokerio/BitPoker.WCF
/src/UltimatePoker-2010/PokerService/IPokerRoomChat.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; namespace PokerService { /// <summary> /// An interface which defines the poker chat room service. /// </summary> [ServiceContract(CallbackContract = typeof(IPokerChatClient), SessionMode =...
b756e11dceff26542309e19200ac378f7e47821d
C#
renanjodas/GerenTI
/GerenciaTI/GerenciaTI/Teste.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GerenciaTI { class Teste { public Teste() { } public string matricula { get; set; } public string senha { get; set; } public static string erro = "asas...
34bcc6c0fd7f8cc44a9c1055d163747fe95244be
C#
DebugDrawRay/necromancer
/Assets/Scripts/Utilities.cs
2.65625
3
using UnityEngine; namespace Utilities { public static class Roll { public static int RangeInt(Vector2 range) { return Random.Range((int)range.x, (int)range.y); } public static float RangeFloat(Vector2 range) { return Random.Range(range.x, range....
9b61755f6b95ba248ffc5b453445a522c3f00a90
C#
samodle/AdaptLib
/AdaptLib/Work.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; namespace AdaptLib { public class Work { #region Variables/Properties public List<Exercise> Exercizes { get; set; } = new List<Exercise>(); public List<Gear> Equipment { get; set; } = new List<Gear>(); #endregi...
ab6c00abf8a65201325d94324b3fec5490bd64ab
C#
amigocloud/amigocloud_samples
/CSharp/AmigoCloudSample/AmigoCloudSample/Utilities.cs
3.046875
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace AmigoCloudSample { class Utilities { /// <summary> /// Global format provider...
45237bbcd8ca7eeb8ffc2eb07e7b9490c6c4f817
C#
gladclef/robotMath
/robotMathTests/Expression/BinaryTests.cs
2.75
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using robotMath.Expression; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace robotMath.Expression.Tests { [TestClass()] public class BinaryTests { [TestMethod()] ...
2ba326b515f1284f5bec19cf4532149d6784ebb4
C#
BitAlchemists/Elenears-Erben
/EE.NET/EE.Incubator.TestConsole/EE.Game/Application/Console/MapRenderer.cs
2.765625
3
using System; using System.Text; using EE.Game.Model.World; namespace EE.Game.Application.Console { public class MapRenderer : IMapRenderer { public MapRenderer () { } #region IMapRenderer implementation public void Render (Map map) { StringBuilder builder = new StringBuilder(); int x = 0; ...
c3e278fd1677e871b08139e5abaeed2af6980c8c
C#
KaloyanchoSt/Telerik-Academy-HW
/1. Programming C#/2. CSharp-Part-2/01. Arrays/09. FrequentNumber/FrequentNumber.cs
4.3125
4
/* Problem 9. Frequent number Write a program that finds the most frequent number in an array of N elements. Print the most frequent number and how many time it is repeated. Output should be REPEATING_NUMBER (REPEATED_TIMES times) */ namespace FrequentNumber { using System; cl...
c62ff6a31ad81eecb734451591fc7afaf11c6e2b
C#
hypar-io/Elements
/Elements/src/Spatial/AdaptiveGrid/BranchSide.cs
2.671875
3
using System; using System.Collections.Generic; using System.Text; namespace Elements.Spatial.AdaptiveGrid { /// <summary> /// Enumeration that indicates one of two possible paths in routing. /// There are cases when we need to collect more than one path and /// only after some time we can decide whic...
3a66afb67bde1805741c0c3a9e1122c8e3b5fa97
C#
fumi1995/UnitySocckerGA
/Assets/Scripts/ThighController.cs
2.609375
3
using UnityEngine; /* 第1足の動きを決めるクラス */ [RequireComponent(typeof(CharacterJoint))] [RequireComponent(typeof(SimpleAddTorque))] public class ThighController : MonoBehaviour { private CharacterJoint _characterJoint; private SimpleAddTorque _simpleAddTorque; private void Reset() { _charact...
8d2b490c452682c348b366236d7906274e780a8b
C#
ppedvAG/wpf_inhouse_kassel_01_2019
/GridMitAutomatischenAbstand/GridManager.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; namespace GridMitAutomatischenAbstand { public class GridManager { public static double GetLeftMargin(DependencyObject obj) {...
39db804e13fad6d795de60ce652aa21f7d0cd0f7
C#
brollins90/csc250blake_rollins
/Threading1/Threading1/MainClass.cs
3.203125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Threading1 { class MainClass { static void Main(string[] args) { Thread t = new Thread(JammingMethod); ...
5e63d3274588f3941cd4b2ed9a7f27b14b6d816c
C#
zq791076654/CSharpInDepthNotes
/2.1Delegate/Program.cs
3.390625
3
using System; namespace _2._1Delegate { public delegate void StringProcess(string input); class Program { static void Main(string[] args) { Person tom = new Person("tom"); StringProcess tomSay = new StringProcess(tom.Say); Person jon = new Person("jon"); ...
e1744426175f282afc4fb73247b7ebb9064d0260
C#
eliias00/ProgLabo2
/Ej_polimorfismo/Entidades/Rectangulo.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entidades { public class Rectangulo : Figura { private double Altura; private double Base; public Rectangulo(double a, double b) { ...
4082e0712329b70f69ba856031a344590f860dd4
C#
KDet/LicenseManager
/LicenseManager.Core/Models/Customer.cs
2.609375
3
namespace LicenseManager.Core.Models { public class Customer : Attempt { public bool IsClient { get; set; } public string Key { get; set; } public Customer() { IsClient = false; Key = string.Empty; } public new Customer Clone() { ...
856f203f8ebdb407e4d5355e83ff1b830fabb556
C#
donchate/steepshot-mobile
/Sources/Steepshot/Steepshot.iOS/Helpers/Logger.cs
2.53125
3
using System; using System.Runtime.InteropServices; using Foundation; using ObjCRuntime; namespace Steepshot.iOS.Helpers { public static class Logger { [DllImport(FoundationLibrary)] extern static void NSLog(IntPtr format, IntPtr s); [DllImport(FoundationLibrary, EntryPoint = "NSLog")...
e3bc4042499d83dc9555ed0734ca9cfc685ac89b
C#
divyakancharla/Divya
/C#/HandsOn/HandsOnExampleListDel/Trainee.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HandsOnExampleListDel { class Trainee { int tid; string tname; int pid; public Trainee(int tid,string tname,int pid) { this.tid = ti...
0a87abfee533ff256cc32fc82495e18963aab070
C#
planetmalone/Wumpus
/Wumpus/Wumpus.cs
3.34375
3
/************************************************************************************************** * Wumpus * * Author: Sean Malone * * Description: This class contains the attributes and behavior for the Wumpus. **************************************************************************************************/ u...
3e8932ba7e7ff084fae260460f40c58db0d740ef
C#
antoinecronier/CSharpMDSM1
/Tp2/Entities/User.cs
2.828125
3
using SQLite; using SQLiteNetExtensions.Attributes; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tp2.Entities.Schemas; namespace Tp2.Entities { [Table(UserSchema.TABLE)] public class User { private int? id; privat...
07a1269c201d897d25fb5495c3c91625f4811bf8
C#
zhukov000/app4
/loadobjects/Form1.cs
2.75
3
using Excel; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace loadobjects { public partial class Form1 : Form { ...
aad7ab7bfb363c8c15fa42a64f4d47799a0a6e1b
C#
jackdurnford/SideScroller
/Assets/Scripts/AcidDelete.cs
2.703125
3
using UnityEngine; using System.Collections; /** * ACID DELETE SCRIPT * * This script is used to detect once the "AcidDelete" object has collider with the acid droplet object * * @author: Jack Durnford **/ public class AcidDelete : MonoBehaviour { /// <summary> /// Once the acid droplet collides wit...
0104cdc9ed18947fb84544e5af6541014fa18b8c
C#
SCCapstone/UofSCTourAR
/TourAR/Assets/AltUnityTester/AltUnityServer/Commands/UnityCommands/SetKeyPlayerPrefCommand.cs
2.734375
3
namespace Assets.AltUnityTester.AltUnityServer.Commands { class SetKeyPlayerPrefCommand: Command { PLayerPrefKeyType type; string keyName; string value; public SetKeyPlayerPrefCommand(PLayerPrefKeyType type, string keyName, string value) { this.typ...
c326b440fec68ba846f3835879ab7a23821a3f63
C#
halzate93/slingshot
/Assets/Scripts/Health.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Health : MonoBehaviour { [SerializeField] private float healtPoints; public void ApplyDamage (float damage) { healtPoints -= damage; if (healtPoints <= 0f) Die (); } public void Heal (float lifePoints) { hea...
e95ed33dce029de6d057d416d038ac3274392726
C#
fahahm/CommuteWiseBackend
/CommuteWise/Model/User.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace CommuteWise.Model { public class User { private string firstName; private string lastName; private string password; private string userid; private string phone; ...
ee775575076cfae33a0bd5fda3062ea9159599d3
C#
BigK7171/Library-Management-System
/LibMgmt/frmChangePasswd.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.Windows.Forms; using System.IO; namespace LibMgmt { public partial class frmChangePasswd : Form { public frmChangePasswd() { ...
0af50ef8c5927e96cf7d37d33d3f062528f35597
C#
joeqian10/neo-node
/Neo.ConsoleService/ConsoleCommandAttribute.cs
2.90625
3
using System; using System.Diagnostics; using System.Linq; namespace Neo.ConsoleService { [DebuggerDisplay("Verbs={string.Join(' ',Verbs)}")] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] public class ConsoleCommandAttribute : Attribute { /// <summary> /// Verbs ...
1a77663994a021995e971c17fb7a34ba2b34f8ca
C#
TomTF/graphql-dotnet
/Database/Repositories/BaseRepository.cs
3.03125
3
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Database.Model; using Microsoft.EntityFrameworkCore; namespace Database.Repositories { public class BaseRepository<T> where T : class, IEntity { public MovieContext Context { get; } public BaseRepository(...
a390b5437b79a7f3fdc144f3b937dfab33f9afa9
C#
greck2908/Ego-Engine-Modding
/src/EgoLngEditor/AddRow.cs
2.578125
3
using System.Windows.Forms; using System.Data; using EgoEngineLibrary.Language; namespace EgoLngEditor { public partial class AddRow : Form { LngFile file; public string Key { get { return textBox1.Text; } } public string Value { get { return richTextBox2.Text; } } public AddRow(LngFile _fil...
91cd83b6cb8572482645d8cfe27db3a3f32355ba
C#
kkman021/MvcForInterview
/Src/EIP.Core/Extensions/QueryableExtension.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace EIP.Core.Extensions { public static class QueryableExtension { public static PageResult<TSource> ToPagedList<TSource>(this IQueryable<TSource> so...
c6a3a41b17bcd495cc30b30e6c36b4515877c624
C#
alexdzeshko/Lab_HotelApp
/RoomForm.cs
2.640625
3
using Lab_HotelApp.data_; using Lab_HotelApp.model; 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 Lab_HotelApp { public partial class Ro...
a99543963eaba30f352bf0052186fcc97a5b6bfa
C#
Rhyme1314/MyLeetCode
/数据结构Cshape实现/HashST2Dic.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 数据结构Cshape实现 { class HashST2Dic<KeyT,ValueT>:IDictionary<KeyT,ValueT> { private HashST2<KeyT, ValueT> hashST2;//用一个HashST2作底层 public int Count { get { return hashST2.C...
3210f9bf2abefbc193b81516bfc51bc92e52ff67
C#
nomaniqbal/OneLoginClientDotNet
/src/OneLoginClient/Responses/GetGroupsResponse.cs
2.53125
3
using System.Runtime.Serialization; namespace OneLogin.Responses { [DataContract] public class GetGroupsResponse : PaginationBaseResponse<Group> { } /// <summary> /// Think of groups as departments. Groups enable you to split your user base into smaller pieces that can be more easily managed....
d5c9647ac0a9cdbe071a73ebc0921130660a0775
C#
Aaronontheweb/InMemoryCQRSReplication
/src/Akka.CQRS.Pricing/Views/MatchAggregate.cs
2.890625
3
using System; using Akka.CQRS.Events; using Akka.CQRS.Pricing.Events; using Akka.CQRS.Util; namespace Akka.CQRS.Pricing.Views { /// <summary> /// Aggregates <see cref="Akka.CQRS.Events.Match"/> trade events in order to produce price and volume estimates. /// </summary> public sealed class MatchAggrega...
223c3e5f2cf4cfd979d43dff8c4119bc4ab8dddb
C#
Magisterbes/BespalovPhd
/MedicalModel2020/Tech/RandomGenerator.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MathNet.Numerics.Distributions; namespace MedicalModel { class RandomGenerator { public double[] Coefs; public delegate double GenerateRandomDelegate(); public Ge...
c1a365ea422cb5b41c6cb3c99c1a37e6c575a3f3
C#
m-s-z/AC_project
/AC_projectTests2/ProblemSolverTests.cs
2.65625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using AC_project; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AC_project.Tests { [TestClass()] public class ProblemSolverTests { [TestMethod()] public void ...
d9a99901502e42e5e740acec8f72a4d45ced030c
C#
TheIncorrectClock/book-price-comparer-csharp
/Controllers/BookSearchController.cs
2.671875
3
using BookSearchAPI.Finders; using BookSearchAPI.Models; using Microsoft.AspNetCore.Mvc; using BookSearchAPI.Providers; namespace BookSearchAPI.Controllers { [Route("BookSearch")] public class BookSearchController : Controller { private BookSearchWebAppConfiguration config; pub...
ac5f4b41c0622d5d7895c64fd35755cd5e1fb44a
C#
berrocal9470/IIProyectoDiseno-Dashboard
/Dashboard/Dashboard/Modelo/ResultadoObserver.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Dashboard.Modelo { class ResultadoObserver : IResultado { public string Sexo { get; set; } public int Edad { get; set; } //Constructor default public R...
368e36e95c713079fc9f3e55a28db9abed8a0dfd
C#
hello-web/Neuroph.NET
/Neuroph/contrib/graphml/Key.cs
2.65625
3
namespace org.neuroph.contrib.graphml { /// <summary> /// XML Schema key element. /// /// Holds 4 XML elements: /// /// 1. The id value for this key (referred to in data fields). /// 2. The for value, specifying for which XML element this key is valid /// 3. The name of the attribute this key referes...
6d7b47eae69247b6cdcb0aefb0a18cf6dc8a256c
C#
khalfikhawla/formumaireCshsarp
/formTD4/formTD4/gestionEtudiant.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MySql.Data.MySqlClient; using System.Windows.Forms; namespace formTD4 { class gestionEtudiant :interfaceGestion { MySqlConnection conn; MySqlConnection connexion() { conn = new MySql...
227a0a98518c992543adbc96b9bb38bcb6c37ecd
C#
Reinms/Stubber-Publicizer
/UnityEditorStubCreator/ConsoleStubber/Program.cs
2.890625
3
namespace ConsoleStubber { using System; using AssemblyStripper; using System.IO; using System.Collections.Generic; using System.Linq; public static class Program { public static void Main(String[] args) { if(args is null || args.Length != 1) { ...
9ffc4747507824d7e774da17b06f855ea35b8911
C#
HristoGadev/CSharpAdventure
/C#Fundamentals/DictionaryExercises/UserLogs/Program.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; namespace UserLogs { class Program { static void Main(string[] args) { //user,ip var users = new Dictionary<string, string>(); //ip,count var ipCount = new Dictionary...
d848a6b9d3eb8e30bdc12bd8aa86ec92a5b4224b
C#
Peng2017/SharpProto
/SharpProto/Program.cs
2.96875
3
using System; using System.IO; namespace SharpProto { class Program { static void Main(string[] args) { if (args.Length < 3) { Console.WriteLine(string.Format("Usage: SharpProto proto.cs [cpp|python] output_dir")); return; ...
eaff4feb37abdfaeb4fa40393d5714ca164be947
C#
thanhtu5589/AdvanceWinform
/DAO/clsKhachHang_DAO.cs
2.515625
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 DTO; namespace DAO { public class clsKhachHang_DAO { public clsKhachHang_DTO getKhachHangByChungMinhNhanDan(string str) { ...
98ea55b51bb297fa6829cafb7241155499e9323d
C#
andjeladjuric/ProjectSIMS
/HospitalService/HospitalService/Repositories/MedicalRecordsRepository.cs
3.03125
3
using Model; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace HospitalService.Repositories { class MedicalRecordsRepository { private String FileLocation = @"..\..\..\Data\medicalrecords.json"; public List<MedicalRecord> recor...
884ad93013d53393427d22d5d24952ba122c42e3
C#
viewless/SoftUni
/Programming Fundamentals/Lab/09. Strings and Text Processing/04. Palindromes/Program.cs
3.875
4
using System; using System.Collections.Generic; using System.Linq; namespace _04._Palindromes { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string[] words = input.Split(".,!? ".ToCharArray(), StringSplitOptions.RemoveEmptyEntrie...
8bda5c5bde44ab9003fb485a66ae442fb3973473
C#
naveenh760/Goal-and-Task-Management
/GoalTask.Data/DataAccess/CategoryAccess.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Data.OleDb; namespace GoalTask.Data.DataAccess { public class CategoryAccess:ConnectionAccess,ICategoryAccess { public DataTable ViewCategory() { ...
122c8cfe1568f6a44f5fd87ff968abd7335e5ee4
C#
bubdm/Clouseau
/Clouseau/Criterion.cs
2.734375
3
/* * Copyright (c) 2015 Jeff Lindberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge...
8575d20a74376616c3caf83822d3a6dc6cbbe4ef
C#
automotiveMastermind/condo
/src/AM.Condo.Abstractions/IO/IGitRepositoryInitialized.cs
2.625
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IGitRepositoryInitialized.cs" company="automotiveMastermind and contributors"> // © automotiveMastermind and contributors. Licensed under MIT. See LICENSE and CREDITS for details...
68cbc9d8dd93deb05a86ad0e6be5839d6d3c958a
C#
myko/Eternia
/Eternia.XnaClient/Level.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace Eternia.XnaClient { public class Level: SceneNode { private readonly GraphicsDevice graphicsDevice; private readonly Model leve...
0ca456ad335d0d2d7997d3841c5e817bebf9a796
C#
JediRhymeTrix/Visual-Studio-Projects
/ConsoleApplication4/ConsoleApplication4/Program.cs
2.890625
3
using System; using System.Diagnostics; using System.IO; using System.Threading.Tasks; namespace ConsoleApplication4 { class Program { static void Main(string[] args) { run_cmd(); } private static void run_cmd() { string fileName = @"C:\Python2...
52068a7a247e75eb2e4088e6fee47f9dc559d20e
C#
jmarolf/diff-match-path
/src/Microsoft.CodeAnalysis.Diff/ImmuableArrayBuildExtensions.cs
2.96875
3
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Text; namespace Microsoft.CodeAnalysis.Text { internal static class ImmuableArrayBuildExtensions { public static void AddIfNotEmpty(this ImmutableArray<Diff>.Builder input, Diff diff) {...
aebce7af70154058f54dd3fc75c38f35a11ee2db
C#
Zvonetg/Test
/SysInfo_Fiskalizator/Util/Settings.cs
2.890625
3
namespace SysInfo_Fiskalizator.Util { public class Settings { public OperationType Operation; public string CisWebServiceUrl; public int TimeOut; public string InputFile; public string OutputFile; public string XMLOutputFolder; public bool WriteDebugToLog...
cbaa4759607c36e7f134c649c7cafb56e3e95a33
C#
shendongnian/download4
/first_version_download2/230053-29005913-85660782-1.cs
3.46875
3
string _val = ""; Console.Write("Enter your value: "); ConsoleKeyInfo key; do { key = Console.ReadKey(true); if (char.IsNumber(key.KeyChar) || key.KeyChar == '.') { _val += key.KeyChar; ...
9c75466dc4068e0b86afd9cf257b418db98fb2ac
C#
Joseph-Park-dev/SpaghettiPartyPrototype-RevolverSlime2D
/Assets/Scripts/MouseBehavior.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MouseBehavior : MonoBehaviour { private SpriteRenderer rend; [SerializeField] private Sprite shootingCursor; [SerializeField] private Sprite normalCursor; private void Start() { Cursor.visi...
164f5ac7eb962045afa0a5af9732d4a4c34001e9
C#
prijuly2000/Dot-Net
/C# Assignment/assignment solutions/ass4/2/ass3/Circle.cs
3.46875
3
using System; namespace ass3 { class Circle:Shape { double radius; public Circle() { radius = 0; } public Circle(double ra) { radius = ra; base.area = CalArea(); base.peri = CalPeri(); } public ove...
0b90fbdbaaf0114fb126c10bf2578a733393c058
C#
felipebitten/Ulbra-code-test
/IAC/Calculator.cs
2.828125
3
using System; class Calculator { public static void Main () { int NumeroUm; Console.WriteLine("Digite um número:"); NumeroUm = int.Parse(Console.ReadLine ()); Console.WriteLine("O usuario digitou o número " + NumeroUm ); Console.ReadLine (); } }
7fb3f1e8ac779f1553101d2055d74535eb59cf4f
C#
vondella/SysAbstract
/Brela.Web/Program.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Brela.Web.Data; using Microsoft.AspNetCore.Hosting; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsof...
2c6335d6bdf45f391daa862d13919f5b8e31b7fd
C#
zeGolem/vector-maths
/Vector/VectorLine.cs
2.875
3
using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Vector { class VectorLine { public static PointOnGrid Point1, Point2; public VectorLine(PointOnGrid p1, PointOnGrid p2) { ...
28f5e80251ebe73069424661a9ab86089896fd63
C#
ethanChou/demo
/src/VisitorManager/VisitorManager.ViewModel/Common/CardTypeConverter.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Data; using ThriftCommon; namespace VisitorManager.ViewModel { public class CardTypeConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter,...
2339abcf9efa58debb0ea8cfafe9bc9e1cd190ba
C#
fl0wm0ti0n/CSharp-Learning
/ConsoleApplication1/Chat_Client_APP/GlobalTimer.cs
2.9375
3
using System; using System.Timers; namespace IP_GameChat { public class GlobalTimer : IDisposable { /// <summary> /// Timer für die Signalisierung des Intervals. /// </summary> public static Timer Atimer; /// <summary> /// Konstrukto...
129a2b5c31d7e30d4d942903cd38e328e28e9b09
C#
EvgenL/Wpf_3d_Viewer
/Wpf3d/Engine/Data/Mesh.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Controls; namespace Wpf3d.Engine.Data { class Mesh { public List<Triangle> Triangles = new List<Triangle>(); public Mesh() { } publ...
65fa62829f78b16a4e78adabf2d718dcce8f039b
C#
seanxwzhang/leetcode-1
/009 Palindrome Number/palindrome_number.cs
3.34375
3
/* * LeetCode Submissions by Xinyu Chen * Palindrome Number * https://leetcode.com/problems/palindrome-number/ * Runtime: 144 ms */ public class Solution { public bool IsPalindrome(long x) { if (x == 0) return true; if (x < 0) return false; int length = (int) Math.Ceiling(Math.Log10(...
ca57b5aa4c51f6fb45c39489176984f4239eb98b
C#
bechmannlimited/CompresJSON
/CompresJSON/Classes/Library/Utilities/CompresJSONUtilities.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace CompresJSON { public class CompresJSONUtilities { public static string EncryptAndCompressAsNecessary(string str) { //compress string compressedString = Compressor.Com...
ff3714ff824e4cdce2a32ee3b68c45b895fffe15
C#
SuperMeip/Evix-Skylands
/Assets/Scripts/Terrain/DataGeneration/Biomes/Biome.cs
2.765625
3
using Evix.Terrain.Features; using Evix.Terrain.DataGeneration.Sources.Noise; using Evix.Terrain.Collections; using Evix.Voxels; using System.Collections.Generic; namespace Evix.Terrain.DataGeneration.Biomes { public abstract class Biome { /// <summary> /// The current universal incremented polygon id bein...
755891986021f77384213c4ad3836d1739560973
C#
RyanLawWilson/FileSystem
/FileSystem/File.cs
2.75
3
using System; using System.Collections.Generic; using System.Text; namespace FileSystem { class File : FileSystemObject { public File() : base() { } public File(string name, string type = "") : base(name) { FileType = type; } public File(string name, string type, string size) : this(na...
e5dba26480762659162ff486f38feb39669add97
C#
dotnetknight/GoalTracker
/GoalTracker/Handlers/CommandHandlers/UserRegistrationCommandHandler.cs
2.53125
3
using GoalTracker.Domain.User; using GoalTracker.Models.Responses; using GoalTracker.Services.User_Service; using GoalTracker.Web.Commands; using MediatR; using System; using System.Threading; using System.Threading.Tasks; namespace GoalTracker.Web.Handlers.CommandHandlers { public class RegisterUserCommandHandle...
9de6a36b606d5f34b50641313d384b2a657b26ed
C#
DenisCo1100100/Unity_projects
/Tests/Assets/Scripts/Statistics.cs
2.671875
3
using UnityEngine; using UnityEngine.UI; public class Statistics : MonoBehaviour { #region inspector [SerializeField] private Slider _progresBar; [SerializeField] private Text _progresText; [SerializeField] private Text _comments; #endregion public static Statistics Stats { get; set; } pu...
b7084003148a6131cd0af00de779c408793c2764
C#
VictorGoubet/Projet_Software
/DIA2_GOUBET_DAEMS/Solution/Solution/Problem1/Node.cs
3.9375
4
using System; using System.Collections.Generic; using System.Text; namespace Solution.Problem1 { public class Node<T> { public T data { get; set; } public Node<T> next { get; set; } #region Constructors //Constructor with intial value public Node(T val) { data = val; ...
23f3285134fb94eab0bee77dd1d09af0943036a9
C#
JonGonard/SelaLibraryExample
/src/Sela.LibraryExample.Core/ViewModel/AddNewItemViewModel.cs
2.8125
3
using System; using Sela.LibraryExample.Core.Infrastructure; namespace Sela.LibraryExample.Core.ViewModel { public class AddNewItemViewModel : NotifyObject { private ItemType _newItemType; private NewItemSpecificViewModel _newItemSpecificViewModel; public AddNewItemViewModel() { _newItemSpe...
5e986137306f88f0e209a4c13c9902b14aee1f55
C#
ukrduino/PhotoManagerThreeLayer
/PhotoManager.DAL/Repositories/UnitOfWork.cs
2.671875
3
using System; using System.Configuration; namespace PhotoManager.DAL.Repositories { public class UnitOfWork : IDisposable { private readonly PhotoManagerDbContext _context; public PhotoRepository Photos { get; } public AlbumRepository Albums { get; } public PhotoCommentsReposit...
8c864662eb315c74d9e782b7fe8291399ed91b07
C#
oising/psprovider
/Trunk/PSProviderFramework/PSProviderThreadContext.cs
2.921875
3
using System; using System.Collections.Generic; namespace PSProviderFramework { public static class PSProviderThreadContext { [ThreadStatic] private static Dictionary<object, object> _context; public static object Current(object key) { if (_context == n...
4284294db1ce0816a20e4088838c77a1f5d544e3
C#
borisov90/.NET
/OOP/Excercise1/Animals/Kitten.cs
3.484375
3
namespace Animals { using System; class Kitten : Cat, ISound { public Kitten(string name, string gender, int age) : base( name, gender, age) { if (gender != "female") { throw new ArgumentException("Kittens are pussies (female)"); } ...
626deec058ff19e6c07013b78eae92398ece2bed
C#
aliv59git/Object-Oriented-Programming
/Lect4PrincipiNaOOP1/SchoolSystem/Models/Student.cs
3.109375
3
using SchoolSystem.Inetrface; using System; namespace SchoolSystem { public class Student : Person, IPerson, IComparable<Student> { public Student(string name, string email, int studentID) : base(name, email) { this.StudentID = studentID; } public int ...