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
dca1498b089b6f2b84e6fe01eed0ceffb3980d70
C#
marcelltoth/ObjectCloner
/tests/ObjectCloner.Tests/DeepClone/PolymorphismTests.cs
3.03125
3
using System.Collections.Generic; using System.Linq; using Xunit; namespace ObjectCloner.Tests.DeepClone { public class PolymorphismTests { [Fact] public void DeepClonesByInterface() { TestClassTwo innerData = new TestClassTwo(42); TestClass original = new Test...
75809a3d331c9b6410d1228dfc7c5c7d20902d3a
C#
Brianspha/RUTimetable
/RUTimetable/RUTimetable/Classes/NameRemover.cs
2.90625
3
using System; namespace RUTimetable { class NameRemover { string venueLocation; public NameRemover(string venueLocation) { this.venueLocation = venueLocation; } internal string Process() { int index = 0; var temp = ""; while (venueLocation[index++] != ':') ; index++; while (venueLocat...
6e1d61722721d4f2e9a332e3cd460e49e8ab9589
C#
Deldeldeldel/Items
/Items/Controllers/ItemApiController.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Items.Models; namespace Items.Controllers { [Route("api/[controller]")] [ApiController] public cl...
3c32580140cdb4fe90565531a7a2b05459c1bb45
C#
vlad0696/oop3
/ООП_3/OOP_3/OOP_3/Serialization.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.Windows.Forms; namespace OOP_3 { public interface Serialize { void Ser...
91d4ae13132c48661ef9f755c553b567c4230751
C#
cofl/SnipeSharp
/SnipeSharp/Models/Enumerations/AvailableAction.cs
2.796875
3
using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System; using System.Runtime.Serialization; namespace SnipeSharp.Models.Enumerations { /// <summary> /// Members of this enumeration are operations that may be performed through the API. /// </summary> /// <seealso cref="IAvailableActions"/...
a4dbd8dbe86235771b95a045830e05adca5d6671
C#
MessageBOX/shriek-fx
/src/Shriek.ServiceProxy.Http/ReturnAttributes/XmlReturnAttribute.cs
2.59375
3
using Shriek.ServiceProxy.Abstractions.Attributes; using Shriek.ServiceProxy.Abstractions.Context; using Shriek.ServiceProxy.Http.Contexts; using System; using System.IO; using System.Threading.Tasks; using System.Xml.Serialization; namespace Shriek.ServiceProxy.Http.ReturnAttributes { /// <summary> /// 表示将回复...
d36f6a9b72c507749ecc7237bf527a31c245b249
C#
andreip0pa/passCracker
/PasswordCrackerServer/PasswordCrackerServer/Program.cs
3.28125
3
using System; using System.Net.Sockets; using System.Net; using System.IO; using System.Collections.Generic; using System.Threading.Tasks; namespace PasswordCrackerServer { class Program { static void Main(string[] args) { List<Chunk> chunkList = new List<Chunk>(); Con...
1d2050d8d35f7347910332adcbb91effc6579586
C#
PetarHr/e-Doc
/Services/Attributes/EGN.cs
2.796875
3
using System; using System.ComponentModel.DataAnnotations; namespace eDoc.Services.Attributes { [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)] public class EGN : ValidationAttribute { public EGN() { this.ErrorMessage = "Моля, въведете валидно Е...
5497c48fa626faf592f3508c853feed72edd56fd
C#
rmzone/Rmzone.Sdl2
/src/Rmzone.Sdl2/DrawingExtensions.cs
2.8125
3
using Rmzone.Sdl2.Internal; namespace Rmzone.Sdl2; public static class DrawingExtensions { public static void DrawPixel(this Renderer renderer, Point pt) { Sdl2Native.SDL_RenderDrawPoint(renderer.Handle, pt.X, pt.Y); } public static void DrawLine(this Renderer renderer, Point pt1, Point pt2) ...
50f4e75c5d9fb3141ad5da662fbeca8b22f29d4e
C#
fragmental/07-Glitch-Garden
/Assets/Scripts/Shooter.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Shooter : MonoBehaviour { public GameObject projectile, gun; private GameObject projectileParent; private Animator animator; private Spawner myLaneSpawner; private void Start() { animator = Get...
44c7e75452ae631883940cc109ee3620f2305411
C#
sonicpro/SmallCSTests
/ReadOnlyCollection/ReadOnlyCollection.linq
2.890625
3
<Query Kind="Statements"> <Namespace>System.Collections.ObjectModel</Namespace> </Query> ReadOnlyCollection<string> dinos = new ReadOnlyCollection<string>(new[] { "Veloc", "Trex" }); string[] array = new string[dinos.Count + 2]; dinos.CopyTo(array, 1); Console.WriteLine(array.Length); foreach(var d in array) { C...
ce30577d8809a476d07513aff9515643ee9cce0c
C#
skokwkod/SzkolenieDzienPierwszy
/lab31 - MetodyRozszerzajace(Cwiczenie)/ExtensionDateTime.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace lab31___MetodyRozszerzajace_Cwiczenie_ { public static class ExtensionDateTime { public static int DaysOnEarth (this DateTime birthDayDate) { return Convert...
a698def933bc8ae1dcf837f853826c9f3755b7ff
C#
fat84/Fingerprint
/Repository/VisitorRepository.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Finger.Entity; using System.Data.SQLite; namespace Finger.Repository { public class VisitorRepository : BaseRepository { public int Insert(Visitor visitor) { string sql = "insert into visito...
dd94177ec3e26938478964da474151139e400653
C#
luketudor/PayslipGeneratorKata
/PayslipGenerator/DefaultTaxTable.cs
3.234375
3
namespace PayslipGenerator { public class DefaultTaxTable : ITaxTable { public double AnnualIncomeTax(double annualSalary) { var tax = 0.0; if (annualSalary <= 18200) { tax = 0; } else if (annualSalary <= 37000) ...
e706c5bd415faa2b727e6dcde89eebf5e94ef4c6
C#
capsizedmoose/Basic-Garage-System
/BasicGarageSystem/GarageController.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; using System.Xml; using System.IO; namespace BasicGarageSystem { // The different types of vehicles that can be used public enum v_Vehicle { Bus, Car, ...
4fa5e664d2512338e41335ebc6872ad61018af82
C#
shendongnian/download4
/code1/180731-39908609-128747330-4.cs
3.46875
3
public class MySingleton { private static object myLock = new object(); private static volatile MySingleton mySingleton = null; private MySingleton() { } public static MySingleton GetInstance() { if (mySingleton == null) { // 1st check lo...
f4f318a47a4754f153f545d117cf162b8384f653
C#
LaughingFalcon/DesighPatternLibrary
/Event/Publisher.cs
3.078125
3
using System; using System.Collections.Generic; using System.Text; namespace DesignPattern.Event { public class Publisher { int info2; int info1; IEventAggregator aggregator; public Publisher(IEventAggregator EventAggregator) { aggregator = EventAggregator; ...
1db3aafc68c2b4debdba7fff91d64c340e9cb7c3
C#
vitoshacademy/04.ConsoleEntryAndExit
/08. IntegerN.cs
4.09375
4
//Write a program that reads an integer number n from the console //and prints all the numbers in the interval [1..n], each on a single line. using System; class IntegerN { static void Main(string[] args) { uint n; int i ; Console.Write("Enter N:"); while (!uint.TryParse(Cons...
e014e8324d795c87aa15c2560862136dd8011b97
C#
JustMeGaaRa/patterns-and-practices
/src/Silent.Practices.MetadataProvider/Context/TypeContextSet.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Silent.Practices.MetadataProvider.Context { public class TypeContextSet : IEnumerable<TypeContext> { private readonly Dictionary<string, TypeContext> _typesContexts = new Dictionary<string...
5c8c6014e84b98ccf182289dd1a0df2192761ffb
C#
Kov-Vadim/Project20
/Project6/Task-1/Program.cs
3.328125
3
using System; namespace Task_1 { class Program { //Заполнить массив из десяти элементов значениями, вводимыми с клавиатуры в ходе выполнения программы. static void Main(string[] args) { int b = 10; int[] a = new int[b]; for (int i = 0; i < b; i++) ...
5783b69b438755ea35d694a0ce055c470456ccd3
C#
skarpdev/dotnetcore-hubspot-client
/src/Core/Requests/RequestDataConverter.cs
2.796875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Dynamic; using System.Linq; using System.Reflection; using Microsoft.Extensions.Logging; using Skarp.HubSpotClient.Core.Interfaces; namespace Skarp.HubSpotClient.Core.Requests { public class RequestDataConverter { ...
091ba40e6b8d3b147ab3e15c9ec7521c1a6b18bd
C#
mattkgross/WorkoutLogPro
/Extensions/UserInfo.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System.Data.Entity; using WorkoutLogPro.Areas.Teams.Models; namespace WorkoutLogPro.Extensions { public class ...
2dbf1a2517982d34c98f73b1d9b4b3913972acd8
C#
Geralastel/CurrentlyInked
/CurrentlyInked/MainWindow.xaml.cs
2.953125
3
using System; using System.Collections.Generic; using System.IO; 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...
950dd520f15f079438b118a8136a8d82888d3070
C#
mricab/T6-TCP_Multithtreaded_v2
/Client/client/KeepAlive/KeepAlive.cs
3.1875
3
using System; using System.IO; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; namespace client { public class KeepAlive : IKeepAlive { // Properties private static bool Keep; private TcpClient Client; private Thread KeeperThread; ...
91e818ac9169c71f2eddf652fa77fb4ea30361b2
C#
marthinch/Reactive-Programming-Performance
/ReactiveProgramming/Program.cs
3.3125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reactive.Concurrency; using System.Reactive.Linq; using System.Threading.Tasks; namespace ReactiveProgramming { class Program { static Stopwatch stopwatch = new Stopwatch(); static int gen...
a8819e53d0bbc2c73df3ba690aefb63ac4bd6018
C#
cgcq007/Inventory
/InventoryTest/User/Detail.cs
2.546875
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 InventoryTest { public partial class Detail : Form { string sn; string...
2c072d7c3f2ef930c60cf1cb242c61453f8f212d
C#
Minddarkness/Organization
/11-12_HW2/HW11_2/Program.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace HW11_2 { class Program { static void Main(string[] args) { Organization organization = new Organization("Org", new Manager("Mick...
4b466389948d8ba1b52a682ba3688b053643f0cc
C#
simonauner/knightbus
/knightbus/src/KnightBus.Core/JsonMessageSerializer.cs
2.828125
3
using System.Reflection; using KnightBus.Messages; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace KnightBus.Core { /// <summary> /// Default serializer /// </summary> public class JsonMessageSerializer : IMessageSerializer { public JsonSerializerSettings Settings { g...
534b18edb8197e7af860c86d619649f7b8cfdf6a
C#
VladislavBI/BlackJack---NP
/GameTable/NamespaceGame/GamesProcess.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using GameTable.NamespacePlayers; using GameTable.CardDeck; using System.Windows; namespace GameTable.NamespaceGame { public abstract class BaseGame { /// <summary> /// Действия...
8ec8e627e3dc64b081c0c00ad03862dc1053c1c1
C#
Miwss/MiwssTrash
/Преобразование типов/Преобразование типов/Program.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Преобразование_типов { class Program { static int x; static double y = 10.09D; static double z = 2.98D; static void Main(string[] args) { ...
161ebe60d3671249dbb504f4aa5bcdfcfcc2067d
C#
FlorianGrimm/OfaSchlupfer
/OfaSchlupfer.MSSQLReflection/Model/ModelSqlObjectWithColumns.cs
2.625
3
namespace OfaSchlupfer.MSSQLReflection.Model { using System; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using OfaSchlupfer.Freezable; /// <summary> /// anything that owns columns /// </summary> [JsonObject(MemberSerialization = MemberSerialization...
dbf1a611ce4a76eda7f06f950272c96ca01eab05
C#
platan-csoft/Platan
/frmInputManuallyTime.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.Windows.Forms; namespace sprut { public partial class frmInputManuallyTime : Form { public string InputManualPlanTime; publi...
aed64b9a5ec74f5c6333ed3f0889b4405bdd9788
C#
yCatDev/EndlessMaze
/EndlessMazeGame/Maze/MazeCell.cs
2.734375
3
using AbstractEngine.Core.Base; namespace EndlessMazeGame.Maze { public struct MazeCell { public Point Position; public bool IsEmpty { get; set; } public bool IsVisited { get; set; } public MazeCell(int x, int y, bool isVisited = false, bool isCell = true) { ...
e98c1b00134450fe5e0e361d00792431d18f5712
C#
JavaBeginner66/Bachelor-project
/Assets/Scripts/GameMasterScript.cs
2.765625
3
using UnityEngine; using UnityEngine.SceneManagement; using TMPro; /* * Script handles status of game and different UI functions */ public class GameMasterScript : MonoBehaviour { public static GameMasterScript gameMasterScript; // Static reference for easy access public static bool gameRunning; ...
d3a82ac5060b4bd5a7716febc26d5371c9559364
C#
kuzmanovb/SoftUni
/4. C# OOP/OOP Exams/Exam - 18 Apr 2019 (Full)/1.Structure and Business Logic - 150%/PlayersAndMonsters/Core/Factories/PlayerFactory.cs
2.625
3
using PlayersAndMonsters.Core.Factories.Contracts; using PlayersAndMonsters.Models.Players; using PlayersAndMonsters.Models.Players.Contracts; using PlayersAndMonsters.Repositories; using System; using System.Collections.Generic; using System.Text; namespace PlayersAndMonsters.Core.Factories { public class Player...
5a30b92ae0752c2d8f5a6168e2846a3d2dbde1c0
C#
NinetailLabs/VaraniumSharp.Monolith
/VaraniumSharp.Monolith/Extensions/HostConfiguratorExtensions.cs
2.828125
3
using System.Collections.Generic; using System.Linq; using Topshelf.HostConfigurators; using VaraniumSharp.Monolith.Enumerations; namespace VaraniumSharp.Monolith.Extensions { /// <summary> /// Extension methods for <see cref="HostConfigurator"/> /// </summary> public static class HostConfiguratorExte...
d4bf13115d12f7524f3ceae6f352668bbf2e457b
C#
robbieg9876/My-Code
/source/repos/Assessment1/CanvassTests/UnitTest1.cs
3.1875
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Drawing; using Assessment1; using System; using System.Linq; using Microsoft.VisualBasic; namespace CanvassTests { [TestClass] public class UnitTest1 { //Initialises bitmap with set size Bitmap OutputBitMap = new Bitmap(871, ...
4a03466a7ec8a0c1c1de2c3fc421903b3f34e437
C#
TanimSarwar/University-Course-and-Result-Management-System
/UniversityCourseandresultManagementSystem/Manager/ClassRoomManager.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using UniversityCourseandresultManagementSystem.Gateway; using UniversityCourseandresultManagementSystem.Models; namespace UniversityCourseandresultManagementSystem.Manager { public class ClassRoomManager { ClassRoomG...
1e5b2c20ccdc390d2fbb20f0d2e6a3597dbdf4c1
C#
praveenshin/Angular-JS
/Final-master/AngularJSWebApi/Models/BusRepository.cs
3.03125
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; namespace AngularJSWebApi.Models { public class BusRepository:IBusRepository { private DatabaseEntity7 db = new DatabaseEntity7(); public IEnumerable<Bus> GetAll() { ...
4d99a8a3f999e80751c83fc6174811a24a54cc76
C#
zmalic/unity-scene-loader
/Assets/SLoader/Scripts/TipLoader.cs
2.765625
3
using System.Collections; using System.Text; using UnityEngine; using UnityEngine.Networking; namespace SLoader { public class TipLoader : MonoBehaviour { [Tooltip("Load tip from web")] public bool loadFromWeb = false; /// <summary> /// For example, we can download tips from w...
8872c023af51bae636baa80afdd09243eb84d6a6
C#
Nedvid/BlaBla
/BlaBla_Server/Connection.cs
3.21875
3
using System; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; using System.IO; using System.Collections.Generic; namespace BlaBla_Server { public class Connection { private TcpListener _server; private Boolean _isRunning; private IPAddress ipAd =...
2d84a627f28740aadd35470ee9d0e231a6449074
C#
shendongnian/download4
/code8/1451030-39605230-127543284-2.cs
3.1875
3
var input = @"[952,M] [782,M] [782] {2[373,M]} [1470] [352] [235] [234] {3[610]}{3[380]} [128] [127]"; var pattern = @"((:?\{(\d+)(.*?)\})|(:?\[.*?\]))"; MatchCollection matches = Regex.Matches(input, pattern); var ls = new List<string>(); foreach(Match match in matches) ...
b3f3aaef4956163ca0b3f2b7ab61e98a8ee251b2
C#
Jayx239/BrowseSharp
/BrowseSharp/Browsers/BrowserTyped.cs
2.515625
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using BrowseSharp.Common.History; using BrowseSharp.Browsers.Core; using BrowseSharp.Common; namespace BrowseSharp.Browsers { /// <summary> /// Headless browser implementation that creates documents for each web request. /// </s...
33ec03828cbf73655e1854b899099b3a69c4e222
C#
serminhas/EntitySorgular
/Desktop/EntitySorgular/EntitySorgular/Program.cs
2.96875
3
using System; using EntitySorgular.Data; using EntitySorgular.Models; using System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore; namespace EntitySorgular { class Program { public static void WriteToConsole(IEnumerable<object> items) { string header="...
94341f27f9cc1d6429168cb2fd2a26c10ed036c6
C#
AlexKaschuk/learning-C-
/Exam/Schedule.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Exam { [Serializable] public class Schedule { public SortedList<DateTime, CinemaHall> Session = new SortedList<DateTime, CinemaHall>(); ...
3f6edfa45a6bf3b47b1910fb8d5e57964356423b
C#
Kofili/pjTecNo
/DataConnection.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; using System.Data.Sql; namespace TPvorbereitung { class DataConnection { private string Db { get { string s ...
cffae86e08916f1e64cc06862c233b0a18abfa8f
C#
elitsaleontieva/CSharp-OOP-Basics
/Interfaces and Abstraction - Exercise/05. Border Control/StartUp.cs
3.203125
3
using System; using System.Linq; using System.Collections.Generic; namespace BorderControl { public class Program { static void Main(string[] args) { var input = Console.ReadLine(); var inputList = new List<string>(); inputList....
b41c21462ced2e1c7b2f1d2e2b690f3a33b74eb3
C#
sissoux/LEDCloudConfigurator
/LEDCloudConfigurator/WAVParser.cs
2.734375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LEDCloudConfigurator { /// [Bloc de déclaration d'un fichier au format WAVE] ///0 FileTypeBlocID(4 octets) : Constante «RIFF» (0x52,0x49,0x46,0x46) ///4 ...
253c4ded416d06d5cfedc0d8e876d98a5f768725
C#
cake-contrib/Cake.Bower
/src/Cake.Bower/BowerRunnerSettingsExtensions.cs
2.796875
3
using Cake.Core.IO; namespace Cake.Bower { /// <summary> /// Bower runner settings extensions /// </summary> public static class BowerRunnerSettingsExtensions { /// <summary> /// Set the working directory for the bower runner settings /// </summary> /// <typeparam n...
c76fb2b6649beb4e5103b383c8d1b8d6f5cc3270
C#
FlorianRossignol/Formative27Janvier
/Assets/Scripts/Monster/Snake.cs
2.6875
3
using System.Collections; using System; using System.Collections.Generic; using UnityEngine; public class Snake : MonoBehaviour { [SerializeField] Animator snakeanim_; private State currentstate_; private enum State { NONE, IDLE } void Start() { currentstate_ =...
d5a73d0693411e705599ae7e311c640b2ebfab11
C#
Vimerum/pbcj-forca
/Assets/_Scripts/Words/WordManager.cs
3.171875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class WordManager : MonoBehaviour { // Singleton public static WordManager instance; #region Public Variables [Header("References")] // Prefab para as letras public GameObject letterPrefab; ...
ad2c38a3a7e3a735e51bc9113ee6f2359d432811
C#
vikingeff/monster_panic
/assets/script/InstantiateScript.cs
2.671875
3
using UnityEngine; using System.Collections; public class InstantiateScript : MonoBehaviour { public GameObject monster; public int count = 0; // Use this for initialization void Start () { } // Update is called once per frame void Update () { if (Input.GetMouseButton(0) && count == 0) { Ray ray = C...
43e22400e14d941ad54272b6109544c657d95c85
C#
qk-li/StreamingClientLibrary
/Twitch/Twitch.Base/Models/Clients/Chat/ChatUserStatePacketModel.cs
2.9375
3
using System.Collections.Generic; namespace Twitch.Base.Models.Clients.Chat { /// <summary> /// Information about a chat user state packet. /// </summary> public class ChatUserStatePacketModel : ChatUserPacketModelBase { /// <summary> /// The ID of the command for a chat user state...
8226456bb2625aff978fcbc040cba9576adc71dd
C#
deton/bjd5
/BJD/option/Dat.cs
2.609375
3
using System; using System.Text; using Bjd.ctrl; using Bjd.util; namespace Bjd.option{ public class Dat : ListBase<OneDat>{ private readonly bool[] _isSecretList; private readonly int _colMax; public Dat(CtrlType[] ctrlTypeList){ //カラム数の初期化 _colMax = ctrlTypeList....
262a5f155c9f7fff380ae5f3181ca4f9b3351ecc
C#
ilya-zhidkov/compscie
/Source/CompScie.Core/CountingSort.cs
3.328125
3
namespace CompScie.Core { public class CountingSort { public void Sort(int[] array, int max, int min) { var frequencies = new int[max - min + 1]; var length = array.Length; var sorted = new int[length]; for (var i = 0; i < length; i++) ...
2e80aed2130229eb224afb152e63aa2e1929155b
C#
Lanxh/Atlantis_Defense
/Assets/Scripts/Turret_HealthBar.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI;// per far funzionare la UI (la healthBar appunto) public class Turret_HealthBar : MonoBehaviour { [Header("Variabili da riempire")] public GameObject rovine; //dichiara il prefab da usare per le rovine (da ...
0642e279f9a9851749040a568a6feaeab5feedea
C#
aguerot/mirlite
/libmirror/OutputEvent.cs
2.546875
3
using System; using Mirror.UsbLibrary; namespace Mirror { public class OutputEvent : OutputReport { public OutputEvent(EventType eventType, ushort messageId, HIDDevice mirrorDevice, byte[] data) : base(mirrorDevice) { EventType = eventType; MessageId = messageId; ...
82eb1fd2d1b695c93dd72fe2444b61c9adc6a999
C#
shendongnian/download4
/first_version_download2/174807-13128206-31134080-2.cs
3.484375
3
class Program { static void Main(string[] args) { // Create a main window GUI Form1 form1 = new Form1(); // Create a thread to listen concurrently to the GUI thread Thread listenerThread = new Thread(new ParameterizedThreadStart(Listener)); listenerThread.IsBackgroun...
7210aedbe2870b82e5ec4bd659de0f22ed1625c5
C#
HypahCode/Blueprint
/Blueprint/RenderEngine/PrimitiveRenderer.cs
2.78125
3
using System.Collections.Generic; using System.Drawing; using Blueprint.VectorImagess; using BlueprintAddon; using TrigonometryLib.Primitives; namespace Blueprint.RenderEngine { internal class PrimitiveRenderer : Renderer { internal LayeredVectorImage layeredImage = null; private bool isActive...
b3e99167b1f177343d6e4d134466687278d40bb8
C#
eunabae/A3
/SES_Add-On/WindowsFormsApp1/ControlMap.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SES_Add_ON { class ControlMap { MapForm mapform; ControlPath controlpath = new ControlPath(); static private char[,] ControlMap_map; static private int[] ControlMap_mapsize; ...
a9f32f059cc7d0d28151a2402c73ee3bc9843f73
C#
sandromirr/num-to-word
/num-to-word/UnitTest.cs
3.203125
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace num_to_word { [TestClass] public class UnitTest { NumberConverter con; [TestMethod] public void ZeroTest() { con = new NumberConverter(0); Assert.AreEqual("ნული", con.toWord...
04bea9ec73812d9fb48640fab4c449bd3a0c0b57
C#
Vasilev07/Softuni-2016-2017
/Fundamentals of Computer Programming - book/PrimitiveTypesAndVariables/04.VarInHexFormat/VarInHexFormat.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _04.VarInHexFormat { class VarInHexFormat { static void Main(string[] args) { int a = 256; string aInHex = a.ToString("X"); Console....
076e0e8c72f4397b304cf8fc51069d3bbf871aa9
C#
felipelino/kafka-flow
/src/KafkaFlow/Consumers/OffsetsWatermark.cs
2.53125
3
namespace KafkaFlow.Consumers { using System; using Confluent.Kafka; internal readonly struct OffsetsWatermark : IOffsetsWatermark, IEquatable<OffsetsWatermark> { private readonly WatermarkOffsets watermark; public OffsetsWatermark(WatermarkOffsets watermark) { this...
6bcfc1180439455765e89e6ae35f4d3843bd6b27
C#
software-engineering-network/design-pattern-practice
/TinyTypes.Gerhard.ProductService/Test/PriceTest.cs
2.96875
3
using System; using System.Collections.Generic; using System.Text; using Xunit; namespace TinyTypes.Gerhard.ProductService.Test { public class PriceTest { [Fact] public void WhenPrice_IsValid_ItContainsValidDecimalValue() { decimal validPrice = 9.99m; ...
92e370a435833f6762bd2f03602f36f617af37b1
C#
sonawanenikita24/DeviceApplicationXamarin
/DeviceApplication/DeviceApplication/View/PhoneDailing.xaml.cs
2.8125
3
//-------------------------------------------------------------------------------------------------------------------- // <copyright file="MainPage.cs" company="BridgeLabz"> // copyright @2019 // </copyright> // <creater name="Nikita Sonawane"/> //----------------------------------------------------------------------...
21b7c21b6d04991eb55621f8d058f9a03c1aaf22
C#
mridul2101/CabManager
/CabManagement/CabManagementPortal/Services/BookingService/BookingStrategy/MostIdleBookingStrategy.cs
2.65625
3
using CabManagementPortal.Services.InsightsService; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CabManagementPortal.Services.BookingService.BookingStrategy { internal abstract class BaseBookingStrategy : IBookingStrategy { public abstract Strategy Stra...
4a82f53f974c62a568fbb583c340bbaf6f9c307a
C#
JamieSandell/CSharp
/Program Restarter/Program Restarter/Form1.cs
2.78125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Windows.Forms; namespace Program_Restarter { public partial class FormMain : Form { #regio...
2384a17b6a8f9203c8b357a26cfb83265491e142
C#
wiltaylor/VMLab-CSharp-Legacy
/VMLab/Model/IIdempotentAction.cs
2.546875
3
using System.CodeDom; using System.Collections; using System.Linq; using System.Management.Automation; namespace VMLab.Model { public enum IdempotentActionResult { Ok, Failed, RebootRequired, NotConfigured } public interface IIdempotentAction { string Name...
f99522259db99f2180227a21666f312b046c3103
C#
shendongnian/download4
/code10/1755203-52652279-183103675-6.cs
2.59375
3
public override void OnException(HttpActionExecutedContext context) { // Any custom AD API Exception thrown will be serialized into our custom response // Any other exception will be handled by the Microsoft framework if (context.Exception is OurAdApiException contextException) { ...
321051a5415719825d8a933baf4cc1c737b45344
C#
Softuni-Alex/Softuni
/DB-Advanced/09.Json-Exercises/Json/Json/Models/User.cs
2.53125
3
namespace Json.Models { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; public class User { public User() { this.Sold = new List<Product>(); this.Bought = new List<Product>(); this.Friends = new List<User>(); } ...
b247df44231cbd5c18ece7e02cc77782b6f91c76
C#
shendongnian/download4
/code5/798233-19559595-147178847-2.cs
3.34375
3
public string Represent(string s) { int i = 0; if (int.TryParse(s, out i)) { return(i.ToString().PadLeft(6,'0')); } }
b3d187973669064eec49d1557d335d1cdc9d81a8
C#
kalmar98/TECHNOLOGY-FUNDAMENTALS
/Programming Fundamentals/C# Data Types and Variables - Exercises/19. Thea The Photographer.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.Numerics; namespace training { class Program { static void Main() { //Bring Me The Horizon - Empire ul...
2383fc2f94c3b54e6ac5ad39c0a600f77e086d6d
C#
PlumpMath/RayXu.HeadFirst.DesignPattern
/RayXu.HeadFirst.DesignPattern.Iterator/Concrete/Menu/PancakeHouseMenuInfo.cs
2.84375
3
/************************************************** * Author: Ray Xu * CLR Version: 4.0.30319.42000 * Create Time: 2016/5/12 7:06:46 * Description: * * Update History: * 2016/5/12 7:06:46:Create. * **************************************************/ using RayXu.HeadFirst.DesignPattern.Iterator.Abstract; us...
19a95d765866d6373a78c747825129b43b5ff98d
C#
PikataGitHub/CSharp-OOP
/06. Common Type System/Problem04.PersonClass/Person.cs
4.1875
4
namespace Problem04.PersonClass { using System; public class Person { //Fields private string name; private int? age; //Constructors public Person(string inputName, int? inputAge) { this.Name = inputName; this.Age = inputAge; ...
1c8647fc4278a26f9cdaaefba97ccf54b94c0bb1
C#
BartoszKonkol/projects
/JAO/1.1/setup/JAO.cs
2.75
3
using System; using System.IO; using System.Net; using System.Reflection; using System.Windows.Forms; using System.Collections.Generic; using System.Runtime.InteropServices; namespace JAO_Setup { static class JAO { public const string Title = "Java Application Open", Version = "1.1.1", ISA = "x64"; ...
fb6295924ed7e000339049322036ed7b47d8abe4
C#
shendongnian/download4
/first_version_download2/200230-15366882-37335229-2.cs
3.203125
3
var builder = new StringBuilder(); foreach (var type in typeof(MyClass).GetNestedTypes(BindingFlags.Public | BindingFlags.NonPublic)) { if (!type.IsAbstract) { continue; } builder.AppendLine(type.Name); foreach (var field in type.GetFields(BindingFlags.Public | Binding...
b8656f2a67faef8c8ceed3c45c164d500724c3f9
C#
Hegom/Employees
/Employee.Test/EmployeeTest.cs
2.921875
3
using Employees.Core.Dto; using Employees.Core.Enum; using Employees.Core.Intefaces; using Employees.Infrastructure.Services; using Xunit; namespace Employee.Test { public class EmployeeTest { IEmployeeFactory EmployeeFactory; public EmployeeTest() { EmployeeFactory = new E...
49ca71b459942d98dd51be2a5fcb109ca5d4d864
C#
shendongnian/download4
/first_version_download2/423055-37166825-117837683-2.cs
3.046875
3
public static void ParseMsg(string msg) { string[] words = Regex.Split(msg, @"\s+"); foreach (string word in words) { switch (word) { case "tween": // Do something break; case "stop": ...
2e5ea8ab513003876e3f4481154274d46b6f6e75
C#
bubdm/NatashaPad
/src/NatashaPad.Mvvm/DefaultViewContainer.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; namespace NatashaPad.Mvvm { internal class DefaultViewContainer : IViewTypeInfoLocator { private readonly Dictionary<Type, Type> vmToviewMap; private readonly Dictionary<Type, ViewInfo> viewToInfoMap; public DefaultVie...
96a5dba403a532238d0acc76ad956b3d4392f273
C#
serge-sedelnikov/xstate.net
/XStateNet.Tests/StateServicesDelayedTransitionTests.cs
2.671875
3
using System; using Xunit; using XStateNet; using System.Threading.Tasks; using System.Threading; using System.Diagnostics; namespace NetState.Tests { public class StateServicesDelayedTransitionTests { [Fact] public async Task DelayedTransitionRunSuccessfully() { var stopwat...
5df2189c90e37e96f94e037125ab10dd54b2447d
C#
Liuyonggang0731/XFramework
/XFramework/Assets/XFramework/Core/Runtime/Base/FSM/Fsm.cs
2.890625
3
using System; using System.Collections.Generic; namespace XFramework.Fsm { /// <summary> /// 状态机 /// </summary> /// <typeparam name="TState">子类状态机对应的状态基类</typeparam> public class Fsm<TState> : IFsm where TState : FsmState { private bool m_IsActive; private TState m_CurrentState...
0cdf2e21e6deabc66ea3076ba262aac894e72f61
C#
rsalit/CSBC
/Lojack/Lojack/Lojack.Core/Models/Mapping/MatchedLojackHitUpdateMap.cs
2.53125
3
using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; namespace Lojack.Models.Mapping { public class MatchedLojackHitUpdateMap : EntityTypeConfiguration<MatchedLojackHitUpdate> { public MatchedLojackHitUpdateMap() { // Primary Key ...
89766baad823c95d080ec0bd580aa5b80979ee5b
C#
SWDHouseProject/HouseChoseImprovement
/HouseSupportSystem/HouseSupportSystem/MainWindow.xaml.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
a8cf06980e016168b635ccb2e9037364fc1b2f4b
C#
herara-ofnir3/ProjectEuler
/ProjectEuler/ProjectEuler.Run/Problems.Part3/Problem56.cs
3.46875
3
using ProjectEuler.Core; using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace ProjectEuler.Run.Problems.Part3 { /// <summary> /// Problem 56 「もっとべき乗の数字和」 /// Googol (10^100)は非常に大きな数である: 1の後に0が100個続く. 100^100は想像を絶する. 1の後...
44c4a6974aed659564876cf1d19c1c89a5fcf2ad
C#
shendongnian/download4
/code11/1975656-60280144-215240293-2.cs
3.46875
3
public static int GetWeeksInYear(int year) { if (year < DateTime.MinValue.Year || year > DateTime.MaxValue.Year) throw new ArgumentOutOfRangeException(nameof(year)); var dw = new DateTime(year, 1, 1).DayOfWeek; return (dw == DayOfWeek.Thursday) || (dw == DayOfWeek.Wednesday) ...
88e2cd5edf8b95d77f7ba59fe6e5b60cec62b9cd
C#
suetarazi/DataStructuresAndAlgorithms
/PairWithTargetSum/PairWithTargetSum/Program.cs
4.09375
4
using System; using System.Collections.Generic; namespace PairWithTargetSum { public class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); } /// <summary> /// Standard two pointer approach /// </summary> ...
3d4c761ddf8ad50b8ecf889514ba0b45cb13ae7c
C#
kadiraciktan/YoreselSozluk
/YoreselSozluk.DataAccess/Operations/CityOperations/Commands/DeleteCity/DeleteCityCommand.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using YoreselSozluk.DataAccess.Abstract; namespace YoreselSozluk.DataAccess.Operations.CityOperations.Commands.DeleteCity { public class DeleteCityCommand { private readonly IContext _co...
6fc76247134483f38bdd074c18a6bbc959641fe2
C#
mike3293/OOTP_2s
/Паттерны/Lab_3/Lab_3/Memento.cs
3.609375
4
namespace Lab_3 { public class PersonState { public string name { get; } public int age { get; } public PersonState(string Name, int Age) { name = Name; age = Age; } } public class Person { public string _name = "Jokar"; ...
407d05556037b84dbd3065123ebc0721d5be3f95
C#
aukgit/Object-Oriented-Programming-with-C-Sharp
/PreviousVideo Coding/OOP1/OOP1/PassingClassParameter/PassingClassParam.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OOP1.Polymorphism; /* * Written by Alim Ul Karim * mailto: alim@developers-organism.com * developers-organism.com * find us on fb.com/developersOrganism * */ namespace OOP1.PassingClassParamet...
a4e7ede52cf7546c0b8c2201ba455143f073047a
C#
KAL-ATM-Software/KAL_XFS4IoT_SP-Dev
/Framework/ServiceClasses/CommonServiceProvider/VendorApplicationCapabilities.cs
2.59375
3
/***********************************************************************************************\ * (C) KAL ATM Software GmbH, 2022 * KAL ATM Software GmbH licenses this file to you under the MIT license. * See the LICENSE file in the project root for more information. * \******************************************...
f96180dae42adb7cd24702ee4afaa43d9a64625c
C#
klinki/bookmarks-manager.net
/Engine/Serializers/Json/JsonSerializer.cs
2.703125
3
using Engine.Serializers.Json; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Engine.Serializers { public class JsonSerializer { public string Serialize(BookmarkNode ...
36a99367d8b4a2ac7f11ec473ff0145cad318ae1
C#
HTomasH/GestorColecciones
/GestorColecciones/frmEdicion.cs
2.65625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace GestorColecciones { public partial class frmEdicion : Form { //---------- Ind...
b95b5e5ce86478e305966c0da861997104fdd010
C#
vhuzii/Airport-ASP.NET-Core-Web-Api
/Presentation Layer/Controllers/CrewsController.cs
2.5625
3
using System.Collections.Generic; using System.Net; using System.Net.Http; using AutoMapper; using Business_Layer.Services; using Data_Access_Layer.Interfaces; using Data_Access_Layer.Models; using Microsoft.AspNetCore.Mvc; using System.ComponentModel.DataAnnotations; using Shared.DTos; using Business_Layer.DTOValidat...
922b98ea26f9fb2024547e2c82d40bd8f6b2e354
C#
Rox-Lvmaohua/TIRPClo
/TIRPClo/TIRPClo/BETiep.cs
2.796875
3
using System; using System.Collections.Generic; using System.Text; namespace TIRPClo { //This class represents a backward extension tiep from some i-th before/co period of time public class BETiep { //Records and instances for each public Dictionary<int, List<STI>> indexes; public ...
c0b6a163b5d17e432363312f64e4aa1e6769c73a
C#
PacktPublishing/Mastering-Windows-Presentation-Foundation
/CompanyName.ApplicationName.DataModels/ThinProduct.cs
3.40625
3
using System; namespace CompanyName.ApplicationName.DataModels { /// <summary> /// Represents the basic details of a product in the application for use in large collections. /// </summary> public class ThinProduct : BaseDataModel { private Guid id = Guid.Empty; private string name ...
571248b83a5bfc2b572afa8abc9aeca1af0a1adf
C#
Sergio0694/ComputeSharp
/samples/ComputeSharp.SwapChain.Core.Shared/Converters/RenderingPauseConverter.cs
2.59375
3
#if WINDOWS_UWP using Windows.UI.Xaml.Controls; #else using Microsoft.UI.Xaml.Controls; #endif namespace ComputeSharp.SwapChain.Core.Converters; /// <summary> /// A class with some static converters for rendering state. /// </summary> public static class RenderingPauseConverter { /// <summary> /// Gets a symb...
b78e9a7884bd0c9d6cbf483a65b242b851320781
C#
sogoojo/JsonParser
/source/Liquid.Json/TypeSerializers/JsonArraySerializer.cs
2.765625
3
using System; using System.Collections.Generic; using System.Diagnostics; namespace Liquid.Json.TypeSerializers { internal class JsonArraySerializer<T> : IJsonTypeSerializer<T[]> { #region IJsonTypeSerializer<T[]> Members public void Serialize(T[] @object, JsonSerializationContext context) ...
15b521f5ed74fdbe33f4a6e27149df8ca3368df1
C#
not-mike-smith/DimensionsOfMeasurement
/DimensionsOfMeasurement.Test/FundamentalDimensionTests.cs
2.890625
3
using System.Linq; using FluentAssertions; using Xunit; namespace DimensionsOfMeasurement.Test { public class FundamentalDimensionTests { [Fact] public void HashCodesAreUnique() { var x = FundamentalDimension.All.Select(f => f.GetHashCode()).ToHashSet(); x.Count....
cfbdf7d37cf4b6e966827b578ff8f7e9646bc1af
C#
Vasiliy0209/xmlrpc
/MyService.ashx.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using CookComputing.XmlRpc; namespace MyXmlRpcApplication { /// <summary> /// Сводное описание для MyService /// </summary> public class MyService : XmlRpcService { [XmlRpcMethod("myservice::h...
90423856ef08c4917ad5da2576adafd23598f84a
C#
oferns/vsnet
/VD.PayOn/BackOffice/Rebill.cs
2.859375
3
namespace VD.PayOn.BackOffice { public readonly struct Rebill { public Rebill(string referencedPaymentId) { ReferencedPaymentId = referencedPaymentId; } public string ReferencedPaymentId { get; } public readonly PaymentType PaymentType => PaymentType.Rebill; ...