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
d71949ec1a28ef632eed014d0b8a9d300ae4e285
C#
Skvorecz/Colors
/Colors/Scheme.cs
3.171875
3
using System.Windows.Forms; using System.Drawing; namespace Colors { abstract class Scheme { protected ColorCircle colorCircle; public abstract void Paint(PaintEventArgs e, Form form, params Color[] colors); public abstract Point[] PointersPositions(Point basePoint); public S...
d5df4b29d9e3d1f273eccdb0df28d5fdcdc4ebce
C#
BladeScar/TestingSystemFinal
/TestingSystem/ViewModel/TeacherViewModel.cs
2.953125
3
using System.Collections.Generic; using TestingSystem.Model; namespace TestingSystem.ViewModel { public class TeacherViewModel { public enum EQuestionState { eNew, ePresent, eInvalid } public TeacherViewModel() { } ...
cd0524338195efbe9b56dfd758bd1ac09fd377a4
C#
tedigor/avaliacao-p2-dotnet
/ApiDeGastosMensais.API/Controllers/GastoControler.cs
2.59375
3
using ApiDeGastosMensais.DATA; using ApiDeGastosMensais.DATA.Model; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ApiDeGastosMensais.API.Controllers { [Route("api/gasto")] [ApiC...
6d85577abd4eb6bb9216476e2dbebdd7588f6d64
C#
gitlinhleqtgh/C
/C#/Delegate/Logs.cs
3.0625
3
using System; namespace Delegate { public class Logs{ public delegate void ShowLog(string message); static public void Info(string s){ Console.ForegroundColor=ConsoleColor.Green; Console.WriteLine(string.Format("Info: {0}",s)); Console.ResetColor(); } ...
a8ee7b148fc56a114524835c66068fbcced14344
C#
jclarkGRC/aspwebformcatwords
/WebFormsHelloWorld/Game.aspx.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebFormsHelloWorld { public partial class Game : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ...
549ff0ddfc1453ca9a0f860e18afd1d96d36c494
C#
sm-valery/gTravel
/WebApplication1/helpers.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; namespace gTravel { public class helpers { public static MvcHtmlString ContractStatus(gTravel.Models.Status s) { string sbody = ""; switch (s....
0aec6c56f3f3972fc8421fe2fa31861bac7d1c04
C#
mkalkere/MoreLINQ
/MoreLinq/MaxBy.cs
2.796875
3
#region License and Terms // MoreLINQ - Extensions to LINQ to Objects // Copyright (c) 2008 Jonathan Skeet. All rights reserved. // // 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 // // ...
ca93702eb5238e3991707cd4278a5c02b15e358e
C#
SeeminglyScience/PSValueWildcard
/src/PSValueWildcard/WildcardInstruction.cs
2.96875
3
using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; namespace PSValueWildcard { [DebuggerDisplay("{GetDebuggerDisplayString()}")] internal readonly struct WildcardInstruction : IEquatable<WildcardInstruction> { public static readonly WildcardInstruction AnyAny = new Wildc...
c8bb942a6cda2e1c20630e0535db26fcc72e962b
C#
NGPONG/code
/csharp/c#学习-01/test/Student.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test { class Student:Person { private string hobby; public string Hobby { get { return hobby; } set { hobby = value; } } ...
eaaf894b9e139b7eaa0f6a2b9643b4c7f30febef
C#
MaryArt/Meteor
/DalFake/ExpeditionRepository.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Model; namespace DalFake { public class ExpeditionRepository { private MyContext _myContext; public ExpeditionRepository(MyContext context) { _myConte...
0344dda1e959d1c41cb683525e726f10b1e4d2c0
C#
huynxtb/C-Sharp-Projects
/SimpleCsharp/SimpleCsharp/Manager.cs
3.453125
3
using java.lang; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace SimpleCsharp { class Manager { public void calculatorTwoDigt() { double sum = 0; Console.WriteLine("Nhập số a: "); ...
2f4d07bfd395cdff23f03241211bf86335887d67
C#
hxmtl/Visio-Power-Tools
/VisioPowerTools2010/VisioPowerTools2010/SimpleHTML5Writer.cs
2.625
3
using System; using System.Collections.Generic; using System.Xml; using VA=VisioAutomation; using IVisio = Microsoft.Office.Interop.Visio; namespace VisioPowerTools2010 { public class SimpleHtml5Writer : IDisposable { protected XmlWriter _xw; private readonly Stack<string> _element_stack; ...
0cf157ce8f52f26e7ced0b8102c32668fba897ba
C#
za-webdev/CSharp-Programmimg
/Example/Example/Program.cs
3.6875
4
using System; using Example.Math; namespace Example { public enum Gender { male, female, unknown } class Person { public string firstname; public string lastname; public Gender gender; public bool isAlive; public void introduce() ...
a7c3548bc36fa5b49e3db25579b9e68db555723f
C#
JanDotNet/ThinkSharp.Licensing
/ThinkSharp.Licensing/CheckSum.cs
3.28125
3
// Copyright (c) Jan-Niklas Schäfer. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for full license information. using System; using System.Linq; namespace ThinkSharp.Licensing { /// <summary> /// Class for creating check sum for an array of bytes. /// </s...
5e1efc17f79813781cc912e977910a8a585c4aeb
C#
AlexanderPro/Utilities
/Utilities.Tests/Extensions/ObjectExtensionsTests.cs
2.609375
3
using System; using System.Text; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using Utilities.Extensions; namespace Utilities.Tests.Extensions { [TestClass] public class ObjectExtensionsTests { [TestMethod] public void TestObjectIsNull() { ...
c9abd325afcd021b74295897f338f7c005ee4af2
C#
rakibj/SideScroller-CodeExample-Rakib
/Assets/_Project/Scripts/Platform/RandomBackgroundSelector.cs
2.609375
3
using System; using System.Collections.Generic; using UnityEngine; using Random = UnityEngine.Random; namespace _Project.Scripts.Platform { public class RandomBackgroundSelector : MonoBehaviour, IRandomSelector { [SerializeField] private List<Sprite> backgroundObjects; private SpriteRenderer m...
12e0d108a6f8c604fe88e45e69397193d40d313d
C#
ArvidSilvmarker/WebApiLab
/WebApiLab/WebApiLab/Controllers/Ex4Controller.cs
3.203125
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace WebApiLab.Controllers { [Route("api/ex3")] public class Ex4Controller : Controller { [Route("addperson"), HttpPos...
c3bd5e9347ffd825db6307f4b0fbd7051c586f8c
C#
gfrancischini/xml-language-server
/XmlLanguageServerConsole/XmlValidationEngine/XsdCache.cs
3.15625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using XmlValidation.FileTypes; namespace XmlValidation { public class XsdCache { /// <summary> /// Cache that Holds all the loaded XSDs /// </summary> private Dicti...
b4b7afc2bc0ea3a129917d0114727cc653cb9bed
C#
Alex-Reich/Console-Slap
/BatmanGame.cs
3.34375
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading; using csharp_intro.Models; namespace csharp_intro { public class BatmanGame { private List<Target> _targets = new List<Target>(); private void Setup() { Console.BackgroundColor = ConsoleColor.DarkBl...
786a9b411e6fcbecc3148f2c09b5f8c717b94c92
C#
LGinC/ImageLable
/ImageLable/LogTraceListener.cs
2.765625
3
 using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; namespace ImageLable { public class LogTraceListener : TraceListener { static string logfile; FixedTimeAction ChangeFile; DateTime logTime; public LogTraceListener() ...
6e9dfa1d69ead57fa47f1e6914b2265ce9f24787
C#
nioktn/Caesar_ITA
/CaesarLib/MainPage/CenterContainer/ScheduleContent/ScheduleContent.cs
2.546875
3
using OpenQA.Selenium; using OpenQA.Selenium.Interactions; using OpenQA.Selenium.Support.UI; namespace CaesarLib { public class ScheduleContent { //Fields private IWebDriver _driverInstance; private IWebElement _scheduleCogwheell; private IWebElement _monthButton; pri...
802c94172813338a116852d7e471c9385a64f8c8
C#
gnux/CSExtensions
/ExtensionsTest/Program.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using gnux.Extensions.extEnums; using System.ComponentModel; namespace gnux.ExtensionsTest { enum TEST { none=0, [Description("first Value")] first=1, [Description("second ...
c9771c29e2c551c757d5374942baaa7c11da2a12
C#
claret-alexander1999/Calculator
/XamarinCalculator/XamarinCalculator/MainPage.xaml.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace XamarinCalculator { public partial class MainPage : ContentPage { int currentState = 1; string myoperator; double firstNumber, secondNumbe...
5cd08a921230c13c8c4f9ecee4b21f508f4d3988
C#
arkirakosyan/MyStories
/MyStories.Test/UnitTests/Fake/MyStoriesFakeDbSets.cs
2.671875
3
using System.Linq; using System.Threading; using System.Threading.Tasks; using MyStories.Entities.Models; using Repository.Pattern.Ef6; namespace MyStories.Test.UnitTests.Fake { public class StoryDbSet : FakeDbSet<Story> { public override Story Find(params object[] keyValues) { ret...
2d01e6df4528ddfcaca13a9fff82cf3bad6d4986
C#
dlovesl/spotcc
/Services/IPlayCountProducer.cs
2.640625
3
using Microsoft.Extensions.Logging; using Spotcc.Services.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Channels; using System.Threading.Tasks; namespace Spotcc.Services { public interface IPlayCountProducer { Task ProduceAsyn...
201e556abade18544f93e3b339d8682f6995ca43
C#
voiddaek/STD
/STD/STD/Components/Movements/CheckPointMovement.cs
2.71875
3
using Otter; using STD.Entities.Common; using System.Collections.Generic; namespace STD.Components.Movements { public class CheckPointMovement : EntityMovement { public LinkedListNode<Vector2> CheckPoints; public CheckPointMovement(EntityWithDirection entity, LinkedListNode<Vector2> checkPoint...
189b8d6e6418a4d94f17169ae79bc35b366ba410
C#
gtvilela/design-patterns
/design-patterns/Program.cs
2.625
3
using Design_Patterns.Desconto; using Design_Patterns.Impostos; using Design_Patterns.Impostos.Interfaces; using Design_Patterns.Investimentos; using System; namespace Design_Patterns { class Program { static void Main(string[] args) { Orcamento reforma = new Orcamento(500.0); ...
9c443ca3d63d60ea5e731dfd3c87c94e99fdbe21
C#
vblain/ImprovingPerformance
/Multiplication/Program.cs
2.96875
3
using System; using System.Diagnostics; using System.Numerics; namespace Multiplication { class Program { private static BigInteger result; static void Main(string[] args) { //Program.QuickTest(); //Program.NaiveTimeTest(new BigInteger(3), new BigInteger(2)); //Program.NaiveTimeTest(new BigInteg...
29052b79e7fe4e12fa81e39318abe3d972c5b9f7
C#
shendongnian/download4
/code6/1138103-29980696-89450009-2.cs
2.734375
3
private float lastClickTime; public float catchTime = 0.25f; void Update () { if(Input.GetButtonDown("Fire1")) { if(Time.time - lastClickTime < catchTime) { //double click print("Double click"); } else ...
493ad7bdccc02277fa5089d0bf54b78093c0fe25
C#
shendongnian/download4
/latest_version_download2/120072-23673012-65258788-2.cs
2.734375
3
var b = new byte[8]; b[0] = 0x20; b[1] = 0x64; b[2] = 0xa8; b[3] = 0xac; b[4] = 0xb6; b[5] = 0x65; b[6] = 0xe4; b[7] = 0x40; var dbl = BitConverter.ToDouble(b, 0); var dt = DateTime.FromOADate(dbl); Console.WriteLine("{0:s}", dt);
3f8406f73f76f2250fc595d8ded6963f97dc73b5
C#
rianjs/RepoInspector
/RepoInspector/RepoInspector/Analysis/RepositoryAnalyzer.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using RepoInspector.Records; namespace RepoInspector.Analysis { public class RepositoryAnalyzer : IRepositoryAnalyzer { private readonly IClock _clock; public RepositoryAnalyzer(IClock clock) { ...
dd677b2ee1700108151533f444717cf422dc7b29
C#
matheuscarvalholp/Reflection
/Form1.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp5 { public partial class Form1 : Form { ...
e2524c7d77b90bb4d5726f67d9bda085a841c089
C#
khiemnd777/aaron-core
/v3.2.5/Project.Aaron/Libraries/Aaron.Core/TextExtensions.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace Aaron.Core { public enum TitleStyle { UpperCase, FirstCaps } public class ImageDimension { public int Width{get;set;} ...
2a8e9e2a0bbdd3feb188c269718ecd13c5a8e995
C#
benfulton/Twarkee
/TeleTwitter.Lib/TeleTwitter.Lib/StatusConverter.cs
3.046875
3
using System; using System.Collections.Generic; using System.Globalization; using System.Text; using Newtonsoft.Json; namespace TeleTwitter.Lib.Json { /// <summary> /// Converts a JSON string to a Status object /// </summary> public class StatusConverter : JsonConverter { #region Writing ...
5b7e7dd86933f48c441b3391f6fa8ed14d4351ff
C#
elleyerium/Elysium-Server
/NetCoreServer/Server/User/Files/Avatar.cs
2.859375
3
using System.IO; namespace NetCoreServer.Server.User.Files { public class Avatar { private readonly string _source; public Avatar(string source) { _source = source; } public byte[] GetRawData() //Get raw data to create new texture from this information ...
ba5c816481d2cffabbc9b256404955246331ce3d
C#
dev-vinay/Evolent-Health
/EHI.WebSite/DataRepository/EHIDataRepository.cs
2.765625
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using EHI.WebSite.Infrastructure; namespace EHI.WebSite.DataRepository { public class EHIDataRepository : IEHIDataRepository { private readonly EHIDBEntities _ehiDbContext; private bool _disposed = false; ...
5a43f853c6ea82a6ac17def89a4702d2c5cd221c
C#
vjeeva11/MethodHiding
/MethodHiding/Program.cs
3.96875
4
using System; namespace OOPS_Basics { class Program { static void Main(string[] args) { MethodHidingExample(); AbstractMethodExample(); } private static void AbstractMethodExample() { // Abstract - Override // instance fo...
0fe99d61812aca7fa92915306af7a5838509b296
C#
gregmulvihill/BenchmarkFloatVsDouble
/BenchmarkFloatVsDouble/Program.cs
2.90625
3
using System; using System.Diagnostics; using System.Runtime.InteropServices; namespace BenchmarkFloatVsDouble { class Program { static void Main(string[] args) { Console.WriteLine("OSDescription: {0}", RuntimeInformation.OSDescription); Console.WriteLine("OSArchitecture: {0}", RuntimeInformation.OSArchit...
d7a291ec3a6b1e7aad6922cc585d5bdd308c965b
C#
PavelTarlev1/WIMS
/ManagementSystem/ManagementSystem/Core/PrintMessages.cs
2.703125
3
 using System.Collections.Generic; namespace ManagementSystem.Core { public static class PrintMessages { public const string ExitCommand = "Exit"; public const string NullProvidersExceptionMessage = "cannot be null."; public static List<string> menuItemsNotLogged = new List<string>() ...
28a4d32799104d57f94b5d8b14844a73b6c56269
C#
cornelius-sevald/EvoBox
/src/Vector2.cs
3.671875
4
using System; namespace evobox { /// <summary> /// 2D Vectors and points. /// </summary> public struct Vector2 { public double x, y; /// <summary> /// Construct a new vector with a x and y coordinate. /// </summary> public Vector2(double x, double y) { ...
fed64aa03633d5699e694ad3d198922e3e4e2224
C#
hg222dt/vt14-1-4-gissa-det-hemliga-talet
/SecretNumber/SecretNumber/Model/SecretNumber.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Collections.ObjectModel; namespace SecretNumber.Model { public class SecretNumber { //Hemligt nummer sparas i detta fält private int _number; //Lista som innehåller alla tidigare gissning...
14166c1f484466671181fb66160d2b194613621d
C#
John-Pier/parking-constructor
/ParkingConstructorLib/models/Coors.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ParkingConstructorLib.models { public class Coors : IComparable //Класс координат { public int ColumnIndex; public int RowIndex; public Coors(int colum...
60e062c741e4f30d4eac7a7197888acd5af75dce
C#
stehlika/SGM-iPhone-Slaves
/SGM-group-project/Assets/Scripts/Interactable.cs
2.8125
3
using UnityEngine; public class Interactable : MonoBehaviour { public float radius = 4f; public Transform interactionTransform; private GameObject player1; private GameObject player2; bool hasInteracted = false; void Start() { player1 = GameManagement.Instance.getPlayer1(); ...
f2ea716ed5eeaff7f5c781a304d5f4019a00f8aa
C#
CameronSA/RaceTracker
/RaceTracker/LogicHelpers/CommandLine.cs
2.671875
3
using System.Diagnostics; namespace RaceTracker.LogicHelpers { public static class CommandLine { public static void ExecuteCommand(string command) { Process cmd = new Process(); cmd.StartInfo.FileName = @"C:\Windows\System32\cmd.exe"; cmd.StartInfo.WorkingDi...
63f2499b61bac5c976e9f06869909c028686d8fd
C#
butchchr/gclab11movies
/gclab11movies/Program.cs
3.21875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace gclab11movies { class Program { const string Animated = "animated"; const string Drama = "drama"; const string Horror = "horror"; ...
98aec09578e369511d787dc8946b009aefaa1d64
C#
Apostolova/TelerikAcademy
/C_Charp/Object Oriented Programing/OOP-Principle-Part2/2.Bank/DepositAccount.cs
3.4375
3
using System; namespace _2.Bank { class DepositAccount : Account, IDrawMoney, IDepositeMoney { public DepositAccount(Customer customer, double balance, double interestRate, DateTime start) : base(customer, balance, interestRate, new DateTime()) { } public override d...
cd053b89aedf270e4a63c12d8ea756019dd2cc06
C#
CH3COOH/Softbuild.Data
/Softbuild.Data.WinPhone71/UnitTestLibrary/MainPage.xaml.cs
2.75
3
using System; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Softbuild.Data; namespace UnitTestLibrary { public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); } protected override voi...
019938fa5642abccdfd0cb0de5281b96d1eac28d
C#
Sheharyarkehar/C-SharpLogicBuildingPrograms
/ConsoleApplication52/ConsoleApplication52/Program.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication52 { class Program { public static void Main(String[] args) { new A(); new B(); } } public class A { ...
a1bb231d8bcf5e46076df662fa530458ce538a7a
C#
nphmuller/Roslynator
/source/Core/CSharp/Syntax/NullCheckExpression.cs
2.5625
3
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Roslynator.C...
40086f55e43e21ad1bd26fdecc30a22487b51df1
C#
jlwalkerlg/cqrs-student-management-dotnet-react-demo
/api/tests/StudentManagement.ApplicationTests/Students/RegisterStudentCommandTests.cs
2.5625
3
using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using StudentManagement.Application.Students; using StudentManagement.ApplicationTests.Doubles; using StudentManagement.Domain.Students; using Xunit; namespace StudentManagement.ApplicationTests.Students { public class RegisterS...
d7c9d998a14bb47dca6465c7365d54650619a109
C#
tatiana-zozulina/RiaParser
/RiaParser/NewsParser.cs
2.96875
3
using System; using System.Collections.Generic; using AngleSharp.Html.Parser; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace RiaParser { class NewsParser { private readonly HtmlParser parser; public NewsParser() { parser = new HtmlPar...
a8d233e826632ee7cb979a1a94548b00047deca4
C#
wareismymind/Guardian
/wimm.Guardian/TypeArgumentException.cs
3.28125
3
using System; namespace wimm.Guardian { /// <summary> /// Thrown when a generic method is invoked with an invalid type parameter. /// </summary> public class TypeArgumentException : Exception { /// <summary> /// The name of the type parameter for which a type was invalid. /...
a3c6dfe66caf537db046569435903b56d7c66642
C#
IjazHussain786/CSharp
/OOP_UniversityLearningSystem/BULS/Models/Course.cs
3
3
using System; using System.Collections.Generic; using Buls.Interfaces; using Buls.Data; namespace Buls.Models { public class Course { private const int CourseNameDefaultLength = 5; private string courseName; public Course(string courseName) { ...
8ac3f73e4ca9294b0a488f6248fdf3b1c772253e
C#
bubdm/CSharpScripts-1
/src/DataTypes/tuples.csx
3.546875
4
var employee1 = GetEmployee1(); WriteLine($"Employee. Id: {employee1.Item1}, First Name: {employee1.Item2}, Last Name: {employee1.Item3}"); var employee2 = GetEmployee2(); WriteLine($"Employee. Id: {employee2.Item1}, First Name: {employee2.Item2}, Last Name: {employee2.Item3}"); (int Id, string FirstName, string Last...
915115b51f9d4112f8285284352a77594a839c59
C#
Danil20-8/FlyOn
/Assets/UI/ViewScripts/EventScripts/MessageListener.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; public class MessageListener : MonoBehaviour { Dictionary<Type, List<IListener>> listeners = new Dictionary<Type, List<IListener>>(); public void Send(object sender, object message) { List<IL...
b2c1c1cf60d73f5099f55c71344dd15d93bfed8c
C#
leakalmar/ISBolnice
/Projekat/Hospital-IS/Service/PatientService.cs
2.546875
3
using Hospital_IS.Model; using Hospital_IS.Service; using Hospital_IS.Storages; using Model; using System; using System.Collections.Generic; namespace Service { public class PatientService { //private PatientFileStorage pfs = new PatientFileStorage(); public List<Patient> AllPatients { get; s...
d104d002abf05e149368922ec4ca907302189673
C#
VisualVault/VSExampleProjects
/SOAP Web Service API Examples/VisualVault.Forms.Import/BusinessLogic/FormImportEngine.cs
2.515625
3
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text.RegularExpressions; using VVRuntime.VisualVault; using VVRuntime.VisualVault.Forms; using VisualVault.Forms.Import.Entities; using VisualVault.Forms.Import.Entities.Profiles; namespace VisualVault.Forms.Impo...
ea97f818044e595c200f153d79869c38bd6919b6
C#
Szune/DeconstructPattern
/Program.cs
3.1875
3
//#define TEST using System; using System.Text; using System.IO; #if TEST using DeconstructPattern; #endif namespace test_csharp_stuff { static class Program { static void Main(string[] args) { #if TEST Test(); #else GenerateDeconstructs(15); #endif } static void Test...
419ca117c1c6f510445cfe11ded3881803519374
C#
TnS101/SoftUni
/C# Advanced/Exercises/Funct program ex-4/Funct program ex-4/Program.cs
3.859375
4
using System; using System.Linq; using System.Collections.Generic; namespace Funct_program_ex_4 { class Program { static void Main(string[] args) { int[] input = Console.ReadLine() .Split().Select(int.Parse) .ToArray(); int lowerBounds = ...
3768d34bcd59c705d4118eda15be0860a0806a9b
C#
formist/LinkMe
/Framework/Host/Service/Source/ServiceMain.cs
2.5625
3
using System; using LinkMe.Environment.CommandLines; namespace LinkMe.Framework.Host.Service { internal class ServiceMain { private static void Main(string[] args) { CommandManager manager; try { // Create a manager from the configuration informatio...
101943a7ad8123be881b060fec8a0285ad621c55
C#
punker76/Umbrella
/Umbrella.Tests/Reflection/TypeExtensionsFixture.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; using nVentive.Umbrella.Extensions; using System.Reflection; namespace nVentive.Umbrella.Tests.Reflection { public class TypeExtensionsFixture { [Fact] public void GetMemberInfoExpre...
e65f51a8c78380f3bcfd037e5fd9eb0eb062fef7
C#
NathanDavis97/contracts
/Services/ContractsService.cs
2.6875
3
using contracts.Models; using contracts.Repositories; namespace contracts.Service { public class ContractsService { private readonly ContractsRepository _repo; public ContractsService(ContractsRepository repo) { _repo = repo; } public Contract Create(Contract newContract) { ...
fdd44bb3ad1daae30c68f6c9ac7361735e0daf54
C#
alexnestorov/TelerikAcademy
/07.ComponentTesting/03.Mocking/Cars/Cars.Tests.JustMock/CarsControllersTests.cs
2.890625
3
namespace Cars.Tests.JustMock { using System; using System.Collections.Generic; using System.Linq; using Cars.Contracts; using Cars.Controllers; using Cars.Models; using Cars.Tests.JustMock.Mocks; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class Cars...
9a348a63f684f62b85330668bdcb0e0e502b8ae9
C#
Tokotome/AdvancedCSharp
/HomeworkSetsAndDictionaries/ListDemo/ListDemo.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ListDemo { class ListDemo { static void Main(string[] args) { List<int> numbers = new List<int>(); numbers.Add(1); numbers.Add(2); ...
45bb8551799418d5611cb220a8cba46721c443d3
C#
shendongnian/download4
/code9/1571767-43727020-144401570-2.cs
2.53125
3
namespace foo.Controllers { public class BarController : Controller { private IHostingEnvironment _env; public BarController(IHostingEnvironment env) { _env = env; } public IActionResult Index() { ...
be1a60366a037eae509d5f018eba2882139cdb9a
C#
pirinit/TelerikAcademy
/ProgrammerTrack/1.c#Part1/6.Loops/8.GreatestCommonDivisor/GreatestCommonDivisor.cs
3.828125
4
using System; class GreatestCommonDivisor { static void Main() { string input = Console.ReadLine(); int firstNumber = int.Parse(input); input = Console.ReadLine(); int secondNumber = int.Parse(input); int temp; if (firstNumber < secondNumber) { ...
0772e1ac3dd9b1e0778b871c1fd2ea0887e96c05
C#
rantingmong/GameForest
/GameForest/GameForestGameCore/Messages/GFXGameSendUserData.cs
2.703125
3
using GameForestCore.Database; using Newtonsoft.Json; using System; using System.Collections.Generic; namespace GameForestCoreWebSocket.Messages { /// <summary> /// Message sent by the client informing there will be a game state modification/addition. /// </summary> public class GFXGameSendUserData : ...
71164b36e911057bf16887fc8c11d67598baf702
C#
christinebittle/varsity_mvp
/varsity_w_auth/Controllers/PlayerController.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.IO; using varsity_w_auth.Models; using varsity_w_auth.Models.ViewModels; using System.Net.Http; using System.Net.Http.Headers; using System.Diagnostics; using System.Web.Script.Serialization; names...
584955b5e3a3781d6535eedf27044e29ac49c882
C#
vardars/ci-factory
/tags/0.8.0.58/Product/Production/CIScript/CIScript.Core/Attributes/BuildElementAttribute.cs
3.078125
3
// CIScript - A .NET build tool // Copyright (C) 2001-2004 Gerry Shaw // Copyright (c) 2007 Jay Flowers (jay.flowers@gmail.com) // Ian MacLean ( ian@maclean.ms ) // Scott Hernandez (ScottHernandez_at_HOtMail_dot_dot_dot_com?) using System; namespace CIScript.Core.Attributes { /// <summary> /// Indic...
4e36e4d74afda708cf7dd2a734d09db0bbb40dcb
C#
rlclare92/MajorProjectJSV
/CSharp /blackJackGame.cs
3.234375
3
using System; namespace classes { class BlackJack { string input; int playersNextCard; int dealersTotalOfFirstDraw; int playersTotal; int playersHandTotal; public void playersHand() { Random rnd = new Random(); int playersFirstCar...
09d26b778da3a0a2eab005642e70807d2e799f1f
C#
embarbosa/SellsEverythingPracticeTestSolution
/SellsEverything.Data/GenderData.cs
2.53125
3
using SellsEverything.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SellsEverything.Data { public class GenderData { public List<GenderModel> GetGenders() { using (SellsEverythingDatabase context...
59c6babfb32a2161d0d9788365de6c4435643e43
C#
DanielaPuerta9815/Final
/Presentacion/aiCENTRO.cs
2.5625
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 LogicaNegocio; namespace Presentacion { public partial class aiCENTRO : Form { pub...
51e70945638d3fffc08eedce5bafa900e255f745
C#
shendongnian/download4
/first_version_download2/604339-59060111-210045299-2.cs
2.9375
3
ASPxTextBase MakeControl(String Type, String Name, int Length) { ASPxTextBase tbBase = null; switch (Type) { case "COMBO": tbBase = new ComboBox() { Items = new List<string>() }; break; ...
b4d917c4e86d97d243a8eb1ac9f6228a3732b1a7
C#
ljl123asd/BookShop
/BookShop.Web/App_Code/ProDisplay.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; /// <summary> /// ProDisplay 的摘要说明 /// </summary> public class ProDisplay { public static string GetProInfoCard(int bookId, string bookName, string bookPrice, string bookPath) { if (bookPath.Length==0) { ...
6452e9d5f1042416188f7a664ff17b285b829837
C#
jathalls/BatRecordingManager_v8.n
/DataVirtualizationLibrary/ItemsProvider.cs
2.859375
3
/* * Copyright 2013 Paul McClean 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 applic...
4256ce82d9258a4e10354472cee2228fb83d8167
C#
Novach/OpenDoor
/PhoneMarket/Models/DBInitilaizer.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; namespace PhoneMarket.Models { public class DBInitilaizer : DropCreateDatabaseAlways<PhoneContext> { protected override void Seed(PhoneContext context) { context.Phones.Ad...
596edd9a2a99a5352f1751c713b4ca78f9577739
C#
AlbertAY/Chromelion-Driver
/Chromeleon/DDK Examples/SinusChannel/Channel.cs
2.546875
3
///////////////////////////////////////////////////////////////////////////// // // Channel.cs // ////////// // // SinusChannel Chromeleon DDK Code Example // // Channel class for the SinusChannel example driver. // The SinusChannel driver creates two channel devices that // generate a sinus waveform during acquisition...
236bcb876348627e917e6a505d82d00a993a7f8c
C#
NearHuscarl/BotExtended
/src/RandomBots/Program.cs
2.625
3
using SFDGameScriptInterface; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RandomBots { public partial class Program : GameScriptInterface { /// <summary> /// Placeholder constructor that's not to be included in the ScriptWindow! /// </...
2327703273fc12cfbed5d2e40fbf57006894fa88
C#
BlueNoteDevelopment/database.edge.lib
/database.edge.lib/conversion/Row.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace database.edge.lib.conversion { public class Row { private List<object> _values; public List<object> Values { get { if (_...
9d4207699593e88fbbbccada9528670b87fa19ff
C#
levani1994/windows-forms
/WindowsFormsApp1/Form1.cs
2.65625
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Windows.Forms; namespace WindowsFormsApp1 { public partial class Form1 : Form { string connection = ConfigurationManager.ConnectionStrings["DbConnection"].Connecti...
2801091b6e4ee26d2469d8350173b4b36cc03096
C#
QsCompany/Q-Hoster
/App/Services/GuidService.cs
2.640625
3
using System; using System.Threading; using Server; namespace QServer.Services { [Core.HosteableObject(typeof(SessionIdService))] public class SessionIdService : Service { private static Guid _gsessionId = Guid.NewGuid(); private static string _sessionID = "\"" + _gsessionId.ToString("N") ...
e90d4a6179f4598d8517bf1c72a3026a91334760
C#
Fehler42/Pong
/Pong/Pong/Player2.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SFML.Window; using SFML.Graphics; namespace Pong { class Player2 { Vector2f playerPosition2; Sprite playerSprite2; public Vector2f getPosition(...
e4712b0568f6969abf494486a72b32d8718b604d
C#
L-Harrison/Lib
/Lib.Drawing/Knowledge/ImageExtends.cs
3.4375
3
using System.Drawing; namespace Lib.Drawing { public class StringToImageParameter { public string String { get; set; } public int Width { get; set; } public int Height { get; set; } public Font Font { get; set; } public Brush Foreground { get; set; } public Brus...
d7a63bd0adcc57aa90873c39a6c58b69368a59a4
C#
abousias/cab
/src/Providers/IAppInfoProvider.cs
2.59375
3
namespace ConsoleAppBase.Providers { /// <summary> /// Defines a provider for retrieving info about the actual application executing. /// </summary> public interface IAppInfoProvider { /// <summary> /// Gets the short version of the version information. /// </summary> ...
5d8640b8793c833c6ac5e2c752ef21b4bbe5b382
C#
Cornflakes1009/oop_one_class
/DailyTemps/DailyTemps/Program.cs
4.09375
4
using System; using static System.Console; class DailyTemps { static void Main() { int temp = 0; int total = 0; int average = 0; int tempCount = 0; int sentinelValue = 999; while (temp != sentinelValue) { WriteLine("Please enter a number val...
b1c9c8d24ad1325b625c0ec6f72230a0619fd283
C#
shenchauhan/UWPCommunityToolkit
/Microsoft.Toolkit.Uwp.SampleApp/Common/ThicknessConverter.cs
2.75
3
// ****************************************************************** // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILI...
982ef0bc12b0a134e66c2d8f69e6a4d0c0d48fea
C#
NickRatchev/PrintingHouse
/PrintingHouse.ConsoleClient/Program.cs
2.78125
3
namespace PrintingHouse.ConsoleClient { using Data; using System; using System.Linq; using Models; using Data.Calculations; class Program { static void Main() { //Utility.InitializeDatabase(); using (var context = new PrintingHouseContext()) ...
c6237a4479c8e168409e74a22b25e1325917b9f1
C#
exyi/redwood
/src/Redwood.Framework/Binding/ViewModelJTokenEvaluationVisitor.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Newtonsoft.Json.Linq; using Redwood.Framework.Parser; using Redwood.Framework.Resources; namespace Redwood.Framework.Binding { pub...
d4fa12aa3e28ede4efcb8e39efc18c750b9a7c3c
C#
Grimnak/LoZGame
/LoZGame/controller/Commands/Controllers/MouseController.cs
2.875
3
namespace LoZClone { using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; /// <summary> /// Controller for mouse inputs. /// </summary> public class MouseController : IController { private readonly MouseCommandLoader allCommands; private ICommand currentComma...
94feb296a7c154105b34545a20ee2b07bc694c3e
C#
sphinx20/GitHub-sahalux
/C#/Programs/Duplicates.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace My_Personal_Projects { public class Duplicates { public void Start() { int[] arr = new[] { 3, 6, 7, 9, 9, 10, 12, 13, 13, 13, 16, 19, 21, 34 }; ...
7efc97670beedfea4b70fcd31aea357e9b380b07
C#
dbaldwin/DroneBlocksAirSim
/DroneBlocksAirSim/MissionBuilder.cs
2.875
3
using DroneBlocksAirSim.Commands; using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DroneBlocksAirSim { // A basic mission // takeoff|fly_forward,20,in|fly_backward,20,in|fly_left,...
669509634bb16504ecf3b95bab26ced6df6726d6
C#
jkoh2020/HangManGame
/HangManRepo.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Media; namespace HangManGame { public class HangManRepo { public string isLetter(string word, List<string> letterGuessed) // to see letter is correct { ...
f2c80cb96fa6f845fa1f4ec6dbfd4d5f9321355e
C#
shendongnian/download4
/code5/925477-23200833-63363056-2.cs
3.171875
3
public abstract class CalendarBaseItem { abstract void Process(SomeData somedata); //... } public class RotaItem : CalendarBaseItem { public override void Process(SomeData somedata) { // now we know we're dealing with a `RotaItem` instance, //...
601806cd9e44da7e9bf7d95e20b38fb2b06d0fe9
C#
haoxinwong/p1
/WebUI/Models/OrderVM.cs
2.78125
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Models; namespace WebUI.Models { public class OrderVM { public OrderVM() { } public OrderVM(Order order) { this.LineItems = or...
c7f1dbcdbbfa9770f039c82406e923a9f3771f54
C#
luisurbinanet/apolloniax
/Open Dental/OpenDentBusiness/TableTypes/ProgramProperty.cs
2.65625
3
using System; namespace OpenDentBusiness{ ///<summary>Some program links (bridges), have properties that need to be set. The property names are always hard coded. User can change the value. The property is usually retrieved based on its name.</summary> public class ProgramProperty{ ///<summary>Primary k...
955543620ea5d2e397f61816bb0eb7b17ceb8678
C#
vishalishere/typec
/src/TypeC/TypeC/ProbingAssemblyDirectory.cs
3.171875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace TypeC { public class ProbingAssemblyDirectory { private string _directoryName; private List<string> _dllNames = new List<string>(); /// <summary> /// Setting the dir...
56011fa40c7a733b6e7f097340f8777344db4a1e
C#
srikanthpragada/MSNET_11_FEB_2019_CSHARPDEMO
/DelegateDemo.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace csharpdemo { class DelegateDemo { static bool IsEven(int n) { return n % 2 == 0; } static void Main(string[] args) { int...
bcaade6cf76eed66a945c636baa2ddcd2f1eec11
C#
rocklee2015/RicoSamples
/13-linqpad/00-sample/02-linq pad sample lib/ThinkingInLINQ/Chapter 7 Static Code Analysis/7-6. Generating Documentation Automatically.linq
2.734375
3
<Query Kind="Program"> <Reference>C:\Evaluant.Linq.Compiler.dll</Reference> <Namespace>Evaluant.Linq.Compiler</Namespace> <Namespace>MoreLinq</Namespace> </Query> public string GetSummary(string total, string methodName) { string search = methodName; string summary = total.Substring( total.IndexOf(search)+...
5348997b1fbe528204db1978743fe4290043b12c
C#
unity-game-framework/ugf-editortools
/Packages/UGF.EditorTools/Runtime/IMGUI.Types/TypeReference`1.cs
2.953125
3
using System; using UnityEngine; namespace UGF.EditorTools.Runtime.IMGUI.Types { [Serializable] public struct TypeReference<TType> : IEquatable<TypeReference<TType>>, IComparable<TypeReference<TType>> { [SerializeField] private string m_value; public string Value { get { return HasValue ?...
b4110663bd142e6c2280f910bf2bf426168f3b68
C#
MadsMosu/marching-cubes-gpu
/Assets/GPU Version/ChunkInstance.cs
2.625
3
/* Author: Gus Tahara-Edmonds Date: Summer 2019 Purpose: Used to communicate and hold some data for one specific chunk. Nothing too complicated. */ using System.Collections; using System.Collections.Generic; using UnityEngine; public class ChunkInstance : MonoBehaviour { public Mesh mesh; public ...