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
6fa1ba7fa6abacce348f275f81b636a252b8d030
C#
davidjeet/Avalara
/Weather27612.Core/Extensions.cs
3.40625
3
using System; using System.Collections.Generic; using System.Data; using Weather27612.Core.Model; namespace Weather27612.Core { public static class Extensions { /// <summary> /// Converting data from a DataTable to a CLR object. /// </summary> /// <param name="dataTable"></para...
264118d371df241911c23291ef5d051421b853e8
C#
StarDust0814/CSharpHomework
/homework7/homework7/Order.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace homework7 { //订单类,包含订单号、用户名、多条订单明细 [Serializable] public class Order { private int _orderNumber; private string _guestName; OrderDetail[] _orderDetails;...
575b4214d3ad53e9b0ea11828a7cf0e7e2968321
C#
sshyran/SignalKo-SystemMonitor
/src/Agent.Core/Collectors/CustomMachineNameProvider.cs
2.6875
3
using System; namespace SignalKo.SystemMonitor.Agent.Core.Collectors { public class CustomMachineNameProvider : IMachineNameProvider { private readonly string machineName; public CustomMachineNameProvider(string machineName) { if (string.IsNullOrWhiteSpace(machineName)) ...
61579b44d69b8481f01075a45912200266b2310e
C#
sssss123455/QRtoPDF
/QRtoPDF/Models/QRCode.cs
2.6875
3
using QRCoder; using System.Drawing; namespace QRtoPDF.Models { public class QRCode { public string Qr { get; set; } public static QRCode GetOne(string t) { QRCodeGenerator qrGenerator = new QRCodeGenerator(); QRCodeData qrCodeData = qrGenerator.Crea...
3d263f8c5c9f94027fe1afaaa9fde2d7c43ae866
C#
PonnaSai/StartupProjects
/public/New folder/Repositories/StatesRepository.cs
2.78125
3
using BalanceTransfer.Models; using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Web; namespace BalanceTransfer.Repositories { public class StatesRepository { private string _connectionString = null; public StatesRepository(string conn...
61061badd0003427f70647633f7befafc9e19d7e
C#
LeoMarques603/Exercicio-16-04-2019
/Roteiro_02/Roteiro_02/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Roteiro_02 { class Program { static void Main(string[] args) { Gato gato = new Gato("Garfield", 8); gato.Comunicar(); ...
6f26fb0127d3ba755d3858bdd48ff1f442579c20
C#
hhgwx/TestTool
/dushu/dushu/RegeditMng.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Win32; namespace ForAll { class RegeditMng { private RegistryKey myReg = null; public RegeditMng(string parToolName) { RegistryKey regRoot = Registry.CurrentUser.CreateSubKey("S...
99bf8d70d01ace35439e6005f68c069e7c5a39a8
C#
mrazzano/HackerRank
/HackerRank/Algorithms/Greedy/JimAndTheOrders.cs
3.578125
4
using System; using System.Linq; using System.Collections.Generic; using HackerRank.Library; namespace HackerRank.Algorithms.Greedy { public class JimAndTheOrders : IQuestion { private const string question = "Jim and the Orders"; public void Run(int order) { Utility.Print...
1ae843e150f6c9da65de56115f23c8794ce8b303
C#
itZhy/file-md5-example
/C#/MD5Calculation/FileMD5.cs
2.796875
3
using System.Security.Cryptography; using System.IO; using System; namespace MD5Calculation { class FileMD5 { public string Calculate(string filePath) { using (FileStream stream = new FileStream(filePath, FileMode.Open, FileAccess.Read)) { return BitConv...
dc67b33a96da8c9a32578cf73ee94d641871f9f6
C#
atcain-git/Teacher-student_Msys
/双选系统/teacher/SQLDAL/Group.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SqlClient; using System.Data; namespace SQLDAL { public class Group { public DataTable get_Entitys(string grade,string major,string tid) { string sql = "...
7d0e9ce9b1287957904034cf86d84886a8d70304
C#
amy432/algorithm008-class01
/Week_01/LeetCode-88/Program.cs
3.84375
4
using System; namespace LeetCode_88 { public class Solution { public static void Main(string[] args) { var sol = new Solution(); int[] nums1 = new int[] { 1, 2, 3, 0, 0, 0 }; int m = 3; int[] nums2 = new int[] { 2, 5, 6 }; int n = 3;...
527356e4e023b5c58aa97857ce0d60cfc8b98f73
C#
klaydze/clash-royale
/ClashRoyaleApi/ClashRoyaleApi.Infrastructure/SearchExpressionProviders/Contracts/ISearchExpressionProvider.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Text; namespace ClashRoyaleApi.Infrastructure.SearchExpressionProviders.Contracts { public interface ISearchExpressionProvider { /// <summary> /// Get the list of valid search and comparable operators. ...
c53f0254661aaad888612f2504bf1fcd0ac214be
C#
formist/LinkMe
/Apps/Web/ui/controls/common/FileManager/xDirectory.cs
2.890625
3
using System; using System.IO; using System.Collections.Generic; using System.Text; //#////////////////////////////////////////#// //# Iterative Version of xDirectory.Copy() #// //# Coder: John D. Storer II #// //# Date: Thursday, May 18th, 2006 #// //# Tool: Visual C# 2005 Express Edit...
64e9c1cbda59a572c6129f251dd1011583ad7665
C#
329277920/Snail.Collector
/Snail.Collector/Common/ReaderWriterLockSlimExtends.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Snail.Collector.Common { public static class ReaderWriterLockSlimExtends { public static T SafeReadValue<T>(this ReaderWriterLockSlim lockSlim, Func<T> ...
6ec61f70505d1300c48e3e876d97993202dc697a
C#
lucasteles/TelesCoin
/TelesCoin.BlockChain/Block.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; namespace TelesCoin { public class Block : IBlock { public string PreviousHash { get; } public string Hash { get; private set; } public int BlockSize { get; } ...
40d81d65db9352709fd5ce7b2a49f4348c98016e
C#
blackninja7/design-patterns-by-example
/src/VisitorPattern/Solution/Solution.cs
3.6875
4
namespace VisitorPattern.Solution { public class Solution : BaseExample { public override void ExpectedResult() { Man theMan = new Man(); Jake jake = new Jake(); Woman theWoman = new Woman(); Mary mary = new Mary(); theWoman.Accept(th...
7910d9d6a2e756ee6f4b38b06b816fc5e6009e01
C#
PyArchitect/Xamarin-Test
/XamApp/XamApp/QuotesPage.xaml.cs
3.078125
3
using System; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace XamApp { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class QuotesPage : ContentPage { public QuotesPage() { InitializeComponent(); Slider.Value = 17; ...
dd355367fa773b9af8d55fec9af0f8b7cb784629
C#
lipoyang/IniFileSharp
/Test/Program.cs
2.9375
3
using System; using System.IO; using IniFileSharp; namespace TestIniFile { class Program { static void Main(string[] args) { Console.WriteLine("Test IniFile\n"); if (!Test1()) goto ERROR; if (!Test2()) goto ERROR; if (!Test3()) goto ERROR; ...
a2834b4c1bf7995fe1ff69869c495c5a14170a87
C#
disulfiram/CSharpPart2
/7. Text Files/2. Two files concat/Concat.cs
3.390625
3
using System; using System.IO; class Concat { static void Main(string[] args) { Console.Write(@"Input first file name(or use default ""first.txt""): "); string file1Name = Console.ReadLine(); Console.Write(@"Input second file name(or use default ""second.txt""): "); string file...
0bffe716adddcd02f9a66bb9e2ce60b94f888872
C#
fuutougames/Project_TPSandRTS
/Client/Assets/RTTGame/Behavior Designer Samples/Common/WithinDistance.cs
2.78125
3
using UnityEngine; using BehaviorDesigner.Runtime; using BehaviorDesigner.Runtime.Tasks; using Tooltip = BehaviorDesigner.Runtime.Tasks.TooltipAttribute; namespace BehaviorDesigner.Samples { // Check to see if the any object within the targets array is within the distance specified [TaskCategory("Common")] ...
feb302a8ba0b9ae4a5561ceef73f5bbb9bb39de7
C#
JoeBiellik/auditor
/Checks/Directory/Exists.cs
2.640625
3
using System; using System.Diagnostics.CodeAnalysis; using Auditor.SDK.Checks; using Auditor.SDK.Targets; namespace Auditor.Checks.Directory { [SuppressMessage("ReSharper", "UnusedMember.Global")] public class Exists : DirectoryCheck { public override string Name => "Directory Exists"; public override Version V...
9ebe28176ec82a4ff238a0500e81f4a7f26cfa28
C#
shendongnian/download4
/code1/36085-570344-958116-4.cs
3.265625
3
public static void Test1() { List<int> myList = new List<int>() {2,1,42,0,9,6,5,3,8}; foreach (var g in myList.GetSequences(i => i < 6)) { Console.WriteLine("g"); foreach (int i in g) { Console.WriteL...
dbaa8c8a591783e716a873097f1a7eb0db9bc098
C#
kiskinovKiril/Programming-Basics-with-Csharp-
/Programming Basics Exam - 29 February 2020/Exam/Problem 5/Program.cs
3.734375
4
using System; namespace Problem_5 { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int kidsCount = 0; int adultsCount = 0; int moneyForToys = 0; int moneyForSweaters = 0; while (inpu...
81add0d38a9ea7df202a3705b17bc34be3d60161
C#
rony4d/DrawLine-First-Principles
/LineDrawer.Test/LineTest.cs
3.03125
3
using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; namespace LineDrawer.Test { [TestClass] public class LineTest { [TestMethod] public void ShouldComputePointsForLine() { Line line = new Li...
d374dfd0c5e6ab789ba0c9ca23107c58f7aa9001
C#
abhinavsushanth/C_Sharp_Number_Guessing_Game
/Program.cs
4.09375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NumberGuessingGame { class Program { static void Main(string[] args) { Random r = new Random(); int ranNum = r.Next(1, 100); Consol...
0573d722fa0c34b86cd584f6680edaf423b017db
C#
shendongnian/download4
/code2/256815-5154946-10982964-4.cs
2.546875
3
public class MyClass { ThisTypeFromExternalAssembly variable; static MyClass( ) { InitialiseExternalLibrary( ); } public MyClass( ) { variable = new ThisTypeFromExternalAssembly( ); } }
3a20868e1d25c37952ded5bffb4ffc8c76255f8e
C#
tGecko/HotkeyListener
/HotkeyListener/HotkeySelector.cs
2.65625
3
#region Copyright /* * Developer : Willy Kimura (WK). * Library : HotkeySelector. * License : MIT. * */ #endregion using System; using System.Collections; using System.Diagnostics; using System.Windows.Forms; using System.ComponentModel; using System.Collections.Generic; namespace WK.Libraries.H...
891a9b67385150e6ce5a5072bd921d9885409aec
C#
sonicmouse/LGAudioSwitch
/LGAudioSwitch/Models/Extensions.cs
2.65625
3
using LGAudioSwitch.CoreAudioInternal; using System.ComponentModel; namespace LGAudioSwitch.Models { internal static class Extensions { public static EDataFlow ToDataFlow(this AudioDeviceType type) { switch (type) { case AudioDeviceType.All: return EDataFlow.All; case AudioDeviceType.Input: return...
2df7eceb76b810f75255e089b15f4a2b6127dd70
C#
redplane/Olive
/001 - SOURCE_CODE/002 - OLIVES_SYSTEM/MultipartFormDataFormatter/Converters/HttpContentToMultipartFormDataConverter.cs
2.90625
3
using System; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using MultipartFormDataMediaFormatter.Converters.Original; using MultipartFormDataMediaFormatter.Models; namespace MultipartFormDataMediaFormatter.Converters { public class HttpContentToMultipartFormDataConverter : HttpContentOr...
6b9e1ad716b870f6f2e61d13af7c6d89c0e2de55
C#
atanashristov/DesignPatternsDotNet
/DesignPatternsDotNet.Tests/Tests/Structural/Composite/Products/Base/CompositeProduct.cs
2.890625
3
using DesignPatternsDotNet.Structural.Composite; using System.Linq; namespace DesignPatternsDotNet.Tests.Tests.Structural.Composite.Products.Base { public abstract class CompositeProduct : Product { public override BaseComponent<Product> GetComposite() { return this; } ...
4c45f48a28f33e17f2a294b4207914e7274fa815
C#
tbircek/metering
/metering.core/Logging/Core/LogFactoryLevel.cs
2.96875
3
 namespace metering.core { /// <summary> /// the level of details to output for a logger /// </summary> public enum LogOutputLevel { /// <summary> /// logs everything /// </summary> Debug = 1, /// <summary> /// logs everything except debug informatio...
fbe5f68469fc7dbee67152528f45c82c10d6d780
C#
onepoint16/WhosOnTheDecks
/WhosOnTheDecks.API/Controllers/HomeController.cs
3.140625
3
using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using WhosOnTheDecks.API.Data; using WhosOnTheDecks.API.Dtos; using WhosOnTheDecks.API.Models; namespace WhosOnTheDecks.API.Controllers { //Auth controller created to authorise ...
c26227e5edba90b8a73e45407d04543421574aab
C#
edanielbluford/InheritancePratice
/InheritancePractice/Mammal.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InheritancePractice { class Mammal: Species { public Mammal() { //default constructor } public Mammal(string name, double weight, double ...
d4efbc8d8bbd70449a6c1a903aae43d6f0b92a75
C#
NikitaSamkov/Winforms-roguelike-platformer
/Winforms platformer/Great Hero/Model/World/Room.cs
2.703125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using Winforms_platformer.Model; namespace Winforms_platformer { public class Room { private Player player; public int gForce { get; set; } public R...
be505d78ebd5c9e87fda9b55553d9f13108814e6
C#
captainkidd5/SecretGame
/SecretProject/SecretProject/Class/MovieStuff/SceneStuff/MovieScene.cs
2.6875
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Graphics; using SecretProject.Class.Universal; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SecretProject.Class.MovieStuff.SceneStuff { ...
e5f7bbf907e325c06b9cb3fe7b8b690e50aa25c1
C#
Bilqistsaabitah/PRG2_20202_P5_1_2_07
/PRG2_20202_P5_1_2_07/Form1.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 PRG2_20202_P5_1_2_07 { public partial class Form1 : Form ...
95b5a0c33c3d123c82eac582a7e28510d0a7a9df
C#
medvedbeast/Projecto
/projecto/Infrastructure/Attributes/IsRequiredAttribute.cs
2.625
3
using Microsoft.AspNetCore.Mvc.DataAnnotations; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; using Microsoft.Extensions.Localization; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Projecto.Infrastructu...
8f059f2da01f8e00657492651218e410adf16f52
C#
netdragoon/helpWebForms
/Canducci.HtmlHelpers/RadioButtonList.cs
2.53125
3
using System.Collections; namespace System.Web.Mvc { public sealed class RadioButtonList { #region Constructs public RadioButtonList(IEnumerable items, string dataValueField, string dataLabelField, object selectedValue = null) { Items = items; DataValueF...
0c59b357aeba5d8b1ce81e03b540a75d751569e9
C#
chrisforbes/Ijw.Framework
/IjwFramework/Ui/Node.cs
2.71875
3
using System; using System.Collections.Generic; using System.Text; namespace IjwFramework.Ui { public class Node { public Node parent; readonly List<Node> children = new List<Node>(); bool expanded = true; public bool Expanded { get { return expanded; } } public int Count { get { return c...
621c4d7e72b5d9e8d219e31c001a14424bacfb11
C#
csizo/wpf-dynamic-ui
/tags/1.0.1.82/src/Csizmazia.WpfDynamicUI/BusinessModel/BusinessApplication.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using Csizmazia.WpfDynamicUI.BusinessModel.BuiltInModel; namespace Csizmazia.WpfDynamicUI.BusinessModel { public class BusinessApplication : NotifyPropertyChanged { private const string WindowTitleString = "Wpf Dynamic User Int...
80bcedeb3552cf1d3b24a3e3f496812dead302f4
C#
iwate/FxOSHelper
/FxOSHelper/FxOSCorsPolicyProvider.cs
2.546875
3
using System.Net.Http; using System.Threading; using System.Threading.Tasks; using System.Web.Cors; using System.Web.Http.Cors; namespace FxOSHelper { public class FxOSCorsPolicyProvider : ICorsPolicyProvider { private string[] origins; public FxOSCorsPolicyProvider(string[] allowOrigins) ...
203ccfd4be345adef393aea830566e76fff7b9db
C#
Endaru/HotelProject
/HotelProject/Forms/InfoScreen.cs
2.78125
3
using System; using System.Data; using System.Drawing; using System.Windows.Forms; using System.Text.RegularExpressions; using System.Linq; using HotelProject.Objecten; namespace HotelProject { public partial class InfoScreen : Form { /// <summary>Het form dat deze heeft aangemaakt.</summary> ...
cad094f7d90788896ec267b1ad84ef8fa78537d7
C#
kai2008009/Procedure_Oriented
/算术操作符/Program.cs
3.65625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 算术操作符 { class Program { enum Weekday { sunday, Monday, Tuesday, wednesday, Thursday, Friday, Saturday }; static void Main(string[] args) ...
fad9381b054f6bddce1fb75a50a486e8e49e8f01
C#
Miroslav-Miro/SoftUni-Software-Engineering
/CSharpFundamental/BasicSyntax,ConditionalStatementsAndLoops-Exercise/09.PadawanEquipment/Program.cs
3.46875
3
using System; namespace _09.PadawanEquipment { class Program { static void Main(string[] args) { double havedMoney = double.Parse(Console.ReadLine()); double students = double.Parse(Console.ReadLine()); double lightsabersByOne = double.Parse(Console.ReadLine...
53250b6e6df49ed2c8342d553326f987ea651601
C#
alua712/lab3
/ELALab3Students/Form1.cs
2.84375
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 ELALab3Students { public partial class Form1 : Form { string firstNameField; ...
cabde275f4ab51abb95ebcc439dc82d0446110ae
C#
Gallio/mbunit-v2
/src/quickgraph/QuickGraph.Algorithms/Representations/ReversedBidirectionalGraph.cs
3.21875
3
using System; namespace QuickGraph.Representations { using QuickGraph.Concepts; using QuickGraph.Concepts.Traversals; using QuickGraph.Concepts.Collections; using QuickGraph.Collections; /// <summary> /// Adaptor to flip in-edges and out-edges. /// </summary> /// <remarks> /// <para> /// This ...
a7b7577e5634d7eaee8f09c8eaaf3d6ef3b1ee50
C#
nickgaudreau/PoolMvc
/BLL/PoolHockeyBLL/MailUtility.cs
2.703125
3
using System; using System.Net; using System.Net.Mail; using PoolHockeyBLL.Log; namespace PoolHockeyBLL { public class MailUtility { private const string Smtp = "mail.poolhockey.xyz"; private const int SslPort = 465; private const int Port = 25; private const string UserEmail =...
1fd2b74493ffb58776e85209916d21cd0e9c380e
C#
gregkalapos/TodoManager
/src/Client/ToDoManager.ClientShared/Services/CloudPomodoroDataStore.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using ToDoManager.ClientShared; using ToDoManager.Model; namespace ToDoManager.Services { public class CloudPomodoroDataStore : IPomodoroDataStore {...
54c5f9e04b654abbcbe0921dae7975a7262f22a9
C#
mrlongitqn/quan-ly-huyen-uy
/SourceCode/QuanLyHoSoCongChuc/Repositories/ThanhPhanGiaDinhRepository.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace QuanLyHoSoCongChuc.Repositories { #region using using QuanLyHoSoCongChuc.Models; #endregion public class ThanhPhanGiaDinhRepository { public static List<ThanhPhanGiaDinh> SelectAll() { return DataCo...
28584514defdb1715659ea785a2f3688ebf024f1
C#
parloti/TypeRegex
/TypeRegex/Pattern.Anchors.cs
3.328125
3
namespace TypeRegex { /// <summary> /// Typified help in building regular expressions pattern. /// </summary> public partial class Pattern { #region Anchors /// <summary> /// By default, the match must occur at the beginning of the string; in multiline mode, it must occur at t...
fc6c0cc24d121d035eca638dc544e7f5de5ba786
C#
chatsagnik/PEAR
/Email.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Text; using System.Threading.Tasks; namespace PEAR { public class Email { private static string toemail = string.Empty; private string text = string.Empty; private string...
9b3edd0d33e3fe949ec41b48579fba2a19904b5a
C#
chrismcmorran/BLEU
/BLEU/BleuScore.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using BLEU.Collectors; using BLEU.Structures; namespace BLEU { public class BleuScore { /// <summary> /// Calculates the BLEU score. /// </summary> /// <param name="references">The reference sentences.</param> ...
5f9f412397c54703a961eb63205dd6f4ccd014fd
C#
lqwangxg/MouseTracker
/MouseTracker/Tool.cs
2.578125
3
using System; using System.Text; using System.Runtime.InteropServices; using Common; namespace MouseTracker { class Tool { public IntPtr getRootOwner(POINT point, out IntPtr hWnd) { hWnd = User32.WindowFromPoint(point); IntPtr hOwner = User32.GetAncestor(hWnd, 3); // GA_...
8532bea380fecd3fcd7a278d5551bdef22400271
C#
VincentA55/CO453ConsoleApp15
/ConsoleAppProject/App02/BMICalculator.cs
3.734375
4
using System; namespace ConsoleAppProject.App02 { /// <summary> /// Calculates the BMI of the user /// </summary> /// <author> /// Vincent Assolutissimamente /// </author> public class BMICalculator { public string Units { get; set; } public double Weight { get; set; }...
0da995829915200f3a1432efed0f3dce3fece8b1
C#
CarsonCram/Bisection-Algorithm
/EX9A/Q1.cs
3.9375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EX9A { public class Q1 { //Implement bisection algorithm //Write a console application implementing the bisection algorithm. //As the initial list, use an integer array from 1 to 10, like t...
71c0782963a3a636b885f65a17a9012a2e9ca879
C#
fantomphreaker/GothamCare
/GothamCaresAPI/GothamCaresAPI/Controllers/AdminController.cs
2.6875
3
using BusinessService.AdminService; using DataService.Models; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace GothamCaresAPI.Controllers { [Route("api/[controller]")] [ApiController] public class AdminController : C...
b53436d52752f526ba960677331546eada9d7d17
C#
JCH97/threading
/Program.cs
2.84375
3
using System.Threading; using NLpBarrier; using NLpPhilosopher; using NLpBarber; using NLpCountdown; using System; using NLpMonitor; namespace LP { class Program { #region Utils static object objMonitor = new object(); static int xMontitor = 0; static LpCo...
cc996bfb0b09931ef51e48c474a369feee5421d4
C#
Moonbear214/GolfingStatsApp
/GolfingStats/GolfingStats/Factories/StatisticsFactory.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using GolfingStats.Models; using GolfingStats.Models.ShotModels; namespace GolfingStats.Factories { public class StatisticsFactory { /// <summary> /// If the 'updateStats' bool ...
b4858d641c162385ac0f383d565fd1ed86439a00
C#
DevVKorenkov/TruckReport
/TruckReportLib/Models/UserRequest.cs
2.765625
3
using System; using TruckReportLib.Abstract; namespace TruckReportLib.Models { public enum Frequency { day, week, month } public enum ReportType { MoveStop, MessageFromObject } /// <summary> /// Отчет по объекту /// </summary> public cl...
bc52d9e7a3dc1b0aa4a98ebbaabe5aa909da532b
C#
KirillZhdanov/Net.Training.2018
/NET.S.2018.Zhdanov.04/Polynom/Poly.Logic/Poly.cs
3.578125
4
using System; namespace Poly { public sealed class Polynomial { private double[] coeffs; ///<summary> /// Poly init ///</summary> ///<param name = "coefficients">.</param> public Polynomial(params double[] coefficients) { coeff...
1bf0d28076bfe8a1e849c556d1a058b8aecbb757
C#
StiliyanM/Softuni
/C# Fundamentals/CSharp OOP Basics/Encapsulation - Exercise/P06FootballTeamGenerator/TeamGenerator.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; class TeamGenerator { public List<Team> Teams { get;private set; } = new List<Team>(); public void AddTeam(string teamName) { var teamToAdd = new Team(teamName); Teams.Add(teamToAdd); } public void AddPlayerToTeam...
2574defe9863f642ffeb1d2523a51439a964639f
C#
NaxNax666/Final
/GAMEOFTHEYEAR/game/BattleArmyClasses/Effects.cs
3.046875
3
using System.Collections.Generic; namespace game.BattleArmyClasses { public class Effects { public List<(TypeOfEffect, int)> AllEffects; public Effects() { AllEffects = new List<(TypeOfEffect, int)>(); } public void Add((TypeOfEffect, int) effect) ...
0f99ee31608e4aa43026e63c785a06346e84c421
C#
domBusacca/LiftApi
/LiftApi.DataLayer/Flights/FlightRepo.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LiftApi.Objects; namespace LiftApi.DataLayer.Flights { public class FlightRepo : IFlightRepo { private List<Flight> MockedFlightData; public FlightRepo() ...
23818952177db20a4c3333b082d583ca3153c899
C#
BEsanov/SavannahGame
/Game.Views/Console/ConsoleInput.cs
2.578125
3
using System; using SavannahGames.Game.Interfaces; namespace SavannahGames.Game.Views { public class ConsoleInput : IConsoleInput { public ConsoleKeyInfo ReadKey() { return System.Console.ReadKey(); } public string ReadLine() { return System.Cons...
42e4ebf9878e8398dca6e34ccfcee6ca1d089b06
C#
MatheusMMonteiro/Mecanica
/ProjetoMecanico/CodigoSenha.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Data.SqlClient; using System.Transactions; namespace ProjetoMecanico { public class CodigoSenha { public int UsuarioId { get; set; } public string...
fae58f03eed791b6a8981b13c1a2d406fc684544
C#
tvhees/NutNights
/Assets/_scripts/Controllers/LabyrinthController.cs
2.53125
3
using System.Collections.Generic; using Collections; using GameData; using UnityEngine; namespace Controllers { [CreateAssetMenu(fileName = "LabyrinthController.asset", menuName = "Controllers/Labyrinth")] public class LabyrinthController : CollectionController { public Constants.CardType LastType...
e63c89c9fec3b79f10268ab1625a5488027f5c46
C#
tanbirhossain/practical-dapr
/src/ProductCatalog/CoolStore.ProductCatalogApi/UseCases/GetProductsByPriceAndName/GetProductsByPriceAndNameHandler.cs
2.578125
3
using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using CoolStore.ProductCatalogApi.Persistence; using CoolStore.Protobuf.ProductCatalog.V1; using MediatR; using Microsoft.EntityFrameworkCore; namespace CoolStore.ProductCatalogApi.UseCases.GetProductsByPriceAndName { public cl...
463a654dd6d89da1c230dea7eb43f8a0544bc6f9
C#
scottgibson21/deck-of-cards
/DeckOfCardsApp/Card.cs
3.125
3
namespace DeckOfCardsApp { public class Card { public string MyProperty { get; private set; } public ESuite Suite { get; set; } public int Value { get; set; } public string ValueToString() { switch (Value) { case 1: ...
4c002dbd1a15a34e13a030707a1fa96369a13874
C#
dnyaneshgawade/LogicalPrograms
/LogicalPrograms/StopWatch.cs
3.578125
4
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; namespace LogicalPrograms { public class StopWatch { public static int choice; public static void Watch() { Stopwatch stopwatch = new Stopwatch(); Console.WriteLine("Pre...
1409fc8a777b092fc0cadcfbf2032b9fa6d11668
C#
dimitrietataru/hackerrank
/Algorithms C#/Algorithms/01. Warmup/Compare the triplets/Program.cs
3.609375
4
using System; using System.IO; class Program { static void Main(string[] args) { var reader = new InputReader(true); int[] alicePoints = reader.NextArrInt; int[] bobPoints = reader.NextArrInt; Solve(alicePoints, bobPoints); reader.Close(); } static void Solv...
37089753625017dc394d18d060ef88fdf854ac6f
C#
Dominent/TelerikAcademy
/C# Part 1/CSharpPartOneExam_02_02_2015/01.Printing.cs
3.578125
4
using System; namespace Printing { class Printing { static void Main() { int valN = Convert.ToInt32(Console.ReadLine()); int valS = Convert.ToInt32(Console.ReadLine()); decimal realm = 500.0m; decimal valP = Convert.ToDecimal(Console.ReadLine());...
81821bdd306b20457f55380cff3c694f2231e065
C#
MarcinSzyszka/Xamarin.AndroidInThreeWays
/AndroidCodeBehind/MainActivity.cs
2.5625
3
using Android.App; using Android.Widget; using Android.OS; namespace AndroidCodeBehind { [Activity(Label = "AndroidCodeBehind", MainLauncher = true, Icon = "@drawable/icon")] public class MainActivity : Activity { private TextView _clicksCountTxt; private Button _helloWorldBtn; private int _clicksCount; p...
6c1e1d2ca62e15b5d6b03a7a9de0611a5a64077f
C#
luiseduardohdbackup/CPipe
/Beta/WinFormEntry/XNA/Sys/SysCollector.cs
2.578125
3
using System; using System.Collections.Generic; namespace SysLib { public class SysCollector : IDisposable { public delegate void GameListener(ISysData gameData); public GameListener Listener; public static SysCollector singleton; public SysCollector() { ...
21d05e6af14b1dc88d60e181cbfbc09fef6dafa0
C#
Alexnorvag/House-Account-Manager
/House Accounting Manager/all classes/Insurance.cs
2.859375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace House_Accounting_Manager.all_classes { [TypeConverter(typeof(ExpandableObjectConverter))] [System.Serializable()] public class Insurance { ...
d279db00dcd657294515d6eb57e83c16759b3dcb
C#
purple-sunset/TinhToanTaiChinh
/MoHinhTrongSo/ViewModel/DuLieuViewModel.cs
2.84375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using MoHinhTrongSo.Annotations; namespace MoHinhTrongSo.ViewModel { public class DuLieuViewModel:INotifyProper...
c49a23a3c6dc6c9496e85b170355e5d0fdaf5a75
C#
portlandtn/DetailerCalculator
/DetailerCalculator/Math_UnitTests/Conversions.Tests.cs
2.96875
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using DetailerCalculator; using System; namespace UnitTests { [TestClass] public class ConversionsTests { /// <summary> /// Checks foot to decimal conversions. /// </summary> [TestMethod] public void FootToDecimal() { ...
57629563cc3fdc67afcc1add2da5eae5c371041f
C#
k-pepsico/WPF_Foreground-subtraction
/WpfBindingSample/Utils/ViewModelCommand.cs
3.03125
3
using System; using System.ComponentModel; using System.Windows.Input; namespace WpfBindingSample.Utils { public class ViewModelCommand : ICommand { private readonly Func<bool> _CanExecute; private readonly Action _Execute; public ViewModelCommand(Action execute) : this(exe...
eb42baab0557e54ad84ee2ac7ddf49818d439c87
C#
statiqdev/Statiq.Framework
/src/core/Statiq.Common/Documents/IDocumentToLookupExtensions.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using Statiq.Common; namespace Statiq.Common { /// <summary> /// Extensions for creating lookups from document sequences. /// </summary> public static class IDocumentToLookupExtensions { /// <summary> /// Creates a ...
0faae6abaacc152e77c6afcdfe29e320afbc3fa4
C#
LucasDenele/CSharp2018-2019
/JeuDeRole/JeuDeRole/Player/PNJ/Monster.cs
2.84375
3
using JeuDeRole.Weapons.Weapons.elem; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JeuDeRole.Player.PNJ { class Monster : Player { #region Variables public Cudgel Cudgel { get; private set; } #endregi...
4f34d5abb8b7ec03b835a2e558da347b09ff9926
C#
YoTsenkov/TelerikSoftwareAcademyHomeworks
/C# part1/PrimitiveDataTypesAndVariables/5. CharHexadecimal/DecimalToUnicode.cs
2.640625
3
using System; class DecimalToUnicode { static void Main() { int dec = 72; char a = Convert.ToChar(dec); Console.WriteLine(a); } }
1cfb8a07f11d3e4a80b610173d878bc6733e0db7
C#
arlyon/browser
/Browser/Presenters/EditFavoritesPresenter.cs
2.703125
3
namespace Browser.Presenters { using Browser.Favorites; using Browser.Requests; using Browser.Views; /// <summary> /// The favorites presenter. /// </summary> public class EditFavoritesPresenter { /// <summary> /// Initializes a new instance of the <see cref="EditFavori...
cc9f88e0d5aa4a4c3095a84274879b0306be7627
C#
Kinaetron/Projecktor
/Projecktor.WebUI/Infrastructure/Concrete/SecurityService.cs
2.5625
3
using Projecktor.Domain.Entites; using Projecktor.WebUI.Infrastructure.Abstract; using Projecktor.WebUI.Models; using System; using System.Web; using System.Web.Helpers; using System.Web.SessionState; namespace Projecktor.WebUI.Infrastructure.Concrete { public class SecurityService : ISecurityService { ...
66ffb92db5225e413b7b474efcd3db022fa88b65
C#
gyosi/Test2
/ActionRPG/Assets/Resources/Scripts/OutLineEff.cs
2.578125
3
using UnityEngine; using System.Collections; public class OutLineEff : MonoBehaviour { public Shader baseShader; // 기본 쉐이더 public Shader changeShader; // 선택 되었을때 바꿔 줄 쉐이더 public Renderer[] renderer; // Update is called once per frame void Update() { if (Input.GetMous...
78fda03b6a797abc4f7382fdeae7fce5e4c1b386
C#
anacat/Character-Controller
/Assets/Scripts/ScriptableObjects/GameData.cs
2.5625
3
using UnityEngine; [CreateAssetMenu(fileName = "GameData", menuName ="Data/GameData")] public class GameData : ScriptableObject //um asset para guardar vários tipos de informação; tipo um game object, mas é um asset { public int coinsCaught; public string gameString; public void SaveGameState() { ...
dde23500912eb1a568da178cdc4c29dcbcca2f52
C#
thespivey/Lin2RevJunk
/SourceFiles/L2RPacketReader/L2RPacketReader/CusEnum/QuestState.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace L2RPacketReader.CusEnum { class QuestState { public static string Enum(byte value) { switch (value) { case 0: return "Not Taken"...
e8f344540e582c9d0c6801372bd436918119713b
C#
10tek/PracticalWork6
/PW6/RangeOfArray.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PW6 { class RangeOfArray { private int[] _array; public int Lenght { get; set; } public int EndIndex { get; set; } public int BeginIndex { get; set; } ...
2caa8873f3aa0feb8f8507be96a5bf2f3d90e709
C#
The-Running-Dev/Starter.Stage7
/Starter.Framework/Extensions/ObjectExtensions.cs
3.546875
4
using System; using System.Linq; using System.Text; using System.Collections.Generic; using Newtonsoft.Json; namespace Starter.Framework.Extensions { /// <summary> /// Extension methods to the Object type /// </summary> public static class ObjectExtensions { /// <summary> /// Comp...
f6d06680450bea248408b2ca469db50c1e5277a4
C#
franklinbenini/UtilitariosCSharp
/Utilitarios/UtlConverte.cs
3.9375
4
using System; using System.Collections.Generic; using System.Text; namespace Utilitarios { /// <summary> /// Classe utilitária para trabalhar com conversões /// </summary> public static class UtlConverte { /// <summary> /// Converte um valor "S" e "N", ou "1" e "0", ou "true" e "fa...
fa218eb22b4658cd62b457f3cacf43631ed68a3d
C#
bibhuti-1985/Amazon
/src/Amazon.DynamoDb.Tests/Helpers/AttributeWriter.cs
2.828125
3
using System; using System.Collections.Generic; using System.IO; using System.Text.Encodings.Web; namespace Amazon.DynamoDb.Models { using static DbValueType; public readonly ref struct AttributeWriter { private readonly TextWriter writer; public AttributeWriter(TextWriter w...
5b8863d40e2c748ec7cd5e6ba10d86176ecf7882
C#
yongLi-lou/CoreApi
/CoreApi/TemplateApi/Common/ModelStateExtensions.cs
2.6875
3
using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Http; namespace TemplateApi { public static class ModelStateExtensions { /// <summary> /// 汇总错误信息 /// </summary> ...
29481f99d98697350928cd10a90fa124835b15c4
C#
Nahobi-no-Kami/Database_SQLite
/Laba_4_CSharp_Test/Test.cs
2.9375
3
using System.Data.SQLite; using System.IO; using System.Data; using Microsoft.VisualStudio.TestTools.UnitTesting; using Laba_4_CSharp; namespace Laba_4_CSharp_Test { [TestClass] public class Test { [TestMethod] public void CheckAdd() { SQLiteConnection Connection; ...
7b705d517b42358c7f29c201792bd999f678a852
C#
Slaw145/Observer
/Auction/Bidder.cs
3.546875
4
using System; using System.Collections.Generic; using System.Text; namespace Auction { class Bidder : Observer { private string name; public double bidPrice; public Bidder(string name) { this.name = name; } public void update() { ...
694b4d513875e3350c24c63192bda30a385c2ad9
C#
teddydamian/TimePerson
/TimePerson/Models/TimePerson.cs
3.34375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.VisualBasic.FileIO; namespace TimePerson.Models { public class TimePeople { /// <summary> /// Properties for TimePeople /// </summary> public int Ye...
a124a96020d1ca790b5aeea4f6d27be7de861e10
C#
contensive/samples
/server/AddonSamples/CPCacheBaseClass/CacheGetNumberSample.cs
2.921875
3
 using Contensive.BaseClasses; namespace Contensive.Samples { public class CacheGetNumberSample : AddonBaseClass { public override object Execute(CPBaseClass cp) { string key = "numberCache"; // Get the double double value = cp.Cache.GetNumber(key); ...
f71af3546272b49d23c21c56cd1607d39b4eb344
C#
plwh/TelerikHomework
/CSharp part1/06. Loops/03.MinMaxSumAverageOfNNumbers/MinMaxSumAverageOfNNumbers.cs
4.34375
4
/* Write a program that reads from the console a sequence of n integer numbers and returns the minimal, the maximal number, the sum and the average of all numbers (displayed with 2 digits after the decimal point). The input starts by the number n (alone in a line) followed by n lines, each holding an integer number. T...
8e198e07eae57d0ab85813be4f0cca8a903bee00
C#
PieterHuybrechts/Reversi
/ReversiLibTests/GameBoardTests.cs
2.796875
3
using System; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using Reversi.DataStructures; using System.Collections.Generic; using Reversi.Domain; namespace ReversiLibTests { [TestClass] public class GameBoardTests { private static void TestFindDistanceToCaptureTwin( Player...
28d095f08620e321009f66adcd46ffa05830f639
C#
yamadamael/AtCoderContest
/ABC155/ProgramA.cs
3.046875
3
using System; using System.Linq; using System.Collections.Generic; namespace ABC { class ProgramA { static void Main(string[] args) { var list = Console.ReadLine().Split(" ").Select(x => long.Parse(x)).ToList(); list = list.Distinct().ToList(); v...
a9e63c3e90f17c39361f21a59edcd0c3356ba059
C#
dotnetmvc/sms
/SMS/project/新建文件夹/ZHSMS/UnitTestDBAccess/BlacklistDBTests.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using DatabaseAccess; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace DatabaseAccess.Tests { [TestClass()] public class BlacklistDBTests { [TestMethod()] public void Test() { ...
d3e4750bbf3b4f7e986fafa1f46c31c94e02f907
C#
Tidogo/SimpleAudit
/SimpleAudit/SchoolDB.cs
2.59375
3
namespace SimpleAudit { using System; using System.Data.Entity; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; public partial class SchoolDB : DbContext { public SchoolDB() : base("name=SchoolDB") { } public virtual DbSet<Clas...
bc3ca3a9f0b7749341d74c1f89f162a994f4c06a
C#
JanikiramG/7.16.2Package
/Autogenerated/Src/ReportGenerationCompletionSender.Reports.cs
2.6875
3
namespace Terrasoft.Configuration { using global::Common.Logging; using FileConverter.Client.Task; #region Class ReportGenerationCompletionSender /// <summary> /// Represents a base abstraction of sender of report generation completion. /// </summary> public abstract class ReportGenerationCompletionSender { ...