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
9503110cb0ce07f9ca8825730a078504ca17b3f5
C#
w3developments/.NET-Class-Change-Logger
/.NET Change Logger Classes/ChangeLog.cs
3.046875
3
using System; using System.Collections.Generic; namespace W3Developments.Auditor { /// <summary> /// This class contains instances of changes in the classes /// </summary> public class ChangeLog { #region Properties /// <summary> /// The main oject type source that is being...
22acbd234afd2b6528ca0bbca0a4e461c1654ac5
C#
letrungkien211/CSharpLib
/RuleBasedMatching/KL.RuleBasedMatching/RuleBasedIndex.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("KL.RuleBasedMatching.Tests")] namespace KL.RuleBasedMatching { /// <summary> /// Indexing matching rules /// </summary> internal class RuleBasedIndex : ...
0c849509fe948d502b14f622d448c8e9a5744df3
C#
shendongnian/download4
/code3/476769-10848195-25066055-2.cs
2.90625
3
[AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = true)] sealed class MyAttribute : Attribute { public MyAttribute() { } } [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = true)] sealed class MyAttribute1 : Attri...
b05c0227b6dc22732b75fc2f5150c5256c8d2f91
C#
joelsgp/SilverBot
/SilverBotDS/Converters/TimeSpanConverter.cs
2.625
3
using DSharpPlus.CommandsNext; using DSharpPlus.CommandsNext.Converters; using DSharpPlus.Entities; using SilverBotDS.Objects.Classes; using System; using System.Threading.Tasks; using TimeSpanParserUtil; namespace SilverBotDS.Converters { internal class TimeSpanConverter : IArgumentConverter<TimeSpan> { ...
014f9ae606fef958a9038937aa77292935ba819c
C#
pengshirui/leetcode
/csharp/LeetCode/Medium/SplitString.cs
3.765625
4
namespace LeetCode.Medium.SplitString { public class Solution { public bool SplitString(string s) { long num = 0; for (var i = 0; i < s.Length - 1; i++) { num = 10 * num + (s[i] - '0'); if (num.ToString().Length > s.Length - i)...
542c9fb31f8bee8cace676d4f84d302f65f310c1
C#
MatthijsFontys/LP_Semester2
/MVC/UnitTests/TimeCalculations.cs
2.671875
3
using System; using System.Collections.Generic; using System.Text; using Xunit; using MVC_ReleaseDateSite.Logic; namespace UnitTests { public class TimeCalculations { public TimeCalculationLogic tc; public TimeCalculations() { tc = new TimeCalculationLogic(); } [Theor...
06737997140a6c216d534d2f4d5405c316e9d362
C#
Dipesh-Kokitkar/Swabhav_Repo
/Csharp/OOP/SRPSolution/SRPSolution/Invoice.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SRPSolution { class Invoice { private readonly int _id; private readonly string _name; private readonly double _cost; private readonly double _discount; private readonly doub...
8c28b4eff7162e58f8531ed0b783c9216948728d
C#
kartik0001/Projects
/CollegeStarterPack/CollegeStarterPack.Web/Controllers/CartController.cs
2.609375
3
using CollegeStarterPack.Domain.Abstract; using CollegeStarterPack.Domain.Entity; using CollegeStarterPack.Web.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace CollegeStarterPack.Web.Controllers { public class CartController : ...
57ab4b32c2629c8a65dcb8c1e978d3926333618a
C#
sampath13/aspnetcore-microservices
/MyWebShop.UserApi/Controllers/UserController.cs
2.515625
3
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using MyWebShop.UserApi.Models; using MyWebShop.UserApi.Services; namespace MyWebShop.UserApi.Controllers { [Authorize()] [Route("api/[controller]")] [ApiController] public class UserController : ControllerBase { pri...
ee0c1a1b0c0e16f89c02c0210acf5fea99fc0418
C#
SenecaIM/StyleAndStandards
/ControlsNaming.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Coding_Standard { class Controls_naming { //Controls naming will have a certain rule //Each control will have a variable prefix //But also every c...
da762cd85ae7c6c695f46e9e7c58dd28ccf4e809
C#
yuniorlaureano/Factu-Facil
/Factu-Facil.Service/FactuFacilContextExtensions.cs
2.53125
3
using FactuFacil.Entity; using System; using System.Collections.Generic; using System.Text; namespace FactuFacil.Service { public static class FactuFacilContextExtensions { public static T ExcludeProperties<T>(this FactuFacilContext context, T entity, bool isModified, params string[] properies) ...
be50d193ee50f491fcb4cfeefe842ddeb242684a
C#
ByteDecoder/unity_spawn_system
/Assets/RSSP/Scripts/_Round System/Event System/Individual Events/Round Events/RoundStartEvent.cs
2.734375
3
using UnityEngine; using System.Collections; namespace RoundManager.Events { /// <summary> /// Raised everytime a round starts. /// See RoundStart for a template of how to react to this event and AudioOnRoundStart /// for a concrete example. /// </summary> public class RoundStartEvent : RoundEvent { private...
42f903da85427b958dfed683c381b8861d323cef
C#
Timwi/KtaneStuff
/Src/Mahjong.cs
2.625
3
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text.RegularExpressions; using System.Threading; using KtaneStuff.Modeling; using RT.Util.Drawing; namespace KtaneStuff { using RT.Util; using static Md; static class Mahjong { ...
6ecf680190876ef4e5d1d606f40e60b84485263f
C#
gaokaige/SmartGC
/SmartGC/Lib/Configs.cs
2.625
3
using System; using System.Configuration; using System.Windows.Forms; namespace SmartGC.Lib { internal static class Configs { static string server; /// <summary> /// 查询卡详情接口地址 /// </summary> public static string Server { get { return Co...
27974acbd30c659112a519683c502da7e0891e26
C#
LoftyMettyerSandbox/Redburn_TechTest
/QueueProcessor/Program.cs
2.71875
3
using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using NServiceBus; using System; using System.Threading.Tasks; using TradeDataFeed.Contexts; namespace QueueProcessor { class Program { // Some of the messaging functions are a bit betwixt and between. // Name...
91e9372e3c8275f18f52ec7f71be26d9b5aa501c
C#
Optis-World/ATF
/Framework/Atf.Perforce/ConnectionManager.cs
2.515625
3
//Copyright 2014 Sony Computer Entertainment America LLC. See License.txt. using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.IO; using System.Text; using System.Windows.Forms; using Perforce.P4; namespace Sce.Atf.Perforce { /// <summary> /// Manages conne...
974e964ef44ca1695299a34e9f4defd8fcf84cb4
C#
AvaloniaUI/Avalonia
/src/Avalonia.Base/Collections/Pooled/PooledStack.cs
2.5625
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. /*============================================================================= ** ** ** Purpose: An array implemen...
aed671b91ca2447261fb99412b23b77d1017d475
C#
Saramsa98/StudentAttendanceSystem
/InformaticsStudentAttendenceSystem/Admin/StudentAttendanceReport.aspx.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Configuration; using System.Data; using System.Data.SqlClient; namespace InformaticsStudentAttendenceSystem.Admin { public partial class StudentAttendanceReport :...
bd58b7befe511f4028dab1751885adea45ab46e7
C#
st-algernon/socnetwork
/SocNetwork/Helpers/TagHelper.cs
3.140625
3
using Microsoft.EntityFrameworkCore; using SocNetwork.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace SocNetwork.Helpers { public class TagHelper { private readonly SocNetworkContext db; pu...
26e733cab045c0d332049b51e7547ac5ce8af73b
C#
shuntaro4/OreAka
/OreAka.WPF.Test/Domain/TypeParseTest.cs
2.78125
3
using OreAka.WPF.Domain; using Xunit; namespace OreAka.WPF.Test.Domain { public class TypeParseTest { [Fact(DisplayName = "正:数値文字列")] [Trait("TypeParse", "ToInt")] public void ToIntTrue1() { var target = "123"; var actual = TypeParse.ToInt(target); ...
22885ce446d424e5518a7f60e768a56d7ce3cad0
C#
Iroki/AnimalApp
/Animal/Animal/Model/Animal.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Animal { public class Animal { public Animal(string name, string species, string petname, int age, int population, string endangered) { Name = name; ...
b9746ad876ae541586dcb3d6af72efaf03439754
C#
newmast/Telerik_2015-2016
/CSharp-Two/StringsAndTextProcessing/Palindromes/Palindromes.cs
3.84375
4
//### Problem 20. Palindromes //* Write a program that extracts from a given text all palindromes, e.g. `ABBA`, `lamal`, `exe`. using System; using System.Linq; class Palindromes { static void Main() { Console.WriteLine("Enter text: "); string[] text = Console.ReadLine().Split(' '); ...
bcc0ecee8731d71a9d630dfeaf1394fa6da0fcc2
C#
plumma/IT-Assets-DB-Repo-Version
/ITAssetsDatabase.DataAccess/Repositorys/KnowledgeBase/ArticleTypeRepository.cs
2.71875
3
using System.Collections.Generic; using System; using ITAssetsDatabase.BusinessDomain; namespace ITAssetsDatabase.DataAccess.Repositorys.KnowledgeBase { public class ArticleTypeRepository : IArticleTypeRepository, IDisposable { private ITAssetsDatabaseDBContext db = new ITAssetsDatabaseDBContext();...
a687a4dcbd3e834dbade855f004d5e113d0523d6
C#
shendongnian/download4
/first_version_download2/140483-10166506-23309675-2.cs
2.890625
3
public static T FindControl<T>(System.Web.UI.Control Control) where T : class { T found = default(T); if (Control != null && Control.Parent != null) { if(Control.Parent is T) found = Control.Parent; else found = FindControl<T>(Control.Parent); }...
f54ff77e660162959d45813d31d365461cd6c664
C#
xeon2007/WSProf
/Projects/Hygiene/src/Policy/ObjectModel/Parameter.cs
2.546875
3
using System; using System.Collections.Generic; using System.Text; namespace Workshare.Policy.ObjectModel { public class Parameter : PolicyObject, IParameter { private IDataElement m_value; #region Constructors public Parameter(string name, IDataElement value) : base(Guid....
29461e215762ba16f7f3b079f0ebe2e82baf9ccb
C#
vincentoleary/NewForce__Heist__Part2
/Class/LockSpecialist.cs
3.265625
3
// Class for a robber with Locl specialist properties to take on the vault using System; namespace heist_2 { public class LockSpecialist: IRobber // Step 3. Make a LockSpecoialist class using the Robber interface { public string Name { get; set; } public int SkillLevel { get; set; } public double Perce...
35501ffaeb476852be93c037df805bbc1da36e71
C#
Baidullayev/ApiNET
/ApiNET/Controllers/RequestTokenController.cs
2.90625
3
using ApiNET.Auth; using System.Net; using System.Net.Http; using System.Web.Http; namespace WEBAPIJWT.Controllers { public class RequestTokenController : ApiController { public HttpResponseMessage Get(string username, string password) { if (CheckUser(username, password)) ...
cce02b6176d6111f721b0f8682279402f0745c8a
C#
DimitarSamarov07/SoftUni-Software-Engineering
/Tech Module 4.0/Associative Arrays/Orders/Program.cs
3.75
4
using System; using System.Collections.Generic; using System.Linq; namespace Orders { class Program { static void Main(string[] args) { var orders = new Dictionary<string, int>(); var prices = new Dictionary<string, double>(); string input = String.Empty; ...
5a33adbaa023b94884d7939a47fff4bd6129a6ee
C#
jlavera/mustached-octo-spice
/src/Clinica Frba/Clases/Rol.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; namespace Clinica_Frba.Clases { public class Rol { public int id; public string nombre; public Funcionalidades funcionalidades; //public Usuarios usuarios; public bool ...
830e86d96255d7788cda82b44dfc008c627d5e8e
C#
andanteyk/ElectronicObserver
/Browser/CefOp/ScreenShotPacket.cs
2.78125
3
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Browser.CefOp { public class ScreenShotPacket { public string ID { get; } public string DataUrl; public TaskCompletionSource<ScreenShotPacket> Ta...
dfca99f545319f539bc6060f2bbfd71c3e86642f
C#
Tuscann/Coding-101
/06.C# Basics Exam 12 April 2014 Evening/01.00 Exam Schedule/01.00 Exam Schedule.cs
3.484375
3
using System; class Program { static void Main() { int startExamHour = int.Parse(Console.ReadLine()); int startExamMinutes = int.Parse(Console.ReadLine()); string timeOfDay = Console.ReadLine(); int hourDuration = int.Parse(Console.ReadLine()); int minutesDuration = int...
27c62db170cf60dfc2fedd9cf4de4a4ffb82a677
C#
jdkoftinoff/if3-csharp
/if2k/PatternExpanderPhrase.cs
2.828125
3
using System; using System.IO; using System.Diagnostics; using InternetFilter.Log; namespace InternetFilter.If2k.Kernel { public class PatternExpanderPhrase : PatternExpander { PatternExpanderPhraseSection sections; public PatternExpanderPhrase(PatternExpanderTarget target) : base(target) ...
c2cf3a24a87ec1ffe3684de75e7b8db23c41b30b
C#
brunomuratore/GoogleHashCode
/2021Qualify/HashCode2021/models/Car.cs
3.0625
3
using System; using System.Collections.Generic; using System.Text; namespace HashCode2020.models { public class Car { public int id; public LinkedList<Street> originalRoute = new LinkedList<Street>(); public LinkedList<Street> route = new LinkedList<Street>(); public double sco...
b79603c77796c977258b08e8d626ac916bf6c4e0
C#
CSharpLords/homework-maxcore25
/26/Hello/Program.cs
3.765625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hello { class Program { static void Main(string[] args) { SayHello("Маша"); SayHello("Женя"); SayHello("Петя"); Console.ReadLine(); } static void SayHello(s...
53b98c0001f702c74b3daa9573b8d4f313fbd0cc
C#
Lidinh26/Sparta-C-Sharp-Course
/Labs_44_entity/Program.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Labs_44_entity { class Program { static List<Customer> customerList; //all static Customer Customer; //one static Customer newCustomer; // add new s...
f0d62f4f34836bda88f263e405e4d80aab37f335
C#
JustSomeGuy6561/CoCSharp
/CoC.Frontend/Items/Consumables/KitsuneGift.cs
2.640625
3
using System; using System.Text; using CoC.Backend.BodyParts; using CoC.Backend.CoC_Colors; using CoC.Backend.Creatures; using CoC.Backend.Items; using CoC.Backend.Items.Consumables; using CoC.Backend.Strings; using CoC.Backend.Tools; using CoC.Frontend.Items.Materials; namespace CoC.Frontend.Items.Consumables { pu...
14d80b3da3492c3cd4310b66e6312ba9d9dc9f43
C#
flyapy/Practices
/Practices.Serialization/Program.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using System.Xml.Serialization; using System.IO; using System.Xml; using Practices.Serialization.Models; namespace Practices.Serialization { class Program { static...
6e4feab4d37b4c3b7bbbbc1dc9aca00bca608b22
C#
EgorGolovanov/ZhoraBot
/ZhoraBot/Repository/IRepository.cs
3.015625
3
using System; using System.Collections.Generic; using System.Text; namespace ZhoraBot.Repository { /// <summary> /// интерфейс репозитория /// </summary> /// <typeparam name="TEntity"> класс, описывающий таблицу базы данных </typeparam> interface IRepository<TEntity> : IDisposable where TE...
239bee90f1836a108b1d1543c3251d823442796b
C#
shendongnian/download4
/code2/352630-7560573-147400124-2.cs
3.0625
3
public string GetItemValue() { for (int i = 0; i < listView1.Items.Count; i++) { if (listView1.Items[i].Checked == true) { return listView1.Items[i].Text; // I want to keep this value } ...
7dcb8cd1c4bed5464fd1550b7af3d14f9f1dc44d
C#
pavel-karpovich/recto
/RectO/LayerCanvas.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Input; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Resources; namespace RectO { public class LayerCanvas : Canvas...
3255e163ee98e891b71c99f6519b7df4033fa3e7
C#
m2relevo/CGD_ClusterFlak
/CGD_ArmadHeroes/Unity/ArmadHeroes/Assets/DilloDash/Scripts/Scripts/TileManager.cs
2.734375
3
using UnityEngine; using System.Collections.Generic; namespace DilloDash { public class TileManager : MonoBehaviour { private static TileManager singleton; public static TileManager Singleton() { return singleton; } private List<tileDataDD> tiles = null; void Awake() ...
eae4a9c425ba0c0f76e3ab997c33b35a8d573c7d
C#
mdennington/CricketSimv2
/CricketSimv2Tests/Domain/testOutcome.cs
2.65625
3
using CricketSimv2; using System; using Xunit; using Moq; namespace CricketSimv2Tests { // Tests // 58% of balls are dot balls // 24% of balls are 1s // 7% are 2s // 2% are hit for six // 7% are fours // 1% are threes // 3% are dismissals // assumed no-balls are 3% // assumed ...
bf276b3add1367dcfd0e1679df0ddbd3d57d7512
C#
Enikmeticman/MassBeerGames
/Assets/GameAssets/Scripts/GamePlay/Deck/RingDeck.cs
2.875
3
using System.Collections.Generic; using System.Diagnostics; using Assets.GameAssets.Scripts.GamePlay; using UnityEngine; using Random = System.Random; public class RingDeck : Deck { #region privates /// <summary> /// Locks the deck after it is initialized, So that some data can't change anymore. /// <...
b813dd6752d7cc41308f01029fdf7beb6126299b
C#
merwe70/ClassMetotDemo
/Generics/Program.cs
3.78125
4
using System; using System.Collections.Generic; //listeler koleksiyonlardır. Arka planda array yönetiyor. namespace Generics { //Generic ler array bazlı, yani; arkada bir array çalışıyor class Program { // Generics ler hangi tipi verirsek içindeki operasyonlar parametre olarak o tipte çalışıyor ...
c67cbc7d6460e155ff395dab2137632260ab082f
C#
sgww/cozy
/src/Public/CozyServer.Core/CozyMessageQueue.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using Lidgren.Network; namespace CozyServer.Core { public class CozyMessageQueue { ThreadSafeQueue<NetIncomingMessage> MessageQueue { get; set; } = new ThreadSafe...
67d0e170049b87a9416630e1ed9269761443c3f2
C#
WafikDIDI/Jointed-ball
/Assets/Scripts/Ball.cs
2.625
3
using UnityEngine; public class Ball : MonoBehaviour { public static Ball Instance; private float speed; public float Speed => speed; private Rigidbody rigidbodyReference; public Rigidbody RigidbodyReference { get => rigidbodyReference; set => rigidbodyReference = value; } private Vector3 l...
366e0b36584bfa3dd262a4c87993eb8f4b76e114
C#
ldammel/NeonGunner
/Assets/Scripts/Library/Data/ValidateName.cs
2.59375
3
using System.Linq; using Sirenix.Utilities; using UnityEngine; using UnityEngine.UI; namespace Library.Data { public class ValidateName : MonoBehaviour { [SerializeField] private string[] badWords; [SerializeField] private GameObject[] enableObjects; [SerializeField] private GameObjec...
2542e4e56a0acfd892a331d5a9b6a03386041512
C#
MarconcilioSouza/ProjetoExemploAkka
/ProcessadorPassagensProcessadasApi/CommandQuery/Extension/ListExtension.cs
2.875
3
using System.Collections.Generic; using System.Data; using FastMember; using System; using System.Linq; namespace ProcessadorPassagensProcessadasApi.CommandQuery.Extension { public static class ListExtension { public static DataTable ToDataTable<T>(this IEnumerable<T> list) { var p...
620ebd43207f85e9f39641921aae261343530397
C#
thunklife/RuleComposer
/src/RuleComposer/RuleActionExpression.cs
2.6875
3
using System; namespace RuleComposer { public class RuleActionExpression<T> { readonly ISpecification<T> _specification; readonly IRule<T> _rule; public RuleActionExpression(ISpecification<T> specification, IRule<T> rule) { _specification = specification; ...
0d6c8c698fd84ea1e97b1407b9094306c4dc386b
C#
Mirc224/Csharp_DataStructures
/Csharp_data_structures/DataStructures/PairingHeap/PairingHeap.cs
3.375
3
using System; using System.Collections.Generic; using System.Text; namespace Csharp_data_structures.DataStructures.PairingHeap { class PairingHeap<K, V> where K : IComparable { public K Peek { get => _root != null ? _root.Key : default(K); } private PairingHeapNode<K, V> _root = null; ...
26fe4600ba653c490898cc17446c1e8be20b2a11
C#
somujose/HelloWorldAppFromSJ
/HelloWorldModel/Model/PrintHelloWorld.cs
2.875
3
using System; namespace HelloWorldModel.Model { public sealed class PrintHelloWorld : PrintHelloWorldBase { private readonly IApplication _application; public PrintHelloWorld(IApplication application) { _application = application; } public override string...
be2111a5b1427d1084d336573a14e96e00e78974
C#
AdrianToman1/ermpower
/UnitTests/Files/RecordReaderTests.cs
2.53125
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using UnitTests.Files; namespace UnitTests.Processors { [TestClass()] public class RecordReaderTests { MockRecordReader target; [TestInitialize()] public void TestInit() { //target = new MockReco...
3606a6f37782e2897a7ec6895a1bc9c99ce7838a
C#
Ubisam-Project-MASIDU/children_forest
/Assets/FairytaleStage/Jack/Jack_Epi13/Scripts/BlinkAni.cs
2.71875
3
/* * - Name : BlinkAni.cs * - Writer : 이윤교 * - Content : 잭과콩나무 에피소드13 - 화살표 깜빡이는 효과 스크립트 * * - HISTORY * 2021-07-14 : 초기 개발 * 2021-07-16 : 파일 인코딩 수정 및 주석 처리 * 2021-07-27 : 주석 처리 수정 * * <Variable> * f_blink : 깜빡거리는 속도 */ using System.Collections; using System.Collections.Generic; using UnityEngin...
1abfe826801e31a0e98168ca2cb5490295959c78
C#
VIStoyanov/prop2016
/ProP_Eventilizer/Apps/PaypalLogFileReader/PaypalLogFileReader/Form1.cs
2.59375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Windows.Forms; namespace PaypalLogFileReader { public partial class Form1 : Form { string filename; ...
ddc4fa417b96843e098c7fd289681c3f1f5917d6
C#
FeikoJoosten/PerformanceInUnity
/Assets/Scripts/Math/Vector3/Magnitude.cs
2.765625
3
using System.Diagnostics; public abstract class Magnitude { private readonly Stopwatch stopwatch; protected Magnitude() { stopwatch = new Stopwatch(); } public void Awake() { OnAwake(); } public float MagnitudeTest(int iterations, bool useBurst, out float total) ...
4565ab40a93ca8bc56fd69814fa274955039ca55
C#
i-e-b/ADSD
/ADSD/Crypto/IEvidenceFactory.cs
2.53125
3
namespace ADSD.Crypto { /// <summary>Gets an object's <see cref="T:System.Security.Policy.Evidence" />.</summary> public interface IEvidenceFactory { /// <summary>Gets <see cref="T:System.Security.Policy.Evidence" /> that verifies the current object's identity.</summary> /// <returns>...
cdc3c45388a2f00d772230f14563ff9aa94201c8
C#
OniqLoshiq/SoftUni-CSharpFundamentals
/05-180213-C# OOP Basics/180227-OOPB-11 Ex 5 - Intrfc/180227-OOPB-10 Ex 5/09-CollectionHierarchy/Models/MyList.cs
2.84375
3
using System.Collections.Generic; public class MyList : AddRemoveCollection, IMyList { public MyList() { } public int Used => Data.Count; public override string Remove() { string removedItem = Data[0]; Data.RemoveAt(0); return removedItem; } }
adb6ee4036b8b4b04878319818be8950cd4b6dd0
C#
andydmort/CommunicationSubsystemBattle
/BattleShip/CommSubSys/UdpCommunicator.cs
2.796875
3
using System; using System.Net; using System.Net.Sockets; using Messages; using System.Threading; using log4net; using System.IO; using System.Security.Cryptography; namespace CommSubSys { public class UdpCommunicator : Communicator { private static readonly ILog Logger = LogManager.GetLogger(typeof(U...
64733bf5a7fdd03df9f8da02ae3ed0df60c58fe5
C#
mridulhossain/CSharp-Delegates
/MulticastDelegates/Program.cs
3.59375
4
using System; namespace MulticastDelegates { class Program { // delegates public delegate void Grettings(string name); static void Main(string[] args) { //multicast delegates syntex Grettings grettings = Hello; grettings += Welcome; ...
d2d2cf2e091e8f041d846f140bc342a74786ef30
C#
BMedison/ThirtyDaysOfCode
/src/CS/TwentySecondDay/BST/node.cs
2.84375
3
using System; namespace BST { public class Node { public int data; public Node left; public Node right; public Node(int data) { this.data = data; this.left = null; this.right = null; } } }
d4a94b5ff1e1c232b4e53791ff5cd99cad70e6f8
C#
iceixia/MP3Renamer
/MP3Renamer/Program.cs
3.21875
3
using System; using System.Collections.Generic; using System.IO; namespace MP3Renamer { public class Root { public static void Main(string[] args) { if (args.Length == 0) { args = new string[1]; args[0] = "blank"; } ...
72ee929ffd1eca5b9fded0bf5c3a2006e9e0551c
C#
thesoftwaredude/FizzBuzz
/Library/FizzCatagorizer.cs
2.578125
3
namespace Library { public class FizzCatagorizer : Catagorizer { public override string IsSatisfiedBy(int number) { if (number%3 == 0) return "Fizz"; return Next.IsSatisfiedBy(number); } } }
b9609e670fc5f63d459f62e50194a5f9b868bce0
C#
jameskinneavy/CellarIQ
/CellarIQ.Bot/Dialogs/CellarBotLuisDialog_GetHelp.cs
2.703125
3
using System; using System.Text; using System.Threading.Tasks; using CellarIQ.Bot.Utilities; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Builder.Luis.Models; namespace CellarIQ.Bot.Dialogs { public partial class CellarBotLuisDialog { [AuthenticateUserAspect] [LuisIntent("GetHelp...
57b5a1843f557e482dff9dffdd6425b551fd4210
C#
javikalsan/weather-kata
/csharp/WeatherKata.Test/WeatherKataTest.cs
2.96875
3
using System; using Xunit; using Xunit.Abstractions; namespace Team.Codium.LegacyTraining.WeatherKata.Test { public class WeatherKataTest { private readonly ITestOutputHelper output; public WeatherKataTest(ITestOutputHelper output) { this.output = output; } ...
86126b790e05ef77f9f531b65b9c76b9a5ddb3da
C#
andresusanto/AHMDS
/StealthMalware/Payload/Payload/Form1.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.Windows.Forms; using System.Threading; using System.Runtime.InteropServices; namespace Payload { public partial class Form1 : Form { ...
f947ad5592c3a652b24dbb75eaaafd054318a4ce
C#
IoriBranford/text101-engine
/Assets/GameData.cs
2.59375
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; [Serializable] public class GameData { public string firstState; public List<State.Data> states; // dataResource = Name of a resource file without extension // The file must be in Resources folder public static GameData...
94f821ff6e345f8ed67f981ef53fb0b0060a3087
C#
enriquecapellan/Cajero-Automatico
/Cajero/Targeta.cs
2.6875
3
using Cajero.Models; 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 Cajero { public partial class Targeta : Form { public Tar...
488c7e689047847621942b78242e4a9b006e40fe
C#
julianeventura/Exercicios-AceleraDev
/ByteBank/07_ByteBank/Program.cs
2.765625
3
using System; namespace _07_ByteBank { class Program { static void Main(string[] args) { Console.WriteLine($"Total de contas criadas: {ContaCorrente.TotalDeContasCriadas}"); ContaCorrente conta = new ContaCorrente(867, 86712540); Console.WriteLin...
71eeae045f9e5cbd7bc0e80fd4261708cb6e9672
C#
valentinmakaveev/TelerikAcademy
/C#/CSharp-Part-1/ConditionalStatements/Sort3NumbersWithNestedIfs/Sort3NumbersWithNestedIfs.cs
4.0625
4
/* Problem 7. Sort 3 Numbers with Nested Ifs Write a program that enters 3 real numbers and prints them sorted in descending order. Use nested if statements. Note: Don’t use arrays and the built-in sorting functionality. Examples: a b c result 5 1 2 5 2 1 -2 -2 1 1 -2 -2 -2 4 3 4 3 -2 0 -2.5 5 5 0 -2.5 -1.1 -0.5 -0....
6922dff1b5ee6a32ec5dd8d2e16ed6f9edcf119a
C#
Roytazz/GW2-Projects
/GuildWars2.API/Endpoints/Items.cs
2.578125
3
using GuildWars2.API.Model.Items; using GuildWars2.API.Network; using System.Collections.Generic; using System.Threading.Tasks; namespace GuildWars2.API { public static class ItemAPI { private static UrlBuilder Builder { get { return new UrlBuilder(); } } #region Finishers public stat...
c2ff8190f8ceb9308a1d0c7267b99947d66fb858
C#
spoonofjustice/ToSClaimTrackingTool
/ToSClaimTrackingTool/Models/ServerMessages/PlayerJoinedMessage.cs
2.734375
3
using ToSClaimTrackingTool.Utils; namespace ToSClaimTrackingTool.Models.ServerMessages { public class PlayerJoinedMessage : ServerMessage { private const int PlayerNumberIndex = 0; private const int PlayerNameIndex = 1; public Player Player { get; set; } public PlayerJoinedMe...
f713bbcf91e0b426058b0df2f0762342f3d5e942
C#
alialamiidrissi/escape_the_fire
/Assets/scripts/scoreLPManager.cs
2.578125
3
using UnityEngine; using System.Collections; using UnityEngine.UI; using UnityEngine.SceneManagement; public class ScoreLPManager : MonoBehaviour { private float lifePoints; private int score; private int highScore; public Text scoreDisp; public GameObject screen; private HealthBarController h...
df05cb8328e4694f52362a09b7fade119dd9bdd8
C#
Kamys/ScheduleBukepAPI
/ScheduleBukepAPI/MainStart.cs
2.640625
3
using Bukep.ShedulerApi.apiDTO; using System; using System.Collections.Generic; namespace Bukep.ShedulerApi { /// <summary> /// Класс для работы с API через консоль. /// </summary> class MainStart { static void Main(string[] args) { Start(); } private s...
b16232f0722ada31da4e545010ba30015332fd26
C#
liqingwen2015/BookExample
/菜鸟教程/Runoob.DesignPattern/21状态模式/State/StopState.cs
2.671875
3
#region using System; #endregion namespace _21状态模式.State { internal class StopState : IState { public void DoAction(Context context) { Console.WriteLine("Player is in start state"); context.State = this; } public override string ToString() { ...
41153fb37af0ece673b92885b8730d7349951752
C#
NgoPhamTuUyen/1910155_Lab05_LTCSLD
/Lab05_Winform/XMLDataStorage.cs
2.65625
3
using System; using System.Collections.Generic; using System.Xml.Linq; namespace Lab05_Winform { public class XMLDataStorage : IStudentDataStorage { public string FilePath { get; } public XMLDataStorage(string filePath) { FilePath = filePath; } public List<SinhVien> Load() { throw new NotImpleme...
da149bdbcebc63c10f2248edc8e6e1670332477e
C#
leprogrammer/Domato-BFuzz-Integration
/UniHax/Mappings.cs
2.609375
3
// Copyright (c) 2011 by Christopher Weber // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merg...
f763590e1ecf9224e1ed7585914df876d5938a18
C#
a864610877/MEINUO
/ecard.infrastructure/DBHelper.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; using System.Data.SqlClient; using System.Data; using log4net; using System.Reflection; using System.Collections; using System.ComponentModel.DataAnnotations; namespace Ecard { public abstract class D...
78030a2ad9d30b3b46af83e6942230c072502b66
C#
Blitzman/ProjectShode
/ProjectShode/ShodeLibrary/ProjectDAC.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.OleDb; using System.Data.SqlClient; using System.Configuration; namespace ShodeLibrary { public class ProjectDAC { /* ****************************************************************** */ /*...
a1cfee5ca70fc9da48f4e6f3bde7a861a962389d
C#
LongChau/Unity-Crafting-System
/Assets/SimpleCraft/Assets/Scripts/SimpleCraft/UI/CraftUI.cs
2.65625
3
using UnityEngine; using UnityEngine.UI; using SimpleCraft.Core; namespace SimpleCraft.UI{ /// <summary> /// Handles the Crafying UI, showing /// the required crafting items and types /// Author: Raul Souza /// </summary> public class CraftUI : MonoBehaviour { [SerializeField] ...
bbfe6d34757d84d52083aad53c793ae3bc327d81
C#
SUIMA0310/Kawahara-System-Prototype
/Server/WebApplicationServer/Hubs/RealtimeReactionHub.cs
2.890625
3
using Microsoft.AspNet.SignalR; using System.Threading.Tasks; using CommonTypes; namespace WebApplicationServer.Hubs { /// <summary> /// SignalRのハブクラスです /// Client(ブラウザ含む)はここに接続します /// </summary> public class RealtimeReactionHub : Hub { private readonly string Listener = "Listener"; ...
bfe1d8595a3f52b594308c6d316fb14601d22009
C#
EldHasp/StaffingRepos
/StaffingSln/Staffing/ViewModel/EmployeeVM.cs
3
3
using Common; using Staffing.Common; using Staffing.DTO; using Staffing.InterfacesVM; using System; using System.Linq; namespace Staffing.ViewModel { /// <summary>Класс Сотрудника со свойствами для использовнаия в WPF View и ViewModel.</summary> public class EmployeeVM : OnPropertyChangedClass, IEmployeeVM, I...
6edfaf86e6f31e46f135dba14227037689d18871
C#
lilyfan/Asp.Net-MVC-work
/CoursePlanning/CoursePlanning/Controllers/CurriculumPlanController.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; // In this code example, we're trying something new... // This source code file will include the 'resource model' classes and the 'repository' class namespace CoursePlanning.Controllers ...
7dda6e492e190f54bbedd26907e7f980e5ef1bff
C#
vassildinev/CSharp-Part-2
/08.TextFilesHomework/13.CountWords/CountWords.cs
3.78125
4
//Write a program that reads a list of words from the file words.txt and finds how many times each of the words is contained in another file test.txt. //The result should be written in the file result.txt and the words should be sorted by the number of their occurrences in descending order. //Handle all possible excep...
86e65c92a1a1796185833c8f415378e6844b424f
C#
dawidbudzynski/NumberWizard_Unity
/Assets/Scripts/NumberWizard.cs
2.90625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class NumberWizard : MonoBehaviour { [SerializeField] int max_num; [SerializeField] int min_num; [SerializeField] int guess; [SerializeField] TextMeshProUGUI guessText; void Start() { if...
d6e39e9a99530f533e13d3ed24fcb9587a237f9f
C#
Robert694/IRCClient
/IRCClient/Modules/PingModule.cs
2.609375
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Threading.Tasks; using System.Timers; namespace IRCClient.Modules { public class PingModule : MessageModule { private Timer PingTimer { get; set; } private readonly Dic...
fed2db2de77fde4446a8e1022942d7bd758a8872
C#
maxzh1999tw/Ninety-Nine
/NinetyNine/MainForm.cs
2.734375
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 CardClass; using System.Threading; namespace NinetyNine { public partial class Main...
5c58cfd0b98b62ff714c51f2167a2a159595da48
C#
AndreiVasilievU/csharp-practise
/Solution1/Lect5_LetterA/Program.cs
3.125
3
using System; namespace Lect5_LetterA { class Program { static void Main(string[] args) { String text = Console.ReadLine(); int count = 0; for (int i = 0; i < text.Length; i++) { if(text[i] == 'a') { ...
f6ff1373e6272d44a4662cd97eb7c1302ebc0592
C#
popotans/Qonfig
/Adapters/ConfigurationAdapter.cs
3.140625
3
using System.Security.Principal; namespace Qonfig.Adapters { /// <summary> /// Base Adapter /// </summary> abstract class ConfigurationAdapter { /// <summary> /// Default-Constructor /// </summary> /// <param name="forceLocalStorage">Store data locally (...
aae548e726a204257fa882b2beb29270277271ef
C#
squid-box/Breensoft-ReCellection
/ReCell/Code/Models/GameOptions.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Recellection.Code.Controllers; /** * * Author: co * **/ namespace Recellection.Code.Models { /// <summary> /// This model is used to save all the options choices. /// </summary> public sealed class GameO...
31bd8f802679e0f9d823d8af1dbb76d95ab61b21
C#
shendongnian/download4
/latest_version_download2/36417-5966046-12889011-2.cs
2.984375
3
private Lazy<int> MyExpensiveCountingValue = new Lazy<int>(new Func<int>(()=> ExpensiveCountingMethodThatReallyOnlyNeedsToBeRunOnce())); public int StripeCount { get { return MyExpensiveCountingValue.Value; } }
b95155c679d19f1bcef2af37ef4bea72463d4a0f
C#
sammosampson/CodeDojo10
/Domain/Memberships/DateOfBirth.cs
2.90625
3
using System; using SystemDot.Core; using Gym.Infrastructure; namespace Gym.Domain.Memberships { public class DateOfBirth : Equatable<DateOfBirth> { public static DateOfBirth Parse(DateTime date) { return new DateOfBirth(date); } private readonly DateTime date; ...
4d1b362becbb644ae3aae2b54f37221757a7febf
C#
markovood/SoftUni---Tech-Module-4.0
/Arrays - Exercise/08. Magic Sum/Magic_Sum.cs
3.9375
4
using System; using System.Linq; namespace _08._Magic_Sum { public class Magic_Sum { public static void Main() { int[] someArray = Console.ReadLine(). Split(' ', StringSplitOptions.RemoveEmptyEntries). Select(int.Parse). ToArray(); ...
0c709da551e61ef9c6b2b5ef5f8f9bb8be2afbb6
C#
shendongnian/download4
/first_version_download2/597709-58136334-206179430-2.cs
3.15625
3
using System; using System.Linq.Expressions; static void Main(string[] args) { Expression<Func<string, int, bool>> firstExpression = (a, b) => a == b.ToString(); Func<string, int, bool> firstLambda = (a, b) => a == b.ToString(); Expression<Func<string, bool>> secondExpre...
d5377b511fb1e248f9093e7fdba49e327e745694
C#
AlexFeliz/FileSystemSyncher
/FileSystemSyncher/FileSystemSyncher.Commons/ConfigFileConfigurationProvider.cs
2.8125
3
namespace FileSystemSyncher.Commons { using System; using System.Configuration; using System.Linq; public sealed class ConfigFileConfigurationProvider : IConfigurationProvider { public ConfigurationOptions GetOptions() { string sourcePath = ConfigurationManager.AppSetti...
a5a9ee5b5f542f9feecea23e683f434d7f4d0a3d
C#
Lymolly/ConsoleEShopMultilayered
/ConsoleEShopMultilayered/DAL/Repository/IGoodsRepository.cs
2.6875
3
using System; using System.Collections.Generic; using System.Text; using ConsoleEShopMultilayered.DAL.Entities; /// <summary> /// Repository /// </summary> namespace ConsoleEShopMultilayered.DAL.Repository { /// <summary> /// Interface for MockGoodsRepository /// </summary> public interface IGoodsRepos...
920cd0250076e89f58650ad57634caf8f4235593
C#
kovalevgr/doc-helper
/src/Domain/Cache/InMemory/CacheEntry.cs
2.765625
3
using System; using DocHelper.Domain.Cache.Generator; using DocHelper.Domain.Helpers; namespace DocHelper.Domain.Cache.InMemory { public class CacheEntry { public CacheEntry(string key, object value, DateTimeOffset expiresAt) { Key = key; Value = value; Expi...
832aef8273fa64bfbfee7c6cda0507cc37f3355a
C#
CodeMantra/SportsApp
/SportsApp/Classes/Sports/Soccer.cs
2.765625
3
using SportsApp.Classes.Facilities; using SportsApp.Classes.FacilityDecorator; namespace SportsApp.Classes.Sports { public class Soccer : Sport { public override string Rule { get { return "Kick the ball and score a goal !!!"; } } ...
8c48a0a4b35059712420e205bf560468e72a88a5
C#
rndeshpande/CodePath-InterviewBit
/InterviewBit/Week5/GraphKnightsChessBoard.cs
3.21875
3
class Solution { public int knight(int N, int M, int x1, int y1, int x2, int y2) { Func<int, int, bool> valid = (x, y) => x >= 0 && x < N && y >= 0 && y < M; if (!valid(--x1, --y1) || !valid(--x2, --y2)) return -1; if (x1 == x2 && y1 == y2) return 0; int[][] diffs = { new...
9e9a5357035b157c31960ec5ee125c0cb42b6df1
C#
hayletdomybest/MyAutoMapper
/MyMapper/Infrastructure/Structure/TypePairs.cs
3.03125
3
using System; namespace MyMapper.Infrastructure.Structure { public struct TypePairs : IEquatable<TypePairs> { public Type SourceType { get; set; } public Type DestinationType { get; set; } public TypePairs(Type source, Type destination) { SourceType = source; ...
2ac5d417101e39ef99436bb166a85c2252aad064
C#
aksheus/Clean-Depression-Dataset
/CleanDepressionDataset/Writer.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace CleanDepressionDataset { class Writer { public Writer() { } public void WriteToTxt(string path,List<string> content) { ...