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
451f30a385a10c9ea96136b131f4290e0e4e7f66
C#
lavrleo1998/FootballManager.NetFramework
/LINQ/Program.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LINQ { class Program { static void Main(string[] args) { var footballers = new List<Footballer>(); footballers.Add(new Footballer("...
ba86595fd2fdcd2971bc3fea1058b795ebb7efa1
C#
ted-lee-lba/AcmeFood
/Acme.Db.InMemoryProvider/Repositories/CashPoolRepository.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Acme.Db.Provider.Entities; using Acme.Db.Provider.Repositories; using Acme.Db; namespace Acme.Db.Provider.InMemory.Repositories { public class CashPoolRepository : ICashPoolRepositor...
17e16a4bcd840cf72883b5a18bbffb6cb13fa57e
C#
yfdtc12345/Football
/FootBallAI/FootballAI/Assets/Gamelogic/Grids2/Plugins/Scripts/Core/1D/Grid1.cs
3.171875
3
using System.Collections.Generic; namespace Gamelogic.Grids2 { /// <summary> /// 1D implementation of a <see cref="IGrid{TPoint,TCell}"/>. /// </summary> /// <inheritdoc/> public sealed class Grid1<TCell> : AbstractGrid<int, TCell> { #region Constants private readonly TCell[] cells; private readonly IExpl...
4ae6174363a3f9d7656540c0d6ecb8d6d63ff12e
C#
pulsar627/TK-api
/JobsPortal.Business/Implementations/JobDetailsManager.cs
2.703125
3
using JobsPortal.Business.Interfaces; using JobsPortal.Business.Models; using Microsoft.Extensions.Configuration; using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Data; namespace JobsPortal.Business.Implementations { public class JobDetailsManager : IJobDetailsManager ...
1a8a3811fbef3eca6731c566af9539adb007a45f
C#
SebastiaanBuwalda/Payback
/Fighter/Assets/Scripts/MoveWithVector.cs
2.515625
3
using UnityEngine; public class MoveWithVector : MonoBehaviour { [SerializeField] private Vector3 moveVector; private Vector3 trueVector; void Awake() { trueVector = moveVector; } void OnDisable() { moveVector = trueVector; } // Update is called once per frame void Update () { transform.Transla...
d0f3dd098b99aba9ffd7baf6b7674cb26c0a5df0
C#
DenisJay/SuperAwesomeHomieProject
/Homies.SARP/Homies.SARP.Common/Homies.SARP.Common.Extensions/GeneralExtensions.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace Homies.SARP.Common.Extensions { public static class GeneralExtensions { #region Const public const double tolerance = 0.0001; ...
20a391142e9c90ed865b2bb5261cb36349afbc02
C#
Hookhorror/ties322-tietoliikenneprotokollat2
/udp/positive_and_negative_acks/client/VirtualSocket.cs
2.796875
3
using System; using System.Diagnostics; using System.Net; using System.Net.Sockets; namespace client { public class VirtualSocket : Socket { Sabotager sabotager; internal void SendMessage(byte[] message, EndPoint ep) { SendTo(message, ep); } internal static...
5300c6df9b87158e2c934999158ce8da07fe091d
C#
DonevskiPetar/cSharp
/E-Shop/Classes/Classes/ExtensionMethods.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Classes.VendorsAndProducts; namespace Classes.Classes { public static class ExtensionMethods { public static User RegisterUser() { Console.WriteLine("-...
6d259f7e716e69db693b9bada87d7fe694d8e920
C#
aliencube/Korean-Postcode-Address-Converter
/SourceCodes/KoreanPostcodeAddressConverter.Tests/LotBasedAddressServiceTest.cs
2.546875
3
using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using System.Reflection; using NUnit.Framework; using Aliencube.Utilities.KoreanPostcodeAddressConverter.Configuration; using Aliencube.Utilities.KoreanPostcodeAddressConverter.Services; namespace Aliencube...
4fad965fb70d165c468927f93a10c8e73522a1e4
C#
howest-gp-wba/cu-h01-Lesson.H1.CsharpFeatures-furniture_S3_GA
/Lesson.WBA.H1.CsharpFeatures.Domain/Furniture.cs
2.984375
3
using System; using System.Collections.Generic; using System.Drawing; namespace Lesson.WBA.H1.CsharpFeatures.Domain { public class Furniture { public int? Id { get; set; } public FurnitureType? Type { get; set; } public KnownColor? Color { get; set; } public string Description ...
6d4ff34e0b60adc6cf2c42cee532c2d78d6a7371
C#
sojo2600/css552_Research_Project
/Source/UWBGLLib/UWBGL_XNA_Lib/Common/Primitives/UWB_PrimitiveTriangle.cs
2.59375
3
using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace UWBGL_XNA_Lib { public class UWB_PrimitiveTriangle : UWB_Primitive { protected Vector3 mV1, mV2, mV3; protected Vector3 m_mouse_down_point; ...
b1f2aece3a60ba13963e89a85d9e53ed676151e0
C#
EdzUp/C-
/Framework/MeshClass.cs
2.59375
3
using UnityEngine; using System.Collections; public class MeshClass { public Mesh CreateQuad( float OffsetX, float OffsetY, float tx, float ty, float bx, float by ) { Mesh mesh = new Mesh(); Vector3[] vertices = new Vector3[] { new Vector3( OffsetX +0.5f, OffsetY +0.5f, 0 ), new Vector3( OffsetX ...
fda2a50606283bfd4921817d7935b22fffe76599
C#
ifagarasan/Kore
/Kore.Code/Sort/MergeSort.cs
3.140625
3
using System; using Kore.Code.Util; using Kore.Code.Validation; namespace Kore.Code.Sort { public static class MergeSort<T> where T : IComparable { public static void Sort(T[] input, SortDirection direction = SortDirection.Ascending) { ArrayValidation<T>.ValidateArray(input); ...
bec1fa94de1191ea18772fd5f65097f497e4f0c6
C#
zimnismoboy34/YmsBms
/SerialPorts/SerialPorts.cs
2.96875
3
using Common.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO.Ports; namespace SerialPorts { public class SerialPorts : IDisposable, ISerialPorts { public string SelectedPort { get; private set; } ...
8414f83e35dad12c9029d47d573a88d1332cd5f2
C#
templeblock/UAM.ImageProcessing
/ImageProcessing.Filters/Lines.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Media.Media3D; using System.Threading.Tasks; using System.Drawing; using System.Drawing.Imaging; using System.Runtime.InteropServices; namespace UAM.PTO.Filters { public static class Lines {...
efd12d5393c015ab57231088a2c23c93759b7c28
C#
kyle-morton/DotNetCore-DependencyInjection
/StructureMap/DNC-DI.logic/Handler/Customer/CreateCustomerHandler.cs
2.5625
3
using DNC_DI.data.Repositories; namespace DNC_DI.logic.Handler.Customer { public interface ICreateCustomerHandler { void Create(shared.Models.Customer customer); } public class CreateCustomerHandler : ICreateCustomerHandler { private ICustomerRepository _repo; public Cr...
c2229c9fd0be221c822889094d0ae225f3dd3ae5
C#
hamdanfiras/Banking101
/Banking101/Services/IBulkCodeSender.cs
2.859375
3
using Banking101.Models; using System.Collections.Generic; using System.Threading.Tasks; namespace Banking101 { public interface IBulkCodeSender { Task SendBulkCode(Dictionary<Customer, string> customerCode); } public class BulkCodeSender : IBulkCodeSender { private readonly ICode...
621c788226fa541018b6e0902cc3a6242da69b2c
C#
lukegosnellranken/Portfolio2020
/CSharp/BankProject/Bank/Program.cs
3.734375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace Bank { class Program { static void Main(string[] args) { //declare and initialize global constant const int ARRAYSI...
8503dfb965424ac97baf112244288417955828e8
C#
acoustically/PessengerWindowsClient
/Pessenger/HttpRequest/HttpRequest.cs
2.984375
3
using Newtonsoft.Json.Linq; using System; using System.IO; using System.Net; namespace Pessenger { class HttpRequest { public string Get(string url) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); AddToken(request); request.Method = "GET"; HttpRes...
55b655da19fb108e795562f27069b0695b140c9b
C#
kphl/Sokoban
/Sokoban/Entity.cs
2.609375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sokoban { public abstract class Entity { public Position Pos { get; set; } protected List<Image> Images { get; set; } public Entity(Posit...
3c1b2a7233e500c9af65a8c54804bf3b654c14b8
C#
TomKopp/Flexiplosion
/Flexiwall/FlexiWallUtilities/Filter/PostProcessing/FastestBoxBlur.cs
2.84375
3
using FlexiWallUtilities.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FlexiWallUtilities.Filter.PostProcessing { public class FastestBoxBlur<T> : IPostProcessor<T> where T : Point3 { private IPointGrid<T> _pointgri...
e4f42bfafbdeb625015b864d5bdf864920eeee0a
C#
huynhvantam/cSharpBasic
/BasicAlgorithm/Basic Algorithm/ConsoleApp1/Class18.cs
3.21875
3
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp1 { class Class18 { static void Main(string[] args) { Console.WriteLine(test(1, 2, 3)); Console.WriteLine(test(1, 3, 2)); Console.WriteLine(test(1, 1, 1)); Con...
e32c89d3ab769a4ed05f45838d252a855f59f32c
C#
BroYAN9993/ArtOfUnitTesting2ndEd.Samples
/LogAn.UnitTests/MemCalculatorTests.cs
2.90625
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.Text; namespace LogAn.UnitTests { public class MemCalculatorTests { private static MemCalculator MakeCalculator() { return new MemCalculator(); } [Test] public void Sum_ByDe...
4a78f47e1aa97daea642557d6b48d2fe2c38294a
C#
hayelb12/Final
/ClientAdv/ClientAdv/Form1.cs
2.65625
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.Net.Sockets; namespace ClientAdv { public partial class Form1 : Form { Sys...
995145cc046642b5e48f10571654ad19ef712987
C#
PiewDev/CartasCromy-TP
/JuegoCromy/Mazo.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JuegoCromy { public class Mazo { public string Nombre { get; set; } public List<string> NombreAtributos { get; set; } public List<Cartas> Cartas { get; set; } ...
07b20492b1884a21cdd63393c9569fbd82eba3eb
C#
banerjeea/checkwriter
/ChequeWriter/Services/InputProcessor.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ChequeWriter.Validator; namespace ChequeWriter.Services { public interface IInputProcessor { string ProcessInput(string num); } public class InputProcessor : IInputProcess...
7534a98704146df355ce84968d6cfed0e65353c4
C#
towelie82/Test
/Drag_Drop_Controls/Xamarin-Developer-Sample-master/DeveloperSample.Core/Helpers/LoggingHelper.cs
2.671875
3
using System; using System.Runtime.CompilerServices; using System.Text; using NLog; using NLog.Config; using NLog.Targets; namespace DeveloperSample.Core.Helpers { public static class LoggingHelper { private static Logger _logger; //NLog logger private static void Initialize() { ...
e6a914c5e327b0afca543d836d5be5fea1b50ef0
C#
vesy53/SoftUni
/Programming Basics - C#/Exams/Programming Basics Exam - 28 August 2016/p03.01HotelRoom/Program.cs
3.46875
3
using System; namespace p03HotelRoom { class Program { static void Main(string[] args) { string month = Console.ReadLine(); double numNight = double.Parse(Console.ReadLine()); double priceStudio = 0.0; double priceApartment = 0.0; s...
a66ea43b0b2d3106fcbe75ea20bd9c3aca0e669d
C#
zadykian/itis-bioinformatics
/Bioinformatics.Task8/Validation/Constants.cs
2.6875
3
namespace Bioinformatics.Task8.Validation { /// <summary> /// Константы newick-формата. /// </summary> internal static class Constants { /// <summary> /// Символ завершения newick-строки. /// </summary> public const char EndSymbol = ';'; /// <summary> /// Символ - разделитель узлов. /// </summary> ...
bfa2dc2f279e5dfc8d8e40c35b958055e7d58a01
C#
martinmihov/Programming-Fundamentals
/Regex/05 Use Your Chains, Buddy/Program.cs
3.65625
4
using System; using System.Text; using System.Text.RegularExpressions; public class UseYourChainsBuddy { public static void Main() { var htmlText = Console.ReadLine(); var pattern = @"<p>(.+?)<\/p>"; var currentMatch = string.Empty; foreach (Match match in Regex.Matches(htmlT...
b27229f6707de06019c135ce08bc469f58a160c8
C#
FynZ/MyContainer
/src/MyContainer/MyContainerConsole/SampleClasses/Utils/Mailer.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; namespace MyContainerConsole.SampleClasses.Utils { class Mailer : IMailer { private string _from; public Mailer(string from) { _from = from; } public void Send(string from, string to, strin...
0b7154d98e9fe9b43843a30c38a0848882517e52
C#
skls113/TennisPro
/TennisPro.Domain/Set.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TennisPro.Domain.Abstracts; namespace TennisPro.Domain { public class Set { #region Properties public Player Winner { get; set; } public Match Match { get; set; } ...
c03e4d336293d4f65ba44104c3fbf86e5098403e
C#
mybirthname/NullObjectPattern
/ConsoleApp1/SamsungMobile.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; namespace NullObjectPattern { public class SamsungMobile : IMobile { public void Turnoff() { Console.WriteLine("Samsung Mobile phone is turn off"); } public void TurnOn() { Conso...
e454d16e37a6a8b61214fab109c57eaf04c5a0d2
C#
AdrianWilczynski/YouTubeToPodcast
/src/YouTubeToPodcast/Models/VideoInfo.cs
2.6875
3
using System; using System.Xml; using Google.Apis.YouTube.v3.Data; namespace YouTubeToPodcast.Models { public class VideoInfo { public VideoInfo(Video video) { Id = video.Id; Title = video.Snippet.Title; Description = video.Snippet.Description; Pu...
b06dc37cc5d513e028a136e708076ae1b7e23d0c
C#
ShengXiangXiong/GisSever
/LTE/Beam/Ray.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; /* Copyright (c) 2004-2005, Samuli Laine */ // Copyright (c) 2018-2019, 尹静萍 // 文献:Samuli Laine, Samuel Siltanen, Tapio Lokki, Lauri Savioja. Accelerated beam tracing algorithm[J]. Applied Acoustics, 2009, 70(1): 172-181. namespace ...
635605e008613f27d04ef03694a377b4b766968c
C#
votrongdao/WATKit
/WATKit/Controls/AutomationControl.cs
2.640625
3
using System; using System.Windows.Automation; using ControlType = System.Windows.Automation.ControlType; using WATKit.Build; namespace WATKit.Controls { /// <summary> /// Default wrapper for automation elements /// </summary> public class AutomationControl { private AutomationElement automationEle...
85bfe0f42488738ae1c1e24789e963e9c58e0325
C#
shendongnian/download4
/code1/57655-897254-1736242-6.cs
2.65625
3
List<List<string>> quotedListLines = MyRegEx.GetMatchesArrayPerLine(a); foreach (List<string> line in quotedListLines) { Console.WriteLine("----LINE---"); foreach (string quotedText in line) Console.WriteLine(quotedText); }
995aa72c1402f55e797dc54e0846390c9299a9d9
C#
tbladh/FluentHosting
/FluentHostingExample/Program.cs
2.890625
3
using System; using FluentHosting; namespace FluentHostingExample { class Program { static void Main(string[] args) { var host = new FluentHost("http://localhost", 1234) //.Handles("/", Verb.Get, context => "Welcome!") .Handles("/hello/world", Verb.G...
3b6c3037043feb164d89f2b739bec0fe128c98a2
C#
olehspidey/DummyWebApp
/DummyWebApp/Extensions/EnvironmentExtensions.cs
2.984375
3
namespace DummyWebApp.Extensions { using System; public static class EnvironmentExtensions { public static T GetValueOrThrow<T>(string variable) { var environmentVariable = Environment.GetEnvironmentVariable(variable); if (environmentVariable is null) ...
1e6fa245b34abb194bee4bf0688a8700a7a6dfb1
C#
yanpaulo/VisitaCidades_old
/IABusca/BuscaGulosa.cs
3
3
using IABusca.Mapas; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IABusca { public class BuscaGulosa<T> : IAlgoritmo<T> { private List<No<T>> borda = new List<No<T>>(); private IProblemaHeuristica<T> problema; ...
bfdaede08e042277745f254625204a6df62105ab
C#
OregoCorporation/GameUtils
/State/IStateMachine.cs
2.84375
3
using System.Collections.Generic; namespace GameElements { public interface IStateMachine : IStateController, IState { T GetState<T>() where T : IState; IEnumerable<T> GetStates<T>() where T : IState; } public static class Extensions { public static void ChangeState<TState...
b5f93c224dbc03f7485ea680c5087c09b287a592
C#
cvet-/Telerik_Academy
/CSharp2/StringsAndTextProcessing/12.ParseURL/ParseURL.cs
3.59375
4
// Write a program that parses an URL address given in the format: // [protocol]://[server]/[resource] and extracts from it the [protocol], [server] and [resource] elements. using System; using System.Text.RegularExpressions; class ParseURL { static void Main() { const string url = "http://telerikac...
c6902df31319eb0f448f15fac75f2dd5e6127d27
C#
BAndysc/UserGuiLib
/UserGuiLib.GDI/PaintDotNet/Implementation/MemoryBlock.cs
2.59375
3
///////////////////////////////////////////////////////////////////////////////// // Paint.NET // // Copyright (C) dotPDN LLC, Rick Brewster, Tom Jackson, and contributors. // // Portions Copyright (C) Microsoft Corporation. All Rights Reserved. ...
3dbf390615c5b8fb40048e1c2dbfc31b9b77a8c6
C#
SandipDankhra/ProjectAnalysis
/ToyZoneApp/Program.cs
3.296875
3
using System; using System.Data.Entity; using ToyZoneApp.Context; using ToyZoneApp.Domain; using ToyZoneApp.Models; namespace ToyZoneApp { class Program { public static int i; static void Main(string[] args) { Console.WriteLine("========== WelCome TO ToyZone ====...
835d31391d032101ead1fbd6200e9387475110ba
C#
aesp/TA2
/NUnitTestProject/NUnitTest.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TA2_Evolucion; using NUnit.Framework; namespace NUnitTestProject { [TestFixture] public class NUnitTest { [Test] public void TestSumar() { TestClas...
90445d6da0303029a225614e3bdf28bddb258f61
C#
VincentRoole/SqlExcel
/SqlExcel/ExcelHelper.cs
2.859375
3
using System; using System.Data; using System.IO; using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using NPOI.XSSF.UserModel; namespace SqlExcel { static class ExcelHelper { #region 导出DataTable到Excel(Author:hanzhaoxin/2014-12-12) public static void DataTableToExcel(DataTable dtSource, stri...
300347ebaf069acda6029fe16e6c6205f596a753
C#
mhmuzy/With
/Projeto.Apresentacao/Configurations/TokenService.cs
2.5625
3
using System; using System.Collections.Generic; using Microsoft.IdentityModel.Tokens; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Threading.Tasks; using System.Security.Claims; using System.Text; using Projeto.Apresentacao.Repositories; namespace Projeto.Apresentacao.Configurations { pu...
8b870f5d3adf20fc3a08ce0812348c7675177296
C#
ilovearapiles/OrganPipes
/CMS.Service/SiteService.cs
2.609375
3
using CMS.Data; using CMS.DTO; using CMS.DTO.Factory; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CMS.Service { public class SiteService { SiteRepository _siteRepository; SiteFactory _siteFactory; public...
1b9ada178f04c06d8eb0095c357e7c4d8856cd46
C#
uuqtu/Memorex
/Memorex.ViewModel/CategoryViewModel.cs
2.59375
3
using Memorex.Model; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace Memorex.ViewModel { public class CategoryViewModel : ViewModelBase { public static EventHandler Categ...
7ba4ec72dcfc5091253a35f33cafd083b9e718dc
C#
oblivion76/csharp-projects
/c#-projects/alphabetnumber.cs
4.3125
4
using System; namespace AlphabetToNumber { class Program { static void Main(string[] args) { Console.WriteLine("Please type a sentence you want to convert!"); string input = Console.ReadLine(); Char[] charArray; charArray = ConvertToArray(input)...
d4de058b0a3958e3f061008cff34cb5aa98d9bf4
C#
kishankarna/.NET
/Banking/ClassLibrary1/account.cs
2.65625
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Data; using System.Threading.Tasks; namespace DALlayer { public class account { public static void createAccounts(string accountID, string accountType, double moneyBalance, string preparer, DateTime date, string...
2d95ea1e3e5807fb6f1ff9fb695c1f49bed10bf3
C#
dmavrotas/CustomTilesPrototype
/CustomTilesPrototype/Controls/GenericTile.xaml.cs
2.5625
3
using CustomTilesPrototype.ViewModels; using GalaSoft.MvvmLight.Command; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Window...
724d6ad578ff56390da7da4462b822b8c9aa8110
C#
chills-hub/Exolver
/Assets/Scripts/Game Logic/StartGame.cs
2.578125
3
using System.Collections; using UnityEngine; using UnityEngine.SceneManagement; public class StartGame : MonoBehaviour { public static bool IsPlayerLoading = false; public void StartTheGame() { SceneManager.LoadScene("Main_Hub"); } public void StartTheGameWithLoad() { IsPla...
80fecb515eca9f1f658ba6094068d3d828392150
C#
carlos0202/employees_library_scrum
/MyEnterpriseLibrary/MyEnterpriseLibrary.Tests/BookLendTest.cs
2.6875
3
using MyEnterpriseLibrary.Core; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyEnterpriseLibrary.Tests { [TestFixture] class BookLendTest { [Test] public void Lend_Book_To_Employee() { ...
743179f4006b81392a050691bdde01e50e18bd04
C#
kulhajs/LudumDare27
/LD27/LD27/Background.cs
2.59375
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LD27 { class Background : Sprite { string[] assetNames = new string[] { "Images/backg...
1b1f91a63505f11a815fa8a9e21e689d772ac856
C#
brettman/SmartAC
/SmartAC1.Data/Repositories/DeviceRepository.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using Microsoft.EntityFrameworkCore; using SmartAC1.Core.Interfaces; using SmartAC1.Core.Models; namespace SmartAC1.Data.Repositories { public class DeviceRepository : IDeviceRepository ...
570c9e2e418b73bb5a17ebb41da224f9471d220c
C#
za3030315/VerivoxTest
/Verivox.Tests/TariffComparerTests.cs
2.625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using Verivox.BusinessLogic; using Verivox.BusinessLogic.Tariffs.Abstract; namespace Verivox.Tests { [TestClass] public class TariffComparerTests { [TestMethod] public void ShouldReturnTwoTariffsWhenTwoTariffsAreCompared() { ...
c4e9238f0cbda786272aaf807448cb5a520b37cb
C#
Faithlife/PortableContrib
/src/Faithlife.PortableContrib/Globalization/SortKey.cs
2.921875
3
using System; namespace System.Globalization { /// <summary> /// Represents the result of mapping a string to its sort key. /// </summary> public class SortKey { internal SortKey() { } /// <summary> /// Gets the byte array representing the current SortKey object. /// </summary> pub...
513ae7941f70ce88624e3e31b7effd8a50f6687d
C#
kaloyanTry/ProgrammingAdvanced2021
/DifiningClasses/DateModifier/Program.cs
3.078125
3
using System; namespace DateModifier { public class Program { static void Main(string[] args) { DateModifier modifier = new DateModifier(); string firstInput = Console.ReadLine(); string secondInput = Console.ReadLine(); Console.Wr...
bef9b6c30b704e0bc349f3e0d726644c264386d2
C#
vukRadovanovic/ophel
/Ophel Industries/Assets/Scripts/Dialogue/JsonParser.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class JsonParser { public static T[] MultiDeserialize<T>(string jsonStr) { JsonContainer<T> container = GatherJsonItems<T>(jsonStr); return container.jsonItems; } public static string MultiSerialize<T>(T[] jsonItems)...
79e8cae3037b05e9ecce0c41bc689cdab44fb139
C#
g3ferreira/Sample-Apps-WP
/novo/8pos/Controllers/Api/UserApiController.cs
2.578125
3
using _8pos.Controllers.Model; using _8pos.Models.Entity; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; namespace _8pos.Controllers.Api { public class UserApiController : ApiController { // GET: api/PosUser public List<PosUser> Get(...
0b444c51747b3f7cbbe5dfc24d518ef1c3e25f35
C#
angel333119/GameTools
/TestHotelDuskANMFRM/Program.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using GameTools; using System.IO; namespace TestHotelDuskANMFRM { class Program { static void Main(string[] args) { bool flip = false; GTFS fs = new GTFS("Bracelet-...
309b40b236b0e104ff35ea1f18a7ee90927880bf
C#
fjavaler/Reading-and-writing-to-files-in-CSharp-example
/Program.cs
2.84375
3
using System; using System.Collections.Generic; using System.IO; namespace Source { class Program { static void Main(string[] args) { var fileEditor = new FileEditor(); // Read file string[] fileLines = fileEditor.ReadFile(); List<...
ff1349f38f8957606189d949b9f5dda75460e25c
C#
rdosanjh/Basket
/Basket.Client/BasketClient.cs
2.71875
3
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Basket.Models; using RestSharp; namespace Basket.Client { public class BasketClient : IBasketClient { private string baseUrl; private RestClient client; private string apikey; ...
5b9b7816a3786e7998b5d44265a43f5f151981bf
C#
lazerhawk/dnYara
/Libraries/dnYara.Interop/Interops/ObjRefHelper.cs
2.703125
3
using System; using System.Diagnostics; using System.Runtime.InteropServices; namespace dnYara.Interop { public static class ObjRefHelper { public static void ForEachYaraStringInObjRef(IntPtr ref_obj, Action<YR_STRING> action) { YR_STRING yrString; for ( ...
1d1558b3ae253f33e1b4bfdfb6cc750641b4664c
C#
chuxuantinh/Software-Dev
/02.Technology-Fundamentals/06.Arrays-Exercises/Solution3/P03RecursiveFibonacci3/Program.cs
3.671875
4
using System; namespace P03RecursiveFibonacci3 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); if (n <= 0) { Console.WriteLine(0); return; } if (n == 1) ...
ee8749777b8db29dde71f47757606360bf051046
C#
m3space/m3space-main
/software/dotnet/GroundControl/GroundControl.Core/CpmCounter.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GroundControl.Core { /// <summary> /// A CPM counter for radiation measurements. /// </summary> public class CpmCounter { private int count; private double cpm; pri...
937671f63d0ca19c8e4fd30d70d380c209ad7f8b
C#
Zaid-Ajaj/Bridge.ChartJS
/Bridge.ChartJS/ChartOptions/LayoutConfig.cs
2.546875
3
namespace Bridge.ChartJS { [ObjectLiteral] [External] public class LayoutPadding { public int Left; public int Right; public int Top; public int Bottom; } [ObjectLiteral] [External] public class LayoutConfig { /// <summary> /// T...
e29a7a818d0454d06dc947a3530721bb75fd14b5
C#
ilyavlasoff/sa2
/systemAnalyze2/Form1.cs
2.59375
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 systemAnalyze2 { public partial class Form1 : Form { private int count = 0; ...
9d5486cac2805274d3fa0751f5de171465a59d9c
C#
shnipov/api-v1
/TodoApi/src/TodoApi/Models/Address.cs
2.53125
3
namespace TodoApi.Models { /// <summary> /// Адрес /// </summary> public class Address { /// <summary> /// Индекс /// </summary> public string PostalCode { get; set; } /// <summary> /// Страна /// </summary> public string Country { ge...
b826835c172dbc0acea4723162d6d2b5e3fda236
C#
Kawser-nerd/CLCDSA
/Source Codes/AtCoder/abc088/C/3698266.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtCoder { class ABC { static void Main(string[] args) { int[][] N = new int[3][]; for (int i = 0; i < 3; i++) { ...
8d0bf1a5bdf5dfb0420c7d00f3b53916afa4a73a
C#
farrukhButt/IronStoreManagementSystem-
/IronStore/Helpers/CustomerHelper.cs
2.875
3
using IronStore.Entity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IronStore.Helpers { class CustomerHelper { public object CustomerForDataGrid(List<Customer> customers) { var customerss =...
ae9838603fa0c1a87cbf2fbb554ef3c10a194799
C#
tacopetri/TorXakis-DotNet-Adapter
/TorXakisDotNetAdapter/Source/Refinement/State.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using TorXakisDotNetAdapter.Logging; namespace TorXakisDotNetAdapter.Refinement { /// <summary> /// A state contained in a <see cref="TransitionSystem"/>. /// </summary> public sealed class State { #region Variables & Prope...
7d63864617a171383fb0d9c6f692a7d7961c93e8
C#
NewellClark/RealTimeLevelEditor
/src/WebApi/Services/ChunkDatabaseRepository.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using RealTimeLevelEditor; using WebApi.Data; using System.Collections.Concurrent; using Newtonsoft.Json; using WebApi.Models; using System.Diagnostics; using MiscHelpers; namespace WebApi.Services { public sealed class ...
db5009e830bc6ea2db526f0b8a04d7734eb8eae9
C#
tgkkuppens/ProjetosOO
/Exercício5Lab3/Exercício5Lab3/ItemMenu.cs
3.34375
3
using System; using System.Collections.Generic; using System.Text; namespace Exercício5Lab3 { class ItemMenu { string nome; float preco; public ItemMenu(string nome) { this.Nome = nome; } public string Nome { get => nome; protected set...
44874aa911036a4e4a251693254b8cf5c49c96c1
C#
TheReverseBrother/CA2-3D-Games
/3DGD - ICA - v1.1/GDLibrary/GDLibrary/Controllers/2D/UI/UIProgressController.cs
2.71875
3
/* Function: Sets the source rectangle dimensions on the parent DrawnActor2D to enable a progress bar Author: NMCG Version: 1.0 Date Updated: Bugs: None Fixes: None */ /* This gets score and changes it when an item is picked up */ using Microsoft.Xna.Framework; using System; namespace GDLibrary { pub...
dd8c7902aa53967948ce0ee14db7968be0eaae07
C#
zsonglorman/News-Comparator
/ElasticsearchClient/Models/News/ArticleExistsData.cs
2.703125
3
namespace ElasticsearchClient.Models.News { /// <summary> /// Represents the response object of an exists query. /// </summary> public class ArticleExistsData { /// <summary> /// Indicates whether the article already exists in Elasticsearch. /// </summary> public boo...
3d7207ecf07191326909da2a11a2cf6b24f9914f
C#
shendongnian/download4
/first_version_download2/537057-50338439-173403477-2.cs
3.046875
3
<script runat="server"> protected void NodeLoad(object sender, NodeLoadEventArgs e) { // NodeID stores the local disk path ( full path ) of the selected node to expand string path = e.NodeID; if (!string.IsNullOrEmpty(e.NodeID)) { ...
212228c5d882407807e6a4000e968ac13accfa8e
C#
diegodfsd/MVC-Custom-Validators
/Site/Models/UserForm.cs
2.65625
3
using System; using System.ComponentModel.DataAnnotations; using Site.Helpers; namespace Site.Models { public class UserForm { [Display(Name = "Name")] [Required(ErrorMessage = "Name is required")] public string Name { get; set; } [Display(Name = "Email")] ...
5849296625fbf62c51791803d82c9e723c00ddf1
C#
secretshopping/titan
/App_Code/Security/Url/UrlFactory.cs
3.34375
3
using System; public class UrlFactory { Url _instance; string _url; public UrlFactory(string url) { _url = url; } public Url CreateInstance() { try { using (MyWebClient webclient = new MyWebClient()) { webclient.DownloadString(...
cbfbd99e3645562896680d4f26465d9df6b470f6
C#
shendongnian/download4
/code8/1490630-40916987-132882008-2.cs
3.3125
3
public static class MyFactory { public static T MyCreateInstance<T>() where T : class { // Checks if there is custom constructor var ctor = typeof(T) .GetConstructors() .FirstOrDefault(c => c.GetParameters().Length > 0); ...
7b658ea7967bfd1f2a8c6ec38a04f0a39364ab70
C#
RichardChen1122/Rainnier.Alg
/Rainnier.Alg/leetcode/Leetcode274.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Rainnier.Alg.leetcode { public class Leetcode274 { // H 指数 public int HIndex(int[] citations) { Array.Sort(citations, (x, y) => { ...
0a7e97cd886d9e3019c944a36e461ccc6547b354
C#
christopouloumarianna/CompanyInterfaceExample
/C.cs
3.15625
3
using System; using System.Collections.Generic; using System.Text; namespace CompanyInterfaceExample { public interface IEmployee { double GetSalary(); bool IsUpdated(); } public interface IRemote { double GetTotalHours(); } public interface ILocal { in...
c1f9256f121e566ac919b505cc92d953bfb3eb0b
C#
gusvicuna/Clash-of-Apps
/Assets/Scripts/Game/Player.cs
2.796875
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; [Serializable] public class Player { public string name; public Color color; public List<CountryBehaviour> countries; public int influencersToPurchase; public int turnNumber; public Player(string name...
550558ed62a3e9e70142af7d7815c56a9c9d2c08
C#
LanceP51/student-ex-web-app
/StudentExercisesWebApp/Models/ViewModels/StudentCreateViewModel.cs
2.84375
3
using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.Extensions.Configuration; using StudentExercisesWebApp.Models; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Threading.Tasks; namespace StudentExercisesWebApp.Models.ViewModels ...
1866b68b44b5caaff8e766eefd91a201bab255a3
C#
mojamcpds/ShoppingcartApplication
/Shoppingcart/Shoppingcart.Repositories/Repository.cs
2.78125
3
using Shoppingcart.Infrastructure.Domain; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace Shoppingcart.Repositories { public abstract class Repository<T, TId> : IRepository<T, TId...
ec7a6ae9d89fb1b3070d05542f978e106b37090c
C#
rajraebl/rnd
/PassMultipleComplex/Controllers/productController.cs
2.90625
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using Newtonsoft.Json.Linq; using PassMultipleComplex.Models; namespace PassMultipleComplex.Controllers { public class productController : ApiController ...
93a8a5e53d874434f8de75ed29d1d172cb919c48
C#
varajan/Leetcode
/LeetCode/LeetCode/Medium/CompareVersionNumbers.cs
3.65625
4
using System; namespace LeetCode.Medium { public static class CompareVersionNumbers { public static int CompareVersion(string version1, string version2) { var v1 = version1.Split('.'); var v2 = version2.Split('.'); var vAsInt1 = 1; var vAsInt2 =...
966047d32813f64c95262a323c6f891831aac014
C#
gszasza1/MovieHW
/MovieHW/Models/SeriesSeasons.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MovieHW.Models { //Sorozat évadához tartozó adatok public class SeriesCrew { public int id { get; set; } public string credit_id { get; set; } public string...
154ecf2c8492cb6b94b832aae1a75ec2ae577db2
C#
ieronimb/Week4Tema2Exercitiul2
/Week4Tema2Exercitiul2/Program.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Week4Tema2Exercitiul2 { class Program { static void Main(string[] args) { Stack newStack = new Stack(5); newStack.push("Constantin"); ...
dedefb1eb454222edfff7efa7d2ed8ba9eb2c3ff
C#
Maskln/CSharp-OOP
/04.OOPPrinciplesPart 1/AnimalHierarchy/Animals/Cat.cs
3.546875
4
namespace AnimalHierarchy { using System; public class Cat : Animal, ISound { public Cat(string name, uint age, Gender sex) : base(name, age, sex) { } public void MakeNoise() { Console.WriteLine("Miaw- ...
942e9d71ef55a770eed2b8b880aba2f4fcec2807
C#
MariGGGravata/DogGentleman-Back
/DogGentleman/DogGentleman/Models/NegocioException.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace DogGentleman.Models { public enum NegocioExcCode { ERRODESCONHECIDO = 1, RACAOPESOMENORQUEUM = 101, RACAOIDINEXISTENTE = 102, RACAOCOMPRODUTO = 103, RACAOSEMNOME = 104, ...
116d99084584bfd1ddc36a0f7386bbc3c77c29a4
C#
OwainRichardson/ProjectEuler
/ProjectEuler/Puzzles/P_012.cs
3.53125
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace ProjectEuler.Puzzles { public static class P_012 { public static void Execute() { int triangleNumber = 0; int difference = 1; int numberOfFactors...
325a556081aacb92aff7e5583946a1ebb30a0b44
C#
pawros/AdventOfCode2020
/AdventOfCode2020/Day01.cs
3.09375
3
using System.IO; using System.Linq; using AoCHelper; namespace AdventOfCode2020 { public sealed class Day01 : BaseDay { private readonly int[] input; public Day01() { input = File.ReadAllLines(InputFilePath).Select(int.Parse).ToArray(); } public ov...
969a22fa357ee2f8f30450c93f5269d1bf800c4e
C#
varu87/CrossWordPuzzle
/WordPuzzleService/WordPuzzleGenerator.svc.cs
2.984375
3
using System.ServiceModel.Activation; using RandomArrayProject; using System.Text; namespace WordPuzzleService { [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class WordPuzzleGenerator : IWordPuzzleGenerator { GridClass grid = new GridClas...
209ea481ed54bfbac93f4a6947c437085d59af70
C#
heynickc/itmvc_sample_code
/day5/finish/ContosoUniversity.Tests/InstructorControllerTests.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.Mvc; using ContosoUniversity.Controllers; using ContosoUniversity.DAL; using ContosoUniversity.Models; using ToJSON; using Xunit; using Xunit.Abstractions; namespace ContosoUniversity.T...
fcd2655d97cc745a6b1dd9fb8d1cfe3c5eac8c7f
C#
Chapmania/cloudsynth
/Assets/Scripts/Managers/DataJockey.cs
2.78125
3
using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization.Formatters.Binary; using System.IO; using UnityEngine; using UnityEngine.UI; public class DataJockey : MonoBehaviour { [SerializeField] private Text newSongInput; [SerializeField] private Text TitleHeader; ...
09059580a3b0b69a6c8e6f8dc606147b3454db2e
C#
hackonion/Basic_CRUD
/Admin/Data/Repository/Repository.cs
2.921875
3
using Admin.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http.Headers; using System.Threading.Tasks; namespace Admin.Data.Repository { public class Repository : IRepository { public AppDbContext _ctx; public Repository(AppDbContext ctx) {...
d5aff0adfe5dc6ade5518fb036472bec1bf0750a
C#
rudi77/DataMapper
/ReflectionExamples/DataContext.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; namespace ReflectionExample { public class DataContext { private readonly List<object> _objects = new List<object>(); public DataContext () { } public DataContext Set<T> (T item) { _objects.Add (item); return this; } public...
6c03cfb1ee22f9b3b0aabc5270d268755618fd45
C#
alexandra-marin/iTheatre
/iTheatre.UnitTests/Unit/AverageAgeTests.cs
2.75
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using FakeItEasy; using iTheatre; using NUnit.Framework; using Shouldly; namespace Unit { [TestFixture()] public class AverageAgeTests { private AgeCalculator calculator; private DateTime testingTime = new DateTime(2016, 12, 26); p...