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
686c6ea64bbb2e602f8118073fcf120e3f4bd701
C#
duliduibai/StudySpace
/HairCut/DAL/Staff.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DAL { public class Staff { public int StaffNo { get; set; } public string StaffName { get; set; } /// <summary> /// 0-不确定,1-男,2-女 /// </summary>...
39e89a78b7af83a02947192599e620aea04875db
C#
optiklab/cleverwearer
/Phi.OpenWeatherMapProvider/DataProvider.cs
2.640625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using Phi.Repository; using Phi.OpenWeatherMapProvider.WeatherModels; using Phi.Models.Models; using Phi.Repository.Enums; namespace Phi.OpenWeatherMapProvider { /// <summary> /// /// </summary> publ...
f4c1df92a85a82b43c4cb4569ccdc4447bbd7b0d
C#
wenjietseng/unity-utilities
/Utilities/CommunicateWithArduino.cs
2.625
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using System.IO; using System.IO.Ports; using System.Threading; public class CommunicateWithArduino { private string portName; private int baudRate; private Parity parity; private int dataBits; private Sto...
e5fee152afd61bb8aa879f090c3a84e25cd4ae2f
C#
naninunenoy/DddMonsters
/DddMonsters/Assets/DddMonsters/Scripts/Tests/EditMode/TypeRelationshipTest.cs
2.625
3
using DddMonsters.Domains; using NUnit.Framework; namespace DddMonsters.Tests.EditMode { public class TypeRelationshipTest { // ノーマル [Test] public void ノーマルでノーマルに攻撃すると普通() { Assert.That(TypeRelationshipCalculator.Calculate(Type.Normal, Type.Normal), Is.EqualTo(T...
661fa388154d008fe03d126ea56ee8c86b27e05d
C#
shevchenkotaras/Vidley
/Vidley/Vidley/Models/If10YearsIfAMember.cs
2.78125
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace Vidley.Models { public class If18YearsIfAMember : ValidationAttribute { protected override ValidationResult IsValid(object value, ValidationContext validationCont...
833c72f78a6839ac15703be753e3ba57be95a533
C#
NickBrooks/Table-Storage-Performance-Tester
/Functions/BatchInsert.cs
2.53125
3
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.Azure.WebJobs.Host; using System; using System.Diagnostics; using System.Threading.Tasks; namespace TableStoragePerformanceTester { public static class Bat...
3de58e1e80cf038b9d596e0cef55e3ae4c72947a
C#
krishemenway/IrcBot
/IrcBot/Commands/OpCommand.cs
2.90625
3
using System; using System.Collections.Generic; using Meebey.SmartIrc4net; namespace IrcBot.Commands { public class OpCommand : BaseBotCommand { public IrcBot Bot; private const string CurrentUser = "me"; private const string CommandWord = "op"; public OpCommand(IrcBot bot) { Bot = bot; FirstMatch...
ca8776d11d57b9a1d3d95a1deba83e335743a757
C#
medula/Methods
/09. MaxElementInPortion/MaxElementInPortion.cs
3.578125
4
//Write a method that return the maximal element in a portion of array of integers starting at given index. //Using it write another method that sorts an array in ascending / descending order. using System; using System.Collections.Generic; class MaxElementInPortion { static void Main() { int[] array ...
74aeb4fdb0cabbf895ff72d90e46b18ed9c8bfa3
C#
ChristopherSchubert/com.appalachia.dotnet.mdabros.sharp-learning
/src/SharpLearning.Ensemble/Learners/ClassificationStackingEnsembleLearner.cs
2.515625
3
using System; using System.Diagnostics; using System.Linq; using SharpLearning.Common.Interfaces; using SharpLearning.Containers; using SharpLearning.Containers.Extensions; using SharpLearning.Containers.Matrices; using SharpLearning.CrossValidation.CrossValidators; using SharpLearning.Ensemble.Models; namespace Shar...
5dd33f07eb3334fd4e2a6a53ae32b240de4c9c57
C#
SurgicalSteel/dotNEThacks
/Bahasa Gaul Jogja/Bahasa Gaul Jogja/Form1.cs
2.90625
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 Bahasa_Gaul_Jogja { public partial class Form1 : Form { public Form1() ...
21e158dd396387a73ff0a58934efb849a58a2082
C#
adautobarros/RabbitQueueExtension
/RabbitQueueExtension/RabbitConnectionFactorySubscribeAsyncExtensions.cs
2.625
3
using ICommandHandler; using Newtonsoft.Json; using RabbitMQ.Client; using RabbitMQ.Client.Events; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace RabbitQueueExtensions { internal static class RabbitConnectionFactorySubscribeAsyncExtensions { ...
bd4e19573ef90555222c5f800fff3a582ec9c0e6
C#
akkiu111/AkhilDataStructuresAlgorithmsConsole
/isValidIPAddress/isValidIPAddress/Program.cs
3.578125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace isValidIPAddress { class Program { static void Main(string[] args) { var output = ValidIPAddress("172.16.254.1"); Console.ReadLine(); } ...
9f27ad6bf7fdf48f1116744725732173841b1991
C#
Khud0/SortedSquaredArray
/SortedSquaredArray/Program.cs
2.828125
3
using System; namespace SortedSquaredArray { class Program { static void Main(string[] args) { int[] testArray = {-7, -3, -1, 4, 8, 12}; int[] testCorrectAnswer = {1, 9, 16, 49, 64, 144}; SortAndSquare.RunAllMethods(testArray, testCorrectAnswer); } ...
979381741218c8097e787e4d8b573fa9e74b6263
C#
ZoondEngine/ExWrap
/Ex.Application.Gilneas.Installer/Core/API/ManifestElement.cs
2.625
3
namespace Ex.Application.Gilneas.Installer.Core.API { public class ManifestElement { private string m_Remote; private string m_Local; private string m_Hash; public ManifestElement(string remote, string local, string hash) { m_Remote = remote; m_L...
bee98c116ab1d3e672b8f3d195d578e3fa222358
C#
saurabhmpawar/StudentRollNumberManagementSystem
/StudentRollNumberManagementSystem/StudentRollNumberManagementSystem/StudInfo.cs
2.71875
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 StudentRollNumberManagementSystem { public partial class Stud...
6cd9a3bf1a5571f6aa1e93d2904df35c758363e8
C#
gatoWololo/RoverGame
/Assets/Scripts/UI/UISequencer.cs
2.53125
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.UI; public class UISequencer : MonoBehaviour { private int MAXSEQUENCE = 16; private int nextAction; // integer value representing the action we are going to add public int currentLength; // length of the sequence ...
9f327e294c5704dd9a58a5c43eabc41d1d895d29
C#
ReyLouis95/projetBDD3
/ProjetBDD3/Models/DepartVol.cs
2.703125
3
using Oracle.ManagedDataAccess.Client; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; namespace ProjetBDD3.Models { public class DepartVol { public string NoVol { get; set; } public DateTime Date { get; set; } public int DureeVol...
a264709025b23630889d488fd3d286e3ee80ec63
C#
Gab-km/Myers-Triangle-in-CSharp-by-TDD
/MyersTriangle/Triangle.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MyersTriangle { public class Triangle { private decimal _side1; private decimal _side2; private decimal _side3; public Triangle(decimal side1, decimal side2, decimal side3) ...
4ee603688602bd7bab3a7a4bbeebf96ceca00265
C#
rummolprod999/GtkSharp
/MyGtk/FtpClient.cs
2.515625
3
using System; using System.Collections; using System.Collections.Generic; using Tamir.SharpSsh; using Tamir.Streams; namespace MyGtk { public class SFtpLibrary { void OSftp_OnTransferProgress(string src, string dst, int transferredBytes, int totalBytes, string message) { } pri...
00f2fc4bdcd1157da2d79e51290ba96657f5c2f2
C#
AlexHKeidel/CluedoGame
/CluedoGame/Program.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CluedoGame //Cluedo game by Alexander Keidel 22397868 last edited 21/12/2014 { class Program //main class that will run the program { static void Main(string[] args) ...
5ef68017c6039d1f24702c5bd510bdb169cd2fa0
C#
NguyenThanhThinh/Advanced-.Net-Propgaming
/Module1/ThucHanh3.DTO/AirportEntity.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ThucHanh3.DTO { public class AirportEntity { public string Code { set; get; } public string Name { set; get; } public string City { set; get; } public st...
b6a2ba73387f10ea665db71aa860e5bb5d32eae6
C#
vpeg/ProjectX
/ProjectX/DataManager.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Runtime.Serialization.Formatters.Binary; namespace ProjectX { class DataManager { public List<Subject> subj; BinaryFormatter bf; public Da...
c1701aff24edf88c71e63981603dfeb6d4835dd3
C#
Maurokarc/net-core-api-starter
/NetCoreApi.Toolkit/Extensions/ClassExtension.cs
2.96875
3
using System; using System.Linq; using System.Reflection; namespace NetCoreApi.Toolkit.Extensions { public static class ClassExtension { public static TEntity PropertyAssignTo<TEntity>(this object tSrc) where TEntity : class, new() { TEntity tDst = new TEntity(); ...
df673c935e55d5c05aa547d1f0cd0da7dc229d51
C#
wxf1223138295/Test
/Shawn.Host/ShawnEventBus/ServiceFactory.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.ExceptionServices; using System.Text; using System.Threading; using System.Threading.Tasks; using ShawnEventBus.EventData; using ShawnEventBus.Handler; namespace ShawnEventBus { public delegate object ServiceFactory(Type servi...
e84fa132ec0513517f2c73200e92d34b0676dca6
C#
AlexVeeBee/sbox-minigolf
/code/Entity/Map/Attributes/SphereAttribute.cs
2.90625
3
using Sandbox; using System; using System.Text; namespace Hammer { /// <summary> /// Display a sphere of the specified property's radius in Hammer. /// </summary> [AttributeUsage( AttributeTargets.Class )] public class SphereAttribute : MetaDataAttribute { internal string Property; public SphereAttribute( ...
7d0ddd5f9d2316d4028a06b4ef65e08eba47d345
C#
DanielBaumert/Se7en
/Se7en/BitUtils.cs
3.59375
4
namespace Se7en { public unsafe static class BitUtils { #region Byte /// <summary> /// Get the bit value in a byte. /// </summary> /// <param name="pByte">The byte where the value is encoded.</param> /// <param name="bitNo">The number of the bit (zero-based inde...
f07e22466cd8aeb5049ca658de49a28a47f4e4aa
C#
terite/Tempest
/Desktop/Samples/SimpleChat/Client/ChatClient.cs
2.703125
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading.Tasks; using Tempest; namespace SimpleChat.Client { public class ChatClient : TempestClient { public ChatClient (IClientConnection connection) : base (connection, MessageTypes.Reliable) { this.Re...
f0077daf20df7527271ec66e62915ab7c1f6a4ee
C#
Chromega/ggj2019
/Assets/2DPlatformer/Scripts/EnemyAggressive.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyAggressive : EnemyPatrol { private bool jump = false; protected override bool getJump() { return jump; } protected override float getHorizontalDirection() { // If you see the play...
3a3bc5c60fe62584f78f8e80d8390ac1e8d7c41b
C#
upendrayadav137/20181cse0137_c-sharp
/bettercalculator/bettercalculator/Program.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace bettercalculator { class Program { static void Main(string[] args) { Console.Write("Enter the num1 : "); double num1=Convert.ToDouble(Console.Re...
2f832c9932c3455ea027616eb26264764f562246
C#
shendongnian/download4
/first_version_download2/253844-20166836-52149787-2.cs
2.734375
3
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { string selection_price = DdPetPist.SelectedValue; string selection_stock = DdPetPist.SelectedValue; string petPrice = string.Empty; string available = string.Empty; MySqlCommand cd_price ...
ccbe11431715f20ab103b9b0cd00441c4d37dbb7
C#
Leikocid/oop2
/Lab15/Lab15/Model/States/ProtoStar.cs
2.765625
3
using Lab15.Utils; using System.Windows.Media; namespace Lab15.Model.States { class ProtoStar : AbstractStarState { public override string Info => "Протозвезда. При взрослении становится обычным золотой звездой."; public ProtoStar(GoldStar star) : base(star) { } public override void Old...
6b822732ff22020be26eea620da0bed87fbf3dcd
C#
liwq-net/liwq718
/liwq/cocos2d-xna/_liwq/sturcts/CCSize.cs
3.015625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; namespace liwq { #if !WINDOWS_PHONE && !XBOX && !NETFX_CORE [Serializable, StructLayout(LayoutKind.Sequential), TypeConverter(typeof (CCSizeConverter))] #endif public struct CCSize { public st...
909c74ffe1c40c240c5f43f9b9bf5113fcf480ef
C#
iybe/Central-de-Erros
/backend/Api Central de Erros/Controllers/LogController.cs
2.515625
3
using Api_Central_de_Erros.DTOs; using Api_Central_de_Erros.Models; using Api_Central_de_Erros.Services; using AutoMapper; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; namespace Api_Central_de...
0ffe000d2549651d096eecfece0f62b8460ced6a
C#
mcneel/ImagingComponents
/GrasshopperImagingComponent/CreateShapeComponent.cs
2.671875
3
using System; using System.Collections.Generic; using System.Drawing; using Grasshopper.Kernel; using Rhino; using Rhino.Geometry; namespace GrasshopperImagingComponent { public sealed class CreateShapeComponent : GH_Component { public CreateShapeComponent() : base("Create Gdi Shape", "Shape", "Create a...
1904e69cdcfb92ae4d0ed463e5259babed5cd604
C#
ahmedChe/CoffeeMachine
/DAL/References/DrinkReference.cs
2.640625
3
using BaverageApp; using DataModel; using Npgsql; using System.Data; namespace DAL.References { public class DrinkReference { public void InsertChoice(Choice c,string username) { var sql = "INSERT INTO DRINK (DRINK,CLIENT,SUGAR,MUG) VALUES (@drink,(SELECT ID FROM CLIENT WHERE USER...
c71a8dd2aec3ec5d1d7b0723253a2e6638b95e78
C#
CITI-EVO/GMUS
/CITI.EVO.Tools/ExpressionEngine/ExpressionNode.cs
2.625
3
using System; using System.Collections.Generic; using CITI.EVO.Tools.ExpressionEngine.Common; namespace CITI.EVO.Tools.ExpressionEngine { public class ExpressionNode { public ExpressionNode() { Params = new List<ExpressionNode>(); } public String Action { get; set; ...
8df99ec442e0dabd507c61123e3aa9743344cc2e
C#
sri1981/ElitePlugin
/Elite.CRM.Plugins/BordereauImport/MappedRow.cs
2.671875
3
using Elite.CRM.Plugins.Entities; using Elite.CRM.Plugins.ErrorHandling; using Microsoft.Xrm.Sdk; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Elite.CRM.Plugins.BordereauImport { /// <summary> /// Util...
951bd4703e4d3b1f9aa43d10f7cb4b8daec1f4af
C#
Megi223/VeterinaryClinic
/Services/VeterinaryClinic.Services/NewsScraperService.cs
2.796875
3
namespace VeterinaryClinic.Services { using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AngleSharp; using AngleSharp.Dom; using VeterinaryClinic.Data.Common.Repositories; using VeterinaryClini...
fc3497953693c4d2d9a4102093ff980675d77c11
C#
Appleseed/base
/Projects/Testing/Appleseed.Base.Data/Repository/SqlRepository.cs
2.6875
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using Appleseed.Base.Data.Model; using Appleseed.Base.Data.Repository.Contracts; using Appleseed.Base.Data.Utility; using NLog; namespace Appleseed.Base.Data.Repository { public class SqlRepository :...
d104b9cd165bb9238698ed5ec7cb2889e62c8a92
C#
maiff/windowsC-
/WindowsContronlDemov0.0.1/util.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.Drawing; using System.Drawing.Drawing2D; namespace WindowsContronlDemov0._0._1 { class Util { public static FormRect getFormRect(Form form) { FormRect rect...
f6610c2c1ece15a25e153c156f546a34997d2ea9
C#
Aurorad/PlanYourLife1_4
/PlanYourLife1_4/AddNewEvent.xaml.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
e23c569f3ebfa9cbe45e33ff29cbeceae7148b0a
C#
helojo/u3dDemo
/Assets/scripts/Localization.cs
2.640625
3
using System; using System.Collections.Generic; using UnityEngine; public static class Localization { public static bool localizationHasBeenSet = false; private static Dictionary<string, string[]> mDictionary = new Dictionary<string, string[]>(); private static string mLanguage; private static int mLa...
7c4a1301a4ff933b1f4c74b081c0073343f1a775
C#
corynunn/CalculatorApp
/CalculatorClassLibrary/Evaluator.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CalculatorClassLibrary { public class Evaluator { //This class iterates through the string building tokens out of the string //Fields string input; int ...
6237d5aceab2f24db68fd48851d7b376d7f4b985
C#
MarcioDeAlmeidaRosa/C-Paralelismo-no-mundo-real
/ExemplosParalelos/Program.cs
3.046875
3
using System; using System.Threading; using System.Threading.Tasks; namespace ExemplosParalelos { class Program { static void Main(string[] args) { //A primeira solução é menos performática. LoopComThread(); Console.WriteLine("Aperte qualquer tecla para ir ...
cf3eda4425d6cdc30d8fb6d71308863437339eb6
C#
mwardrop/Sidekick
/tests/Sidekick.Apis.Poe.Tests/Parser/BodyArmourParsing.cs
2.671875
3
using System.Linq; using Sidekick.Common.Game.Items; using Xunit; namespace Sidekick.Apis.Poe.Tests.Parser { [Collection(Collections.Mediator)] public class BodyArmourParsing { private readonly IItemParser parser; public BodyArmourParsing(ParserFixture fixture) { parser...
f78dde69636c673f75cecc2f561965e146d8d4a0
C#
MarcoHuerta93/Herencia
/Herencia/Program.cs
2.9375
3
using System; namespace Herencia { class MainClass { public static void Main(string[] args) { //Primer Objeto Publicacion post1 = new Publicacion("Gracias por los saludos", true, "Antonio Huerta"); Console.WriteLine(post1.ToString()); Publicacio...
b26068b2a10e4f4c0ccb96cebf50e0fd96f9c119
C#
alexmtv/Mtgdb
/Mtgdb.Dal/Model/InternedStringConverter.cs
2.8125
3
using System; using Newtonsoft.Json; namespace Mtgdb.Dal { public class InternedStringConverter : JsonConverter { public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { if (reader.TokenType == JsonToken.String) return string.Intern(...
891f64e98302f5b065d04143a5fc368a73fbb46a
C#
lerwine/LErwineExamples
/LennysWpfLibrary/Generics/BaseStructEqualityHelper.cs
3.15625
3
using System; using System.Linq; namespace LennysWpfLibrary.Generics { public abstract class BaseStructEqualityHelper<T> : EqualityHelper<T> where T : struct { private static Func<T, string> _toString = null; public new static BaseStructEqualityHelper<T> Create() { ...
a7649f1dbf763a76edf3b96c26a9f0aa8a1242ef
C#
bookbot-kids/azure-authentication
/Authentication/Shared/Library/HttpLoggingHandler.cs
2.6875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; namespace Authentication.Shared.Library { /// <summary> /// Logging handler class /// This is the custom ...
115f31f0d6dc98304f6f859c0c6ebb8e9f4f9476
C#
frostieDE/easy-deploy
/EasyDeploy.Core/Json/DebugJsonReader.cs
2.6875
3
using EasyDeploy.Core.Logger; namespace EasyDeploy.Core.Json { public class DebugJsonReader : IJsonReader { private readonly IJsonReader jsonReader; private readonly ILogger logger; public DebugJsonReader(IJsonReader jsonReader, ILogger logger) { this.jsonReader = ...
8fe0540627861ff72c809277531b2ea4a1cc1736
C#
PaulWild/advent-of-code-2020
/AdventOfCode.Tests/Days/Day07Tests.cs
2.875
3
using System; using AdventOfCode.Days; using FluentAssertions; using Xunit; namespace AdventOfCode.Tests.Days { public class Day07Tests { private readonly ISolution _sut = new Day07(); [Fact] public void PartOne_WhenCalled_DoesNotThrowNotImplementedException() { ...
3bb88c420d8b0c5eb5440c73b2d1cc841f8eb144
C#
Skrabka98/RPG_Kurs
/RPG/RPG/Services/Fight/FightService.cs
2.75
3
using RPG.Champions; using RPG.Interfaces; using RPG.Skills; using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace RPG.Services.Fight { public class FightService { private readonly int critChance = 20; private readonly ILadderService _ladderServic...
b5cafd522e69ff8a0530c070d1c7b71fc16bf963
C#
Exclr8/CloudCore
/Core Libraries/CloudCore.Core/Configuration/Elements/UserSessionTimeout.cs
2.609375
3
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CloudCore.Core.Configuration.Elements { public class UserSessionTimeoutElement : ConfigurationElement { [ConfigurationProperty("timeoutValueInMinute...
a4388202e456e88e13d24d62ece3a9b8b9d7bd43
C#
pankajhyd/AutomationCSharp
/Selenium/Automation_Accelarator/WebServices/RestSharpHelper.cs
2.578125
3
using RestSharp; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Selenium.Automation_Accelarator.WebServices { public class RestSharpHelper<T> { public RestClient restClient; public RestRequest restR...
9f73246dabd445152664271573f21e0557d44d28
C#
shendongnian/download4
/first_version_download2/255278-20306828-52639168-2.cs
3.125
3
[TestMethod] public void ListCategories() { var staff = new List<Employee>(); staff.Add(new InvestmentBanker {Name="Fred Goodwin", Department = "NW"}); staff.Add(new InvestmentBanker {Name="Nick Leeson", Department = "Barings"}); staff.Add(new Clea...
8431de0aa9699afe75bd0e4d5f0220e2df75c800
C#
danscava/SadConsole
/src/DemoProject/SharedCode/CustomConsoles/TextCursorConsole.cs
2.71875
3
using Microsoft.Xna.Framework; using ColorHelper = Microsoft.Xna.Framework.Color; using Console = SadConsole.Console; using SadConsole; using System; using System.Linq; using SadConsole.Input; namespace StarterProject.CustomConsoles { class TextCursorConsole : Console, IConsoleMetadata { SadConsole.G...
80324f1804a707eb9f8bb8888425621888c880c0
C#
s4egol/EPAM.RD.2017F.Miatselski2
/MyServiceLibrary.Tests/MyServiceTests.cs
2.8125
3
using System; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using MyServiceLibrary.Exception; namespace MyServiceLibrary.Tests { [TestClass] public class MyServiceTests { [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public void Add_NullUs...
fdd8e3b0a5f3314d32bb72d8f62185482764e834
C#
geevarghesej7450/1
/code.cs
3.5625
4
//Count the number of digits in enterted value Console.WriteLine("Enter Value"); int n = int.parse(Console.ReadLine()); int num = n; int digits = 0; if(n==0){ digits = 1; } else { while(num!=0){ digits++; num /= 10; } } Console.WriteLine($"the number of digits is {digits}.");
665dfc388c0aca072c2e006caa0b350a8ccbabee
C#
Ander02/CepProtocol
/Shared/Messages/MessageResult.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; namespace Shared.Messages { public class MessageResult { public string MessageType { get; set; } public IEnumerable<ValueResult> Values { get; set; } public string GetFieldValue(string field) => this.Values...
5515698799a403322d7ec536c237b87545888153
C#
rdavidson1994/NameGenerator
/NameGenerator/StressPattern.cs
3.40625
3
using System; using System.Collections.Generic; namespace NameGenerator { public class StressPattern { public static StressPattern? FromWord(Word word) { int? stressedIndex = null; int vowelIndex = 0; foreach (Run run in word.Runs) { ...
6d6fec38db67689c79e1e92fb41839c8c2ff7ac6
C#
silago/nav-mesh-navigation-timeline-elenmets
/PathCalculator.cs
2.75
3
using UnityEngine; using UnityEngine.AI; public class PathCalculator { AnimationCurve curveX; AnimationCurve curveY; AnimationCurve curveZ; float totalDistance = 0f; public PathCalculator(NavMeshPath path, float time = 30f) { for(var i=1; i<path.corners.Length; i++) { totalDistan...
8b6f97fb90bde98bf8e256c3aec8dba1523a1539
C#
Sharpiro/Movies
/src/Movies.DotnetCore/PropertyBuilder.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Movies.DotnetCore { public static class PropertyBuilder { public static string Build(string names) { var nameList = names.Split(new[] { "\r\n" }, StringSplitOptions.None); va...
d324b70c1248edcf0f7ada5d625211fd4a7ca141
C#
ajames191/NameSorter
/NameSorter/Program.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NameSorter { class Program { static void Main(string[] args) { if (args.Length == 0) { Console.WriteLine("Please provide a file ...
745b934732df0d9a6e88e82d3089d1e02caebcb6
C#
FlygonC/EscalationTestProject
/EscalationTestProject/EscalationTestProject/Entity.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EscalationTestProject { class Entity { public enum EntityType : ushort { HealthPickup = 0, Chest, Trap, Troll, Imp, Ogre, } public ushort id; public EntityTyp...
0e5af30202a2d07d814932b195972acf00b126c2
C#
shendongnian/download4
/code6/1141185-30300678-90716735-2.cs
2.546875
3
DataTable dt = new DataTable(groupName); var _with1 = dt.Columns; _with1.Add("AccountID", typeof(string)); _with1.Add("FirstName", typeof(string)); _with1.Add("LastName", typeof(string)); _with1.Add("DisplayName", typeof(string)); _with1.Add("...
a4c75be350a867bf059dee037bcaa7f53e22da9e
C#
BenJester/ProjectNext
/Assets/Scripts/BoxChoicer.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BoxChoicer : MonoBehaviour { // Start is called before the first frame update [Header("一个选择不同奖励的选择器,直接在子物件放置Box_Pickup就可以了")] public bool isTrigger = false; private int boxCount; private GameObject[] b...
dbb2eb9d25336960ff8605d5a9a1756fbbe50930
C#
rodrigosadd/PC-Platform-game
/TCC/Assets/Scripts/Level/Level Mechanics/MoveObject.cs
2.8125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MoveObject : MonoBehaviour { public Transform[] spotsToMovePlatform; public int spotToMove; public float speed; public float waitTimeToMove; private float _countdown; private bool _canMove = true;...
afd750afda831216fbf2309e911032c1fea10a18
C#
j-steve/dawn
/Assets/Game/Scripts/General/EnumClass.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; public abstract class EnumClass : IComparable<EnumClass>, IEquatable<EnumClass> { #region Static static private readonly Dictionary<Type, List<EnumClass>> AllEnums = new Dictionary<Type, List<EnumClass>>(); ...
2f20b3ad417185b6aa48b0ca9615e89b40ce1f1a
C#
TWhidden/HolidayShow
/HolidayShowServer/TcpServer.cs
2.8125
3
using System; using System.Net; using System.Net.Sockets; namespace HolidayShowServer { public class TcpServer : IDisposable { private readonly TcpListener _listener; private bool _started; public TcpServer(ushort listenPort) { _listener = new TcpListener(IPAddress...
2c90f06f3488c5d74b741b5bb6d7889a9b32ce79
C#
Llimaa/Shop
/Controllers/ProductController.cs
2.875
3
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Shop.Data; using Shop.Models; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Shop.Controllers { [Route("v1/products")] public class ProductControll...
233add54640b5928211e9fede87c5cce14f61eb6
C#
DevGabLow/Csharp
/DesafioAbstract/AbstractChallenge/AbstractChallenge/Program.cs
3.546875
4
using System; using System.Collections.Generic; using AbstractChallenge.Entities; namespace AbstractChallenge { class Program { static void Main(string[] args) { List<Payer> list = new List<Payer>(); Console.WriteLine("Enter the number of tax payer: "); int ...
905a4f6be285d2cfdac9d46bfc76036c6d4eeddd
C#
byuhci/Digital_Glass
/App.Desktop/Eagle/Signal.cs
3.171875
3
using System.Collections.Generic; using System.Collections.ObjectModel; namespace DigitalGlass.Eagle { /// <summary> /// Electrical connection in a board. Represents a collection of elements that should all be connected in a /// </summary> public class Signal { private readonly IList<Cont...
e2fa2f42a6fb335c386a3764d5f417b830d98fc6
C#
jackmott/galaxy
/GalaxyServer/GalaxyShared/Galaxy.cs
2.671875
3
using System; using System.Drawing; using System.Drawing.Imaging; using System.Runtime.InteropServices; namespace GalaxyShared { public static class Galaxy { public static byte[] HoagPixels; public const int HOAG_SIZE = 1024; public const int GALAXY_SIZE_LIGHTYEA...
382c99435ba885e1d0fb75d95c69c755ecbc1cdf
C#
wtulloch/DotNetWorkshopTwo
/ServerSide/UserServices/UserManagement.cs
2.78125
3
using System; using System.Threading.Tasks; namespace UserServices { public class UserManagement: IDisposable { private EmailNotificationService _notificationService = new EmailNotificationService(); private UserRepository _userRepository = new UserRepository(); public async Task<Noti...
6d4b48d37b5954dff785580861eeb7e7ede283c0
C#
sridhar19091986/htmlconvertsql
/SqlServer/Soccer Score Forecast/Soccer Score Forecast/OldClass/TeamData.cs
2.5625
3
//using System; //using System.Collections.Generic; //using System.Linq; //using System.Text; //using Winista.Text.HtmlParser; //using Winista.Text.HtmlParser.Tags; //using Winista.Text.HtmlParser.Filters; //using Winista.Text.HtmlParser.Lex; //using Winista.Text.HtmlParser.Util; //using Winista.Text.HtmlPars...
b6233db490893e3ee20b203c362b60b83633add2
C#
oserdiuk/SmartFrameAppz
/SmartFrame.Services/Services/AuthService.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Security.Cryptography; using System.Text; using AutoMapper; using SmartFrame.DAL; using SmartFrame.DAL.Interfaces; using SmartFrame.Domain; using SmartFrame.Services.DataContracts; using SmartFrame.Services.S...
16a38b990c6466d2b043a5c9bf422226ba20f0f6
C#
JordyVanKerkvoorde/ITLab_dotNET
/ITLab29/Data/Repositories/AnnouncementRepository.cs
2.765625
3
using ITLab29.Exceptions; using ITLab29.Models.Domain; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ITLab29.Data.Repositories { public class AnnouncementRepository : IAnnouncementRepository { private readonl...
c7d2e9afaaf12d8859d32555146726630489338f
C#
Phyberosis/Autokeys2CSharp
/Tests/EventsTests.cs
2.671875
3
using System; using System.Text; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using Events; using System.Threading; namespace Tests { /// <summary> /// Summary description for EventsTests /// </summary> [TestClass] public class EventsTests { boo...
77abfe6fa015e24aedd1ba80e34c6926a263ff7f
C#
kav-it/SharpLib
/Source/SharpLib.Json/Source/Converters/Xml/XTextWrapper.cs
2.546875
3
using System.Xml.Linq; namespace SharpLib.Json { internal class XTextWrapper : XObjectWrapper { #region private XText Text { get { return (XText)WrappedNode; } } public override string Value { get { return Text.Value; } set ...
a278953c273f84c708937941fe770307d24ec31f
C#
alexnault/TownSimulator
/TownSimulator/Buildings/House.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using TileEngine; namespace TownSimulator.Buildings { class House : Building { public override int NB_REQUIRED_WOOD { get { return 10; } } public override int NB_REQUIRED_STONE { get {...
6c2c08b41e2c7d52706ea5bea0a5966911371c77
C#
manasbiparajuli/annapurna-racing
/Assets/Scripts/LapComplete.cs
2.625
3
// // Implementation of LapComplete class // using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /* public class LapComplete NAME public class LapComplete: Script that handles activation of halfway object while disabling finish line game objects. The class also up...
150e5051c9bbcd2d957d7c6bc3fb655b4843c6de
C#
jasonunrau/refactoring-training
/Refactoring/Tusc.cs
3.125
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Refactoring { public class Tusc { private static User loggedInUser; public static void Start(List<User> users, List<Product> pr...
8c8737df6c89c6f6ba2ed232bc84094999f44c1b
C#
rag4/GC-TaskManager-v1
/Capstone - Task List/Program.cs
3.609375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Capstone___Task_List { class Program { static void Main(string[] args) { List<TaskNode> taskList = new List<TaskNode>(); // list of task objects ...
e84464149ff4b16039a003a9b8a656a15668a45b
C#
kosstbarz/Scripts
/Map/MapData.cs
2.984375
3
using UnityEngine; using System.Collections.Generic; public class MapData{ public int xSize; public int ySize; public TileType[] tileTypes; public TileType[,] tileData; public float[,] heightData; public MapData(int xSize, int ySize) { this.xSize = xSize; this.ySize =...
ba58fcb35b409363d4a966ecb027b0122aa7c9fe
C#
harlam357/hfm-net
/src/HFM.Forms/Internal/WindowPosition.cs
2.671875
3
using System; using System.Drawing; using System.Windows.Forms; using HFM.Forms.Views; namespace HFM.Forms.Internal { internal static class WindowPosition { internal static (Point Location, Size Size) Normalize(IWin32Form form, Point restoreLocation, Size restoreSize) { var size =...
06fb002e1c577aff0d7c4818a8690dd81244f5c0
C#
samarthdd/k8-rebuild-rest-api
/Source/Common/Glasswall.CloudSdk.AWS.Common/S3/S3Extensions.cs
2.609375
3
using System; using System.IO; using System.Threading.Tasks; using Amazon.S3; using Amazon.S3.Model; namespace Glasswall.CloudSdk.AWS.Common.S3 { public static class S3Extensions { public static async Task<byte[]> DownloadS3Object(this IAmazonS3 s3Client, string bucket, string key) { ...
75589418d84c6e175a818b456569d1861d9856da
C#
williamxbr/Acme.GeoGarbage
/app/Acme.GeoGarbage.Servicos/ServicoBase.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using Acme.GeoGarbage.Dominio.Interfaces.Repositorios; using Acme.GeoGarbage.Dominio.Interfaces.Servicos; namespace Acme.GeoGarbage.Servicos { public class ServicoBase<TEntity> : IDisposable, IServicoBase<TEntity> where TEntity : class { ...
f3e4d00cbc4e7f4f401acad80faffa3fc472c493
C#
PasaOpasen/MathClasses
/MathClassesLibrary/FuncMethods.NetFunc.cs
3.21875
3
using System; using System.Collections.Generic; using System.IO; namespace МатКлассы { public static partial class FuncMethods { /// <summary> /// Сеточная функция /// </summary> public class NetFunc { /// <summary> /// Список узлов ...
28b28c836057e635d9973bde2eb9fffe9482626d
C#
hermieboi/SankaFartyg
/Assets/Scripts/SpawnManager.cs
2.71875
3
using UnityEngine; using System.Collections; public class SpawnManager : MonoBehaviour { public GameObject SubmarinePrefab; public GameObject DestroyerPrefab; public GameObject CrusierPrefab; public GameObject BattleshipPrefab; public int Sub_totalNumber; public int Destroyer_totalNumber; public int Crusier_...
db9d8ff461f24302ce209a7cb7088a52ffbf722d
C#
xiafanfan/FarmGameClient-Unity
/Assets/Scripts/ItemIconWithUsesController.cs
2.75
3
 using TMPro; using UnityEngine; using UnityEngine.UI; public class ItemIconWithUsesController : MonoBehaviour { public Instance itemInstance; [SerializeField] private string ID; public Text usesText; private void Start() { if (itemInstance == null) { itemInstance ...
08db14e4f5740d766c7f6e628322d8e7260bba78
C#
BMGDigitalTech/abhilash-projects
/DescendantNodes/DescendantNodes/Program.cs
3.421875
3
using System; using HtmlAgilityPack; namespace DescendantNodes { class Program { static void Main(string[] args) { var html = @"<html><body><h1>THis is h1 heading</h1><p>This is paragraph</p></body></html>"; var htmlDoc = new HtmlDocument(); htmlDoc.LoadHtm...
e7efd4f5b2bfd20ac4322ee5a57abfaa6830431c
C#
ivelina-penkova/CSharp
/OOP_Homework2_Static Members and Namespaces/Paths/Point3D.cs
3.703125
4
/*Create a static class Path3D to hold a sequence of points in 3D space. Create a static class Storage with static methods to save and load paths from a text file. Use a file format of your choice. */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; ...
5343c91116529f7147f8641a4b1cbdeb1bd8791b
C#
sn4keY/OpenMyGarage
/OpenMyGarageApi/OpenMyGarageApi/Controllers/ValuesController.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using OpenMyGarageApi.Data; using OpenMyGarageApi.Models; namespace OpenMyGarageA...
870b02209d2149b938550c015a34e222e809959c
C#
karkixitiz/Boat-Tours-Manager
/BoatToursManager/BL/User.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using BoatToursManager.DAL; namespace BoatToursManager.BL { public class User : IEquatable<User>, IDBStorable<DAL.User> { public int id { get; private set; } = 0; public string name { get; set; } publi...
f65e34ae68c84b7e8de35937508a18e59deca55b
C#
Guiny-Time/Arknights
/W2Unity-4/Assets/Scripts/ProjectBase/UI/BasePanel.cs
2.859375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; //这个类看着真的挺诱人的 //但是用不清楚(昏迷了 /// <summary> /// 面板基类 /// 帮助我们通过代码快速的找到所有的子控件 /// 方便我们在子类中处理逻辑 /// 节约找控件的工作量 /// </summary> public class BasePanel : MonoBehaviour { //通过里式转换原则 来存储所有的...
5a78bc90e145069e83559a5eda71ca1884af0b1c
C#
vanthoainguyen/Flatwhite.Core
/src/Flatwhite.Core/Provider/IContextProvider.cs
2.671875
3
using System.Collections.Generic; namespace Flatwhite.Core.Provider { /// <summary> /// A provider to resolve a context which is a key/value dictionary. This could be a HttpRequestContext or Thread context /// </summary> public interface IContextProvider { /// <summary> /// Get con...
a9907001d7a1f3c7c5fe2590493e86ff59e9ed5b
C#
nashawati-code/Logger-Framework
/LF_Version1/Driver/AllLogger.cs
3.203125
3
using Logger253; using System; using System.Collections.Generic; using System.Text; /* * BEFORE using inheritance in FileLogger * namespace Driver { class AllLogger { //instead of writing FileLogger.LogToFile(".//log.txt", "Program Started!"); //by added the parameter fileName ...
db8db45535675c33a6ddb79e36f560194761268d
C#
Sumerin/BSK_Encryption
/Proj1/BSK_Encryption/Encryption/SHA256EncryptionApi.cs
3.0625
3
using System; using System.Security.Cryptography; using System.Text; namespace BSK_Encryption.Encryption { /// <summary> /// Api that handles the hasing method. /// </summary> public class SHA256EncryptionApi { /// <summary> /// Hash the data using SHA-256. /// </summary> ...
68d47ecdbc3bdf441cf8fedb5fd64b3c58669710
C#
RoyDBentz/Gold_Badge_Challenges
/Challenge1_KomodoCafe/MenuRepository.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Challenge1_KomodoCafe { public class MenuRepository { public readonly List<MenuItem> _menuItem = new List<MenuItem>(); // C public void AddMenuItem(M...
61a4010b1be5f5047b4b8d81823b3dea927808f3
C#
rubio41/Recognizers-Text
/.NET/Samples/BotBuilder/Dialogs/QuantityPrompt.cs
3.25
3
using Microsoft.Recognizers.Text.Number; namespace BotBuilderRecognizerSample { using System; using System.Linq; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Builder.Dialogs.Internals; using Microsoft.Bot.Connector; [Serializable] public class QuantityPrompt : Prompt<int, int>...