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
bae7e41d9297bd6940dbf01ce7d23b2743031ad9
C#
imba-tjd/LeetCode
/067.add-binary/add-binary.cs
3.484375
3
namespace LeetCode.Problems.P067AddBinary { public interface ISolution { string AddBinary(string a, string b); } class Solution : ISolution { public string AddBinary(string a, string b) { var sb = new System.Text.StringBuilder(); char carry = '0'; for (in...
6f3284baaee690be4787bb693d91d2362011d3ad
C#
davepruitt/JawBooth
/Desktop Code/JawBooth/JawBooth/USBDeviceInfo.cs
3.28125
3
using System; using System.Collections.Generic; using System.IO.Ports; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace JawBooth { /// <summary> /// A basic class to hold some USB device information /// </summary> public class USBDeviceInfo { ...
c0d1607b8d159acdbdd1284917094170a1dbad9a
C#
shendongnian/download4
/first_version_download2/35556-34145859-105864355-2.cs
3.171875
3
public class NamedInt : IComparable<int>, IEquatable<int> { internal int Value { get; } protected NamedInt() { } protected NamedInt(int val) { Value = val; } protected NamedInt(string val) { Value = Convert.ToInt32(val); } public static implicit operator int (NamedInt val) { return val.Value; } public ...
2a0f7b3ba2f1383b5a37d4e36c51e02be4d05c96
C#
JamesKovalski/ProjetoServidor
/Mobile/Assets/APIClient.cs
2.578125
3
using System; using System.Collections; using UnityEngine; using UnityEngine.Networking; using UnityEngine.UI; public class APIClient : MonoBehaviour { public Text nome; public Text detalhe; public Text poder; public Text tamanho; const string baseUrl = "http://localhost:60475/API"; // Use thi...
d2d8b5c23e4b151c1e6d76ce0ea2bff60f870bf4
C#
mattiasw2/big5sync
/ big5sync/Syncless/Syncless/Logging/DebugLogger.cs
2.890625
3
/* * * Author: Koh Cher Guan * */ using System; using System.Diagnostics; using System.Text; using Syncless.Core; namespace Syncless.Logging { /// <summary> /// This class will write the debug log, which records any unhandled exception /// </summary> public class DebugLogger : L...
4275705c3897e15548962b6bbce16c858faff579
C#
chancity/Adobe-Reactor-Api-CSharp
/AdobeReactorApi/HttpClientHandlers/ExceptionHandler.cs
2.578125
3
using System; using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using AdobeShared.Exceptions; using Newtonsoft.Json; using NJsonSchema; using NJsonSchema.Validation; namespace AdobeReactorApi.HttpClientHandlers { public class Exception...
a173d7aea672f077834db53667e47327162c64bd
C#
LeeRising/UpdaterTcpdotNET
/ClientTest/Utilits/Md5Util.cs
2.890625
3
using System; using System.IO; using System.Linq; using System.Security.Cryptography; namespace ClientTest.Utilits { public class Md5Util { public string _checkLocalMD5Sum(string path) { var allfiles = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories); var md...
326db6a69667402842c7dde7645f810e6dd07d4d
C#
rezgar/crawler
/Configuration/CrawlingPredefinedValues.cs
2.609375
3
using Rezgar.Utils.Collections; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace Rezgar.Crawler.Configuration { public class CrawlingPredefinedValues { #region Constants public const string USER_NAME = "user_name...
08bfe75e61ee2eaa2b018a7dfb1de198c4c53836
C#
snVmpl/PB.WebService
/PB.Core/Validators/RequireNameValidator.cs
2.8125
3
using PB.Core.Interfaces.Validators; using System; using System.Threading.Tasks; namespace PB.Core.Validators { public class RequireNameValidator : INameValidator { private const string ExceptionMessage = "Не указано название продукта"; public async Task<bool> ValidateAsync(string name) ...
99dff1cc7f47b3feefd44f0dc5492415988c9f52
C#
erik3891/BelalTransportGUI
/BelalTransportGUI/UI/CostWindow.xaml.cs
2.5625
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;...
dbb8ce0da5e64fa2c790245c07deda10eabfbe89
C#
rishibodake/QuantityMeasurement
/QuantityMeasurements/BusinessLogic/Conversion/Convertor.cs
3.1875
3
//----------------------------------------------------------------------- // <copyright file="Convertor.cs" company="BridgeLabz"> // Copyright (c) 2020 All Rights Reserved // </copyright> //----------------------------------------------------------------------- namespace QuantityMeasurements { using System; us...
ff4908ebddbae18e542ed2bdb19c98d1b1b15b9f
C#
craigbridges/Nettle
/src/Nettle/Functions/String/JoinFunction.cs
3.484375
3
namespace Nettle.Functions.String; using System.Threading.Tasks; public sealed class JoinFunction : FunctionBase { public JoinFunction() : base() { DefineRequiredParameter("Separator", "The string to use as a separator.", typeof(string)); } public override string Description => "Joins an arr...
89c46d8ad47db0355c8cfa157ada1a320aff3c83
C#
misonou/codeless-ecma
/src/Codeless.Ecma/EcmaJsonReader.cs
2.953125
3
using Codeless.Ecma.Runtime; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Codeless.Ecma { internal class EcmaJsonReader : IDisposable { private readonly TextReader reader; private int pos; private int ch; public EcmaJsonReader(string str) { thi...
d3e6b4200e0a6fd2abea24db645af70d54d1c0f0
C#
Anele13/Base-de-datos-Nutricionista
/WinNutricion/db/Model/Profesional.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LibNutricion.db { public partial class Profesional { #region variables locales private int _dni; private string _matricula; private string _nombre; private string _apellido; priv...
21bd84d9149710cb8440a40e7e3a71fc21518c98
C#
jdruid/AppStudio-SoundCloudAPI
/AppStudio.Shared/Converters/IncreaseConverter.cs
3
3
using System; using System.Collections.Generic; using System.Text; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; namespace AppStudio.Controls { public class IncreaseConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { ...
238d977a243f96b4ca47bd4b15dc4ea4a83324aa
C#
jinyukyo/ResetCore
/Unity/ReRx/Assets/ReRx/Subject.cs
2.921875
3
using System; using System.Collections.Generic; using ReRx.Interface; namespace ReRx { /// <summary> /// 可订阅主题 /// </summary> /// <typeparam name="T"></typeparam> public class Subject<T> : ISubject<T>, IDisposable { private bool isStop = false; private bool isDispose = false; ...
7a1fa87206383ec14d06790ad5068cd174c383c4
C#
hmcts/vh-admin-web
/AdminWebsite/AdminWebsite.IntegrationTests/Services/ApplicationLoggerTests.cs
2.53125
3
using System; using System.Collections.Generic; using System.Security.Claims; using AdminWebsite.Services; using NUnit.Framework; namespace AdminWebsite.IntegrationTests.Services { /// <summary> /// Tests for logger class /// </summary> /// <remarks> /// Though difficult to reliably test that the T...
e54fd2f15204ccc5a17ea49b89ff6a575312dd29
C#
shendongnian/download4
/latest_version_download2/113370-22035531-58991003-2.cs
3.234375
3
static void Main(string[] args) { int[,] S = null; int N = 0; string line; //to hold one line of file string[] token; //to hold each token in line char[] separator = { ',' }; ...
7c95e1cdd0d6f8409e9b59d266efbe826f18cffb
C#
blinfodev/odyssey-api-demo
/WinForms/JsonDocumentCreatorDesignerSettings/JsonDocumentCreator/Classes/RecordKeyValue.cs
2.546875
3
using System; namespace JsonDocumentCreator.Classes { /// <summary> /// The key value pair instance that defines a field in the record /// </summary> public class RecordKeyValue { /// <summary> /// The name of the field /// </summary> public string Key { get; set; }...
268a16250f36ea50a8a1c24cd60e8a7bdd9d9230
C#
jpgnel/Computerized-Payroll-System
/Computerized Payroll System/frmSalary.cs
2.53125
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; using System.Data.SqlClient; namespace Computerized_Payroll_System { public partial class frmSalary : Form { public fr...
44bfc831658a46e754f3a83c3871597eac2b1382
C#
askec1705/odev3
/AtYarisi/Form1.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; namespace AtYarisi { public partial class Form1 : Form { public Form1() { ...
fd39b97946ec6f82c6632abad84f9b560303cf71
C#
MuffinAmor/ip_adress_caclulator
/ip_adress/lib/AddressCalculation.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; namespace ip_adress.lib { public class AddressCalculation { public string ConvertToIp(string Address) { var bytes = Address .Split('.') .Select(@b...
5d4d8e1ddda233c73aa60b5933ff41695db3730b
C#
zach-bartl-grfl/phoenix
/phoenix.core/Exceptions/ThirdPartyServiceException.cs
2.625
3
using System; namespace phoenix.core.Exceptions { /// <summary> /// Denotes that the HTTP request made to an external service was not successful /// </summary> public class ThirdPartyServiceException : Exception { public string ServiceMoniker { get; } public string ResponseBody { get; } public Th...
a084b763caec8e81832771b766e296eff50d0346
C#
Talrandel/DynamicStruct
/Model/ObservableLinkedList.cs
3.5
4
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; namespace LabaApp.Model { /// <summary> /// This class is a LinkedList that can be used in a WPF MVVM scenario. Composition was used instead of inheritance, /// because inheriting from LinkedLis...
e571fd0d394b642f6d636d84a954feb53538f930
C#
buka102/sd-backend-engineering-test
/Data/InMemoryRepository.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using tictactoe_service.Models; namespace tictactoe_service.Data { public class InMemoryRepository : IRepository { public static List<GameEntity> AllGames = new List<Game...
ff5a11d07de4c292e3c1e263a504cbe636b45f09
C#
martindevans/Oddity
/Oddity/Endpoints/DragonEndpoint.cs
2.625
3
using Oddity.Builders; using Oddity.Configuration; using Oddity.Models; namespace Oddity.Endpoints { /// <summary> /// Represents an entry point of /dragons endpoint. /// </summary> /// <typeparam name="TData">Type of the data returned from API.</typeparam> public class DragonsEndpoint<TData> : En...
14d754eb650e6b979a55b6373440baf852b4cd69
C#
crazywickedawesome/Trigrad
/Trigrad/Extensions.cs
3.234375
3
using TriangleNet.Data; using System.Drawing; using TriangleNet; namespace Trigrad { internal static class Extensions { public static Point Point(this Vertex t) { return new Point((int)t.X, (int)t.Y); } public static Bitmap ToBitmap(this Mesh mesh,int width,int hei...
a5a6b0a221af2bdd658a85622096e4632bb4ef50
C#
lardc/mme_software
/ProfileBuilder/Views/UserPage.xaml.cs
2.640625
3
using ProfileBuilder.ViewModels; using System.Windows; using System.Windows.Controls; using Types.Common; using Types.User; namespace ProfileBuilder.Views { public partial class UserPage : Page { //Контекст данных страницы private readonly UserViewModel Context; //Режим сохранения ...
24139c8cfe8923dcfaa75b74a54c4cc2b6541c16
C#
papezi/ExpenseManager
/ExpenseManager/User.cs
3.171875
3
using ExpenseManager.BudgetStructure; using ExpenseManager.FileHandlers; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExpenseManager { public class User { public string Name { get; set; } public s...
57aec1c4eaa21d676883425cdb63e8764d15db55
C#
bateller/StreamusServer
/Streamus/Domain/PlaylistItem.cs
2.625
3
using FluentValidation; using Streamus.Domain.Interfaces; using Streamus.Domain.Validators; using Streamus.Dto; using System; using System.Collections.Generic; using System.Linq; namespace Streamus.Domain { public class PlaylistItem : AbstractDomainEntity<Guid> { public virtual Playlist Playlist { get...
e528d02837a9b77929426efc3649a1d400c5a080
C#
mkoscak/active-mizu
/MessageImporter/DB_MS_SQL.cs
2.703125
3
using System; using System.Data; using System.Data.SqlClient; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics;//pre debug namespace MessageImporter { public class ms_SQL { SqlConnection connectionMSSQL = new SqlConnection("Data Source=192....
f8939a1a00e3976926da89b974861b786df00a96
C#
CoderGamester/Statechart-HFSM
/Runtime/Internal/FinalState.cs
2.765625
3
using System; using System.Collections.Generic; // ReSharper disable CheckNamespace namespace GameLovers.StatechartMachine.Internal { /// <inheritdoc cref="IFinalState"/> internal class FinalState : StateInternal, IFinalState { private readonly IList<Action> _onEnter = new List<Action>(); public FinalState(st...
2507a00b11dea13639b5348f7ee68542f2671dff
C#
bharatmane/DesignPatterns
/DesignPatterns/BehavioralPatterns/MementoPattern/Memento.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DesignPatterns.BehavioralPatterns.MementoPattern { public class Memento { private readonly Photograph _photograph; public Memento(int brightnessLevel, List<string> fil...
c922b09bace702c87df2cd2f8f843955638aaf41
C#
TeMePyT/Programing-Basics
/Exam_28_August_2016/Hotel_Room/Program.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Vyzrast_i_pol { class Program { static void Main(string[] args) { var month = Console.ReadLine().ToLower(); var days = int.Parse(...
591f7f7a7ce0fba84d34b6b377bdddb8c2b0b1a0
C#
Bullshitzu/PoloBot
/PoloniexBot/Utility/ThreadManager.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace Utility { public static class ThreadManager { public class ThreadData : IEquatable<Thread>, IComparable<ThreadData> { public Thread thread; ...
c8b02b99ca1b5fc19acf51222ab09ec7c88dc853
C#
Kizunaplus/WinFormTemplate
/WindowsFormsApplication/Framework/Controllers/Commands/LogCommand.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Kizuna.Plus.WinMvcForm.Framework.Controllers.State; using Kizuna.Plus.WinMvcForm.Framework.Models.EventArg; using Kizuna.Plus.WinMvcForm.Framework.Models.Enums; ...
9447ca744c53f7535dad3694b0625712d57e4b2b
C#
markti/certreq
/SccmRelay/ConsoleApp1/Program.cs
3.046875
3
using System; using System.Collections.Generic; using System.Text; using System.Net; using System.IO; namespace ConsoleApp1 { class Program { static void Main(string[] args) { if (args.Length < 1) { Console.WriteLine("error"); } t...
b7b2570e425e1ac221492eb20392b59c39331e18
C#
FabricioLince/ConsoleECS
/ConsoleECS/Examples/Npc.cs
2.71875
3
using ConsoleECS.Core.Components; using ConsoleECS.Core.Vector; using System; namespace ConsoleECS.Examples.Scripts { [Dependecies(typeof(Position), typeof(Collider))] class Npc : Script { [AssignDependence] Position position; [AssignDependence] Collider collider; ...
4be8ad77fecde04e60e7930de027ebd12548d32a
C#
gabeochoa/DivineRightConcept
/GameEngine/Geometry/ShapeExtensions.cs
3.390625
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace GameEngine.Geometry { /// <summary> /// Class that provides static extension methods for drawing Geometrical shapes on the Display /// </summary> public static class ShapeExtensions { //NOTE: It is important t...
a5d8daeabbb2472352ecc3dd425b850c381e1b44
C#
SebasCharria/BillerTestDigitalWare
/src/Billing/Customers/Domain/Customer.cs
2.75
3
using Shared.Domain; using Shared.Domain.ValueObjects; using System; using System.Collections.Generic; using System.Text; namespace Billing.Customers.Domain { public class Customer: Entity, IAggregateRoot { public int Age { get; private set; } public string Email { get; private set; } ...
9f2ef71e85c194d63595e94f692f05a742b71d0e
C#
Eloy8/tictactoe
/_07___Arrays/TicTacToe/Utils/Mechanics.cs
3.296875
3
using _07___Arrays.TicTacToe.Utils; using System; namespace _07___Arrays.TicTacToe { class Mechanics { public static Coordinates inputValidator(int input) { for (int i = 0; i < Game.gameFields.GetLength(0); i++) { for (int j = 0; j < Game.gameFields.GetL...
07a028069fcba2ddd5094d4bd31de714f6f619a7
C#
hxm193514/MyMusicStore
/HandsomeBoy/04ASP.NET MVC/Denol/Denol/Program.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Denol { class Program { static void Main(string[] args) { //创建一个数据的上下文,所有的表的实体都会在此上下文中 //var context = new CourseDBEntities(); //var...
c1e3a3bb7b6fdd42548e294c354a1d3bac379f3b
C#
GeorgeLincoln/AquaSys
/AquaSys/ClassLibraries/Repositorios/RepositoryBase.cs
3.125
3
using System.Collections.Generic; using System.Linq; using ClassLibraries.Data.Context; using ClassLibraries.Models; namespace ClassLibraries.Repositorios { public abstract class RepositoryBase<T> : IRepositoryBase<T> where T : class, IEntity { private readonly DataContext _context; public Re...
1579ffe4bd83b7760beab38b1ca23e18e2b63f9b
C#
TrevorRawlings/OS-Maps
/PhoneApp2/TileCache.cs
2.546875
3
using System; using System.Diagnostics; using System.Text; using System.Threading.Tasks; using Windows.Devices.Geolocation; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading; using System.IO; using System.IO.IsolatedStorage; using Windows.Storage; //using Windows.Networking...
cd36dad4fece988fb398cc152a18732b15e1bb24
C#
ahmed-sayed/Computational-Geometry-Package
/CGUI/CGAlgorithms/Algorithms/SegmentIntersection/SweepLine.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CGUtilities; using CGUtilities.DataStructures; namespace CGAlgorithms.Algorithms.SegmentIntersection { public class Event { public Point Current_Point; public int status; //...
2a0e291a535b88105c237de23a705bb5436ee892
C#
SMircheva/programming-fundamentals-hw
/Conditional statements and loops/IntervalsOfNumbers/Program.cs
3.46875
3
using System; namespace IntervalsOfNumbers { class Program { static void Main(string[] args) { var a = int.Parse(Console.ReadLine()); var b = int.Parse(Console.ReadLine()); var start = Math.Min(a, b); var end = Math.Max(a, b); for (...
7d8f179bb30754db5365cbd5855d1c47a9a73aee
C#
erlis/NHamcrest
/NHamcrest.Tests/Core/AllOfTests.cs
2.703125
3
using MbUnit.Framework; using NHamcrest.Core; namespace NHamcrest.Tests.Core { public class AllOfTests { private readonly CustomMatcher<string> failingMatcher = new CustomMatcher<string>("Failing matcher", s => false); private readonly CustomMatcher<string> successfulMatcher = new Custo...
8bf1c8265256e8eca96092031d90787828897b4e
C#
kolpet/szakdolgozat
/Persistence/BinaryFilePersistence.cs
2.765625
3
using System; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Xml; using System.Xml.Serialization; namespace Szakdolgozat.Persistence { public class BinaryFilePersistence : PersistenceBase { public BinaryFilePersistence() : base() { } public BinaryFilePersi...
885070a2bcf265aa47b048e2b2a30129f342fd7e
C#
KonstantinSimeonov/CSharp-Part2
/Lections-Demo-Live/06.Strings and Text Processing/06. Strings-and-Text-Process/Demo2/DemoProject.cs
3.328125
3
namespace Demo2 { using System; using System.Collections.Generic; using System.Linq; using System.Text; class DemoProject { public static List<int> FindDoubleSlash(string code) { var indices = new List<int>(); //magic int nextCommentStart = c...
f0ba2083a1f0cfd8a22125c0cace984caca37995
C#
vain0x/virtual-grid
/VirtualGrid.Core/GridRange.cs
2.90625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VirtualGrid { [DebuggerDisplay("{AsDebug}")] public struct GridRange : IEquatable<GridRange> { public readonly GridVector Start; p...
762f308c80469311047c0a815a46bcb3f263afa6
C#
nothke/ProcPuddler
/Assets/Scripts/FirstPuddler.cs
2.640625
3
using Nothke.Math.Coord; using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; public class FirstPuddler : MonoBehaviour { float[,] heights; void Start() { StartCoroutine(Co()); } private void Update() { DrawGrid(); } con...
f1c50102d104d8e88f31351e96c5d8b3a2b456ea
C#
mikeshumomaker/contosu
/src/ContosoUniversity/Features/Course/Create.cs
2.578125
3
namespace ContosoUniversity.Features.Course { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using AutoMapper; using AutoMapper.QueryableExtensions; using DataAccess; using Infrastructure; using MediatR...
099d4e0e377e2e697e229943ce5ec308e2ab81ea
C#
EASV/CSharpCoreSimpleOnionRestAPI2018
/Cust.Infrastructure.Data/Repositories/CustomerRepository.cs
2.546875
3
using Cust.Core.DomainService; using Cust.Core.Entity; using System; using System.Collections.Generic; using System.Linq; namespace Cust.Infrastructure.Data.Repositories { public class CustomerRepository : BaseRepository, ICustomerRepository { public CustomerRepository(CustomerAppDBContext c...
507ae85b2ff41aef3e63e0976a968028b282a305
C#
ktopchiev/Softuni-C-Sharp-Fundamentals
/RegularExpressions/Furniture/Program.cs
3.546875
4
using System; using System.Collections.Generic; using System.Text.RegularExpressions; namespace Furniture { class Program { static void Main(string[] args) { var regex = @"\B^\s*>>(?<furnitureName>[A-z]+)<<(?<price>\d*\.?\d*)!(?<quantity>\d*)\b"; List<strin...
ec95f9c15ad32d2b15128eef4187c4312c6cc866
C#
AlgodatPros/Dictionary_CSharp
/AlgoDat/ConsoleApplication1/abstrakte Klassen/Array.cs
3.171875
3
using System; namespace DictionaryFramework { public abstract class Array : IDictionary { protected int[] array = new int[20]; protected int limit = 0; public Array () { } public void Print() { for (int i = 0; i < array.Length && array[i] != 0; i++) { Console.Write(array[i] + " " ); } ...
34dc0ff19ed829f9a2a2d4f9d153dd66181bf74a
C#
k1kli/octree-reduction
/Octree reduction/ExtensionMethods.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Octree_reduction { public static class ExtensionMethods { public static void Sort<T>(this LinkedList<T> sortedList, Comparison<T> comparision) { if (sortedL...
808583e303a0e9ac557a4605bdfcd183592e98f3
C#
DAkbari/Telerik-Academy
/C#/C# 2/2. Multidimensional-Arrays-HW/Largest-Area-In-Matrix/LargestAreaEqualNeighbourElements.cs
3.890625
4
/* Problem 7. Largest area in matrix Write a program that finds the largest area of equal neighbour elements in a rectangular matrix and prints its size. Input: On the first line you will receive the numbers N and M separated by a single space On the next N lines there will be M numbers separated with spa...
c9a2d61c6040481e56028b0d7a51951421cfc7c2
C#
gladkovsp/ExnessTests
/ExnessWebApi/Helpers/JsonHelper.cs
3.203125
3
using Exness.Models; using Newtonsoft.Json; using System.IO; using System.Text; using System.Runtime.Serialization; using System.Runtime.Serialization.Json; namespace Exness.Helpers { public static class JsonHelper { public static bool JsonCompare(object obj1, object obj2) { if (ReferenceEquals(obj1, obj2)) ...
4c2fa903eefab29c21f313589778f8e4861afa05
C#
gbatistuti/aquatermproject
/AquaTerm_Versao_Final/ProjetoAquaTerm/Foto.ashx.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ProjetoAquaTerm { /// <summary> /// Descrição resumida de Foto /// </summary> public class Foto : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Res...
7d3750b6e8ad262be0928768cee3ff69aaef1e44
C#
SteveL-MSFT/platyPS
/src/Markdown.MAML/Model/Markdown/DocumentNode.cs
2.828125
3
using System.Collections.Generic; namespace Markdown.MAML.Model.Markdown { public class DocumentNode : MarkdownNode { private List<MarkdownNode> childNodes = new List<MarkdownNode>(); public override MarkdownNodeType NodeType { get { return MarkdownNodeType.Document; } ...
add9e913dc2e724f225f97257166c2cce9e5c193
C#
Techno1109/Reversi_RTA
/Assets/Script/GridData.cs
2.734375
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public enum GridState { NONE, HIGHLIGHT, WHITE, BLACK } public class GridData : MonoBehaviour { private SpriteRenderer _spriteRenderer; private Vector2 _gridPos; private GridState _state; ...
dd2b53b34c68ac43e9f14ae6a93b2317dbb77aff
C#
danghieuthang/ProfitAndLossAPI
/ProfitAndLoss.Business/Models/MappingModel.cs
2.625
3
using AutoMapper; using System; using System.Collections.Generic; using System.Text; namespace ProfitAndLoss.Business.Models { public class Mapping { } public class Mapping<TDest> : Mapping { public static IMapper Mapper { get; private set; } public Mapping() { ...
9604173158de7665e49a10d21ad85fabb9400794
C#
ObscureWare/Console
/Tests/ObscureWare.Console.Commands.Tests/LocalizedParsingTests.cs
2.78125
3
namespace ObscureWare.Console.Commands.Tests { using System; using System.Globalization; using ObscureWare.Console.Commands.Interfaces; using ObscureWare.Console.Commands.Tests.Engine; using ObscureWare.Console.Commands.Tests.TestModels; using Xunit; public class LocalizedParsingTests : ...
f59a5a3089e84feaf16c3b91628dd9fb7c48c740
C#
vaspas/dotnet
/Sigflow/Sigflow/Schema/XmlSchemaFactory.cs
2.59375
3
using System.Linq; using System.Xml; namespace Sigflow.Schema { public class XmlSchemaFactory { public XmlDocument Document { get; set; } private SchemaContainer _container; public SchemaContainer Build() { XmlSchemaFactoryLogger.Clear(); _container=n...
ded87965dea6a75ad7b3b3e907f051fd080f0cda
C#
HASSHH/TcpConnectionLatency
/TcpConnectionLatency/Graphics/Scene.cs
2.59375
3
using OpenTK; using OpenTK.Graphics.OpenGL; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace TcpConnectionLatency.Graphics { class Scene { private bool initDone; private int v...
124e9077520f67dffbbd4f0c47923b14c5d21419
C#
ConteDevel/xpertium-sharp
/XpertiumSharp/Core/XLogger.cs
3.015625
3
using System.Text; namespace XpertiumSharp.Core { public enum XLogLevel { Fatal = 0, Error, Warning, Info, Debug } public interface IXLogger { XLogLevel LogLevel { get; } uint Indent { get; set; } void LogF(string format, params obje...
3cdb1d44b61ef95e5bcd3c07ea0154798d5002d5
C#
leeeyz/MDORM
/MDORM.Tools/frmMain.cs
2.515625
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 MDORM.Tools { public partial class frmMain : Form { private int DBType = 0; ...
d98f005dec28574cba470b81853de15879b5ddd8
C#
IanAranha/Intermediate_CSharp
/INTERMEDIATE_CSHARP2/AccessModifiersDemo/AccessModifiersDemo/Program.cs
3.96875
4
using System; namespace AccessModifiersDemo { class MainClass { public class Person { private DateTime _birthday; public void SetBirthday(DateTime birthday) { _birthday = birthday; } public DateTime GetBirthday() ...
754734f45743f56c1e1745fca545ab483079df13
C#
PlumpMath/DesignPatterns-221
/DesignPatternConsole/Program.cs
2.984375
3
using System; using System.Collections.Generic; using Domain.Characters; using Domain.Items; using Service; namespace DesignPatternConsole { class Program { static void Main(string[] args) { var popoi = new Grimoire(new Mage("Popoi", 50, 80, 10, 5, 5, 30, 50)); var link...
2f8547c0f67a4a811424310b21141281455152c3
C#
yasenm/Telerik-Academy-Courses
/C# Programing part 2/01.Arrays/18RemoveMinimalElementsForIncreasingOrder/RemoveMinimalElementsForIncreasingOrder.cs
3.78125
4
using System; //* Write a program that reads an array of integers and removes //from it a minimal number of elements in such way that the //remaining array is sorted in increasing order. //Print the remaining sorted array. //Example: //{6, 1, 4, 3, 0, 3, 6, 4, 5}  {1, 3, 3, 4, 5} namespace _18RemoveMinimalElemen...
4067a67c8462037b036995779fec83db63b90aee
C#
saskeli/compiler_project
/mpl/Exceptions/MultiException.cs
2.515625
3
using System; using System.Collections.Generic; namespace mpl.Exceptions { public class MultiException : Exception { public readonly List<Exception> Exceptions; public MultiException(List<Exception> exceptions) : base("Multi exception") { Exceptions = exception...
0ed92a1067940292a0650835473ff3a6a795bc4d
C#
andreafazakas1616/LinqFundamentals
/LinqFundamentals/ClassRepository.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LinqFundamentals { class ClassRepository { List<Class> list = new List<Class>() { new Class {Id=1, Name="Biology"}, new Class {Id=2, Name="Chemi...
c75bf804c0b876b945fa65b9c2962735f6d98f8f
C#
joannasroka/CsharpDotNet
/lab9/lab9/LinqExamples.cs
3.21875
3
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; namespace LinqExamples { public class Department { public int Id { get; set; } public String Name { get; set; } public Department(int id, string name) { this...
1a6350fc380d21d8a617a9db2b4790e7df7a3bee
C#
satish860/GeneratorAPI
/MakerApp.Tests/NamesTests.cs
2.5625
3
using Microsoft.AspNetCore.Mvc.Testing; using System; using System.Collections.Generic; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Xunit; using FluentAssertions; using System.Linq; using Newtonsoft.Json; namespace MakerApp.Tests { public class GeneratorTests : IClassFixt...
d46cb3718ece4976391b138ec263d6373f307248
C#
hatef/Payamnoor-robocup
/WarSimulation/Constants/Enums.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Hadaf { enum Command { Forward, Backward, Fire, Grenade, TurnLeft, TurnRight, Turn, Stop, TurnDegree } enum Commander{ Decisi...
a82841fce9f707fa2a95b7dab91ee79a073c367f
C#
Luis7379/Tarea-2
/Formularios/FrmE7.cs
2.59375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Tarea2.Formularios { public partial class FrmE7 : Form { public FrmE7() ...
0c803249a1c3fe3925dc86a7da85bb3487c8db88
C#
denislichenko/bot-constructor
/BotConstructor/Controllers/QuizController.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using BotConstructor.Database.Models; using BotConstructor.Database.Models.QuizModels; using BotConstructor.Web.Models.Quiz; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace BotConstructor.We...
30130c859afdf289ab496095251b72def95eed8c
C#
shendongnian/download4
/code6/970092-24594493-143021694-4.cs
3.03125
3
public class Program { public int Main() { string original_path = System.IO.Path.GetFullPath(@"\\remote\app.exe"); string current_path = System.IO.Path.GetFullPath( System.Reflection.Assembly.GetExecutingAssembly().Location); if(o...
cd455389986e28746180f02b5127c982fd70696c
C#
joaocepa94/turtlechallenge
/TurtleChallenge/Turtle.Library/Models/Turtle.cs
3.46875
3
namespace Turtle.Library.Models { public class Turtle : Element { #region Singleton private static Turtle turtle; private Turtle(Point position) { this.Position = position; } public static Turtle Instance(Point position) { return...
4770cadddb913d830fefbe6118ee754dc355b0fb
C#
wuzhengyi/MyPaint
/Painting/Shapes/ShapeRoundness.cs
3.078125
3
using System; using System.Collections; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Painting.Shapes { class Roundness : Shape { public void InitRoundness(PictureBox pictureBox, Color c...
76f4f40a1a00199cabf15caa7a83d6cbd15e725e
C#
nathandelane/sf-old-projects
/CSharpStuff/Nathandelane.Net.HGrep/Nathandelane.Net.HGrep/XCharacterEntityDecoder.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Nathandelane.Net.HGrep { public class XCharacterEntityDecoder { #region Fields private static readonly Dictionary<string, string> __entities = new Dictionary<string, string>() { { "nbsp", " " }, ...
3429b2440d0bc0d7ecef71445d126d93edea76b7
C#
javidombro/AlohaSalesforce
/AlohaSalesforce/Commands/InstallCommand.cs
3.296875
3
using AlohaSalesforce.Entities; using System; using System.Text; namespace AlohaSalesforce.Commands { /// <summary> /// Implements the INSTALL command. /// </summary> public class InstallCommand : Command { public string Execute(string[] args) { var builder = new Strin...
388d9a36b19e2c16aa180136f1c6ebd142291b26
C#
IonysTerra/ffxivmodelviewer
/src/DatDigger/Sections/ChunkHeader.cs
2.640625
3
namespace DatDigger.Sections { public class ChunkHeader { /// <summary>The Type of chunk this header preceeds</summary> public int ChunkType { get; set; } public int Unknown1 { get; set; } /// <summary>Size in bytes (including header) of this chunk</summary> public int...
fadb562c6fd88cdaf302a552f9a56b6abe7ae4b1
C#
DucDepTraiNhatVuTru/ChatApplication
/ChatProtocol/Protocol/GetGroupChatResponseProtocol.cs
2.90625
3
using ChatDataModel; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChatProtocol.Protocol { public class GetGroupChatResponseProtocol : IProtocol { public List<Group> Groups = new List<Group>(); public bool Parse(st...
ddfa4eab582076d15fa038031c5ef884d4b1ff2b
C#
ablackness/lambda-sharp-july2018
/Messages.SNSTrigger/Function.cs
2.59375
3
using System; using System.IO; using System.Threading.Tasks; using Amazon.Lambda.Core; using Amazon.Lambda; using Amazon.Lambda.SNSEvents; using MindTouch.LambdaSharp; using Newtonsoft.Json; using Messages.Tables; // Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class. [asse...
b63074c502bb1b72a285d8c929f227978f5e8a3b
C#
ppedvAG/CSharp_Fortgeschritten_Berlin_10_2018
/GenericsAllgemein/Program.cs
3.25
3
using Newtonsoft.Json; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GenericsAllgemein { class Program { static void Main(string[] args) { BeispieleFürGenerischeDatentypen(); ...
d45983442b254d9f46c03de6c664194536cc09d3
C#
LPPOINT/TextFramework
/Rose.TextFramework/Rose.TextFramework.RoseMark/DictionaryModel/Section.cs
3.0625
3
using System; using System.Collections.Generic; using System.Xml; using System.Xml.Linq; namespace Rose.TextFramework.RoseMark.DictionaryModel { public class Section { public Section(string name, List<SectionString> strings) { Strings = strings; Name = name; } ...
0a831f62b3093cf23de4084bede9cb61e9ac375d
C#
callumbwhyte/umbraco-composing-extensions
/src/Our.Umbraco.Extensions.Composing/LazyKeyValueCollection.cs
2.953125
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace Our.Umbraco.Extensions.Composing { public class LazyKeyValueCollection<TItem> : LazyKeyValueCollection<string, TItem> { public LazyKeyValueCollection(IDictionary<string, Lazy<TItem>> collection) ...
4ad78a23d09ed50a8c8ddd82df34da6cb22ab58f
C#
alxcp/ABCat
/ABCat.Shared/ObjectPool.cs
3.171875
3
using System; using System.Collections.Concurrent; namespace ABCat.Shared { public class ObjectPool<T> { private readonly Func<T> _objectGenerator; private readonly ConcurrentBag<T> _objects; public ObjectPool(Func<T> objectGenerator) { if (objectGenerator == null)...
7343aeeb66b4bc0439952ea4fc5fb294ed5d40ed
C#
theseanzo/sodv2202_lecture_code
/Lecture_3_OOConcepts/Lecture_3_OOConcepts/DerivingExample.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lecture_3_OOConcepts { //public, private, protected, internal class Base { public string name = "Base"; protected int id = 5323; private bool...
b20bdf13208c662079bab02e5214c0d750528f7f
C#
trios4504/Module_6_Queues
/Module_6_Queues/Program.cs
3.453125
3
using System; using System.Collections.Generic; namespace Module_6_Queues { class Program { static void Main(string[] args) { Hospital myHospital = new Hospital(); myHospital.AddPeopleIntoTheQueue("First Patient"); myHospital.AddPeopleIntoTheQue...
2fbb3bbebc42de909fe54b16c31f68c39731cce5
C#
rdln/highspeedCamera
/pc/hscCtrl/ScriptProcessor.cs
2.71875
3
using hscCtrl.Script; using hscCtrl.Serial; using Serilog; using System; using System.Threading; using System.Threading.Tasks; namespace hscCtrl { internal class ScriptProcessor { public static Func<IScriptSource, Func<ISerialPortComm>, Func<Task>> GetProcessScriptTask = (scriptSource, ser...
5db51881cbd422015c37fb8789d721274c09f7fd
C#
Sunghooni/RunningCar
/Assets/Scripts/UI/Tutorial.cs
2.796875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Tutorial : MonoBehaviour { public Text Tuto; public Text timer; bool doFirst = true; bool doSecond = false; public bool doTimer = true; public bool showTimer = false; public fl...
fb2669b71671d6e2271fb9f33e965e138015405a
C#
NikolayKostadinov/TelerikAcademy
/03.OOP/06.CommonTypeSystem/StudentDemo/Program.cs
3.3125
3
namespace StudentDemo { using System; using System.Collections.Generic; using System.Linq; using StudentCommon; public class Program { public static void Main() { List<Student> studentList = new List<Student>() { new Student("Nikolay", "Dim...
4fa9eaaf64d7a30346e6a200fc6db033d29acb00
C#
AimeryCM/Scour-the-Depths
/Scour the Depths/Assets/Scripts/DamageTextScript.cs
2.53125
3
using UnityEngine; using TMPro; public class DamageTextScript : MonoBehaviour { private TextMeshPro tmpro = null; private Color color = Color.white; private float timeSinceCreation = 0; [SerializeField] private float textSpeed = 0; [SerializeField] private float timeToFade = 0; [SerializeField] private float fa...
fdc59525bd080841cf1348c418e20088976bc9a1
C#
wennstrom/UnitTestingExam
/SystemtestningtentamenUnitTest/EmployeeServiceTests.cs
2.625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SystemtestningtentamenClassLibrary; namespace SystemtestningtentamenUnitTest { [TestClass] public class EmployeeServiceTests ...
c28701b2d2f5014eb91d5a6be4c9a2e5adfe63d1
C#
ajdaguese/KCBackup
/PublicUserFiles.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KCBackup { /** * PublicUserFiles is a class for backing up and restoring the directories kept in the public users directory */ class PublicUserFiles : BackupLocation { ...
1b55217042968ef7d04272d7276a62c298c637d3
C#
mirlindm/airline-reservation-system-aspnet-c-sharp
/ASP Project/WebService1.asmx.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace ASPProjekti { /// <summary> /// Summary description for WebService1 /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.B...
22f86f34e0c3f52208bccfceeafb518aeb7d8cf2
C#
Vamic/Game-Project
/App_Start/DbInitializer.cs
2.578125
3
using GameProject.Models; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; namespace GameProject.App_Start { public class DbInitializer : System.Data.Entity.DropCreateDat...
ab751a4ebdbd43dedf42d2ff859695ffdaea39b3
C#
vinanti/Skills
/LINQ/Linq/ConsoleApp1/SortingOperatorsOrderBy.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ProjectionOperationns; namespace ConsoleApp1 { class SortingOperatorsOrderBy { static void Main_SortingOperatorsOrderBy(string[] args) { var dataSourceInt = new...