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
9e57ba7e137f6768e05f8f53f9c6974ee61ed999
C#
Jazis/FileManager
/FileManager/Form2.cs
2.640625
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.Collections; using System.IO; using System.Text.RegularExpressions; using System.Diagnostics; nam...
531ffebf9b30f846f0871d8c365f77cbd753357e
C#
DenisFioravante/Projeto-MVC-4-CAMADAS
/Sistema.View/Login.cs
2.609375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Sistema.Model; using Sistema.Entidades; namespace Sistema.View { public partial class frm_Login...
ee98c22f2e0e22dfff17b3749fa35360c90eafce
C#
tiesont/Glimpse
/source/Glimpse.Core/Framework/CacheSetting.cs
2.640625
3
using System; using System.ComponentModel; namespace Glimpse.Core.Framework { /// <summary> /// The <see cref="Enum"/> providing type safe access to cache directives as defined in <see href="http://www.w3.org/Protocols/rfc2616/rfc2616.html">Section 14.9 of RFC 2616</see>. /// </summary> /// <seealso hr...
3046f8b9f2cd9ce6455927cfd1cd8aa6eb616f7a
C#
demoded/Coderbyte
/Coderbyte017QuestionMarks/Coderbyte017QuestionMarks/Program.cs
3.65625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; /* https://www.coderbyte.com/editor/guest:Questions%20Marks:Csharp Using the C# language, have the function QuestionsMarks(str) take the str string parameter, which...
28880adb56a007ceab8480b8cc32227b5cccb149
C#
SebastianGaud/exercism-c-sharp
/isogram/Isogram.cs
3.5
4
using System; using System.Linq; using System.Collections.Generic; public static class Isogram { public static bool IsIsogram(string word) => word.CountComparable() == word.WithoutSpecialChar().Count(); public static int CountComparable(this string word) => word.ToLower().WithoutSpecialChar().Distinct().Coun...
ed6fb0f393cc1cd215b43b86c2466541a53adfa1
C#
itsd/ChatRoom
/MongoObserver/Program.cs
2.625
3
using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.IdGenerators; using Nostromo.Common.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MongoObserver { class Program { public static Application app; static v...
d8ce860166348af9cae663d8eb7d67f506c51dea
C#
comarios/WordCloud
/MicrosoftJava.Shared/Word.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MicrosoftJava.Shared { public enum TokenType { Identifier = 0, Keyword = 1, Literal = 2, Comment = 3 } public class Word { #region Initialization public Word(To...
bb1d73f772a78aff7c58e8a05e3b042bc1745bdc
C#
rschiang/allegro
/src/sharp/Allegro.Linguistics/OperatorType.cs
3.078125
3
using System; namespace Allegro { /// <summary> /// Specifies the type of operator token. /// </summary> public enum OperatorType { /// <summary> /// No operator intended to be represented. /// </summary> None = 0, /// <summary> /// Add operator. (+)...
1ad4620f408d71f75fe0fc41d31501a1302b6298
C#
dharmeshshahaptify/eShop
/eShopSolution/eShop.Services/Services/AuthService.cs
2.65625
3
using eShop.Entities; using eShop.Services.Interfaces; using Microsoft.AspNetCore.Identity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace eShop.Services.Services { public class AuthService : IAuthService { protected SignIn...
7504dcc3a66b164cce2225a176bec2f6b58dd45f
C#
OrgFlow/CliWrap
/CliWrap/Internal/ProcessEx.cs
2.65625
3
using System; using System.Diagnostics; using System.IO; using System.Threading.Tasks; namespace OrgFlow.CliWrap.Internal { internal class ProcessEx : IDisposable { private readonly Process _nativeProcess; private readonly TaskCompletionSource<object?> _exitTcs = new TaskCompletio...
a2a0e4d7535df4c10b77db1bda5060bd0269ba4c
C#
sereilly/uimirror
/Assets/UIMirrorClient/Scripts/App/AppConsole.cs
2.78125
3
using TMPro; using UnityEngine; public class AppConsole : MonoBehaviour { [SerializeField] protected Transform textbox; [SerializeField] protected TextMeshProUGUI consoleTextPrefab; public static AppConsole Instance; private const int maxMessages = 50; protected void Awake() { ...
6c53d1e959191fc5dd85d189b7d54cc63ef041e8
C#
AmeRaino/PTTK
/AiHcmCms/Services/OrderService.cs
2.609375
3
using AiHcmCms.Models.Order; using AiHcmCms.Models.Products; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace AiHcmCms.Services { public interface IOrderService { IEnumerable<Order> GetAll(); IEnumerable<Order> GetAllById(string id); ...
5fe964960827b68b5cdbb713e6fa4ced1d3fd74c
C#
juancollsoler/ex.tv.player.app.v2
/MediaPortal-1-master/Common-MP-TVE3/External/Gentle.NET/Source/Gentle.Framework/NamespaceDoc.cs
2.609375
3
/* * Namespace Summary * Copyright (C) 2004 Morten Mertner * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License 2.1 or later, as * published by the Free Software Foundation. See the included license.txt * or http://www.gnu.org/copy...
34fbdc7b3339e3d08d1a8a62072e5972c055a824
C#
kolsson3/dogdays
/Assets/Scripts/Movement.cs
2.703125
3
using System; using System.Collections; using System.Collections.Generic; using System.Threading; using UnityEngine; public class Movement : MonoBehaviour { float speed = 10f; // units per seconds float turnSpeed = 90f; // degrees per second float jumpSpeed = 8f; float gravity = 9.8f; private float vSpeed = 0f; /...
bac2225e8b09d429c2f6bee8c50d7d607024105d
C#
avinash175/StratMaster1
/StrategyCollection/CandleStickStrategy.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using CommonLib; namespace StrategyCollection { public class CandleStickStrategy : BasicStrategy { public object ThreshRetBps = 2.0; public object ThreshStrikeRate = 0.5; public object MinOccurance = ...
b9d04e9336e2cfd10bfc17a6b28c53cea26a767b
C#
ArchiScript/Artur_Skomarohov_HW2_FigureCalc
/Artur_Skomarohov_HW2_FigureCalc/Figure.cs
2.671875
3
using System; using System.Collections.Generic; using System.Text; namespace FigureCalc { public class Figure { public int Sides { get; set; } public double SideA { get; set; } public double SideB { get; set; } public double SideC { get; set; } public double S { get;...
72cb6ff4c0c27ac1060f5435dea7c805dac9d5ca
C#
Serinoxxx/Devolution
/SporeSystem.cs
2.84375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; //Maintains the count for all spores, also contains functions for checking if we have enough spores, and consuming the spores //It is assumed that you will always check for available spores before consuming pub...
2066e47093d6cdb3fa8bcbd84fdff95168f97fb0
C#
arbazaj/SecurityToyApi
/SecurityToy/Services/Util.cs
2.84375
3
using Microsoft.AspNetCore.Cryptography.KeyDerivation; using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace SecurityToy.Services { public class Util { public static string CreateSalt() ...
efbdab2d1340a486434de726219765e811614ca7
C#
PyHahiro/FormsCDAA_git
/CDAA_ProjectForms/CDAA_ProjectForms/Catalogue.cs
2.734375
3
using System; using System.Collections.Generic; using System.Security.Cryptography.X509Certificates; namespace CDAA_ProjectForms { public class Catalogue { private DateTime maj; public DateTime Maj { get { return maj; } set { maj = value; } } // private LesJeux lj; public LesJeux Lj { get { retu...
bc7603152a4f7b350b4a7e8c2aa347525e87c016
C#
sfa119f/Calculator-TubesOOP
/NegativeExpression.cs
2.734375
3
using System; namespace Tubes_1 { public class NegativeExpression<T> : UnaryExpression<T> { public NegativeExpression(Expression<double> E) : base(E){} public override double solve() { return this.x.solve()*(-1); } } }
7a7eee744810814eadade65b81bbbec9067b9ba1
C#
sono8stream/AtPractice
/AtTest/NothingToLearn/ABC054_B.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; using static System.Math; namespace AtTest.NothingToLearn { class ABC054_B { static void ain(string[] args) { var sw = new System.IO.StreamWriter(OpenStandardOutput())...
cc9648173474969897e5eb27c359521ece7039bf
C#
Krystian-Sarowski/4thYearRealWorldModelingProject
/Assets/Resources/Scripts/SoundManager.cs
2.578125
3
using UnityEngine.Audio; using System; using UnityEngine; using System.Collections; using System.Collections.Generic; public class SoundManager : MonoBehaviour { public static SoundManager s_instance; public AudioMixerGroup mixerGroupSFX; public AudioMixerGroup mixerGroupMusic; public Sound[] m_soundEffects; p...
0b657452362c46396c201d1b26c3beb33dfb70b3
C#
thudugala/Plugin.Glypher
/Source/Plugin.Glypher.WeatherIcons/GlyphFont.cs
2.859375
3
using System; using System.Threading; using Xamarin.Forms; namespace Plugin.Glypher.WeatherIcons { /// <summary> /// Font Awesome 5 Pro fonts /// </summary> public class GlyphFont { private static readonly Lazy<GlyphFont> _mySingleton = new Lazy<GlyphFont>(() => new GlyphFont(), LazyThread...
1659d2ba8330207fb1d3411fdd040115d39cf5a3
C#
viktor53/Game_Risk
/AI/MCTS/State.cs
2.53125
3
using Risk.Model.Enums; using Risk.Model.GameCore; using Risk.Model.GamePlan; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Risk.AI.MCTS { internal abstract class State { protected GameBoard _gameBoard; protected IList<IPlaye...
850791d69d65265aec9e0aae9eff8520efaa35f3
C#
thomasw234/StockManagement
/code/GTill/GTill/Program.cs
2.5625
3
using System; using System.Collections.Generic; using System.Windows.Forms; using TillEngine; using System.IO; namespace GTill { static class Program { /// <summary> /// The very first procedure that is called in the program /// </summary> /// <param name="args">Any arguments p...
367a88699c76bbcace05aeace9728aa4fac3a32e
C#
todorzhelev/SofiaGameJam2017
/Assets/Scripts/DoorScript.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DoorScript : MonoBehaviour { public bool closed = true; public float smooth = .1f; private Vector3 targetAngles; private Transform door; private Transform wall; private bool moving = false; void Start() { door = t...
8434e257a5e9798990ec1c0e822011988b9180ee
C#
KaktysKoder/Fitness-is-just
/Fitness-App/Fitness-is-just/Start.cs
2.796875
3
using Fitnes_is_just.BL.Controller; using Fitnes_is_just.BL.Model; using System; using System.Globalization; using System.Resources; using Fitness_is_just.Languages; namespace Fitness_is_just { internal sealed class Start { #region Loanguage private const string RU_LANGUAGE = "Ru-ru"; ...
e6767787930a4616d2273e59f48415ae902e44af
C#
b-small/CS-SoftUni2014
/CountOfNames.cs
4.0625
4
using System; using System.Collections.Generic; using System.Linq; namespace _7._93_CountOfNames { class CountOfNames { static void Main(string[] args) { try { List<string> names = new List<string>(); int counter = 1; ...
f60767533fa947d625901592f8d59eb2cf72cf85
C#
DiyanaTodorova/Assignment-1
/ToDoApplication/Models/User.cs
2.671875
3
namespace ToDoApplication.Models { using System; using ToDoApplication.Interfaces; using System.Collections.Generic; using System.Text; public class User : Entity, IUser { public string Username { get; set; } public string Password { get; set; } public string FirstName ...
aaa1372051ae50db342d97eb01c0189448603110
C#
ibiliskov/ExpressionInterpreter
/Parser/TokenParser.cs
2.84375
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using ExpressionInterpreter.Exceptions; using ExpressionInterpreter.Functions; namespace ExpressionInterpreter.Parser { internal class TokenParser { protected Dictionary<string, double> Variables; pr...
910d7f6bfcd6810d8af7e3700a6f068695b66444
C#
inputBrain/GoF-patterns
/Builder/Practical/HouseModel.cs
3.28125
3
using System; namespace Builder.Practical { public class HouseModel : IHouseModel, IHouseBuilder { public int Id { get; set; } public string Title { get; set; } public string Description { get; set; } public int? DoorsCount { get; set; } public int? BathroomCount { g...
1b4c3ab833c5ce07d7030d15da6b24d88c5a12f3
C#
daazarov/SDmS
/src/Services/Resource Api/SDmS.Resource.Common/Exceptions/ResourceException.cs
2.625
3
using System; namespace SDmS.Resource.Common.Exceptions { public class ResourceException : Exception { private int _errorCode; private int _httpResponseCode; public int ErrorCode => _errorCode; public int HttpResponseCode => _httpResponseCode; public ResourceExceptio...
64284faf3052d1f03199680d5dd2c935a310f979
C#
ElviraPetkova/SoftUni-Courses
/Technology-fundamentals-C#-2019/4. Methods/6. Middle Characters/Program.cs
4.0625
4
using System; namespace _6.Middle_Characters { class Program { public static void Main(string[] args) { string text = Console.ReadLine(); Console.WriteLine(MiddleChar(text)); } public static string MiddleChar(string text) { string m...
d3cc4f4847d68df14bc82ec5212295c542fa22c3
C#
borizspaxxkey/Building-Angular-and-ASP.NET-Core-Apps-with-Authentication
/messageboard/MessageBoardBackend/MessageBoardBackend/Controllers/MessagesController.cs
2.78125
3
using MessageBoardBackend.Data; using MessageBoardBackend.Models; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Linq; namespace MessageBoardBackend.Controllers { [Route("api/[controller]")] [Produces("application/json")] public class MessagesController : Controller { ...
f2e1b67d48de93bef0e72e70fa60a414bf12b9bf
C#
rucha-kudale/merchant-galaxy
/MerchantGalaxyTest/RomanConverterTest.cs
2.546875
3
using MerchantGalaxyHelper; using System; using Xunit; namespace MerchantGalaxyTest { public class RomanConverterTest { [Fact] public void TestRomanConverter() { RomanConverter converter = new RomanConverter(); Assert.Equal<double>(24, converter.ToDecimal("XXIV"...
5fe6fc9953adb1b2a16a6902fb445a15b9d2483c
C#
felipea90/BubbleGames.Store
/src/StockContext/DomainModels/Products/Stock.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StockContext.DomainModels.Products { public class Stock { private Stock() { } public Stock( ProductId productId, StockAddressId...
0aa89a5382a7a5ff45f4e5ade784a2e48a43347e
C#
yef2015/EduCodes
/TrainerEvaluate.DAL/Class.cs
2.71875
3
using System; using System.Data; using System.Data.SqlClient; using System.Text; //Please add references using TrainerEvaluate.Utility.DB; namespace TrainerEvaluate.DAL { /// <summary> /// 数据访问类:Class /// </summary> public partial class Class { public Class() {} #region BasicMethod /// <summary> ...
1aef8103ad34566269ae951ba0ee089a35104122
C#
squareinc/Telerik-Academy-HomeWorks
/CSharp-III/07.OOP-WorkShop/AcademyPopcorn/ShootingRacket.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AcademyPopcorn { class ShootingRacket : Racket { public ShootingRacket(MatrixCoords topLeft, int width) : base(topLeft, 6) { } public void S...
37a9182aa314bd89315b766b93c0743729fba55e
C#
wx0322/xamarin-clock
/XSamples/MainPage.xaml.cs
2.765625
3
using SkiaSharp; using SkiaSharp.Views.Forms; using System; using Xamarin.Forms; namespace XSamples { // 教程参考:https://docs.microsoft.com/zh-cn/xamarin/xamarin-forms/user-interface/graphics/skiasharp/ public partial class MainPage : ContentPage { private SKPaint blackFillPaint = new SKPaint ...
aa431848832809b317121a9e797bf72491dc66fc
C#
mberkenbrock/PrimeOnDemand
/Dal/LoginDal.cs
2.765625
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using WindowsFormsApp1.Modelo; namespace WindowsFormsApp1.Dal { class LoginDal { public bool tem = false; p...
eb1f2f66fee1becb77c39dc7ac7ccec80540dd4f
C#
broxigarthered/OOP-Homeworks-SoftUni
/OOP-Homeworks-Softuni/2.Static-Members-And-NamespacesHW/HTMLDispatcher/Namespace/HTMLDispatcher.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HTMLDispatcher.Namespace { class HTMLDispatcher { public static string CreateImage(string source, string alt, string title) { ElementBuilder image = new El...
7e8c40cc0966f7bfbc520089cde175af99c36c81
C#
GBozhilov/Programming-Basics
/08.ExamPreparation/ExamPreparationPartOne/11.IncreasingFourNumbers/IncreasingFourNumbers.cs
3.78125
4
using System; public class IncreasingFourNumbers { public static void Main() { int a = int.Parse(Console.ReadLine()); int b = int.Parse(Console.ReadLine()); int count = 0; for (int n1 = a; n1 <= b; n1++) { for (int n2 = a; n2 <= b; n2++) { ...
04c65f3701b02f4d6cb047342e527e4e011d3eb5
C#
BrianJVarley/Parking-Tag-SMS-Client
/Parking Tag Picker WRT/Helpers/DataBaseHelper.cs
2.734375
3
using CsvHelper; using Parking_Tag_Picker_WRT.Models; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.ApplicationModel; using Windows.Storage; namespace Parking_Tag_Picker_WRT.Helpe...
f2ebdf3197d56f30657e5e798af51067e041ad50
C#
kaliopa1983/Programming-Fundamentals
/04. PFDataTypesandVariablesLab/09. Refactor Special Numbers/Program.cs
3.703125
4
using System; namespace _09.Refactor_Special_Numbers { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); for (int num = 1; num <= n; num++) { int sumOfDigites = 0; int digit...
215b9856a319f8b8deed6be8e21f8bcea2c70d65
C#
Ekenstein/Monadicsh
/Monadicsh/Either.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using Monadicsh.Extensions; namespace Monadicsh { /// <summary> /// The Either type represents values with two possibilities: either a left value, or a right value. /// The left value is of the type <typeparamref name="T1"/> and the right ...
a3e1cb6fb4d7a9d4bb95bbf2fdae0730412872c1
C#
raccoon-repo/aads_lab4
/Graphs/ConsoleGraphPrinter.cs
3.390625
3
using System; namespace lab4.Graphs { public class ConsoleGraphPrinter : IGraphPrinter { public void Print(GraphWeighted graph) { var adjList = graph.AdjacencyList; foreach (var v1 in adjList) { var counter = 0; Console.Write...
56d3cc80d6aba7b8e1fa18a39c05ff6b9435797a
C#
denpadokei/SongPlayListEditer
/SongPlayListEditer/DataBases/BeatSarverData.cs
2.578125
3
using BeatSaverSharp; using System; using System.Reflection; using System.Threading.Tasks; namespace SongPlayListEditer.DataBases { public static class BeatSarverData { private static BeatSaver BeatSaver { get; } static BeatSarverData() { var http = new HttpOptions("SongPl...
8fdfab6a173ae1de1514e86ec760b0d0b3bf279d
C#
AlexSolari/textify
/Textify.Core/Dependencies/Resolver.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Textify.Core.Data.Models; namespace Textify.Core.Dependencies { public static class Resolver { static Dictionary<Type, object> instanceDependencies = new Dictionary<Type, object>()...
cdfc089cf56015b35873e9dccb46984df48d1292
C#
KodeFoxx/Kf.Essentials.CleanArchitecture
/Tests/Kf.Essentials.CleanArchitecture.Tests.UnitTests/Cqs/QueryHandlerTests.cs
2.578125
3
using FluentAssertions; using Kf.Essentials.CleanArchitecture.Tests.UnitTests.TestDomain; using Kf.Essentials.CleanArchitecture.Tests.UnitTests.TestDomain.Queries; using System.Collections.Generic; using System.Threading; using Xunit; namespace Kf.Essentials.CleanArchitecture.Tests.UnitTests.Cqs { public sealed c...
a2c8cfc34ee20b970acec5d06a1fa74b6bab2609
C#
ryanslade/project-euler
/csharp/34.cs
3.765625
4
using System; using System.Linq; using System.Collections.Generic; public static class Solver { public static void Main() { List<int> numbers = new List<int>(); int n = 3; while (true) { int sum_fact = 0; for (int i = 0; i < n.ToString().Length; i++) { sum_fact += Factorial(Convert.ToI...
e88762e6270276205745a702c630ec27fad345a2
C#
aljke/Calc
/WinCalc/ViewModels/CalculatorViewModel.cs
2.9375
3
using System; using System.Linq; using System.Windows.Input; using WinCalc.Common; namespace WinCalc.ViewModels { public class CalculatorViewModel : ViewModelBase { private Command<string> _buttonPressedCommand; private string _currentInput; private string _textExpression; private bool binaryOperationPresse...
28442b09693f52f3e77782fb3653de61e4f89da7
C#
ibtanjeeb/Practice-some-code
/RomanIntegar/RomanIntegar/Program.cs
3.84375
4
using System; namespace RomanIntegar { class Program { public static int Romantoint(string s) { char[] Symbol = { 'I', 'V', 'X', 'L', 'C','D', 'M' }; int[] Values = { 1, 5, 10, 50, 100, 500, 1000 }; char[] input = new char[s.ToCharArray().Length]; ...
b15f319a49f5a5f898a1b75ba69123cad5036d18
C#
akhils-git/akhils-git-SimpleMyShopApp
/MyShopcopy/MyShop/Classes/OrderDetails.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyShop.Classes { public class OrderDetails { public int Id { get; set; } public int OrderId { get; set; } public int ProductId { get; set; } public int Q...
966caf210b867edbc93e3134b466a84bb07978ba
C#
Hanninenjp/ekoodi-programming-tasks
/bank-objects/bank-objects/Account.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace bank_objects { public class Account { private string _accountNumber; private decimal _accountBalance; IList<Transaction> _transactions = new List<Transaction>()...
751903a5b947c33b389c00a583bd9e3aff9e1b69
C#
zykindmitry/charityCRM
/DevFactoryZ.CharityCRM.Persistence.EFCore/PermissionRepository.cs
2.921875
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; namespace DevFactoryZ.CharityCRM.Persistence.EFCore { internal class PermissionRepository : IPermissionRepository { private readonly DbSet<Permission> setOfPermissions; private readonly Act...
a86576b320b901f8127c2899b823ff755392fb5b
C#
shendongnian/download4
/first_version_download2/330485-27724793-80733026-2.cs
2.96875
3
StorageFolder pictureFolder = KnownFolders.PicturesLibrary; //or another folder IReadOnlyList<IStorageItem> nameList = await pictureFolder.GetItemsAsync(); foreach (var item in nameList) { if (item is StorageFile) { if (item.Name.Substring(item.Nam...
db1ff5404b5282629f8bf9ca6466cc11d43644c9
C#
xiaogang002020/LearningCSharp
/1.CSharpLanguage/1.3.Inheritance/1.3.2.Polymorphism/LiskovSubstitution/Ui/UserUi.cs
3
3
using static System.Console; namespace SmartLin.LearningCSharp.Inheritance { /// <summary> /// 用户界面; /// </summary> public static class UserUi { /// <summary> /// 显示用户; /// </summary> /// <param name="user">用户</param> public static void Display(User user) ...
39b21f1df00be3ce8636106daea514732e00e8f1
C#
jnystrom/migrainetracker
/Gazallion.MigraineManager.Data.SqlServer/Models/Mapping/UserMap.cs
2.640625
3
using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; using Gazallion.MigraineManager.Data.Models; namespace Gazallion.MigraineManager.Data.SqlServer.Models.Mapping { public class UserMap : EntityTypeConfiguration<User> { public UserMap() { ...
4f299164f9bb45bc0d850be990fb33306b5356d5
C#
Siko91/TelerikAcademy-FULL
/TeamProjects/misterious-game/NewGameDesign/GameClasses/SimpleField.cs
3.546875
4
using BattleField7Namespace.NewGameDesign.Interfaces; using System; using System.Linq; using BattleField7Namespace.NewGameDesign.Enumerations; namespace BattleField7Namespace.NewGameDesign.GameClasses { /// <summary> /// A single field of the Battle Field 7 game. /// Can be either an empty field or a fiel...
a6beef7ed8bef70572177d1385ee9210dd505924
C#
joshm1243/ConsoleEUVotingCalculator
/Console Voting Calculator/Console Voting Calculator/Program.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; //I've added this comment at the top namespace Console_Voting_Calculator { class Rule { private string name; private float minPercent; public string ...
fb17e91583cf6fed0deceddcefd72f18db0bcfb5
C#
VolodymyrBaydalka/MonoGameUtils
/MonoGameUtils/CountDownTimer.cs
3.234375
3
using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GameUtils { public class CountDownTimer { private float _time; private bool _repeatable; private float _interval; public...
1bb4e430667ed58f2dae45f00bd92f1a97a6f043
C#
gauravsahni25/algomanual
/AlgoManual/Chapter3/BinarySearchTree.cs
3.546875
4
using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace AlgoManual.Chapter3 { public class BinarySearchTree { public BinarySearchTree(int rootValue) { Item = rootValue; } public BinarySearchTree(int item, BinarySearchTr...
b95b0d88cf37dc74978a8727d2cd63843e35abd5
C#
TimBurris/NinjaMvvm
/src/NinjaMvvm/NinjaMvvm/RelayCommandBase.cs
3.1875
3
using System; using System.Collections.Generic; using System.Text; namespace NinjaMvvm { /// <summary> /// A command whose sole purpose is to /// relay its functionality to other /// objects by invoking delegates. The /// default return value for the CanExecute /// method is 'true'. /// <...
65a8a4ddd9555b320acb3a4ad18addd03dd60dcb
C#
CrystalGrape/program-n
/src/program-n/Assignment.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace program_n { /// <summary> /// 变量赋值编译过程 /// </summary> public class Assignment { private LocalVariable LifeCycle; public Assignment(LocalVariable LifeCycle) ...
c2d9d7e18ec11486be35187ffed6d47b505256db
C#
hope78bg/csharp-homeworks
/Homework5/GravitationOnTheMoon/GravitationOnTheMoon.cs
2.78125
3
using System; class GravitationOnTheMoon { public static void Main() { Console.Write("a="); double a = double.Parse(Console.ReadLine()); double b = a * 0.17; Console.WriteLine("weight ot the Moon = {0:F3}",b); } }
aafc898bccb6137ab364b21b4eb51c7b9e6af7d7
C#
eddiecityu/T-Academy-1
/Homeworks/High-Quality-Code 2015/06.HighQualityMethods/CSharpExam2/OldSolutions/BitShopPathFinder.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; class OLDMathProblem { static void MoveRightUP(long[,] bitshop, ref int brow, ref int bcol, bool[,] passed, ref int times, ref long sum) { for (int i = 0; i < times; i++) { if (passed[brow, bc...
f118ed48d66d3a7f78486bb93de26668edc577fd
C#
ChrismoNL/Chrismo-Sitemap-Generator
/src/Chrismo.Sitemap/Enums/ChangeFrequency.cs
2.90625
3
using System; using System.Collections.Generic; using System.Text; using System.Xml.Serialization; namespace Chrismo.Sitemap.Enums { /// <summary> /// The possible values for frequency an url changes. /// </summary> [Serializable] public enum ChangeFrequency { /// <summary> ///...
19dcaa44899af92b3c073ca43f39b843637da592
C#
monabf/GrandRobot_P15
/GrandRobot_P15/CCapteurCouleur.cs
2.671875
3
using System; using Microsoft.SPOT; using GT = Gadgeteer; using GTM = Gadgeteer.Modules; using Gadgeteer.Modules.GHIElectronics; namespace GadgeteerApp4 { class CCapteurCouleur { ColorSense myColorSense; static int White = 2, Yellow = 1, Blue = 0; int c1, c2, c3, c4; int ourColo...
10777e25769aeac94a5f2ea65ae8d3d0ffdae81d
C#
YuSunjo/bit_education_WPF
/Sample/MainWindow.xaml.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
cc678d830029bd6089a2a5214a96b7afe00caceb
C#
MariaIvanovaTheBestProgrammer/lab1
/lab1/lab1/TaxiDriver.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace models { public class TaxiDriver : Person { public string Drive() { return "i'm driving"; } public override string ToString() { ...
798d661af4c3a53ad0e8ec6eb192a9bfc00387e3
C#
l3kov9/CSharpMVCFrameworks
/ShoppingCart/ShoppingCart.Data/Product.cs
2.515625
3
namespace ShoppingCart.Data { using System.ComponentModel.DataAnnotations; public class Product { public int Id { get; set; } [Required] [MinLength(2)] [MaxLength(50)] public string Name { get; set; } [Range(0, double.MaxValue)] public decimal Pric...
c298f5571349fda5484a6f1688c0aaabdca2dfd3
C#
dimachado/NDomain
/source/NDomain/CQRS/IEvent.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NDomain.CQRS { /// <summary> /// Represents an event message /// </summary> public interface IEvent { /// <summary> /// Date in UTC when the event occurred ...
75e543e1c80a94556e2d36e917d8d8e6320dd89c
C#
hiteshpant/DynamicFactoryUsingIOC
/Runner/Bootstrap.cs
2.609375
3
using System; using System.ComponentModel.Composition.Hosting; using System.ComponentModel.Composition; using System.Collections.Generic; using Contract; namespace Runner { public class Bootstrap { private readonly CompositionContainer _container; [ImportMany] public IEnumerable<ISumO...
2bf7a8ee5d59d1bccfa6a54ea588b2172fce0e3c
C#
IsmaelHeredia/csharp-crud-webforms-sqlserver
/Sistema/Data/UsuarioDatos.cs
2.578125
3
// Written By Ismael Heredia in the year 2017 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.Sql; using System.Data; using System.Data.SqlClient; using System.Configuration; using Sistema.Models; namespace Sistema { public cla...
56f8f2437067deb90c9782b2656a5873f81cf0fa
C#
vallauri-ict/info-playground-MarengoSimone
/24-EreditarietàMondoAnimale/24-EreditarietàMondoAnimale/PesceDiMare.cs
2.53125
3
using System; using System.Collections.Generic; using System.Text; namespace _04_09_MondoAnimale { abstract class PesceDiMare : AnimaleMarino { public PesceDiMare(string s) : base(s) { //super(s); } public override string vive() { return "in mar...
b9ad81fb9c527ef4cabd90003a1d2293face38fd
C#
ronmelcuba10/CodeEval
/easy/Unique-Elements/Unique Elements.cs
3.59375
4
using System.IO; using System.Collections.Generic; class Program { static void Main(string[] args) { using (StreamReader reader = File.OpenText(args[0])) while (!reader.EndOfStream) { string line = reader.ReadLine(); if (null == line) continue; ...
a5712c842470e96e0471c3a5bb25ce0631df2739
C#
jasonc1221/Jump
/Assets/Scripts/Ball.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Ball : MonoBehaviour { float speed = 12.0f; //speed at which the ball is moving public float bounce; //how much ball bounces once it hits platform float maxpoints=0; float point; //private ScoreKeepers ...
531e4ad2d76db454140b4bb7893c2d413aeb05cc
C#
Sergio0694/ComputeSharp
/samples/ComputeSharp.Benchmark/Imaging/ImagingBenchmark.cs
2.515625
3
using System; using System.IO; using System.Reflection; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Engines; using ComputeSharp.BokehBlur.Processors; using SixLabors.ImageSharp; using SixLabors.ImageSharp.Processing; using SixLabors.ImageSharp.Processing.Processors.Convolution...
ff603d45c250d58476e6c695e563b1ab26672902
C#
oxu16/corepractice
/corepractice/Utilities/ProcessPassword.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace corepractice.Utilities { public class ProcessPassword { public string GetSaltedPasswordHashing(string password, int size) { ...
1d040fc56d11e242eb996c3dbb4404cab6321ab5
C#
anhdungitus/kinhthiendongdia
/LTHD.Web/Infrastructure/Services/OrderLineRepository.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LTHD.Infrastructure.Interfaces; using LTHD.DataModel; using LTHD.Domain.Models; using System.Data.Entity; namespace LTHD.Infrastructure.Services { public class OrderLineRepository : IOrderLine...
85c6241c5b1343a93cc21ade051b313e2af1f946
C#
NuKeeperDotNet/NuKeeper
/NuKeeper.Abstractions/NuGet/NuGetSources.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using McMaster.Extensions.CommandLineUtils; using NuGet.Configuration; using NuKeeper.Abstractions.Formats; namespace NuKeeper.Abstractions.NuGet { public class NuGetSources { public NuGetSources(params string[] sources) { ...
ab75b351db855c7eb273860b77898f521d336931
C#
yawboafo/programmable-services-sdk-dotnet
/src/Hubtel.ProgrammableServices.Sdk/Models/ProgrammableServicesResponseCartDetail.cs
2.875
3
using System; using System.Collections.Generic; namespace Hubtel.ProgrammableServices.Sdk.Models { /// <summary> /// Presents properties used to hold information about a cart that may be ready for checkout /// </summary> public class ProgrammableServicesResponseCartData { /// <summary> ...
ff32bb0af28a79607ff3cd88e41ca37d9cbb68f7
C#
stefanliydov/SoftUniLab
/ListExercises/IncreasingCrisis/Program.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IncreasingCrisis { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var list = new List<int>(); ...
b1e2c1e40bfd2f687c694f858f4ebadd377f294e
C#
BlenMiner/dotnow-interpreter
/Assets/dotnow/Scripts/Runtime/ByRefVariable.cs
2.640625
3
 namespace dotnow.Runtime { public struct ByRefVariable : IByRef { // Private private StackData[] stack; private int varOffset; // Constructor public ByRefVariable(StackData[] stack, int varOffset) { this.stack = stack; this.varOffset = v...
d81583cc1b99f8ccc8e984a577ab79c9baa40228
C#
rkfkrhdu12/Portfolio
/클라/Client/Assets/ChatView.cs
2.671875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ChatView : MonoBehaviour { [SerializeField] RectTransform chatView_; [SerializeField] Text text_; Queue<string> chat_ = new Queue<string>(); public void Addchat(string chat) { ...
14bdb8cd9bece8aa75a01a58613eb0fa4801f74b
C#
uuappli/M100ReadCard
/M100ReadCard/M100ReadCard.cs
2.671875
3
using System; using System.Text; namespace M100ReadCard { /// <summary> /// M100读卡器 /// 作者:李新华 /// DATE:2013.1.14 /// </summary> class M100ReadCard { /// <summary> /// 读卡器初始化 /// </summary> /// <param name="add">机器地址 0——15</param> /// <returns>返回串口句柄...
0e862c416776f54ef4cdd23ee6478794d2d9df2d
C#
Programazing/UserSettingsManager
/UserSettingsManager/UserSettingsManager/SettingsManager.cs
2.890625
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.Json; using System.Linq; namespace UserSettingsManager { public class SettingsManager { private readonly string JsonPath; public ICollection<Settings> Settings; public SettingsManager...
090d9caed74d232ff3bc28b1a088173b70b012a5
C#
pxavolkov/QuestionOfTheDay
/SoApi/Config.cs
2.921875
3
using System.Collections.Generic; using System.Configuration; using System.Linq; namespace SoApi { public class Config { private const string CategoryKeyName = "Category"; public Config() { SelectedCategory = ConfigurationManager.AppSettings[CategoryKeyName]; i...
b0abc7e3bf861af0205e117a56b825afeb2b07fd
C#
nathanortbals/SudokuSolver
/SudokuSolver/SudokuSolver/Service/Tile.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; namespace SudokuSolver.ServiceLayer { public class Tile { public Position Position; public List<int> Domain; public Tile() { } public Tile(Position position) { ...
c25e40ef23ec0bcbec8cce24fc57d756bf47a871
C#
ghostsquad/CareerCup
/CareerCup/Trees/Wes/BinaryTreeBuilder.cs
3.015625
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="WesBinaryTreeBuilder.cs" company="https://github.com/ghostsquad"> // 2013 Weston McNamee, Adrian Padilla // </copyright> // <summary> // The wes binary tree builder. // ...
89ce17f13862945050cf8a38ea11456b466cb00e
C#
craigjlovell/ClassExercises
/AIE-GameStates_01/Program.cs
2.984375
3
using System; using Raylib_cs; using System.IO; using System.Collections.Generic; namespace AIE_GameStates_01 { class Program { int windowW = 800; int windowH = 450; string windowT = "GameStateManagement"; GameState currentGameState; public string scoresFileName = "....
dbf78696a8343695e96f08cd5291207a7f4bc6c2
C#
RapGeneral/MyIMDB
/IMDB/IMDB.Data/Views/MovieView.cs
3
3
using System; using System.Collections.Generic; using System.Text; namespace IMDB.Data.Views { public class MovieView { public int ID { get; set; } public string Name { get; set; } public double Score { get; set; } public string Director { get; set; } public ICollection<string> Genres { get; set; } ...
1d84ec83b82b9220aa99a5783d12c185ba08c344
C#
Kujikuu/Wazery_Project
/Game/MsgServer/MsgMagicColdTime.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ProtoBuf; namespace LightConquer_Project.Game.MsgServer { public static class MsgMagicColdTime { [ProtoContract] public class MagicColdTime { [ProtoMember(1, IsRequired = true)] ...
36c114ceab9d858ef9d19172a0c67e00e98ea145
C#
nikhil199710/HashTablesHash-FunctionsBST-Day17
/Program.cs
3.34375
3
using System; namespace HashTable { class Program { static void Main(string[] args) { Console.WriteLine("Hash table demo"); MyMapNode<string, string> hash = new MyMapNode<string, string>(5); hash.Add("0", "To"); hash.Add("1", "be"); ...
de73eebab0a507ed23eff6093f19ba8f1528d57f
C#
reavalley/testtools
/Rvs.TestTools/BuilderComponent.cs
2.8125
3
using System; using System.Linq.Expressions; using System.Reflection; namespace Rvs.TestTools { public class BuilderComponent<TOutput> : IBuilder<TOutput> where TOutput : class { private TOutput _instance; public BuilderComponent<TOutput> With<T>(Expression<Func<TOutput, T>> memberLam...
a14f201adae02832c374697934fa5d6e51ed1a01
C#
samuilll/Softuni_ProgrammingFundamentals
/ProgrammingFundamentalsExtended/04_AlgorithmsExersises/AlgorithmsMoreExersises/IncreasingCrisis05/IncreasingCrisis05.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IncreasingCrisis05 { class IncreasingCrisis05 { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); var outputList = new L...
f506986887d24ebc43211b91698accafe334bde3
C#
ruslan-golinskiy/Laba5
/Rus OOP 5.1/Program.cs
2.78125
3
using System; using System.IO; namespace Rus_OOP_5._1 { public class Doctor { public string name; public string fah; public static int Number() { int n = 0; for(int i = 0; i < Program.visit.Length; i++) { if (Program....
4bcdf6f5414d53f48ac438cb89a8f3baf06a9399
C#
butanfire/Object-Oriented-Programming
/Homework/01.Defining-Classes/Problem 3.PC Catalog/Models/Computer.cs
3.671875
4
using System; using System.Collections.Generic; using System.Text; namespace ComputerCatalog.Models { public class Computer : IComparable { private string ComputerName; private decimal ComputerPrice; public List<Components> Components; public Computer(string name) { ...
abd75116009fde9a310996787efcc84400529b4a
C#
WildGenie/vrs
/open3mod/LogStore.cs
2.59375
3
/////////////////////////////////////////////////////////////////////////////////// // Open 3D Model Viewer (open3mod) (v2.0) // [LogStore.cs] // (c) 2012-2015, Open3Mod Contributors // // Licensed under the terms and conditions of the 3-clause BSD license. See // the LICENSE file in the root folder of the repository f...
b5c33115533d530324be7dff2eaa145274155720
C#
PNS-PS7and8/pns-innov1920-pns-innov1920-n
/Hammercraft/Assets/Scripts/Board/BoardCardDraw.cs
2.515625
3
using System.Collections; using UnityEngine; using UnityEngine.UI; //Classe s'occupant de la pioche du deck par le joueur lors du jeu public class BoardCardDraw : MonoBehaviour { public enum Draw { Unit, Spell } [SerializeField] private BoardPlayer player = null; [SerializeField] private D...