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
e3870d696900a022f483ea6cc60b05c80a94bb09
C#
121jigowatts/Mvc5WebApp
/Mvc5WebApp.SQLServerRepositories/PeopleRepository.cs
2.890625
3
using Mvc5WebApp.Contracts; using Mvc5WebApp.Models; using Mvc5WebApp.RepositoryInterfaces; using Mvc5WebApp.SQLServerRepositories.Database; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mvc5WebApp.SQLServerRepositories { public class...
0280ae5c5433a3c9c92fea8cf63d01cbe996bf74
C#
TheColonel2688/EntryPoint
/src/EntryPoint/Arguments/ArgumentModel.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using EntryPoint.Common; using EntryPoint.Exceptions; using EntryPoint.Parsing; using EntryPoint.Help; using System.Reflection; namespace EntryPoint.Arguments { internal class ArgumentModel { internal Argume...
99eec72f26d28016ac4d763574bc00d798960da0
C#
vitodtagliente/FiltroDiKalman
/KalmanLib/TriangleGenerationService.cs
3.1875
3
using System.Collections.Generic; namespace KalmanLib { public class TriangleGenerationService : PacketGenerationService { List<int> Sizes = new List<int>(); int _counter = 0; public int Counter { get { int value = _counter; ...
6e43e4188e9e52dda77937df11959b0e875f192b
C#
microsoft/MRDL_Unity_LunarModule
/Assets/HoloToolKit/Input/Scripts/Cursor/ObjectCursor.cs
3.03125
3
using System; using UnityEngine; namespace HoloToolkit.Unity.InputModule { /// <summary> /// The object cursor can switch between different game objects based on its state. /// It simply links the game object to set to active with its associated cursor state. /// </summary> public class ObjectCurs...
b80727d37a521d7c53059cac0e969fed29fcb955
C#
kveler/Discsnordbort
/Commands/LolCommands.cs
2.75
3
using DSharpPlus.CommandsNext; using DSharpPlus.CommandsNext.Attributes; using Newtonsoft.Json; using RestSharp; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace DiscordBot.Commands { public class LolCommands : BaseCommandModule { [Command("lol...
8d868245d57f7c998a49c2b2fecbb80dcc0d2c7c
C#
0xCM/Meta.Core
/src/Meta.Core.Dynamics/Expressions/Vocabulary/SelectionModel.cs
2.765625
3
//------------------------------------------------------------------------------------------- // OSS developed by Chris Moore and licensed via MIT: https://opensource.org/licenses/MIT // This license grants rights to merge, copy, distribute, sell or otherwise do with it // as you like. But please, for the love of Zeu...
cc4fe9c76d6a4cb2cc8ed392ab400b747bafa6d2
C#
pawanparashar/Algorithm
/Algorithm/StackMinimum/Program.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StackMinimum { class Program { Stack<int> RealStacker = new Stack<int>(); Stack<int> MinStacker = new Stack<int>(); static void Main(string[] args) { ...
fa453f048185d4598fabfc2c9cb914d734ad8ead
C#
210329-UTA-SH-UiPath/P1_Jeffrey_Breiner
/PizzaBox.FrontEnd/PizzaBox.FrontEnd/FEPizzaClient.cs
2.671875
3
using IO.Swagger.Model; using PizzaBox.FrontEnd.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; namespace PizzaBox.FrontEnd { public class FEPizzaClient { static string url = "https://localhost:44368/api/"; static ...
c8e478df8e423e5b4c82098e305121cccf7958eb
C#
wmltogether/Project-Console-Game-Localization
/PS2/Shin Megami Tensei III/DDT3Extractor/DDT3Extractor/DDTExtractor/Compression/LBC.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Runtime.InteropServices; using AtlusGames.Extension; namespace AtlusGames.Compression { public class LBCPythonWrapper { public static byte[] LB_Decompress(...
d8d8c4f93059cd616166f6d63426240bb5cd73e6
C#
Cynthia6/Softuni-csharp-basics
/2/21/Program.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _21 { class Program { static void Main(string[] args) { int field = int.Parse(Console.ReadLine()); double grapes1km = double.Parse(Console.Read...
6ce391ed807e8f3d323232fb50f0926008cbdbc2
C#
Jeke21/Trabajo-ECommerce
/CapaNegocio/Pago.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CapaNegocio { public class Pago { //Atriutos private string id; private DateTime fechaPago; private string pago; //Propiedades ...
734155e33a06f7b8deeeeb9c2c1a9c4e18b5dd5a
C#
kovacevicemir/GradeBook
/GradeBook/GradeBook.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Grade { public class GradeBook { //constructor public GradeBook() { grades = new List<float>(); } //add grades method ...
dc91f3a3046a41ebdcbb206f43f323fd4bb71b5c
C#
fischettijw/Custome-Control
/ColorSelector.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 Custome_Control { public partial class ColorSelector : UserControl { private C...
1698dd02f4921ab1a24925e240acaeee86913881
C#
MarioVasilev99/CSharp-Advanced-Jan2019
/Stacks and Queues/StackAndQuenes_Lab/ReverseStrings_P01.cs
3.25
3
namespace ReverseStrings { using System; using System.Collections.Generic; public class Program { public static void Main() { string input = Console.ReadLine(); Stack<char> inputStack = new Stack<char>(input); foreach (char symbol in i...
8e892accae10086ec206f25e4bcdab683701f5c4
C#
thieupepijn/CubeDrawer
/CubeDrawer/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Drawing; namespace CubeDrawer { class Program { static void Main(string[] args) { if (args.Length < 4) { Console.WriteLine("Draws a cube to specified image-file"); Console.Write...
66aced8d167048052d7de1b1c0ce0cfa780c3093
C#
ElGuayaba/FileServer
/FileServer.Infrastructure.Repository/Repositories/AlumnoRepository.cs
2.5625
3
using System; using FileServer.Common.Model; using FileServer.Infrastructure.Repository.Interfaces; namespace FileServer.Infrastructure.Repository.Repositories { public class AlumnoRepository : IAlumnoRepository { public bool Filled(Alumno alumno) { if (alumno.Id <= 0 || String.IsNullOrEmpty(alumno.Nombr...
e9deaf1f430160bcaf1e4b3ab3a22597c8907fe4
C#
rockyjvec/GameWasm
/GameWasm/WebAssembly/Type.cs
3
3
using System; using System.Linq; namespace GameWasm.Webassembly { public class Type { public const byte i32 = 0x7F, i64 = 0x7E, f32 = 0x7D, f64 = 0x7C, localGet = 0xFF, localSet = 0xFE, globalGet = 0xFD, globalSet = 0xFC, load32 = 0xFB, store32 = 0xFA, and32 = 0xF9, add32 = 0xF8; public byte[...
110c60549ef351a28612e8505edbf55f42905826
C#
ILoveMilktea/Dogfight
/Assets/Scripts/ReflectionLab.cs
2.8125
3
using System; using System.Reflection; using System.Collections; using System.Collections.Generic; using UnityEngine; public class refl { public string f1; public int p1 { get; set; } public int p2 { get; private set; } public refl() { f1 = "a"; p1 = 1; p2 = 2; } } p...
3d153c1bedfb884a62f2903e637ecaa424536b63
C#
yancyn/drawandworkout
/HLGranite.Drawing.Test/InventoriesTest.cs
2.5625
3
using HLGranite.Drawing; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace HLGranite.Drawing.Test { /// <summary> ///This is a test class for InventoriesTest and is intended ///to contain all InventoriesTest Unit Tests ///</summary> [TestClass()] public class InventoriesTes...
fc6fd1907e9fda5c929f919a87eeebb737d7969c
C#
NikoNodaros/SECUR-O-TECK-REST-WEB-API_csharp
/SecuroteckWebApplication/Models/User.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Collections.ObjectModel; using System.Web.Http; using static SecuroteckWebApplication.Models.User; using System.ComponentModel.DataAnnotations.Schema; namespace SecuroteckWebApplication.Models ...
2da1f5bfb5092f222a3e43acdcbbc966ccc42edc
C#
fiado07/QueryLite
/QueryLite/Common/Helpers.cs
2.796875
3
using QueryLite.Enums; using QueryLite.Parameters; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Linq.Expressions; namespace QueryLite.Common { public static class Helpers { public static void SetParameters(this IDbCommand command, SqlAndParameters...
f0403694cded43358fbcc52917c1880f3dededef
C#
jmptrader/DtronixModel
/DtronixModelTests/Utilities.cs
2.515625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace DtronixModelTests { public class Utilities { public static string GetFileContents(string sampleFile) { var asm = Assembly.GetExecutingAssembly()...
024c86b1db8a136ad866dd825445a5a1bd29b9ce
C#
mandov/02.CSharp-Advanced
/01.Arrays/ConsoleApplication1/CompareArrays.cs
3.96875
4
using System; class CompareCharArrays { static void Main() { string firstWord = Console.ReadLine(); string secondWord = Console.ReadLine(); int ouput = Math.Min(firstWord.Length, secondWord.Length); for (int i = 0; i < ouput; i++) { if (firstWord[i] > secon...
024399b0e1239d483bdee3cc15f97ee4c5b046f7
C#
rabyjaycie14/lengthConverterProgram
/Form1.cs
3.390625
3
using System; using System.Windows.Forms; namespace LengthConverter { public partial class Form1 : Form { public Form1() { InitializeComponent(); } // Handler Interface public interface IHandlerInterface { ...
c032d7f668151c9babf7a87870f55743754f4f84
C#
BitMiracle/libjpeg.net
/Jpeg/Program.cs
2.640625
3
using System; using System.IO; using BitMiracle.LibJpeg.Classic; namespace BitMiracle.Jpeg { public partial class Program { class Options { public string InputFileName = ""; public string OutputFileName = ""; } static bool m_printedVersi...
ad6a5c521e9f4b91e257eef6d978457c7657a0c7
C#
sillsdev/genericinstaller
/CustomActions/CustomActions/CustomAction.cs
2.53125
3
using System; using System.Drawing; using System.IO; using Microsoft.Deployment.WindowsInstaller; namespace CustomActions { public class CustomActions { [CustomAction] public static ActionResult CheckAppPath(Session session) { //Referenced by CustomAction CheckApplicationPa...
84bc300735d6946bad2fc35d1bbd25b78592774a
C#
ulanscodes/atata
/src/Atata/Components/Fields/Select`1.cs
2.53125
3
namespace Atata { /// <summary> /// Represents the text select control (<c>&lt;select&gt;</c>). /// Default search is performed by the label. /// Selects an option using text. /// Option selection is configured via <see cref="SelectOptionBehaviorAttribute"/>. /// Possible selection behavio...
4c1b0c7e4ac1810de5e3c5d1981faf779c6f9c81
C#
RobertoHGMV/ProductsWs
/src/ProductsWs.Infra/Repositories/ProductRepository.cs
2.90625
3
using ProdctsWs.Domain.Models; using ProdctsWs.Domain.Repositories; using ProductsWs.Infra.Contexts; using System.Collections.Generic; using System.Linq; namespace ProductsWs.Infra.Repositories { public class ProductRepository : IProductRepository { ProductDataContext _context; pu...
191f6e6cf678139ac2375cf08aba69931ae4e4fd
C#
vvk120380/FB2Snitch
/FB2Snitch/BLL/FB2Base.cs
2.765625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Xml; namespace FB2Snitch.BLL { public class FB2Person { public FB2Person() { } public String firstname; public String middlen...
705d6acc1ed331dd732ba42886389c2b929380dc
C#
Alexandrfromminsk/Algorithms
/Sorting/Sorting/Program.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sorting { class Program { static void Main(string[] args) { //My Implementation for Learning IComparable[] testList = Helper.generateRandonArr...
efcabcf8010cb82a01114cb937a62852c62569d4
C#
JonathanCPWarner/RollingBallGame
/Rolling Ball Lab/Assets/Scripts/CamSwitch.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CamSwitch : MonoBehaviour { public GameObject cameraZoomedOut; //CameraZoomedOut = "CameraTarget" public GameObject cameraZoomedIn; //CameraZoomedIn = "CameraFollowPlayer" private bool cameraSwitch = false; //Boo...
c3a7890e49c9a0ce66aa4711c64fb429d92d806a
C#
brianhill-bfs/DefaultDocumentation
/source/DefaultDocumentation/Model/NonMember/ReturnItem.cs
2.5625
3
using System; using System.Xml.Linq; using DefaultDocumentation.Helper; using DefaultDocumentation.Model.Base; using Mono.Cecil; namespace DefaultDocumentation.Model.NonMember { internal sealed class ReturnItem : AItem { public override string Header => "Returns"; public TypeReference Type { ...
b1538a6c9b9f615fc78d8794d81bd8f8f098b405
C#
GalaDe/CodeFights
/Data_Structures_Tranning/HashTables/SwapLexOrderExercise_1.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Data_Structures_Tranning.HashTables { public class SwapLexOrderExercise_1 { public static string swapLexOrder(string str, int[][] pairs) { // lexicographica...
c993088d54eca013186999769afb3a026557eaaa
C#
KiroKirilov/SoftUni
/ProfessionalModules/C#Fundamentals/C#OOPAdvanced/Generics/CustomListIterator/CustomList.cs
3.578125
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; public class CustomList<T> : IEnumerable<T> where T:IComparable<T> { private List<T> items; public CustomList() { this.items = new List<T>(); } public void Add(T element) ...
cba422df13fd447256dcee1806a843267d4c6668
C#
L30n4rd031/SilveR
/SilveR/Controllers/UserOptionsController.cs
2.515625
3
using Microsoft.AspNetCore.Mvc; using SilveR.Models; using System; using System.Threading.Tasks; namespace SilveR.Controllers { public class UserOptionsController : Controller { private readonly ISilveRRepository repository; public UserOptionsController(ISilveRRepository repository) {...
f1f86ccd201178a167acf228aade4eb158116e81
C#
UdiRahav/CSharpOOP
/MainMenu/Ex04.Menus.Delegates/AbstrectItem.cs
2.703125
3
 namespace Ex04.Menus.Delegates { public abstract class AbstrectItem { protected readonly string r_ItemName; public AbstrectItem(string i_ItemName) { this.r_ItemName = i_ItemName; } public string ItemName { get { return this.r_ItemName; } ...
ab3b1e7ebb1f3ff1d56443bb14c95728e6e24584
C#
russjudge/ArtemisMissionEditor
/ArtemisMissionEditor/Utility Classes/DictionaryPropertyGridAdapter.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.Collections; namespace ArtemisMissionEditor { public sealed class DictionaryPropertyDescriptor : PropertyDescriptor { //PropertyDescriptor provides 3 constructors. We want th...
e2f3e61ccd799f63ee9bf00fee9eab1b5fba9037
C#
zxh19890103/z-commerce
/Nt.BLL/SecurityService.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Nt.BLL { public class SecurityService { /// <summary> /// 获取加密的字符串 /// </summary> /// <param name="s">输入值</param> /// <returns></returns> public string Md5(string s) ...
fce4871633de3714e7d2832f6b7e6f216947aaf1
C#
florenciagonzalezteti96/tp_laboratorio_2
/Gonzalez.Teti.Florencia.2A.TP3/Archivos/IArchivo.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Archivos { public interface IArchivo<T> { /// <summary> /// Esta funcion permite guardar un archivo con datos /// </summary> /// <param name="archivo">E...
167245b5d3e9b67ad6b63935fedb6f8659eeafd5
C#
cmoinard/AppTrainTrain
/src/Shared/Shared.Core/NonEmptyList.cs
3.21875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Shared.Core.Extensions; namespace Shared.Core { public class NonEmptyList<T> : IReadOnlyList<T> { private readonly List<T> _internalList; public NonEmptyList(T value, params T[] values) {...
5eea05d8c4c2c7ac8048659449b4adb22a3227d0
C#
shendongnian/download4
/latest_version_download2/106841-20660802-53966068-2.cs
2.734375
3
flatList .GroupBy(i => i.FatherId) .Select(g => new Father() { id = g.Key, propertyF, children = g .Select(c => new Child() { id = ChildrenId, prop1, prop2 }) .ToList() })
95bd382a1f747bee8a71347526be95937e3157d0
C#
Kesco-m/Kesco.Lib.Win.Data
/Options/OptionCollection.cs
3
3
using System; using System.Collections; namespace Kesco.Lib.Win.Data.Options { public class OptionCollection : CollectionBase { private static Type t = typeof (Option); public Option this[int index] { get { return ((Option) List[index]); } set { List[index] = va...
9d461d025187fde202875cd541f8ded2f2f28313
C#
ctzuchiang/DataStructure
/DataStructure/Math/MyMath.cs
3.828125
4
using System.Collections.Generic; using System.Linq; namespace DataStructure.Math { public class MyMath { public int GCD(int a, int b) { while ((a %= b) != 0 && (b %= a) != 0) ; return System.Math.Max(a, b); } public int GCD1(int a, int b) { ...
d9127f632161a44fba397525e33d2f8b20b35946
C#
Plenituz/NodeGame
/Assets/VisualEditor/BackEnd/Impl/Nodes/NegateNode.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using VisualEditor.Visuals; namespace VisualEditor.BackEnd.Impl { [Serializable] public class NegateNode : Node { MultiDataInput inp; AnyTypeOutput outp; public override void B...
66ec2df786d83b450aab4ad9ced091cb4bbfe5da
C#
htutich/3dlearn
/Assets/Scripts/Gun/EnemyTurretBulletController.cs
2.53125
3
using UnityEngine; namespace learn3d { public class EnemyTurretBulletController : MonoBehaviour { #region Fields private Rigidbody _myRigidbody; private float _speed = 60.0f; private float _lifeTime = 5.0f; private float _minDamage = 1.0f; private float _maxDam...
4b87edb7e53e075f59b9300ba95dfba2f2769151
C#
gsilvasts/LocalizaLab.CadastroDeSeries
/LocalizaLabSeries/Entities/Serie.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace LocalizaLabSeries.Entities { public class Serie : EntidadeBase { public Serie(int id, string titulo, string descricao, int ano, bool excluido, GeneroEnum genero) { Id = id; ...
29487254aa88175f0d1e5a8f23776effaad25dfe
C#
Nikolamv95/SoftUni-Software-Engineering
/CSharp-OOP/12.DesignPatterns/1.Lecture/CreationalPatterns/DecoratorPattern/Models/PaymentSystemDecorator.cs
3.640625
4
using System; namespace DecoratorPattern { public class PaymentSystemDecorator : IPaymentSystem { private IPaymentSystem paymentSystem; public PaymentSystemDecorator(IPaymentSystem system) { this.paymentSystem = system; } public void LoanMoney(string from,...
fb1f08f17272067042ea59e336e64156cd6eecbc
C#
ZeXVex/OnlineRetailer_Partial-master
/OrderApi/Data/DbInitializer.cs
2.734375
3
using System.Collections.Generic; using System.Linq; using OrderApi.Models; using System; namespace OrderApi.Data { public class DbInitializer : IDbInitializer { // This method will create and seed the database. public void Initialize(OrderApiContext context) { context.Data...
bb0e4c57d4a4f3b0963e89dde4b79dd7a0cba64d
C#
rafamartinsbr/.net-core
/BookModule.Web.Api/Controllers/BooksController.cs
2.625
3
using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Threading.Tasks; namespace BookModule.Web.Api.Controllers { [Route("api/[controller]")] public class BooksController : Controller { private readonly IBookQueries _bookQueries; private readonly IBookCommands _boo...
27a4a03e7d368b46db535ca6202b1b1da6b12fb8
C#
Maxwolf/WolfCurses.Example
/src/Program.cs
3.09375
3
// Created by Ron 'Maxwolf' McDowell (ron.mcdowell@gmail.com) // Timestamp 01/07/2016@7:10 PM using System; using System.Threading; namespace WolfCurses.Example { /// <summary> /// Example console application using wolf curses library to power interaction. /// </summary> internal static class Pr...
95246aff04ca0a5c9534a87e6921cea6ed96b3cc
C#
OKYAKUSAN/Testweb
/BLL/TeamsGroup.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using TestWeb.DAL; using TestWeb.Model; namespace TestWeb.BLL { public class TeamsGroup { private List<Team> _teamList = new List<Team>(); public TeamsGroup() { TeamListXml teamListData = ...
1e56c62623f9d20fe6579df6c7745919dedd31f1
C#
Trukhaibit/Ch09Ex1NFLTeams
/NFLTeams/Models/TeamListViewModel.cs
2.671875
3
using System.Collections.Generic; namespace NFLTeams.Models { public class TeamListViewModel : TeamViewModel { public List<Team> Teams { get; set; } public string UserName { get; set; } // use full properties for Conferences and Divisions // so can add 'All' item at beginning...
714925011cad025b6175a0650285bc502703996b
C#
Chips100/Sunflower
/Sunflower.Data/EntityRepositoryFactory.cs
3.234375
3
using Sunflower.Data.Contracts; using System; using System.Threading.Tasks; namespace Sunflower.Data { /// <summary> /// Factory for repositories to make changes to the persistent storage. /// </summary> public sealed class EntityRepositoryFactory : IEntityRepositoryFactory { /// <summary>...
5a661d4a33961c3c4b65e18d26f440ca38fb9410
C#
tenevdev/academy-csharp
/csharp-meeting-1/ConsoleInputOutput/2. PrintCirclePerimeterAndArea/PrintCirclePerimeterAndArea.cs
3.78125
4
using System; class PrintCirclePerimeterAndArea { static void Main(string[] args) { double radius = double.Parse(Console.ReadLine()); double area = Math.PI * radius * radius; double perimeter = 2 * Math.PI * radius; Console.WriteLine("The circle's area is: {0}", area); ...
0a614d22db4ea0a8935408b20f717b2b9474fa29
C#
Doombull/DiceRoller
/DiceRoller/Warmachine/CataclysmIrusk.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DiceRoller { class CataclysmIrusk : IRunnable { protected int IruskHealth = 17; protected int IruskBaseArmour = 15; protected int IruskBaseDefense = 15; protected int CataclysmStr =...
b36d7cbb1956e2edb0adeb0953b63b56fb2a4337
C#
gitter-badger/logmagic
/src/LogMagic.Test/FormattingTest.cs
2.515625
3
using System; using System.Collections.Generic; using NUnit.Framework; namespace LogMagic.Test { [TestFixture] public class FormattingTest { private TestWriter _writer; private ILog _log = L.G(); [SetUp] public void SetUp() { _writer = new TestWriter(); L.Conf...
dc9e1aca1ce1c707b3e196ebf39a96a25e699def
C#
jchhh912/WebSocketDemo
/WebSocketDemo/Sockets/SocketsMiddleware.cs
2.84375
3
using Microsoft.AspNetCore.Http; using System; using System.Buffers; using System.Net.WebSockets; using System.Text; using System.Threading; using System.Threading.Tasks; namespace WebSocketDemo { public class SocketsMiddleware { private SocketsHandler _Handler { get; } //如果不是websocket请求 ...
3b0a4eb4ea0d6d514d117c8f00c9ecf8bd17119b
C#
hankshuangs/Visual-C
/BookExercise C#/CH10/DirectoryGetDirectories_ex/DirectoryGetDirectories_ex/Form1.cs
3.078125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; //新增此命名空間 namespace DirectoryGetDirectories_ex { public partial class Form1 : Form ...
6ac95df6c03fcc03d0803d5c6ca3d23755a4d3cb
C#
sarn3792/API_ControlEntregas_Magnetos
/API_ControlEntregas/Models/ClienteModel.cs
2.75
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Web; namespace API_ControlEntregas.Models { public class ClienteModel { public async Task <List<Cliente>> Get() { try { Strin...
998495e9a7c0f322fcd6ef86dece1d1928fd18e7
C#
MartinZPetrov/TelerikAcademy
/C# Part I/Exam/Task4/Task4.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Task4 { static void Main() { int N = Int32.Parse(Console.ReadLine()); int Width = N * 2 - 1; int leftnakCounter = 0; int leftWhiteSpaceCounter = N - 1; ...
5155e57e943fef085b2c569368642c6fa058e5e2
C#
SebastianBienert/Advent-Of-Code-2017
/Day10/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Day10 { class Program { static void Main(string[] args) { List<string> data = new List<string>() { "" }; List<int> additional = new List<int>()...
cc1316a50fee0df4f31257d7d0ad03eec95e487c
C#
MiraNedeva/SoftUni
/Programming Fundamentals C#/2.Methods And Debugging-Exercices/Geometry Calculator/Program.cs
4.125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /* Write a program that can calculate the area of four different geometry figures - triangle, square, rectangle and circle. On the first line you will get the figure type. Next you will get parameters f...
24909bdafb228695594b7c5eb1d0596fd0b4bee4
C#
imoduatv/TriangleBlockPuzzleGame
/Assets/Scripts/Dta_TenTen/Block.cs
3.09375
3
namespace Dta.TenTen { public class Block { private int color; private int x; private int y; public Block() { color = -1; x = -1; y = -1; } public Block(int c) { color = c; } public Block(int c, int x, int y) { color = c; this.x = x; this.y = y; } public Block(Bloc...
4ea67954172c83d49d7cf514b2f77ece0d2223f9
C#
carrot13/SoftUni-Projects
/Programming-Basics-With-C#/01.FirstStepsInCodingExercise/VacantionBooksList/Program.cs
2.9375
3
using System; namespace VacantionBooksList { class Program { static void Main(string[] args) { int pagesCount = int.Parse(Console.ReadLine()); double pagesForHour = double.Parse(Console.ReadLine()); int countDays = int.Parse(Console.ReadLine()); ...
acf10a2359952d19abc79cb465c42c16d68a1934
C#
Rule-the-Waves-2-Mods/Thalassic
/Thalassic/Registry/Rtw2VersionRegistry.cs
2.515625
3
using Thalassic.Mods; using Microsoft.Extensions.Configuration; using Semver; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; namespace Thalassic.Registry { /// <summary> /// Must be initialized by calling Update() /// </summary> public class Rtw2V...
5d3d638ba7e8a74977905bf06276ccb82b4e24b1
C#
DmitryEvmenov/having-fun-with-shapes
/Shapes/Concrete/Ellipsis.cs
3.1875
3
using System.Collections.Generic; namespace Shapes.Concrete { public class Ellipsis : Circle { public double StretchingX { get; } public double StretchingY { get; } public Ellipsis(int centerX, int centerY, int radius, double stretchingX, double stretchingY) : base(centerX, centerY, r...
53821c28c9abb388b7d493322d3bdcf940ea96f8
C#
AbnerSquared/OpenTDB.Net
/src/TdbClient.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; namespace OpenTDB { public class TdbClient : IDisposable { private readonly HttpClient _client; // private string _session; public TdbClient()...
a2929ca299812c29ad20778823f5717d639c96dc
C#
Maxel-Uds/Curso-C-Sharp
/Membros_Estáticos/exercicio2/Program.cs
3.171875
3
using System; using System.Globalization; namespace exercicio2 { class Program { static void Main(string[] args) { Console.WriteLine("Digite os dados do funcionário: "); Console.Write("Nome: "); Funcionario.Nome = Console.ReadLine(); Console.Writ...
c3410c8724ef89ac74c26e5dc288fcd4864ae53c
C#
ShokoAnime/ShokoServer
/Shoko.Server/Utilities/LinuxFS.cs
2.78125
3
using System; using Mono.Unix; namespace Shoko.Server.Utilities; public static class LinuxFS { private static UnixUserInfo RealUser; private static bool CanRun() { return Environment.OSVersion.Platform == PlatformID.MacOSX || Environment.OSVersion.Platform == PlatformID.Unix; } publ...
10ac899bb6da5916de926ff40645c9f42cc6a2e1
C#
autumn009/CSharpSourceDance
/Answers/LanguageKeywords/case/case/Program.cs
3.40625
3
using System; class Program { static void Main() { int[] array = { 1, 0, 1, -1 }; foreach (var item in array) { switch (item) { case 0: Console.Write("ZERO "); break; case 1: Console.Write("ONE "); break; default: ...
b9aad1dd94a12d9e0cb37cf930f567995c7eb611
C#
math039h/ObligatoriskeTCP-Server5
/TCP-ServerEcho/Worker.cs
3.0625
3
using System; using System.IO; using System.Net.Sockets; namespace TCP_ServerEcho { internal class Worker { public Worker() { } public void Start() { using (TcpClient socket = new TcpClient("localhost", 4646)) using (StreamReader sr = new Stream...
28da77a433a7c922522818ea7bbdc2c933923116
C#
danielnutu/NemoExpressSolution
/src/CmdSolutions.Shipping.NemoExpress/Converters/NemoExpressEpochConverter.cs
2.8125
3
using System; using System.Text.Json; using System.Text.Json.Serialization; namespace CmdSolutions.Shipping.NemoExpress.Converters { sealed class NemoExpressEpochConverter : JsonConverter<DateTime> { private static readonly DateTime _epoch = new DateTime(1970, 1, 1, 0, 0, 0); public override ...
01d00a8008910ed5f41dcf1fff177bb1e82f1215
C#
sunc123/PatternLearn
/PatternLearn/Factory Method/Factory.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PatternLearn { abstract class Factory { public Product Creat(string owner) { Product p = CreatProduct(owner); RegisterProduct(p); re...
687d30132c4434af0f557ad7c3cf6173b7c09e16
C#
Kawser-nerd/CLCDSA
/Source Codes/AtCoder/abc119/D/4430027.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; namespace CSharpSample01 { class Program { static long[] shrine; static long[] temple; static long[] posi; static int A; static int B; static int Q; const long EA...
289e3bbaaa817ba0be81d443732717de487217d5
C#
OlgaKulina/DiaryAppOlga
/TestBootstrap/Repository/ScheduleRepository.cs
2.71875
3
 using DiaryAppOlga.Models; using System.Collections.Generic; using System.Linq; namespace DiaryAppOlga.Repository { public class ScheduleRepository: IRepository { private ScheduleContext context; public ScheduleRepository(ScheduleContext ctx) => context = ctx; public IEnumerable<UserT...
6d178a35c9123a6e3576911515ef94db08daf1fc
C#
zmalosh/HockeyData
/HockeyData.Processors/NhlCom/Processors/TeamsProcessor.cs
2.5625
3
using HockeyData.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HockeyData.Processors.NhlCom.Processors { public class TeamsProcessor : IProcessor { private readonly string NhlSeasonKey; private readonly JsonUtility JsonUtility; public TeamsProcessor(st...
49df86a670089df904dd44b82f987617f01ab136
C#
Will-D-James/DotsAndBoxes
/DotsAndBoxes/DAB.cs
3.25
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 DotsAndBoxes { public partial class FrmDAB : Form { private int mainCounter; ...
729226ca405ff05b1abb909919fc877c1cae9e71
C#
teodortenchev/C-Sharp-Advanced-Coursework
/C# OOP Advanced/Generics/P9CustomListIterator/CommandInterpreter.cs
3.9375
4
 namespace P9CustomListIterator { using System; public class CommandInterpreter<T> : ICommandInterpreter<T> where T : IComparable<T> { private CustomList<T> list; public CommandInterpreter() { list = new CustomList<T>(); } public void Add(T ele...
8a7dd9ff430b22c59fb197035fc3ce357c027c87
C#
I-Mircheva/text-filter-calastone
/TextFilter/Filters/FilterLetterT.cs
3.1875
3
using System; using System.Linq; using System.Text.RegularExpressions; namespace TextFilter { public class FilterLetterT : FilterBase { public FilterLetterT() : base("FilterLetterT") { } public override OutputText Apply(OutputText text) { string returnString = text.text; ...
36c94749277996f96a45a7e9aa7b8102ac052f60
C#
JaimeAlbertoMonroyLopez/masglobal
/DataLayer/DataAccess/DataAccessClass.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using System.Configuration; using System.Net; using Entities.Employee; using System.Resources; using System.Reflection; namespace DataAccess { public class DataAccessClass ...
37f36cbd5fc84eedcfcafc3ecaf66a629767365e
C#
yufw/RayTracingInOneWeekend
/Sphere.cs
2.609375
3
using System; public class Sphere : IHitable { private Vec3 center; private float radius; private Material mat; public Sphere() { } public Sphere(Vec3 cen, float r, Material m) { center = cen; radius = r; mat = m; } public bool hit(Ray r, float tMin, float tMax, ref HitRecord rec) { ...
d25f08ca191cf97f4d2bef6dfff0f29822242868
C#
Dragicafit/JeuNul
/Assets/Scripts2/Status.cs
2.71875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class Status { public readonly float duration; public StatusEnum Se { get; protected set; } public float StartTime { protected get; set; } private GameObject go; public Status(GameObject go, float dur...
ea7ad26017e3c22a6850aab67db275ec009f54e1
C#
ALGutierrez/EDSAChallenge
/Repository/APIStudentRepository.cs
2.6875
3
using Gestion_Alumnos_v1.Models; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Net.Mime; using System.Threading.Tasks; namespace Gestion_Alumnos_v1.Repository { public class APIS...
46e1896a5ce7f5706c33744d71ddee9ed3fb22c5
C#
SharpKit/SharpKit-SDK
/Defs/ExtJs/Ext.slider.Multi.cs
2.6875
3
//*************************************************** //* This file was generated by tool //* SharpKit //* At: 29/08/2012 03:59:41 p.m. //*************************************************** using SharpKit.JavaScript; namespace Ext.slider { #region Multi /// <inheritdocs /> /// <summary> /// <p>Slider wh...
92b467b74764c92a0a7f98b24fcaddee6aa410a7
C#
ZumrudAliyeva/Final-project_Limak.az
/Repos/OrderRepository.cs
2.59375
3
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AutoMapper; using Limak.az.Contexts; using Limak.az.Interfaces; using Limak.az.Models; using Limak.az.ViewModels; namespace Limak.az.Repos { public class OrderRepository : IOrderRepository { private readonly Limak...
4b7ecc12b7b737d7d207c3c6dbe747475cab6d4d
C#
diegomachado7/Comanda
/ComandaEletronica/Models/Produto.cs
2.578125
3
using ComandaEletronica.DAL; using ComandaEletronica.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ComandaEletronica.Models { internal class Produto { private int _produtoId; private string _nome; ...
e3dd959911bf50405b330eb9468b2ae026a9f0fc
C#
sro-boeing-wave-2/hamming-distance-csharp-problem-Hrishi246
/Hamming/Hamming.cs
3.875
4
using System; namespace Hamming { public class Hamming { public static int Distance(string original, string current) { int hammingDistance = 0; if (original == null) { throw new ArgumentNullException("original"); } ...
b9e83c746d4deb21a94c3410dac52d5551295866
C#
dTaba/ECommerceCanchasWeb
/TutuCanchas.DAO/CanchasTiposDAO.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using TutuCanchas.DTO; using System.Data; using System.Data.SqlClient; using TutuCanchas.DAO; namespace TutuCanchas.DAO { //CRUD public class CanchasTiposDAO { protected SqlConnection Conexion = new Sq...
ac8eac662c57b53c98b8d1ce5a1cdd6779346cdc
C#
ericsebesta/unity-toolbelt
/Runtime/ExclusiveChooser.cs
2.765625
3
using UnityEngine; namespace com.ericsebesta.toolbelt { /// <summary> /// A behavior that ensures that exactly 1 (or 0 if no children) gameobjects are active. If at any point more than 1 child /// is active, the first child will be preferred. /// </summary> /// This class functions along with the ...
686a723da7b912571dec81d70287906579cb4443
C#
cookgreen/TaleworldsProductSerialKeyVerifier
/ModProfile.cs
2.625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TaleworldsProductSerialKeyVerifier { public class ModProfile { private string gameRunPath; public string Name { get; set; } public string Displ...
95693cdc38111775fd72ce6d462ffe10e8f8135f
C#
crocomoth/NET.S.2018.Popivnenko.Test
/Task1.Solution/Service/PasswordCheckerSevice.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Task1.Solution.Interface; using Task1.Solution.Model; namespace Task1.Solution.Service { public class PasswordCheckerSevice : IPasswordChecker { private IRepository repository; ...
00aab161a886999b2401028b36c92957bf00d72a
C#
Lak5han/EventManagmentapp
/Eventmanagement/DataBaseOperatios/ApplicationLevelDataBaseOps.cs
2.71875
3
using DataLayer; using ExceptionLogging; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Eventmanagement.DataBaseOperatios { public class ApplicationLevelDataBaseOps { private EventmanagementDbContext db = new Ev...
c926e95427fde2397d1315f9432432da604165fc
C#
miggello/pluralsight
/Sandbox/Program.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sandbox { class Program { static void Main() { Logger logger = new Logger(); WriterDelegate writer = new WriterDelegate(logger.WriteMessage); ...
91f9aa3f90c75ca07e4cac90929d5037d0de7893
C#
sharparchitecture/Sharp-Architecture
/Src/Tests/SharpArch.XunitTests/SharpArch.Domain/DomainModel/BaseObjectEqualityComparerTests.cs
2.703125
3
// ReSharper disable UnusedAutoPropertyAccessor.Local namespace Tests.SharpArch.Domain.DomainModel { using System.Collections.Generic; using System.Linq; using System.Reflection; using FluentAssertions; using global::SharpArch.Domain.DomainModel; using global::SharpArch.Testing.Helpers; usin...
8c84db0ff4b41ff18bc5183f8ff87ee1abd7fefc
C#
CloudDevStudios/SkillSystemUnity
/Assets/SkillTreeSystem/Language/SkillConditionTokenizer.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityScript.Parser; namespace Assets.SkillTreeSystem.Language { public static class SkillConditionTokenizer { public static List<SkillConditionToken> Tokenize(string unprocessedText) { var r...
ead342656ef08bd7b736a43e649b270452ce21ba
C#
expcat/DotNetSamples
/Rabbit.ConsoleApp/Headers.cs
2.765625
3
using System; using System.Collections.Generic; using System.Text; using System.Threading; using RabbitMQ.Client; using RabbitMQ.Client.Events; namespace Rabbit.ConsoleApp { public class Headers { private static readonly string exchange = "headersexchange"; public static void HeadersPublish(Con...
4ad09820368f354fd1b583a5cbdccdfbbe2ac730
C#
mfmese/FileUploaderWebApi
/FileUploader.Infrastructure/Repositories/FileUploadRepository.cs
2.515625
3
using FileUploader.Domain.Models; using FileUploader.Domain.Ports; using FileUploader.Infrastructure.Contexts; using FileUploader.Infrastructure.Entities; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Threa...
a4f1340908cc1833bf8c77aa94f0db3972430ed2
C#
Henriquedevb/foccoEmFrente
/src/FoccoEmFrente.Kanban.Application/Services/ActivityServices.cs
2.6875
3
using FoccoEmFrente.Kanban.Application.Entities; using FoccoEmFrente.Kanban.Application.Repositories; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace FoccoEmFrente.Kanban.Application.Services { public class ActivityServices : IActivityServices ...
ab39694606a306fed887085691ed22363f0b1290
C#
AnnaFrank17/EPAM
/GenericCollection/UnitTestStack/UnitTest1.cs
2.8125
3
using System; using GenericCollection; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace UnitTestStack { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { Stack<int> stack = new Stack<int>(8); stack.Push(4...
d502865cc5d41cbae4e30afcf91b9b3d5448f0b7
C#
evd0kim/PrivateNotes
/PrivateNotesAddin/PasswordEntry.cs
2.859375
3
using System; using System.Collections.Generic; using System.Text; using System.Threading; using Mono.Unix; namespace Tomboy.PrivateNotes { /// <summary> /// utility class that is able to display a password-entry /// dialog, while the sync process is running. /// not that straightforward, because we are running i...