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
84b7fe59fe7e60448d1e25e76852b77e3291512d
C#
Vassagio/Chess
/Chess.Core.Tests/BoardTest.cs
2.96875
3
using System; using Chess.Core.Pieces; using Chess.Core.Tests.Mocks; using Xunit; namespace Chess.Core.Tests { public class BoardTest { [Fact] public void Creates_A_New_Board() { var board = BuildBoard(); Assert.IsType<Board>(board); } public class AddPiec...
374190e4e7325c0f6d3aee68f2d105c1928004f2
C#
sandalkuilang/texto
/GSMServer/Configuration/SerialPortCollection.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; namespace GSMServer.Configuration { [ConfigurationCollection(typeof(SerialPort), AddItemName = "add")] public class SerialPortCollection : ConfigurationElementCollection { protected ...
31e3820165725645870372ff8f62cc9842943787
C#
TeamKillshot/GameAttempt
/GameAttempt/TileEngine/TLayer.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TileEngine { public class TLayer { #region Parameters List<TRef> refs; List<Tile> impassable = new List<Tile>(); List<Tile> passable = new List<Tile>(); Tile[,] tiles; string lay...
29d336e5cb56b87050111f97f40e79a8db64e3f4
C#
bkalenderoglu/Patika_C_Sharp_101
/practices/ToDoUygulamasi/Cards.cs
2.859375
3
using System; using System.Collections; using System.Collections.Generic; namespace ToDoUygulamasi{ class Cards{ public static List<Card> TODO = new List<Card>(); public static List<Card> PROGRESS = new List<Card>(); public static List<Card> DONE = new List<Card>(); static Ca...
8425a26423db15c58526960d4661236a9758194f
C#
chimney37/Othello
/Othello/OthelloFactory.cs
3
3
namespace Othello { /// <summary> /// The creator framework that defines the top level routines to create a product. This is the factory design pattern. /// </summary> public abstract class OthelloFactory { public OthelloGameAISystemProduct Create(OthelloGame oGame, OthelloGamePlayer AIplay...
a75e19fa1042acd9765d44c889af000c17ed6828
C#
mehedi995/Online-Bus-Ticket-Reservation
/DataLayer/AdminRepository.cs
2.9375
3
using System; using System.Data.Entity; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataLayer { public class AdminRepository : IAdminRepository { private DataContext db; public AdminRepository() { this.db = new DataC...
3ecfdabc216e62f7bf9fd5feda38f5d6227aff71
C#
PierreAupeix/Studentprojekt-2018
/WindowsFormsApp2/SQLiteDatabaseCommunicator.cs
3.046875
3
using System; using System.Collections.Generic; using Importer; using System.Data.SQLite; using System.Data; namespace DatabaseCommunicator { /// <summary>Class <c>SqliteDatabaseCommunicator</c> A class to communicate with an SQLite database</summary> public class SqliteDatabaseCommunicator : DatabaseCommunic...
d28f214b789c6d70fedb4460e7cf3d5f19246e1e
C#
NMica/NMica
/tests/NMica.Tests/Utils/Converter.cs
2.703125
3
using System.IO; using System.Text; using Xunit.Abstractions; namespace NMica.Tests.Utils { public class Converter : TextWriter { readonly ITestOutputHelper _output; public Converter(ITestOutputHelper output) { _output = output; } public override Encoding E...
979246fae7c427033abf158c0d999187400d749a
C#
shendongnian/download4
/code2/347571-36459471-173355670-2.cs
3.03125
3
public void GetCertificate() { // Get the Machine Cert Store var store = new X509Store(StoreName.My, StoreLocation.LocalMachine); string alg = CryptoConfig.MapNameToOID("SHA512"); // Open the cert store store.Open(OpenFlags.ReadWrite); // Loop through each ce...
f71bfec3feaa857ae9c0c0fdc774bd674e666da5
C#
austingantner/MegaMinerAI11-Reef
/Fish.cs
2.921875
3
using System; using System.Runtime.InteropServices; ///This is your primary unit for Reef. It will perform all of your major actions (pickup, attack, move, drop). It stats are based off of its species public class Fish: Mappable { public Fish() { } public Fish(IntPtr p) { ptr = p; ID = Client.fish...
36d17b78c689b2f79493273fbd58a9cb74ca35ea
C#
pawanmishra/feedr
/FeedrInfrastructure/FeedrContext.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MongoDB.Driver; using FeedrInfrastructure.Model; using System.Configuration; namespace FeedrInfrastructure { /// <summary> /// Context class for creating <see cref="MongoClient"/> instance...
f2c3ba45b6ef2395273980898a1d57cd598810f7
C#
shendongnian/download4
/first_version_download2/102876-6998852-15345922-2.cs
2.71875
3
public static SelectList ToSelectList<TEnum>( this TEnum enumObj ) { var result = ( from TEnum e in Enum.GetValues( typeof( TEnum ) ) select new { ID = (int) Enum.Parse( typeof( TEnum ), e.ToString() ), ...
879c10d7b6ced70a76ec5d006053a329a3b38c40
C#
svenslaggare/SpaceSimulator.NET
/SpaceSimulator/Physics/Solvers/IGaussProblemSolver.cs
3.28125
3
using System; using SpaceSimulator.Mathematics; namespace SpaceSimulator.Physics.Solvers { /// <summary> /// The result from a Gauss problem solver /// </summary> public struct GaussProblemResult { /// <summary> /// The first velocity /// </summary> public Vector3d ...
1c6c454f2f4660a99e767ff6fd392ca23e98d2f6
C#
PoLaKoSz/Meal-Planner
/MealPlanner/Models/Meal.cs
2.8125
3
using MealPlanner.Workers.IngredientTable; using System.Collections.ObjectModel; namespace MealPlanner.Models { public class Meal { public string Name { get; set; } public ObservableCollection<IngredientTableRow> Ingredients { get; set; } public Meal(string mealName, ObservableColle...
0c25cb915661e03e7e4604b537f0908ed08e25b4
C#
Kostarsus/MP3Manager
/src/MP3ManagerBase/manager/AlbumAdditionalReader.cs
2.71875
3
using Hqub.MusicBrainz.API; using Hqub.MusicBrainz.API.Entities; using MP3ManagerBase.model; using System; using System.Collections.Generic; using System.Data.Entity.Core; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Transactions; namespace MP3ManagerBase.manager { public class...
a07ab60106713650225047e29ef4bb731da3f13d
C#
pekkah/Tanka.Markdown
/src/Markdown/Blocks/Paragraph.cs
3
3
namespace Tanka.Markdown.Blocks { using System.Collections.Generic; using System.Linq; using Inline; public class Paragraph : Block { private readonly List<Span> _spans; public Paragraph(StringRange parent, int start, int end, IEnumerable<Span> spans) : base(parent, start, end) ...
9f23ef3fcb261f2cc7eb023fcc56f8422baf9d95
C#
AsmitaChandrakar/Pecunia_project
/Pecunia_project-master/Pecunia/Pecunia.BusinessLayer/CustomerBL.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Pecunia.DataAccessLayer; using Pecunia.Exceptions; using Pecunia.Entities; using System.Text.RegularExpressions; namespace Pecunia.BusinessLayer { public class CustomerBL { ...
be3b16f2056f3ba7d23d711ca08c0253c1004cf8
C#
minmer/verbum
/VerbumEssentials/Basics/IVContent.cs
2.890625
3
// <copyright file="IVContent.cs" company="PlaceholderCompany"> // Copyright (c) PlaceholderCompany. All rights reserved. // </copyright> namespace VerbumEssentials.Basics { using System.Threading.Tasks; /// <summary> /// Interface that represents a VerbumContent. /// </summary> public interface ...
be2b6a4aa5bf9c3c7a7c4fd003e881cdd86963a2
C#
jaheyy/Bookstore
/Ksiegarnia/Controllers/BasketController.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using Newtonsoft.Json; using Ksiegarnia.Data; using Ksiegarnia.Models; using Microsoft.AspNetCore.Authorization; namespace Ksiegarnia.Controllers { [Aut...
dd7bf2c2197b0ee83f8901232f4afa3b78821865
C#
yanicetrech/ProjetTutore
/TestCrous_1.0.2/HttpClientSample.cs
3.125
3
using System; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace TestCrous_1._0._2 { public class Productt { public string id { get; set; } public string name { get; set; } public decimal price { get; set; } public st...
7ecf80b68200edd1529bfc5fc301eff236665dd3
C#
leviethung822/BTH2
/BTTH2.cs
3.390625
3
using System; namespace BTH2 { //Bai1 class Stack { private int top; private int[] a; public bool empty() { return (top == -1); } public bool full() { return (top >= a.Length); } public Stack() { ...
77ffa10e0ed0234e3880aab53f0040334162ac4e
C#
Vaconcovat/TankCommanderVR
/Assets/ScreenSwitcher.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ScreenSwitcher : MonoBehaviour { public Material[] materials; public KeyCode[] keys; public bool[] isRandom; MeshRenderer r; bool random = false; void Awake () { r = GetComponent<MeshRenderer> (); } // Update i...
873f8eed4b5a70d8ce53056abdf4073ee1e5b627
C#
otavio-bianchini/CatalogoJogos
/CatalogoJogos/InputModel/GameInputModel.cs
2.84375
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace CatalogoJogos.InputModel { public class GameInputModel { [Required] [StringLength(100, MinimumLength = 3, ErrorMessage = "O nome do jogo deve ...
8bec33ffa01272bd69499b6f67865c823c1d04b1
C#
becheran/Amg.Build
/src/Amg.Build.Tests/FunctionUtilsTests.cs
2.53125
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.Text; namespace Amg.Build { [TestFixture] public class FunctionUtilsTests { [Test] public void Once() { var count = 0; int f(int a) { ++count; ...
53f662023352acbf65e2cbbb8756cee531a9e657
C#
liu595108672/TestOfDotNet
/TestForTelnet/ByProcess.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using NLog; using System.Net; using System.Net.Sockets; namespace TestForTelnet { /// <summary> /// 通过开启新进程的方式来进行Telnet连接 /// /// </summary> public class ByProcess { privat...
7a3161c157b87acbe5d44c2b20cd3e30d828cb19
C#
qube7/qcomposite
/Qube7.Composite/Presentation/NavigableAttribute.cs
2.75
3
using System; using System.ComponentModel.Composition; namespace Qube7.Composite.Presentation { /// <summary> /// Specifies that a type, property, or field marked with the <see cref="ExportAttribute"/> provides particular exports of the object that supports navigation. /// </summary> [MetadataAttribut...
b6edae5efc1faf6a5156a34c41bced1064967c65
C#
taukita/Sfs
/Sfs.Core.Tests/CollectIdsUnitTest.cs
2.703125
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Sfs.Core.Tests { [TestClass] public class CollectIdsUnitTest { [TestMethod] public void TextWithoutTagsShouldNotContainsIds() { var ids = "ololo".SfsParse().CollectIds(); Assert.AreEqual(0, ids.Count); } [Te...
0d74873a35cf252e4746980290bf1516f72a1e40
C#
Vasar007/Acolyte.NET
/Acolyte.NET/Libraries/Acolyte.CSharp/Data/Randomness/RandomExtensions.cs
3.171875
3
using System; using Acolyte.Assertions; namespace Acolyte.Data.Randomness { /// <summary> /// Extensions method for <see cref="Random" /> class. /// </summary> /// <remarks> /// <see href="https://stackoverflow.com/a/13095144/8581036" /> /// <see href="https://stackoverflow.com/a/28860710/8581...
e9405e877740d6dfc188367809525032b015cc0f
C#
misikdmytro/SmsSync
/SmsSync.Host/Services/BaseRepository.cs
2.546875
3
using System; using System.Data; using System.Data.SqlClient; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Dapper; using Polly; using Serilog; using SmsSync.Configuration; namespace SmsSync.Services { internal class BaseRepository { private readonl...
11882e59dad421cb9fb2ec0811de86f3a1d5fd93
C#
colayue/HotFix_FrameWork
/Server/MyServer/GameServer/Module/Player/Data/PlayerUniqueName.cs
3.21875
3
using System; namespace GameServer.Module { public class PlayerUniqueName : IEquatable<PlayerUniqueName> { public string PlayerName { get; } public int ServerId { get; } /// <summary> /// 玩家唯一名字 /// </summary> /// <param name="PlayerName">玩家名</param> /// ...
f85fb973eea8bc574516c9aca802f71d22e18b67
C#
shendongnian/download4
/code1/101879-48920278-167430550-2.cs
3.234375
3
// -------- IN THE MAIN FORM -------- // CALLING THE CHILD FORM IN YOUR CODE LOOKS LIKE THIS Options frmOptions = new Options(UpdateSettings); frmOptions.Show(); // YOUR FUNCTION IN THE MAIN FORM TO BE EXECUTED public void UpdateSettings(string data) { // DO YOUR STUFF HERE ...
f0e8c2dade7b992b2850221d472498c4d1e611f8
C#
Biss1/worlddest
/Controllers/RatingController.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using WorldDestinationsWebApi.Models; namespace WorldDestinationsWebApi.Controllers { public class RatingController : ApiController { // GET api/rating public IEnu...
ba842c1bee00e3b29fbe51cd9bad4788af568101
C#
rickomax/psxprev
/Common/Utils/Logger.cs
2.875
3
using System; using System.Globalization; using System.IO; using System.Windows.Forms; namespace PSXPrev.Common.Utils { public class Logger : IDisposable { private StreamWriter _writer; private bool _logToFile; public bool LogToFile { get => _logToFile; ...
164d80ccb469bc8b857bfa581e942788dd094044
C#
karinplaninsek/karinplaninsek
/DiffApi/DiffApi/UnitTests/DiffServiceTest.cs
2.796875
3
using System; using System.Linq; using DiffApi.Models; using DiffApi.Services; using Xunit; namespace DiffApi.UnitTests { public class DiffServiceTest { private DiffService service; public DiffServiceTest() { // Arrange service = new DiffService(); } ...
97b66317421664d5c080b564aa296271adf62a3a
C#
balazsmeszegeto/ndc-workshop-2020
/delivery-app/Dto/RestaurantListing.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using DeliveryApp.Data.Model; namespace DeliveryApp.Dto { public class RestaurantListing { public int Id { get; set; } public string Name { get; set; } public IEnumerable<string> Tags { get...
5c142c0d996391561542ae1436c4102f509b449e
C#
Kittyfisto/SharpRemote
/SharpRemote/CodeGeneration/Serialization/ParseException.cs
2.578125
3
using System; // ReSharper disable once CheckNamespace namespace SharpRemote { /// <summary> /// An exception thrown when an error occured during parsing. /// </summary> public abstract class ParseException : Exception { /// <summary> /// /// </summary> /// <param name="message"></param> /// <pa...
a28303bf3925f7d0cdd51f91028288f894833211
C#
CyberSammyy/CourseWorkLabunDOTNETCORE
/User.cs
2.59375
3
using Microsoft.EntityFrameworkCore; using System; namespace DAL_DOTNETCORE { public class User { public int id { get; set; } public string firstName { get; set; } public string lastName { get; set; } public string phoneNumber { get; set; } public string tin ...
838559455a865cc02f83e61a156e58cbbce6a4e4
C#
Liang-Zhinian/CqrsFrameworkDotNet
/Framework/CqrsFramework.EventStore.EF/EventStoreDbContext.cs
2.671875
3
using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace CqrsFramework.EventSourcing { public class EventStoreDbContext : DbContext { public const string SchemaName = "Events"; public DbSet<Event> Events { get; set; } public ...
1d74b2d865cdf0cad370fb66a9e937baa4a2cf05
C#
stevebargelt/meatgeek-azure-sessions
/src/MeatGeek.Sessions.Services/Converters/SessionSummariesConverter.cs
2.703125
3
using System; using MeatGeek.Sessions.Services.Models.Response; using Newtonsoft.Json; namespace MeatGeek.Sessions.Services.Converters { public class SessionSummariesConverter : JsonConverter { public override bool CanConvert(Type objectType) { return (objectType == typeof(SessionSu...
c49f5817cc0e6eb88b591d5078ae4ca8814ae676
C#
kushalbhola/MyStuff
/Practice/Practice/Leetcode/TestTime.cs
3.296875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice.Leetcode { class TestTime { static void Main() { DateTime today = DateTime.Today; DateTime now = DateTime.Now; Console.WriteLine(today); Con...
07237c35110d64d1395f82d8bbad479dafdc925a
C#
mulleady1/jahengineering.com
/Models/ViewModels/MessageViewModel.cs
2.953125
3
using System.Text; namespace Jah.Models.ViewModels { public class MessageViewModel { public string Name { get; set; } public string Email { get; set; } public string Message { get; set; } public string ToHtmlString() { var sb = new StringBuilder(); sb.Append($"<div><b>Name:<...
d819eb396ff312821f7a89d8a5ff563979013055
C#
Larney11/REST_DiscussionForum_Service
/REST_DiscussionForum_Service/Controllers/ForumController.cs
2.890625
3
// Forum controller for anonymous discussion forum // uses attribute based routing // /forum/all, /forum/id/2, /forum/last/3 etc. using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; using RESTful_Forum_Service.Models; namespace RESTful_Forum_Service.Controllers { [RoutePref...
fce3f85175d3b921e01b1556abb1d824962f6983
C#
xcomponent/xcomponent.ui
/UI/Grid/ViewModel/ColumnViewModel.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace XComponent.Common.UI.Grid.ViewModel { public class ColumnViewModel : DependencyObject { private static readonly DependencyProperty WidthProperty = Depende...
78d8a99d8c6ae179f1b1a570b891430d983f63a0
C#
blondie-160/checkoutbasket
/BasketApp.Client/BaseHttpClient.cs
2.84375
3
using System; using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace BasketApp.Client { public class BaseHttpClient { protected readonly HttpClient _httpClient; protected string _sessionCookie...
01e5db826ad25658479a84d28d9da3816bdce34d
C#
Xavierwork01/bookstore
/BookStoreAPI/Services/UserService.cs
2.875
3
using BookStoreAPI.Models; using MongoDB.Driver; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using BookStoreAPI.Class; namespace BookStoreAPI.Services { public class UserService { private readonly IMongoCollection<User> _user; pub...
45146f3be996764741cc2c32471f63431197cdf8
C#
MilenaPetkanova/programming-fundamentals-softuni
/ProgrammingFundamentals_Exercises/1106_SumBigNumbers/0204_Hotel/Hotel.cs
3.59375
4
namespace _0204_Hotel { using System; class Hotel { static void Main(string[] args) { var month = Console.ReadLine(); int nightsCount = int.Parse(Console.ReadLine()); double priceStudio = 0; double priceDouble = 0; double priceSui...
2a04a29cd677dd92d512d41b6276d268c1d99d9b
C#
shigontsev/Epam-xt-2021
/Task_2/Task_2.1.2/UI/User.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Task_2._1._2.Entity; namespace Task_2._1._2.UI { public class User { public string Name { get; private set; } public List<Figure> Figures { get; private set; } public User(string name) ...
ef873049f75de55b454e43eb29003ef947901580
C#
res7702/PlusEmu-making-ready-for-linux-server
/Utilities/HabboEncoding.cs
3.421875
3
using System; using System.Linq; using System.Text; using System.Collections.Generic; namespace Quasar.Utilities { public class HabboEncoding { /* Encoding Functions */ #region Encoding/Cipher Methods /// <summary> /// Encodes the Int32 data given. /// </summary> ...
9ded43c6cc7347a8339cc4347a35311079777df0
C#
tokiAi/TimeEscape
/Assets/_Scripts/Game/Session.cs
2.53125
3
using UnityEngine; namespace TE { /// <summary> /// Keeps track of skills the player has unlocked during this run. /// </summary> public class Session { private Game _game; int dashCollected; bool jumpCollected; bool timeSkills; bool fireBall; publi...
1f3e7e9378fab2d28b31415d1895dbef6e963cf5
C#
892182825/SP
/Model/TempNetAdjustmentModel.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; /* * 创建者:孙延昊 * 创建时间:2009年8月27日 AM 10:07 * 文件名:TempNetAdjustmentModel * 功能:会员调网临时表模型 * **/ namespace Model { /// <summary> /// 会员调网临时表 /// </summary> public class TempNetAdjustmentModel { public Temp...
b9fce43eaeb345b17f72f9b86c4d6469aba2362b
C#
Euryallus/module-10-11
/Module10/Assets/Scripts/Hugo Scripts/Weapons/MeleeWeapon.cs
2.671875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; // Main author: Hugo Bailey // Additional author: N/A // Description: Default class for all melee weapons (anything non-ranged, e.g. sword) // Development window: Prototype phase // Inherits from: Weapon public clas...
bd178ece89bf3ff024190a5ae3024b1052b976c9
C#
yoranmandema/MelonLanguage
/MelonLanguage/Native/Integer/IntegerInstance.cs
2.640625
3
namespace MelonLanguage.Native { public class IntegerInstance : MelonInstance { public int value; public IntegerInstance(MelonEngine engine, int val) : base(engine) { Type = engine.integerType; value = val; } public override string ToString() { ...
15ee71b8c0809fd73ef312cbffb8ba60924bfa0d
C#
hanrick2000/AlgorithmLearningNote
/src/AlgorithmNote/AlgorithmNote/Sort/BasicSort/InsertSort.cs
3.71875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AlgorithmNote { public class InsertSort<T> where T : IComparable { // 数组近乎有序的时候,效率特别高 public static void Sort(T[] arr, int n) { for (var i = 1; i < ...
5d069f06c8498d099bf66fd2acf69da5c4622408
C#
viliusvig/CprPrototype
/CprPrototype/CprPrototype/Service/CPRHistory.cs
3.03125
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; namespace CprPrototype.Service { /// <summary> /// The CPRHistory class provides the functionality to save the /// process of the resuscitation algorithm onto the device. /// </summary> public class CPRHistory ...
a21609768de5f4f3a25b490d6779471a670fe052
C#
TonyStamatova/SoftUni-Courses
/C#-OOP/06.SOLID/SOLID-Exercise/01.Logger/Models/Appenders/ConsoleAppender.cs
2.546875
3
namespace _01.Logger.Models.Appenders { using System; using _01.Logger.Contracts; using _01.Logger.Models.Enumerations; public class ConsoleAppender : Appender { public ConsoleAppender(ILayout layout, ReportLevel level) : base (layout, level) { ...
94adf1b21eeb5416c1bec5963ef677bdfc4725d5
C#
Hadishh/AP97982
/E2/E2/DotNetInterfaces.cs
2.734375
3
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; namespace E2 { public static class DotNetInterfaces { public static IEnumerable<long> GetElapsedTimes(int max=100) { Stopwatch sw = new Stopwatch(); sw.Start(); ...
3f754e0474c353bc1ceac4abf94e2baccdc5c322
C#
nirinchev/nunit.xamarin
/nunit.xamarin/Helpers/PreserveAttribute.cs
3.203125
3
using System; [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] public sealed class PreserveAttribute : Attribute { /// <summary> /// When used on a class rather than a property, ensures that all members of this type are preserved. /// </summary> public bool AllMembers; /// <summary> ...
c84eeb6f25cbd0b6ca794099fba1671d7b6794db
C#
vasua/MediatrDemo
/MediatrDemo1/MediatrDemo1/Application.cs
2.671875
3
using System; using System.Collections.Generic; using MediatrDemo1.Models; using MediatrDemo1.Services; namespace MediatrDemo1 { public class Application { private Dictionary<Guid, Security> _securityRepository = new Dictionary<Guid, Security>(); private Dictionary<Security, Position> _positio...
eb186942892439ca0974d62afb0d478091fc2e57
C#
oxugen1337/labs
/ООП/LB8/ConsoleApp1/ConsoleApp1/MyString.cs
3.625
4
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp1 { public class MyString { private StringBuilder data; private Date date; private Owner owner; public MyString(string str) { SetString(str); } public MySt...
f818d1433f7f6c4e8dd79807b4c8cdeb96d9f75c
C#
ViacheslavTarnavskyi/CutMeshTest
/Assets/Scripts/RawMeshData.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; public class RawMeshData { public LinkedList<Vector3> Verts { get; private set; } public LinkedList<int> VertsIndexes { get; private set; } public LinkedList<Triangle> Tris { get; private set; } ...
9a7b184d186dc77f0be1248f5173441108bb5580
C#
DVS2000/SIGA
/ConexaoBD/TurmaConexao.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Atributos; using MySql.Data.MySqlClient; namespace ConexaoBD { public class TurmaConexao : _ConexaoBD { //---------------Método Gravar Turma-------------// pub...
3797c0f3efb242ccdeca211699f3036021295ab4
C#
jiftle/DapperDal
/src/DapperDal/DalBaseOfTEntity.GetListPaged.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq.Expressions; using DapperDal.Expressions; namespace DapperDal { public partial class DalBase<TEntity, TPrimaryKey> where TEntity : class { /// <summary> /// 根据查询条件和排序条件获取实体分页列表 /// (查询使用谓词或匿名对象,排序使用Sort或匿名对象) ///...
57e5644ea47ffc7ccf4566f48e3c7c65dc831096
C#
rickerje/csharp-exercises
/EvenNumbers/Program.cs
3.96875
4
using System; using System.Collections.Generic; namespace EvenNumbers { class Program { static void Main(string[] args) { List<int> Numbers = new List<int>(); string input; int aNumber; Console.WriteLine("Enter an integer (or ENTER to end): "); ...
fb550b980ea5dfccd1757c8afc3151ab16ad3d9d
C#
shendongnian/download4
/latest_version_download2/259109-60076092-214354123-2.cs
3.234375
3
static void Main(string[] args) { Console.WriteLine("Please enter repeat time:"); var counter = int.Parse(Console.ReadLine()); for (var i = 0; i < counter; i++) { Console.WriteLine("Please enter your number:"); var number = int...
d665850152a6666b80c84633ec2047d280a06cc6
C#
mirmendax/workorder
/oalib_v2/oalib.cs
2.78125
3
using System; using System.Collections.Generic; using System.Runtime.Serialization.Formatters.Binary; using System.IO; 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.Runtime.Serializatio...
68591ae29aaab34ff1c086c9be8e8a5d48de4cf5
C#
bulkovskiy/CoinBot
/CoinBot.DAL/Services/CoinMarketCapService.cs
2.75
3
using CoinBot.DAL.DTO; using CoinBot.DAL.Entities; using CoinBot.DAL.Infrastructure; using CoinBot.DAL.Interfaces; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; namespace CoinBot.DAL.Services { [Serializable] publ...
5e070994e57fbd4a8f18b2194f6415586e5120d8
C#
NasC0/LeagueComparer
/Web/ComparerKatanaHosting/DumpRequestResponse.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ComparerKatanaHosting { using AppFunc = Func<IDictionary<string, object>, Task>; public class DumpRequestResponse { private AppFunc next; public DumpRequestRespon...
3f6fab1851987834b672d4dd332ae0772cd7aa7a
C#
TechieSyed/FISGlobal-0721
/Module1/Day4/Demos/Demo11_LINQ/EmployeeManager.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Demo11_LINQ { class EmployeeManager { public static List<Employee> GetEmployees() { var Employees = new List<Employee>() { new E...
8cda9b3a2d97d12e5aaaa682c9a8e519cde4b5bc
C#
ilkerBuguner/CSharp-Web
/Pratical Exam - 16.02.2020/SharedTrip/Services/UsersTripsService.cs
2.890625
3
using SharedTrip.Models; using SharedTrip.Services.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SharedTrip.Services { public class UsersTripsService : IUsersTripsService { private readonly ApplicationDbContext db; public UsersTrip...
7539b83ec5b253304a569d7df37d592cb7985ae6
C#
percymittu/CP380-WeatherLab
/WeatherLab/Program.cs
3.34375
3
using System; using System.Linq; namespace WeatherLab { class Program { static string dbfile = @".\data\climate.db"; static void Main(string[] args) { var measurements = new WeatherSqliteContext(dbfile).Weather; var total_2020_precipitation = ?? TODO ?? ...
bc35078eee554ae1ce426398f96b4946f8c01e96
C#
Syncaidius/MoltenEngine
/Molten.Math/DoublePrecision/Vectors/Vector2D.fp2.cs
3.140625
3
using System.Runtime.CompilerServices; namespace Molten.DoublePrecision { ///<summary>A <see cref = "double"/> vector comprised of 2 components.</summary> public partial struct Vector2D { #region Instance methods public Vector2D GetOrthonormal(bool polarity = true, bool allowZero = false) { ...
9da6b047df83568dac048691199ae67425f68068
C#
Michael-karn-ivanov/Pine
/PineHome.Tests/LastTurnInPositionCaseTest.cs
2.625
3
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using Pineapple; namespace PineHome.Tests { /// <summary> /// Summary description for LastTurnInPositionCaseTest /// </summary> [TestClass] public class LastTur...
7d098e566206da34334d8b01643238956313ac03
C#
bugratemirci/BCafeDbFirst
/BCafe/Business/OrderManager.cs
2.78125
3
using BCafe.DataAccess; using BCafe.Entities; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BCafe.Business { public class OrderManager : IOrderService { IOrderDal orderDal_; public OrderM...
1ffbf1b4520df5c6756a38e2c36a6ac18268e671
C#
zirplsoftware/ZAppEngine
/Zirpl.Common/Stats/EloRating/EloRatingEngine.cs
3.046875
3
using System; namespace Zirpl.Stats.EloRating { public class EloRatingEngine { public EloRatingEngine() { this.KValue = 120; this.PowerOfTenFactor = 400; this.ChangeDigits = 0; } public double KValue { get; set; } public double Power...
45ad498f1861dbfa45199f75b7653ecc19f49441
C#
Doggy96/AnnaAndJohnStory
/AnnaAndJohnStory/Model/John.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AnnaAndJohnStory.Model { class John { public John() { } public void Moving() { Console.WriteLine("John is moving towards the door"); } public void Question() { Cons...
f45507217bf43c93df6289338edb9e7eb33a07f4
C#
qutubsha/DMS
/src/DMS.Repository/RoleRepository.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using DMS.Abstraction; using DMS.Abstraction.Roles; using Microsoft.Extensions.Options; using MongoDB.Driver; using MongoDB.Driver.Linq; using MongoDB.Bson; namespace DMS.Repository { public class RoleRepository : IRo...
d47d59941e9d57014f42053c72e31a5e4f301738
C#
doufeng007/webShop
/CjzDataBase/Domain/TableData.cs
2.640625
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using System.IO; namespace CjzDataBase { /// <summary> /// 表格基类 /// </summary> public class TableData : DataPacket { #region 私有字段...
f0f0e988ad8632dcd106f09ecef617e1910eef5c
C#
rubyleehs/DailyCodingProblems
/DCP_115.cs
3.921875
4
using System; using System.Collections.Generic; namespace DCP_115 { /* Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a tree consists of a node in s and all of this node's descendants. The tree s cou...
c1773f7798e7bce4a39d7ff18f450d7ccaaf3c1f
C#
JediMasterSam/LumberJacking
/LumberJacking/LumberJacking/Objects/Enemy.cs
2.5625
3
using System; using LumberJacking.GameObject; using LumberJacking.GameObject.Components; using LumberJacking.Geometry; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace LumberJacking.Objects { public class Enemy : BaseGameObject { private const float DegToRad = 180f / Ma...
539b923bce87613c83b38d401d84fbf38fe5cb84
C#
kevbite/AdventOfCode2018
/AdventOfCode2018/Day18/LumberCollectionArea.cs
3.03125
3
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; namespace AdventOfCode2018.Day18 { public class LumberCollectionArea { public ImmutableArray<ImmutableArray<Acre>> Acres { get; } private LumberCollectionArea(ImmutableArray<ImmutableArray<A...
fb6a2a85ffbd89d297572299f79d1d3c0d994749
C#
SerhatSURAL/MyDictionary
/Program.cs
3.609375
4
using System; namespace GenericsIntro { class Program { static void Main(string[] args) { MyList<string> names = new MyList<string>(); //Listeye ekle names.Add("Serhat"); names.Add("Sural"); //listedeki değerleri oku fore...
e2621bd838de7ca2d18bbd31642d1181d4175832
C#
jinnerhofer/Startliste
/Startliste/Services/SqlDaten.cs
2.953125
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using SQLite; using System.Linq; namespace Startliste { public class SqlDaten : Starter { private string Filename { get; set; } = "Startliste.db"; private string Dir { get; set; } = Directory.GetCurrentDirector...
c2c3d93ff9f25bd5809e599b4b2a38ce2a64d35d
C#
venkatbaggu/elFinder.Net.FileManager
/elFinder.Net/ImageHelper/ImageCompression.cs
2.859375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; namespace elFinder.ImageHelper { public class ImageCompression { private Image OriginalImage; public voi...
412cb77f4bcfe636b414d761e2889c3167984e34
C#
francismaria/TDIN_FEUP
/project/PaymentTerminal/TableInformationControl.cs
2.640625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace PaymentTerminal { public partial class TableInformationControl : UserControl ...
9a234f111b566450af5a26cd99416d9160756d59
C#
H3VR-Modding/Mason
/Mason.Core/Helpers/Tools.cs
3.171875
3
using System.IO; using System.Text; namespace Mason.Core { public static class Tools { public static string? RelativePath(string from, string to) { StringBuilder builder = new(Path.GetFileName(to)); string? parent = Path.GetDirectoryName(to); while (parent != null) { if (parent == from) re...
8b6a085ccb0ba39e50ee763b6b4ea22132fbb901
C#
crazyminecuber/Luffarschack
/RandomAI1/RandomAI1/DublettException.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RandomAI1 { class DublettException : Exception { public DublettException(): base() { } public override string ToString() { return ...
4c08e14b0c6bf30071dedf71c78910a7375736cd
C#
seclerp/FileFS
/FileFS.DataAccess/CursorRange.cs
3.0625
3
namespace FileFS.DataAccess { /// <summary> /// Type that represents range from one cursor to another. /// </summary> public readonly struct CursorRange { /// <summary> /// Begin of the range. /// </summary> public readonly Cursor Begin; /// <summary> ...
9497d2108b6ed7ae5810ff6605a2d41ce26325eb
C#
ggzerosum/Algorithm-Solving
/백준 알고리즘 문제/4196번 도미노/4196번 도미노/Program.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _4196_Domino { class Program { static void Main(string[] args) { const int MAX_SIZE = 100000; int[] relationship = new int[MAX_SIZE]; ...
1d45396fe5e456b4875b534a04074b05737cdeae
C#
larshittu/Clubs_2
/POClubs/Controllers/POCountryController.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using POClubs.Data; using POClubs.Models; namespace POClubs.Controllers { ...
dae862735e33d562d7903ceef8cb33baee1682d1
C#
zahidbiscj/Problem-solving-task-in-devskill
/DCP-28 Circle and Square.cs
3.15625
3
#define ONLINE_JUDGE #define ONLINE_JUDGE using System; namespace ProblemSolvingTask { class DCP28 { static void Main(string[] args) { int t = int.Parse(Console.ReadLine()); for (int i = 0; i < t; i++) { var line = Console.ReadLine().Split(...
ab70ae7903a0325ca876a78f43d4a045e1a5effb
C#
Latency/ImageSharp
/ImageSharp/Image/ImageFrameCollection.cs
2.625
3
// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. using System; using System.Collections; using System.Collections.Generic; using SixLabors.ImageSharp.Advanced; using SixLabors.ImageSharp.PixelFormats; namespace SixLabors.ImageSharp { /// <summary> /// Encapsula...
65496ac430a4fb8e545c033cbfb15b7c050c2750
C#
MarkkoCK/Wst-p-do-programowania-cSharp-v.2.0
/Przykład 6.12/Program.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Przykład_6._12 { public class Pracownik { private string nazwisko; private double zarobki; public Pracownik(string naz, double zar) { nazwis...
07d4863825815df4ba063b2e5fd6216259c36050
C#
LonelyKeter/CourseWork
/BTWLib/Logic/BTWProjectile.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BTWLib.Types; namespace BTWLib.Logic { [Serializable] public abstract class BTWProjectile : BTWObject, IBTWProjectile, IBTWObject { public int Damage { get; set; } public int Speed { get; s...
98e0fa563f3b4866ed5534f635eaa645bf3cde84
C#
dorian195/Car-Showroom-Network
/BD_UI/BD_UI/Forms/ShowModelBrandForm.cs
2.65625
3
using BD_UI.Database; using BD_UI.Database.Domain; 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 BD_UI { public partial class ShowModelB...
012520ce4ba7f21f7c153a71da37b483d18fce77
C#
Clymsw/PopOptBox
/PopOptBox.Optimisers.EvolutionaryComputation.Test/Recombination/CrossoverSimulatedBinarySelfAdaptive2Tests.cs
2.5625
3
using System; using System.Linq; using PopOptBox.Base.Management; using PopOptBox.Optimisers.EvolutionaryComputation.Test; using Xunit; namespace PopOptBox.Optimisers.EvolutionaryComputation.Recombination.Test { public class CrossoverSimulatedBinarySelfAdaptive2Tests { private readonly Population popul...
f6851d2343707fb6f9b8911e45a85b4699672bd9
C#
iSahilSharma/algorithms
/Algorithms.Run/Data Structures/Arrays/RightRotation.cs
4.03125
4
using System; namespace Algorithms.Arrays { /// Arrays: Right Rotation /// Given an array, rotate the array to the right by k steps, where k is non-negative. /// Input: nums = [1,2,3,4,5,6,7], k = 3 /// Output: [5,6,7,1,2,3,4] /// Explanation: /// rotate 1 steps to the right: [7,1,2,3,4,5,6] ...
f98f0d33584cf197b41a731e1db92057f0e6e06d
C#
davidebbo-test/FarmersMarket-1.0
/Web/Controls/ScheduledEvents.ascx.cs
2.546875
3
namespace FarmersMarket.Web.Controls { using System; using System.Configuration; using System.Linq; using System.Text; using Google.GData.Calendar; using System.Net; using Google.GData.Client; public partial class ScheduledEvents : System.Web.UI.UserControl { #region Proper...
2edbc00ecedfb9eedbbb55023a4a124097987cf0
C#
theinjectables/PaaSPort
/src/Foundation/PaaSPort.Azure/code/Pipelines/AzureServiceContext.cs
2.546875
3
using Microsoft.Azure.Management.Fluent; using Sitecore.Common; namespace TheInjectables.Foundation.PaaSPort.Azure.Pipelines { /// <summary> /// Class representation of the context in which a PaaSPort Service Pipeline can run /// </summary> /// <remarks> /// Note that this type is an <see...
e77d2a71c27a72eb6d54378cae5089ada8e73728
C#
TyroBaxter/LeetCodePractice
/LeetCode.Tests/LinkedListTests/Prob1290Test.cs
2.640625
3
using LeetCode.Code.LinkedList; using LeetCode.Code.Extensions; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; namespace LeetCode.Tests.LinkedListTests { [TestClass] public class Prob1290Test { [TestMethod] public void...
09eeaa2fe0c1a4819c39e950900c7d8af6dc66a6
C#
quackasaur/CloudCherry
/Cloudcherry/DateFilter.cs
2.515625
3
using Newtonsoft.Json; using System; namespace Cloudcherry { //class to store the range of dates and pass it as json object internal class DateFilter { [JsonProperty("afterDate")] public DateTime AfterDate { get; set; } [JsonProperty("beforeDate")] public DateTime BeforeDa...