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
903c114eec2f48fefa7a694f792d6d29560fff90
C#
Azadehkhojandi/RazorEngineTest
/Infrastructure/DynamicTemplate.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using RazorEngine.Templating; using System.Reflection; using System.IO; namespace Infrastructure { public static class DynamicTemplate { public static string GiveCshtml<T>(T model,string templateName="GeneralInformat...
1cb2d12d3605f345e1be0eeab1636c2a311b0d89
C#
shendongnian/download4
/first_version_download2/118665-8287732-18535447-2.cs
3.140625
3
try { throw new Derived1(); } catch (Exceptionz) { Console.WriteLine("Caught Derived 1"); } try { throw new Derived2(); } catch (Exceptionz) { Console.WriteLine("Caught Derived 2"); }
d512b263048576cc203f76eed675c02d56bc3cf2
C#
mingw46/FixedBookingsAPI
/FixedBookings.Service.API/Mappings/BookingMappings.cs
2.75
3
using FixedBookings.BusinessObject.Models; using FixedBookings.Service.API.Models; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Threading.Tasks; namespace FixedBookings.Service.API.Mappings { public static class BookingMappings { ...
650313973e33d008a5e419e5299c37d2a4357221
C#
pasi0014/Lab-3-ASP.NET
/Models/CourseComparerByName.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using AlgonquinCollege.Registration.Entities; namespace Lab_3.Models { public class CourseComparerByName : IComparer<Course> { public CourseComparerByName() { } public int Compare(Course c1, ...
f0c7b87eb26683c1fa756b8a4aa3db197cd92091
C#
anatolii-kabanov/prime-number-multiplication
/Avast.Tests.PrimeNumber/Generators/PrimeNumberGeneratorTests.cs
2.875
3
using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using Avast.PrimeNumber.Checkers; using Avast.PrimeNumber.Generators; using Microsoft.Extensions.Logging; using Moq; using Xunit; namespace Avast.Tests.PrimeNumber.Generators { public class PrimeNumberGeneratorTests { ...
6062ddb9da976a94c507e4391410c4a9581a3343
C#
oguzhankahyaoglu/joinextensions-leftjoin
/LeftJoin/LeftJoinExtensions.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using LinqKit; namespace LeftJoin { public static class LeftJoinExtensions { public static IQueryable<TResult> LeftJoin<TLeft, TRight, TKey, TResult>( this IQueryable<TLeft> left, ...
c25c01b5ff49e4cb36c4061e3453a5c2e11f5cf6
C#
taeNero/PremiumService
/premiumTravel/premiumTravel/TripStateComplete.cs
2.859375
3
using System; using System.Collections.Generic; using System.Text; namespace premiumTravel { public class TripStateComplete : TripState { public TripStateComplete(TripContext context) : base(context, TripState.Status.Complete) { } public override TripS...
59d301916c7392cb3c6b525d6140bfac3c3f7b7a
C#
lijinchuan/LJC.FrameWork
/LJC.FrameWork/Data/QuickDataBase/DataContextMoudelSelect.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Practices.EnterpriseLibrary.Data; using System.Data.Common; using System.Linq.Expressions; using System.Text.RegularExpressions; using LJC.FrameWork.Comm; namespace LJC.FrameWork.Data.QuickDataBase { public stati...
01252bfaa8d76ebf64d9774aaf40656a745ef81e
C#
sobanskikarol91/Duel
/Duel/Assets/Scripts/PlayerDeck.cs
2.640625
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Linq; [System.Serializable] public class PlayerDeck { public List<PlayerCard> slotOnTable; public Dictionary<CARD_TYPE, List<PlayerCard>> _cards { get; set; } = new Dictionary<CARD_TYPE, List<PlayerCard>>(); Card _...
218165cfc43f5fb71ff7b2c5c3debf748d85e578
C#
Zexks/QLite
/QLite V3/Servers/Row.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; namespace QLite.Servers { public class Row { public List<Column> Columns { get; set; } public int ColCount { get; set; } public string[] DataTypes { get; set; } public strin...
03a04dae3c71a8d46416ff54e4cc34644eef277a
C#
bursson/Drinkkirobotti_4_1
/OperatorUI/ViewModel.cs
2.78125
3
using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Media; using System.Windows.Shapes; namespace OperatorUI {...
2d869879d40b3ca47198091df5114aeca188de56
C#
CrimeMasterGogo31/DsAlgoSample
/LeetCode/MaxArea.cs
3.390625
3
using System; using System.Collections.Generic; using System.Text; namespace DemoConsole.LeetCode { public class MaxAreaClass { static Dictionary<string, int> d = new Dictionary<string, int>(); public int MaxArea(int[] height) { var res = DP(0, height.Length - 1, height); ...
72391cabda3410f2370f8d49aaaadb695f0bbcfb
C#
shendongnian/download4
/latest_version_download2/58228-10491713-24151614-2.cs
2.84375
3
protected void Page_Load(object sender, EventArgs e) { if (ViewState["StartDates"] == null) { startDates = new ArrayList(); } else { startDates = ViewState["StartDates"] as ArrayList; } } ...
364e0362a46e89223678a17202c58aa6a1884856
C#
Tanvas/convertorXML2HTML
/CourceToWebUC/Model/CommonModels/IItemModel.cs
2.71875
3
/* * Библиотека для конвертации курса в web формат * Разработчик: Лобанова Т.В. * * Файл: IItemModel.cs * Создан: 25.02.2015 * Редактирован: 04.03.2015 * * * Описание: * Section - Учебный раздел, входящий в курс или в другой учебный раздел * Theme - Учебная тема */ using System; using System.Collectio...
2ff0cf739d9a2f6dac28786897d495ad2981eb11
C#
johndmeyer/sovoscodingexercise
/Backup/SovosCodingExercise.Api/Controllers/IngredientController.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using SovosCodingExercise.BusinessLogic; using SovosCodingExercise.DataModels; namespace SovosCodingExercise.Api.Controllers { /// <summary> /// Need comments here ...
b915897e47eeb545d00e99f1106f130eb5382a8c
C#
alexhagithub/zav-crud-server-cshard
/Crud.Domain/ModelConfig/VisitaConfig.cs
2.546875
3
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Crud.Domain { class VisitaConfig : IEntityTypeConfiguration<VisitaEntity> { public void Configure(EntityTypeBuilder<VisitaEntity> builder) { builder.ToTable("Visita", "dbo") ...
9fa148e2fe58721633c7f740b4678141b00dc53c
C#
luisferop/DesignPatterns
/prjBehavioral/Observer/Unsubscriber.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace prjBehavioral.Observer { class Unsubscriber : IDisposable { private List<IObserver<Carro>> _observers; private IObserver<Carro> _observer; public Unsubscriber(...
240adc4dc2cbedb37635647df6615579893bc78b
C#
otaviorbarros/praticasdiarias
/Praticas/FrmFuncao.cs
2.921875
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 Praticas { public partial class FrmFuncao : Form { public FrmFuncao() ...
6797e9258e037d26fff29abb6cf709ee4e979b61
C#
Lalitha23/BankApp17
/BankApp/Bank.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BankApp { public static class Bank { private static BankModel db = new BankModel(); // private static List<Account> accounts = new List<Account>(); /// <summary> ...
de05097380b2adca21cdbf5ea670ff2c18419ce0
C#
Yangjunfengx/cip-client
/Test/Program.cs
2.59375
3
using System; using CIPlib; namespace Test { class Program { static void Main(string[] args) { try { CIP c = new CIP("192.168.0.222"); c.RegisterSession(); c.Browse(); //c.Read("Teeq"); ...
3fa1af4c7d21fb28222e8ed1bf3f6d9a4f05e9a6
C#
angela-sc/TFG-PlataformaIOT
/Servicios/ServicioInsertaInformacion.cs
2.546875
3
using Libreria.Entidades; using Libreria.Interfaces; using Microsoft.Extensions.Configuration; using Repositorio.SQLServer; using Serilog; using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; namespace Servicios { public class ServicioIns...
73e57af08493e2c5a64d6d205e671adc043bcfcc
C#
hunpody/psimulex
/VapeTeam.Psimulex/VapeTeam.Psimulex.Tests/FunctionTests.cs
2.703125
3
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using VapeTeam.Psimulex.Core.Commands; using VapeTeam.Psimulex.Core.Types; using VapeTeam.Psimulex.Core; namespace VapeTeam.Psimulex.Tests { /// <summary> /// S...
8942ad1beb33e92b2a8eebaa8fe7445ec1ab3536
C#
burschi1981/BonniGit
/BonniViewModel/ViewModel/ShopAdminViewModel.cs
2.84375
3
using BonnyUI.DBConnection; using BonnyUI.Model; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace BonnyUI.ViewModel { /// <summary> /// Viewmodel der Shop-Admin //...
2373b92bce05615ceddf86f1667efd02cd0a2f1a
C#
bstrzelecki/StarGame
/StarGame/MainBehaviour/Player/SimulationProxy.cs
2.609375
3
using Microsoft.Xna.Framework; namespace StarGame { internal class SimulationProxy { public Player blip; public int simulationSpeed = 5; public int simulationSteps = 25; public Vector2[] blips; public int count = 0; public SimulationProxy() { ...
e8da427c264069346243bebc032800a4043b2ec7
C#
fayte0618/ProjectClock
/Assets/Scripts/ClockHand.cs
2.96875
3
using UnityEngine; using System.Collections; [System.Serializable] public class ClockHand : MonoBehaviour { //clockwise is negative, counterclockwise is positive public enum Direction { Clockwise, CounterClockwise, None }; #region PRIVATE PROPERITES [SerializeField] private Direction _direction = Direction....
96ef92e96591d518da067c387f55fe5c490ce4db
C#
ayende/Subtext
/SubtextSolution/Subtext.Framework/Services/IFeedbackSpamService.cs
2.6875
3
using System; using Subtext.Framework.Components; namespace Subtext.Framework.Services { /// <summary> /// Base interface for comment spam services such as Akismet. /// </summary> public interface IFeedbackSpamService { /// <summary> /// Examines the item and determines whether or not it is spam. ...
6cfa0b76f998f00ad0946b3e88434170f75afb17
C#
shendongnian/download4
/first_version_download2/127941-22203114-59621969-2.cs
2.765625
3
const int TargetSize = 14; private static void Save(Geometry geometry, string fileName) { var rect = geometry.GetRenderBounds(new Pen(Brushes.Black, 0)); var bigger = rect.Width > rect.Height ? rect.Width : rect.Height; var scale = TargetSize / bigger; Geometry...
3fafdb205271a68ea5308fcc523954db62290d54
C#
Booolzay/Unity-Hack-and-Slash-Game-Project
/Unity Hack and Slash Game Project/Scripts/throwObj.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; //Adapted from 2 tutorials : grabbing: https://www.youtube.com/watch?v=bA12WEA5MLo , thorwing: https://www.youtube.com/watch?v=_xMhkK6GTXA public class throwObj : MonoBehaviour { RaycastHit grabRay; GameObject grabAble; public...
101ede7b69bc0996a52ebb3857e30eb0de285dfb
C#
Giullianogp/MeuPet.API
/MeuPet.API/Middlewares/AuthenticateMiddleware.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using MeuPet.API.Context; using MeuPet.API.Models; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Newtonsoft....
1a5474c35cfb328f271329f0b8dec76ad242fcae
C#
nemss/SoftUni-Education
/07.C# OOP Advanced/Lab - Generics/BoxOfT/Box.cs
3.34375
3
using System.Collections.Generic; using System.Linq; public class Box<T> { public Box() { this.elements = new List<T>(); } private IList<T> elements; public int Count => this.elements.Count; public void Add(T element) { this.elements.Add(element); } public T Remo...
fa0ae780b919809e5c2bca51e6c9e1d4a67606f2
C#
reecerussell/distro-cms
/Shared/Shared.Tests/Passwords/ValidatorTests.cs
2.890625
3
using System; using Microsoft.Extensions.Options; using Shared.Exceptions; using Shared.Passwords; using Xunit; namespace Shared.Tests.Passwords { public class ValidatorTests { [Fact] public void TestConstructorWithNullOptions() { Assert.Throws<InvalidOperationException>(()...
d8d7ccdc560103f0c87034166687afe5c7f21fdb
C#
CheffOfGames/Mafia-Quickplay-DiscordBot
/DiscordBot/Commands/PlayerListCommand.cs
3.046875
3
using Discord.Commands; using Discord; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DiscordBot.Commands { class PlayerListCommand { public static void createCommand(DiscordClient _client) { _client.Get...
5db0ab50d9622c06e256194e8f6be56699c281f5
C#
ravcio/MapNet
/hiMapNet/Layer/Layers.cs
2.78125
3
using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace hiMapNet { public class Layers : IList<LayerAbstract> { private List<LayerAbstract> m_oLayers = new List<LayerAbstract>(); LayerAbstract animationLayer = null; public LayerAbstract ...
1c6ecd52387472f6a31418e48e110345d9843855
C#
salocinx/Multipurpose-Robot-Controller
/VisualStudio/ALAN2/CommonCtrl/Components/Actuators/InfraredTx.cs
2.53125
3
 #region Usings using System; using System.IO; using System.Xml; using System.Xml.Serialization; using System.Collections.Generic; #endregion namespace CommonCtrl { [Serializable] public class InfraredTx : Infrared { #region Fields private ushort pin = 5; // interrupt drive...
5e8e60e1bc460930d19f87a3273a2041838374b1
C#
MangoFloat/avl-tree-csharp
/NUnit Tests/TestAVLTree.cs
3.390625
3
using NUnit.Framework; using System.Text; namespace CountryAssignment.NUnit_Tests { [TestFixture(Author = "jaictinjune@gmail.com", Category = "Tree", Description = "Testing the AVLTree class.")] public class TestAVLTree { [Test(Author = "jaictinjune@gmail.com", Description = "Test the initiation ...
1dfe48dc93a67315bf1736b91903c679ff6afc93
C#
Timur999/KrokPoKroku
/Chapter 5 Petle/Chapter 5 Petle/Program.cs
3.53125
4
using System; using System.IO; namespace Chapter_5_Petle { class Program { static void Main(string[] args) { //WyswietlZawartoscPliku(); ZnajdzKlucz(); Console.ReadKey(); } static void PetlaWhile() { int i = 10; ...
a076bf17fdca6a304b5691a2069b4c6c2424186d
C#
bethfbillings/revature_P1
/P1/P1.Domain/Models/Location.cs
2.8125
3
using System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore; using P1.Data.Entities; namespace P1.Domain.Models { public class Location { private readonly p1Context _db = new p1Context(); public int Id { get; set; } public string Street { get; set; } ...
8e0673504da8b2be7c5345ada148c00ef8de800b
C#
thoefut/problemsetsolutions
/solutions/Vowel Counter/Vowel Counter.cs
4.03125
4
/*Count Vowels * Enter a string and the program counts the number of vowels in the text. For added complexity have it report a sum of each vowel found. * * Input = User enters a line for the program to analyze * Output = Statistics on each vowel used. Total number of vowels in the provided string. */ using Sys...
c0318261cd168663baa0e496b378544c0e4c0beb
C#
turgaykya/Web-ve-Mvc-ornekleri
/MVC - Get-Post Örneği/NorthwindManagement/Controllers/EmployeeController.cs
2.84375
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; using System.Web.Mvc; namespace NorthwindManagement.Controllers { public class EmployeeController : Controller { public NorthwindEntities _dbContext; public EmployeeController() ...
caa764819893302f20123a4047f77faa877c796b
C#
Woarkeswat/UMLDesigner
/UMLDesign/AppLayer/DrawingComponents/ClassDiagramFactory.cs
2.796875
3
using System; using System.Collections.Generic; namespace AppLayer.DrawingComponents { public class ClassDiagramFactory { private static ClassDiagramFactory _instance; private static readonly object MyLock = new object(); private ClassDiagramFactory() { } public static ClassD...
a0ce86f0b02acb22c028dc5dba590a156306ab6a
C#
luyiwang1/CPSC481Project
/Ordering System/Ordering System/LunchMenu.xaml.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; ...
f0f7fdfe948df0d6e628b85e4a34daed87208563
C#
soola-sys/Todolist
/Home.cs
2.625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace RegistrationAndLogin { public partial class Home : Form {...
78b703b35524b02ebd794e05198df9f160e83e7a
C#
Alaanor/udh-gamejam
/Assets/Scripts/Game/PlayerInput.cs
2.640625
3
using UnityEngine; namespace Game { public class PlayerInput { public Vector2 RawMovement; public bool IsShooting; public void Update() { RawMovement = new Vector2(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical")); if (In...
a73d45c2630530f11b2cbc27b250526908ece447
C#
matthew-pye/Uni-Work
/Tutorial 15/Vehicle/Vehicle/Form1.cs
3
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 Vehicle { public partial class Form1 : Form { public Form1() { ...
d3c6bda3b8c390845c7cf62bf7cf8bb5020993a3
C#
JasperFx/jasper
/src/Samples/OrderSagaSample/OrderSaga.cs
2.796875
3
using Baseline.Dates; using Jasper; namespace OrderSagaSample; #region sample_Order_saga public record StartOrder(string OrderId); public record CompleteOrder(string Id); public record OrderTimeout(string Id) : TimeoutMessage(1.Minutes()); public class Order : Saga { public string? Id { get; set; } // Th...
8399ab70d989e814749442253dddcc160845f014
C#
teja-vellanki/AngloAmericanTest
/Utils/SetDriver.cs
2.65625
3
using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using Microsoft.Edge.SeleniumTools; namespace AngloAmericanTest.Utils { /// <summary> /// This class performs an important function. /// </summary> public class SetDriver { public IWebDriver GetDriver(string browser) { ...
3e341c906b54daba476db63642c1fbd6471b9d50
C#
MMSZ/CodingDojo-ChineseCharacterTrainer
/ChineseCharacterTrainer.Implementation/Converters/PinyinConverter.cs
2.796875
3
using System; using System.Globalization; using System.Windows.Data; using ChineseCharacterTrainer.Implementation.Services; namespace ChineseCharacterTrainer.Implementation.Converters { public class PinyinConverter : IValueConverter { private IPinyinBeautifier _beautifier; public IPinyinBeaut...
60ffb71fbb1c1e2048163aa8d0a39df8307f93ac
C#
Xamarians/OfflineSync
/SyncPocService/SyncPocService/Models/ApiResult.cs
2.609375
3
namespace SyncPocService.Models { public interface IResponse { bool Success { get; set; } string Message { get; set; } } public interface IResponse<TData> : IResponse { TData Data { get; set; } } public class ApiResponse : IResponse { public bool Succes...
e1ce3e8d980df33c660361dbed285775f3099ded
C#
gsulc/NConfig
/src/NConfig.Ini/KeyDataExtensions.cs
2.609375
3
using IniParser.Model; using System; namespace NConfig.Ini { internal static class KeyDataExtensions { internal static void SetKeyDataToProperties(this KeyDataCollection keyDataCollection, object obj) { foreach (var key in keyDataCollection) { var keyInf...
eab9059ca9ef7b2702f66411cc51beaa6710c9fa
C#
ly774508966/CardGame
/CardGame.Server/Factories/CardInstanceFactory.cs
3
3
using CardGame.Server.Instances.Game; using CardGame.Server.Instances.Players; using CardGame.Server.Instances.Cards; using CardGame.Shared.Attributes; using CardGame.Shared.Enums; using CardGame.Shared.Models.Cards; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace...
2fff50d22dbd04139a3ff6735f2b51aed665c170
C#
debayanmitra/Threading-in-CSharp-vs-Java
/Accessing shared variable/ThreadTest.cs
3.21875
3
using System; using System.Threading; class ThreadTest { static readonly object locker = new object(); static int sharedVariable; static void Main() { Thread t = new Thread (Method); t.Start(); lock(locker) { // sample operation if(sharedVariable==0) { sharedVa...
6da68433254d98785783bfb6a4c7d82081cac282
C#
franciscoamartin/Aula1Turma2
/ImoveisProprietarios/ImoveisProprietarios/Migrations/Configuration.cs
2.640625
3
namespace ImoveisProprietarios.Migrations { using ImoveisProprietarios.Models; using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration<ImoveisProprietar...
0072178962b1e9fe02bd9f5fb790beb5fb063216
C#
tectronics/moo-poo-civilisation-4info
/Model/Tests/Program.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Wrapper; using modele.impl; using modele.interfaces; namespace Tests { class Program { unsafe static void Main(string[] args) { WrapperAlgo w = new WrapperAlgo(25); ...
3b7a5d78a499fe10700fedfedc618a7ef572b838
C#
nsarris/Idotf
/IdotF/DeferredIfWithInput.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; namespace IdotF { public sealed class DeferredIfWithInput<Tin> { private readonly List<CaseWithInput<Tin>> cases; public DeferredIfWithInput(bool condition, Action<Tin> action) { cases = new List<CaseWithIn...
31c24926a2a3cabefb70ab76b319ce3491ee5c8b
C#
OELib/ObjectEntanglementLibrary
/ObjectEntanglementLibrary/OELib/UniversalConnection/UCServer.cs
2.53125
3
using System; using System.Collections.Concurrent; using System.Linq; using System.Net; using System.Net.Sockets; using System.Runtime.Serialization; using System.Threading.Tasks; using OELib.LibraryBase; using OELib.ObjectTunnel; namespace OELib.UniversalConnection { public class UcServer : CommunicationServer<U...
62ceea9447425dbaf83ac6c0db526d2e2d5ae2a5
C#
alandraper/Skybrud.Umbraco.GridData
/src/Skybrud.Umbraco.GridData/Converters/GridConverterAttribute.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Skybrud.Umbraco.GridData.Converters { /// <summary> /// Mark a class to be Auto-converted using the editor.Alias as a key /// </summary> public sealed class GridConverterAttrib...
523d4727294129640aef8c009e892aa8429c81f1
C#
Ramcste/Hall-Dining-Management-System
/HallDiningManagementSystem1/WpfApplication4/ManagerUI.xaml.cs
2.5625
3
using System; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Globalization; using System.Text.RegularExpressions; using System.Windows; using System.Windows.Controls; namespace WpfApplication4 { /// <summary> /// Interaction logic for ManagerUI.xaml /// </sum...
e077033d2ae05ef2dc6ea4be1793327511c67f62
C#
Mishell74/Proyecto-bimestral
/2da parte del proyecto bimestral.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO.Ports; using System.Security.Cryptography.X509Certificates; namespace _2da_parte_del_proyecto { class Program { static SerialPort Arduino = new SerialPort...
7da4dba79cde32a22956ede9a9ba3bba87c9d68c
C#
ulisses31/ContactsAPI
/Data/ContactsAPI.Data/Model/User.cs
2.53125
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using Newtonsoft.Json; using System.Threading.Tasks; namespace ContactsAPI.Data.Model { [Table("Users")] public class User : Base {...
7ea769da98c0772288ef5314b7847e87c14c8b66
C#
RavilBoyukzade/ASP.NET-CORE-FINAL-PROJECT
/ASP.NET-CORE-FINAL-PROJECT/ViewComponents/AboutCardViewComponent.cs
2.578125
3
using ASP.NET_CORE_FINAL_PROJECT.Models; using AutoMapper; using Microsoft.AspNetCore.Mvc; using Repository.Models; using Repository.Repositories.AboutRepository; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ASP.NET_CORE_FINAL_PROJECT.ViewComponents { ...
d8002d6c09a58e3dbdc827ab0e46737d3b726368
C#
rafaelps95/AudictiveMusic
/ClassLibrary/Themes/ThemeColor.cs
2.65625
3
using ClassLibrary.Helpers; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI; using Windows.UI.Xaml.Media; namespace ClassLibrary.Themes { public class ThemeColor : INotifyPropertyChanged { ...
8e0ce0cbda04855e9e7e9b8fe4bbf76bfc5207d9
C#
dominicbirch/CommandBuilder
/CommandBuilder/CommandBuilder.cs
3.5625
4
using System; using System.Threading; namespace CommandBuilder { /// <summary> /// Used to create commands which execute each of the supplied commands once in sequence. /// </summary> /// <typeparam name="T">The type which the built commands may execute against.</typeparam> public class CommandBui...
592f478714d72874bfce85523d680bafa210b64e
C#
darkl/Expression.js
/src/ExpressionJs/Expressions/PropertyOrField.cs
2.53125
3
using System.Linq.Expressions; using Newtonsoft.Json; namespace ExpressionJs { [JavascriptType("propertyOrField")] public class PropertyOrField : IExpressionConvertible<MemberExpression> { [JsonProperty("expression")] public virtual IExpressionConvertible<Expression> Expression { get; set;...
07cc4dab4e10cedd0fcd48a39143ef1023c31b27
C#
NinjaServ/ToDoApp
/ToDoApp/Models/DataTableToCSV.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.IO; namespace ToDoApp.Models { class DataTableToCSV { private void ExportDatatviewToCsv(string iFilename, DataView dv) { // Open outp...
0750c068982e45c3712cab93213e47f6bcd6e080
C#
N1NTENDO1999/Chat
/ChatWebApi/ChatWebApi/Application/Messages/Commands/DeleteMessageByIdCommand.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using ChatWebApi.Infrastructure; using ChatWebApi.Interfaces.Requests; using MediatR; using Microsoft.EntityFrameworkCore; namespace ChatWebApi.Application.Messages.Commands { public class DeleteM...
0bb258de2ebe95972079bc7fcf031b40cc06ac74
C#
RomaPatch/FlappyActionAnimals
/Assets/Scripts/Common/ObjectPool.cs
2.84375
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public class ObjectPool : MonoBehaviour { public GameObject objectToPool; public int pooledQuantity = 10; public bool willGrow = true; private List<GameObject> pooledObjects = new List<GameObject>(); void Awake() {...
bfc6a04990be3830b915dbaa0b43fd69ace82c88
C#
warrenfp/MenuLog
/MenuLog.Core/Factories/Ranking/DefaultRankingFactory.cs
2.640625
3
using MenuLog.Core.Interfaces; namespace MenuLog.Core.Factories.Ranking { public class DefaultRankingFactory : IRankingFactory { public virtual IRankingStrategy GetStrategy(string strategyName = "") { throw new System.NotImplementedException(@"Please implement your own ranking fact...
78dfdf1da2f555243489fab93ee146414c04bc2b
C#
YLiohenki/leetcodeinterviewquestions
/leetcodeinterviewquestions/Trees and Graphs/PopulatingNextRightPointersInEachNode.cs
3.5625
4
using System; using System.Collections.Generic; using System.Text; namespace leetcodeinterviewquestions.Trees_and_Graphs { public class Node { public int val; public Node left; public Node right; public Node next; public Node() { } public Node(int _val) ...
e9ede27641728a4bb129deed252dd6dd8f5f8103
C#
jeremyyang824/Leetcode
/Leetcode.Core/OJ117_PopulatingNextRightPointersInEachNodeII.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Leetcode.Core { /* * Follow up for problem "Populating Next Right Pointers in Each Node". * What if the given tree could be any binary tree? Would your previous solution still work? * * Note: You m...
106d317591f2fb984acbe10eb22203b359ca0728
C#
adonismendozaperez/ECommerce
/ECommerce/ECommerce/Models/User.cs
2.59375
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace ECommerce.Models { public class User { [Key] public int UserId { get; set; } [Required(ErrorM...
40d0dbcde8af3d7a9a7f32f74bb64fb8121e3cf6
C#
Neveark/JubeatFrontendCheckerDemo
/JubeatFrontendCheckerDemo/Program.cs
2.65625
3
using System; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Security; using System.Text; using System.Timers; namespace JubeatFrontendCheckerDemo { class Program { static void Main(string[] args) { //check jubeat is frontend or not System...
57f69ebd1e2a54135511e972f51a77c355f03f64
C#
MorganMBA/ConsoleExplore
/Arborescence/Explorateur.cs
3.09375
3
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Arborescence { public class Explorateur : IExplore { public Explorateur() { } /// <summary> /// returns a list of files in a given directory /// </summary> /...
65dc54746348b27013576e67416132b54c8d2cc4
C#
luhis/DapperLinter
/DapperAnalyser/DapperAnalyser.Test/DapperSqlStyleAnalyzerUnitTest.cs
2.515625
3
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Diagnostics; using TestHelper; using Xunit; namespace DapperAnalyser.Test { public class DapperSqlStyleAnalyzerUnitTest : CodeFixVerifier { //No diagnostics expected to show up [Fact] publ...
14fe44693ee5c73f53237a8393ebe4574269e0b9
C#
kevadsett/ProcJam2017
/Unity/Assets/Scripts/BeatManager.cs
2.59375
3
using System.Collections; using UnityEngine; public class BeatManager : MonoBehaviour { public int BPM = 120; public bool ShouldPlay = false; private const float DELAY = 0.5f; public delegate void TickOccurredAction(float tick); public static event TickOccurredAction OnTickOccurred; public float NextTick {...
7e2325feea3296342ab4154bb57d1a3bc7db9b3f
C#
VSacr1/Robot-Game
/Collectables/Powerup/HealthPU.cs
2.734375
3
using System; using Mogre; using PhysicsEng; namespace Game { class HealthPU : Powerup { SceneManager mSceneMgr; PhysObj physObj; Physics physics; protected ModelElement healthPuModel; /// <summary> /// Gets the return value of healthPuModel and sets th...
2d74da4639ccf49300347d393a2f7320fee604d7
C#
AshleyVMetz/C-RentMe
/RentMe/Model/ReturnedItem.cs
3.0625
3
using System; namespace RentMe.Model { /// <summary> /// This class models a ReturnedItem. /// </summary> class ReturnedItem { /// <summary> /// Accessors for ReturnedItem instance variables. /// </summary> public int ReturnID { get; } public int RentalID { ...
d55f81a263bfe645183bb74bfe459d5478fc860f
C#
Arniox/AspnetMicroservices
/src/WebApps/AspnetRunBasics/Services/OrderService.cs
2.515625
3
using AspnetRunBasics.Extensions; using AspnetRunBasics.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; namespace AspnetRunBasics.Services { public class OrderService : IOrderService { //Objects private readonly Ht...
040b7999b751dd74501dee9447e3b347310729de
C#
HairDontGo/Link-Local
/C#/虚数运算.cs
3.65625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Cons { public class Complex { private int real; private int imaginary; public Complex(int x, int y) { real = x; imaginary = y; } public static...
26ea5d55f26395dda439bf2a665ccff138f45ce1
C#
1729-Dev/AcmeCustomerEngage
/AcmeCustomerEngage/Console.cs
3.078125
3
using AcmeCustomerEngage.DataModels; using System.Collections.Generic; namespace AcmeCustomerEngage { public class Console { public static void Main() { // Query and trim the weather snapshots to the correct date range WeatherService weatherService = new WeatherService(...
e9a739f711051999fdf41f927f5815723dc69953
C#
drunaar/Parus.Tornado.Examples
/Packages/Waybills/PerishablesWaybills/PerishablesWaybills.Interface/Домены/WearPercent.cs
2.828125
3
using System; using System.Reflection; using Parus.Net.Server; namespace Acme.Business.Waybills.PerishablesWaybills { /// <summary> /// Домен Acme.Business.Waybills.PerishablesWaybills.WearPercent - автоматически созданный класс. /// </summary> [Serializable] [Metadata("Acme.Business.Waybills.PerishablesWaybills.Д...
6d35c182c693f9515bfb057b11313476f6ddb0b0
C#
bitstadium/HockeySDK-Windows
/Src/Kit.Core45/DataContracts/PerformanceCounterTelemetry.cs
2.5625
3
namespace Microsoft.HockeyApp.DataContracts { using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading; using Channel; using Extensibility.Implementation.External; /// <summary> /// The class that represents information about performance...
4a3a32865c49c8f3938a3d2a06cc76be4d4047e8
C#
matheuscecilio/MestreDosCodigos.NET
/MestreDosCodigos_POO_1_Conceitos/Encapsulamento/Conta.cs
3.03125
3
namespace MestreDosCodigos_POO_1_Conceitos.Encapsulamento { public class Conta { // Não podemos alterar o saldo diretamente, somente passando por um dos métodos public double Saldo { get; private set; } public void Sacar(double valor) => Saldo -= valor; public void Depositar(do...
cc89c5f772533e50aacfdf2b04a2b8ea0e6e4519
C#
sebaspasker/Planea_M11
/TestsLibrary/CADFavoritosTest.cs
2.515625
3
using System; using System.Text; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using library; using System.Configuration; namespace TestsLibrary { [TestClass] public class CADFavoritosTest { public CADFavoritosTest() { } private TestC...
3db0f4018b73fe13782aa462eadda619011e506d
C#
IgorRozani/WikipediaCrawler
/WikipediaCrawler.Console/Program.cs
3.296875
3
using HtmlAgilityPack; using System.Collections.Generic; using System.Linq; using System.Text; namespace WikipediaCrawler.Console { class Program { const string URL = @"https://pt.wikipedia.org/wiki/"; static void Main(string[] args) { var origin = GetOrigin(); ...
3778a0129be2dea53375e8449decad6cdde66361
C#
aimenux/ChannelsDemo
/App/Examples/AbstractExample.cs
3.140625
3
using System; using System.Linq; using System.Threading.Tasks; namespace App.Examples { public abstract class AbstractExample : IExample { private static readonly Random Random = new Random(Guid.NewGuid().GetHashCode()); public abstract string Description { get; } public abstract Task...
9f973e46dfffa34f25d25322ffa28cc1e55658cb
C#
Bioninja01/vedic_v3
/Assets/JamesVinson/Vid_Nodes/codeGeneration/Vid_Number.cs
2.5625
3
using UnityEngine; using System; public class Vid_Number : Vid_Object { public VidNum_Type type = VidNum_Type.INT; public string data; public override void Awake() { base.Awake(); output_dataType = VidData_Type.NUM; } public override string ToString() { return data; ...
6acca738f71c5aae2364ab5ee286377991c7a568
C#
CodeMoshete/animals
/2D Sidescroller/Assets/Source/PersistentServices/CharacterData.cs
2.75
3
using UnityEngine; public class CharacterData : MonoBehaviour { public static CharacterData Instance { get; private set; } [SerializeField] private CharacterManifest manifest; void Start () { Instance = this; } public Character GetCharacter(string CharacterName) { ...
d1d737ca46eaf59f33fb1876fd4985d02dab2477
C#
proyectocontautn2016/Restaurante
/ProyectoRestaurante/LogicaRestaurante/MontoPorTipoPagoLN.cs
2.5625
3
using DatosRestaurante; using EntidadesRestaurante; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LogicaRestaurante { public class MontoPorTipoPagoLN { public static List<MontoPorTipoPagoEntidad> Obtener...
d411774d286524d0d91286f64a13ea9b07891bed
C#
machelbaev/CSharp
/sem6/CW/Task01/Program.cs
3.578125
4
/* Student: Chelbaev Mikhail Group: BPI182_2 Task: 1 */ using System; using System.Collections; namespace Task01 { public class ArithmeticProgression { int a0, d, n; public ArithmeticProgression(int a0, int d, int n) { this.a0 = a0; this.d = d; ...
dc7ba48b8df6159223343b1fc80fb41d53656994
C#
myung6024/The_Virus
/The Virus/Assets/script/CardStatus.cs
2.8125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CardStatus : MonoBehaviour { private int CardHP; private int CardResistance; private string CardName; private int CardSpeed; public void SetHP(int number) { CardHP = number; } public vo...
cafbeae0b149c92bcbf1dfd92836123eea73f687
C#
NasAlanMarKPFU/lab5
/ConsoleApplication2/Program.cs
3.125
3
using System; using System.Collections.Generic; namespace ConsoleApplication2 { internal class Program { public static void qSortR(int[] mass, int left, int right) { int pivot; int lb = left; int rb = right; pivot = mass[lef...
522b660be3e56f119603fff296baa49671e34b58
C#
Fallenstarrz/GPE340Project
/Assets/Scripts/Drops/DestroyAndRemoval.cs
2.78125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DestroyAndRemoval : MonoBehaviour { [Header("Timers")] [SerializeField] [Tooltip("Time in seconds to wait before destroying this object after spawn")] [Range(0,120)] private float timeBeforeDestroy; [Se...
0b64ae2a6c965cefdb9b20cd660276e63d19a894
C#
tiffanycabernathy96/AbandonMentality
/Assets/Scripts/Maps.cs
2.84375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Maps : MonoBehaviour { public Image leftButton; public Image rightButton; public Image backButton; public List<Image> floors; //0 is 1st, 1 is 2nd, 2 is basement public float[] floorP...
6c4e25f303e01b202412ef38ee0941da6ab2dfe8
C#
ZohrehAnsarian/WebShop-Project
/Repository/EF/Repository/PageContentRepository.cs
2.625
3
using Model; using Repository.EF.Base; using System.Linq; namespace Repository.EF.Repository { public class PageContentRepository : EFBaseRepository<PageContent> { public PageContent GetByLanguageId(int type, int languageId) { var pageContent = from p in Context.PageContents ...
efe3db483cb6e8663d46dc25abdc08bb7556e24f
C#
scottjustin5000/MongoJobScheduler
/Infrastructure/Scheduling/ScheduleCollection.cs
3.09375
3
using System; using Infrastructure.Collections; namespace Infrastructure.Scheduling { [Serializable] public class ScheduleCollection : CustomDictionary<string, ScheduleBase> { /// <summary> /// Creates a new instance of type <see cref="ScheduleCollection"/>. /// </summary> ...
a26b7e84e9c609654eb3dc2b8b1fccd921345520
C#
mark-raymond/DependabotTest
/MyClassLibrary/MyClass.cs
3.828125
4
using System; namespace MyClassLibrary { public static class MyClass { public static double Tetrate(double a, int n) { if (n < 0) { throw new NotImplementedException("Negative tetration not implemented"); } if (n == 0) ...
dd7ca380fe801aafa0b25236d491d9bea93fe7ee
C#
ozidom/SpaceRogueRevolution
/SpaceRogueRevolution/Models/Factory/JobFactory.cs
2.90625
3
using SpaceRogueRevolution.Models.GameObjects; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace SpaceRogueRevolution.Models.Factory { public static class JobFactory { /*public static Job Create(int id,string description,int desination,int value) { ...
1f62f7d1421ba86474a3fb571a88cd910a4554de
C#
OpenJEVis/JEVis-C-Sharp
/JEAPI/JEVisAttributeType.cs
2.625
3
using System; using System.Collections.Generic; using System.Text; namespace JEAPI { public interface JEVisAttributeType : JEVisComponent, JEVisCommittable, IComparable<JEVisAttributeType> { /** * Returns the name of this type. The name is a unique identifier for a * type. The name does not have to...
da6d2a9d61e967ccfdd0c68fc7d488504dabdc0c
C#
Kaos1105/Etour
/backend-app/Application/HelperCodes/Edit.cs
2.5625
3
using System; using System.Net; using System.Threading; using System.Threading.Tasks; using Application.Errors; using Domain; using FluentValidation; using MediatR; using Persistence; namespace Application.HelperCodes { public class Edit { public class Command : IRequest { //command...
414dfc2887d60714d3cf1de776f09ae68fdde2ce
C#
Dzuke911/PVT.Dzukes.Money
/PVT.Money.Business/MoneyClasses/Money.cs
3.0625
3
using System; using System.Collections.Generic; using System.Text; namespace PVT.Money.Business { [Serializable] public sealed class Money { public decimal Amount { get; private set; } public Currency Curr { get; private set; } [NonSerialized] private ExchangeRates exchang...