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
bb7d2d40894f1394c9d46d421f2ae9e152569bda
C#
iArmanKarimi/TvSeriesLogs
/TvSeriesLogsDb/SeriesDB.cs
2.875
3
using LiteDB; using TvSeriesLogsDb.Helper; using System; using System.Linq; using System.Linq.Expressions; using System.Collections.Generic; using System.IO; using System.Diagnostics; namespace TvSeriesLogsDb { public class SeriesDb : IDisposable { private LiteDatabase db; private ILiteCollection<Series> collec...
dee381b1b395e8d561418ec1f8bb637d647ed9a9
C#
hong-rong/MyRepository
/MyLibrary/LeetCode/CodingSummary.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lc { public class CodingSummary { public void Lc19() { int n = 5; while (--n >= 0) { //execute 5 times ...
953781cbf795546ca267c936c79c92c4f2e0b89b
C#
shendongnian/download4
/first_version_download2/229365-18003549-44690315-6.cs
3.34375
3
class CompareFooToBar : IEqualityComparer<Foo> { Bar bar; public CompareFooToBar(Bar bar) { this.bar = bar;} public bool Equals(Foo x, Foo y) { // hack - ignore y completely, assuming Contains pass element as x return x.Bar == bar; } ...
ba14e307a70f12166dd8d7c93d07829e79f21c31
C#
todor-enikov/TelerikAcademy
/Unit-testing with C# - 2016/03. Mocking and JustMock/Cars/Cars.Tests.JustMock/CarsRepositoryTests.cs
2.734375
3
using System; using NUnit.Framework; using Cars.Models; using Cars.Data; using System.Collections.Generic; using Moq; using Cars.Tests.JustMock.Mocks; using Cars.Contracts; using System.Linq; namespace Cars.Tests.JustMock { [TestFixture] public class CarsRepositoryTests { [Test] public voi...
20bbd20cb9d089abddf6462526d3df35e76d2835
C#
Ironlung13/LabWork_Exceptions
/MatrixIncompatibleSizingException.cs
2.921875
3
using System; namespace LabWork_Exceptions { class MatrixIncompatibleSizingException : ApplicationException { public (int x, int y) Size1 { get; } public (int x, int y) Size2 { get; } public MatrixIncompatibleSizingException(Matrix a, Matrix b) { Size1 = a.Size; ...
c8c41080f3a1bf68ceb399932861bfa08d7a9770
C#
RyanChang0369/tMLH2
/tMLH2/FileMethods.cs
3.328125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace tMLH2 { static class FileMethods { /// <summary> /// Reads all lines of the file without causing a lock. /// </summary> /// <exception ...
f3fc6917590c47574c1cdac263f6edf7200f5179
C#
planettelex/Bloom
/Shared/Bloom.Domain/Models/PlaylistActivity.cs
2.859375
3
using System; using System.Data.Linq.Mapping; namespace Bloom.Domain.Models { /// <summary> /// Represents an association between a playlist and an activity. /// </summary> [Table(Name = "playlist_activity")] public class PlaylistActivity { /// <summary> /// Creates a new playl...
1161fbb02c75847111917f95b02e0947b314e40f
C#
ivanalubar/MemoryGame
/MemoryGame/MemoryGame/Form3.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.Windows.Forms; using MemoryGame.Properties; namespace MemoryGame { public partial class Form3 : Form { public bool rezultat; ...
4ae5d1078d9fb5725ca1c029b31a50fa92a9f50d
C#
m-sadegh-sh/FaraMedia
/src/Libraries/FaraMedia.Services/Querying/Billing/OrderQuery.fixed.cs
2.53125
3
namespace FaraMedia.Services.Querying.Billing { using System; using System.Collections.Generic; using System.Linq; using FaraMedia.Core; using FaraMedia.Core.Domain.Billing; using FaraMedia.Core.Domain.Security; using FaraMedia.Core.Operators; public sealed class OrderQuery : EntityQueryBase<Order, OrderQuery...
5f1bb9337111e81ee0f47e4339c0b15a2d63ba1b
C#
dev-innovacion/AssetsApp
/assetsapp/RivkaBase/Form/Field/CustomFieldBinder.cs
2.546875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace Rivka.Form.Field { public class CustomFieldBinder : IModelBinder { public object BindModel(ControllerConte...
81a1d490be4ae51d45285be6bc47b23fec4896cc
C#
MatthewWessley/NightmareOfKansasCityChateau
/ChateauLibrary/Players.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChateauLibrary { public class Players : Character { public SelectPlayer PlayerChoice { get; set; } public Weapons EquippedWeapon { get; set; } public Players...
4386854259c0b08ca3a89b6d394f0835dc795227
C#
rhysgale/2D-Platformer-Game
/CastleRunnerGame/PhysicsEngine/PhysicsEngine/GameDrawing/MapObject.cs
2.734375
3
using Microsoft.Xna.Framework; using System.Collections.Generic; using PhysicsEngine.Physics.Shapes; namespace PhysicsEngine.GameDrawing { //Class for combining the textures with physics objects. internal class MapObject { internal Body _BoundingBox { get; set; } internal List<Rectangle> _...
fcaefb117c929a1061cf0d99730623b84102a432
C#
HalfSteps/KreditRechner-LAP
/[DB-AG] Online_Kredit.BusinessLogic/KreditVerwaltung.cs
2.546875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Web; using _DB_AG__Online_Kredit.BusinessLogic; using System.Threading; namespace _DB_AG__Online_Kredit.BusinessLogic { public class KreditVerwaltung { /// <summary> /// Erzeugt einen "lee...
b4ad11e9a0ad9284738d124aea8afd790794026e
C#
danielmsorensen/Room_Manager
/Assets/Scripts/ClickHandler.cs
2.5625
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class ClickHandler : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler { [System.Serializable] public class Event : UnityEngine.Events.UnityEvent { } public Event OnRight...
be624d931ca10dad25f94ff838c2e9a167931ec0
C#
theMagnificentJay/CSharpFundamentals
/12_GeneralStore/Controllers/ProductController.cs
2.796875
3
using _12_GeneralStore.Models; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using System.Web.Http; namespace _12_GeneralStore.Controllers { public class ProductController : ApiController { ...
cd8a85d48df64c896dbadeb53627e6c857729d0f
C#
movchan74/moving_game
/Assets/utils/HyperCasual/Core/Extensions/ListExtensions/ListPopExtensions.cs
3.4375
3
using System.Collections.Generic; namespace HyperCasual.Extensions { /// <summary> /// Extends generic lists with common popping operations. /// </summary> public static class ListPopExtensions { public static T PopLast<T>(this List<T> list) { return list.Pop(list.Count...
b49388fada06f4d6e86c3b9d9fa14ac17dc5cb4c
C#
JorisverhelstCode/ContactWeb
/ContactWeb/Database/IPersonsDatabase.cs
3.203125
3
using ContactWeb.Domain; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ContactWeb.Database { public interface IPeopleDatabase { Person Insert(Person movie); IEnumerable<Person> GetPeople(); Person GetPerson(int id); v...
103df0612df1040faef7f06fdbb5098893921ea9
C#
sabal90/Netty-CSharp
/Netty/netty/resolver/InetSocketAddress.cs
2.90625
3
using System; using System.Net; using System.Net.Sockets; namespace io.netty.resolver { public class InetSocketAddress : SocketAddress { // Private implementation class pointed to by all public methods. private class InetSocketAddressHolder { // The hostname of the Socket Address private String hostname...
7b0f363c5c96b70daeadd12d9d650d94413b18b2
C#
John-D-S/gooble-lump
/Assets/Gooble Lump/Scripts/SpringyThingyController.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SpringyThingyController : MonoBehaviour { //all the parts that make up the player [Header("-- Parts --")] [SerializeField, Tooltip("The Top Half of the ball")] private Rigidbody2D halfA; [SerializeField, Too...
78375e95833f7e0c089feea3da763995e7942808
C#
mastoj/TJ.CQRS
/TJ.CQRS/Messaging/MessageRouter.cs
2.671875
3
using System; using System.Collections.Generic; using TJ.Extensions; namespace TJ.CQRS.Messaging { public abstract class MessageRouter : IEventRouter, ICommandRouter { private Dictionary<Type, List<Action<IMessage>>> _messageRoutes; public MessageRouter() { _messageRoutes =...
26a9c90196c24157a6d58d27b5e54bd61bfd638a
C#
JoFox911/ITEA_UnityCourses
/FPS/Assets/Scripts/Bot/BotFSM/State/SearchingEnemyState.cs
2.609375
3
using System.Collections.Generic; using System.Linq; using System.Reflection; using UnityEngine; namespace BotLogic { public class SearchingEnemyState : BaseState<BotSharedContext> { private Transform _destinationPoint; private List<Transform> _searchingPointsList; public SearchingEnem...
4466e99fb99867e349ae77981e32cd40a51a60fe
C#
mbrinkg8tr/SpiralNumberGenerator
/src/NumericSpiral/Controllers/SpiralDataController.cs
3.1875
3
using System; using Microsoft.AspNet.Mvc; using Newtonsoft.Json; namespace NumericSpiral.Controllers { public class SpiralDataController : Controller { public string Generate(int id) { // Basic numeric validation if (id < 0) return "[[0]]"; // Determine t...
059659028f1048fa49ef29ba4ed6a8b168fa8a33
C#
amgorder/artist
/Repositories/ArtistsRepository.cs
3.15625
3
using System; using System.Collections.Generic; using System.Data; using artist.Model; using Dapper; namespace artist.Repositories { public class ArtistsRepository { public readonly IDbConnection _db; public ArtistsRepository(IDbConnection db) { _db = db; } ...
d7810898c8ee8357790f6358f7738e402b275451
C#
futugyou/TeslaAPI
/TeslaApi.Contract/HttpClientUtils.cs
2.640625
3
using System.Net.Http.Headers; using System.Text; using System.Text.Json; using TeslaApi.Contract; namespace TeslaApi { public static class HttpClientUtils { class NullClass { } public static async Task<Response> UtilsPostAsync<Response>(this HttpClient httpClient, string path...
17c1af3854a5f86651ec4bad0997dbee695801e9
C#
theslyone/frapid
/src/Libraries/Frapid.CommandLine/Commands/Create/MvcProjectCreator.cs
2.6875
3
using System; using System.IO; using System.Text; using Frapid.Framework; using Frapid.Configuration; namespace frapid.Commands.Create { internal sealed class MvcProjectCreator { internal MvcProjectCreator(string projectName) { this.ProjectName = projectName; this.TempD...
e32d2fae386ef6145f6face1a170cfe9cd1bac0a
C#
halilbayir/BilgeAdam
/YildizSekilleri/Program.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YildizSekilleri { class Program { static void Main(string[] args) { int i ,j; for (i = 0; i < 5; i++) { for (j = 0;...
efd3252c44a1797a00ffd98bf4a2a5682a577821
C#
andreivorona/CSharpWebBasic25October2020
/Apps/Git/Services/RepositoriesService.cs
2.9375
3
namespace Git.Services { using Git.Data; using Git.ViewModels.Repositories; using System; using System.Collections.Generic; using System.Linq; public class RepositoriesService : IRepositoriesService { private readonly ApplicationDbContext db; public RepositoriesService(App...
b90e738d8e9741642f188cc23431937e147a052e
C#
michiel-schoofs/AngularAPI
/TatsugotchiWebAPI/Data/Repository/AnimalRepository.cs
3.046875
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using TatsugotchiWebAPI.Model; using TatsugotchiWebAPI.Model.Interfaces; namespace TatsugotchiWebAPI.Data.Repository { public class AnimalRepository : IAnimalRepository { private ApplicationDBContext _c...
d9bee45e2697528f051968434dcb70b313e1d329
C#
soulhez/Unity_GenericBinarySerializer
/Assets/BinarySerializer/BinarySerializer.cs
2.828125
3
using UnityEngine; using System.IO; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; /// <summary> /// BinarySerializer is tool to save your game data in files as binary /// so that no body can read it or modify it, /// this tool is generic. /// /// Allowed types : int, floa...
20118627b46de05250650a425f4ea62b146ea179
C#
jakub-zieba/more-or-less-game
/ClassLibrary/ClassLibrary/QuestionTemplate.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary { /// <summary> /// Zawiera wzór dla pytań używanych w całej aplikacji a także enum będący podstawą /// mechanik które funkcjonują w klasach operujących na pytaniach ...
84666551b496f082d1ad8d772fd01a22a367c7ae
C#
mirostanchev/SoftUni-Software-Engineering
/CSharp OOP-Advanced/ExercisesAndLabs/Generics-Exercises/07-08-09.CustomList/CustomList.cs
4.03125
4
namespace _07_08_09.CustomList { using System; using System.Collections.Generic; using System.Linq; using System.Text; public class CustomList<T> where T : IComparable<T> { private IList<T> data; public CustomList() { this.data = new List<T>(); ...
f049125f39c7ca6c9a8018beb963011200d82327
C#
gustavobalbino04/Aula27_28_29_30_CRUD
/Program.cs
2.9375
3
using System; using System.Collections.Generic; namespace Aula27_28_29_30 { class Program { static void Main(string[] args) { Produto produto = new Produto(); produto.Codigo= 1; produto.Nome = "Air force"; produto.Preco = 399.99f; pr...
affbc3e17efd064c8786bea41188fdbcf200a1fa
C#
AhnHyobeom/Temperature-management-program
/Temperature management program/Form1.cs
2.828125
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.IO.Ports; // Add for UART communication using MySql.Data.MySqlClient; // Add for MySQL using...
7e628c16158d613b3a639141ad120bf91a499bff
C#
danielapochini/desafio-automacao-api
/DesafioAutomacaoAPI/Utils/Settings/AppSettings.cs
2.625
3
using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace DesafioAutomacaoAPI.Utils.Settings { public class AppSettings { public Uri BaseUrl { get; set; } public string Token { get; set; } public string Co...
f81abc2eef1e9511350225a9613d9586c55f3e10
C#
shendongnian/download4
/code1/58992-4196573-8838352-2.cs
2.609375
3
protected bool SendEmail(string emailFrom, string emailTo, string subject, string MHTmessage) { string smtpAddress = "smtp.email.com"; try { CDO.Message oMessage = new CDO.Message(); // set message ADODB.Stream oStream = new ADODB.Stream(); ...
6b9d2d2874d198ae60bb49ea101b32db652e6b26
C#
MortezaShoja/Learning-XML
/XML/86-06-03 - 3/C#/Server/server.cs
2.953125
3
using System; using System.Runtime.Remoting; using General; using System.Runtime.Remoting.Channels.Http; using System.Runtime.Remoting.Channels; namespace Server { class CustomerManager: MarshalByRefObject, ICustomerManager { public CustomerManager() { Console.WriteLine("CustomerManager.constructor: Obj...
40bb2d3cb0b5811a3da78186948de109903142d7
C#
andry-tino/code-alive
/src/src-client/src/ClientSource/sources/Basic.cs
2.796875
3
/// <summary> /// Andrea Tino - 2018 /// </summary> namespace CodeAlive.ClientSource.Basic { using System; using System.Threading; using CodeAlive.Communication.RenderingApi; internal class SourceRunner : ISource { ICommunicationService svc; int pause; // In ms, 0 = no pause ...
ad40f08af81c7ebb1e4e2631eef4563c8bba77f3
C#
hummerd/democode
/csharp/MergeTool.cs
2.8125
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; namespace MergeTool { class Program { static int Main(string[] args) { if (args.Length < 6) { PrintHelp(); return 0; } try { var basePath = GetArg("b", args); var fir...
f494606d1aed80379b9276ccaf4f3431c0a1650f
C#
Didnelpsun/AchieveDream
/Objects/Simple.cs
2.765625
3
 namespace AchieveDream.Objects { public class Simple { private int _ID; private string _Name; public int ID { set { _ID = value; } get { return _ID; } } publi...
446e692fec742a2e28eb5eccaad061bfab2c377a
C#
Cenaoi/App.Company
/Cenaoi.ModelFilter/ModelFilter.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using Cenaoi.CModel; using System.Data.SqlClient; using Model; using System.Configuration; namespace Cenaoi.ModelFilter { public class ModelFilter { private string connString = ConfigurationM...
e4970ad3d7fcd8ab53fc5649122e8d2b6d3b33d7
C#
chrisa23/Fibrous
/Fibrous/Internal/Scheduling/AsyncCronScheduler.cs
2.78125
3
using System; using System.Threading.Tasks; using Quartz; namespace Fibrous { internal class AsyncCronScheduler : IDisposable { private readonly Func<Task> _action; private readonly CronExpression _cronExpression; private readonly IAsyncScheduler _scheduler; private bool _runni...
3153505c6e2555e5f030a9d9ea3f8c945476b1ab
C#
bryant1410/BoC
/Src/Commons.InversionOfControl.SimpleInjector/AllowMultipleConstructorResolutionBehavior.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using SimpleInjector; using SimpleInjector.Advanced; namespace BoC.InversionOfControl.SimpleInjector { public class AllowMultipleConstructorResolutionBehavior : IC...
710f95ee2386bf4e45b47b4b66ba7ebcd20ae099
C#
DigitalMachinist/artificial-neural-network
/ArtificialNeuralNetwork/MLPIntegration/Program.cs
3.125
3
using System; using ArtificialNeuralNetwork; namespace MLPIntegration { enum Colour { Black, Red, Green, Blue }; class Program { static void Main( string[] args ) { Console.WriteLine( "======================================" ); Console.WriteLine( "MLP Red-Green-Blue Colour Sorting Test" ); Console.Wr...
8cc4d7d08342464a748066fc600aa41a69473520
C#
pcastrillongr/PabloCastrillon_ExamenEntornos
/Examenfinalentornos_pablocastrillon/models/Reptil.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Examenfinalentornos_pablocastrillon.models { //clase con atributos class Reptil:Animal { string especie; Boolean venenoso; public Reptil(string especie, bo...
646408116c9ef23fe00e276fe7cfa13f55797950
C#
OpenLocalizationTestOrg/ECMA2YamlTestRepo2
/fulldocset/add/codesnippet/CSharp/p-system.windows.forms.s_120_1.cs
2.5625
3
// Draw the scroll bar in its normal state. protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); // Visual styles are not enabled. if (!ScrollBarRenderer.IsSupported) { this.Parent.Text = "CustomScrollBar Disabled";...
d817489a3101659e16cb498acf967f596068b9fe
C#
NikhilPinnamaraju/CS_HRMS_WCF
/wcfemplib/Empservice.cs
2.59375
3
using System.Collections.Generic; using System.Reflection; using emplib; namespace wcfemplib { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in both code and config file together. public class Empservice : IEmpservice { public void addfield(em...
eebe43022a669460d3ff9870beee278c6ec8a2ad
C#
fabiomaulo/hunabku
/src/EntitiesWithDI/EntitiesWithDI/DI.cs
2.640625
3
using System; using Castle.Windsor; namespace EntitiesWithDI { public class DI { private static IWindsorContainer container; private DI() {} public static IWindsorContainer Container { get { if (container == null) { throw new InvalidOperationException("Container was not in...
a780d91ff6ca90b80c42768cc865cce1c9da2eb2
C#
NikolaHadzhiev/Programming-Algorithms
/Recursion + Combinatorics/Generate01Vector/Program.cs
3.65625
4
using System; namespace Generate01Vector { class Program { static void Main(string[] args) { int number = int.Parse(Console.ReadLine()); int[] vector = new int[number]; Generate(0, vector); } private static void Generate(int index, int[] vec...
feef5eee5c9da559c9144f418e24ec67c365b2d8
C#
SergiiKholodylo/family-money
/FamilyMoneyLib.NetStandard/Storages/Cached/CachedTransactionStorage.cs
2.546875
3
using System; using System.Collections.Generic; using FamilyMoneyLib.NetStandard.Bases; using FamilyMoneyLib.NetStandard.Storages.Interfaces; namespace FamilyMoneyLib.NetStandard.Storages.Cached { public class CachedTransactionStorage:ITransactionStorage { private bool _isDirty = true; private...
98015349a4fc784634d0269014e8d57dad9af5db
C#
Kobudzik/Projects-advanced_aspects-C-sharp
/Design Patterns/Behavioral/1.2 ChainOfResponsibility/1. ChainOfResponsibility/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _1.ChainOfResponsibility { class Program { static void Main(string[] args) { // Here I define all of the objects in the chain Chain chainCalc1 = new AddNumbers();...
36975bfde6009b25f6a528c304754394613d82a8
C#
Lylat212/asd
/Presentacion/Formularios/Form2.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Negocio.Objetos; namespace Presentacion.Formularios { public partial...
60d103b68fd5d281b8eb104eef3107a7563a3300
C#
Odonno/SimpleEventSourcing
/SimpleEventSourcing/InMemoryEventView.cs
3.359375
3
using System; using System.Reactive.Linq; using System.Reactive.Subjects; namespace SimpleEventSourcing { /// <summary> /// The base class for creating Event View (Read Model of an Event Sourcing architecture). /// The State is a real live-data updated whenever an observed event is pushed. /// </summa...
2cc203b99d9c4e46d637549dd0528ddcd8db7155
C#
chungminhde/Chess-Chinese-3D
/Chess/Assets/Script/ChessPiece/BKing.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BKing : Piece { public override List<Vector2Int> MoveLocations(Vector2Int gridPoint) { List<Vector2Int> locations = new List<Vector2Int>(); if (gridPoint.y == 8) { if (gridPoint.x ...
7deecd808a9fece97f53f562768f1ec4c4761bf2
C#
BerryBlum/tech_academy_c_sharp_projects
/carRentalApplication/carRentalApplication/Controllers/HomeController.cs
2.6875
3
using carRentalApplication.Models; using System; using System.Web.Mvc; namespace carRentalApplication.Controllers { public class HomeController : Controller { public ActionResult Index() { return View(); } public ActionResult About() { ViewBag.M...
b8e2cf784bab7d4e03f1b4687885361cf70d68e8
C#
prbarcelon/GwApiNET
/GwApiNET/GwApiNET/IApiRequestHandler.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using GwApiNET.ResponseObjects; using RestSharp; namespace GwApiNET { /// <summary> /// Interface definition to handle api requests. /// </summary> /// <typeparam name="T">Expected objec...
c07b698560f503a96cfdd61177051147c0abac2d
C#
XDelenclos/Exercice-c-
/ExoCSharp2/menu 3/Program.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Multiples(int Cadre, string CouleurTxt) { int Chiffre, Multiplicateur, i; Chiffre = GetInteger("Saisissez votre chiffre :", CouleurTxt); Multi...
3f0f89fb0deacbf50fc4758c64de854588cd6867
C#
EliasDeMa/MediaCollection
/MediaCollection/Services/PhotoService.cs
2.609375
3
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace MediaCollection.Services { public class PhotoService : IPhotoService { private readonly IWebHostEnvironment _...
e9b98a65cf7d8709e48756d457fece215d6e4218
C#
kenny5660/C-sharp
/Redactor_Vector_Graph/Redactor_Vector_Graph/Figure_class.cs
2.65625
3
using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System; using System.Runtime.Serialization.Json; using System.Runtime.Serialization; namespace Redactor_Vector_Graph { [DataContract] public class PointW { public static double zoom = 1; public stati...
5d5069dc64770b98c360316a619b852a9a3a5183
C#
DumanBG/C-Advance-2020-SoftUni
/06.DefiningClasses/06.SpeedRacing/Car.cs
3.640625
4
using System; using System.Collections.Generic; using System.Text; namespace _06.SpeedRacing { public class Car { private string model; private double fuelAmount; private double fuelConsumptionPerKilometer; private double travelledDistance; public Car(str...
481aea6fd3eb3183db80f77b610e4c98dd22949e
C#
LaCinquette/HydrogenOrbitsEquations
/PhysicsProject/ElectronDistribution.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PhysicsProject { public static class ElectronDistribution { public delegate double R(double r); // атомные единицы измерения public static double Z = 1; ...
99771f9467c15589d692c8dea6cfdce319166179
C#
Uko1ove/UnityPairProject
/Assets/Scripts/Time/LocalTime.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class LocalTimeText : MonoBehaviour, ITime { public void ApplyNewTime(int seconds, int minutes, int hours) { if(minutes < 9) { if(hours < 9) { game...
6a7065edc72a914dcd3b98cb4e8c698786ea0b3d
C#
pdrosos/TelerikAcademy
/C# Fundamentals - Part II/01. Arrays/Evaluated Homeworks/01/Arrays/MergeSort/Program.cs
4.03125
4
using System; //Merge sort class Program { static void Main() { int[] myArray = { 2, 9, 5, 1, 3, 4, 8, 7, 6 }; int[] result = MergeSort(myArray); foreach (var item in result) { Console.Write(item + " "); } } private static int[] Merge...
1eaa3006250f17ebc88dd6e2ddcaa8c871865c01
C#
Notim/ChainRepository.Net
/ChainRepository/ChainNodeVendors/DefaultChainNodeAbstract.cs
2.65625
3
using System; namespace GenericChainRepository.ChainNodeVendors { public abstract class DefaultChainNodeAbstract<T> : IChainNode<T> { public IChainNode<T> Next { get; set; } public abstract T Execute(T contracted); } public class DefaultChainNodeFuncAbstract<T> : DefaultChainNodeAbstrac...
56ec0dd7d50f6ae2e93e363fc7ff29e95e41e041
C#
sidit77/SurviveCore
/SurviveCore/Physics/PhysicsWorld.cs
2.875
3
using System; using System.Numerics; using System.Runtime.CompilerServices; using SurviveCore.World; namespace SurviveCore.Physics { public class PhysicsWorld { private readonly BlockWorld world; public PhysicsWorld(BlockWorld world) { this.world = world; } ...
d38a4fa1f74e7eeba266290fb0ba559b301042c1
C#
rTanabe0205/Raider
/3laps/GameEngine/Image.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework; namespace GameEngine { class Image:GameObject { public SpriteRenderer spriteRenderer; public Image(string assetName, int width, int height, int dra...
0be641ace42f02779c300efc145ec9a92c459e2a
C#
shahabattarnezhad/cleanArchitecture
/Employee.Application/Handlers/CommandHandlers/CreateEmployeeHandler.cs
2.71875
3
using Employee.Application.Commands; using Employee.Application.Mappers; using Employee.Application.Responses; using Employee.Core.Repositories; using MediatR; using System; using System.Threading; using System.Threading.Tasks; namespace Employee.Application.Handlers.CommandHandlers { public class CreateEmployeeH...
d892959006bb6e7c2f4488cd61f37c3727056106
C#
bpourian/CRM-contact-book
/MyTinyContacts.cs
3.375
3
using SnapsLibrary; public class MyTinyContacts { /// <summary> /// tidies contact name to lowercase and removes spaces /// </summary> /// <param name="name">name to be converted</param> /// <returns>tidied contact name</returns> string tidy(string name) { name = name.ToLower().T...
0ac1fcabfd19fc0858b54f2212797738cadb97bb
C#
dmos01/MancalaWPF
/Mancala/Game/Choose Computer Cup.cs
2.953125
3
using System; using System.Collections.Generic; namespace Mancala.Game { public partial class PageGameBoard { byte tempChosenCup; //In case multiple capturing opportunities are available. byte[] testCups; void ChooseComputerCup() { ChosenCup = -1; //Ea...
948b1e2acbc88bbc5e00297f8a8639f1387842e9
C#
vukuri258/Lap2-BT
/lap2/Controllers/BookController.cs
2.609375
3
using lap2.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.ComponentModel.DataAnnotations; namespace VNExpress.Controllers { public class BookController : Controller { // GET: Book public string HelloTeacher(string ...
89c84003fd28eed856f113a0c2e6ccc1adcb566a
C#
uvbs/FullSource
/Source/Source/Tools/GameDesignerEditor/Controls/CustomLoadTree_Activity/FindForm.cs
2.625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace CustomLoadTree_Activity { public partial class FindForm : Form { Form_Activity m_Parent; TreeNode CurFindPos; ...
6083dcb3d346a4d8ac3d003f3037a60e2f6ee82d
C#
tompi/BridgeScoringHelper
/Scoring/Tournament/Round.cs
3.0625
3
using System.Collections.Generic; using Scoring.Game; using Scoring.Players; using Scoring.Score; namespace Scoring.Tournament { public class Round { public int Number; public List<BoardResult> BoardResults; public Round(int number) { Number = number; B...
a65f2b61118e379b616f10fb4df6c44df5b4d627
C#
alwaysresist/Lab5
/Lab5_/Cockroach.cs
3.046875
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Security.Permissions; using System.Text; using System.Windows.Forms; namespace Lab5_ { public class Cockroach { public Bitmap image; const int step = 40; int x; int y; ...
a6a871a6865fdd2e5ab40cf34bbbefd320b59577
C#
shuhari/Shuhari.Framework
/Shuhari.Framework.Testing.Mvc/Web/MockHttpSession.cs
2.53125
3
using System.Collections.Generic; using System.Web; namespace Shuhari.Framework.Web { /// <summary> /// Mock session /// </summary> internal class MockHttpSession : HttpSessionStateBase { /// <summary> /// Initialize /// </summary> public MockHttpSession() {...
90429cfaff5f1e130d63162b80a6ae98e4a6b136
C#
MarcoLopezDev/apiDoble
/apiDoble/apiDoble/Controllers/DataController.cs
2.609375
3
using Microsoft.AspNetCore.Mvc; using Azure.Messaging.ServiceBus; using System; using apiProductorParcial.Models; using System.Threading.Tasks; using Newtonsoft.Json; using System.Text.Json; namespace apiProductorParcial.Controllers { [Route("api/[controller]")] [ApiController] public class DataController...
729fbf953c4cd7b378b6f490971f08c2070ba565
C#
liiabutler/Refazer
/Code-Hunt-data/users/User002/Sector3-Level5/attempt013-20140920-054312-winning3.cs
3.390625
3
using System; using System.Collections.Generic; public static class Program { public static int[][] Puzzle(int x, int y) { List<int[]> list = new List<int[]>(); for (int i = 1; i <= 8; i++) for (int j = 1; j <= 8; j++) if (Math.Abs((i-x)*(j-y))==2) list.Add(new int[]{i,j}); return list.ToArray(); ...
07ca19b8ce2988d081f7573ec8a7270cfafaa188
C#
SherryShi0108/LeetCode
/CSharp/Find Smallest Letter Greater Than Target.cs
3.609375
4
//Source : https://leetcode.com/problems/find-smallest-letter-greater-than-target/ //Author : Xinruo Shi //Date : 2019-12-10 //Language: C# /******************************************************************************************************************************* * * Given a list of sorted characters let...
7a7e359857b53e93f1d59682b8366807fd230c8e
C#
henningms/trafikanten-api-w8
/TrafikantenApi/Models/Street.cs
2.6875
3
using System.Collections.ObjectModel; using System.Runtime.Serialization; namespace TrafikantenApi.Models { [DataContract] public class Street : Place { private ObservableCollection<House> _houses; [DataMember] public ObservableCollection<House> Houses { get ...
6bb8cde4849e55d84f4355c137ee8b45f11e8183
C#
netintellect/PluralsightSpaJumpStartFinal
/Telerik/DemoApp/Examples/Map/WPF/Theatre/BookingViewModel.cs
2.671875
3
using System; using System.ComponentModel; using System.Text.RegularExpressions; using Telerik.Windows.Controls; using System.Windows.Media; namespace Telerik.Windows.Examples.Map.Theatre { public class BookingViewModel : ViewModelBase, IDataErrorInfo { private string _email; private DateTime?...
7032efcaed8b79dbe64e02953a9c1f128e80332c
C#
shendongnian/download4
/first_version_download2/490941-44478082-149085512-6.cs
3.359375
3
public abstract class ViewModelBase : INotifyPropertyChanged { protected void RaisePropertyChanged(string propertyName) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } public event PropertyChangedEventHandler PropertyChanged; } publ...
f57f7654c5d7862a9752b7e20264a71483bcf7ea
C#
patrickhuber/Pliant
/hosts/Pliant.PerfViewApp/Program.cs
2.59375
3
using Pliant.Json; using Pliant.Runtime; using System; using System.IO; namespace Pliant.PerfViewApp { internal class Program { private static void Main(string[] args) { var sampleBnf = File.ReadAllText( Path.Combine(Environment.CurrentDirectory, "10000.json")); ...
cb5cb764ec17e9c7c5ed3304f23418ad50c12465
C#
pirocorp/Databases-Advanced---Entity-Framework
/Exercises/07. Code First/Exercise/HospitalDatabase/Data/ModelConfigs/VisitationConfig.cs
2.515625
3
namespace P01_HospitalDatabase.Data.ModelConfigs { using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Data.Models; public class VisitationConfig : IEntityTypeConfiguration<Visitation> { public void Configure(EntityTypeBuilder<Visitation> buil...
3d177d0c2b300357d8cd138e76f59dcd4dc105ae
C#
cacayue/MyCouldBook
/src/mycouldbook-aspnet-core/src/MyCouldBook.Core/BookListManagement/Books/DomainService/BookManager.cs
2.75
3
using Abp.Domain.Repositories; using Microsoft.EntityFrameworkCore; using MyCouldBook.BookListManagement.RelationShipps; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MyCouldBook.BookListManagement.Books.DomainService { /// <summary> /// 领域服务层一个模块...
4a0225244e349ab7d1293924881264afa6e94dec
C#
SelectiveHouse/Window-Tracker
/DesktopTracker.Terminal/Program.cs
2.75
3
using DesktopTracker.Terminal.Timers; using Microsoft.Azure.EventHubs; using Microsoft.Extensions.Configuration; using System; using System.IO; using System.Text; using System.Threading; using System.Threading.Tasks; namespace DesktopTracker.Terminal { internal class Program { private stat...
def44326f1d41785d897ace3d088ca1aa5905031
C#
Koseng/ConnectivityPlugin
/src/Connectivity.Plugin.WindowsPhone8/ConnectivityImplementation.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Threading; using System.Threading.Tasks; using Microsoft.Phone.Net.NetworkInformation; using Plugin.Connectivity.Abstractions; using System.Diagnostics; using System.Net.NetworkInformation; using ...
2317c3fab901613c08e1cc15d813f655fbf759cb
C#
hugo3011mendez/DI-T5-Ejercicio2
/Etiqueta Aviso/EtiquetaAviso.cs
2.890625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Etiqueta_Aviso { public enum eMarca // Defino el enumerad...
ddd8882ab06f964e2f93140901675a89db6df8b1
C#
tavisca-ysant/SRPAndOCPDemo
/SRPAndOCPDemo/Repository.cs
3.09375
3
using System; using System.Collections.Generic; using System.Text; namespace SRPAndOCPDemo { public class Database : IRepository { private List<Entity> _entitySet = new List<Entity>(); private static int _primaryKey = 1; public List<Entity> Display() { return _entit...
26e9a12d61906882866bcd841f9f8528b6dc40c4
C#
RedRevenge94/szh
/szh_backend/szh/measurement/MeasurementType.cs
2.890625
3
using DbManager.Db; using System; using System.Collections.Generic; namespace szh.measurement { public class MeasurementType : Entity { public int id; public string name; public string acronym; public static string GetNameOfMeasurementType(int id) { return pgSqlSingle...
fead7f384cdfee5759b53b1c5872cfe38ace0226
C#
Cheeseman5/PDF-Toolbox
/PDFToolbox/Converters/ImageToSourceConverter.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Drawing; using System.Windows.Media.Imaging; using System.Windows.Data; namespace PDFToolbox.Converters { public class ImageToSourceConverter : IValueConverter { ...
2c2ba66e3e88c0f492973a4d4c006234852e2878
C#
gregsochanik/papertrailapp-archive-reader
/src/LogReader/DateRange.cs
3.296875
3
using System; using System.Collections.Generic; using System.Linq; using MoreLinq; namespace LogReader { public class DateRange { public DateRange(DateTime fromDate, TimeSpan to) { From = fromDate; To = fromDate.Add(to).AddDays(-1); } public DateRange(DateTime fromDate, DateTime toDate...
d49877be96daf701eadb773f909563901dfa465f
C#
Procedure-Sao/C-VS
/vs项目/十六章/十六章/DBqq.cs
2.84375
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 十六章 { class DBqq { private string strConn = "Data Source=.;Initial Catalog=QQDB;User ID=sa;Password=825516949"; SqlCon...
1a716e1dc4d2737d757d125b44b7e2b57a88b5af
C#
shendongnian/download4
/code8/1466429-40127513-129628540-4.cs
2.765625
3
class SpecificAdaptee { ... public void FireEvent2() { int a = 42; if (Event2 != null) Event2(this, ref a); Console.WriteLine("A value after the event is {0}", a); } } private static void OnAdaptedEvent2(object sender, A...
57c2c6c5c0e5fc64186e2af8bcf46c88237153d5
C#
seungyongshim/SQLite-Blob-POC
/UserRepository.cs
3.09375
3
using Dapper; using Microsoft.Data.Sqlite; using System; using System.Collections.Generic; namespace SQLite_Blob_POC { public class UserRepository { public UserRepository(Func<SqliteConnection> dbConnect) { DbConnect = dbConnect; } private Func<SqliteConnection> Db...
1fa731c93634f1704f29cb7aec97b44e83f990c7
C#
bubdm/Archi.Net-ExposedAndDBaseModels
/GenericStructure.Framework/Exceptions/BaseException.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GenericStructure.Framework.Exceptions { public class BaseException : Exception { public string Name { get; set; } public BaseException(string exceptionName) : base() ...
7aac376ce0907936204ff10e50bec55af93df7a3
C#
a-leggett/Storage
/StorageTest/Mocks/MockBinarySearchable.cs
3.140625
3
using Storage; using System; using System.Collections.Generic; using System.Linq; namespace StorageTest.Mocks { class MockBinarySearchable : IBinarySearchable<long, string> { public SortedList<long, string> SortedList { get; private set; } public MockBinarySearchable(long count, int seed, para...
6487b93d41f4e73b61111414125738e782bf3c6d
C#
leakalmar/ISBolnice
/Projekat/Hospital-IS/Service/UserService.cs
2.828125
3
using System.Collections.Generic; namespace Service { public class UserService { public List<int> AllUserIDs { get; set; } = new List<int>(); public int MaxId {get; set;} private static UserService instance = null; public static UserService Instance { get ...
8845e8688e0308513047300ed3153886449ccc3a
C#
VaskoViktorov/SoftUni-Homework
/07. OOP Advanced C# - 18.07.2017/04. Generics - Exercises/03. Generic Box of Integer/01 Generic Box/IBox.cs
2.78125
3
namespace _01_Generic_Box { public interface IBox<T> { T Value { get; } void Generate(T value); string ToString(); } }
81fd8cc0bc6f0600e06e87628a7767f0e9a8b3d0
C#
LYHarry/UtilCore
/Easycode.Common/Extensions/StrExtChar.cs
3.65625
4
using System; using System.Collections.Generic; using System.Text; namespace Easycode.Extensions { /// <summary> /// 字符串扩展帮助类 /// <para>处理特殊字符串</para> /// </summary> public static partial class StrExtension { /// <summary> /// 截取掉两边空格 /// </summary> /// <param n...
59d33877d2e7e5bcd9b6cc9c8a5a921af9d5ecfa
C#
senivlm/HW8_2
/HW8_21/Utilita.cs
3.203125
3
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace HW8_21 { class Utilita { private readonly string pathStorage1 = @"C:\\Users\\admin\\source\\repos\\HW8_21\\HW8_21\\Storage1.txt"; private readonly string pathStorage2 = @"C:\\Users\\admin\\source\\rep...
ab47075ea319f6261803f37d598a257e919ea19c
C#
zbaghdasaryan/ADO.NET
/Concepts_Connections/02_ConnectionStrings/Program.cs
3.09375
3
using System; using System.Data.SqlClient; namespace CBS.ADO_NET.ConnectionUsing { class Program { static void Connection_StateChange(object sender, System.Data.StateChangeEventArgs e) { SqlConnection connection = sender as SqlConnection; Console.WriteLine(); ...
d6de8f0b7cd7d5c23a0688207981068f953cb741
C#
lucle/Book-Store
/BookShop.WebComponents/Logging/LoggerAttribute.cs
2.515625
3
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.Extensions.Logging; using System; namespace BookShop.WebComponents.Logging { [AttributeUsage(AttributeTargets.Method | AttributeTargets....