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
ab0890d79219f0f515164703152dcc0f477cf290
C#
camelot123456/QuanLiNhanSu_Winform_c-
/INDIVIDUAL_PROJECT_CS414SC_2020S/repository/PRRepository.cs
2.53125
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace INDIVIDUAL_PROJECT_CS414SC_2020S.repository { class PRRepository { AbstractDAO dao; public PRRepository() { dao = new AbstractD...
32cbbdee818e7ca2a5dc3a3c2fc7234e49c8cf23
C#
FedericoCampanozzi/OOP20-HotLineCesena-C-Sharp
/Corradino/Main/Controller/Entities/Player/Command/ICommand.cs
2.71875
3
using Main.Model.Entities.Actors.Player; namespace Main.Controller.Entities.Player.Command { /// <summary> /// Interface used for applying the Command pattern. /// </summary> public interface ICommand { /// <summary> /// Allows to invoke one or more <see cref="IPl...
29c6fb052278ec80f4b680fecaa41b0b62a491e6
C#
Armienn/NeaKitSharp
/NeaKit/Language/Sound.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NeaKit { /// <summary> /// A simple implementation of sound representation (compared to the Language/Sound one). /// Initiation is assumed to be pulmonic and airstream is assumed to be egressive. /// </summary> public...
4b13088b730c1a11778f4faf9363aa7369c4927b
C#
SneakyPeet/supermarketpricing
/Core/PricingModels/QuantityFreeForQuantityPricing.cs
3.328125
3
using System; namespace Core.PricingModels { internal class QuantityFreeForQuantityPricing : IPricingModel { private readonly int quantityToBuy; private readonly int quantityFree; public QuantityFreeForQuantityPricing(int quantityToBuy, int quantityFree) { this.quan...
1d2a3d647c52169c882eb9feca34e4dc895c51c7
C#
PPaszkowski21/PoFlightSystem
/SystemRezerwacjiBiletówFirmyLotniczej/Flight.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SystemRezerwacjiBiletówFirmyLotniczej { public class Flight : ObjectID { public Route Route { get; set; } public Airplane Airplane { get; set; } public DateTime...
de24575394930066d978832a1102f6ab930b7327
C#
AnaBrando/EstruturaDados
/Pilha/Pilha/Program.cs
3.203125
3
using Domain; using System; using System.Collections.Generic; namespace Pilha { class Program { static void Main(string[] args) { Stack<Aluno> minhaPilha = new Stack<Aluno>(); var opcao = 0; var id = 0; do { Console.Fo...
2ab11aac064203a7738be43036260f94e85b5f98
C#
Dwayne75/WurmAssistant3
/src/Apps/WurmAssistant/WurmAssistant3/Areas/Granger/Creature.cs
2.65625
3
using System; using System.Linq; using System.Text.RegularExpressions; using AldursLab.Essentials.Extensions.DotNet.Drawing; using AldursLab.WurmAssistant3.Areas.Granger.DataLayer; using JetBrains.Annotations; namespace AldursLab.WurmAssistant3.Areas.Granger { public class Creature { static readonly S...
cf944065151931b23d2d013f0bdc623c6c7ba4c6
C#
nimazein/LABA-12
/LABA 12/LABA 12 v2/Program.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LABA_12_v2 { class Program { static void Main(string[] args) { Console.OutputEncoding = Encoding.UTF8; Console.Write("Размер коллекции: "); ...
72f8903413cc201f56126c1cd832180b2a797b82
C#
ngc2392/CSharpLab
/Assignment3/Enumerations.cs
3.640625
4
using System; namespace Assignment3 { enum VolumeLevels { low = 1, medium = 2, high = 3 } class Enumerations { static void Main (string[] args) { Console.WriteLine ("Please enter a number from 1-3"); int userInput = Convert.ToInt32 (Console.ReadLine ...
efb11d7a10d77fb2a886d34c240631d1fb83bf15
C#
shuningzhou/Ruffles
/Ruffles/Core/SocketManager.cs
3.03125
3
using System; using System.Collections.Generic; using System.Threading; using Ruffles.Configuration; namespace Ruffles.Core { /// <summary> /// A socket manager that can run Ruffles in a threaded mode. /// </summary> public class SocketManager { private readonly List<RuffleSocket> _so...
7753e78f293024df41921249c3e5226edf264e2a
C#
HaydenroborrRIT/CsharpPlayersGuide
/HelloWorld/Program.cs
3.640625
4
using System; /* Console.WriteLine("Hello!"); string firstName = "Hayden "; string lastName = "Orr"; string name = firstName + lastName; Console.WriteLine("My name is " + name); Console.WriteLine("I'm still new at this but I\'m here to learn!"); Console.WriteLine("Please tell me more about how I can help all of you!"...
e655bd6bb59c3d62311ba9adb48b5bcc0e1fbab6
C#
wujia6/ExamOnline
/Infrastructure/Utils/RouteConvention.cs
2.53125
3
using System.Linq; using Microsoft.AspNetCore.Mvc.ApplicationModels; using Microsoft.AspNetCore.Mvc.Routing; namespace Infrastructure.Utils { /// <summary> /// 添加全局路由统一前缀 /// </summary> public class RouteConvention : IApplicationModelConvention { private readonly AttributeRouteModel _centr...
c4fc414e0ebee3d6dbb761e43d2776b4b3f35ac9
C#
Niccktor/Slam-C-
/Bonhomme qui bouge/Program.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Bonhomme_qui_bouge { class Program { private static void Main(string[] args) { int x = 0; int y = 0; int largeur = 40; ...
f582aa8788497e6d08dc552e3e77227efcbacd22
C#
kbarov/SoftUniExamsAndExercises
/ProgrammingFundamentalsCSharp/Exercises/StringsAndTextProcessingExercises/06.SentenceSplit/SentenceSplit.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _06.SentenceSplit { class SentenceSplit { static void Main(string[] args) { string input = Console.ReadLine(); string delimiter = Console.ReadLi...
1b23345a79ef30f89ddaff22a84a1fde89de3c50
C#
OlgaBikova/CSharpCourse
/2_lesson/CSharpSyntax/7_Enums/Program.cs
3.453125
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSharpSyntax { class Program { enum Days { Sun, Mon, tue, Wed, thu, Fri, Sat }; enum Season { ...
7e9ac900094678c198eb2c8b010938e25a3bea40
C#
Ripiter/TestingCodeConsoleApp
/TestingCodeConsoleApp/SaveAndLoadForRpg/Player.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestingCodeConsoleApp { enum PlayerType { Hero, Demon, Undead } class Player { public string CurrectChapter { get; set; } public st...
969b36f0a7731523e0273910c1cbf02ff776808d
C#
jariz/CorsairGTA
/Lightings/WastedLighting.cs
2.609375
3
using CUE.NET.Devices.Keyboard; using GTA; using System.Drawing; using CUE.NET.Brushes; using System.Collections.Generic; namespace CorsairGTA { class WastedLighting : Lighting { public override string Name() { return "Wasted"; } public override string Description(...
1f79cbfc338cdaa71bd6033d72039bf5f8e495fe
C#
sureshballa/xamarin-realtors-app
/Realtors/PropertyCell.cs
2.53125
3
using Foundation; using System; using System.CodeDom.Compiler; using UIKit; using System.Threading.Tasks; using System.Net.Http; namespace Realtors { partial class PropertyCell : UITableViewCell { private Property _property; public Property Property { set { this._property = value; refreshUI (); } ...
99f24a12e5ff0f276a608ef81cf7e8b7c5f0bbfb
C#
HelgeStenstrom/csProject2017
/Vinbank/Winecellar/WineManager.cs
3.34375
3
//WineManager.cs //Ann-Marie Bergström ai2436 //2018 using System; using System.Collections.Generic; using System.Linq; namespace Winecellar { /// <summary> /// Handles the list of wines in this program /// </summary> public class WineManager { #region Fields private List<Wine> wi...
c40198fa11210ad1d86427e61f31357b9c8a3088
C#
hiepxuan2008/ChessBattle3DUnity
/Assets/Scripts/Chessman/Pawn.cs
2.53125
3
using UnityEngine; using System.Collections; using System; public class Pawn : Chessman { public override string Annotation() { return "P"; } public override bool[,] PossibleEat() { bool[,] moves = new bool[8, 8]; Chessman c1; // white team moves if (isWhi...
7da088cd311e371f8e1d7e87adb189c608056e65
C#
fgheysels/arcus.templates
/src/Arcus.Templates.Tests.Integration/Fixture/ProjectOptions.cs
2.9375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using GuardNet; namespace Arcus.Templates.Tests.Integration.Fixture { /// <summary> /// Represents all the available project options on the a template project. /// </summary> public class ProjectOptions { ...
12b413e811b54a22b55f3bc129e0b65bc202ace3
C#
AlexandrPetrovichev/YP
/YP1/YP1/Program.cs
2.96875
3
using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; namespace YP1 { class Program { static void Main(string[] args) { Table t = new Table(); List<string> word = new List<string> { "" }; string path = @"...
b40b466e1c07f0b8d4bc1c693a4678bd29215737
C#
milankoster/Advent-Of-Code-2020
/Day 8/Computer.cs
3.828125
4
using System; using System.Collections.Generic; namespace Day_8 { public class Computer { public int Accumulator { get; private set; } public string[] Instructions { get; set; } public int Pointer { get; private set; } public Computer(string[] instructions) { ...
7bcdf55b1ac0ebd7eab72bf4a4383bcdd01f438a
C#
dorian195/CCTV-monitoring
/CameraWPF/VideoRecorder/Transmission.xaml.cs
2.734375
3
using System; using System.Collections.Generic; using System.Text; 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; using System.Windows.Navigation; using System.Wi...
c93820efd56cd7c32091def37cd3a0a7e6b55a3a
C#
zephlord/BodyBuilder
/Assets/Scripts/Caregiver/Utilities/InitializeSocketHere.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using SocketIO; ///<summary> /// sets up the socket connection to the server /// calls functions once connection is established ///</summary> public class InitializeSocketHere : MonoBehaviour { [SerializeField] ...
28d838bc64c298fc00929db591b641fb851cc9b8
C#
elieak/Labs
/Backgammon/BackgammonLogic/Components/NoWhere.cs
2.625
3
using System.Drawing; namespace BackgammonLogic.Components { internal class NoWhere : AbstractField { private NoWhere(Rectangle _Rect) : base(_Rect, ColorsAndConstants.Nowhere) { } public static NoWhere GetNowhere() { var rectangle ...
792703d82c9ce1e49bd77c237650aef868d66dff
C#
Ideine/Xmf2.iOS.Extensions
/src/Extensions/FoundationExtensions.cs
2.734375
3
using System; using System.Linq; using Foundation; // ReSharper disable InconsistentNaming namespace Xmf2.iOS.Extensions.Extensions { public static class FoundationExtensions { private static readonly DateTime _reference = new(2001, 1, 1, 0, 0, 0); private static readonly DateTime _referenceForNSDate = new(2001...
40ea6f0faf54c5f5c637acc7bdd22948ccdbfb86
C#
rstarkov/HowMuchLeague
/LeagueOfStats.GlobalData/Enums.cs
2.90625
3
using System; namespace LeagueOfStats.GlobalData { public enum Region { BR = 1, EUNE = 2, EUW = 3, JP = 4, KR = 5, LAN = 6, LAS = 7, NA = 8, OCE = 9, TR = 10, RU = 11, PBE = 12, } static class EnumConversi...
78341a255b7ce8205cb70c56ccff352fa920921a
C#
hardsky/music-head
/web/App_Code/JamLog.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using MySql.Data.MySqlClient; using System.Configuration; namespace Jam { /// <summary> /// Summary description for JamLog /// </summary> public class JamLog { public enum enEntryType { ...
7215ce9aff1e15d7514774a0450a8f5f4be9d50e
C#
grecojoao/RestaurantVoting
/Voting.Domain.Infra/Data/DataContextInMemory.cs
2.515625
3
using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading.Tasks; using Voting.Domain.Entities; using Voting.Domain.Entities.ValueObjects; namespace Voting.Domain.Infra.Data { public class DataContextInMemory { private List<HungryProfessional> _hungryProfessionalsTem...
ed7e14d5ec84e7362940ed30f85fa60d610cceb1
C#
YagaTeam/SimpleApi
/src/SimpleApi/Controllers/NameController.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace SimpleApi.Controllers { [ApiController] [Route("[controller]")] public class NameController : Controller { private static readonly string[] Nam...
cce0f579dfd494433bff65ed48a892f4b7ab6329
C#
Majolx/Arcadia
/Arcadia/Arcadia/Gamestates/Pong/Arena.cs
2.828125
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace Arcadia.Gamestates.Pong { class Arena { private ArenaComponent[] acComponents; public ArenaComponent[] Components { get { return acComponents; } set { acComponents = value; } ...
b48345662735f905baff1b7bdca63ae2bae1b3c6
C#
agunawan19/MHWTool
/NetCore/Mhw.Console/Program.cs
2.765625
3
using System; using System.Collections.Generic; using MHWLibrary.Models; namespace MHWToolConsole { class Program { static void Main(string[] args) { try { //Test(); Console.WriteLine("Hello World!"); Console.ReadLine(); ...
351b1338d11d11a8f8443b150764bbf3bf8a15cb
C#
georgi4c/Algorithms
/10. Exam-Preparation-Problems-Solutions-Tests/01. Group-Permutations/GroupPermutations-Nakov.cs
3.75
4
using System; using System.Linq; using System.Text; class GroupPermutations { static char[] letters; static int[] letterCount = new int['Z' + 1]; static StringBuilder result = new StringBuilder(); static void Main() { string str = Console.ReadLine(); letters = str.Distinct().ToAr...
4de62dab955c227b78034a670bb814df91d72ca0
C#
shendongnian/download4
/first_version_download2/85027-5571277-11959408-2.cs
2.875
3
var input = new[] { "01.0", "01.4", "01.5", "0.20", "02.5", "02.6", "03.0", "03.2" }; var integers = input.Select(i => (int)double.Parse(i, System.Globalization.CultureInfo.InvariantCulture)) .Distinct()....
e5eae7abadbfbad94e734b0ed28dd76fdc31bfb2
C#
BlueDress/School
/C# OOP Basics/Exams/Exam - 25 August 2016/Paw Inc/Core/Engine.cs
2.953125
3
 using System; using System.Linq; namespace Paw_Inc.Core { public class Engine { private CentresOperationsController processedData; public Engine() { this.processedData = new CentresOperationsController(); } public void Run() { ReadData...
cb2ee6ab85bc9e315c699b653e12d7d9d04462c1
C#
vxchin/CSharp8NewFeatures
/CSharpNewFeatures/Patterns.cs
2.953125
3
using ConsumerVehicleRegistration; using CommercialRegistration; using LiveryRegistration; using System; namespace CSharpNewFeatures { public static class Patterns { public static void Demo() { var soloDriver = new Car(); var twoRideShare = new Car { Passengers = 1 }; ...
f88865f6c9769f0525235b540845d3c9a46922da
C#
ericbrunner/SimpleInjector
/SimpleInjector/ShoppingCart2.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimpleInjector { public class ShoppingCart2 : IShoppingCart { private readonly Func<IOrder> _order; public ShoppingCart2(Func<IOrder> order) { _ord...
0e305abcb18072205aa0c2a180aa5d43278d6faa
C#
poo92/AdraFinal
/DataAccessLibrary/Migrations/Configuration.cs
2.546875
3
namespace DataAccessLibrary.Migrations { using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration<DataAccessLibrary.AdraFullTestFinalContext> { pu...
812e5b020e49a959ff24abc681b8329e640c90e8
C#
zhomas/GalvosCutsceneParser
/GalvosCutsceneParser/Chunks/WaitStep.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Xml.Linq; namespace GalvosCutsceneParser { public class WaitStep : BaseStep { public int milliseconds { get; private set; } public static bool IsMatch(StepI...
82c9957ba5571748877cea14ffda0cc80a0e58c9
C#
nabajatad/webbeds-poc
/WebBeds.Test/TestWebBed.cs
2.59375
3
namespace WebBeds.Test { using Moq; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WebBeds.Repository; using WebBeds.Service; using Xunit; public class TestWebBed { private readonly string authCode = "aWH1EX7ladA8C/...
4b919bc1e6437f3215cf513bfea111b029d9a353
C#
CheAle14/bot-chess
/ChessClient/Classes/ChessPlayer.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json.Linq; namespace ChessClient.Classes { public class ChessPlayer : APIObject<int> { public string Name { get; set; } public PlayerSide Side { get; set; } ...
090bc78887aa2b8ed62e493d914c06f191dedf63
C#
FDYdarmstadt/BoSSS
/src/Utils/bcl/nativelib_inst.cs
3
3
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace bcl.nativelib_inst { class Program : IProgram { #region IProgram Members public void Execute() { CopyNative(StartDir); } DirectoryInfo StartDir = bcl.myEnv.BOSSS_ROOT; ...
f577ae118dbe33d31e2e47553fba6e9d90ce23e8
C#
02Mehmet/DesignPatternExamples
/DesignPatternsDemo/SingletonPattern/SingletonPatternService.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DesignPatternsDemo.SingletonPattern { public class SingletonPatternService : ISingletonPatternService { public static int creationCount = 0; public static readonly SingletonPatternServic...
8ce51175753c549305fec662db3a31231e071b3e
C#
jpho/2.1-software-arch-OES
/OrderEntrySystem/ViewModels/FrameWork/ProductViewModel.cs
2.671875
3
using OrderEntryDataAccess; using OrderEntryEngine; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace OrderEntrySystem { public class ProductViewModel : WorkspaceViewModel { public MultiProductView...
571e843760f3746bfae3c21df48295f8fa362a27
C#
shendongnian/download4
/code9/1557880-58676528-212120792-6.cs
3.109375
3
/// <summary> /// Return User informations as a JObject. To get username and email, if return isn't null : /// username = json["name"].ToString(); /// email = json["emails"]["account"].ToString(); /// </summary> /// <param name="accessToken">accesstoken of Onedrive account</p...
c8a5fd80dc63cfaef370d8bf4422e591e6771077
C#
petedg/CommonScheduler
/CommonScheduler/DAL/ServerModelBehavior/DictionaryValue.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CommonScheduler.DAL { public partial class DictionaryValue { private serverDBEntities context; public DictionaryValue(serverDBEntities context) { t...
8f7c8f67cbd116b28a8fae7c2c4b52ad16017d8c
C#
Dwelp/TBAConcept
/TBA Concept Prototype/Assets/_Scripts/AI/AIBehavior.cs
2.640625
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Linq; public class AIBehavior : MonoBehaviour { protected AIUnit unit; protected Unit activeTarget; protected bool waitingForAction; protected UnitAction pendingAction; protected virtual void Awake() ...
69898055ce4a98a0a0cff98c390a843ab3c359e7
C#
MrYonaxx/GodfatherGameJam2020-Team20
/Assets/Script/Characters/CharacterRotation.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CharacterRotation : MonoBehaviour { [SerializeField] private float raycastLenght = 1; [SerializeField] private float rotationSpeed = 1; private Quaternion targetRotation; // Update is c...
6dda705cf7351173158079c7e3e46715fbc37e7f
C#
uffekhansen/Foosball-project
/Foosball/Tests/When_Querying_For_Lousy_Foosball_Players.cs
2.6875
3
using System; using System.Linq; using System.Collections.Generic; using DataAccess.Domain; using Mvno.TestHelpers; using DataAccess.Infrastructure; using DataAccess.Specifications; using Xunit; namespace Tests { public class When_Querying_For_Lousy_Foosball_Players : BehaviorTesting<Repository<FoosballPla...
0ff82643458798b499ff07e759113587674356c7
C#
dixon01/Dev-Jasper
/backend/Common/Formats/Source/AlphaNT/Common/IColor.cs
2.640625
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IColor.cs" company="Gorba AG"> // Copyright © 2011-2014 Gorba AG. All rights reserved. // </copyright> // <summary> // Defines the IColor type. // </summary> // --------------...
32d7756c9976a4b455f5863d7fcd382c9ba5e9d7
C#
ivkrivanov/datadesign
/Ser2022/Store/Store/Store.Web/Modules/Administration/User/Authentication/MultyTenancy.cs
2.65625
3
 namespace Store { using System; using System.Linq; using System.Security.Claims; public static class ClaimsPrincipalExtensions { public static int GetTenantId(this ClaimsPrincipal user) { if (user is null) throw new ArgumentNullException(nameof(user)); ...
d6c3564e3fb379fa2e127fa1da1abee95536a4c1
C#
Activict/Structures
/LinkedList/QueueNode.cs
3.65625
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Structures { class QueueNode<T> : IEnumerable<T> { public Node<T> Tail { get; private set; } public Node<T> Head { get; private set; } ...
b99d8e1db3bc0cd4cb29170a87cd664f21e48313
C#
ivanpointer/NuLog
/NuLog/Layouts/StandardPropertyParser.cs
3.078125
3
/* © 2020 Ivan Pointer MIT License: https://github.com/ivanpointer/NuLog/blob/master/LICENSE Source on GitHub: https://github.com/ivanpointer/NuLog */ using System; using System.Collections.Generic; using System.Reflection; namespace NuLog.Layouts { /// <summary> /// The standard implementation of a propert...
b3fa1853b110eeea61530d683547437f82eeb3e3
C#
tofitaV/SeleniumTest
/Test/UnitTest1.cs
2.6875
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Support.UI; using System; using System.Threading; namespace Test { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { ...
fddc0145d13f06381944a02b2cc89313c5ad4051
C#
yuki332/DGM1600_repo
/var and function/Assets/varAndFunc.cs
2.921875
3
using UnityEngine; using System.Collections; public class varAndFunc : MonoBehaviour { int myInt = 60; // Use this for initialization void Start () { int first = devideByTwo (myInt); int second = multipleByThree (myInt); Debug.Log (first); Debug.Log (second); } int devideByTwo (int number) { int...
60b2618c67e86b9a8131e3316ad17a21ad496253
C#
putschoeglwe/SemVer
/SemVer/SemVer/Ident.cs
2.828125
3
namespace SemVer { public abstract class Ident {} public class Numeric : Ident { public Numeric(ulong n) { Number = n; } public ulong Number { get; } } public class AlphaNumeric : Ident { public AlphaNumeric(string value) { ...
2c91aa02dbcd2e150cf6aabfe1e737871d4e0cb8
C#
MartinRichards23/SystemPlus
/SystemPlus.Windows/Converters/DoubleIntConverter.cs
2.953125
3
using System; using System.Globalization; using System.Windows.Data; namespace SystemPlus.Windows.Converters { /// <summary> /// Converts a Double to Int /// </summary> [ValueConversion(typeof(int), typeof(double))] public class DoubleIntConverter : IValueConverter { public object? Con...
b1eec0eca7f1dc17858812f2840450c2a183b5f4
C#
shendongnian/download4
/code9/1646663-46666030-158013652-6.cs
2.546875
3
using System; using System.Windows.Input; using System.Windows.Media; namespace WpfApp1 { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow { public MainWindow() { InitializeComponent(); Test.MouseEnter += TestOnMouseEnter; Test.Mouse...
fa19f67066d680b9cd17aab5f0ef085cff0ac9b8
C#
Niels-Ver/StraatModel
/StraatModel/DataReader.cs
2.8125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.Xml; namespace StraatModel { public class DataReader { public void leesData() { char[] seperator = { ';' }; string[] gesplitsteData; ...
e49ae8c480ccd4747a7090e220dcf54895c6b0c3
C#
carlos-hribeiro/Versus-Fighter
/PorradaEngine/Collision/HittableBox.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace PorradaEngine.Collision { /// <summary> /// Representa os boxes de colisao do tipo Hit /// </summary> public class HittableBox : Colli...
49173cb5ddf901e7218998abe78ae018503a0f95
C#
Azure-Samples/service-fabric-dotnet-web-reference-app
/ReferenceApp/Web.Service/Controllers/OrdersController.cs
2.546875
3
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Web.Service....
0524a2b79036821f7ce8efbc29611267bfb57feb
C#
GlitchEnzo/Hayao
/Vapor/Graphics/VertexPositionTextureNormal.cs
2.5625
3
namespace Vapor { using SharpDX; using SharpDX.Direct3D11; using SharpDX.DXGI; public struct VertexPositionTextureNormal : IVertexType { public Vector4 Position; public Vector3 TextureCoordinates; public Vector3 Normal; public VertexPositionTextureNormal(Vector4 ...
6efbf6e2911b3cc9441ab4ac9c98694b0519b37d
C#
sk8tz/quantfabric
/src/Foundations/CurrentAppDomain.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Foundations { public static class CurrentAppDomain { /// <summary> /// Get all of the loaded assemblies in the current app domain /// </summary> /// <returns>List of loaded ass...
afce75bb4713f79ca14ccd930622df1f45bff83d
C#
Altadsa/Rocket
/Assets/Scripts/Rocket.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Rocket { public class Rocket : MonoBehaviour { public static int starsCollected = 0; [SerializeField] Vector2Constant startPos; [SerializeField] Sprite defaultSprite; [S...
da53baa0d17f99f00bac0b061d2991a11e0d7b25
C#
Zeeger/email-template
/VisualEmailTemplater/VisualEmailTemplater/GenericFunctions.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace VisualEmailTemplater { class GenericFunctions<T> { public string ConcatenateList(IList<T> input, T delimiter) { var output = string.Empty; foreach (var item in input) { output += item.ToString() + delim...
5146ff8191b727cd84172e240be887bd29022da3
C#
AlexLunyov/TypiconOnline
/TypiconOnline.Domain.Rules/Serialization/RuleXmlSerializerContainer T.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using TypiconOnline.Domain.Interfaces; namespace TypiconOnline.Domain.Serialization { /// <summary> /// Реализация контейнера фабрик для xml-вариации представления элементов правил /// </summary> /// <typeparam...
158d5897781752dba5851c88bb03f2a5e0de27f5
C#
joopspide/MailMergeLib
/MailMergeLib.Tests/Helper.cs
2.984375
3
using System; using System.IO; using System.Reflection; namespace MailMergeLib.Tests { internal class Helper { /// <summary> /// Gets the path of code base for the executing assembly. /// </summary> /// <remarks> /// The Assembly.Location property sometimes gives wrong ...
b47a4351c3dae25e4ecfc9d6ad3131f4b014318e
C#
nikogrig/Software-University
/02 Prog. Fundamentals Extended - C#/15 - Lists - Exercises/15 - Lists - Exercises/03.01 FoldAndSum/FoldAndSum.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _03._01_FoldAndSum { class FoldAndSum { static void Main(string[] args) { int[] arrNums = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); ...
d6f2385eb41488ba79116cde8492dc907eefaa68
C#
ake698/Diary_Plus
/TestDemo/Program.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace TestDemo { class Program { static void Main(string[] args) { string a = "d"; Assembly assembly = Assembly.Load("Diary.BLL"); var classes = assembly.GetTypes...
36bbdb0b94797da7d08a9d9c3dd2919f029975c4
C#
AlefNaught/Daily
/CorvinsDay_v1/CorvinsDay_v1/CorvinsDay_v1/Program.cs
3.21875
3
using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.Security.Cryptography.X509Certificates; using System.Xml; using System.Xml.XPath; namespace CorvinsDay_v1 { public static class Items { static public List<Item> items; static public void ItemsIn...
2519fd713bfbf61c61bef4c4e25c6fb1ac820327
C#
HebaSamirAli/workshop.webapp
/backend/Services/WorkshopService/WorkshopService.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using backend.model; namespace backend.Services.WorkshopService { public class WorkshopService : IWorkshopService { private readonly ApplicationDbContetxt _db; public WorkshopService(ApplicationDbC...
df7b1cc1f7308576123c2a2dadce39782e413fc4
C#
dipaksutare101/OrderIT.CS
/OrderIT.Model/Partials/Order2.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; namespace OrderIT.Model { public partial class Order : IDataErrorInfo { void OnActualShippingDateChanged(Nullable<System.DateTime> value){ if (value.HasValue && EstimatedShippingDate.HasValue && va...
c69f76d828ceff3caae512d002fe4678babc70f3
C#
Biomancer81/Corvinus
/src/Corvinus.Data/Serialization/XmlSerializer.cs
3
3
// <copyright file="XmlSerializer.cs" company="Corvinus Software"> // Copyright (c) Corvinus Software. All rights reserved. // </copyright> namespace Corvinus.Data.Serialization { using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; /// <summary>...
66a0487f0814db0fb304a8287e2f673dd4ef750c
C#
DevVKorenkov/TruckReport
/TruckReportLibF/Abstract/Report.cs
2.9375
3
using System; using System.IO; using TruckReportLibF.Models; namespace TruckReportLibF.Abstract { /// <summary> /// Абстрактный класс отчета /// </summary> [Serializable] public abstract class Report { public string id; /// <summary> /// Номер объекта /// </su...
097fc050779482eac225ba0170583825a9846ed2
C#
dannyseins/Arca
/Verdezul.IDH.DataAccess/EstadoAlumnoDataAccess.Basicos.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.SqlClient; using Verdezul.IDH.Entidades; namespace Verdezul.IDH.DataAccess { /// <summary> /// Clase de Acceso a Datos para EstadoAlumno /// </summary> public partial class EstadoAlumnoDataAccess : G...
fe09c26635dc618051ad7272cd726aed3badc79a
C#
AD1967/backlog
/KALITKA-master/Actual Project/Assets/Scripts/GameLog/Events/RollDiceButtonScript.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; // Скрипт для кнопки броска кубиков. // Прикреплен к кнопке, соответственно, // работает с кнопкой public class RollDiceButtonScript : MonoBehaviour { public AudioClip RollAudio; void Update(){ if(Game...
3acb16848eacdb109cd7af052e1ffd00ddc0295a
C#
txdv/meetcurses
/MeetCurses/Widgets/Entry.cs
2.921875
3
using System; using System.Collections.Generic; using Mono.Terminal; namespace MeetCurses { public class Entry : Widget { private int position = 0; public int Position { get { return position; } set { int oldPosition = position; if (value > Text.Length) { position = text.Length; On...
2d589397ebcda49ea8ea989d387d106111e20f35
C#
alincamv/TwitterRepository
/Models/UserModel_LOCAL_8300.cs
2.515625
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace Models { public class UserModel { [Regular...
18be4f04ad641c22098ef97543513618383e8888
C#
ilMes/MiscUtilsLib
/Src/LinqExtensions.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; namespace BtmI2p.MiscUtils { public static class LinqExtensions { public static IEnumerable<Tuple<int, T1>> WithIndex<T1>( this IEnumerable<T1> enumerable ) { return enumerable.Se...
aaa2b0d283bf8f057268d78f425a0597ada10194
C#
Kaliumhexacyanoferrat/GenHTTP
/Modules/Conversion/Providers/Forms/FormContent.cs
2.515625
3
using System; using System.Globalization; using System.IO; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Web; using GenHTTP.Api.Protocol; namespace GenHTTP.Modules.Conversion.Providers.Forms { public sealed class FormContent : IResponseContent { ...
9fbc49746b7cb0bdb984ad0320ea0b7e5db949a9
C#
Team-Mieszalnik/CuadradosDeMiedo
/Assets/MainMenu/Scripts/StatsManager.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class StatsManager { public static float BestTime { get => PlayerPrefs.GetFloat("BestTime", 0); set { float prevBestTime = PlayerPrefs.GetFloat("BestTime", 0); if (value < pr...
9dd36407c99ecce733558c6b98ec99b799892ca2
C#
mobileappsgame/Adventures-of-Zombies
/Assets/Scripts/Menu/UI/ChangeSettingsButton.cs
2.578125
3
using UnityEngine; using UnityEngine.UI; namespace Cubra { public abstract class ChangeSettingsButton : MonoBehaviour { [Header("Спрайты кнопок")] [SerializeField] protected Sprite[] _sprites; // Ссылка на компонент protected Image _imageButton; protected virtual void...
6bebfb96dff2b2c2a73546c8c8310aa29f7e1c08
C#
FS-Frost/Asu.Utilidades
/Core/AssFile/AttachedGraphic.cs
2.875
3
using Asu.Utils.Constants; using System.Collections.Generic; namespace Asu.Utils.Core.AssFile { /// <summary> /// Representa una imagen adjunta a un archivo ASS. /// </summary> public class AttachedGraphic : AttachedFile { public override AttachedFileType Type => AttachedFileType.Graphic; ...
bfa8b36f22ccb83bf157802f725daa60322a643b
C#
EivindTvedtenErsland/net_project
/net_project.Api/Repositories/MongoDBItemsRepository.cs
2.703125
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using MongoDB.Bson; using MongoDB.Driver; using net_project.Api.Api.Interfaces; using net_project.Api.Api.Models; namespace net_project.Api.Api.Repositories { public class MongoDBItemsReposity : Items...
41f47d6e01ae2d3b2547ac8577935e340618f4a7
C#
trigger-segfault/TriggersTools.SharpUtils
/src/TriggersTools.SharpUtils/Collections/ImmutableArrayLW.cs
2.578125
3
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; namespace TriggersTools.SharpUtils.Collections { /// <summary> /// A lightweight immutable array so that including System.Collections.Immutable is not requir...
f5a38866d2ce1fed2584b3b6590bfb477a93cfd9
C#
erusseva/CSharp
/CSharp Part 2 HW/3.Methods/10. N Factorial/10. N Factorial.cs
4.21875
4
using System; class NFactorial { //Write a program to calculate n! for each n in the range [1..100]. public static string NumberMultiplyer(string number, int digit) { string result = null; int step = 0; for (int i = number.Length - 1; i >= 0; i--) { int current...
51a56d6831b390c67a6b1121e896a92faa22c11c
C#
Strialck/Sea-Battle-Game
/SeaBattle/SeaBattle.CSharp.Tests/RectTests.cs
2.953125
3
using NUnit.Framework; using SeatBattle.CSharp; namespace SeaBattle.CSharp.Tests { public class RectTests { [Test, ExpectedException] public void Cannot_Create_Rect_With_Negative_Width_In_Ctor() { var rect = new Rect(0, 0, -1, 1); } [Test, Expe...
8394f092a321f2c9608f2b5a44ca18074832696e
C#
jaideng123/Useful-Unity
/Base Classes/VariableScriptableObject.cs
2.5625
3
using UnityEngine; public abstract class VariableScriptableObject<T> : ScriptableObject { public T defaultValue; [SerializeField] private T _currentValue; public T currentValue { get { return _currentValue; } set { _currentValue = value; } } private void OnEnable() { ...
c6c1addc82013cd4e4cd62b05fbba60c341e7fa5
C#
Kaster/CalibreCatalog
/KasterUtil/Exception/BaseException.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KasterUtil.Exception { /// <summary> /// Base class for all Auto Panel exceptions. /// </summary> public abstract class BaseException : System.Exception { /// <summary>...
4677d98b2766b51fe9bdc2b9cffd071b1fd12e08
C#
BDmitriev/US-Wahlkampf
/US_Whal_Grafisch/US_Whal_Grafisch/Program.cs
2.671875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using US_Whal_Grafisch.model; namespace US_Whal_Grafisch { public enum Geschlecht { Weiblich, Maenlich, Default } public enum Alter { Erstwaehler, Bis30, Bis40, Bis50,...
9b932faeaccfa9710f8dd425e0d8967fd92f9ea6
C#
MichaelMcQuirk/BusinessgameProductionManager
/Businessgame Production Manager/TSector.cs
2.671875
3
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; namespace WindowsFormsApplication1 { public class TSector { public string name = ""; public double price = 0.00; public double employees = 0.00; public double fixedprice = 0.0...
6b8ef80db876691d8e26cbde670ab64532bfe8ea
C#
malsoft-pl/dotnet-concept-vertical
/Concept.Vertical.Messaging.InMemory/MessagePublisher.cs
2.515625
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading; using System.Threading.Tasks; using Concept.Vertical.Messaging.Abstractions; using Newtonsoft.Json; namespace Concept.Vertical.Messaging.InMemory { public class MessagePublisher : IMessagePublisher { pr...
8bfe2500fa0a1971af36b6547a7efd396b6d0977
C#
gishjl/DataManager
/satics_school/csDBHelper.cs
2.875
3
using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.OracleClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace satics_school { public enum enumSaticsType { eCount, eArea, eUnknown } publ...
ca93b9b8a5d9a0a2056d031f89d11cc3ac9d7323
C#
KseniyaMikhailiuk/PAINt
/PaintF/UserFigure.cs
3.25
3
using System.Collections.Generic; using System.Drawing; using AbstractClassLibrary; namespace PaintF { public class UserFigure: Figure { public static int FieldWidth; public static int FieldHeight; public List<Figure> UserFigureList = new List<Figure>(); public override bool I...
1ea6a617489556c95413233957e067852575f0a7
C#
apkoltun/CSC651WebSitev2
/App_Code/RoleRegister.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity; /// Utitily class for registering roles public class RoleRegister { private RoleStore<IdentityRole> roleStore; private RoleManager<IdentityRole>...
a51aff0ca9c49ed2f3fab3b89af012487a13e05e
C#
muh-kubraozer/WinForm-Uygulama
/VoyageFramework/VoyageFramework/BusExpedition.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VoyageFramework { public class BusExpedition { DriverCollection<Driver> driverCollection = new DriverCollection<Driver>(); HostCollection<Host> hostCollection = new Hos...
3ec48c79d49d066bb88d4699045236758000ad31
C#
shuvoamin/SoftwareDesignPatterns
/DesignPatterns/MvcPattern/MvcPatternDemo.cs
3.375
3
namespace DesignPatterns.MvcPattern { public class MvcPatternDemo { public StudentController StudentController { get { throw new System.NotImplementedException(); } } public static void Output() { //fet...
8dc9e9cebfed7d21557d9c4bf2232d447496c444
C#
shendongnian/download4
/first_version_download2/577695-55604269-195474646-2.cs
2.640625
3
[Test] public async Task TestAsync() { using (var context = new TestDbContext()) { Console.WriteLine("Thread Before Async: " + Thread.CurrentThread.ManagedThreadId.ToString()); var names = context.Customers.Select(x => x.Name).ToListAsync()...
16244b1012a55a43559c985ab51f1ec8224231e9
C#
huwman/Fortis
/Fortis.CSharp.Test/ResultTest.cs
2.5625
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.Contracts; namespace Fortis.CSharp.Tests { [TestClass] public class ResultTest { [TestMethod] public void Error_EqualityTest() { var p = Result.Error<string, int>("Error"); ...