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
dc6a5bfd78f30bbcefc1358432ca4b0c744bf572
C#
bruno5200/Auto
/Parking/CapaPresentación/Validate.cs
3.0625
3
using System; using System.Windows.Forms; namespace CapaPresentación { public class Validate { public void letras(KeyPressEventArgs e) { try { if (char.IsLetter(e.KeyChar)) { e.Handled = false; } ...
aea15871a47d2a8e5785de090a6635a28b3e14b5
C#
hajirazin/NSubstituteConverter
/NSubstituteConverter.Core/Converters/FileConverter.cs
2.640625
3
using System; using System.IO; using System.Text.RegularExpressions; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Formatting; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Formatting; namespace NSubstituteConverter.Core.Converters { ...
60f9782f7f3160f2f2d0291a93f3abb85803c3ee
C#
AbagnaleJunior/SDM-Compulsory
/SDM-Compulsory.Application/Services/ReviewService.cs
2.640625
3
using SDM_Compulsory.Domain.IServices; using System.Collections.Generic; namespace SDM_Compulsory.Application.Services { public class ReviewService : IReviewService { private readonly IRepositories.IReviewRepository _repo; public ReviewService(IRepositories.IReviewRepository repo) ...
a4d864e0224ddd78c90c7dbfb0042b326b7668bc
C#
michael-karbyn/autohaus
/Autohaus.Custom/Indexing/FieldReaders/NumericRangeFieldReader.cs
2.859375
3
using System; using System.Collections.Generic; using Sitecore.ContentSearch; using Sitecore.ContentSearch.FieldReaders; using Sitecore.Data.Fields; namespace Autohaus.Custom.Indexing.FieldReaders { /// <summary> /// The numeric range field reader. /// Processes numeric range field values like "3-...
695cada1ec024bad61b5988f16972f81f664613a
C#
a1xxx/CSharpApplicationRepo
/FinalASPGroupProj/FinalASPGroupProj/AppCode/CustomerLoginCheck.cs
2.78125
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Windows.Forms; namespace FinalASPGroupProj.AppCode { public partial class CustomerLoginCheck :System.Web.UI.Page { public static bool checkcustlogin(int ID, string pass) ...
09e3f9290edb5118ba7200953a5767226ad8fafe
C#
aclemmensen/TinyCQRS
/TinyCQRS.Domain/ValueObject.cs
3.203125
3
using System.Reflection; namespace TinyCQRS.Domain { public abstract class ValueObject { public virtual bool Equals(ValueObject other) { if (other == null) return false; if (!(other.GetType() == GetType())) return false; var properties = GetType().GetProper...
639bf7a622f77a568859ec32c105ad85758cdb0d
C#
Nikkx/Pizzush
/Pizzush/Toppings/Mozzarella.cs
3.078125
3
using System; using System.Collections.Generic; using System.Text; namespace Pizzush { /// <summary> /// Mozzarella topping /// </summary> public class Mozzarella : ToppingDecorator { /// <summary> /// Ctor /// </summary> /// <param name="pizza"></param> pub...
18c792135e48a7a0cb0e9cad5754a581efc1fca9
C#
cschsch/GameOfLife
/Engine/Entities/Standard/Builders/StandardFlyweightCellFactory.cs
2.984375
3
using System.Collections.Concurrent; using System.Collections.Generic; namespace Engine.Entities.Standard.Builders { public static class StandardFlyweightCellFactory { private static ConcurrentDictionary<string, StandardCell> Cache { get; } static StandardFlyweightCellFactory() { ...
030ee2c004c74d120cd6689d8fb0d70f6c08f47d
C#
adivinitanamedduke/ca-t-feed
/TwitterFeed.Core/Logging/ConsoleLogger.cs
2.75
3
using TwitterFeed.Core.Logging; using System; namespace TwitterFeed.Core.Logging { public class ConsoleLogger : ILogger { public void Error(Exception ex, object source = null) { Console.WriteLine(ex.ToString()); } public void Error(string message, object source = n...
6134ce78662f330dfca10f3465f600a50e4b396d
C#
lucio-c/TaskSemaphoreSlim
/MT.Core.Lib/Xml/XmlIniFile.cs
2.828125
3
using System; using System.Collections; using System.Xml.Serialization; namespace MT.Core.Lib { public class ParamItem { private string _name = ""; private string _value = ""; [XmlAttribute(AttributeName = "Name")] public string Name { get { return _name; }...
da6d3b6f069ee58ce4f826259a898ed9109b4b69
C#
Ubinary/L4p
/L4p.WebApi/MsgValidationHelpers.cs
2.828125
3
using System; using System.Linq.Expressions; using L4p.Common.Extensions; namespace L4p.WebApi { public class MsgValidationHelpers { protected static string get_getter_name(Expression getter) { string name = getter.ToString(); int from = name.LastIndexOf('.'); ...
7c621b14067c4b54e70f1f17b084bfb473f66d6e
C#
glucaci/MongoDB-FrameworkSerializer
/src/Serializer.Tests/Model/ComplexModelTests.cs
3.0625
3
using Xunit; namespace MongoDB.FrameworkSerializer.Tests.Model { public class ComplexModelTests : TestBase { [Fact] public void Serialize_OneLevelDepthObject() { FullName person = new FullName("Foo", "Bar"); string result = Serialize(person); Asser...
194cb5eb5b991b559c4c126a00832f891c97b1fa
C#
jangjooch/2019DL
/C#/0702/0702_02/0702_02/Class4.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _0702_02 { class Class4 { private string name; private int price; public Class4(string s = "NULL", int n = 0) { this.name = s; t...
413a3ec189ab9bb1d19010e370e89879f2afc518
C#
KrasyAri/CSharp-Fundamentals
/4.Methods - Lab/03. Calculations.cs
3.96875
4
using System; namespace _03._Calculations { class Program { static void Main(string[] args) { string operation = Console.ReadLine(); int firstNum = int.Parse(Console.ReadLine()); int secondNum = int.Parse(Console.ReadLine()); Calculation(operati...
743d7c0728ab595451c5cfea974a209481895a41
C#
uttne/ArgsToClass
/src/ArgsToClass/SchemaParser.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using ArgsToClass.Attributes; namespace ArgsToClass { internal static class SchemaParser { /// <summary> /// /// </summary> /// <remarks> /// Note...
d8c2cb752040371b187f7b137280f13680bfda9b
C#
hhariri/MetaBlogAPI
/DABE.Core/Entities/User.cs
2.9375
3
namespace DABE.Core.Entities { public class User { public virtual long Id { get; private set; } public virtual string Username { get; set; } public virtual string FirstName { get; set; } public virtual string LastName { get; set; } public virtual string Email { get; set;...
9d54f58b9b549b164febe492bca4e66dcbbf0e14
C#
sirhappy/182DvortsovaVarvara
/Module2/HM4,Sem4/HM4/HM4/AbstractTestLibrary/UnitsBase.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AbstractTestLibrary { // Абстрактный класс Units. // Определяет набор полей для классов наследников: abstract public class UnitsBase { public int unit_code{get;set;} // номер единицы ...
52e4f1da0e5429bb516c621e68afe19c99a102c3
C#
andr4376/ProgramEzamn
/Algoritmer og Generics - datatyper/Hjælp/IdentificerAlgoritmerEksamenEksempel/IdentificerAlgoritmer/InsertionSort.cs
3.890625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IdentificerAlgoritmer { class InsertionSort { public List<T> InsertionSortAlgorithm<T>(List<T> items) where T : IComparable { List<T> listToSort...
8f662621982b678e438f89f0deece93cf364cd6b
C#
tomitaf/Secao14_Interfaces
/Secao14_Interfaces/Entities/Invoice.cs
3.296875
3
using System.Globalization; namespace Secao14_Interfaces.Entities { class Invoice { public double PagamentoBasico { get; set; } public double Imposto { get; set; } public Invoice(double pagamentoBasico, double imposto) { PagamentoBasico = pagamentoBasico; ...
4c5cb20c4843ef13ce07d065577a93147d71b6f9
C#
bzamecnik/bokehlab
/BokehLab/BokehLab.InteractiveDof/Camera.cs
2.859375
3
namespace BokehLab.InteractiveDof { using System; using System.Collections.Generic; using System.Linq; using System.Text; using OpenTK; // TODO: compute field of view from focal length and senzor size and position /// <summary> /// Represents the intrinsic camera parameters. /// <...
b9a6e56482589fe08bd40e8d80a950dd079daae1
C#
davidvanderburgh/Tech-Elevator-Exercises
/module-1/12_Polymorphism/TollBoothCalculator/Classes/Car.cs
3.4375
3
using System; using System.Collections.Generic; using System.Text; namespace TollBoothCalculator.Classes { class Car : IVehicle { public bool HasTrailer { get; } public Car(bool hasTrailer) { HasTrailer = hasTrailer; } public override string ToString() ...
d66d4870e01ad448de8c517d1eefdba2847ec127
C#
Aureliaa7/Teacher-Evaluation
/TeacherEvaluation/TeacherEvaluation.BusinessLogic/Commands/Questions/LikertQuestionsCommandHandler.cs
2.515625
3
using MediatR; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using TeacherEvaluation.BusinessLogic.Exceptions; using TeacherEvaluation.DataAccess.UnitOfWork; using TeacherEvaluation.Domain.DomainEntities; namespace TeacherEvaluation.BusinessLogic.Commands.Q...
ccee3c1ca1b2ddf8d94d05a2ae393299ee66eba8
C#
hraverkar/APAS_Android_Application_Solution
/Today/interfaceDeaultImplementation.cs
3.265625
3
using System; using System.Diagnostics; namespace ConsoleApp9 { interface ILogger { void Info(string message); void Error(string message); void Warm(string message) { Console.WriteLine(message); } } public class ConsoleLogger : ILogger { public void Error(string test) { ...
5bb7242087b84182beea47f2bdadec914dd30b48
C#
cammy2404/ImIn
/ImIn/LocationLogInHandlers.cs
2.984375
3
using System; using System.Threading; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Security.Cryptography; namespace ImIn { class LocationLogInHandlers { public void Launch(Form window, string username, st...
edee7ead5e0c282777c55eab8c974d2cfe6ad1c5
C#
DonaldAirey/data-model-generator
/GammaFour.DataModelGenerator.Common/StringExtensions.cs
3.046875
3
// <copyright file="StringExtensions.cs" company="Gamma Four, Inc."> // Copyright © 2022 - Gamma Four, Inc. All Rights Reserved. // </copyright> // <author>Donald Roy Airey</author> namespace GammaFour.DataModelGenerator.Common { using System; using System.Collections.Generic; using System.Globalizatio...
97c68adb107fb5527afd1325d4ae723c94889ac5
C#
avishome/WPF_TestSystem_2018
/UI/Service/BE/Teacher.cs
2.703125
3
using System; using System.Collections.Generic; namespace WCFServiceWebRole1.BE { public class Teacher : InterfaceAcsess { public Teacher() { group = new List<string>(); Hours = new Schedule(); } public Teacher(string id, string firstName, string lastNAme,Gender gen, DateTime birthDay, address...
7ba6752f8e7cef5e7b9fd37cada85d65d5bbfd56
C#
Karnah/ReactiveValidation
/src/ReactiveValidation.Wpf/Templates/ErrorTemplates.cs
2.6875
3
using System; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; namespace ReactiveValidation.WPF.Templates { /// <summary> /// Error templates for validation. /// </summary> public static class ErrorTemplates { /// <summary> /// List of using br...
4b863f9fdd3d5b6e98edb93cc3daa6751025292f
C#
SoftUni/Web-Services-and-Cloud
/5. OopBasicTopics/Interfaces/Formatters/JsonFormatter.cs
2.6875
3
namespace Interfaces.Formatters { public class JsonFormatter : IFormatter { public string Format(string name) { return "{ \"name\" : " + name + " }"; } } }
b29a2a65ed06de187d85f643bf22268814ef8536
C#
vwarship/PI-AF-Samples
/AFSDKSamples/UOMManager.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using OSIsoft.AF; using OSIsoft.AF.UnitsOfMeasure; namespace AFSDKSamples { class UOMManager { private PISystem piSystem; public UOMManager(PISystem piSystem) { this.piSystem = piSystem; ...
d5ea1fdd7cb0d0df1b88afcd84002469ee3c4b26
C#
manmorc/C_Sharp
/EntryPoint.cs
3.03125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EntryPoint : MonoBehaviour { // Use this for initialization void Start () { Dot coords = new Dot(1.2f, 2.2f); coords.Drow(); } } public class Dot { float x; float y; public Dot( float x, f...
448587df8b7a25779a5a790b6216c66ebb8bb878
C#
ehsan-majdi/Asef
/Asefian.Model/Context/Data/Enum/ServiceStatus.cs
2.796875
3
using Asefian.Model.Common; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace Asefian.Model.Context.Data.Enum { /// <summary> /// وضعیت خدمات /// </summary> [Table(name: "ServiceStatus", Schema = "enum")] public class ServiceStatus : BaseEnum<ServiceSt...
ded1ec85a6763b873fbb4ecaebb41d7a8ce6ff7e
C#
dnwSilver/ProsolveGatewaySite
/src/Sharpdev.SDK.Types/EmailAddresses/EmailValidationException.cs
2.734375
3
using System; using System.ComponentModel; using System.Runtime.Serialization; namespace Sharpdev.SDK.Types.EmailAddresses { /// <summary> /// Представляет ошибки, происходящие во время проверки адреса электронной почты. /// </summary> [Serializable] [Localizable(false)] public class Email...
fb619905bbbfe1725b8c381d68ed0fef69393000
C#
shendongnian/download4
/first_version_download2/412936-36145311-113801973-2.cs
3.078125
3
var items = new List<string[]>() { new []{"1", "2", "3" ,"4" }, new []{"4","3", "2", "1"}, new []{"1", "2"} }; var results = items .GroupBy(i => i, new UnorderedEnumerableComparer<string>()) .ToDictionary(g => g.Key, g => g.Count());
a7f8d74c5ab7b240d72a80a8551a2a597a9a4056
C#
AleksandarBoev/Software-University-Programming-Fundamentals
/21.StringsAndTextProcessingExercises/P02ConvertFromBaseNToBase10/Program.cs
3.5625
4
using System; using System.Linq; using System.Numerics; namespace P02ConvertFromBaseNToBase10 { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(); BigInteger baseN = BigInteger.Parse(input[0]); string n = string.J...
001d877d47eb67060695513a5522dc8d84fd76bf
C#
mjuskiewicz/presentationForDotNetGroup
/Prezentacja.UI/ViewModels/StatusViewModel.cs
2.53125
3
using Prezentacja.Common; using Prezentacja.Modem; using Prezentacja.Modem.Commands; namespace Prezentacja.UI.ViewModels { public class StatusViewModel : NotificationObject { private IModemConnection _modemConnection; private string _model; private string _producer; public St...
a5dc599e92b8078672a3b4fd6010a8f4269ee139
C#
dmitry-solovyov/budget-online
/BudgetOnline.UI.Controls/TableBaseColumn.cs
2.59375
3
using System; using System.Collections.Generic; using System.Web; namespace BudgetOnline.UI.Controls { public class TableBaseColumnBuilder<TModel, TBuilderType> : IMultiBuilder<ColumnRenderParts, TModel> where TModel : class where TBuilderType : class { protected string _headerCss; public virtual TBuilderTy...
6dc27ef32525a240b3ad693fdeb19a30b1874aed
C#
williamleecn/StorjDotNet
/StorjTests/HelperTests.cs
2.75
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using StorjDotNet; namespace StorjTests { [TestClass] public class HelperTests { [TestMethod] public void ConvertsUnixTime...
3fe7205e0cfcc411fc2d8c74845e4e090e869022
C#
viktor53/Game_Risk
/AI/MCTS/MonteCarloTreeSearch.cs
2.71875
3
using Risk.Model.Enums; using Risk.Model.GameCore; using Risk.Model.GameCore.Moves; using Risk.Model.GamePlan; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Risk.AI.MCTS { internal class MonteCarloTreeSearch { private int _numberO...
31e0f22dbc19b204cc99c1cc823d050169cc4408
C#
kamikoto66/BAM
/BAM!/Assets/Script/StoreScene/StoreSystem.cs
2.75
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class StoreSystem : MonoBehaviour { public static StoreSystem instance; public float[] carProb; public float[] furnitureProb; float Choose(float[] probs) // 확률 { float total = 0; foreach (float...
5a0d8041f95863baedae51a8e52943dc7a3642d3
C#
phigames/Leafblower
/Leafblower/Level.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SFML.Window; using SFML.Graphics; namespace Leafblower { class Level { private LevelState GameState; private Sprite StartImage; private string StartMessage; ...
7ca2908ed971374563db082595c008f0a420436b
C#
bahaAbualkibash/Task1
/Task1/Task1/Person.cs
2.828125
3
using System; namespace Task1 { public abstract class Person { public Info GeneralInfo = new Info(); protected Person(string name, DateTime birthdate,int nationalId) { GeneralInfo.name = name; GeneralInfo.BirthDate = birthdate; GeneralIn...
84bc7f31b3b3addbdea255db39b8c4e550ab2352
C#
TaoSun2016/CSharp-Practice
/DirectoryApp/Program.cs
2.9375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DirectoryApp { class Program { static void Main(string[] args) { Console.WriteLine("***** Fun with Directory(Info) * ****\n"); ...
cf406a851f3f993b75c8cd694eeb35ee96a49220
C#
profjordanov/kubernetes-playground
/Server/CarRentalSystem.Admin/Services/ServiceEndpoints.cs
2.515625
3
namespace CarRentalSystem.Admin.Services { using System; using System.Linq; public class ServiceEndpoints { public string Identity { get; private set; } public string Statistics { get; private set; } public string Dealers { get; private set; } public string this[stri...
3cd472824d1a5725fbd4b6bb45b4e1d1d5c149f4
C#
DiDoHH/Cake.7zip
/src/Cake.7zip/Switches/RecurseType.cs
2.796875
3
namespace Cake.SevenZip.Switches { /// <summary> /// <para> /// Specifies the method of treating wildcards and filenames on the command line. /// </para> /// <para> /// <list type="bullet"> /// <item><description><see cref="SwitchIncludeFilename"/></description></item> /// <item><descrip...
e520e05d57eef0a1993eb3a0740fc852843b759f
C#
jesp209i/AdventOfCode2020
/AdventOfTests/Day6Test.cs
2.796875
3
using AdventOfCode; using AdventOfCode.Day6; using FluentAssertions; using System; using System.Collections.Generic; using System.Text; using Xunit; namespace AdventOfTests { public class Day6Test { [Fact] public void TestInput() { var reader = new InputReader(); ...
fa6bece4b2cc5f0a4f18623bf883b10156462079
C#
duongle456/phanmem
/QuanLyKyTucXa/QuanLyKyTucXa/BusinessLogicLayer/Entities/Phong.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace QuanLyKiTucXa.BusinessLogicLayer.Entities { class Phong { //Cac thanh phan du lieu private string MaPhong; private string TenPhong; private string MaTN; private string LoaiPh...
7de6fd0ae22f17684544c7aacb8877f7e8586d5a
C#
iFon25/steam-card-exchange-parser
/src/GameInfoLoader.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; using HtmlAgilityPack; using Microsoft.Extensions.Options; using SteamCardExchangeParser.Configuration; using SteamCardExchangeParser.Models; namespace SteamCardExchangeParser { p...
bb3aab9215d50020d1d9ea2d0a1a57a16e8332ae
C#
rajrao/Math.Net.StreamingStats
/Math.Net.StreamingStats/Interfaces/IStreamingStatsCollector.cs
2.78125
3
using System; using System.Collections.Generic; using System.Text; namespace Math.Net.StreamingStats.Interfaces { /// <summary> /// Provides statistics on a list of values without actually storing the list of values /// The statistic information can be queried at any point in time during the capture of d...
772cd747eade505d5c8143533a0d4794c5325940
C#
efraju/VisualStudioDeveloperEfra
/DataAccess.Tests/TracksTests.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; using FluentAssertions; using DataAccess; namespace ClassLibrary1 { public class TracksTests { private readonly IUnitOfWork _unitOfWork; public TracksTests() ...
5e68d230fc2256adbe867e101fb72f023bd9fb46
C#
DVLKinoMan/Refactored-LeetCode-Problems-Solutions
/DVL_LeetCode_Problems_Solutions/DVL_LeetCode_Problems_Solutions.Domain/Medium/Minimum Domino Rotations For Equal Row.cs
3.453125
3
using System.Linq; namespace DVL_LeetCode_Problems_Solutions.Domain { partial class ProblemSolver { /// <summary> /// Minimum Domino Roations for Equal Row (My Solution) /// </summary> /// <param name="A"></param> /// <param name="B"></param> /// <returns></retu...
79afb13bc7ada97aea23f1d77eaa71d3a9c79ded
C#
ShadowDancer/SharpMixin
/src/SharpMixin.Generator/Generator/ConstructorParamConfigurator.cs
2.53125
3
using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Operations; using SharpMixin.Generator.Configuration; namespace SharpMixin.Generator.Generator { /// <summary> /// Takes list of types and creates constructor conf...
6b54f56a8b68dca9690b8eb834ce36327f4c9c44
C#
psywombats/7drl2019
/7drl2019/Assets/Scripts/UI/Narrator.cs
2.8125
3
using UnityEngine; using System.Collections; using UnityEngine.UI; using System.Collections.Generic; using DG.Tweening; using System.Text; [RequireComponent(typeof(Text))] public class Narrator : MonoBehaviour { private const float OlderMessageAlpha = 0.5f; private List<LogEntry> messages = new List<LogEntr...
a95b16e86c4cc5d803c4e64272be1dd5f87c266d
C#
Bino87/Snake
/Simulation/Core/NetworkAgent.cs
2.75
3
using System; using Commons.Extensions; using Network; using Simulation.Enums; using Simulation.Extensions; using Simulation.Interfaces; namespace Simulation.Core { internal class NetworkAgent { private readonly int _inputCount; private readonly BasicNeuralNetwork _basicNeuralNetwork; ...
8076c45458e9e2777a4e229459c7af1bddcad306
C#
devlee1/DateAdd-MVP-EXP-2
/DateOperations/Interfaces/IDateCalculator.cs
2.53125
3
namespace DateOperations { public interface IDateCalculator { string AddDays(int year, int month, int day, int daysToAdd); string AddDays(string date, int daysToAdd); } }
a695b971432b778e1a58524fb028f9e0dd2b01d4
C#
MrDongYiChen/StupidBird
/Bird.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; using StupidBird.Properties; namespace StupidBird { class Bird:GameObject { /*获得鸟的图片*/ private static Image[] birdsImgs = { Resources._0...
cd8606f0929a0f0e988cad8abe102a73b6cfffb8
C#
novotnyllc/MetroLog
/MetroLog.Shared/LogManagerFactory.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using MetroLog.Internal; namespace MetroLog { public static class LogManagerFactory { static readonly ILogConfigurator Configurator = new LogConfigurator(); ...
5e56166e56e1ffa5fe0dbc8855e4b34d5a1652b7
C#
steve2/sc2builder
/SC2Builder/SC2Builder/Logic/BuildReader.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace SC2Builder { class BuildReader { public static Build ReadFromFile(string filename) { Step buildStep; List<Step> buildSteps; string line; string[] lineSplit; ...
2ba29c3ece95f43ed79dbfa5e66f26a4dc347cc5
C#
irmen/Serpent
/dotnet/Serpent/Tests/SlowPerformanceTest.cs
2.59375
3
using System; using Xunit; // ReSharper disable CheckNamespace namespace Razorvine.Serpent.Test { public class SlowPerformanceTest { // tests some performance regressions when they occur [Fact(Skip="number parse performance in long lists has been resolved")] public void TestManyFloats() { const int amount = ...
b4856ed2cf894457f1b29703f47de3854bbe1c0e
C#
tetsuzawa/Research_VirtualSound
/Assets/Scripts/GetAllChildren.cs
2.9375
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public static class GetAllChildren { public static List<GameObject> GetAll(this GameObject obj) { List<GameObject> allChildren = new List<GameObject>(); List<GameObject> Children2 = new List<GameObject>(); G...
6d35c589350bd54bc4df4a523050d48d4a651a74
C#
rpe4a/C-projects
/TDDProject/LogAn/LogAnalyzer.cs
3.109375
3
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LogAn { /// <summary> /// Класс логирования /// </summary> public class LogAnalyzer { private Ilogger logger; private IWebService serv...
09811aa88d1cdb77557f6234ceadea9d1a8572e9
C#
RichaMills2/MyPay
/MyPay/MyPay/Controllers/Api/TaxTablesController.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using MyPay.Models; namespace MyPay.Controllers.Api { public class TaxTablesController : ApiController { private ApplicationDbContext _context; publ...
5459a150a69e20f2b0a796db3345f72ccd35a528
C#
ByteDev/ByteDev.Cmd
/src/ByteDev.Cmd/Arguments/CmdArgFactory.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; namespace ByteDev.Cmd.Arguments { internal class CmdArgFactory { private readonly IEnumerable<CmdAllowedArg> _cmdAllowedArgs; public CmdArgFactory(IEnumerable<CmdAllowedArg> cmdAllowedArgs) { _cmdAllowedArg...
8c2f3d6bcb08f44925867c8607f9fb3cdab64226
C#
susingh/questions
/Questions/IK/Recursion/RegexMatcher.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Questions.IK.Recursion { class RegexMatcher { public static bool IsMatch(string input, string pattern) { List<bool> isStar = new List<bool>(); s...
f67a4427834d70181621345203b4c1b4d40ee1f5
C#
DrMole1/CertificationUnity
/BeginnerScripting/Assets/Scripts/Switch.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Switch : MonoBehaviour { public int age = 5; void Start() { switch (age) { case 5: print ("Tu es à l'école"); break; case 12: print ("Tu...
ee62bd5566132eea3934d93676c7dea10662eff2
C#
janssener/AdventOfCode
/AdventOfCode/Day8.cs
3.109375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AdventOfCode { public static class Day8 { public static int Run() { var highestValEver = 0; var topResult = 0; Dict...
b4f049a5b2ab1802782eddd373af4b5e2b8dd99a
C#
kellemporteous/Home-Run
/Assets/Scripts/LittleBrother.cs
2.96875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; public class LittleBrother : MonoBehaviour { public float speed; public float offset; //The distance before the AI detects enemies public float maxEnemyDistance; //The distance AI loses sight of pl...
7415e936c2717e854c6edb707cc4128e084a80c3
C#
shendongnian/download4
/first_version_download2/163839-12522770-29475135-2.cs
3.5
4
public static byte[] Array1DFromBitmap(Bitmap bmp){ if (bmp == null) throw new NullReferenceException("Bitmap is null"); Rectangle rect = new Rectangle(0, 0, bmp.Width, bmp.Height); BitmapData data = bmp.LockBits(rect, ImageLockMode.ReadWrite, bmp.PixelFormat); IntPtr ptr = data.Scan0; ...
b56e85029ee3589d72e0af92c8f5609a4b610426
C#
eypsay/ReCapProject
/ConsoleUI/Program.cs
2.71875
3
using Business.Concrete; using DataAccess.Concrete.EntityFramework; using DataAccess.Concrete.InMemory; using Entities.Concrete; using System; namespace ConsoleUI { class Program { static void Main(string[] args) { //CarManager carManager = new CarManager(new InMemoryCarDal()); ...
f971d46dcf6883151857716d3926fe0d3595f614
C#
nmatanski/Slime-Boy--Unity-2D-Top-Down-Action-Game
/The Slime Boy/Assets/Scripts/Character.cs
2.765625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public abstract class Character : MonoBehaviour { //private int enemyKilledCount = 0; ///private bool areEnemiesKilled = false; public int MaxHealth { get; set; } ...
bd9d39e660ebb40931342fb85a85c7423ea48fdb
C#
ST52084/C_Course_002
/Lessons 18/ClassWork/Reminder.Storage.Memory/ReminderStorage.cs
2.984375
3
using System; using System.Collections.Generic; using Reminder.Storage.Exceptions; using System.Linq; namespace Reminder.Storage.Memory { public class ReminderStorage : IReminderStorage { private readonly Dictionary <Guid, ReminderItem> _items; public ReminderStorage() { ...
52ab02c7e3c63bc48089b6e7aaa21fae66abe1c2
C#
h0wXD/Simple.Data
/Simple.Data/QueryPolyfills/OrderByClauseHandler.cs
2.53125
3
using System.Collections.Generic; using System.Linq; namespace Simple.Data.QueryPolyfills { internal class OrderByClauseHandler { private readonly OrderByClause _orderByClause; public OrderByClauseHandler(OrderByClause orderByClause) { _orderByClause = orderByCla...
fe51418015d97c1742f0ef14bd47ed811ba255bd
C#
TohWei/badminton
/badmintoncourtmanager/Pages/HelpPage.xaml.cs
2.96875
3
using System; using System.Collections.Generic; using Xamarin.Forms; namespace badmintoncourtmanager.Pages { public partial class HelpPage : ContentPage { public HelpPage() { InitializeComponent(); } protected override void OnAppearing() { base...
ffeaad0ce3985f27858d1360acbd29b42ac28fec
C#
Joe0707/mmoproject
/Src/Server/GameServer/GameServer/Managers/MapManager.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Common; using GameServer.Models; namespace GameServer.Managers { class MapManager : Singleton<MapManager> { Dictionary<int, Dictionary<int,Map>> Maps = new Dictionary<int, Dictiona...
64d8334843fc779fd765323387a52026b9b72c73
C#
Epitelantha/Quick.Math
/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace QuickMath { class Program { static void Main(string[] args) { Console.WriteLine("Hi"); Console.WriteLine("would"); Con...
7e77a89a16be8ba436f20efcf58310b3e4522c21
C#
JeremyLikness/BuildWin8Apps
/Chapter6/Wintellog/Wintellog/DataModel/BlogUtility.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text.RegularExpressions; namespace Wintellog.DataModel { public static class BlogUtility { public const string BLOGGER_PAGE = "http://www.wintellect.com/CS/blogs/Bloggers.aspx"; public ...
6b8fa99f148eb1ad93bc98af9eaaa1ab92954fa3
C#
Zubyfrank/LibraryManager
/Views/Login.cs
2.578125
3
using LibraryManager.Models; using MetroFramework.Forms; 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 LibraryManager.Views { public par...
810794088146e7423060070aa4a00297261258d6
C#
unity-game-framework/ugf-csv
/Packages/UGF.Csv/Runtime/Plugins/CsvHelper/CsvParser.cs
2.546875
3
// Copyright 2009-2020 Josh Close and Contributors // This file is a part of CsvHelper and is dual licensed under MS-PL and Apache 2.0. // See LICENSE.txt for details or visit http://www.opensource.org/licenses/ms-pl.html for MS-PL and http://opensource.org/licenses/Apache-2.0 for Apache 2.0. // https://github.com/Jos...
4aaef8e9d6c351d8478cd17b929727e417749a32
C#
julianhendricks/BKTMProjektSportfest
/Sportfest-Verwaltung/Sportfest-Verwaltung/Entities/MySQL.cs
2.71875
3
using System; using MySql.Data.MySqlClient; using System.Windows.Forms; using System.Collections.Generic; using SportsFestivalManagement.Provider; using System.Linq; namespace SportsFestivalManagement.Entities { class MySQL { private const string log_tableName = "sqlLogs"; private const string...
481768a6a58fddedc52f098bf52c06648497367b
C#
mrhockeymonkey/mrhockeymonkey.github.io
/src/DesignPatterns/Structural/Decorator/BasicExample.cs
3.84375
4
using System; namespace DesignPatterns.Structural.Decorator { public interface INotifier { void Send(); } public class Notifier : INotifier { public void Send() { Console.WriteLine("Sent default notification"); } } // base class provide...
08be668cfe4a9daa47c743b54a7a2a2ef1a8842c
C#
AkisRep/AFDEMP
/Program.cs
3.375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace myFirstApplication1 { class Program { static void Main(string[] args) { { /* Console.Wri...
d7b458afcb84586899b1a5a4be5fa7409d1caa41
C#
unithiyashree/1-Introduction-CsharpinUnity
/ProgrammingAssignments/C1-ProgrammingAssignment2/ProgrammingAssignment2/Program.cs
3.84375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProgrammingAssignment2 { /// <summary> /// Programming Assignment 2 solution /// </summary> class Program { /// <summary> /// Deals 2 cards to 3 players and...
cb532fdb8780ee231169c876a55c2938ff678def
C#
Abbas10/UnitOfWork
/Test.Repositories/Concreat/CourseRepository.cs
2.765625
3
using System.Collections.Generic; using System.Data.Entity; using System.Linq; using Test.ORM; namespace Test.Repositories { internal class CourseRepository : Repository<Course>, ICourseRepository { public CourseRepository(TestDBContext context) : base(context) { } ...
56e96c879d729e9ae629c83055ec4efe99fac47f
C#
chuongnhh/Mastering-It-2017
/Admin/AdminGame/InsertForm.cs
2.609375
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 BusinessLogic; using DatabaseObject.Entities; namespace Admin.AdminGame { public partial class...
d7fed18ee8422592e797b84c7c74aafd73631109
C#
fvideon/Webviewer
/ArchiveRTNav/RTScrollLayer.cs
2.59375
3
using System; using System.Runtime.Serialization; namespace ArchiveRTNav { /// <summary> /// Update scroll information. /// </summary> [Serializable] public class RTScrollLayer : ISerializable { private Int32 version = 1; private Double scrollPosition; public Double ScrollPosition { g...
e8dd29ded35ec837dc7ac017c67cde08e54fe9a8
C#
cizfilip/JVMdotNET
/JVMdotNET/JVMdotNET.Core/ClassFile/StaticField.cs
2.671875
3
using JVMdotNET.Core.ClassFile.Attributes; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace JVMdotNET.Core.ClassFile { internal class StaticField { public FieldInfo Info { get; private set; } public object Value { get; set; } public Stati...
c8c0f4e9c9a84e8c01208cef1bdc05780a7da0e7
C#
Mavtak/roomie
/Roomie.CommandDefinitions.HomeAutomation.Q42HueCommands/Helpers.cs
2.578125
3
using System; using Q42.HueApi; using Q42.HueApi.ColorConverters; using Q42.HueApi.ColorConverters.OriginalWithModel; using Roomie.Common.Color; using Roomie.Common.HomeAutomation.BinarySwitches; using Utilities = Roomie.Common.HomeAutomation.Utilities; namespace Q42HueCommands { public static class Helpers {...
05fd6e467bcd21a284226b984e4bc2710d03bbee
C#
cstamas91/Carcassonne
/Carcassonne/CarcassonneServer/Model/Representation/GameItems/Player.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using CarcassonneSharedModules.Tools; using System.IO; namespace CarcassonneServer.Model.Representation { public class Player { #region Declaration private string name; public string Name { ...
1e32fdbec57c842ef7b8c2e0e3231a00ccab3628
C#
BacksuJung/BSWebhookSender
/BSWebhookSender/Functions.cs
2.8125
3
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using System.Net; using System.Web; namespace BSWebhookSender { //변수지정 internal class Functions { private static byte[] Post(string url, NameValueCollection pairs) { ...
8789c01e34980ff1ccf36e42898646813b1080c5
C#
lerwine/PowerShell-Modules
/src/LteDev/RegexParsing/ExplicitQuantifierToken.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web.UI; namespace LteDev.RegexParsing { public sealed class ExplicitQuantifierToken : QuantifierToken { public string MinValue { get; } public string MaxValue { get; } public ExplicitQuantifierToken(strin...
e76f1d2cabbcade27d71f5a03d2b958a7ee5ccf8
C#
mishabuhalo/SpotifyPlaylistAnalizer
/SpotifyPlaylistAnalizer/SpotifyPlaylistAnalizer.Application/SpotifyAPI/Playlists/Queries/GetPlaylistAvarageAudioAnalysisQuery.cs
2.515625
3
using FluentValidation; using MediatR; using SpotifyPlaylistAnalizer.Application.Interfaces; using SpotifyPlaylistAnalizer.Application.Models.AudioAnalis; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace SpotifyPlaylistAnalizer.Application.SpotifyAPI.Playlists.Queries ...
ef53a5b41aafafaf8027d52eb29942627ce623ac
C#
NathanW2/mapinfodotnetwrapper
/MapinfoWrapper.Core/branches/Major Refactor/MapInfo.Wrapper.Core/Check.cs
3.296875
3
using Mapinfo.Wrapper.Core.Extensions; using System; using System.IO; namespace Mapinfo.Wrapper.Core { public static class Check { /// <summary> /// Checks if a file exists at the supplied location. /// </summary> /// <param name="path">The path of the file to check.<...
1f29943ada3327cc34dc43e37e0704abaaa64950
C#
suleimansultanov/dictionary-test
/Infrastructure/Implementations/UnitOfWork.cs
2.75
3
using System; using System.Threading.Tasks; using DAL.Interfaces.Repositories; using Infrastructure.Implementations.Repositories; namespace Infrastructure.Implementations { public class UnitOfWork : IUnitOfWork { private readonly AppDbContext context; private IWordsRepository wordsRepository; ...
369c5d25afe8313933a767d0ab4da1fdf0c2c67a
C#
tylerrichey/feedparsercore
/FeedParserCore.Tests/TestAtom.cs
2.59375
3
using System.Linq; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace FeedParserCore.Tests { [TestClass] [TestCategory("Atom")] public class TestAtom : TestFeed { public TestAtom() { expectedItems = 25; _feed ...
2da3d7641bd2b3f351e1af9680766fb42c760e60
C#
hypar-io/Elements
/Elements.Serialization.SVG/src/SvgSection.cs
2.546875
3
using Elements.Geometry; using SkiaSharp; using Svg; using Svg.Skia; using Svg.Transforms; using System; using System.Collections.Generic; using System.IO; using System.Linq; using Colors = System.Drawing.Color; namespace Elements.Serialization.SVG { /// <summary> /// Orientations for a plan relative to the pa...
aa20cb501894b26a776e6539ca90889c7088fc93
C#
Venryx/Reborn-Mod-Manager
/DotaInstaller/src/DotaModel/DotaLocator.cs
2.578125
3
using System.IO; using System.Linq; using Microsoft.Win32; using Path = System.IO.Path; namespace DotaInstaller.DotaModel { public static class DotaLocator { public static bool Checked; public static string LocateSteam() { using (var key = Registry.LocalMachine.OpenSubKey(@...
50db69d8aca295b7f6f7bbf0ed038c9b922fdd6d
C#
andrhil/AnotacnyNastroj
/anotacnynastroj-x86ax64/projekt/Forms/CreateImageFromDrawObj.cs
2.515625
3
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Windows.Forms; using Projekt.DrawObjects.Extensions; using Projekt.Enums; using Projekt.Figure; using Projekt.Interfaces; using Projekt.SettingOfT...
f3270ade99aefdc3813e4b19ad18ab7543651041
C#
kennethuil/LINQParserGenerator
/Framework.Parsing/StateBuilder.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Framework.Parsing { public class StateBuilder<TChar> where TChar : IComparable<TChar>, IEquatable<TChar> { FiniteAutomatonState<TChar> _initialState; FiniteAutomatonState<TChar> _currentState; ...
5b17c7951e8080b609c762ff6a4eae530909d32f
C#
joyceyeung1221/Kata5
/Blackjack/Card.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; namespace Blackjack { public class Card { public string Name { get; private set; } public string Suit { get; private set; } public int Value { get; private set; } public static Dictionary<string, int> cardValue...
ffd060c96b133bda66992f2b00a068f79a2ce4cf
C#
FrankGalax/iron
/ironparser/Parsing/Syntax/BoolDeclaration.cs
2.6875
3
using IronParser.CodeGen.Visitors; namespace IronParser.Parsing.Syntax { class BoolDeclaration : Declaration { public bool Value { get; private set; } public BoolDeclaration(string Name, bool value, TypeInfo typeInfo) : base(Name, "bool", typeInfo) { Value = va...
e5510686c9e8663595cd18acd3c011995cb8eb31
C#
yinqingzhun/consoleApp
/ConsoleApp/DbAccessHelper.cs
2.703125
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Reflection; using System.Security.Policy; using System.Text; using System.Threading.Tasks; namespace ConsoleApp { public class DbAccessHelper { public const string ConnString...