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
7afdcc79c4423fbe30bacd23ed02966a7fa3dfd5
C#
Balabolkin/Lesson1.1Lib
/Lesson1.1Lib/Point.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace Geom.lib { public struct Point { public int X, Y; const char Symbol = '*'; public Point(int x, int y) : this() { ...
8fcff6dcc06e90e926f12a6915fdd7cafc81e681
C#
Kolgotin/Yokogawa
/LTDFilesDecryptor/Common/TicketsToFile.cs
2.875
3
using LTDFilesDecryptor.Model; using System.Collections.Generic; using System.IO; using System.Xml.Serialization; namespace LTDFilesDecryptor.Common { public class TicketsToFile { public List<TicketsModel> LoadFromFile(string filePath) { var serializer = new XmlSerializer(typeof(Li...
67e5ff60eadc14552ef33fb5533d1e26fdb64606
C#
pelan05/pweb_eCarSharing
/pweb_eCarSharing/Models/CarStationViewModels.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace pweb_eCarSharing.Models { public class AddCarStationViewModel // modelo para informação de formulário { [Required] [StringLength(15, ErrorMessage = "Lengt...
26dc9f98e80078b145854d66f24e38896777e194
C#
Elders/Zeus
/src/Zeus/Monitors/Linux/CpuTopMonitor.Linux.cs
2.578125
3
using System; using Zeus.Monitors.Linux.Commands; namespace Zeus.Monitors.Linux { public class CpuTopMonitor : ICpuMonitor { public CpuInfo GetCpuUsage() { string availableCpuAsString; decimal result = 0; if (Top.Execute().TryGetValue("cpu_free", out availab...
58866bd5e040121aba846f24c7a25b029a9c44c3
C#
mrslavchev/TelerikHw-CSharp
/C# High quality code/Performance and optimization/Performance optimisation/02.ComparePerformance/Comparer.cs
3.515625
4
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics; class Comparer { static void Main() { /*To test incrementation we put the value throug a 1 000 000 interations loop. The loops are repeated code, on purpose. There's no generic way to do it otherways...
bd96f9fc0c34de90d218dee6270c08d51d55f216
C#
DNUG/DNUG-October-Event
/Nova.Dnug.Domain.Model/ModelEntity.cs
3.15625
3
namespace Nova.Dnug.Domain.Model { using System; using System.ComponentModel.DataAnnotations; using ProtoBuf; /// <summary> /// Base class for domain model entities /// </summary> [ProtoContract] [Serializable] public class ModelEntity { /// <summary> ...
156e195ebb2ca4dac3f4167affd8e7cdc135e8fc
C#
yotkoKanchev/Technology-Fundamentals-sep-2018
/05. Lists/Lists-More-Exercises/P04_MixedUpList/Program.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; namespace P05_MixedUpList { class Program { static void Main(string[] args) { List<int> firstList = Console.ReadLine() .Split() .Select(int.Parse) .ToList...
dd916c450e48e88b8dc564f548ad7b1cf4907bed
C#
DaniilAfendulov/Course-project-1
/Course work/Classes/Skill.cs
3.203125
3
using Adventure.Forms; using System; using System.Collections.Generic; namespace Adventure.Classes { public class Skill { public enum Effect : int { Buff, Debuff } public enum Attacker : int { Enemy, Player...
97af2e58c6fe28cc13c144af29bbfc049c8fa1b9
C#
ttiamus/DndBlog
/DAL/JournalRepo.cs
2.65625
3
using System; using System.Collections.Generic; using System.Configuration; using System.Runtime.Serialization; using System.Threading.Tasks; using System.Web.Script.Serialization; using Blog.Models; using MongoDB.Bson; using MongoDB.Driver; using MongoDB.Driver.Core.Configuration; namespace Blog.DAL { ...
db14b029b200664bae82bd8689a6dbda47ba00dd
C#
danfengxiang/SqlServer.Rules
/SqlServer.Rules/Globals/ModelInfo.cs
2.578125
3
using Microsoft.SqlServer.Dac.Model; using Microsoft.SqlServer.TransactSql.ScriptDom; using SqlServer.Dac; using SqlServer.Dac.Visitors; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SqlServer.Rules.Globals { /// <summary> /// ...
fd346a7046defbf93589890e999ce6b4be6e326a
C#
luiz-shonen/faculdade
/TPFinal_AED_BAR/Estruturas/Arvore/Arvore.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TPFinal_AED_BAR.Estruturas.Arvore { public class Arvore { public Noh Raiz { get; set; } private int Quantidade = 0; private List<int> ListaNum = new List<int>()...
0a67cce687d8fb29fe30e2c15fa94ced22d3f0b0
C#
GLevieux/landscape
/Assets/WFC/Scripts/Utils/RandomUtility.cs
2.8125
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using Random = System.Random; //Provide one Random instance per thread public class RandomUtility { private static Random _global = new Random(); [ThreadStatic] private static Random _local; public static vo...
389eb41c449709b1bc2194006d568902aa5f82a4
C#
Ideine/Xmf2
/src/Xmf2.Components/ViewModels/Operations/UpdateViewModelOperation.cs
2.53125
3
using System; using System.Threading.Tasks; using Xmf2.Components.Interfaces; namespace Xmf2.Components.ViewModels.Operations { internal class UpdateViewModelOperation<TParam, TResult> : ViewModelOperation<TResult> { private Func<Task<TParam>> _previousRun; private Func<TParam, TResult> _run; public UpdateVi...
1ebe670fd35d95b9a0d7ee2867428221dac36ca0
C#
dpkrokz/OrderProcessor
/OrderProcessor/OrderProcessor/UpgradeMembershipOrder/UpgradeMembershipOrder.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OrderProcessor.UpgradeMembershipOrder { class UpgradeMembershipOrder : AbstractOrder, IUpgradeMembershipOrder { public override bool Checkout(Product prod) {...
425707c1710c8ac0f6a00655f637a0f2aefb1160
C#
sy545633799/NetworkCore
/photonServer/Photon.SocketServer/Security/RijndaelCryptoProvider.cs
2.859375
3
using System; using System.Security.Cryptography; using ExitGames.Logging; namespace Photon.SocketServer.Security { /// <summary> /// An <see cref="T:Photon.SocketServer.Security.ICryptoProvider"/> implementation using the Rijndael symmetric encryption algorithm. /// </summary> public class RijndaelCr...
f9d45be9875ebafa08af96753affc49bc120c771
C#
wcolorless/PinoQL
/PinoQLLib/core/SaveLoad/ReadWriteObject.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Runtime.Serialization.Formatters.Binary; namespace PinoQLLib.core.SaveLoad { public class ReadWriteObject<T> { public static void Save(T Structure, string...
e720c58fb0cb5852740e472dc62833f934e7cfb5
C#
Roberto3020/Pago-de-Creditos
/Logica/PagoService.cs
2.78125
3
using System.Collections.Generic; using System.Diagnostics.Contracts; using System; using Datos; using Entidad; namespace Logica { public class PagoService { private readonly PagoContext _context; public PagoService(PagoContext context) { _context = context; } ...
95f85a86b3590006e37c5572aeb254f1adfa4e19
C#
HoeflingSoftware/corefx
/src/System.Text.Json/tests/Serialization/DictionaryTests.cs
2.625
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using Xunit; namespace System.Text.Json.Serialization.Tests { public static ...
a371c48078f87dc793901510517bad09ccfab6ea
C#
nulhax/VOID
/Unity/Assets/Realistic Effects Pack/Scripts/Prefabs/Balls/Circulation.cs
2.640625
3
using System; using UnityEngine; using System.Collections; public class Circulation : MonoBehaviour { public int Fps = 60; public float Radius = 1, Speed = 1, OffsetDegree = 0; public bool IsPointCirculation; public bool IsActive = true; private float deltaTime; private Transform t; // Use this for i...
9b8bff7078340c295cb933e3806f99e745498a8c
C#
GabrielBotinhoni/WebApi-ToDoList
/ToDoList.Data/TarefaConfiguration.cs
2.6875
3
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using ToDoList.Core.Models; namespace ToDoList.Data { public class TarefaConfiguration : IEntityTypeConfiguration<Tarefa> { public void Configure(EntityTypeBuilder<Tarefa> builder) { builder...
fb28d52482556ad9ea66ca0d6900f202548fb5f1
C#
jangsunghyun/C-7.0-Part.1-2
/InheritEx/InheritEx/Program.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InheritEx { class Parent //기반클래스 베이스 클래스 { public Parent() { Console.WriteLine("Parent() 생성자 호출"); } ~Parent() { Consol...
d5678964f22361534b49b763397733add94bada4
C#
pongpanote/Sandbox
/SandBox/Solution1.cs
3.25
3
using System; using System.IO; using System.Linq; class Solution1 { // Complete the bomberMan function below. private static string[] BomberMan(int n, string[] grid) { var board = new char[grid.Length, grid[0].Length]; //first second for (var i = 0; i < board.Lengt...
49e12b05833f1b7d99b0213d8c49fe3a889eab81
C#
Kodeistan/covid-web-scraper
/src/Cdc.Covid.WebScraper/MI_Scraper.cs
2.640625
3
using NPOI.SS.UserModel; using NPOI.XSSF.UserModel; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Http; using System.Threading.Tasks; namespace Cdc.Covid.WebScraper { public class MI_Scraper : IStateScraper { private const string URI ...
8b53710907141ba3099b824c9fa2687481a01403
C#
ARLM-Attic/rendering
/System.Rendering/Effects/EffectBlendMode.cs
2.90625
3
using System; using System.Collections.Generic; using System.Text; using System.Rendering.Resourcing; namespace System.Rendering.Effects { public abstract class BlendableEffect<ES> : Effect<ES> where ES : struct { public BlendableEffect(ES state) : base(state) { BlendMod...
342f04e424d56549c2d4478a1513d50862b4642e
C#
DomicaCode/Project-Budget.WebAPI
/Project-Budget.Repository/BaseRepository.cs
2.578125
3
using AutoMapper; using Microsoft.EntityFrameworkCore; using Project_Budget.Common; using Project_Budget.DAL.Context; using Project_Budget.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Project_Budget.Repository { public class B...
a947170d612fcdea16f43e0401d7b9a2da2d2008
C#
DSzocs/Scoala-Informala-EDU
/Scoala Informala EDU/Main.cs
2.6875
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 Scoala_Informala_EDU { public partial class Main : Form { private System.Media...
85fbd2f3e1bf162d90d8101a135d2f8107bdb0dd
C#
leaffing/MyLuaMVC
/Assets/Script/LuaMVC/GaneUtils/FileStream/Stream/Implementations/JsonFS.cs
2.9375
3
 namespace LuaMVC { public class JsonFS : FileStream { private static JsonFS _instance; public static JsonFS Instance { get { if (null == _instance) _instance = new JsonFS(); return _instance; } ...
993c81a219d835ca32a7ef1c28b0e47f1e733554
C#
krasiymihajlov/Soft-Uni-practices
/C# Advanced/05.Strings/String - Exercise/14. LettersChangeNumbers/LettersChangeNumbers.cs
4.21875
4
namespace _14.LettersChangeNumbers { using System; public class LettersChangeNumbers { public static void Main() { string[] input = Console.ReadLine() .Split(new char[] { }, StringSplitOptions.RemoveEmptyEntries); decimal result = 0; for...
1a4d37d6e43aeb91e2c2812b06a4cc0fcc7f4bf3
C#
JaSmitty/National-parks-Database-Capstone
/09_Capstone/Capstone/Models/Reservation.cs
2.734375
3
using System; using System.Collections.Generic; using System.Text; namespace Capstone.Models { public class Reservation { //public void Reservation(int siteID, string name, string fromDate, string toDate) //{ // this.Site_Id = siteID; // this.Name = name; // th...
0857c59a0b8560f2fa602b7c82b5fa5a019d3c83
C#
thzinc-icebox/MPRV
/MPRV.Core/Model/WritableModel.cs
2.515625
3
using System; using MPRV.Common.Reflection; using System.Linq; using MPRV.Common; namespace MPRV.Model { public abstract class WritableModel<TWritableModel>: ReadableModel, IWritableModel<TWritableModel> where TWritableModel : class, IReadableModel, new() { #region Constructors public WritableModel () { }...
1c7b007b5448a8d23a29f7dd3006d34337dad1aa
C#
japf27/Avance_proyecto
/Proyecto/ProyectoPresupuestos/CapaQuerys/QUsuarios.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using CapaSQL; namespace CapaQuerys { public class QUsuarios { SQL csql = new SQL(); public DataTable dat; string query, err, name; ...
220016e951da4a4fe2e14c7f9ba1a59df3c1161a
C#
game-ai-course/csb
/csb/Pod.cs
2.828125
3
using System; namespace CG.CodersStrikeBack { public class Pod : Disk { public Pod( VecD pos, VecD v, double headingInRadians, int nextCheckpointId, int checkpointsTaken = 0, bool canBoost = true, int timeWithoutCheckpoint = 0, int shieldTicksLeft = 0, int mass = 1, ...
db44f756c681ef7d7d62afcd881dbc63becd80b9
C#
LOKE/servicediscovery-dotnet
/ServiceDiscovery/BonjourNet/Network/BinaryHelper.cs
3.109375
3
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace Network { internal static class BinaryHelper { public static void Write(Stream stream, ushort p) { Write(stream, ToBytes(p)); } public static byte[] GetByt...
de4b0d86bf06ea6ebf2009c317e228051a11e46d
C#
agiledon/designpatternspratice
/ch04/Refactoring/Math/Container/MathContainer.cs
3.046875
3
using System; using System.Collections.Generic; using System.Collections; using System.Text; namespace DonOfDesign.Refactoring.Math { public abstract class MathContainer { public MathContainer() { m_mathList = new List<long>(); } public MathContainer(int capacity) { ...
6f1c6e5f112aaac43ecdd567d73da8bee56b8b58
C#
Rhyme1314/MyLeetCode
/LeetCode/1561.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LeetCode { class _1561//你可以获得的最大硬币数目 { public int MaxCoins(int[] piles) { int n = piles.Length; Array.Sort(piles); int res = 0; ...
2f8d9d812a4594c6b70905887795c191e82bcf42
C#
adhithyapp/productmanagementsystem
/Login.cs
2.578125
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.Data.SqlClient; namespace product_management { public partial class Login ...
bdab345c27062c7c9624ff5596cb1ae6a2abcddd
C#
zzz8415/Zero
/Zero.Core/Inject/WebCache.cs
2.875
3
using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections; using System.Collections.Generic; using System.Reflection; using Zero.Core.Attribute; namespace Zero.Core.Inject { /// <summary> /// 缓存帮助类 /// </summary> [Inject(OptionsLi...
37443af4b92c5e19659fb900a9d6b4a1e60913fa
C#
princelundgren/radio-controlled-cars-simulator
/RadioControlledCarsSimulator/Constants.cs
3.203125
3
 namespace RadioControlledCarsSimulator { public static class Constants { public static class Car { public static class Movement { public const int StepLength = 1; } public static class Type { public c...
5da9d0308e1eada9de887e6985f96b7f102560ec
C#
malkyatmuk1/Telerik
/C# OOP/Telerik-OOP-Team-StarFruit-master/TeamworkStarFruit/CatalogueLib/Products/SmallAppliances/Mixer.cs
2.765625
3
namespace CatalogueLib.Products { using CatalogueLib.Products.Enumerations; public class Mixer : SmallAppliances { public Mixer(int ID, decimal price, bool isAvailable, Brand brand, double Capacity, double CableLength, int Affixes, bool HasBowl) : base(ID, price, isAvailable, brand, Ca...
7462c545449fef2c4937739b0bf79f7915704c0b
C#
gillesigot/7wonders_scripting
/Assets/Scripts/DAO/CardsDAO.cs
2.84375
3
using Newtonsoft.Json; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; /// <summary> /// This class represents cards information stored in data file. /// </summary> public class CardDAO { private const int DEFAULT_INT_VALUE = -1; private const bool DEFAULT_BO...
709bef5762906f629db7b6eb7c38aa7893c2c656
C#
pohe/Repetition2018E
/Repetition2018E/Program.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Repetition2018E { class Program { static void Main(string[] args) { Collections c = new Collections(); c.TestArray(); c.TestList(); ...
0ca30cfd4e173d06eef443c770dfd83ab7a07f5d
C#
luyongqiang/CSharp-AddIn
/Syncfusion.Addin/Core/ServicesImp/DictionaryLocker.cs
2.6875
3
using Syncfusion.Addin.Core.Collection; using System.Collections.Generic; namespace Syncfusion.Addin.Core.ServicesImp { /// <summary> /// 字典 /// </summary> /// <typeparam name="TKey">KEY 键</typeparam> /// <typeparam name="TValue">Value 值</typeparam> public class DictionaryLocker<TKey, TValue> ...
6733ab6c3d48fe64363bd8936fc45e15def1e405
C#
madzikpod/projektEkwipunek
/ProjektEkwipunek.Test/TestyZaloz.cs
2.609375
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ProjektEkwipunek.Test { [TestClass] public class TestyZaloz { [TestMethod] public void TestZaloz() { // Arrange var postac = new TypowaGrazyna("Halina", 1); var helm = ne...
8f9f31118ae956db63c68c6119db651d4c455440
C#
diedknight/Test
/Tian/Priceme.Deals_mysql/Priceme.Deals/Code/RetailerCountHistoryList.cs
2.75
3
using System; using System.Collections.Generic; using System.Web; namespace PriceMe.Data { /// <summary> ///RetailerCountHistoryList 的摘要说明 /// </summary> public class RetailerCountHistoryList : List<RetailerCountHistory> { public int FCount { get; set; } public int STEP...
edbdf97e62c7f6b5d5351bf680a5e617ecab61ec
C#
SyluxImmortal/TShock-PvP101
/PvP101/Data/CharacterBackups.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using PvP101.Structure; using TShockAPI.DB; using TShockAPI; namespace PvP101.Data { class CharacterBackups { public static bool Save(int AccountID, CharacterData classData) { ...
06b4858ca378a8a798afe421e146937d923a00ef
C#
hecheff/game_sidewinder2
/Assets/Scripts/PowerMeterController.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class PowerMeterController : MonoBehaviour { public Sprite meterTexture_inactive; public Sprite meterTexture_active; public List<SpriteRenderer> powerMeterSprites = new List<SpriteRenderer>(); /...
c320b78d3cab59c50e5c12c8c6059cf9d7442111
C#
kirlan/unilib
/EconomyModelFlows/CMap.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EconomyModelFlows { public class CMap { List<CBuilding> m_cBuildings = new List<CBuilding>(); /// <summary> /// Находим строение, из которого ведут маршруты, более выгодные чем ...
2ffee9d363b5dd2cd95de912ee3a85b5ba27dfa8
C#
slime103/ChillBros
/Assets/Scripts/RagdollScript.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class RagdollScript : MonoBehaviour { public Slider mainSlider; public CameraShake cameraShake; ParticleSystem ps; [SerializeField] float MaxHealth = 100.0f; ...
9a1c8fe21b4baa047f124ee81355c879d5b8ea10
C#
Solarman1/QuadraticEquation
/QuadraticEquation/DiscriminantAboveZero.cs
3.21875
3
using System; namespace QuadraticEquation { public class DiscriminantAboveZero : EquatuinSolutionModel { public override string EquationResulter(double D, double a, double b) { double x, x2; string result; x = ((-b - Math.Sqrt(D)) / (2 * a)); x...
7ae4beba4f11cd84f5ba1fc31f090fbb312f4b2a
C#
minal444/CTCI
/CTCI/DesignPatterns/FactoryMethod/FactoryMethodDP.cs
3.71875
4
using System; using System.Collections.Generic; using System.Text; namespace CTCI.DesignPatterns.FactoryMethod { /*WHEN TO USE * 1. When a class does not know which class of objects it must create. * 2. A class specifies its sub-classes to specify which objects to create. * 3. In programmer’s lang...
68f11fc64c91cbee2ce0cef47c363df38e3c1e74
C#
YuriiTrofimenko/AspNetSignalRChat
/WebSocketDemo/Controllers/ChatController.cs
2.59375
3
using Newtonsoft.Json; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using System.Timers; using System.Web.Http; using WebSocketDemo.Models; ...
5e0363b0f3d9cb35a7afe9b4617ba7980cbdf150
C#
anshuljhawar/color-blind
/ColorBlind/Assets/Scripts/LevelColorScript.cs
3
3
using UnityEngine; using System.Collections; using System; public class LevelColorScript { private static float UPPER_LIMIT = 100; public static Color GetLevelColor(){ System.Random random = new System.Random(); float red = 100 + random.Next(155); float green = 100 + random.Next(155); float blue = 100 + ...
3e3f98ddc07d0e31e0c4af23446102ad263a1a64
C#
noobhacker/Learn
/Learn/Converters/HexToColorConverter.cs
2.859375
3
using System; using Windows.UI; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Media; namespace Learn.Converters { public class HexToColorConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { if (value != null) ...
bef2f44bc6861c3f15b99d6cc493c6142d3ee58b
C#
maxblu/ReservationSys
/ReservationSys.Api/Filters/PaginationFilter.cs
2.609375
3
namespace ReservationSys.Api.Filters { /* Class for managing pagination control and basic cuurent page and size And limiting the page size. */ public class PaginationFilter { public int PageNumber { get; set; } public int PageSize { get; set; } public PaginationFilter()...
1f2b193ccb59442dd0a7beeff0bea9098338db6f
C#
Qtrtrtrrtrt/ALIS
/Test/forms/FormChooseOntology.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Test.forms { public partial class FormChooseOntology : Form { ...
7490f8be0fdabf539cecc79da39a5143e956d539
C#
Botcoin-com/reaqtor
/Nuqleon/Museum/Nuqleon.Linq.Expressions.Serialization/Context/Heap.cs
2.8125
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT License. // See the LICENSE file in the project root for more information. // // Revision history: // // BD - December 2012 // using System; using System.Collections.Generic; using System.G...
ab62b2bf561df3d88436463b66253e0ab4d7d7cb
C#
marishkasept/oop_lab
/oop_lab2/oop_lab2/IceCream.cs
3.40625
3
using System.Collections.Generic; public class IceCream { private List<object> _ingredients = new List<object>(); public void Add(string ingredient) { this._ingredients.Add(ingredient); } public string ListIngredients() { string str = string.Empty; for (int i = 0; i...
6c953f4d39e7c659f8f5b2df5c3fb2d72c130bb7
C#
lucasmv/ProjetoPOO
/ProjetoPOO/Program.cs
2.75
3
using Lucas.ProjetoPOO.Exceptions; using Lucas.ProjetoPOO.Model; using System; namespace Lucas.ProjetoPOO.UIConsole { class Program { static void Main(string[] args) { #region [CLIENTE] var cliente = new Cliente("Lucas Magno"); cliente.Idade = 28; ...
af6fdbd7e0fb753263fe3179afe3a7dcba65e817
C#
btrofimov/dotnet_webservice_stub
/MvcAppTemplate/ApplicationServices/Impl/UserService.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using AutoMapper; using MvcApplication3.Domain; using MvcApplication3.ViewModels; using Spring.Transaction.Interceptor; namespace MvcApplication3.ApplicationServices.Impl { /// <summary> /// Application Service im...
a01ae8ee1b93cbe83860bb3caef243f6176f5514
C#
david0617/3dgame
/Assets/Scripts/PlayerHealth.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PlayerHealth : MonoBehaviour { public int maxHealth,currenthealth; public GameObject gameController; public Text healthDisplay; private string maxHealthDisplay,currentHealthDisplay; public GameObject...
d16f8e6ec14bb0a0d90e431ad40a26a3cb4fd0e7
C#
gollygeemister/AccelerationDisplacementCalc
/source/src/Commands/OutputCommand.cs
3.140625
3
using AccelerationDisplacementCalc.Models; using System; using System.Collections.Generic; using System.Text; namespace AccelerationDisplacementCalc.Commands { class OutputCommand : ICommand { private AccelerationDisplacementModel _model; public OutputCommand(AccelerationDisplacementModel mod...
c5357b69f3d565e2d5863a5e1c57acf41f3cf190
C#
accessshashank/leet-code
/LeetCode/LeetCode/Question19.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LeetCode { class Question19 { static void Main(string[] args) { //ListNode head = new ListNode(1, new ListNode(2, new ListNode(3, new ListNode(4, new ListNo...
a46ea527c18026cd6070a51612bfd530beb8b8dc
C#
iamdroppy/BindNineCore
/BindNineCore.Abstraction/Domains/IDomainCreate.cs
2.671875
3
using System; using System.Diagnostics.CodeAnalysis; using System.Threading; using System.Threading.Tasks; namespace BindNineCore.Abstraction.Domains { /// <summary> /// Exposes methods to create a domain /// </summary> public interface IDomainCreate { /// <summary> /// Creates a d...
aefac9ccd7a03adcb5cea3ce5b914089e89ff0fb
C#
ksurulo/Entity-framework-DataBasesProject
/CodeFirstLab1/BlogForm.cs
2.671875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.Entity; using System.Diagnostics; namespace CodeFirstLab1 { public partial class B...
2a57e5dbfb6d6f546c384ac39a9d36b641862f7d
C#
ksgyoung/DETrainsDeepNN
/DETrainingDeepNN/Models/LayeredFilterGroup.cs
2.546875
3
using DETrainingDeepNN.ConfigurationSettings; using DETrainingDeepNN.Calculators.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DETrainingDeepNN.Models { public class LayeredFilterGroup { private IConfiguration ...
8dc412acd95c69924c2ae4ab042d99c977ecba12
C#
Aspekt1024/ClumsyBat
/Assets/Scripts/Levels/LevelAchievementHandler.cs
2.609375
3
using ClumsyBat.DataManagement; namespace ClumsyBat.LevelManagement { public static class LevelAchievementHandler { public enum AchievementStatus { Unachieved, Achieved, NewAchievement } public static AchievementStatus[] GetLevelAchievements() { ...
d2a1379c209394b5c46ece265a3f4c27b34688f6
C#
pzaqw4/MsgBoard
/MsgBoardSystem/DAL/token.cs
2.78125
3
using databaseORM.data; using JWT; using JWT.Algorithms; using JWT.Serializers; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DAL {/// <summary> /// 用來加密解密密碼 /// </summary> public class token { /// <summary> /// ...
dfb826471f31b9ff1c061715b9162bb39f0cc0ae
C#
bentosming/Triarc
/Triarc/TriarcGraph.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading.Tasks; namespace Triarc { class TriarcGraph : ReconstructionGraph { /// <summary> /// Creates a graph representation of (x,y,z) triarc's outer boundary /// </summary> /// <param nam...
4c28f48a21cf5eb76a5bb26e97a214969a4cb982
C#
hortonal/MrKeys
/Src/ScoreControlLibrary/ScoreRenderer/Staff.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Controls; using System.Windows.Shapes; using System.Windows.Media; using System.Windows; using MusicXml; using Common.Music; using ScoreControlLibrary.Glyphs; namespace ScoreControlLibrary.ScoreRenderer { in...
d415295f3a6bac9522faee61095282018ec3a054
C#
FengSanIClover/DesignPatternStudy
/Creational/AllFactory/AbstractFactory/AbstractFactory.Main/Modules/Class/DoraemonFactory.cs
2.75
3
using AbstractFactory.Main.Modules.Interface; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AbstractFactory.Main.Modules.Class { /// <summary> /// 哆啦A夢工廠類別,繼承負責外觀的工廠介面 /// </summary> public class DoraemonFactory : IEquipme...
1229b487d087705e25237f92869d37c88ee3611e
C#
panda926/BBMessenger
/ChatClient/Alert/MessageBoxCommon.xaml.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; ...
9bc913c8ad9fb9c746d32426bc05b28fe95816c6
C#
swamp1820/FastBot
/examples/FastBot.Example.Echo/Conversations/Hello.cs
2.671875
3
using System.Collections.Generic; using System.Threading.Tasks; using FastBot.Core; using FastBot.Conversations; using FastBot.Enums; using FastBot.Messages; namespace FastBot.Example.Echo.Conversations { [Conversation(nameof(Hello), StateType.Start)] public class Hello : BaseConversation<User> { ...
18b1608e3085a43b645f280613f7029b608c1c09
C#
timothychu/secs4net
/secs4net/Core/Secs4Net/Header.cs
2.515625
3
using System; using System.Buffers.Binary; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Secs4Net { public readonly struct MessageHeader { public readonly ushort DeviceId; public readonly bool ReplyExpected; public readonly byte S; ...
539fb1c2a71344e5376d9825949d175233ac5a0a
C#
decadente/ProyectoExamen
/ProyectoAtencion/CADCitasUM/CADPermisos.cs
2.5625
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CADCitasUM { public class CADPermisos { public DataTable tienePermiso(int recurso_id, int usuario_id...
07bf68f975c87603489e2a4d0eb033f2089a787d
C#
alandoherty/rustpal
/RustTest/Net/BufferedSession.cs
3.15625
3
using System; using System.Collections.Generic; namespace RustTest.Net { public class BufferedSession { #region Fields private int size; private List<byte>[] blocks; #endregion #region Properties /// <summary> /// Gets the size. /// </su...
6a90d69733694f7b337c0d7078e6be25e72a7386
C#
vitodtagliente/StarLink
/Components/Game/UserStateExtension.cs
2.875
3
using System; using System.ComponentModel; using StarLink; namespace Game { enum UserDataType { [Description("PossessedGameObject")] PossessedGameObject, [Description("World")] World } static class UserWorldDataTypeExtension { public static string GetDescription(this UserD...
3f3652f0d1250d324d53de896fcfdf8ef848e9a7
C#
SKDon/Academy
/OldHomeWorks/CSharpCourse1/05.ConditionalStatements/09.SubsetSum/SubsetSum.cs
3.703125
4
using System; class SubsetSum { static void Main() { Console.Write("Enter first number: "); int firstNum = int.Parse(Console.ReadLine()); Console.Write("Enter second number: "); int secondNum = int.Parse(Console.ReadLine()); Console.Write("Enter third number: "); ...
4be0681a13f77832ca0b2c429022a5ab9dbdabe6
C#
nullxor/algodsdotnet
/src/AlgoCommonsDotNet/Algorithms/Sorting/SelectionSort.cs
3.859375
4
using System; namespace AlgoCommonsDotNet.Algorithms.Sorting { /* * In computer science, selection sort is a sorting algorithm, * specifically an in-place comparison sort. It has O(n2) time * complexity, making it inefficient on large lists, and generally * performs worse than the similar insertion...
c1bb583d996ac694e4f263b62605f550d16e8e42
C#
Aswanthsb/aguaviva-libs
/proarm/robot/interpolator.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace robot { class interpolator { int[] abs; int[] ini; int[] fin; int[] deltas; public delegate void moto...
5b426bfae750815d308a935576741285a536c1ef
C#
ninhnguyen375/QLVCB_CNPM
/Src/webapi.core/Domain/Entities/User.cs
2.546875
3
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq.Expressions; using System.Linq; using webapi.core.Interfaces; namespace webapi.core.Domain.Entities { public class User : IAggregateRoot { [Key] public int Id { get; set; } [R...
e3abb36438022116bb18a1775fbeeafcf1037f64
C#
Yonatan435/ServerRepos
/Exercise/Server.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Text; using System.Threading.Tasks; using System.Timers; namespace Exercise { [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession, ConcurrencyMode = ConcurrencyMode.Reentrant)] ...
d2e651ff0034fb76002dfd0221fcb6251b1234ec
C#
suteetoe/brsml
/SMLReport/_accessories/_query/_fieldConverter.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; using System.ComponentModel; namespace SMLReport { class _fieldConverter : StringConverter { public override bool GetStandardValuesSupported(ITypeDescriptorContext context) { return true; } public o...
b92b04ee4fffafe2a6d3d5a91d487eae29f8475b
C#
niko-dellic/limnal3D
/liminal3D/Assets/VolumetricAudio/Scripts/VA_PopupAttribute.cs
2.65625
3
using UnityEngine; namespace VolumetricAudio { /// <summary>This attributes allows you to create an int popup inspector element.</summary> public class VA_PopupAttribute : PropertyAttribute { public string[] Names; public VA_PopupAttribute(params string[] newNames) { Names = newNames; } } } #if UNITY...
2c590f7756d3512bc773c40219faeabadaa40dde
C#
alchermd/Gradebook
/Program.cs
3.4375
3
using System; namespace Gradebook { class Program { static void Main(string[] args) { Gradebook mathGradebook = new Gradebook("Math I"); mathGradebook.AddGrade(100); mathGradebook.AddGrade(50); mathGradebook.AddGrade(75); ...
242054384f6ac93f56388b6d5b5aa99001c3bbc6
C#
jiewly/ntl-lab01
/lab02/Calculator.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace lab02 { public class Calculator { public double number = 0.0; //properties public Calculator(double number)//constructor { this.number = number;//D...
6587cf039d0693d3fa867318d6b84152447a866f
C#
HorizenSS/dotNetProjects
/Training Workspace/Employee Layers/EntityLayer/Program.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EntityLayer { public class Program { static void Main(string[] args) { Dictionary<int, Product> Dprod = new Dictionary<int,Product>(); ...
506fb24aedd050c03aa83986dab5eac7634a627d
C#
VasilVP/Software-University-Courses
/Level 0/CSharp-2-Telerik-Academy/02.MultidimensionalArrays/05.SortArrayByCondition/SortArrayByCondition.cs
3.453125
3
using System; class SortArrayByCondition { static void Main() { Console.Write("Input strings to be sorted: "); string[] array = Console.ReadLine().Split(); Array.Sort(array, (a, b) => (a.Length).CompareTo(b.Length)); Console.WriteLine(new string('-', 20)); Console.Write...
c1d909819a6756f328afadbf33115df16c96bdb6
C#
Sciumo/parlot
/src/Parlot/Fluent/NonWhiteSpaceLiteral.cs
2.75
3
using Parlot.Compilation; using System.Linq.Expressions; namespace Parlot.Fluent { public sealed class NonWhiteSpaceLiteral : Parser<TextSpan>, ICompilable { private readonly bool _includeNewLines; public NonWhiteSpaceLiteral(bool includeNewLines = true) { _includeNewLines...
dcac2da1140d5d6c7274e4d2ac7f443b4c122a1a
C#
Stravaig-Projects/Gedcom
/src/Stravaig.FamilyTree.Standardiser/CommandLineOptions.cs
2.984375
3
using System.IO; using CommandLine; namespace Stravaig.FamilyTree.Standardiser { public class CommandLineOptions { private string _sourceFile; private string _destinationFile; [Option('s', "SourceFile", Required = true, HelpText = "The source GEDCOM file.")] public s...
117125f77a810138839ff1d4d30126c01d928ba9
C#
MarchukVyacheslav/SPP2
/Faker/DateTimeGenerator/DateTimeGenerator .cs
3.296875
3
using System; using FakerLibrary; namespace DateTimeGenerator { class DateTimeGenerator : IGenerator { public bool CanGenerate(Type type) { return type == typeof(DateTime); } public object Generate(GeneratorContext context) { int year = context....
f6aad5a6edc6f90e65a7239f51b1cd3107de80a3
C#
DooKoo/SQLGenerator
/Generator.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace SQLGenerator { class Generator { #region Months private static List<string> Months = new List<string> { "Jan", "Feb", ...
7764b51765a194c03b94b9a9d8deba1ed457bdf2
C#
CodecoolBP20162/net-technologies-melo-yetic
/YetiMelo/YetiMelo/Support Classes/Sorter.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YetiMelo { public class Sorter { public static List<string> ImgSorter(List<string> FilePaths) { List<string> ImgFilePath = new List<string>(); ...
09d2ba54caf52f55b3ae0d0d6a7e00f093449d45
C#
NicolasCapparelli/Programming_II_Assignments
/AssignmentThreeB/MainWindow.xaml.cs
3.125
3
using System; using System.Linq; using System.Windows; using System.Windows.Controls; /** * Class: CSE 1322L * Section: 07 * Term: Spring * Instructor: Kevin Markley * Name: Nicolas Capparelli * Assignment#: 3B */ namespace AssignmentThreeB { public partial class MainWindow { private read...
82d70d79018c766bde539246404dc9d910a46623
C#
VladLinkevich/Color-Puzzle
/Assets/Scripts/Logic/ColorBoxPainter.cs
2.546875
3
using System; using System.Collections.Generic; using ColorBox; using Data; using UI; namespace Logic { public class ColorBoxPainter : ILevelDataListener { private readonly UndoButton _undoButton; public event Action ChangeColor; private ColorType _currentColor = ColorType.Green; private List<Col...
2a20bdc3ad829418d7277d595d24e0398452694d
C#
pedropbazzo/intensivo-C-Sharp
/Programação Orientada a Objetos/Demos/Encapsulamento/Encapsulamento/Som.cs
3.125
3
using System; namespace Encapsulamento { public class Som { public static void EmitirBeep(int quantidade) { if (quantidade > 0 && quantidade < 10) { for (int i = 1; i <= quantidade; i++) { Console.WriteLine("Beep númer...
8b2ce87b2f6ca49c798669e82a19e568371f48e0
C#
KaloyanDragiev/Software-University
/Programming-Fundamentals/03.ConditionalStatementsAndLoopsExercises/14. Magic Letter/MagicLetter.cs
3.8125
4
namespace _14.Magic_Letter { using System; public class MagicLetter { public static void Main() { char firstLetter = char.Parse(Console.ReadLine()); char lastLetter = char.Parse(Console.ReadLine()); char controlLetter = char.Parse(Console.ReadLine()...
aa702862378872cf79dce0488b945a4966a07190
C#
JaimeAlonsoDGO/Control_Empleados_C-_Prueba
/MiBiblioteca/Utilidades.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; //Espacio de nombre para usar DataSet using System.Data.SqlClient; //Espacio de nombre para la conexion using System.Windows.Forms; //Espacio de nombre para configurar los ErrorTxtBox ...
e0f53ba2f7f43f9cba8cd4a77697b4fa71bba52b
C#
jikoriko/OpentkEngine
/OpenTkEngine/Core/Gui/ScrollPanel.cs
2.703125
3
using OpenTK; using OpenTK.Graphics; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OpenTkEngine.Core.Gui { public class ScrollPanel : Panel { protected HorizontalScrollBar _horizontalScroll; protected VerticalScrol...
06f61c30042db03c1d628bc09e2d57f1292ed351
C#
howlmoon123/FarmingTestGitHub
/Assets/Scripts/Events/EventHandler.cs
2.671875
3
using System; using System.Collections.Generic; using UnityEngine; public delegate void MovementDelegate(float inputX, float inputY, bool isWalking, bool isRunning, bool isIdle, bool isCarrying, ToolEffect toolEffect, bool isUsingToolRight, bool isUsingToolLeft, bool isUsingToolUp, bool isUsingToolDown, bool ...
b5ef5b60a71c29bc146bef73bea6317a6153cb1a
C#
ilse-macias/PageObjectModel
/PageObjectModel/Guru99POM/POM/CreateAnAccountPOM.cs
2.984375
3
using OpenQA.Selenium; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Guru99POM { public class CreateAnAccountPOM : TestBase { /*Constructor*/ public CreateAnAccountPOM(IWebDriver Driver) => ...