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
e231babb6ec4987c22f5fe75e7fdeb20fe6e6c65
C#
sinshu/tinyroomacoustics
/TinyRoomAcoustics/MirrorMethod/MirroredRoomIndex.cs
3.296875
3
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using MathNet.Numerics; using MathNet.Numerics.LinearAlgebra; using MathNet.Numerics.LinearAlgebra.Double; namespace TinyRoomAcoustics.MirrorMethod { /// <summary> /// Represents the index of a mirrored room generated in...
1a48270ec0adcb1735c78edc77f8f093d88d633b
C#
alibek123/PP2labs
/Week 1/Task2/Program.cs
3.921875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp2 { class Student { string name; string id; public Student(string n, string i) { name = n; //Creating th...
ae4f82aedf21ad16cf400ad329ba992e77f83410
C#
BrokenEmpire/NMSTools.Framework
/Primitives/Vector2.cs
3.203125
3
using System; using System.Runtime.InteropServices; using Newtonsoft.Json; namespace NMSTools.Framework.Primitives { [JsonObject] [StructLayout(LayoutKind.Sequential)] public struct Vector2 : IEquatable<Vector2> { public double X; public double Y; public Vector2(double x, double y) { X = x; Y = y; ...
b288e2b0d9b0d7281f4685a175b52c0cebdd49c7
C#
ghcver/Home
/CAPTCHA/ConsoleApplication17/Binarization.cs
3.109375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication17 { abstract class BinarizationBase { public abstract Bitmap Binarize(Bitmap bitmap); } ...
6bc5138832de072757e03e71fad98c5140b5d2b6
C#
ichivers/pingrecorder
/PingRecorder/PingRecorder/Program.cs
2.828125
3
using System; using System.Collections.Generic; using System.Text; using System.Net.NetworkInformation; using System.IO; using System.Threading; namespace PingRecorder { class Program { private static TextWriter writer; static void Main(string[] args) { ...
b20f5d88febaa0f0fb23e29f2c8f339faead48de
C#
PhilJollans/WpfShapes
/WpfShapes/RingOfRectangularTicks.cs
2.75
3
using System; using System.Diagnostics; using System.Globalization; using System.Text; using System.Windows; using System.Windows.Media; using System.Windows.Shapes; namespace WpfShapes { /// <summary> /// RingOfRectangularTicks is a ring of n rectangles, evenly spaced on a circle. /// The width of each rectang...
1389fe513c636578ffe2130a89d11da24c4d1b3e
C#
thanhlcm90/moorwohsesirnus
/DataAccess/DataAccess/News.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Showroom.Models.DataAccess { public partial class ShowroomRepository { /// <summary> /// Lấy toàn bộ danh sách nhóm sản phẩm /// </summary> ...
6c9e5cf45c6a4b784ee028c89a66f13c35e7e9b2
C#
CECS-491A/GC-GreetNGroup
/Backend/ManagerLayer/SearchManager/SearchManager.cs
2.59375
3
using System.Collections.Generic; using Gucci.DataAccessLayer.DataTransferObject; using Gucci.ServiceLayer.Services; namespace Gucci.ManagerLayer.SearchManager { // This class provides an interface for interaction with required search functions public class SearchManager { private readonly ISearch...
cc93548308903d474d5d88dcf7e02d7e3f3a4a0e
C#
YadielRosario/IT1050Final-Project
/bankaccount.cs
3.484375
3
using System; class BankAccount{ private string accountNumber; protected double balance; private DateTime dateCreated; private string AccountNumber{ get{return accountNumber;} set{ if (value.Length == 6) accountNumber = value; else Console.WriteLine("Account number must be...
2caae50cd67af136e03312454b3739bba40d925c
C#
AdrianSkr/All-Assignments---Project-Case
/catch_enum_struct/catch_enum_struct/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mandag280518TryCatch { class Program { static void Main(string[] args) { /* * #region TryParseFinally //string s = "55555555555555...
19a499b7d999bbf9dee6a720c6f9a06039c55163
C#
andycmaj/OmniSharpServer
/OmniSharp/AutoComplete/CompletionDataExtensions.cs
2.734375
3
using System.Collections.Generic; using System.Linq; using ICSharpCode.NRefactory.Completion; namespace OmniSharp.AutoComplete { public static class CompletionDataExtensions { public static IEnumerable<ICompletionData> FlattenOverloads(this IEnumerable<ICompletionData> completions) { ...
e0d3be8938b5d1b588d96c5d5da688902789fa2a
C#
AlbertBaffour/4_on_a_row-WPF
/WpfProjectAlbert/Model/SchijfDataService.cs
3.125
3
using Dapper; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WpfProjectAlbert.Model { class SchijfDataService { ...
048acf0faa394f6887b2d81f894f9d9445da1153
C#
qowsley/TechElevator-1
/module-1/09_Classes_Encapsulation/lecture-final/dotnet/EncapsulationLecture/CollectionsReviewScratch.cs
3.40625
3
using System; using System.Collections.Generic; using System.Text; namespace CollectionsPart2Lecture { public class CollectionsReviewScratch { public void LectureReview() { List<string> colors = new List<string>(); colors.Add("Purple"); colors.Add("Steel Blu...
b1c18901e11dc0da1afeba5b5a1d02bac6c4b5ca
C#
mohsenyousefiyan/RsaAesEnctyption
/Core/EncryptionTools/AESFileCryptographyService.cs
2.796875
3
using System; using System.Collections.Generic; using System.IO; using System.Security.Cryptography; using System.Text; namespace Core.EncryptionTools { public class AESFileCryptographyService { private int KeySize; private PaddingMode PaddingMode; private CipherMode CipherMode; ...
ec615ddfe5d73345bb21e374ee00f291cb8cdb90
C#
maron6/SEIDR
/SEIDR/DataBase/DatabaseManagerExtensions.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Reflection; using System.Data; namespace SEIDR.DataBase { public static class DatabaseManagerExtensions { /// <summary> /// Flag Parameter direction to determine if ...
dd4fb7402b74aff3d5ab3ad8923c82fdc336f893
C#
block-core/blockcore
/src/Blockcore/NBitcoin/Target.cs
2.9375
3
using System; using System.Globalization; using System.Linq; using Blockcore.NBitcoin.BouncyCastle.math; namespace Blockcore.NBitcoin { /// <summary> /// Represent the challenge that miners must solve for finding a new block /// </summary> public class Target { private static Target diffic...
de302ef9ded81b58c23f74ecb9c613d2e736f57f
C#
artursolekss/sessionExamples
/Interfaces/Circle.cs
3.546875
4
using System; namespace AbstractClInterfaces { public class Circle : IFigure { private double radiuss; public double GetRadiuss() { return this.radiuss; } public void SetRadiuss(double radiuss) { this.radiuss = radiuss; } ...
028a6d56538503eba963457707c331c808a3981c
C#
ncoder83/carbon
/Business/Calculator.cs
3.140625
3
namespace Carbon.Business { public class Calculator { public static decimal TotalPaidYearly(int numberOfPaychecks, decimal amountPerPaycheck) { var total = numberOfPaychecks * amountPerPaycheck; if (total <= 0) return 0.00m; return total; ...
6b01fe85f07830435361d4618480688c4e93481d
C#
MrMorham/Battleship-Commander
/Battleships v2/Enemy Manager.cs
2.640625
3
using System; using System.Collections.Generic; namespace Battleships_v2 { public class EnemyManager { public List<string> Designations = new List<string> { "ALPHA", "BRAVO", "CHARLIE", "DELTA", "ECHO", "FOXTROT", "GOLF", "HOTEL", "INDIA", "JULIETT", "KILO", "LIMA", "MIKE", "NOVEMBER", "OSCAR", "PAPA",...
66c8ffb26262c2383117b877bce48d7283604f27
C#
Pathoschild/smapi-mod-dump
/source/~daleao/Shared/Events/EventManager.cs
2.546875
3
/************************************************* ** ** You're viewing a file in the SMAPI mod dump, which contains a copy of every open-source SMAPI mod ** for queries and analysis. ** ** This is *not* the original file, and not necessarily the latest version. ** Source repository: https://github.com/daleao/sdv-mods ...
60a8ce3a270b60b0ac9d7d6be97befe428915707
C#
david0718/PaintDotNet.Quantization
/PaintDotNet/Imaging/ColorComponentUtil.cs
2.8125
3
///////////////////////////////////////////////////////////////////////////////// // paint.net // // Copyright (C) dotPDN LLC, Rick Brewster, and contributors. // // All Rights Reserved. ...
c7356cc328d4b3e6410fa4e7c9c084d2bf42505e
C#
haleyregister1/PalindromeExercise
/PalindromeExercise/PalindromeExerciseTests/UnitTest1.cs
2.734375
3
using System; using Xunit; using PalindromeExercise; namespace PalindromeExerciseTests { public class UnitTest1 { [Theory] [InlineData("racecar", true)] [InlineData("hannah", true)] [InlineData("hello", false)] [InlineData("sugar", false)] public v...
2834a2e4188ec2fdcc2aceca5f67304e3eebd588
C#
taguhisaghatelyan/COmpanyy
/COmpanyy/Classes/Customer.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace COmpanyy { class Customer : Person { public int Amount { get; set; } public Customer() { } public Customer(int amount):base() { ...
141a573f9040a5ecadaed4378ca9b03eb1302868
C#
UCan927/Mina.NET
/Mina.NET/Filter/Codec/PrefixedString/PrefixedStringEncoder.cs
2.9375
3
using System; using System.Text; using Mina.Core.Buffer; using Mina.Core.Session; namespace Mina.Filter.Codec.PrefixedString { /// <summary> /// A <see cref="IProtocolEncoder"/> which encodes a string using a fixed-length length prefix. /// </summary> public class PrefixedStringEncoder : ProtocolEncod...
9d760437522ec06436a317ddc1a4e38580813a47
C#
stg609/ClaimBasedManagementSolution
/Common/Infra/Extensions.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore; namespace Common.Infra { public static class Extensions { public static List<TSource> EmptyListIfEmpty<TSource>(this IEnumerable<TSource> list) { Type genericArgument = typeof(TS...
83b747f5b22a845c63a131c04367517c1688b785
C#
benNek/FantasyHoops
/fantasy-hoops/fantasy-hoops/Controllers/StatsController.cs
2.734375
3
using fantasy_hoops.Database; using fantasy_hoops.Repositories; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; namespace fantasy_hoops.Controllers { [Route("api/[controller]")] public class StatsController : Controller { private readonly GameCon...
396b5f4d43119e5b807805e3dbec69cd82bf219a
C#
DaleStevenJohnson/TeacherPlannerApplication
/TeacherPlanner/PlannerYear/ViewModels/ChooseYearViewModel.cs
2.84375
3
using System; using System.Collections.ObjectModel; using System.Linq; using System.Windows.Input; using Database; using Database.DatabaseModels; using TeacherPlanner.Helpers; using TeacherPlanner.Login.Models; using TeacherPlanner.PlannerYear.Models; namespace TeacherPlanner.PlannerYear.ViewModels { public class...
0328b085da861a688687c19436866f1eaf559ee2
C#
mayapeneva/C-Sharp-OOP-Basic
/02.Encapsulation_2/FootballTeamGenerator/Player.cs
3.515625
4
using System.Collections.Generic; using System.Linq; public class Player { private string name; private List<double> stats; public Player(string name) { this.name = name; this.stats = new List<double>(); } public string Name => this.name; public string AddStats(params do...
7b2b8f3d44757aa06f5f39314b01ea6863ba78dd
C#
amelleHamouch/courCsharp
/ConsoleApp1/ConsoleApp1/Classes/IHMBanque.cs
3.0625
3
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp1.Classes { class IHMBanque { String choix; public IHMBanque() { } public void start() { Func<decimal> retraitNegatif; choix = "N"; do ...
8b2ae33fe90bd0d68b6efa39473f4f79aea284d6
C#
VolhaKudrautsava/IOContainer
/Program/Program/Program.cs
2.84375
3
using Game; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Container; namespace Program { class Program { public static void DynamicLoad() { string path = Directory...
b8921aaa11bbd4e31b65bc97fac4e6e388da6fee
C#
AutismPatient/film-dy2018
/Macrocosm/Tool/TimeHelper.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Macrocosm.Tool { /// <summary> /// 日期转换相关 /// </summary> public static class TimeHelper { public static DateTime UnixToLacalTime(this int span) { var date = new Da...
d5bdefab2376b38269e2b531b4e4c841ecd9f7b2
C#
zkSNACKs/WalletWasabi
/WalletWasabi/Userfacing/Bip21/Bip21UriParser.cs
2.5625
3
using NBitcoin; using NBitcoin.Payment; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics.CodeAnalysis; using System.Web; using WalletWasabi.Extensions; namespace WalletWasabi.Userfacing.Bip21; /// <summary> /// BIP21 URI parser. /// </summary> /// <seealso href="https:/...
41d1512171593ae9e78d7b7dab4f3209efa76921
C#
Teles1/Cookie
/Cookie/Protocol/messages/game/achievement/AchievementDetailedListMessage.cs
2.828125
3
using Cookie.IO; using Cookie.Protocol.Network.Types; using System; using System.Collections.Generic; using System.Linq; namespace Cookie.Protocol.Network.Messages { public class AchievementDetailedListMessage : NetworkMessage { public const uint ProtocolId = 6358; public override uint MessageI...
dccd64953f55b13eff1aeb2c58a9ed296c81d8c9
C#
DanielVanNoord/ASCOMStandard
/ASCOM.Common/ASCOM.Common.DeviceInterfaces/Enums/PointingState.cs
2.84375
3
namespace ASCOM.Common.DeviceInterfaces { /// <summary> /// The pointing state of the mount /// </summary> /// <remarks> /// <para><c>Pier side</c> is a GEM-specific term that has historically caused much confusion. /// As of Platform 6, the PierSide property is defined to refer to the telescop...
6c0f5ce73820bc3747e557762c50d09ff9e06125
C#
jackingod/jessica
/src/Jessica/Extensions/StringExtensions.cs
3.015625
3
using System.Collections.Generic; using System.Web; namespace Jessica.Extensions { public static class StringExtensions { public static string With(this string format, params object[] args) { return string.Format(format, args); } public static string Ur...
4c27c3ea448005935d11e2e5d7f1cbe584f6e4a0
C#
meowside-v2/DKEngine
/DKEngine/Core/SystemExt/WindowControl.cs
2.65625
3
/* * (C) 2017 David Knieradl */ using System; using System.IO; using System.Runtime.InteropServices; using System.Timers; namespace DKEngine.Core.Ext { /// <summary> /// DKEngine window controller /// </summary> public static class WindowControl { [StructLayout(LayoutKind.Sequential)] ...
a5aec6b4c326b1659e9802290d1812085dfa19c4
C#
AnthonySteele/Netsy
/Netsy/Services/ListingsService.cs
2.625
3
//----------------------------------------------------------------------- // <copyright file="ListingsService.cs" company="AFS"> // This source code is part of Netsy http://github.com/AnthonySteele/Netsy/ // and is made available under the terms of the Microsoft Public License (Ms-PL) // http://www.opensource.org/l...
7974ef31b69927eb0fced84d4b71123577de0d3f
C#
Lexv0lk/medium-8-homeworks
/1.2 TrajectorySimulation/Program.cs
3.625
4
using System; using System.Collections.Generic; namespace _1._2_TrajectorySimulation { class Program { public static void Main(string[] args) { List<Object> objects = new List<Object>() { new Object(5, 5), new Object(10, 10), ...
a2301e042ed4477f6758e7f876f40f6ff202cd1e
C#
olgafadejeva/DeliveryService
/src/DeliveryService/Models/DriverAssignmentResult.cs
2.515625
3
using DeliveryService.Models.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DeliveryService.Models { public class DriverAssignmentResult { public int RouteID { get; set; } public DateTime DeliverByDate { get; set; } ...
31a4f72296b8896cfbc478a240ca0521486d427c
C#
Gietson/FlatScraper
/src/FlatScraper.Infrastructure/Services/ScraperService.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FlatScraper.Core.Domain; using FlatScraper.Core.Repositories; using FlatScraper.Infrastructure.DTO; using FlatScraper.Infrastructure.Extensions; using FlatScraper.Infrastructure.Services.Scrapers; using HtmlAgilityPa...
621c369c94b25568f5d1066e331a8557abd0b8ed
C#
meherbensaid/Algorithm
/AlgorithmTest/FibonacciTest.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Algorithm; using NUnit.Framework; namespace AlgorithmTest { [TestFixture] public class FibonacciTest { private Fibonacci _fibonacci; [SetUp] public void Se...
e2d81de03d2e0efe5dec30ae72bef1ae49481b3f
C#
IvanCvetkov/CodeVoid
/CodeVoidWPF/Pages/Shop.xaml.cs
2.53125
3
using System; using System.IO; using System.Windows; using System.ComponentModel; using System.Runtime.CompilerServices; using Path = System.IO.Path; //using System.Configuration; //using System.Data.SqlClient; //using System.Data; namespace CodeVoidWPF.Pages { /// <summary> /// Interaction logic for Shop.xam...
e811eb0040b69644ca38c1efe9d7c009cfa384e6
C#
gtrial/dk-csharp-essential-01
/task03/Program.cs
2.53125
3
namespace task03 { internal static class Program { private static void Main() { Book book = new Book("title1", "author1", "content1"); book.Title.Show(); book.Author.Show(); book.Content.Show(); } } }
64dfea3f9cf897988ba9e74a6cd17ad1110adf3e
C#
9Lucky9/Sky
/Sky/Services/Sound.cs
2.828125
3
using NAudio.Wave; using System; using System.Collections.Generic; using System.IO; using System.Windows; namespace Sky.Services { class Sound { private WaveIn waveIn; public List<byte> audioBytes = new List<byte>(new byte[] { }); public void StartRecord() { try ...
dd9bdbad7a6afb2e2a87f4b48cb6cc5be6967ccd
C#
DominikWaldowski5510/AssetLessMarioLike
/Assets/Scripts/Interaction/Environment/DestroyBlock.cs
2.75
3
using System.Collections; using UnityEngine; //handles animation of making block go up and become destroyed public class DestroyBlock : MonoBehaviour { [Range(0.5f, 2f)] [SerializeField] private float adjustmentAmount = 0.5f; [Range(0.15f, 2f)] [SerializeField] private float waitTime = 0.15f; private Pool...
6dc6181b3759a552eece9466f704658114891f50
C#
SuperAndyHero/Shazzam
/KaxamlPlugins/Controls/DoubleDragBox.cs
2.734375
3
namespace KaxamlPlugins.Controls { using System; using System.Globalization; using System.Windows; using System.Windows.Controls; using System.Windows.Input; public class DoubleDragBox : Control { /// <summary> /// Indicates the number of digits that are displayed (beyond 0)...
08f2022ca34d0fef880a37ad45249935c109deaf
C#
rajubabub84/DotNetPractice
/DesignPatterns/FacadeDemo/ShoppingFacade/UserOrder.cs
2.828125
3
using ShoppingCart.Implementation; using ShoppingCart.Interfaces; using ShoppingCart.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ShoppingFacade { public class UserOrder : IUserOrder { public int AddToCart(int ite...
3bb9d930497294fbb7d126cc141ee86a616199df
C#
DynaStudios/Slaysher
/SlayerNetworking/Packets/Utils/PacketReader.cs
3.203125
3
using System; using System.IO; using System.Text; namespace SlaysherNetworking.Packets.Utils { public class PacketReader { private readonly byte[] _data; private readonly int _size; private int _index; private bool _failed; public int Index { get { ...
6f28e934820e5790671375eb08d759d76f84a7d0
C#
adm244/CC98Unpacker
/CropCirclesUnpacker/Storages/Resources/TextureStorage.cs
2.84375
3
using System; using System.Diagnostics; using System.IO; using CropCirclesUnpacker.Assets; namespace CropCirclesUnpacker.Storages.Resources { public class TextureStorage : ImageResourceStorage { private Int32 Pitch; public TextureStorage() : this(string.Empty) { } public TextureStorage...
bc3e0e20080915f2c2886ce5ac10daefd7bdf7b3
C#
AftianSpheres/conflagration
/Assets/Scripts/Battle/Core/ActionExecutionSubsystem.cs
2.890625
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace CnfBattleSys { /// <summary> /// Battle overseer subsystem processing that handles the action we're currently executing. /// This is sort of fiddly, so I've taken the liberty of docstringing the hell out...
bbf333687581536d776f864ccc6852425e4cb03f
C#
luotyzl/TodoList
/TodoList/Models/DataManager/TaskManager.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using TodoList.Models.Repository; namespace TodoList.Models.DataManager { public class TaskManager:IDataRepository<Task> { private readonly TodoContext _todoContext; public TaskManager(TodoContext...
1b7230cb3f0f6f99f1f023204fbe948617d94056
C#
AtricoSoftware/Atrico.Lib.Common
/Atrico.Lib.Common/Console/ConsoleUtils.cs
3
3
using System; using System.Text; namespace Atrico.Lib.Common.Console { public static class ConsoleUtils { public static string ReadPassword() { var sb = new StringBuilder(); while (true) { var cki = System.Console.ReadKey(true); ...
f1b0fce7229691621c22693c81dbe35111be7bd5
C#
isukces/AutoUml
/app/AutoUml/_features/Symbols/SymbolLineUmlMember.cs
2.734375
3
using System.Collections.Generic; using System.Reflection; namespace AutoUml.Symbols { public class SymbolLineUmlMember : UmlMember { public void AddSymbol(PlantUmlText symbol) { Symbols.Add(symbol); } public override MemberInfo GetMemberInfo() { ...
0d9947f942290076fce1c6328a5f32dab4fb5337
C#
ITFriends/School
/C# - Beginner (Denis)/Lesson 74/lesson_74.cs
3.421875
3
Dictionary<int, string> countries = new Dictionary<int, string>(5); countries.Add(1, "Russia"); countries.Add(3, "Great Britain"); countries.Add(2, "USA"); countries.Add(4, "France"); countries.Add(5, "China"); foreach (KeyValuePair<int, string> keyValue in countries) { Console.WriteLine(keyValue.Key + " - " + ke...
6734908822ce70faa2deb6d761ccdfa4e244b7bd
C#
max-ieremenko/ThirdPartyLibraries
/Sources/ThirdPartyLibraries.Suite/Internal/NameCombiners/Name.cs
3.203125
3
using System; namespace ThirdPartyLibraries.Suite.Internal.NameCombiners; internal sealed class Name : IEquatable<Name>, IComparable<Name> { public Name(string first, string second) { First = first.ToLowerInvariant(); Second = second.ToLowerInvariant(); } public string First { get; }...
47cafe4287a07a02f07f73840045593d9ac9276b
C#
arkinfescioglu/turbot-dotnet
/OliWorkshop.Turbo.Abstractions/LinqExtension.cs
3.265625
3
using System; using System.Linq; using System.ComponentModel.Design; using System.Collections.Generic; using System.Threading.Tasks; using System.Reflection; namespace OliWorkshop.Turbo.Abstractions { /// <summary> /// Extensiones comunes para todo proyecto basadas en Linq /// que ayudan a la semticidad d...
38328efef82febb67bfe061d1c076d4131476a26
C#
camilolrangel/BlogPwa
/pwa-blog-master/PWABlog/Models/Blog/Etiqueta/EtiquetaOrmService.cs
2.796875
3
using Microsoft.EntityFrameworkCore; using PWABlog.Models.Blog.Categoria; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace PWABlog.Models.Blog.Etiqueta { public class EtiquetaOrmService { private readonly DatabaseContext _databaseContext; ...
92f71131bd191e8b379fb491cfe3af3a8027aa2d
C#
Thirrash/UntitledAwesomeGame
/Unity/Assets/Scripts/UtilityMgmt/DictionaryExtension.cs
2.75
3
using System; using System.Collections.Generic; using UnityEngine; public static class DictionaryExtension { public static Dictionary<TKey, TValue> CloneDictionaryCloningValues<TKey, TValue> ( this Dictionary<TKey, TValue> original ) where TValue : ICloneable { Dictionary<TKey, TValue> ret = new Dictionar...
561bd24d451e3fee2cde058c2af1f63baa1a1543
C#
adikanike85/performance_dashboard
/Source/kCura.PDB.Core/Extensions/RetryExtensions.cs
2.78125
3
namespace kCura.PDB.Core.Extensions { using System; using System.Threading.Tasks; using kCura.PDB.Core.Exception; using kCura.PDB.Core.Interfaces.Services; public static class RetryExtensions { public static async Task<T> RetryCall<T>(this TimeSpan delay, int times, ILogger logger, Func<Task<T>> operation) ...
79d8d248a7cb09db25c2f11ffb04ec686701c26a
C#
y1024866464/WeihanLi.Common
/samples/DotNetFxSample/ExtensionsTest.cs
2.765625
3
using System; using WeihanLi.Extensions; namespace DotNetFxSample { public class ExtensionsTest { public static void IsPrimaryTest() { var types = new[] { typeof(bool), typeof(sbyte), typeof(byte), typeof(...
8d46604acd98d5243a6956c31536dc0316f18919
C#
NanaseRuri/Algorithms
/Algorithms/Chapter4_Graph/ConnectedComponent.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Algorithms.Chapter4_Graph { class ConnectedComponent { private bool[] marked; private int[] id; public int Count { get; private set; } public ConnectedComponent(Graph g) { ...
2f4de7106c0bb81c2dfc40f6fb370cfa9e89d7cd
C#
BBraunRussia/MT940
/MT940/Classes/Invoice.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MT940 { public class Invoice { private string _number; private bool _isRub; private static Invoice _uniqueInstance; private Invoice() { string day; ...
a6d1a8e709b84fb1d2487c50253d5ccf191d0746
C#
sprakash1993/ABC-Company-E-Recruitment
/sample/DB/EmployeeDB.cs
2.890625
3
using BOFactory; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using Types; namespace DB { public class EmployeeDB : IEmployeeDB { /// <summary> /// /// </summary> ...
90c4a437b1e0b1a6915408f9c62d52b322cb5de1
C#
teddysot/VFS
/Portfolio/AIPrototype/Assets/Scripts/AI/StateMachine.cs
2.75
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class StateMachine : MonoBehaviour { private IState _currentState; public void ChangeState(IState newState) { if(_currentState != null) { _currentState.Exit(); } #if UNITY_EDITOR ...
db38d5366fe8fb4d5b2f031ceb658f79f5b11c53
C#
dystudio/EasyCNTK
/Source/EasyCNTK/Learning/Reinforcement/PolicyGradientsTeacher.cs
2.640625
3
// // Copyright (c) Stanislav Grigoriev. All rights reserved. // grigorievstas9@gmail.com // https://github.com/StanislavGrigoriev/EasyCNTK // // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. // using CNTK; using System; using System.Collections.Generic; using ...
1094f23ef0493de25a5135cedd0949a1e98748be
C#
frobro98/School-Projects
/Omega Race Multiplayer/OmegaRace_2.0/OmegaRace/OmegaRace/OmegaRace/Manager/Manager.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using SpriteAnimation; namespace OmegaRace { abstract class Manager { // public methods: ----------------------------------------------------------------------- protected Manager() ...
689991ded97d911692ddfa97f8f3bdca89a5433f
C#
schultyy/blackMagic
/blackMagic/libMagic/IO/NativeModule.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Jurassic; using Jurassic.Library; namespace libMagic.IO { public class NativeModuleInstance : ObjectInstance { public NativeModuleInstance(ScriptEngine engine) : base(engine) { t...
c7c4e8318d3acf0eb98c68c28eea92e373ad42e4
C#
zidad/dotnet-version
/src/dotnet-version/Program.cs
2.9375
3
using System; using System.IO; using Microsoft.DotNet.ProjectModel; using Microsoft.Extensions.Logging; using Newtonsoft.Json; namespace dotnet_version { public class Program { private static readonly ILogger Logger = new LoggerFactory().AddConsole().CreateLogger<Program>(); public static void...
f804feb4472b87dd2682dba12d0ad220f8918869
C#
DomoYao/EnterpriseLibary
/Enterprises.Framework.Business/Plugin/Email/SmtpMail.cs
2.609375
3
using System; using System.Text; using System.Collections; using System.Net.Sockets; namespace Enterprises.Framework.Email { #region 邮件发送程序 /// <summary> /// 邮件发送程序 /// </summary> [SmtpEmail("邮件发送程序", Version = "2.0", Author = "姚立峰", DllFileName = "Enterprises.Framework.dll")] public class SmtpMa...
22e93b2b219ab63a6715edba58a247c4d49ad654
C#
coderudit/GreedyMethod
/GreedyMethod/_3_ActivitySelectionProblem.cs
3.640625
4
using System; using System.Diagnostics.CodeAnalysis; namespace GreedyMethod { class _3_ActivitySelectionProblem { public void SelectActivity(int[] start, int[] end, int n) { var activities = new Activity[n]; for (int index = 0; index < n; index++) { ...
bd36524a66eeddb280846eb540c5436c3b14b2d1
C#
MarktW86/dotnet.docs
/samples/snippets/csharp/VS_Snippets_Remoting/System.Net.Dns/CS/dnsnewmethods.cs
3.421875
3
using System; using System.Net; using System.Threading; namespace DNSChanges { class DNS { //<Snippet1> public static void DoGetHostEntry(string hostname) { IPHostEntry host; host = Dns.GetHostEntry(hostname); Console.WriteLine("GetHostEntry({0}) returns:",...
248e86959465a5bd38d6544d64cbddad152b2631
C#
Agilefreaks/WinOmni
/Code/Omnipaste/Framework/Helpers/TextParser.cs
3
3
namespace Omnipaste.Framework.Helpers { using System; using System.Collections.Generic; using System.Text.RegularExpressions; public class TextParser { private List<Tuple<TextPartTypeEnum, string>> _result; public List<Tuple<TextPartTypeEnum, string>> Parse(string text) { ...
75c1f50e30cb46302b38936201084a74141ef1aa
C#
curiouslearning/Norad-Eduapp4syria
/Antura/EA4S_Antura_U3D/Assets/_games/_common/_scripts/_mustbeimplementedbyhub/SampleQuestionPack.cs
2.640625
3
using System; using System.Collections.Generic; namespace EA4S { class SampleQuestionPack : IQuestionPack { ILivingLetterData questionSentence; IEnumerable<ILivingLetterData> wrongAnswersSentence; IEnumerable<ILivingLetterData> correctAnswersSentence; public SampleQuestionPack...
eb5c6a6d9530968b2af390ac12b2d53e7ec0396d
C#
IVSoftware/wpf-window-ex
/wpf-window-ex/Console.cs
3.046875
3
using System; using System.Threading; using System.Threading.Tasks; using System.Windows.Controls; using System.Windows.Input; namespace IVSoftware { public class Console : TextBox, IConsole { public void ReadKey() { _waiting = true; AppendText("Press any key to continu...
569cb1f93c31d5063bf5a96d80ce992cfaa829ef
C#
MyLab-InventoryManagementTool/MyLab-Backend
/myLabDockerAPI/Models/Relation_Category_ItemAttribute.cs
2.5625
3
using System.ComponentModel.DataAnnotations; namespace myLabDockerAPI.Models { /// <summary> /// Datatable for m : n Relation between Category and Item Attribute. /// </summary> public class Relation_Category_ItemAttribute { /// <summary> /// /// </summary> [Key] ...
73d56c69d53430e6b78864f73c27ef338a8d8bc4
C#
Pavel-Durov/Design-Patterns
/BehavioralDesignPatterns/State/States/HasCardState.cs
2.984375
3
using BehavioralDesignPatterns.State.States.Base; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BehavioralDesignPatterns.State.Model; namespace BehavioralDesignPatterns.State.States { class HasCardState : AtmMachineState { pub...
b867060fa6cfefe26ea475725e46155736892954
C#
Raikiri62/projects-assignments
/Dot Net OOP course assigments/EX3/C19_Ex03/TheReferredVehicleByLicenseNumberIsNotElectricException.cs
2.71875
3
namespace C19_Ex03_GarageLogic { using System; internal class TheReferredVehicleByLicenseNumberIsNotElectricException : ArgumentException { internal TheReferredVehicleByLicenseNumberIsNotElectricException(string i_NumberOfLicense, string i_NameOfArgument) : base("The referred vehicle b...
3486ebb8769bfaf9097336c1a04b41928d20b8c6
C#
alienown/Left4Dead
/src/Left4Dead/Difficulty/HardDifficulty.cs
2.6875
3
namespace Left4Dead { public class HardDifficulty : IDifficulty { public void PlanNextSpawn(ZombieMaker z) { int interval; double scorePerMinute = (z.PlayerScore * 60) / z.GameTime; if (z.ZombieCount < 10) { if (scorePerMinute <=...
7ca462f2e0532abb46de88cf0d9e6e1141809870
C#
RauhoferE/SnakeInSignalR
/Snake_V_0_3/EventArgs/DirectionEventArgs.cs
2.828125
3
//----------------------------------------------------------------------- // <copyright file="DirectionEventArgs.cs" company="FH Wiener Neustadt"> // Copyright (c) Emre Rauhofer. All rights reserved. // </copyright> // <author>Emre Rauhofer</author> // <summary> // This is a network library. // </summary> //------...
9e5070e46851de61792b9df08a2fdd98850bb8d3
C#
minhchauss/cmchau_mf863
/MISA.Application.Core/Enum/MISAEnum.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MISA.CukCuk.Core.Enum { /// <summary> /// Trạng thái của object /// </summary> /// Created by CMChau 22/05/2021 public enum EntityState { /// <summary> ...
a122dcb8dab36325c3e8fa83ae00153e65637d5e
C#
akangbang/SymbioticSurvival---CutieHack2021
/betterTogether-v.0.1/betterTogether-v.0.1/betterTogether/Assets/Scripts/Boundary.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Boundary : MonoBehaviour { private float minX, maxX, minY, maxY; void Start() { float camDistance = Vector3.Distance(transform.position, Camera.main.transform.position); Vector2 botto...
693b3913cc05ca1f880c90c1988b361378693390
C#
cristhyanc/DemoTodoList
/src/DemoTodoList.Entities/TodoItemEntity.cs
2.859375
3
using SQLite; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace DemoTodoList.Entities { public class TodoItemEntity { [PrimaryKey] public Guid TodoId { get; set; } public Guid ListId { get; set; } public string Title { get...
158c114ee5b58f22e1955f28fc275cc50b4aad7c
C#
JustD4nTe/AoC2020
/Day6/PartTwo.cs
3.21875
3
using System.Collections.Generic; using System.IO; using System.Linq; namespace AoC2020.Day6 { public static class PartTwo { public static int Solve() { using var sr = new StreamReader("Day6/data.txt"); var answers = sr.ReadToEnd().Split("\r\n"); var sum = 0...
b08fd2a3a290897b9b8fef4efdc2c7addf7aef29
C#
shendongnian/download4
/latest_version_download2/210296-44946898-150965116-2.cs
2.953125
3
private void LV1_SelectionChanged(object sender, SelectionChangedEventArgs e) { var selected = (sender as ListView).SelectedItem as string; int index = -1; for (int i = 0; i < LV2.Items.Count(); i++) { if (LV2.Items[i] as string == selected){ index = i...
dccf1a4880970042fd1e00ece91157a186b8eca8
C#
Goolyio/auth0.net
/src/Auth0.AuthenticationApi/Models/RefreshTokenRequest.cs
2.71875
3
namespace Auth0.AuthenticationApi.Models { /// <summary> /// Represents a request to get new tokens based on a previously obtained refresh token. /// </summary> public class RefreshTokenRequest { /// <summary> /// Optional audience used for refreshing the access token token. ...
c3f35a92b9bfe6bc3d7c768969c2884e566e9e08
C#
bwhoffmann/Stealth
/Stealth/Assets/Scripts/Player.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { private Transform tf; public float turnSpeed = 110f; //sets base turn speed, can be changed public float moveSpeed = 5f; //sets base move speed, can be changed // Start is call...
e21cc209051fc514ce844a1d12a3b662180e67db
C#
gyx9208/sweep
/sweep/SweepLogic/SweepCommon.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace sweep.SweepLogic { public class SweepCommon { public static object SyncObj = new object(); private static IDictionary<string, SweepState> ProcessStatus { get; set; } public SweepCommon() ...
24ba94afb2ceddaf0d9763e9629d589d974a2d70
C#
FabioZumbi12/drywetmidi
/DryWetMidi.Tests/Smf.Interaction/ChordsManager/ChordTests.cs
2.65625
3
using Melanchall.DryWetMidi.Common; using Melanchall.DryWetMidi.Smf; using Melanchall.DryWetMidi.Smf.Interaction; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Linq.Expressions; using System.Reflection; namespace Melanchall.DryWetMidi.Tests.Smf.Interaction { [TestClass] public...
8b850cdd76c47dcd0fe5a449e808844970e926c5
C#
connorlevesque/FunFactory
/Assets/Scripts/Crates.cs
2.90625
3
using UnityEngine; using System; using System.Collections; using System.Collections.Generic; public class Crates : GridOf<Crate> { public Crates(int h, int w) : base(h,w) {} public static List<CrateGroup> Groups() { List<CrateGroup> groups = new List<CrateGroup>(); Action<Crate> addGroup = (crate) ...
8b75d875d446e67ad1971f42e1d22b0dffb86acb
C#
srscrls/payroll-calculator
/tax.cs
3.359375
3
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PAYECalcWin { class Tax { public Tax(string name, OrderedDictionary taxRates) { this.Name = ...
b56e90839a414db976343f66db02c9e0291acbc5
C#
androidZ200/snake-game
/Field.cs
2.796875
3
using System; using System.Collections.Generic; using System.Drawing; namespace змейка { class Field { private Random rand = new Random(); public Snake<int> snake { get; set; } public HashSet<int> wall { get; private set; } public int eat { get; private set; } public in...
f5f2588996e54dc755f901987985b1ac4ae5f9b1
C#
orontamir/1272_GOODIES_ZAHAL
/1272_GOODIES_ZAHAL/DataBase/DBParser.cs
2.859375
3
using _1272_GOODIES_ZAHAL.DataModel; using System; using System.Collections.Generic; using System.Configuration; using System.Data.OracleClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _1272_GOODIES_ZAHAL.DataBase { public class DBParser { /// <summary> //...
21676cb33514c930452caf1580015decae30975f
C#
rockiesmagicnumber/Odds-N-Ends
/ObjectUpdater.cs
2.953125
3
namespace Andrew.OddsNEnds { public class GeneralFunctions { public T UpdateObject<T>(T target, T source, bool overWriteWithNull) { Type t = typeof(T); var properties = t.GetProperties().Where(prop => prop.CanRead && prop.CanWrite); foreach (var prop in properties) ...
85a0c1947c28c0d908111577709df456e5e824a9
C#
aroder/heatmap
/HeatMap/CoordinateConverter.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AdamRoderick.HeatMap { //with help from http://groups.google.com/group/Google-Maps-API/browse_thread/thread/278923f0aad4811a public class CoordinateConverter { public const int OFFSET = 268435456; ...
bec8d9c94160212ea5a2e7362fde5678bc16995b
C#
FelicePollano/Metsys.Bson
/Metsys.Bson.VStest/UnitTest1.cs
2.671875
3
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Metsys.Bson.VStest { /// <summary> /// Summary description for UnitTest1 /// </summary> [TestClass] public class UnitTest1 { public UnitTe...
1243c2a376fb7c9f02c1dec94a128764c00a5cef
C#
moserarthur/Exercises
/ExercicioBancoDados/DAO/ProdutoDAO.cs
3.171875
3
using ExercicioBancoDados.Model; using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Text; namespace ExercicioBancoDados.DAO { public class ProdutoDAO { private SqlConnection _conn; private SqlTransaction _trans; public ProdutoDAO(SqlConnection con...
ae3600013396ced1c49abd8b7a5ba5acfb65c5ef
C#
Harvey1214/Website-Finder
/WebsiteFinder/Handlers/ActionsManager.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OpenQA.Selenium; using System.Threading; using System.Text.RegularExpressions; namespace WebsiteFinder { class ActionsManager { private Bot bot = new Bot(); public string ...
d603eb95ede388f82bc83db6d723468ee7fde1b3
C#
dojo87/microservicesoverview
/Gateway/Service/DefaultAuthService.cs
2.6875
3
using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Tokens; using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.Security.Cryptography; using System.Text; using System.Threadin...
6e660b0c4f793617eb4de259577503d6f21f60f1
C#
eniga/LagosHealthReminderApi
/LagosHealthReminderApi/Repositories/RoleRepo.cs
2.625
3
using Dapper; using LagosHealthReminderApi.DbContext; using LagosHealthReminderApi.Models; using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Threading.Tasks; namespace LagosHealthReminderApi.Reposit...
ba5010edb76be6dd3f79a0ea94eca0f0040ab5f4
C#
DerLando/PolycurveEditingTools
/PolycurveEditingTools/Core/CurveTypes.cs
2.796875
3
using Rhino.Geometry; namespace PolycurveEditingTools.Core { public enum CurveType { LineCurve, ArcCurve, NurbsCurve, PolylineCurve, Undefined, } public static class CurveTypes { public static CurveType CurveType(this Curve crv) { ...