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
5923255c2b4badce2163530088eab7b4043a46c1
C#
milabadoo/ClientZ3950
/ZClient.Abstract/GenericFactory.cs
2.6875
3
using System; using System.Configuration; namespace ZClient.Abstract { internal class GenericFactory { public static object Create(string typeName, object[] args) { if (string.IsNullOrEmpty(typeName)){ string message = "\n\nZoom.Net was unable to...
f6cf4e0211869e8088bfe814133985d9f85c904e
C#
Meowse/TheBatCave
/Jess.Askew/Lab2a/Lab2a/Form1.cs
2.78125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Lab2a { public partial class Form1 : Form { public Form1() { ...
f6d8d482aeb00928c6f4244ea43a5e3e26f16349
C#
JohannSchulenburg/SoftwareDesignTextAdventure
/scripts/Statistic.cs
3.203125
3
using System.Collections.Generic; namespace SoftwareDesignTextAdventure { public class Statistic { public List<int> timesMovedList; public Statistic(){ this.timesMovedList = new List<int>(); } public double getAverageTimesMoved(){ double sum = 0;...
4f7995d4c88030767f62134eab3719ce0aa0bca6
C#
Captain-Marvel/CSharp-Part2-Teamwork
/SpaceGame/Game/IPrintable.cs
2.90625
3
using System; namespace SpaceGame { // All printable objects should implement this interface public interface IPrintable { // X coordinate int X { get; set; } // Y coordinate int Y { get; set; } // Color of the object ConsoleC...
778037785126ce225c5141232ac70345d1b33c9c
C#
hikarutaknouch/AOJ
/ITP1/05/ITP1_5_C.cs
3.484375
3
using System; namespace ITP1_5_C { class Program { static void Main() { while (true) { string[] x = Console.ReadLine().Split(' '); int h = int.Parse(x[0]); int w = int.Parse(x[1]); if (h == 0 && w == 0) bre...
bde9ded790064a2bc88c94680c8d12be4d573a13
C#
sunjiahaoz/RhythmShip
/Assets/STK/Script/Persist/SerializeFileTool.cs
2.828125
3
using UnityEngine; using System; using System.IO; using System.Collections; using System.Xml.Serialization; using System.Runtime.Serialization.Formatters.Binary; namespace sunjiahaoz.Persist { public interface IJSonSerializeData { // 将自己的数据转成JSON 数据 string ToJson(); // 利用Json数据装配自己 ...
bdb7e9a275218fc487d94d8b86621b149fca3ed6
C#
FacelessLaw/file-archiver
/Logic/ArchiveProvider.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using zlib; using System.Security.Cryptography; using System.Reflection; namespace PiedPiper { public enum OperationErrorAction { Abort, Ignore, IgnoreAll, Replay } /// <s...
938b912ac7a14610aa3820c60309922013572fe8
C#
CaioLBorges/ExerciciosURI
/URI REPETIÇÃO/VET05/Program.cs
3.34375
3
using System; using System.Globalization; namespace VET05 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int[] numeros = new int[N]; double media = 0.0, contador = 0.0; string[] vet = Console.ReadLine()...
6ef198ffee14a6c13a020f20a335241ae6316df9
C#
alexander474/GameSite-backend
/Controllers/CharacterController.cs
2.59375
3
using System; using ExamBackend.Services; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using ExamBackend.Models.Character; using ExamBackend.Models.Game; namespace ExamBackend.Controllers { [ApiController] [Route("[controller]")] pub...
202c371d27b01d1229c76679441d15ef952eb216
C#
efraibo/DesignPatternsCsharp
/BuilderPattern/Program.cs
3.125
3
using BuildPattern.BuilderPattern; using System; namespace BuildPattern { class Program { static void Main(string[] args) { StudentBuilder sb = new StudentBuilder(); Student oneParameter = sb.WithName("Marie").Build(); Student twoParameter = sb.WithName("Jo...
ff6169318de6757570c0b7d36c3556f765621095
C#
benzei/dataexplorer
/Application.Tests/Legends/Sizes/Factories/DateTimeSizeLegendFactoryTests.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DataExplorer.Application.Legends.Sizes.Factories; using DataExplorer.Domain.Layouts; using DataExplorer.Domain.Maps.SizeMaps; using DataExplorer.Domain.Tests.Maps.SizeMaps; using Moq; using NUnit.F...
0084e9e763c4590cd58674920315d32fef4c8011
C#
nickgenov/DatabaseApplications
/06.Processing-JSON-in-.NET/Practice/01.JSON-Serializer/JSONSerializer.cs
3.484375
3
using System; using System.Collections.Generic; using System.Web.Script.Serialization; namespace _01.JSON_Serializer { class JsonSerializer { static void Main() { var digits = new Dictionary<string, int>() { {"one", 1}, {"two", 2}, ...
531556da72d5d15b9e13192f7885ca8792fb562d
C#
jplindgren/CommandQuery
/Application/Command/Handler/Decorator/ValidatedCommandHandler.cs
2.640625
3
using Application.Validators; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Application.Command.Handler.Decorator { public class ValidatedCommandHandler<TCommand, TResult> : ICommandHandler<TCommand, TResult> where TCommand : ICommand...
3228f8649c552ae39a6eb1aa38481f48c911e868
C#
sandypoulsen/Solution
/DemoApp6/Program.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DemoApp6 { class Program { static void Main(string[] args) { String s = @"c:\temp\test.txt"; if(System.IO.File.Exists(s)) { ...
cd7f24b4805b056d749c1f901e2f6eb50f088e17
C#
creasy-pita/TestBatch
/ConsoleApp1/Program.cs
3.5
4
using System; using System.Threading; namespace ConsoleApp1 { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); try { TestThrowSubThreadExceptionToMainThread(); Console.WriteLine("dddddddd:")...
cf5efce69a9ac0f89c25d24f8d40916cb10e8e1a
C#
jgcarmona-com/mangopay-net-core-sdk
/MangoPay.SDK/Entities/ShippingAddress.cs
2.5625
3
namespace MangoPay.SDK.Entities { /// <summary> /// Shipping Address /// </summary> public class ShippingAddress { public ShippingAddress(string recipientName, Address address) { RecipientName = recipientName; Address = address; } /// <summary>Recipient name for PayPal shipping addres...
7c2757a5811326ffffa2a0197a837d7ed927b637
C#
LEdoian/mpcCore
/src/MpcCore/Commands/Database/GetFingerprint.cs
2.75
3
using MpcCore.Contracts; using MpcCore.Response; namespace MpcCore.Commands.Database { /// <summary> /// Calculate the items audio fingerprint. /// This command is only available if MPD was built with libchromaprint (-Dchromaprint=enabled). /// Will return an empty string if no fingerprint is available. /// <see...
1c5a6a903bba2281033f9afb708630df67d07597
C#
lopez824/DungeonQuest
/Clock.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class Clock : MonoBehaviour { public TextMeshProUGUI clock; private float timer; // Starts a timer. private void Update() { if (GameManager.start == true) { ...
39f77f180f68c9fd58fc967ba68b87df33f3bdf6
C#
havit/HavitFramework
/Havit.Business/Query/WildCardsLikeExpressionMode.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Havit.Business.Query { /// <summary> /// Režim WildCardsLikeExpression. /// </summary> public enum WildCardsLikeExpressionMode { /// <summary> /// Vyhledává text, který začíná zadaným výrazem. Toto je výchozí chov...
5bb39aea0dd71bc165062b493a02bb3ac40989b0
C#
gmruben/AsteroidsClone
/Assets/Scripts/Game/MultiPlayerModeGameController.cs
2.5625
3
using UnityEngine; using System.Linq; using System.Collections; using System.Collections.Generic; /// <summary> /// This class has the logic for the multi player game mode. It updates the scores and lives of the different players and /// dispatches game flow related events. /// </summary> public class MultiPlayerModeG...
5bd4d253fb53f1ebf7e3a9c4ee9623b81c056af1
C#
NRules/NRules
/src/NRules/NRules.RuleModel/ForAllElement.cs
2.75
3
using System.Collections.Generic; namespace NRules.RuleModel; /// <summary> /// Universal quantifier. /// </summary> public class ForAllElement : RuleElement { private readonly List<PatternElement> _patterns; internal ForAllElement(PatternElement source, IEnumerable<PatternElement> patterns) { B...
b4359145c4e5e0c4c238ec43e26d1350c95a3154
C#
canhnguyenfur/WPF2D
/Canvas_2D_02_CustomizeCoordinate/MainWindow.xaml.cs
2.65625
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;...
680c15e23b76f54528a4ef281304ae2a4ff3acb6
C#
dftty/LeetCode
/Assets/Scripts/LeetCode/LeetCode_52.cs
2.828125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class LeetCode_52 : MonoBehaviour { // Use this for initialization void Start () { Debug.Log(TotalNQueens(4)); } // Update is called once per frame void Update () { } public int TotalNQueens(int n) { int resu...
39fd09e31d2376ddbab3020291c542b9a392b0dd
C#
again4you/TizenFX
/test/NUITizenGallery/Examples/ListViewFooterTest1/ListViewFooterTest1.xaml.cs
2.546875
3
/* * Copyright(c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
ba7c42123ad25b76a05e0e4a98b2e797b3a33d1d
C#
hjohnsick/EventDemo
/EventDemo/Program.cs
3.234375
3
using System; using System.Collections.Generic; namespace EventDemo { class Program { static void Main(string[] args) { CollegeClassModel history = new CollegeClassModel("History 101", 3); CollegeClassModel math = new CollegeClassModel("Calculus 201", 2); h...
5388d9947f42afe57d357a00cbe98f99dca4efad
C#
mkurdziel/BitHome-Hub-CSharp-V1
/SyNet Controller/GuiControls/DateRepeat/DateRepeatComboBox.cs
2.890625
3
using System; using System.Windows; using System.Windows.Controls; using SyNet.Events.Triggers; namespace SyNet.GuiControls.DateRepeat { /// <summary> /// Specialized combobox showing psosible date repeat values /// </summary> public class DateRepeatComboBox : ComboBox { private DateTimeTr...
e67cb7a908583432813dc5542aae47f0ad5bc741
C#
akarwa007/PokerServerClient
/client/PokerClient/MessageFactory.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Poker.Shared; namespace PokerClient { public class MessageFactory { PokerUserC _user; Dictionary<MessageType, Action<Message>> _dict = new Dictionary<MessageType, Action<Me...
1494de45bf1c5ec28246c6184fecf424d05c0584
C#
tufail-bin-nazir/icrm
/icrm/Models/CultureAttribute.cs
2.765625
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; using System.Web; using System.Web.Mvc; namespace icrm.Models { public class CultureAttribute : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext...
6257d63e9c8395f1c26a33e374d0f41901b4caab
C#
Basje/advent-of-code-2019
/src/Day-04/Password.cs
3.71875
4
using System.Collections.Generic; using System.Linq; namespace AdventOfCode_2019.Day_04 { internal class Password { private IList<int> Value { get; } internal Password(int password) { Value = ToDigits(password); } internal bool HasDistinctDigits() ...
e91e0499f291125862d000eebd8dd8dc39ada13d
C#
NoahsNMC/Star-Wars-Database
/Winforms_Dataviewer/Winforms_Dataviewer/DAL/DataService.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; using System.Net; using System.Net.Http; using System.IO; using Newtonsoft.Json; using System.Threading; namespace Winforms_Dataviewer { public static class GetJsonFiles { ...
0170a319eaa07524343190fc2e107d0e589d6330
C#
bertyhell/RegexTransformer
/RegexTransformer/RegExItem.cs
2.703125
3
using System.ComponentModel; using RegexTransformer.Annotations; namespace RegexTransformer { public class RegExItem : INotifyPropertyChanged { private string _search; private string _replace; private bool _capitalSensitive; private bool _useRegex; public string Search { get { return _search; } s...
edd909a188f609b6ee23a5fc2f385732e2800b5b
C#
Hafsa13469/21-Dec-2014
/AccountOperationApp/AccountOperationApp/AccountOperationUI.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.Threading.Tasks; using System.Windows.Forms; namespace AccountOperationApp { public partial class AccountOperationUI : Form { Account...
4740b48fb5a9bdb669bd9e1c38d134582299f215
C#
Captain456/RonSwansonEmailGenerator
/RonSwansonEmailTest/NotificationSender/NotificationSender.cs
2.59375
3
// <summary> // This file defines the NotificationSender class. // </summary> // <copyright file="NotificationSender.cs"> // Copyright (c) Christopher Gibbs. All rights reserved. // </copyright> // <author>ChristopherGibbs</author> // <date>06/01/2017</date> namespace RonSwansonEmailTest.NotificationSender { usin...
beb803bb28c7cd8423adfd4a48fee16526e901cf
C#
GabrielForteville/MakerSquare
/TestingCompiler/Program.cs
2.640625
3
using MakerSquare.Compiler; using System; using System.Reflection; using System.Diagnostics; namespace TestingCompiler { class Program { public static class Tests { public static void SimpleTest() { Compiler compiler = new Compiler(); tr...
061a1b91c80a5748c4320c260348a0f4bde874a0
C#
tngraf/Tethys.Logging
/Tethys.Logging.Win/TraceLogger.cs
2.53125
3
// ------------------------------------------------------------------------------- // <copyright file="TraceLogger.cs" company="Tethys"> // Copyright (C) 2009-2023 Thomas Graf // All Rights Reserved. // </copyright> // // Licensed under the Apache License, Version 2.0. // Unless required by applicable law or agree...
792867c85bafc9dff87dd891831877a14a3d72ee
C#
AustinMclEctro/TeamLunchAPI
/TeamLunch UnitTests/HomeControllerTest.cs
3.09375
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using TeamLunchAPI.Controllers; namespace TeamLunch_UnitTests { [TestClass] public class HomeControllerTest { /// <summary> /// Tests if there is a meal for every person.<...
57baed7de1554f88e6466583a74edea31c316b29
C#
IntelOrca/issue-predictor
/implementation/IntelOrca.GithubML.Processing/Example.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; namespace IntelOrca.GithubML.Processing { internal class Example { public int[] Features { get; set; } public bool[] Labels { get; set; } public override string ToString() { return String.Join(",", Labels.Select(x => x ? 1 : 0)); } ...
20ef95f1a4aa51eb90c424b7d6b238ef225e2ec0
C#
Crazyers/WebApi
/src/Infrastructure.Service/DbFirst/DbFirstBase.cs
2.59375
3
/******************************************************************************** ** Company: ** auth: lingyc ** date: 2018/11/28 11:49:19 ** desc: DbFirstBase类 ** Ver.: V1.0.0 *********************************************************************************/ using System.Collections.Generic; using Inf...
fa1ad913ff012ed1680c2defdc6d5ccd3c8173e1
C#
Cesar18102/WorkAutomator
/WorkAutomatorServer/WorkAutomatorLogic/Exceptions/NotFoundException.cs
2.546875
3
namespace WorkAutomatorLogic.Exceptions { public class NotFoundException : LogicExceptionBase { public string TypeName { get; private set; } public override string Message => $"{TypeName} not found"; public NotFoundException(string typeName) { TypeName = typeName; ...
513ee54c5d14f21bee9a30db0ae53036dce2980a
C#
adityakumarrajan/Aspect-Oriented-Programming
/AOP.POC/AOP.UnityInterceptors/AOP.UnityInterceptors/Interceptors/LoggingInterceptor.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Practices.Unity.InterceptionExtension; namespace AOP.UnityInterceptors.Interceptors { /// <summary> /// This is my logging Interceptor. /// </summary> public class Loggin...
a86687584424218d98296e1c4c3bc573abe33f68
C#
antoinecronier/aspnetTP
/Modules/Module6/DemoDbContext/DemoDbContext/DemoDbContext/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DemoDbContext { class Program { static void Main(string[] args) { var context = new Context(); //var adresse1 = new Adresse { Nom = "Rue des Li...
e09de13f341a8c2ea75b63bea66f60a531a29ebc
C#
rrajaguk/QOEParser
/QOEParserTest/ValueCompositionTest.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using QOEParser; using QOEParser.Element; using QOEParser.Element.Decorator; namespace QOEParserTest { /// <summary> /// Test the composer capability...
23b2a7e97f8f4967cccaf38f6246ac9666f2ea02
C#
cbnsndwch/NetSyphon
/Relational/NetSyphon.Relational.Shared/ConfigurationBasedConnectionStringProvider.cs
2.90625
3
using System.Configuration; namespace NetSyphon.Relational.Shared { /// <summary> /// Default implementation of IConnectionStringProvider which uses config files for its source. /// </summary> /// <seealso cref="IConnectionStringProvider" /> public class ConfigurationBasedConnectionStringProvider :...
1ab5e89ae9b42d9b9a90008435bf8de63c3f71a5
C#
Kawser-nerd/CLCDSA
/Source Codes/AtCoder/arc058/A/1247946.cs
3.0625
3
using System; using System.Linq; namespace arc058_aarc058_a { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); string[] d = Console.ReadLine().Split(); bool find = false; ...
ef63a446b223402153a73d26f2651d6a0d1603e0
C#
pavlo-onyshchak/-KottansHomeworks
/KottansTasks/KottansTasks/Program.cs
3.140625
3
using System; namespace KottansTasks { public class CreditCard { private string card_id; public CreditCard(string val_of_card_id) { card_id = val_of_card_id; } public string GenerateNext(string card_number) { string name_of_vendor = GetV...
2974399242077e34a1d6835fdc64a776f4efaee2
C#
Raskal8/NiceHashBot-Forked
/src/NiceHashBot/FormNumberInput.cs
2.921875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace NiceHashBot { public partial class FormNumberInput : Form { public double Value; public FormNumberInput(string TitleTe...
c0b1cf2cfb7e12ae7cf8f7a9c6b999ba126bdaf4
C#
brunotonelli/mat-sup
/TP Superior/TP Superior/Views/MatrizForm.cs
2.59375
3
using CSML; 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 TP_Superior.Views; namespace TP_Superior { public partial class MatrizForm : Form ...
a3d5550ccca5c0dec80a0adac1a0f3a0019eb79e
C#
Snopel/MP-ICTPRG527
/C#/Topic 10/Books/Books/Textbook.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Books { class Textbook : Book { public int grade; public Textbook(String x, int y, int z) : base(x, y) { grade = z; } public int g...
70536249d53f27bf3ae0eb96adac0a7b00212e30
C#
squarlhan/SoftUni-1
/CSharp Advanced/Lab Regular Expressions/Problem6 ValidUsernames/ValidUsernames.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Problem6_ValidUsernames { class ValidUsernames { private static void Main(string[] args) { var pattern = @"^([\w-]{3,1...
907d1d2d942d831a524d5d0eeb0c143ff6b7d840
C#
AshenWaltz/CunningLords
/CunningLords/Behaviors/BehaviorOverride.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using HarmonyLib; using TaleWorlds.Core; using TaleWorlds.Engine; using TaleWorlds.InputSystem; using TaleWorlds.Library; using TaleWorlds.MountAndBlade; using CunningLords.Patches; namespace CunningLords.Behaviors { class BehaviorOverride { ...
cbc072cd3116b888bb4013f974a747e32bd739b0
C#
shoter/openSociatis
/EntityFramework/structs/Neighbour.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entities.structs { public class Neighbour { public Region Region { get; set; } public Passage Passage { get; set; } public Neighbour(Region region, Passage pas...
ea88ae9ddff196adedaa95224680e53b2a3c075c
C#
ShanePlater/CAB301Ass2
/Hughb/CAB301Ass2-master/CAB301Ass2/Program.cs
3.265625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; namespace CAB301Ass2 { class Program { static Random _random = new Random(); static int opCount; public static void Main(string[] args) { #region Test Data Creation ...
e7f8dcba9691af8e21dd1aeaeca1a0048296262e
C#
dbeinhauer/Tetris
/Tetris/PlayGround.cs
3.578125
4
using System; using System.Collections.Generic; using System.Text; namespace Tetris { /// <summary> /// The high-level class to encapsulate all necessary objects of the game. /// </summary> public class PlayGround { // Map reprezentation public Map map; // Actual Block var...
da1870c355626f5c9e37fb8627ec217ce9bde385
C#
NickPolyder/Playground
/Playground.Synchronization/Service.cs
2.875
3
using System; using System.Threading; using System.Threading.Tasks; namespace Playground.Synchronization { public class ServiceA: IServiceA { private readonly IThreadedContextAccessor _threadedContextAccessor; private readonly IServiceB _serviceB; public ServiceA(IThreadedContextAccessor threadedContextAcces...
499fef16a60e036ad9cb8628a29a48498f9c3f99
C#
SkObra/APM
/APM/Form_Authentication.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace APM { public partial class Form_Authentication : Form { //Declaring Form_Navig...
22e3035803d92d0e4bf719082c80afd987b5dd0b
C#
DanislavKamenov/SoftUni-Courses
/Programming-Fundamentals-CSharp/Exam Preparation IV/04. Cubic Messages/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace _04.Cubic_Messages { class Program { static void Main(string[] args) { Dictionary<string, StringBuilder> wordNKey = ne...
9742243b97e388bf4f5dc329a5b16291f3882bb0
C#
karpov-dev/lab4-GUI-
/lab4(GUI)/Models/Drivers/Driver.cs
2.71875
3
using System; using System.ComponentModel; using System.Runtime.CompilerServices; using lab4_GUI_.Models.Machines.Base; namespace lab4_GUI_.Models.Drivers { [Serializable] class Driver : INotifyPropertyChanged { private string _firstName; private string _lastName; private int _maxH...
9fb27eac7dec66389451e8a03934e976fb3cb566
C#
solari23/Aegis
/src/Aegis.Models/JsonConverters/JsonByteListBase64Converter.cs
2.875
3
using System.Text.Json; using System.Text.Json.Serialization; namespace Aegis.Models.JsonConverters; /// <summary> /// Helper that converts between a <see cref="List{byte}"/> and a base64 representation for JSON serialization. /// </summary> public class JsonByteListBase64Converter : JsonConverter<List<byte>> { ...
4eb897f457112e656b280835a7ca9d3efa1a2d4f
C#
sonicretro/mania-mod-loader
/ManiaModManager/UriQueue.cs
2.921875
3
using System; using System.Collections.Generic; using System.IO; using System.IO.Pipes; using System.Linq; namespace ManiaModManager { public class OnUriEnqueuedArgs { public string Uri { get; } public bool Handled; public OnUriEnqueuedArgs(string uri) { Uri = uri; } } public class UriQueue { pr...
3dd18e30813275e7391af76bae2fb143a94455ed
C#
saiyen/INFDTA
/opdracht1/Program.cs
3.046875
3
using opdracht1.Classes; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace opdracht1 { class Program { static void Main(string[] args) { Dictionary<int, List<UserPreferences>> dataSet; ...
a7ef4d45add3af29ac2fe50e158659799c0a5258
C#
NunoPereiraSousa/Gestao-de-Salas
/Projeto Final/RegisterForm.cs
2.875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Net.Mail; namespace Projeto_Final { public partial class RegisterForm : Form { ...
588aa3fa236eb8c5d22a81c7c7d62e07a3ddd330
C#
BenjiBoy926/Solymnus
/Assets/Scripts/Input/SupplyVirtualJoystickInput.cs
2.59375
3
using System.Collections.Generic; using UnityEngine; public class SupplyVirtualJoystickInput : MonoBehaviour, ISupplier<Vector2> { [SerializeField] [Tooltip("Name of the joystick root game object tag to obtain input from")] private string joystickTag; public Vector2 Supply() { try ...
3b1178d192bb51f00364766ee743c928116c86e6
C#
veggerby/Veggerby.Algorithm
/src/Veggerby.Algorithm/Calculus/Visitors/ReduceOperandVisitor.cs
3.0625
3
using System; using System.Linq; namespace Veggerby.Algorithm.Calculus.Visitors { public class ReduceOperandVisitor : IOperandVisitor<Operand> { private Operand Reduce(Operand operand) { var visitor = new ReduceOperandVisitor(); var result = operand.Accept(visitor); ...
f652d3fb164410c26712de3cac4506c77bc9df94
C#
matilote/provide-dotnet
/provide/ApiClient.cs
2.5625
3
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace provide { public class ApiClient { private static readonly H...
1cc180364040ece60b3d056900b74b96c8586af6
C#
Milan992/DAN_XXXIX_Milan_Mitic
/DAN_XXXIX_Milan_Mitic/AudioPlayer/Program.cs
3.234375
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading; namespace AudioPlayer { class Program { static Dictionary<int, string> songs = new Dictionary<int, string>(); static AutoResetEvent menuView = new AutoResetEven...
b8dd2a0342cf03710dc645352d34efe47976fbd3
C#
Sarnapa/MusicSinglesForm
/MusicStyleControler.cs
2.75
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MusicSingles { public delegate void ChangedStyleEventHandler(object sender, EventArgs e);...
40e96c5f37acd7e4d2fd7e684de7f614c7378cae
C#
git4deepak/stash
/JobSchedule/Program.cs
3.3125
3
using System.Collections.Generic; using System.Linq; int JobScheduling(int[] startTime, int[] endTime, int[] profit) { int items = startTime.Length; int [] dp = new int[items]; var maxStartTime = startTime.ToList().Aggregate(0, (a, x) => (x > a) ? x : a); var jobsStartAt = new Dictionary<int, L...
04f16bc01baf06dda40bac488bfd1fb4c2a71179
C#
Diogo-Ferreira/paperplane
/paperplane/New Unity Project/Assets/Scripts/path.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class path : MonoBehaviour { //Rail thing public GameObject Left; public GameObject Right; public GameObject Middle; public float accumulateur; //Tell if the player is alive public bool isAlive; // ...
f8f03be6ef10c5e03f41d109960d870e562f240f
C#
patchkit-net/patchkit-logging-dotnet
/src/PatchKit.Logging/MessageSource.cs
2.984375
3
using System; using System.Reflection; namespace PatchKit.Logging { /// <summary> /// Source of logged message. /// </summary> public struct MessageSource { /// <summary> /// Initializes a new instance of the <see cref="MessageSource"/> struct. /// </summary> ...
fc19c84f5dd7f1a8412c64b854c7ed2f66bc7308
C#
domco545/PetShop
/PetShop.Core/ApplicationService/Impl/PetService.cs
2.921875
3
using PetShop.Core.DomainService; using PetShop.Core.DomainService.Impl; using PetShop.Core.Entity; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace PetShop.Core.ApplicationService.Impl { public class PetService: IPetService { private IPetRepository _petRep...
5ba3811305dcbb14920ec051f84c3d27ece0a601
C#
geometrycoder/GeomNET
/src/GeometricPrimatives/Point3.cs
3.21875
3
using GeomNET.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GeomNET.GeometricPrimatives { public class Point3 : GeometryObject { #region members double x, y, z; #endregion #region constructors...
b676beb8d54b16646cad61086d326fbe2decce0d
C#
stauent/AzureSupportSecureConfiguration_BRGS
/ServiceBusFacade/RoutableMessageFactory.cs
2.828125
3
using System.Threading.Tasks; using Newtonsoft.Json; namespace ServiceBusFacade { public static class RoutableMessageFactory { public static IRoutableMessage CreateMessage<T>(T message, string sender, string recipient) where T : class { string data = JsonConvert.SerializeObject(mes...
305dab5fae6b8028d48498f724a124557276afb6
C#
timheuer/alexa-skills-dotnet
/Alexa.NET/Response/Converters/CardConverter.cs
2.953125
3
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; namespace Alexa.NET.Response.Converters { public class CardConverter : JsonConverter { public override bool CanWrite => false; public override bool CanRead => true; p...
a2fe783a7548720879ee2f0189ac6ab1f8f8034e
C#
tycobbb/clash
/Clash/Core/Log.cs
3.328125
3
using System; namespace Clash { public static class Log { // -- dependencies -- public static Action<string> LogFn; public static Action<string> LogErrFn; // -- properties -- public static LogLevel Level; // -- impls -- public static void Error(string message) { LogMessage(LogLeve...
90690182f63b0af8f02736d2f091bee3fe33ce9a
C#
saibotshamtul/WabbitStudio
/Source/Wabbitcode/Wabbitcode/Services/Parser/Label.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Revsoft.Wabbitcode.Services.Parser { class Label : ILabel { public Label(int offset, string labelName, bool isEquate, string description, ParserInformation parent) { LabelName = labelName; Offset = offset; I...
a7a5ff95b140cfb08af21fa5892c78ff38894fc2
C#
adeborja/SistemasDeGestion
/ExamenEval1LuisZ_UI/ExamenEval1LuisZ_BL/Manage/mngPersonajes_BL.cs
2.578125
3
using ExamenEval1LuisZ_DAL.Manage; using ExamenEval1LuisZ_Entidades; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExamenEval1LuisZ_BL.Manage { public class mngPersonajes_BL { /// <summary> /// Devuelve un...
7ef1c90f00982bbb2f1efd0f06af9edb87404acf
C#
gurfinkel/leetCode
/problems/Champagne Tower/champagneTower.cs
3.328125
3
public class Solution { public double ChampagneTower(int poured, int query_row, int query_glass) { Double[,] store = new Double[101, 101]; store[0, 0] = poured; for (int row = 0; query_row >= row; ++row) { for (int col = 0; row >= col; ++col) { double q = (store...
17b63f911d1f9a602266bc692af90e43bdf91724
C#
hvnon/TourManagementApp
/DAL/RoleDAO.cs
2.609375
3
using System; using System.Linq; using System.Data.Entity; using System.Collections.Generic; using DAL.Entities; namespace DAL { public class RoleDAO { private TourContext db = new TourContext(); public Role GetByID(Role role) { return db.Roles.Include(s => s.Group).Where...
c4cefe8aec5474ec2355f941f9823cce50d77bfa
C#
damrem/ld48
/Assets/Damrem/Graphs/Dijkstra.cs
2.765625
3
using Algorithms.Graphs; using System; using System.Collections.Generic; using DataStructures.Graphs; namespace Damrem.Graphs { public class Dijkstra<TGraph, TVertex> where TGraph : IGraph<TVertex>, IWeightedGraph<TVertex> where TVertex : IComparable<TVertex> { readonly Dictionary<TVertex, Di...
9223e7c80cda7e3a33f1d9508df6945713597616
C#
yongliu-mdsol/mauth-client-dotnet
/src/Medidata.MAuth.AspNetCore/MAuthMiddleware.cs
2.5625
3
using System.Net; using System.Threading.Tasks; using Medidata.MAuth.Core; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; namespace Medidata.MAuth.AspNetCore { /// <summary> /// Enables the middleware for the aspnet core applications. ...
996257d57400ed7c4e2b2e0d278e000469301bc0
C#
dawidkomorowski/geisha
/src/Geisha.Engine/Audio/Systems/AudioSystem.cs
2.578125
3
using System.Collections.Generic; using Geisha.Engine.Audio.Backend; using Geisha.Engine.Audio.Components; using Geisha.Engine.Core.GameLoop; using Geisha.Engine.Core.SceneModel; namespace Geisha.Engine.Audio.Systems { internal sealed class AudioSystem : IAudioGameLoopStep, ISceneObserver { private re...
b310e87206381f365f808dcf3e578b63821389ea
C#
jashimrckr/GradeSystemApp
/GradeSystemApp/GradeDefinition.cs
2.84375
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Web; namespace GradeSystemApp { public class GradeDefinition { public int GD_id { get; set; } public int Min { get; set; } public int Max {...
74e250a2810ce262c64e3fcbb798ede1e06a78c4
C#
Jornason/SharpAima
/Src/SharpAima.Tests/Agents/TableDrivenVacuumAgentTests.cs
2.65625
3
namespace SharpAima.Tests.Agents { using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.VisualStudio.TestTools.UnitTesting; using SharpAima.Agents; [TestClass] public class TableDrivenVacuumAgentTests { [TestMetho...
82fe24cdc5cef29f58acb5ca93a02e2abe411dff
C#
kolesnik-pawel/euro2020
/GSheets/AddPlayers.cs
2.625
3
using System.Collections.Generic; using Google.Apis.Sheets.v4.Data; using GSheets.Enums; using GSheets.Models; using Newtonsoft.Json; using System.Linq; using System; using System.IO; using GSheets; namespace GSheets { public class AddPlayers { public ValueRange AddPlayer(string path) { ...
944445eb34cf501309449cf300a0b8cc83f55b24
C#
SvetoslavPetsev/Associative-Arrays---Exercise
/02. A Miner Task/Program.cs
3.40625
3
using System; using System.Linq; using System.Collections.Generic; namespace _02._A_Miner_Task { class Program { static void Main() { Dictionary<string, int> resources = new Dictionary<string, int>(); while (true) { string input = Console.Rea...
8de50a503e8bd25c130b2f59e3c4bb9ccd9c7bd2
C#
lukianol/I
/Test/Num_59_Test.cs
2.671875
3
using System; using NUnit.Framework; using Num._59; namespace Test { [TestFixture] public class Num_59_Test { [Test] [TestCase(new[] {0, 3, 4, 5, 2}, 5)] [TestCase(new[] {5, 4, 3, 2, 1}, 4)] [ExpectedException(typeof (ArgumentException))] public void Sort_Throws_An_...
a9a7103ba1549969d0dfe8e78031df918a127016
C#
fengliibo/design_pattern
/design_pattern/singletonInstance.cs
3.25
3
using System; namespace Design_Pattern { public class singletonInstance { private static singletonInstance instance = null; private static readonly object threadSafeLock = new object(); public static singletonInstance Instance { get { if (...
687bbef49e598cc73a7e6395b8b987e6157b5cdf
C#
LeonXJ/Catsland
/Assets/Scripts/Bullets/Party.cs
2.65625
3
using System.IO.Ports; using System.Linq; using UnityEngine; using UnityEngine.Assertions; namespace Catsland.Scripts.Bullets { public class Party : MonoBehaviour { public enum PartyTag { ALL = 1, PLAYER = 2, ENEMY = 3, } public PartyTag[] parties; public bool IsMebmerOf(PartyTa...
a2995a961e1880150354d12b7366e97791146167
C#
Siteimprove/CsQuery
/source/CsQuery.Tests/Implementation/RangeSortedDictionary.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; using NUnit.Framework; using Assert = NUnit.Framework.Assert; using CollectionAssert = NUnit.Framework.CollectionAssert; using Description = NUnit.Framework.Descrip...
d67927f05b673396f8bd7edca860397d8785310d
C#
Learn24/CollageMakerWinForm
/sourceCode/GUILibrary/KeyboardSupport/ShortcutKey.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Input; namespace Adsophic.PhotoEditor.GUILibrary.KeyboardSupport { /// <summary> /// Create a key for a shortcut combination /// </summary> public class ShortcutKey { private string _...
b3f6450473fb74178179ba15bb4be30e10d20705
C#
constructor-igor/TechSugar
/TestingLab/NUnitSamples/NUnitSamples/NUnitIssue1109.cs
2.515625
3
using System; using NUnit.Framework; namespace NUnit_v2_samples { [TestFixture] public class NUnitIssue1109 : BaseFixture1109 { [Test] public void SampleTestMethod([ValueSource("MyDataSource")] int value) { Console.WriteLine("Value: " + value); } } publi...
0ace10c7f1654142aa8df80b03e310359706890a
C#
132u/oldFrame
/.svn/pristine/bc/bc9deb6cbafd24251bf337bb0f8f3bb719d6058e.svn-base
2.953125
3
// ----------------------------------------------------------------------- // <copyright file="ElementsHelper.cs" company="Euromoney"> // TODO: Update copyright text. // </copyright> // ----------------------------------------------------------------------- namespace Core.Helpers { using OpenQA.Selenium; /// <summ...
53bbaa1129afcb3daf114fe8e028b4b1d0155709
C#
TheRut/duality
/Test/Core/Components/RigidBodyTest.cs
2.609375
3
using System; using System.Linq; using Duality.Components; using Duality.Components.Physics; using Duality.Resources; using NUnit.Framework; namespace Duality.Tests.Components { [TestFixture] public class RigidBodyTest { [Test] public void FallingBallOnPlatform() { Scene scene = new Scene(); Scene.Swit...
162c2fe629e7f6ed05db67cbd30fd21e3dc7d0c1
C#
daras86/MAG
/Mag.Tech/ThreeFive/ThreeFiveStringBuilder.cs
3.609375
4
using System.Text; namespace Mag.Tech.ThreeFive { public class ThreeFiveStringBuilder { public string Build(int n) { if (n < 1) { return "Invalid"; } var result = new StringBuilder(); for (int i = 1; i <= n; i++) ...
0f65184f41cc138536c765cbfd23ea4bed1da4b6
C#
hasan-suleymanli/p119
/OOP/Program.cs
3.046875
3
using System; namespace OOP { class Program { static void Main(string[] args) { Rectangular rectangular = new Rectangular(10,20,5,4); Square square = new Square(10); Console.WriteLine(rectangular.GetPerimeter()); } } }
97f7bd972508e4c67ecfb16e7a47fb546514e96b
C#
nhn/hands-on-labs.gamebase.guest-auth-on-unity
/project/UnityGuestLogin/Assets/Gamebase/Scripts/Internal/Adapter/AdapterFactory.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; namespace Toast.Gamebase { public class AdapterFactory { public static T CreateAdapter<T>(string adapterName) { IEnumerable<Type> types = AppDomain.CurrentDomain.GetAssemblies(). SelectMany(selector ...
1c2ae37627eecb5eeeb01ddc762eadcd9243ad28
C#
paulomalheiros/ProjetoAPI02
/ProjetoAPI02.Repository/Mappings/ClienteMap.cs
2.53125
3
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using ProjetoAPI02.Domain.Entities; using System; using System.Collections.Generic; using System.Text; namespace ProjetoAPI02.Repository.Mappings { public class ClienteMap : IEntityTypeConfiguration<Cliente> ...
e4084bcd64fc3e609bea6589841c28c7ae66ffb8
C#
awc71403/tilegame_partyproject
/Tile Turn-Based Party Project/Assets/Scripts/Enemy/BasicEnemyAI.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BasicEnemyAI : MonoBehaviour { private Character myCharacter; private GameObject player; private string FLOOR = "floor"; private string WALL = "wall"; private const float stepDuration = 0.1f; public...
973c1f1407234c12c87f62e4c059417ac990584a
C#
herara-ofnir3/ProjectEuler
/ProjectEuler/ProjectEuler.Run/Problems/Problem16.cs
3.5625
4
using ProjectEuler.Core; using System; using System.Linq; using System.Numerics; namespace ProjectEuler.Run.Problems { /// <summary> /// 各位の数字の和 /// /// 2^15 = 32768 であり, 各位の数字の和は 3 + 2 + 7 + 6 + 8 = 26 となる. /// 同様にして, 2^1000 の各位の数字の和を求めよ. /// </summary> public class Problem16 : Problem { public override s...
7bb5bc95cb30935bb00e9991a866c7f18bafab83
C#
lars-erik/Umbraco-Package-to-Nuget-converter
/PackageToNuget/NugetDefinitions/Metadata.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using System.Xml.Serialization; namespace PackageToNuget.NugetDefinitions { public class Metadata : IEquatable<Metadata> { [XmlElement("id")] public string Id {...