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
ef8533c22387e2801b216981358271d3c1462bae
C#
DiegoSullon/Moanso2020
/SysRestaurantNorte/Controller/ClientController.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Entity; using Data; namespace Controller { public class ClientController { #region singleton private static readonly ClientController _instancia = new ClientController...
66320815b2c8306e03b774cf8258f9fb1081f6e6
C#
daria-teremkova/2_semester_2018
/Graphs_13/Node.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace Graphs_13 { public class Node { public class Edge { public int A { get; set; } public int NumNode { get; set; } ...
ce0c28c3f975949def384c33dc69c746b48f0fb7
C#
siddhesh-vartak98/Fire-Detection-Using-Infrared-Images
/AForge.Imaging/AForge/Imaging/Filters/Difference.cs
2.578125
3
namespace AForge.Imaging.Filters { using AForge.Imaging; using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; public sealed class Difference : BaseInPlaceFilter2 { private Dictionary<PixelFormat, PixelFormat> formatTranslatio...
d3e12d6995fdd22ecf5a6196c7ba0a7c6ddc7382
C#
berlamont/BluetoothBear
/BluetoothBear/IBleDevice.cs
2.546875
3
// The MIT License (MIT) // // Copyright (c) 2015 Liquimind Inc // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without lim...
63ef295123f60df9b863edcb5dfb5f158fd7ea7e
C#
FlamingoLab/TheLostFire
/Assets/Voidless/Scripts/Behavior Trees/Composites/BehaviorTreeComposite.cs
2.8125
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Voidless { public abstract class BehaviorTreeComposite<T> : BehaviorTreeComponent<T>, IAgentComposite<T, IEnumerator<TreeState>> where T : IComponentAgent<T, IEnumerator<TreeState>> { private List<IAgentComponent<T...
4b88323dfe43fdadf85ae5510eb8657cd135acd3
C#
GabGuerra/GerenciamentoIdentidadeCore
/GerenciamentoIdentidadeCore2/Repositories/LoginRepository.cs
2.71875
3
using GerenciamentoIdentidadeCore2.Models; using GerenciamentoIdentidadeCore2.Models.Login; using Microsoft.Extensions.Configuration; using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace GerenciamentoIdentidadeCore2.Repositories { ...
ad3564510f365c5a431d39add930712ce4f6f51e
C#
zetanove/programmare_con_csharp8
/Capitolo 03/SintassiBase/Program.cs
3.71875
4
/* * Programmare con C# 8 guida completa * Autore: Antonio Pelleriti * Capitolo 3: sintassi di base */ using System; namespace SintassiBase { class Program { static void Main(string[] args) { //Commenti //commento su una linea /* * commen...
885c74143233080167b3af509cbced6ac0c5b308
C#
Ainslay/RPG
/RPG.API/Commands/PlayerCommands/AddPlayerCommandHandler.cs
2.703125
3
using System; using System.Threading; using System.Threading.Tasks; using MediatR; using RPG.API.Database; using RPG.API.Model; namespace RPG.API.Commands.PlayerCommands { public class AddPlayerCommandHandler : IRequestHandler<AddPlayerCommand, Guid> { private ApplicationDbContext _context; p...
f219f7fa0d479c1fd02fdf851ddd74d67ccc8890
C#
1-designer-1/Pract-11
/Pract 11/Form1.cs
3.140625
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.Text.RegularExpressions; namespace Pract_11 { public partial class Form1 : Form { ...
8b6b70753e86bca266916b7b19ac82f33d3a9a68
C#
user1311/SportsStore
/SportsStore/Models/ViewModels/ProductCategoryViewModel.cs
2.625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace SportsStore.Models.ViewModels { public class ProductCategoryViewModel { //[Required(ErrorMessage =...
65f73278264869254749df5f43237e3be805344a
C#
shendongnian/download4
/latest_version_download2/64246-11730711-27385074-2.cs
3.140625
3
public sealed class PlaceHolderAttribute:ValidationAttribute { private readonly string _placeholderValue; public override bool IsValid(object value) { var stringValue = value.ToString(); if (stringValue == _placeholderValue) { ErrorMessage = string.Format("Please fill out {0}", _placeholderValue...
431d791bfbfa806713188dc585b34f98f0e9a229
C#
alexoah/CSharpPlayground
/W3School-CSExercises/CS-Classes_Objects/csClasses_ObjectsE4.cs
3.734375
4
/** * from C# Classes/Objects: Exercise 4 ( https://www.w3schools.com/cs/exercise.asp?filename=exercise_classes4 ) * * question: * Call the fullThrottle() method from the object: * * class Car * { * public void fullThrottle() * { * Console.WriteLine("The car is going as fast as it can!"); * } * * s...
0a650d4d7203e26b189e223e48501097f6c3c1c3
C#
jhmartin404/RPGHeroPrototype
/RPGHero/Assets/Scripts/InventoryItemDetails.cs
2.65625
3
using UnityEngine; using UnityEngine.UI; using System.Collections; public class InventoryItemDetails : MonoBehaviour { private InventoryItem item; private Text itemText; public InventoryItem Item { get { return item; } } // Use this for initialization void Start () { itemText = gameObject.Get...
140684ca4302e48b9d3cb4f0ca399e0c12015f99
C#
robdavey555/Demo
/Eintech.Data/EintechContext.cs
2.8125
3
using Eintech.Data.Extensions; using Eintech.Data.ModelConfiguration; using Eintech.Models; using Microsoft.EntityFrameworkCore; using System; using System.Diagnostics.CodeAnalysis; using System.Linq; namespace Eintech.Data { [ExcludeFromCodeCoverage] public class EintechContext : DbContext { publ...
e4c2ac17da401c966f5a2d1c79fe512111996ad8
C#
bastienmurot/AltDotNet_2016_01_RPN
/RPN_Test/RPNTest.cs
3.3125
3
using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace RPN_Test { public class RPN { public static int Compute(string input) { var stack = new Stack<int>(); foreach (var data in input.Split(' ')) { in...
21a2b7dfe025f6870a56846d98800e22b9a3d19a
C#
mlstroud/rock-paper-scissors
/RockPaperScissors/Models/RockPaperScissors.cs
3.203125
3
using System; using System.Collections.Generic; namespace Game.Models { public class RockPaperScissors { public string UserChoice { get; set; } public string ComputerChoice { get; set; } public static string[] _computerChoices = { "rock", "paper", "scissors" }; public static Dictionary<string, stri...
73a86a9a1b0965f61a31d7ea238da97b313f5926
C#
xy19xiaoyu/TG
/Patentquery_TLC/BLL/Authority.cs
3.046875
3
using System; using System.Collections.Generic; using TLC.DataAccessLayer; namespace TLC.BusinessLogicLayer { /// <summary> /// Ȩ /// </summary> public class Authority { /*** ֶ̬ ***/ private int _AuthorityId; private byte _Types; private string _Url; ...
8d57651456f0800f1fa998eb0fbc0c971e934d7d
C#
etking19/icon600
/WindowsMain/WindowsFormServer/FormLicense.cs
2.765625
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; using System.Windows.Forms; namespace WindowsFormClient { public partial class FormLicense : Form { private delegate void ...
6fc22bf4b5d900a8304cebf5b9f0fdf757e52289
C#
dawidkomorowski/geisha
/src/Geisha.Editor/Core/EventBus.cs
2.78125
3
using System; using System.Collections.Generic; using NLog; namespace Geisha.Editor.Core { public interface IEvent { } public interface IEventBus { void RegisterEventHandler<TEvent>(Action<TEvent> handler) where TEvent : IEvent; void SendEvent<TEvent>(TEvent @event) where TEvent :...
d76b7fa0deb3f3b8bfdae47b8a9a617a0981d11d
C#
SimpleLonely/NJUMSCBot
/NJUMSCBot/Data/Data.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json; using NJUMSCBot.Models; namespace NJUMSCBot.Data { public static class Data { static Data() { Constants = Read<StringConstants>(nameof(StringConstants)); Departm...
a382d559537addcacee5f919e18a715c3eb25c05
C#
MarcelloMello2/DxgiScreenCapture
/DxgiScreenCapture/DXGIOutputDuplication.cs
2.671875
3
using SharpDX; using SharpDX.Direct3D11; using SharpDX.DXGI; using SharpDX.Mathematics.Interop; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace DxgiScreenCapture { class DXGIOu...
d0e74c4e71d46144b8433fc3bfb8a6712cd773b5
C#
Baari125/downloading-files
/kopiowanie/Kopiowanie/Kopiowanie/Conversion.cs
2.5625
3
using System.Text; using System; using System.IO; using Spire.Doc; using Spire.Pdf; using Spire.Xls; using System.Net; namespace Kopiowanie { class Conversion { private static string DirectoryPath = Directory.GetCurrentDirectory(); public Conversion() { } ~Conversion() { GC.Collect...
aa3335448281d2d71ca2fcb844d4f08d46832be0
C#
MustaqHussain/UcbManagementInformation
/UcbManagementInformation.Server.DataAccess/Repositories/DataAccessUtilities.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UcbManagementInformation.Server.IoC.ServiceLocation; using UcbManagementInformation.Server.DataAccess.Repositories; namespace UcbManagementInformation.Server.DataAccess { public class DataAccessUtilities { priva...
c90fb413c960d0befe3662e07b264cf4d05f6171
C#
calumjs/DateCalculator
/DateCalculator/Date.cs
3.6875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace DateCalculator { public class Date : IComparable<Date> { public int Days { get; set; } public int Months { get; set; } pub...
26bd67c69b48df31cc93b1737240274108563e34
C#
AbhishekAzad08/ToyRobot
/ToyRobotEngine/Handlers/CommandHandler.cs
3.578125
4
using System; using System.Collections.Generic; using System.Text; using ToyRobotEngine.Enums; namespace ToyRobotEngine.Handlers { public class CommandHandler { /// <summary> /// Gets the input string provided by the user and returns a command object /// </summary> /// <param n...
68a7dfa34d68da1209f144307f8eb319098eb81e
C#
SherlockPei/CodeProject
/Compress/Compressor/SharpCompressor.cs
2.765625
3
/************************************************************************* * Copyright © 2020 Mogoson. All rights reserved. *------------------------------------------------------------------------ * File : SharpCompressor.cs * Description : Sharp compressor. *---------------------------------------...
8be8d75ac60e3b5c8b75e15f63964642323033f1
C#
DUWENINK/NETCORE_3_HELP
/DUWENINK.Core/DUWENINK.Core.Weixin.SDK/Card/Special/LuckyMoneyAPI.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Http; using Codeplex.Data; namespace DUWENINK.Core.Weixin.SDK.Card.Special { /// <summary> /// 特殊卡票接口=> 红包 /// 商户调用接口创建会员卡获取card_id,并将会员卡下发给用户,用户领取后需激活/绑定update会员卡编号及积分信息。会员卡暂不支持转赠。 /// </summary> ...
736f67f0fd33b2f2f6936468bb20dec6e87318a9
C#
shendongnian/download4
/first_version_download2/346215-29396460-87177757-1.cs
3.296875
3
class Program { static void Main(string[] args) { var classType = typeof (Class1); foreach (var prop in classType.GetProperties().Where(p => p.CanWrite)) { Console.WriteLine(prop.Name); } foreach (var field in classType....
edf4d5d315cfcd289a7d23d685ae29307bd8b21b
C#
agapkinadiana/OOP-3
/lab13/lab13/Program.cs
3.078125
3
using System; using static System.Console; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Xml.Serialization; //using System.Runtime.Serialization.Formatters.Soap; using System.Runtime.Serialization.Json; using System.Xml; using System.Xml.Linq; using System.Collections.Gen...
08982e59d8811b6a4a48354031fd7e89abd77a99
C#
prateekbansalind/cSharp-OOP-01-PropertiesTypeExercise
/ConsoleUI/AddressModel.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleUI { class AddressModel { public string Street { get; set; } public string City { get; set; } public string Region { get; set; } public string Co...
ce405575e726405091b42fdc608ae6f8debff4fd
C#
minhtan2302/CodeWeb
/BT1/BT1/Program.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BT1 { class Program { static void Main(string[] args) { HCN hcn = new HCN(); hcn.CongThuc(); Console.WriteLine("Chu vi hinh chu nhat...
4f51d3bd473369e95b2fbfdf41fd6da0067dba36
C#
DHIteration/INVedit
/GUI/BookForm.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.Windows.Forms; namespace INVedit { public partial class BookForm : Form { private string _BookText; public string BookText ...
e5fc53bf66ece132fa4ebcdbb5035229ae906aab
C#
romerotg/LeetCodeProblems
/LeetCodeProblems/Anagrams.cs
3.546875
4
using System; using System.Collections.Generic; using System.IO; namespace LeetCodeProblems { public class Anagrams { public List<string> GetAnagrams(string w) { List<string> result = new List<string>(); char[] chars = w.ToCharArray(); Array.Sort(chars); string ordered = new string(chars); stri...
19de1e7931291f3715a91316fe8dd32514e9b014
C#
dlannan/modelthulhu
/code/PreResultModel.cs
2.796875
3
using System; using System.Collections.Generic; using System.Text; using Modelthulhu.Math3D; using Modelthulhu.UserModel; namespace Modelthulhu.Triangulated { public class PreResultModel { protected List<PreResultTriangle> triangles = new List<PreResultTriangle>(); protected Lis...
1aa2d029e4847396501daa32d824398a66f1415c
C#
martincostello/adventofcode
/src/AdventOfCode/Puzzles/Y2018/Day05.cs
3.046875
3
// Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.AdventOfCode.Puzzles.Y2018; /// <summary> /// A class representing the puzzle for <c>https://adventofcode.com/20...
b912c7527385b850cc6eb5994d33038e31197084
C#
maxstralin/BeamingInventory.Example
/BeamingInventory.Example.Presentation.App/InputHandler.cs
3.1875
3
using System.Linq; using System.Threading.Tasks; using BeamingInventory.Example.Presentation.Entities.Interfaces; using Microsoft.Extensions.Logging; namespace BeamingInventory.Example.Presentation.App { public class InputHandler : IInputHandler { private readonly ICommandsProvider _commandsProvider; ...
ad0130a3b8fc9626b5d945fd3139537930ede7d1
C#
jyce3d/3ve-walker
/MayeArc.cs
2.625
3
using System; using System.Collections.Generic; using System.Text; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; namespace _ve_Walker { class MayeArc : Object3D { public CustomVertex.PositionColored[] m_verts; public int m_nLong; protected VertexBuffer m_vBuffer...
e5a688f36ec0ba3ee0455ee2c8d50187cf110ad4
C#
valerysntx/expressionutil
/ExpressionFingerprint/Conditional/ConditionalExpressionFingerprint.cs
2.59375
3
using System.Linq.Expressions; namespace System.Web.Mvc.ExpressionUtil.ExpressionFingerprint.Conditional { using ExpressionFingerprint; #pragma warning disable CS0659 // Type overrides Object.Equals(object o) but does not override Object.GetHashCode() public class ConditionalExpressionFingerprint : AbstractExpres...
2688d7a637e846d74ee58948a87bf790e1b1a730
C#
CCSI-Toolset/turb_sci_gate
/Master/TurbineChangePassword/Program.cs
2.8125
3
using CommandLine; using CommandLine.Text; using System; using System.Collections.Generic; using System.Linq; using System.Security; using System.Text; using Turbine.Data; using Turbine.DataEF6; namespace TurbineChangePassword { class Program { static Boolean verbose = false; class Options ...
8f86dcae55d1737a296ebd0929ced24821c5af08
C#
asuralove/dragonnest_src
/src/com.tencent.pandora/CachedFileMd5Helper.cs
2.546875
3
using System; using System.IO; using System.Security.Cryptography; using System.Text; namespace com.tencent.pandora { public class CachedFileMd5Helper { private static MD5CryptoServiceProvider MD5_SERVICE = new MD5CryptoServiceProvider(); public static string GetFileMd5(byte[] fileBytes) { if (fileBytes.Le...
efdc508bae37b73648600c3c1af269457bfde110
C#
ROHITCHARDE/ProgramLibrary
/Development/Csharp/StaticMethodsAndClasses/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StaticMethodsAndClasses { public class A { public A() { Console.WriteLine("Hello normal A"); } static A() { Console.Writ...
ccd9be174354771a4ec671355cedaa2e4dd1f9a6
C#
Zergatul/ZergatulLib
/Zergatul/Cryptography/Certificate/X509ExtensionsCollection.cs
2.65625
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Zergatul.Network.Asn1.Structures.X509; namespace Zergatul.Cryptography.Certificate { public class X509ExtensionsCollection : IReadOnlyList<X509Extension> { ...
beb992d92cfef54dbe73d0fa1ded82a7aebf442a
C#
lexzh/Myproject
/AppServer/Remoting/Remoting/RemotingDataCS.cs
2.609375
3
namespace Remoting { using System; using System.Collections; using System.Data; using PublicClass; using Library; public class RemotingDataCS : DataBase { public override void Add(DataTable data) { try { if ((data != null) && (data.Row...
02e27892ec99891d7214edacafa79fe383a604f5
C#
bsstahl/AIDemos
/HybridConferenceSchedulerDemo/AddConstraintsDemo.cs
2.546875
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using ConferenceScheduler.Entities; using ConferenceScheduler.Interfaces; using ConferenceScheduler.Exceptions; namespace HybridConferenceScheduler { [TestClass] public class AddConstraintsDe...
e180662b166c6892148808dcd84b317bb5fad4a9
C#
alfifutuhi13/MoneyManager
/MoneyManager/API/Models/User.cs
2.578125
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace API.Models { [Table("TB_M_User")] public class User { [Key] public int Id { get; set; ...
772f7a472c054af25d7f5a2bf70c41975dbbce9f
C#
RobertKaufman/WinFormGame
/WinFormGame/Weapon.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WinFormGame; namespace WinFormGame { public class Weapon { public int AttributeModifier { get; set; }// public Enums.DamageTypes damageType { get; set; } public int...
f1baedf8ab9dc5fa627dcaf3ea1abb5b18152c68
C#
BenQuickDeNN/Reverse-Polish-Notation
/Program.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleExpression { class Program { class BinaryTreeNode<T> { public uint Priority = 0; public T Value; publ...
3a1946228d50005e58d20046199c1bf8df10a3b0
C#
Domenik/FifaRating
/Class/Club.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MahApps.Metro; namespace FifaRating { public class Club : ViewModelBase { #region Constructor public Club() { ListOfPlayers = new List<Player>(); } public Club(stri...
d9a89f89f196d258104d8460d6a361227cd7e2bc
C#
Magnusalt/NewAsyncFeaturesAndChannels
/Program.cs
3.328125
3
using System; using System.Threading.Tasks; using System.Linq; namespace NewAsyncFeatures { class Program { static async Task Main(string[] args) { var random = new Random(); var gateway = new Gateway(); for (int i = 0; i < 10; i++) gateway....
8fcb4b62a40bbf130e3484158aca12d16b238687
C#
qbzjs/XGameFramework
/Assets/XFramework/Scripts/Utility/Verify/Util.Verify.cs
2.828125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.IO; using System.Text; using System.Security.Cryptography; using System; using System.Runtime.Serialization.Formatters.Binary; namespace XFramework.Utility { /// <summary> /// 校验相关的工具类 /// </summary> public sta...
ec8e9d3402e9be8767a7256ca5dd0fa4eee484b7
C#
StephenCleary/Comparers
/src/Nito.Comparers.Core/Util/CompoundEqualityComparer.cs
3.1875
3
using Nito.Comparers.Internals; using System.Collections.Generic; namespace Nito.Comparers.Util { /// <summary> /// A equality comparer that uses another comparer if the source comparer determines the objects are equal. /// </summary> /// <typeparam name="T">The type of objects being compared.</typepa...
8cbeb185a6fa1288d928f3359d9ddbef05e7f79e
C#
samueldjack/ProjectEuler
/Problem25.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProjectEuler { [EulerProblem(25, Title = "What is the first term in the Fibonacci sequence to contain 1000 digits?")] public class Problem25 { public long Solve() { return Functional...
dd5d0756cf09cd2b659566d9de9d9760659cedb8
C#
ukenov/game
/WinForms/Forms/Games/FindEvenAndOddNumbersGame.cs
2.8125
3
using System; using System.Linq; using System.Windows.Forms; using WinForms.Context; using WinForms.Forms.Account; using WinForms.Models; namespace WinForms.Forms.Games { public partial class FindEvenAndOddNumbersGame : Form { private readonly DefaultContext _context = new DefaultContext(); p...
5d215ece18ee42137a2dacebf7e0eaa8cd5df4a3
C#
Gabriel-Ayala/CadEscola
/Utils/Date.cs
2.921875
3
using System; namespace CadEscola.Utils { public class Date { public static int Age(DateTime birthday) { var _birthday = birthday; var age = DateTime.Today.Year - _birthday.Year; if (birthday.Date > DateTime.Today.AddYears(-age)) age--; return...
0475b393c0462af3faa92dadec6ae74b966a919e
C#
esaliya/DSCToolsOld
/TwisterDaemonService/DaemonTestUtility/Program.cs
2.546875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Net; using System.Threading; using TwisterDaemonService; namespace DaemonTestUtility { internal class Program { private const string TwisterHomeEnvVarName = @"TWISTER_HOME"; private const st...
40744a0e926bf593b6e51791da0fb7072ae614f1
C#
dlmufei/WIFI
/WIFI/Program.cs
2.796875
3
using System; using System.Collections.Generic; using System.Windows.Forms; using System.Diagnostics; using System.Runtime.InteropServices; using System.Reflection; namespace WIFI { static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] Args)...
a94298ca15a973fe58ea51fb70a471e8e7863245
C#
kherr9/TransitSocial.ChicagoTransitAuthority
/src/TransitSocial.ChicagoTransitAuthority.BusTracker/BusTrackerClient.GetStops.cs
2.546875
3
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Net; using System.Threading; using System.Threading.Tasks; namespace TransitSocial.ChicagoTransitAuthority.BusTracker { public partial class BusTrackerClient { public IEnumerable<Stop>...
eefb2efaaf5a3f4da59a1434326260c11e9a2062
C#
sandymane/BankAccountKata
/BankAccount/Withdrawal.cs
2.953125
3
using System; namespace BankAccount { public class Withdrawal : Operation { public Withdrawal(Amount amount, DateTime date) : base(amount, date) { } public override string ToString() { string withdrawValue = $"-{Amount.Value}".CompleteWithSpaces(10); ...
ab7d5d7ceba586e6a4fe89f27b5430c5fc1485d3
C#
PrakharDemo/C-Programs
/UsingProcedures/Procedure-DuplicatesOrNot.cs
3.90625
4
// Using a Procedure, // Write a program and ask the user to enter a few numbers separated by a hyphen. If the user simply // presses Enter without supplying an input, exit immediately; otherwise, check to see if there are // any duplicates. If so, display "Duplicate" on the console. using System; using Syst...
49d64afde43d8e0dd94711d6a662bb4d1321eebd
C#
VBaricHB/AggregatedNanoparticleFilmFormation
/ANPaX.IO/LammpsDumpSerializer.cs
2.671875
3
using System; using System.Globalization; using System.IO; using ANPaX.Core; using ANPaX.Core.interfaces; namespace ANPaX.IO { internal static class LammpsDumpSerializer { public static void SerializeParticleFilm(IParticleFilm<Aggregate> particleFilm, string filename) { using var ...
ab9c72098706062e4416f08d13f2beebd3cb4ca5
C#
Streath2001/Jhon-Pe-a
/Jhon 1.cs
2.8125
3
/* * Created by SharpDevelop. * User: M * Date: 03/02/2021 * Time: 10:18 p.m. * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; namespace EJERCICIO_1 { class Program { public static void Main(string[] args) { int a, b , c; a = 5; ...
925f8e2004427a30806eede40ff42a253754a314
C#
PatrikKolesar/MandatoryAssPatrikKolesar
/ConsoleApp1/Program.cs
3.609375
4
using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading.Tasks; using MandatoryAssignment; namespace TCPServer { class Program { private static readonly int PORT = 7; static void Main(string[] args) { IPAddress localAddress = IPAddre...
03172e029a777eb224b8f44645baf5285b851c9e
C#
JasonGras/GameServer
/GameServer/SecurityCheck.cs
2.9375
3
using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace GameServer { public static class SecurityCheck { public static bool CheckEmailPattern(string _text) { string pattern; pattern = @"^([a-zA-Z0-9_\-\.]+)@([a...
3d0135ee08d3449d353ca0413299abc825bfa2eb
C#
Ljubo6/SoftUni-1
/CSharp-OOP/Exams/Basics_16-Jul-2017_Minedraft/MinedraftExam/DraftManager.cs
2.921875
3
using System.Collections.Generic; using System; using System.Text; using System.Linq; public class DraftManager { private WorkingMode workingMode; private double totalStoredEnergy; private double totalMinedOre; private List<Harvester> harvesters; private List<Provider> providers; private Dict...
7e4cfb1ac1af820dcdf71027e541ee44c6a0a11d
C#
DDR12/RestfulFirebase
/RestfulFirebase/Database/Offline/DataChanges.cs
2.984375
3
using RestfulFirebase.Utilities; using System; using System.Collections.Generic; using System.Text; namespace RestfulFirebase.Database.Offline { internal enum DataChangesType { Create, Update, Delete, None } internal class DataChanges { public string Blob { get; } public D...
dfd300cf8a36d70f4450f2be6442d8640e091ca2
C#
GrapeSalad/palindrome
/Objects/Palindrome.cs
3.515625
4
using System; using System.Collections.Generic; namespace PalindromeWork { public class Palindrome { public bool TestPalindrome(string userInput) { char [] standardArray = userInput.ToCharArray(); Console.WriteLine(standardArray); Array.Reverse(standardArray); Console.WriteLine(stan...
b6cd975c07ca6298af935e2a735f2f1b0564d54f
C#
FRee22858/ServerCluster
/CommonLibrarys/LibTest/Program.cs
2.515625
3
using CommonUtility; using DataProperty; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace LibTest { class Program { static void InitPath(string path = "") { str...
e3648032cc3685c1be56829230f94028bbc47e4f
C#
javendano003/challengeCSharp
/Context/ContextDataAccess.cs
2.515625
3
using ChallengeLeanTechJA.Modelo; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChallengeLeanTechJA.Context { public class ContextDataAccess: DbContext { private string _connectionStrin...
89c64febf03468f8854fff795ec84cfdc68b63c1
C#
markusjohnsson/JSIL
/Examples/SimplePathtracer.cs
3.109375
3
// Based on http://www.coldcity.com/index.php/simple-csharp-pathtracer/ // Original license comment follows /* * simplepath * A simple pathtracer for teaching purposes * * IainC, 2009 * License: Do WTF you want * * World coord system: * Origin (0,0,0) is the center of the screen * X increases towards rig...
d5a29db9c23e7d4f6f7e77b6403a6cbdf71ed9ec
C#
sh1eldbearer/uatanks
/NScott_UATanks/Assets/_Scripts/Tank Scripts/TankHealthManager.cs
2.984375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; [DisallowMultipleComponent] /* * This script monitors the health of a tank object, and adjusts values as needed. * * This script should be attached to a tank object, and will automatically be attached if * a TankData compo...
bdaa34fa7c626998a3f79ecd4cefec5e44c9752c
C#
renzobanegass/Cotizador
/Cotizador/Model/Vendedor.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cotizador.Model { class Vendedor { public int codvendedor { get; set; } public string nombre { get; set; } public string apellido { get; set; } priva...
85fbe20623fae0cfd11f1fbd92a675c363c201a3
C#
AlexVcht/unity-warbot
/Assets/Scripts/Intelligence/Genetique.cs
2.6875
3
using System; using System.IO; using System.Xml; using System.Xml.Serialization; using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization.Formatters.Binary; using System.IO; [System.Serializable] public class Genetique { private int tailleADN; private f...
ef792d11e6806cac715825b8c58e1d0efcf638f1
C#
xxramm16916/csharp
/FigureMath/FigureMath/EuclideanGeometry/EuclideanTriangle.cs
3.640625
4
using System; using System.Collections.Generic; using System.Text; namespace FigureMath.EuclideanGeometry { public class EuclideanTriangle : EuclideanFigure { public EuclideanTriangle(string geometryType, string figureType) : base(geometryType, figureType) { } public double Ge...
09a65ffe5224eef114e336c121f3c176e0c59c3f
C#
tempusdigital/treinamento-02
/Treinamento02/EntityFramework/Services/ProdutoService.cs
2.6875
3
using EntityFramework.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FluentValidation; using Tempus.Utils; namespace EntityFramework.Services { public class ProdutoService : IProdutoService { readonly ...
451793041150ad4b6ccf87cf6d16c079b93594f0
C#
seynurmammadov/cargo-project
/Back End/Business/Concrete/TariffManager.cs
2.734375
3
using Business.Abstract; using DataAccess.Abstract; using Entity.Models; using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Text; namespace Business.Concrete { public class TariffManager:ITariffService { private readonly ITariffDAL _context; public Tar...
e8ded281c63c1dbbb7de2be68d7d1aaf22bf5869
C#
karno/Phronesis
/Phronesis/Util/DependencyObjectExtension.cs
2.703125
3
using System; using JetBrains.Annotations; using Windows.UI.Xaml; using Windows.UI.Xaml.Media; namespace Phronesis.Util { public static class DependencyObjectExtension { public static T FindVisualChild<T>([NotNull] this DependencyObject obj) where T : DependencyObject { if (obj == ...
40bcb6708fbe0243cabfe54874a2a04fc048b618
C#
Hutzpa/Bezuhliy_Ilia_Homework
/Homework_30.04/Homework_30.04/Content/MovieContentFile.cs
2.828125
3
using System; namespace Homework_30._04.Content { public class MovieContentFile : ContentFile, IResolution { public int Height { get; set; } public int Width { get; set; } public TimeSpan Duration { get; set; } public override string ToString() { return $"...
0476a4c9751b26dec0d75fea104f210790e32808
C#
AleksVitvor/HelthCare
/Vitvor.HelthCare/Authentication/UserViewModel.cs
2.640625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data.SqlClient; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; namespace Vitv...
13ee3f105e3252f1e764635793e1426b0cdc3306
C#
TonyDeLuca/ScheduledTasks
/ScheduledTasks/DateTimeExtensions.cs
3.71875
4
using System; /// <summary> /// DateTimeExtensions provide additional functionality to DateTime objects useful for this class library. /// </summary> public static class DateTimeExtensions { /// <summary> /// Describes the instance of a day to find in a given month. /// </summary> public e...
b7b96ead4e42a689527562fcaab412d68101298f
C#
fragment2501/dotnet5-ef6-console
/Model.cs
2.953125
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; namespace bsr_dotnet_ef6 { public interface IBloggingContext { DbSet<Blog> Blogs { get; set; } DbSet<Post> Posts { get; set; } int SaveChanges(); } public class Bloggi...
86c8de48b655545c70f4f65b7999c1e6c8cfccd3
C#
querino/Frapes
/Additional/LoadIndex.cs
2.59375
3
using System; namespace Frapes.Additional { /// <summary> /// Class used to define a Load Index used by some strategies. /// </summary> public class LoadIndex { private string _id; //// <value> /// The identification of the Load Index. /// </value> public string Id { get { return thi...
7eb54fdb7e014af07e43c8d9c3e680ef112c4f45
C#
stefanatanasov7/Courier
/Courier_/Courier/Program.cs
3.125
3
using System; using System.Collections.Generic; class Program { static void Main(string[] args) { // Create parcels and attach employees ParcelForPlovdiv parcelForPlovdiv = new ParcelForPlovdiv("Пратка за Пловдив", 4.00); parcelForPlovdiv.Attach(new Employee("Служител #1")); p...
10f88a8b6dcf3dd3a68a58ce5cccf6b045a4a6a6
C#
alighaffari14/consume_api_in_csharp
/listdata/listdata/ListDataDelivery/Program.cs
3.015625
3
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace listdata { class Program { static void Main(string[] args) { working w = new wo...
dec61656daa7420725aeffff195de29f7e73d876
C#
bharat-mon/GlitchGarden
/Assets/Scripts/UI/PlayerPrefsManager.cs
2.796875
3
using UnityEngine; using System.Collections; public class PlayerPrefsManager : MonoBehaviour { const string MASTER_VOLUME_KEY = "master_volume"; const string DIFFICULTY_KEY = "difficulty"; const string LEVEL_UNLOCKED_KEY = "level_unlocked_"; public static void SetMasterVolume (float volume) { if (volume >= 0f...
debc2c864df918c1908800cc1e0e75de1e4382b7
C#
aringeorge/MapPuzzle
/MapPuzzle/MapDisplay.cs
2.96875
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MapPuzzle { class MapDisplay { Pen m_sGridPen; Pen m_sEndLocationPen; Font m_sMoveBonusFont; Brush m_sFontBrush; public MapDisplay() ...
9212e64add36437b34436fa88180aceeee83bc20
C#
hegyiemilpeter/AdventOfCode2019
/AdventOfCode2019.Core/Day1.cs
3.59375
4
using AdventOfCode2019.InputReader; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AdventOfCode2019.Core { // https://adventofcode.com/2019/day/1 public class Day1 { public int CalculateFullAmount(string path) { List<int> inputs = ...
ae62e964e8a8f97b991896f1552b76777ca9bc0e
C#
Varbanov/TelerikAcademy
/Data structures and algorithms/09. Combinatorics/SubarraysSums/SubarraysCombinator.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SubarraysSums { public class SubarraysCombinator : CombinatorWithoutRepetition<int> { public int SumOfAllSubarrays { get; set; } public SubarraysCombinator(int k, int[...
9a4685502e8d8dcc083521d0afbe08fdbf32df6d
C#
kishoref22/SoftUni-Homework-Projects
/Databases Fundamentals/Databases Advanced/05.1 Inheritance/BankSystem/BankSystem.Models/BankAccount.cs
3
3
namespace BankSystem.Models { public abstract class BankAccount { public int Id { get; set; } public string AccountNumber { get; set; } public decimal Balance { get; set; } public void DepositMoney(decimal amount) { this.Balance += amount; } ...
11a3e776494bccd8a0f579e30d31f9b213d9ef43
C#
huacm6171/leetcode
/leetcodeTests/Solutions/MyAtoiTests.cs
2.5625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using leetcode.Solutions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace leetcode.Solutions.Tests { [TestClass()] public class MyAtoiTests { [TestMethod()] pub...
f572cadb81b4a85973da5f5c2437ae05a377e230
C#
sweekly146/ImgLib
/ImgLib/Superimpose/BitmapPoint.cs
3.5625
4
using System.Drawing; namespace ImgLib.Superimpose { /// <summary> /// Used to superimpose bitmaps onto another in parallel. /// </summary> public class BitmapPoint { public Bitmap Bitmap { get; } public Point Point { get; } /// <param name="bmp">Bitmap to be d...
2f4565c1614f75a27e5c9dd78509bbe0009d70b9
C#
antseitz19/CIS375
/resource.cs
2.703125
3
/* This file contains the resources which, I believe, makes it easier for the * programmer to add or delete resources. The advantage of using this technique is * that the resources that are available can be seen on Intellisense. Examples of * how the resources are used can be found throughout the AC Framework ...
18f2be44a29361f8eef67460c4c10c52bfbd489a
C#
buergi1986/C-
/Einsendeaufgabe_csph11c/SMARegisTry/SMARegisTry Backup/SmartRegistry.cs
2.625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.Win32; using System.Diagnostics; using System.IO; using System.Security.Principal; namespace SMARegisTry_Backup { publi...
041a2773425427e4505c388e56461106127db3c9
C#
missorganize/picture
/huaquanshengqi/Form1.cs
2.828125
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 huaquanshengqi { public partial class Form1 : Form { public Form1() { ...
03e85e8d307e5f3b5a759ab7883bf44dc9431f34
C#
beckirobards/national-parks-reservations
/Capstone/ParkDetailsCLI.cs
2.796875
3
using Capstone.DAL; using Capstone.Models; using ProjectOrganizer; using System; using System.Collections.Generic; using System.Globalization; using System.Text; namespace Capstone { public class ParkDetailsCLI : CLIHelper { private ICampgroundsDAO campgroundDAO; private IParksDAO parkDAO; ...
c10e8dafdb3963e0d4697b05e83e78e95dbc3096
C#
nielsdejong/unity-city-generation
/Assets/Editor/RoadMapGenerator/GrowthRules/GrowthRule.cs
3.078125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public abstract class GrowthRule { /// <summary> /// Initializes a new Growth Rule with a seed for the random number generator. /// </summary> /// <param name="seed">The seed</param> public GrowthRul...
04c530ee88052fcb55877e525d7d7e18e11e6b75
C#
jagocki/DevOpsMetrics
/src/DevOpsMetrics.Core/LeadTimeForChanges.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; namespace DevOpsMetrics.Core { /// <summary> /// Lead time for changes: Time from committing a change to deployment to production /// </summary> public class LeadTimeForChanges { private readonly List<KeyValuePair<DateTime,...
f4f04be016bccf5f3c9634ab4b4d1c2da2676eb9
C#
jorik041/Whoosh
/Assets/Scripts/ProceduralToolkit/PGUtils.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using ProceduralToolkit.Generic; using UnityEngine; namespace ProceduralToolkit { public enum Orientation { CounterClockwise = -1, NonOrientable = 0, Clockwise = 1, } public class PGUtils { /// <sum...
900168a74f89981d2a8f2ab846f1e359edfe1529
C#
Sonkerud/AcademyExercises
/PropertiesViktor/Program.cs
3.65625
4
using System; using System.Collections.Generic; namespace PropertiesViktor { class Program { static void Main(string[] args) { Car car = new Car(); Console.WriteLine(car.GetLicenceNumber()); car.SetLicenceNumber("abc999"); Console.WriteLine(car.G...
b2c2ec69353896f22f77aa9cc3d69e2b3ac45a0d
C#
Martin-Andersen/CodeToKeep
/CodeToKeepSolution/SomethingBlue/TheSuperObject/SuperObject.cs
2.53125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Dynamic; using System.Linq; using System.Reflection; using System.Text; namespace SomethingBlue.TheSuperObject { [Serializable] public class SuperObject : DynamicObject, IDataErrorInfo { ...
08c46ed3a6caf4c5b10bac3b8e2525d5f2f22367
C#
tomneko0825/mapgenerator
/Assets/Scripts/BattleMap/Map/MapRandom/MapRandomLandRatio/RandomMapLandRatio.cs
3.015625
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; /// <summary> /// ランダムマップの陸地の割合の計算 /// </summary> public class RandomMapLandRatio { private ILandRatioPattern landRatioPattern; public RandomMapLandRatio(ILandRatioPattern landRatioPattern) { this.landRa...