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
24566596057cfa4ce4f77e3d11035bff0f0703f8
C#
gimlichael/CuemonNetFramework
/Cuemon/Diagnostics/ITimeMeasuring.cs
2.859375
3
using System; using System.Diagnostics; namespace Cuemon.Diagnostics { /// <summary> /// Specifies a simple way to measure elapsed time for events or similar. /// </summary> public interface ITimeMeasuring { /// <summary> /// Gets the timer that is used to accurately measure elapse...
c594d4f96bceeffa404f37c2d11d7e1d9ddd8af3
C#
guiboars/GeneratorControl
/Tests/SensorTest.cs
2.78125
3
using GeneratorControl; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; namespace Tests { /// <summary> ///This is a test class for SensorTest and is intended ///to contain all SensorTest Unit Tests ///</summary> [TestClass()] public class SensorTest { ...
7fcdeb8002ecbd009acdb1a12d6f1df7b4e9fd97
C#
Infarh/MathCore
/MathCore/Graphs/LambdaGraphNode.cs
2.84375
3
#nullable enable using System; using System.Collections; using System.Collections.Generic; using System.Linq; // ReSharper disable UnusedMember.Global namespace MathCore.Graphs; public class LambdaGraphNode<TValue, TWeight> : IGraphNode<TValue, TWeight>, IEquatable<LambdaGraphNode<TValue, TWeight>> { private re...
eda5d1fc2152627ad5a534c5491674fb548bcd9e
C#
iavnish/SharedExchangeEmailActivity
/ExchangeSharedMailBoxActivities/ExchangeSharedMailBoxActivities/SendEmail.cs
2.6875
3
using System; using System.Activities; using System.ComponentModel; using Microsoft.Exchange.WebServices.Data; namespace ExchangeSharedMailBoxActivities { public class SendEmail : CodeActivity { /// <summary> /// Exchange Service as input /// </summary> [Category(...
0dc6115bd538f30df2c565529a6448dbdc06aac5
C#
Novaetra/MVP
/Assets/Final/Scripts/Objects/Elevator.cs
2.75
3
using UnityEngine; using System.Collections; public class Elevator : MonoBehaviour { private bool isDown = true; private bool isMoving = false; private GameObject player; public void interact(object[] paramtrs) { player = (GameObject)paramtrs[1]; //If the elevator isn't moving if (!isMovin...
7e637e0a18b92d49d478b772db834969d0d68c2f
C#
CraigBanach/openmtg
/MTGEngine/Zones/Deck.cs
2.875
3
using System.Collections.Generic; namespace MTGEngine { public class Library : Stack<Card> { public Library(IEnumerable<Card> cards) : base(cards) { } public Card Draw() { return this.Pop(); } } }
d3daf867eae79246a0c95d04957c201c41cdfe65
C#
Genghis-Khan2/Project01_7095_28225_dotNet5780
/BE/Comparer.cs
2.609375
3
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Text; namespace BE { public class HostComparer : IEqualityComparer<Host> { public bool Equals(Host a, Host b) { if (ReferenceEquals(a, b)) { return true; ...
25095cc3640ea30032e0011c6986ed97305d81f2
C#
yonasu/Viidya
/VidyaTutorial/VidyaTutorial/MouseController.cs
2.953125
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; namespace VidyaTutorial { public class MouseController { private readonly int _centerScreenX; private readonly int _centerScreenY; private const float RotateScale = MathHelper.PiOver2; public MouseController(int windowWidth, int windowHeig...
41a3fba304e41dc6e67cfe99eaeea365e7b0f09e
C#
huda-mokhtar/Restaurant-delivery-online
/Restaurant delivery online/Controllers/CustomersController.cs
2.640625
3
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Restaurant_delivery_online.IServices; using Restaurant_delivery_online.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Restaurant_delivery_online.Controllers { [Route("[control...
7c37579ce2c686852b6bf79f2f9c6e7c84ddf98a
C#
Jothaka/TabletopAdventures
/Pokemon Tabletop Adventures Companion/Assets/Scripts/Conditions/OrCondition.cs
2.78125
3
using System; using System.Collections.Generic; [Serializable] public class OrCondition : Condition { public List<Condition> ConditionsToCheck = new List<Condition>(); public override bool TrainerMeetsCondition(Trainer trainer) { if (ConditionsToCheck.Count > 0) { for (int i =...
579fb5a273e087e9e631624e73af51645dbfcd5b
C#
owsir/RDemoViaCSharp
/RDemoViaCSharp.RServeCLI/SexpArrayBool.cs
3.09375
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="SexpArrayBool.cs" company="Oliver M. Haynold"> // Copyright (c) 2011, Oliver M. Haynold // All rights reserved. // </copyright> // <summary> // An array of (trivalue, i.e., incl...
93dd16374c70bcbe42db10786d488bf115c4457d
C#
linaZaytseva/Teem_Project
/TeemProject/Form2.cs
2.71875
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 TeemProject { public partial class Form2 : Form { public Form2(int data, List<...
86b948ec6dc835a069530ba68f86f993137c48ad
C#
Granddisap/laba1_2sem
/ComplexCal/MainForm.cs
3.03125
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.Text.RegularExpressions; namespace WindowsFormsApp1 { public partial class MainForm : F...
feeb0903451ee6ad3f3412e379573747cae16507
C#
guibass96/ManagerBarber-Api
/Services/ClienteService.cs
2.78125
3
using System.Collections.Generic; using System.Threading.Tasks; using ManagerBarber_Api.Domain.Repositories; using ManagerBarber_Api.Domain.Models; using System.Linq; using System.Text; using System; namespace ManagerBarber_Api.Services { public class ClienteService { private readonly IClientesRepository<...
e85ac8883b409f3b980ae8a66e46e7881a123a37
C#
kobr4/direct3D-projects
/MyHelloWorldSlimDxWithMMV/Camera.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SlimDX; using SlimDX.Multimedia; using SlimDX.RawInput; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; namespace MyHelloWorldSlimDxWithMMV { public class Camera { priv...
855e099b718f46a3c974ca1f98d6b658c7ecc7fc
C#
hhsherrill/YuQing
/szlibInfoThreads/szlibMeitiThread.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Net; using System.Web; using System.IO; using System.Text.RegularExpressions; using System.Windows.Forms; using szlibInfoUtil; namespace szlibInfoThreads { public class szlibMeitiThread {...
5b230057ea582d15422800a6f5c9d199027560e7
C#
DennysRivera/DARP_00026919_2EP
/DARP_00026919_2EP/Vista/frmAdmin.cs
2.53125
3
using System; using System.Collections.Generic; using System.Windows.Forms; namespace DARP_00026919_2EP { public partial class frmAdmin : Form { private AppUser usuario; public frmAdmin(AppUser user) { InitializeComponent(); usuario = user; } ...
41450f483e6593633a7dfc91416b176c637d4772
C#
nwillems/truckplanner
/model/model.cs
2.90625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using Microsoft.EntityFrameworkCore; namespace Truckplanner { namespace Model { public class TruckPlannerContext : DbContext { public DbSet<Driver> Drivers { g...
c1b7d1b2a736cedd02835c8a606a7107fcb9d862
C#
swneng/Diaview
/WCF/DiaView.WCF/demo/security/basicHttpBinding_Message_Certificate/WCFService/Contract.cs
2.625
3
using System; using System.Collections.Generic; using System.Text; using System.ServiceModel; using System.Runtime.Serialization; using System.Security.Principal; using System.Threading; using System.Security.Permissions; namespace WCFService { [ServiceContract(Namespace = "http://chnking.com")] public interface IGet...
e4b9dabf066faa431254fafbfdf06a00bd036c30
C#
tkaledkowski/kwmonitor
/KWMonitor/KWMonitor/Services/DistrictService.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using KoronaWirusMonitor3.Models; using KoronaWirusMonitor3.Repository; using Microsoft.EntityFrameworkCore; namespace KWMonitor.Services { public class DistrictService : IDistrictService { ...
596e2cea3c6dee56de2337b78b258190a46fa643
C#
omarwasfi/W-SmartShop
/W-SmartShopSelution/SmartShopClassLibrary/LogicalClasses/InstallmentProduct/InstallmentProduct.cs
2.734375
3
using Dapper; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Library { public static class InstallmentProduct { /// <summary> /// Foreach InstallmentProduct in The Installment , save it in the dat...
eab7541c96cb659e3359d82e94f3d484e6205429
C#
tStandalone/tStandalone
/patches/tModLoader/Terraria/ModLoader/Core/MemoryTracking.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Graphics; namespace Terraria.ModLoader.Core { internal class ModMemoryUsage { internal long managed; internal long sounds; internal long textures; internal long code; inte...
5aac686af4ece75d16d6da37a3cb51c9945a0c07
C#
isle-studios/CowDog
/Assets/Scripts/PlayerSprite.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerSprite : MonoBehaviour { private float horizontal; private float vertical; private bool facingRight; void Update () { horizontal = Input.GetAxisRaw("Horizontal"); vertical = Input.GetAxisRa...
2563b526c38bd97d2e2e3a4388484ab5e2bd6948
C#
AndresDaCosta/.NET
/ConsoleApplication1/Program.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int numero; String palabra = null; palabra = C...
70d0a733cc86ed2a3361afcd08923395f135426d
C#
wangvic-0921/HenXinSMS
/Demo/Models/CheckRepeat.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace HengXinSMS.Models { public class CheckRepeat { public int search( string check) { using (var context = new HenXinSMSContext()) { var user_che...
da7a8ca16f5f0cfe176e43e48d0a417018df7709
C#
Bobris/Njsast
/Njsast/Ast/AstDefault.cs
2.71875
3
using Njsast.Output; using Njsast.Reader; namespace Njsast.Ast; /// A `default` switch branch public class AstDefault : AstSwitchBranch { public AstDefault(string? source, Position startPos, Position endPos) : base(source, startPos, endPos) { } public override AstNode ShallowClone() { va...
ee26e4653b5b984130473e067fab2b859a825546
C#
Joan1114/Ejercicios-7
/Ejercicio N5 (2)/Ejercicio N5 (2)/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ejercicio_N5__2_ { class Program { static void Main(string[] args) { int d = 0, m = 0, cant = 0; string mes1 = ""; int[] mes = new i...
6899862e9fb3149e02e6e44b8749fcd6b5b85022
C#
W0lfCr0w/maternity-ward-system
/SousChef.cs
2.9375
3
namespace maternity_ward_system { public class SousChef: Cook, IExpertEmployee { public double ExpertHourlyPay{get; private set;} public SousChef(string fname, string lname, string id, int age, double hours) :base(fname, lname, id, age, hours) { ExpertHour...
6c33a96d47512bc7acc427500be41cfc73b9d65f
C#
siyamandayubi/Orchardcollaboration
/src/Orchard.Web/Modules/S22.IMAP/Provider/Auth/Sasl/Mechanisms/Ntlm/Type1Message.cs
2.796875
3
using System; using System.Text; namespace S22.Imap.Provider.Auth.Sasl.Mechanisms.Ntlm { /// <summary> /// Represents an NTLM Type 1 Message. /// </summary> internal class Type1Message { /// <summary> /// The NTLM message signature which is always "NTLMSSP". /// </summary> static readonly string signature...
10cbe59c8139b7366d76f8eca0fe0cf3805ab457
C#
TechieGuy12/PlexServerAutoUpdater
/Log.cs
3.15625
3
using System; using System.Collections.Generic; using static System.Environment; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TE { /// <summary> /// Contains the properties and methods to write a log file. /// </summary> public static class Log { ...
e554cbfbf00a6630e9454e709e108b2b4eefdb68
C#
as495969/leetcode
/easy-905/Program.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace easy_905 { class Program { static void Main(string[] args) { int[] ints = Solution.SortArrayByParity(new int[] { 3, 1, 2, 4 }); Console.ReadKey(...
409231f04d085939673e8b435c213f58cb00396f
C#
michael-hawker/UWPCommunityToolkit
/Microsoft.Toolkit.Uwp.UI.Controls/ControlHelpers.Math.cs
2.953125
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...
0426591a24c19792c3e549afb9cd7f5f7060a718
C#
dgw2jr/NHibernateDDD
/NHibernateDDD/Employee.cs
2.953125
3
using System; using CSharpFunctionalExtensions; using NHibernateDDD.Events; namespace NHibernateDDD { public class Employee : Entity { protected Employee() { EmployeeId = Guid.NewGuid(); } private Employee(EmployeeName name, EmploymentRole role) : this() { ...
1953a52f47046a3dfd22102bcdfbe3e0c3964b03
C#
danieljt/Breakout
/Assets/Scripts/Physics/PaddleSurfaceController.cs
2.765625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace StupidGirlGames.BreakOut { /// <summary> /// Controls the surface of the paddle. A paddle can affect incoming balls depending on /// the collision point on the paddle surface or the paddle speed. By keeping that infor...
1722d0725233aa160968796b76a9dc324fb7b7ee
C#
MSzmaj/pokedexapi
/src/Api/Controllers/PokemonController.cs
2.546875
3
using Microsoft.AspNetCore.Mvc; using PokedexApi.Common.Query; using PokedexApi.Service.Services.Pokemon; using System.Threading.Tasks; using AutoMapper; using PokedexApi.Api.Common.Filters; using PokedexApi.Api.InputModels; namespace PokedexApi.Api.Controllers { [ApiController] [ServiceFilter(typeof(ExceptionFilter...
5ff96e6a522d22b0d0baa21b42a208f4ad8678ac
C#
Felandil/Chiota
/Chiota/CEXEngine/Crypto/Cipher/Asymmetric/Sign/RNBW/Arithmetic/RainbowUtil.cs
2.953125
3
#region Directives using VTDev.Libraries.CEXEngine.Utility; #endregion namespace VTDev.Libraries.CEXEngine.Crypto.Cipher.Asymmetric.Sign.RNBW.Arithmetic { /// <summary> /// This class is needed for the conversions while encoding and decoding, as well as for comparison between arrays of some dimensions ///...
9e4bc89ac6bf588caf513bf6c2bdae605827cd99
C#
overseer25/MyRPG
/SOSCSRPG/Engine/Factories/WorldFactory.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Engine.Models; namespace Engine.Factories { /// <summary> /// Builds Worlds. This class is internal, meaning it can only be used by the Engine project. /// </summary> internal stat...
f6fd08f6814adc852f1e261c477af1502183eb2f
C#
GemHu/VViiGGEETT_VV33
/DothanTech.Controls/Message/DzMessageBox.cs
2.734375
3
/// <summary> /// @file DzMessageBox.cs /// @brief 公共的 MessageBox。 /// @author DothanTech 吴桢楠 /// /// Copyright(C) 2011~2014, DothanTech. All rights reserved. /// </summary> using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Dothan.Controls { /// <summary> ///...
9e5e0ffedd5b9b4bcf13a05090809a46923a502d
C#
leejon1122/PracticeProjects
/GitHub/GitHub/NummerSwap.cs
3.765625
4
using System; using System.Collections.Generic; using System.Text; namespace GitHub { public class NummerSwap { public void Swap() { Console.Write("Voernummers in: "); string nummers = Console.ReadLine(); string result = SwapNummer(nummers); res...
30145b0fe8a479a49e6324d6b587463eff049327
C#
Little-Prayer/AtCoder
/ABC157/D/Program.cs
3.171875
3
using System; namespace D { class Program { static void Main(string[] args) { var NMK = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); var N = NMK[0]; var M = NMK[1]; var K = NMK[2]; var friendship = new UnionFind(N); var friend = ne...
738e4587364ade5fac79463ad6c66c86653ee861
C#
Mazel-Tovr/Optimization
/src/lab5/Program.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab5 { class Program { static void Main(string[] args) { nelderMeadMethod(); Console.ReadKey(); } static float[] X; st...
6ab57ee69dd8e7fdf40651bcabd58c2063959f58
C#
mdailor/CraigSearch
/ConfigDialog.cs
2.59375
3
using System; using System.Collections; 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.Configuration; namespace CraigSearch { public partial class ConfigDialog : Form { A...
57149446607d2aeda05cae7ab88b5101e5b7ffba
C#
qwertie/Theraot
/Core/Theraot/Collections/Specialized/CustomComparer.cs
2.890625
3
using System; using System.Collections.Generic; using Theraot.Core; namespace Theraot.Collections.Specialized { [global::System.Diagnostics.DebuggerNonUserCode] public class CustomComparer<T> : IComparer<T> { private readonly Func<T, T, int> _comparison; public CustomComparer(Func<T, T, i...
07192d799af56b51834207faec139a0a69a1a1d1
C#
TanukiSharp/StudioPostEffect
/src/InternalEffect/UIParameters/MousePadControl.cs
2.765625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; namespace InternalEffect.UIParameters { public partial class MousePadControl : UserControl { public delegate void CoordinateHandler(float[] coords); ...
ec65b5800973ae787b59e26c26667ebd0144e667
C#
ErikParso/MyRepo
/TroubleShooter/Kros.TroubleShooterClient/ViewModel/ObservableObject.cs
2.640625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Kros.TroubleShooterClient.ViewModel { /// <summary> /// view models are implementing this class /// </summary> public abstract class ObservableObje...
385a01ff641124be42e5a5e74b2ed52c7c87c59a
C#
pmartin36/LDJAM39
/Assets/Resources/Scripts/ItemWeaponType.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.ComponentModel; public class ItemWeaponType : Item { public enum WeaponType { [Description("Single Shot")] SINGLE, [Description("Fork Shot")] FORK, [Description("Rear Shot")] FRONTBACK, [Description("Ring Shot"...
2dd42fb3c5781a6c09d55b8e0f44af470ba4da9f
C#
MarcinBluszcz2020/HuionKeydialSuite
/HKS.Core/RoboustDevice.cs
2.625
3
using HidLibrary; using System; namespace HKS.Core { public class RoboustDevice { private readonly DeviceWaiterTask _deviceWaiterTask; public event EventHandler<HidReport> ReportReceived; private bool _attached; public RoboustDevice(Func<HidDevice> deviceAccessor) { ...
ea3ea1aad37f8a01d0d9684afd35ec21ce49b540
C#
doviledovile/CSHARP.VCS
/TestDotNetCore/TestDotNetCore/Controllers/ArraysController.cs
2.765625
3
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; //namespace TestDotNetCore.Controllers //{ // [Route("api/[controller]")] // [ApiController] // public class ArraysController : ControllerBase // ...
9a4efb6c13047fdbe7e347e25e240e4ebedc2acd
C#
khaki560/FuzzyStudia2
/lib/variable/Summarizer.cs
2.828125
3
using lib.database; using lib.tools; namespace lib.variable { internal class Summarizer : LinguisticVariable { string attribute; public Summarizer(LinguisticVariableParameters par) : base(par) { attribute = par.attribute; } public override double Compute(st...
a6fc4d60b37497b8afbd9ca8f55c21d5f3cd5ff9
C#
Zubyfrank/LibraryManager
/Views/DailyReport.cs
2.5625
3
using MetroFramework.Forms; 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 LibraryManager.Models; using Newtonsoft.Json; namespace LibraryManager...
b402125aee4b447fb546af5a2b64878a9248d1b0
C#
HaKDMoDz/baro-corelibrary
/Baro.CoreLibrary/OpenNETCF/Ras/ConnectionOptions.cs
2.515625
3
using System; using System.Collections.Generic; using System.Text; namespace OpenNETCF.Net { /// <summary> /// Specifies connection options. /// </summary> public enum ConnectionOptions { /// <summary> /// If this flag is set, the CountryCode, and AreaCode members of the RasEntry ar...
2fd15673a0b22cfeddf161c7cb37642402262248
C#
stporteur/ClashStats
/ClashStats/CustomControls/DataGridViewRating/DataGridViewRatingCell.cs
2.78125
3
using ClashStats.Properties; using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ClashStats.CustomControls.DataGridViewRating { public class DataGridViewRatingCe...
3d7476f0de94c1f3d91ae35e8f58b51d08eb523e
C#
italoaguiar/MASLAB
/src/OxyPlot.Avalonia/Plot.Properties.cs
2.609375
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="Plot.Properties.cs" company="OxyPlot"> // Copyright (c) 2014 OxyPlot contributors // </copyright> // <summary> // Represents a control that displays a <see cref="PlotModel" />...
6d33455ac57a7c854f11960a258686f563548b29
C#
keshavsingh4522/ASP.Net-Core-And-Web-API
/Attribute_And_Reflection/Reflection_1/Program.cs
3.796875
4
using System; using System.Reflection; namespace Reflection_1 { class Program { static void Main(string[] args) { #region Type // same behaviour //Type T = Type.GetType("Reflection_1.Customer"); //Type T = typeof(Customer); Custome...
00c1419f12149247bf5abdc376ae7d4c174461b1
C#
wf539/CSharpDotNETWebDevsGuide
/code_12/jokesService/userAdminImplement.cs
2.875
3
using System; using System.Data; using System.Data.SqlClient; namespace jokesService { /// <summary> /// Implementation class for userAdmin web service. /// </summary> /// <remarks> /// Author: Adrian Turtschi; aturtschi@hotmail.com; Sept 2001 /// </remarks> public class userAdminImplement { /// <s...
d68cfca5c0d83fd8da7bef11afc9a8c75914d159
C#
deyantodorov/TelerikAcademy
/Database/HW11.EntityFramework/T01.Northwind/DaoClass.cs
3.109375
3
namespace T01.Northwind { using System; public static class DaoClass { public static void InsertCustomer(string customerId, string companyName, string city) { NorthwindEntities connection = new NorthwindEntities(); using (connection) { v...
2be701925350a82ce00e1e0de39c68d53b549388
C#
HDKnight/WebApplication1
/XML格式字符串解析/Program.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace XML格式字符串解析 { class Program { const string xmlStr = "<DETECT_ITEM RuleID='007' Caption='整车装备'>" + "<RULE name='1' caption='1' Logi...
5ba887423f9e5902ad4edc7d76cc3771124d7953
C#
stefanNaumov/TelerikAcademy
/CSharp/Arrays/05.MaxInreasingSequence/MaxIncreasingSeq.cs
4.125
4
using System; //Write a program that finds the maximal increasing sequence in an array. Example: {3, 2, 3, 4, 2, 2, 4}  {2, 3, 4}. namespace _05.MaxInreasingSequence { class MaxIncreasingSeq { static void Main() { int[] array = new int[] { 3, 2, 3, 4, 2, 2, 4 }; ...
eabec837d8fde26470f3dac70b64294d5e679e2f
C#
mygibbs/Chess
/ChessLib/ChessLib/ChessBoard.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ChessLib.Behaviours; using ChessLib.Pieces; using ChessLib.Enums; namespace ChessLib { /// <summary> /// The main Chess board. /// </summary> /// <remarks>This is also the controller of the game.</remarks> ...
e6e5eba12651ae432a7e0caccf1d53101700a1e6
C#
flipbit/syntax
/Source/Syntax.Data/SqlUpdate.cs
3.15625
3
using System.Data; namespace Syntax.Data { /// <summary> /// Builds an SQL UPDATE statement /// </summary> /// <typeparam name="T"></typeparam> public class SqlUpdate<T> : SqlCommand<T> { /// <summary> /// Initializes a new instance of the <see cref="SqlInsert{T}" /> class. ...
f09dc3441a68fe868b15e665e4b166ed48a62338
C#
sabbir1305/CinemaRestApi
/CinemaRestApi/Services/Reservations/ReservationRepo.cs
2.703125
3
using CinemaRestApi.Data; using CinemaRestApi.Models; using CinemaRestApi.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CinemaRestApi.Services.Reservations { public class ReservationRepo : IReservation { private CinemaDbContext _...
0becce3f26b0db8e59cc3bf87bb7954a3a672b3a
C#
angelocuartel/Csharp-Calculator-winform
/Calculator/Length.cs
2.9375
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 Calculator { public partial class Length : UserControl { public Length() ...
29182a02c1f7ec31e4f0ec62d18ad29b7e8d6f11
C#
LeanCabeza/laboratorio2_TP
/RECUPERATORIOS TP/TP4-Concesionario/Entidades/ConexioBD.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; using System.Data; using Excepciones; namespace Entidades { public static class ConexionBD { static SqlConnection conexionBD; /// <summary> ...
cea5aaa9c76e32694b5415644221f7b3a663fc66
C#
benlincoln/Dissertation-Attendance-Automation
/API/API/Controllers/EventController.cs
2.796875
3
using API.Models; using Microsoft.AspNetCore.Mvc; using Npgsql; using System; using System.Collections.Generic; namespace API.Controllers { [Route("api/[controller]")] [ApiController] public class EventController : ControllerBase { // GET api/event // Get next event an...
11de6ed38fb4a372838a10d3d3776778922bb535
C#
zigaosolin/SharpMedia
/SharpMedia/Math/Vectorf.cs
2.828125
3
// This file was generated by TemplateEngine from template source 'Vector' // using template 'Vectorf. Do not modify this file directly, modify it from template source. // This file constitutes a part of the SharpMedia project, (c) 2007 by the SharpMedia team // and is licensed for your use under the conditions of the...
5b480df033e5121ad64fa1291709f995a9e0967a
C#
Bubeee/RoadSigns.VBP
/SurfaceHandling/Designs/DesignExpression.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SurfaceHandling.Designs { class DesignExpression:IDesign { public Func<PixelClass, bool> DesignFunc { get; private set; } public DesignExpression(Func<PixelClass, bool> ...
0fd535e04ba1c9abf72d340831095612a12056a5
C#
wj1s/Refactor15
/Refactor/test/LifelineFacts.cs
2.59375
3
using System; using Refactor.Common; using Refactor.Model; using Xunit; namespace Refactor.test { public class LifelineFacts { private LifelineSite subject; public void SetUp() { subject = new LifelineSite(); } [Fact] public void TestZero() ...
da53dc4d2db2f4ed792ac540dd410cf1ba88091d
C#
crazyjackel/enjin-csharp-sdk
/EnjinCSharpSDK/Graphql/IVariableHolder.cs
2.5625
3
/* Copyright 2021 Enjin Pte. 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 law or agreed to...
4dae852d32c2bcf291ec23b189a0579a9d95f1e5
C#
JoelCortezOrtega-bot/TecLab---Proyecto
/LabTec/LabTec/ModificarClave.cs
2.671875
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 LabTec { public partial class FrModificarClave : Form { int LocalID; ...
759bacc9e5b28bc0ba742a72725bbd7ad2d1e8e9
C#
KaptenJon/ComponentOne-WinForms-Samples
/NetFramework/FlexChart/CS/FlexChart101/Samples/Toggle.cs
2.625
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; using C1.Win.Chart; using System.Drawing.Drawing2D; namespace FlexChart101.Samples { public partial ...
9d465eca4f6f50fb37bb2b45efe0e7d375f87336
C#
Aptiv-WLL/search-trie
/SearchTrieUnitTests/TernarySearchTrieTests/TernaryTrie_RemoveTests.cs
3.0625
3
using System; using System.Collections.Generic; using Global.RandomLibraries; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Global.SearchTrie.Tests { [TestClass] public class TrieTests_Remove { #region --- Parameters --- private TernarySearchTrie<char, int> Trie = new Terna...
35069e9342085be883ac57d696e761e73019f220
C#
SimeonStoykov/SoftUni
/C# basics/BGCoder/Telerik 5 December 2013 Evening/Eggcelent/Eggcelent.cs
3.328125
3
using System; class Eggcelent { static void Main() { int n = int.Parse(Console.ReadLine()); int firstStars = n - 1; int innerDots = n + 1; int outerDots = n + 1; int width = 3 * n + 1; int specialFirstRow = 3; int specialSecondRow = 4; int downOu...
14a04d7f7dd3c2647e3e5b2adb95294aeff5ece9
C#
MattMarkgraaff/Entelect
/src/Entelect/Types/TypeExtensions.cs
3.15625
3
using System; using Entelect.Extensions; namespace Entelect.Types { /// <summary> /// Extension methods for working with CLR types /// </summary> public class TypeExtensions { /// <summary> /// Takes in a type name string and tries to get the built in system type from that ...
59e6e752f2a7f956a272e418a1dce87f4a5275e7
C#
joebir/csharplibrary
/0.06_ForLoops/Program.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _0._06_ForLoops { class Program { static void Main(string[] args) { for (int i = 0; i <= 10; i += 2) { Console.WriteLine(i); ...
cdf153d86ad722c32a6a7be8395628df8a113fb7
C#
Dred95/Calculatorofdeath
/CalculatorOfDeath/CalculatorOfDeath/Sort/BubbleSort.cs
3.375
3
namespace CalculatorOfDeath.Sort { public class BubbleSort : ISort { public int[] Sort(int[] mass) { int temp; for (int i = 0; i < mass.Length - 1; i++) { for (int j = 0; j < mass.Length - i - 1; j++) { if (...
145d7f50db84453e4ad627e100ad31ee0b317e2c
C#
5l1v3r1/CARPARK
/CARPARK.Service/Interfaces/ISubscriberService.cs
2.640625
3
using CARPARK.DTO.EntitisDTO; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CARPARK.Service.Interfaces { public interface ISubscriberService { /// <summary> /// Görderilen id ile Abone veri seti döndürülür. ...
8cacb8b7aa40d308e36e3c71e909c3b7b9fa1514
C#
KorokinYura/TimeLine
/Assets/Scripts/HandInstance.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class HandInstance : MonoBehaviour { public void PlaceCardInHand(GameObject card) { card.transform.SetParent(transform); UpdateCardsLocation(); } public void UpdateCardsLocation() { var c...
63274256ec4abd5e41afd03fd796ced33b164356
C#
jangocheng/BitEx
/BitEx.Dapper/Core/KeyAttribute.cs
2.984375
3
using System; namespace BitEx.Dapper.Core { [AttributeUsage(AttributeTargets.Property)] public class KeyAttribute : Attribute { /// <summary> /// The column name. /// </summary> /// <returns> /// The column name. /// </returns> public string ...
b3aecdbacb4ebe30ca36f41ae9373f0af336d0dc
C#
erinaldo/siscobras
/mdlPDF/Xml2PDF/Source/Altsoft/PDFOX/Function.cs
2.5625
3
namespace Altsoft.PDFO { using Altsoft.Common; using System; using System.Collections; using System.Reflection; public abstract class Function : Resource { // Methods static Function() { Function.DictKeyName = "Function"; } internal Function(...
fc5fd3bf717434f42b55794abf8c8a79f9703308
C#
juanDeVicente/SummerSchool
/Variables/Program.cs
3.90625
4
using System; namespace Tipos { class Program { static void Main(string[] args) { int a = 3; //Este tipo de variable es de tipo entero, sin decimales float b = 3.14f; //Este tipo de variable es decimal con precisión de coma flotante de 32 bits, con decimales y más peque...
df3edd829a09cd41550e75479423ab84dd1c46a5
C#
AAmanzi/Internship-3-Military
/military/Program.cs
3.390625
3
using System; using military.Models; using military.Enums; using military.Interfaces; namespace military { class Program { static void Main(string[] args) { var myTank = new Tank(68000, 70); var myWarship = new Warship(35000, 80); var myAmphibian = new Amphi...
1fe03d4c4eda5459f464d716f1f588d8afa8afeb
C#
wndtanaka/DIP_SQL
/Assets/Scripts/Timer.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; // countdown timer fore resending another email public class Timer : MonoBehaviour { #region MyRegion public static float resendTimer = 60; public Button resendBu...
fb4d1ce24f69f6e287dfeb2a98dd88c866653ff9
C#
JasFreaq/RPG-Project
/Assets/Scripts/Inventories/RandomDropper.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using GameDevTV.Inventories; using UnityEngine; using UnityEngine.AI; namespace RPG.Inventory { public class RandomDropper : ItemDropper { //Config Data [Tooltip("How far the pickups are scattered from the dropper.")] [Seriali...
d5804f86e38a33d8798fb2d4b0fe55fe1b84c553
C#
Zamazi/FFTRPG
/FF TRPG Database Management Service/FF TRPG Database Management Service/DatabaseManagementService.cs
3.078125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; using FF_TRPG_ClassLibrary; namespace FF_TRPG_Database_Management_Service { /// <summary> /// Basic database class for TRPG ...
733b382aef95d353ac2bbcfed71194e6c853f08d
C#
Rene-Sackers/MakeTopmost
/src/MakeTopmost/Services/Application.cs
3.109375
3
using System; using System.Linq; using MakeTopmost.Extensions; using MakeTopmost.Models; namespace MakeTopmost.Services { public class Application { public void Process(Options options) { if (options.WindowHandle.HasValue) { ToggleWindowTopmost(options.WindowHandle.Value); return; } QueryFo...
50fa552bfb26c6b060fe15946f2e9432fdf2d7d5
C#
hahaking119/coaltrans
/COMM/Util/DataUtility.cs
2.734375
3
using System; using System.Collections.Generic; using System.Text; using System.Data; using CoalTrans.Model; using System.Collections; using System.Reflection; using System.Data.SqlClient; namespace CoalTrans.Util { public class DataUtility { /// <summary> /// תΪresultobject ...
1941c3410599dda8352798b9aacf19da71d36e82
C#
MrSliddes/GameDevAI
/BehaviourTreeExample/Assets/Scripts/Tymon Scripts/TAB Behavior Tree/VariableType.cs
2.84375
3
using UnityEngine; namespace TAB.BehaviorTree { /// <summary> /// This class is used to pass trough a value and be able to change that value later in a different script. This stuff is apperently not possible? cannot use Instantiate(VeriableType<T>) /// </summary> /// <typeparam name="T">The type of th...
fa7116945f5076f3978a352696ad14edbfaa547c
C#
bellatesla/Helpful-Scripts-and-Extensions
/Unity Extentions and Misc/MathB.cs
3.046875
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public static class MathB { public enum Shapes { HalfCircle = 0, Circle = 1, } public static Vector3[] CircleOfPositions(float radius, int amount) { Vector3[] objectPo...
0544485ee49a913c77e76141835966928a5eccfe
C#
truong2307/dotnet5-rpg
/Services/CharacterService/CharacterService.cs
2.8125
3
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AutoMapper; using dotnet5_rpg.Dtos.Character; using dotnet5_rpg.Models; using System; using dotnet5_rpg.Data; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Http; using System.Security.Claims; namespace dotnet5_rp...
55eb5940de993c841dc4e404fbcac7802e823711
C#
bncamp/DBTestStresser
/DBTestStresser/Model/ExampleStore/Product.cs
2.875
3
using DBTestStresser.Util; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Json; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace DBTestStresser.Model { public class Product : ExampleStore.ModelExampleStore...
9df22e5786745cb5fef5228f586ee88e89d22aba
C#
shahabsharafi/SimpleERP
/Libraries/SimpleERP.Libraries.Infrastructure/Entities/CollectionResult.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; namespace SimpleERP.Libraries.Infrastructure.Entities { public interface ICollectionResult<TData> { IEnumerable<TData> Rows { get; } long RowCount { get; } } public class CollectionResult<TData>: ICollectionResult<TDa...
c15bca70278c9878071a555e1fe15a27685e971c
C#
duy81020/Excercise05
/Excercise5A/Excercise5A/Program.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Excercise5A { class Program { static void Main(string[] args) { Print_a_2_z_v1(); while(true ) { char c = Console.Re...
751b61dde6dbecfa8de61d2e923075b20d14185e
C#
bubdm/EsriJSON.NET
/EsriJSON.NET/JsonLayerContainer.cs
2.96875
3
using System.Collections.Generic; using Newtonsoft.Json; namespace EsriJSON.NET { /// <summary> /// Represents a container for layers, which can be serialized to EsriJSON /// </summary> public class JsonLayerContainer { // TODO: add extent property! /// <summary> /// Layer...
f0ec42ba86e9976e927f64c0c1223ce98de37710
C#
alaudo/MerchantsGuideToGalaxy
/Guide/Universal/RomanExtensions.cs
3.640625
4
using System; namespace Guide.Universal { /// <summary> /// Container for Roman enum extensions (to allow fluent interface syntax) /// </summary> public static class RomanExtensions { /// <summary> /// If the string is the valid Roman digit /// </summary> //...
516c11077b5ba50cbf5b44e1d8f56a9b36da30bb
C#
phillsteele/MeterReadingDemo
/src/Services/MeterCsvLineParser.cs
3.015625
3
using MeterReader.Model; using System; namespace MeterReader.Services { public class MeterCsvLineParser : IMeterCsvLineParser { private readonly IMeterCsvValidator _meterCsvValidator; public MeterCsvLineParser(IMeterCsvValidator meterCsvValidator) => _meterCsvValidator = meterCsvValidator; ...
88a409abac6a9539442596d2a64df5f82f7bb401
C#
MrPerekrestov/LaboratoryBookWindowsPublic
/LaboratoryBook/SelectColumnsWIndow/SelectColumnsCommandImplementation.cs
2.78125
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.Input; namespace LaboratoryBook.SelectColumnsWindow { public partial class SelectColumnsWindow : Window { //r...
11e9fc343535a1bbd70dc1dd0fbf44808a9dcc35
C#
paulofrederico84/sances
/ProjetoSancesWebAPI/Controllers/ProdutoController.cs
2.6875
3
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using ProjetoSancesWebAPI.Data; using ProjetoSancesWebAPI.Models; namespace ProjetoSancesWebAPI.Controllers { [ApiController] [Route("[controller]")] public class ProdutoController : ControllerBase { private readonly IR...
b9a981a8b9ac311032f46350550d0fb4551b6052
C#
just-me-/dafny-language-server
/Source/DafnyLanguageServer/WorkspaceManager/Workspace.cs
2.90625
3
using DafnyLanguageServer.Commons; using OmniSharp.Extensions.LanguageServer.Protocol.Models; using System; using System.Collections.Concurrent; namespace DafnyLanguageServer.WorkspaceManager { /// <summary> /// This <c>WorkspaceManager</c> buffers for every Dafny file a valid intermediate version. /// Th...
49ddb992f382ce77e46924b64bd06a5645f30b9e
C#
edurdias/architecture
/foundation/Foundation.Data/DataContextWrapper.cs
2.9375
3
using System; using System.Configuration; using System.Data.Entity; namespace AdventureWorks.Foundation.Data { public class DataContextWrapper : IDataContext { public DataContextWrapper() { var contextTypeName = ConfigurationManager.AppSettings["DataContext:Type"]; var c...
30522df6b9719bbd85bca224929f8b8a053a0fee
C#
greck2908/DataStructures
/C#/Leetcode/Array/TaskScheduler.cs
3.3125
3
using System; namespace LeetcodeSolutions.Array { // Leetcode 621 - https://leetcode.com/problems/task-scheduler/ public class TaskScheduler { //public static void Main(string[] args) //{ // TaskScheduler s = new TaskScheduler(); // char[] c1 = { 'A', 'A', 'A', '...