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
041e29d28524e65e2d4f0724cfda92f3a273ebd4
C#
SWTTestGrp4/PhoneLocker
/UTPhoneLocker/UTLogFileDAL.cs
3.125
3
using System; using System.IO; using System.Text; using NSubstitute; using NSubstitute.Exceptions; using NUnit.Framework; using PhoneLockerClassLibrary; namespace UTPhoneLocker { [TestFixture] public class UTLogFileDAL { string path; ILogging _uut; [SetUp] public void Setu...
f7fe48b50c35443574f36c359dd173f4916c5e90
C#
MichalGrzegorzak/wcfformtester
/src/FormsFrameworkTest/UI_CodeFrame/CodeGen/Snippets/prop_inpc.cs
2.71875
3
using System; namespace Snippets { /// <summary> /// Code snippet for a property which raises INotifyPropertyChanged /// </summary> [AttributeUsage(AttributeTargets.Class , AllowMultiple = true)] public class SnippetPropertyINPC : Attribute { /// <summary> ...
c1c541a642527daad5ffc41393398966aa92365a
C#
Dillon-Roller/USAF-OpenAir
/OpenAir.SystemTest/FlightRepositorySystemTest.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; using OpenAir.Data; using OpenAir.Data.Models; using System.Linq; using System.Threading.Tasks; namespace OpenAir.SystemTest { class Flight...
c271037efde289c642e014201b6a6810d3f82c02
C#
eliezergensburger/TheProject
/DataSource/DataSourceXML.cs
2.640625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; using System.Xml.Serialization; namespace DataSource { public static class DataSourceXML { //private static string currentDirectory = Directory.Ge...
eff6ee07932216fc11dc503a32f6d5dec9a4065e
C#
pelcointegrations/VideoXpertSdk-Examples
/VxSdk.Net-ExampleClient/Source/DataStorages/VolumeManagerForm.cs
2.546875
3
using System; using System.Windows.Forms; using VxSdkNet; namespace ExampleClient.Source { /// <summary> /// The VolumeManagerForm class. /// </summary> /// <remarks>Provides a dialog window that allows the user to view and modify volumes.</remarks> public partial class VolumeManagerForm : Form ...
02bfc9be39da9bee10cede932e1c8e46a30ac3a2
C#
geeklearningio/gl-dotnet-aspnet
/src/GeekLearning.AspNetCore.FlashMessage/FlashMessage.cs
2.828125
3
 namespace GeekLearning.AspNetCore.FlashMessage { using System; using System.Collections.Generic; /// <summary> /// The FlashMessage class represents an individual flash message. /// </summary> public class FlashMessage { public string Title { get; set; } public string Mes...
a0cc64e12eb5f5bf6f5f28276ea5ee1d66d6ff2f
C#
sergey-rush/LayerObjects
/LOB.Data/ElementTypeManager.cs
2.734375
3
using System; using System.Collections.Generic; using System.Data; using LOB.Core; namespace LOB.Data { public abstract class ElementTypeManager: DataAccess { private static ElementTypeManager _instance; public static ElementTypeManager Instance { get { ...
2199340c508d3b21cdfdc915c40c7e2b649788a5
C#
team-maet/PUPCEA-Academic-Library-Monitoring-System
/Academic Library Monitoring System/Academic Library Monitoring System/Login.cs
2.734375
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 MySql.Data.MySqlClient; namespace Academic_Library_Monitoring_System { public partial class Login : Form { ...
4cbc3e5c83b9400a5b1b4cd27413756b645a604d
C#
decadentduck/TheWeather
/XMLWeather/day.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace XMLWeather { public class day { public string clouds, windSpeed, minTemp, maxTemp; public Image picture; public day(string _windSpeed, string _min, string _max, string...
c9d8fb4464253fa6c1e2e10868840d495da4c271
C#
RomainGirodet/payroll_Test
/payroll_Romain_Girodet/payroll_Romain_Girodet/CommissionEmployee.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace payroll_Romain_Girodet { class CommissionEmployee : Employee { string firstName; string lastName; string socialSecurityNumber; ...
ffb5858fa29d88a9a65b67f2dc6d19712569573e
C#
owrv/CaixaCSharp
/Datas.cs
3.140625
3
using System; using static System.Console; namespace VendasEventos { /// <summary> /// Summary description for Class1 /// </summary> public class Datas { public string Formatar(string v) { string a = "AAAAMMDD"; int contagem = a.Length; ...
7af889678c709a1ee1a96ca1c63662db5b871c7d
C#
vincoss/RangeRequestHandler
/Vinco.RangeRequestHandler/Handlers/FileStreamRangeRequestHandler.cs
2.828125
3
using System; using System.IO; using System.Web; namespace Vinco.Handlers { public class FileStreamRangeRequestHandler : RangeRequestHandler { protected const int BYTES_TO_READ = 4092; protected override void FindFileInfo(System.Web.HttpContextBase httpContext) { // TODO:...
0807d5da460b977a5d46618a337901b4bfb0bed1
C#
Darshana97/classes-in-c-sharp
/classes/Program.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace classes { class Customer { string _firstName; string _lastName; public Customer() : this("Software", "Engineering") { Console.WriteLine("A...
3da1d6f686c0bdb2c542d4fec12434ecf3996b1d
C#
Msudyc/CSharpIntvTest
/LeetCodeCSharp/Ex092-ReverseLinkedListII.cs
3.625
4
/* Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1.2.3.4.5.null, m = 2 and n = 4, return 1.4.3.2.5.null. Note: Given m, n satisfy the following condition: 1 ≤ m ≤ n ≤ length of list. class Solution { public: ListNode *reverseBetween(ListNode *head, int m...
c5e1ee193f429f05a39fa0898e5f2929e0a02174
C#
leonardoaguirre/ETEC-Poa
/3º Semestre/TCC/Commanager/Commanager(para apresentar 30-5)/Projeto-HelpSerralheiro/HelpSerralheiro/HelpSerralheiro/NovoAgendamento.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.Windows.Forms; using MySql.Data.MySqlClient; namespace HelpSerralheiro { public partial class NovoAgendamento : Form { public NovoAge...
58843daca8e713aa31ce74076041f4b20967da9e
C#
LoisMonet/Xamarin
/Fourplaces/Fourplaces/Models/Exceptions/RegisterE.cs
3.109375
3
using System; namespace Fourplaces.Models.Exceptions { public class RegisterE:Exception { private String exceptionMess; public RegisterE(String email, String mdp, String fName, String lName) { if (email == "") { exceptionMess += "le champ email...
49d2d80d62c10cedae80def5a366a49fe7294929
C#
skorae/SoftUni-kdinev
/C#TechModule 3.0 May 2018/Arrays EX/Arrays EX/Program.cs
3.890625
4
using System; using System.Linq; namespace Arrays_EX { class Program { static void Main(string[] args) { string[] first = Console.ReadLine().Split().ToArray(); string[] second = Console.ReadLine().Split().ToArray(); int minLenght = Math.Min(first.Length, sec...
4d6bcfd7fbb7f96c81909856872d226b312ac0f8
C#
brookerk/case42rpg
/Case42.Server/Components/LobbyComponent.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Case42.Base.Events; using Case42.Base.ValueObjects; using Case42.Server.Abstract; using Case42.Server.ValueObjects; namespace Case42.Server.Components { public class LobbyComponent { ...
ae589e522229359facd4966c2470adf0ddcc3e1a
C#
edvinpontuslarsson/BlackJack
/model/rules/PlayerWinsTieStrategy.cs
2.953125
3
using System; namespace BlackJack.model.rules { class PlayerWinsTieStrategy : CommonPickWinnerStrategy, IPickWinnerStrategy { /// <summary> /// Unless player is busted, /// dealer has to be not busted and have a higher score to win, /// if tie, player wins /// </summary>...
4fcf527292b33d8483f95515e1c6c9e430aedc1a
C#
sankargg/Hello-world
/FunctionApp1/BlobTriggerFunction.cs
2.796875
3
using System; using System.IO; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Host; using Microsoft.Extensions.Logging; using Microsoft.Azure.WebJobs.Extensions.SendGrid; using SendGrid.Helpers.Mail; namespace FunctionApp1 { public static class BlobTriggerFunction { [FunctionName("BlobTri...
0bd0ce58e7adce6a70aac24d92306e4932b93fd2
C#
birkoss/roguelike
/Assets/Scripts/PathFinding.cs
3.03125
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public class PathFinding { private int[,] map; private int width; private int height; private int emptyValue; private bool includeStartPosition = true; public PathFinding(int[,] _map, int _width, int _height, int _emptyValu...
f9833d8d2c373f8dda5218dd873bfa20a3ee7cd7
C#
ambrosiogabe/laserDefender
/Assets/Scripts/Scorekeeper.cs
2.671875
3
using UnityEngine; using System.Collections; using UnityEngine.UI; public class Scorekeeper : MonoBehaviour { private Text text; public static int totalPoints = 0; public void Start() { text = GetComponent<Text>(); text.text = totalPoints.ToString (); } public void Score(int points) { totalPoints += poi...
0791fa3a7ef055d4e16554498eb31bd1c997b2a4
C#
fixnil/MIS
/GISCore/Extension/PathHelper.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GISCore { public class PathHelper { /// <summary> /// 连接两个地址,会处理 .. 的连接; /// 如:"\\f\\u\\c\\k" + "../../" 为 \\f\\u /// </summary> /// <param name="source">源地址</param> ...
681005d649a72021ed9237f6177f683ddf1fb0db
C#
xetra11/debuggerCLI
/DebuggerCLI/CommandHandler.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace DebuggerCLI { public class CommandHandler { public IEnumerable<ICommandHandlerItem> Commands => this._Commands; private readonly L...
fccc032704b0de8783c623ab70a5ae74304b1701
C#
huseyineroll/visa_project
/aa/ExploreCaliforniaa/Controllers/InterviewController.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using ExploreCaliforniaa.Models; // For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 namespace ExploreCaliforniaa.Controllers { ...
173fa3065f89be3594e20faf45f4dee8dfb8ef4d
C#
stephensmitchell-forks/msdn-code-gallery-community-m-r
/MyCompany VISITORS demo application/[C#][JavaScript]-MyCompany_VISITORS_demo_apps_May_2014/MyCompany_VISITORS_demo_apps_May_2014/TechEdVisitorsK/Visitors/Controllers/EmployeesController.cs
2.71875
3
using System; using Microsoft.AspNet.Routing; using Microsoft.AspNet.Mvc; using System.Linq; namespace Visitors { /// <summary> /// Summary description for EmployeesController /// </summary> public class EmployeesController : Controller { private readonly ISecurityHelper _securityHelper = ...
18b7b0730d59a8edd8678621b2a858b4de19c51f
C#
OrangeYi/ProblemSet
/Letter Combinations of a Phone Number/Letter Combinations of a Phone Number.cs
3.3125
3
public class Solution { public IList<string> LetterCombinations(string digits) { IList<string> result = new List<string>{}; if(string.IsNullOrEmpty(digits)) return result; IList<string> two = new List<string> {"a", "b", "c"}; IList<string> three = new List<string> {...
1a0229a9bfcc34376484adb7e07fa10817363926
C#
beccasaurus/mooget
/old/src/Upload.cs
2.546875
3
// Based on code found at: // http://skysanders.net/subtext/archive/2010/04/12/c-file-upload-with-form-fields-cookies-and-headers.aspx // // Modified to remove Windows dependenies and make Rack-compatible (it wasn't parsing per the RFC spec Rack uses) using System; using System.Collections.Specialized; using System.Gl...
de2ccdf61e11065d9d39d7bf381cba338b83b3ca
C#
ScottHolden/AdventOfCode2020
/AdventOfCode2020/Days/Day19.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace AdventOfCode2020 { [PuzzleInput("Day19.txt", 118, 246)] [PuzzleInput("Day19-Sample01.txt", 2, 2)] [PuzzleInput("Day19-Sample02.txt", 3, 12)] public class Day19 : IDay { privat...
1a7ac28d312b257259d6f2efde9149f48e5005f0
C#
rollbar/Rollbar.NET
/Rollbar/DTOs/DtoBase.cs
2.734375
3
namespace Rollbar.DTOs { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using Xamarin.iOS.Foundation; using Rollbar.Common; using Rollbar.Diagnostics; /// <summary> /// Implements an abstract DTO type base. ///...
eeb7da2786aa8f51e525c5ef9c8a52c52c6b3bb1
C#
anhtrinhh/Winform-Chat-App
/ReferenceData/Utils/ChatAppUtils.cs
3
3
using System; using System.Drawing; using System.IO; using System.Runtime.Serialization.Formatters.Binary; namespace ReferenceData.Utils { public class ChatAppUtils { public static byte[] ConvertFileToByte(string fileName) { FileStream fs = new FileStream(fileName, FileMode.Open, F...
7dfa9b1c5facd5f88a869316875a7f044dc83d1f
C#
erisonliang/Xid.Net
/src/Xid.Shared/Xid.cs
2.8125
3
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.IO; // Ported from https://github.com/rs/xid // Original license; https://github.com/rs/xid/blob/master/LICENSE // Xid.Net Latest code/license; https://github.com/Yortw/Xid.Net namespace XidNet { /// <summary> /// Re...
6dabacce2cb13cea8253298f15adf1ee87e86069
C#
VisualBean/ResilientCommand
/ResilientCommand/Helpers/ServiceRegistrar.cs
2.59375
3
// <copyright file="ServiceRegistrar.cs" company="Visualbean"> // Copyright (c) Visualbean. All rights reserved. // </copyright> namespace ResilientCommand.DependencyInjection { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Microsoft.Ex...
dbbf94630a1d82b9796d4257049d25fe03f879e6
C#
Tigraine/dotless
/src/dotless.Core/Parser/Functions/RedFunction.cs
2.640625
3
namespace dotless.Core.Parser.Functions { using Infrastructure.Nodes; using Tree; public class RedFunction : ColorFunctionBase { protected override Node Eval(Color color) { return new Number(color.RGB[0]); } protected override Node EditColor(Color color, Nu...
64a68eb54a6638ba387bea228271848f1d1749c0
C#
valcassa/Week8.Hotel
/Concessionaria/Concessionaria/CarsRepository.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Concessionaria { class CarsRepository : ICarsDBManager { static List<Cars> auto = new List<Cars>(); public void Delete(Cars car) { throw new NotImp...
f558ecfb72afa8200c6a0fb534a0d6e8f49502f1
C#
junehosoft/SQR--A-Game
/SQR/Assets/Scripts/Shaker.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Shaker : MonoBehaviour { private bool shaking = false; private float speed = 1.0f; private float shakeAmt = 1.0f; float x0; void Update () { if (shaking) { //Vector2 newPos = Random.insideUnitCircle * (Time.deltaTi...
88215fd3937483e8c205761319ee15e6f145d62a
C#
DenitsaPambelova/Programming-Basics-CSharp-January-2018-SoftUni
/Exam-2017-07-23/04-EnergyLoss/EnergyLoss.cs
3.703125
4
using System; class EnergyLoss { static void Main(string[] args) { int days = int.Parse(Console.ReadLine()); int dancers = int.Parse(Console.ReadLine()); int allEnergy = dancers * 100; double spentEnergy = 0; for (int day = 1; day <= days; day++) { ...
2b8548160c8c109eb9159abddbdfacf66bc463a7
C#
eberlitz/WebApiClientTS
/src/TypeLite/TsTypeVisibilityFormatter.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using TypeLite.TsModels; namespace TypeLite { /// <summary> /// Defines a method used to determine if a type should be marked with the keyword "export". /// </summary> /// <param name="tsClass">The class model to for...
6daf14e710909d57c9c776139a2a9d7d3117f1ba
C#
faizalkhan/sharepoint
/CustomerDataEntryScreen/CustomerDataEntryScreen/Form1.cs
2.734375
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 CustomerDataEntryScreen { public partial class ArrayWindowScreen : Form { string[] str = new string[10]; ...
e6d0c11129ffc0ad952ef80dad05170b82b18f53
C#
Gacom111haaa/EnglishHelper
/EnglishHelper/MainPage.cs
2.5625
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 EnglishSTT; using System.Threading; using System.IO; namespace EnglishHelper { public partial class MainPage : Form { ...
7ce2398927805b4bca194fcfc85c6c34796f3a25
C#
Sitefinity/feather
/Telerik.Sitefinity.Frontend/Mvc/Infrastructure/Layouts/DuplicateSectionException.cs
3.125
3
using System; using System.Runtime.Serialization; namespace Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Layouts { /// <summary> /// This type of exception is thrown when sections with duplicating names are found on the current page. /// </summary> [Serializable] public class DuplicateSectionExc...
c35f2d94cc6999580a7a1bea76a7b66296e0e5af
C#
MichalB996/Shop-Simulation
/SklepWPF/ProductComparer.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SklepWPF { class ProductComparer: IEqualityComparer<Product> { public bool Equals(Product p1, Product p2) { if (p1.NameOfProduct.StateOfCell ==...
f524ab433bc4cb455a53eb818764d052156b8472
C#
YBerragragui/Riafco
/Riafco.Service.Dataflex.Pro/Newsletters/Assembler/NewsletterMailAssembler.cs
2.71875
3
using Riafco.Entity.Dataflex.Pro.Newsletters; using Riafco.Service.Dataflex.Pro.Newsletters.Data; using System.Collections.Generic; using System.Linq; namespace Riafco.Service.Dataflex.Pro.Newsletters.Assembler { /// <summary> /// The NewsletterMail assembler class. /// </summary> public static class N...
d9f19c5fcf83cffa721200dad4d82c14069dc8a4
C#
HippieMagic/CSharpPlayersGuide
/CSharpPlayersGuide/Lvl7/TheTriangleFarmer.cs
3.578125
4
using System; namespace CSharpPlayersGuide.Lvl7 { public class TheTriangleFarmer { public static void Area() { Console.WriteLine("What is your base?"); Double triangleBase = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("What is your he...
3f36cdf7772e174d12690bf09eb320e04dcf8790
C#
picapixa/TPT-MedicineAdmin
/TPT-MMAS.Windows10/TPT-MMAS.Shared/Converter/AdmissionRemarkToSolidColorBrushConverter.cs
2.71875
3
using System; using TPT_MMAS.Shared.Model; using Windows.UI; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Media; namespace TPT_MMAS.Shared.Converter { /// <summary> /// Converts the PatientAdministrationStatus enum value to an equivalent color representation. /// </summary> public class Admission...
96c5312dfe7c608ad0971d5126ebf25b0ad2be6c
C#
doit00/GarageApp
/Encryption/GarageApp/Program.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; namespace GarageApp { class Program { static void Main(string[] args) { X509Certificate cert = null; ...
d9a854b43e7da1d9f21041ff1b2decd76e346730
C#
mrdrbob/parsing
/src/PageOfBob.Parsing.Tests/RulesTests.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using Xunit; using static PageOfBob.Parsing.Rules; using static PageOfBob.Parsing.Sources; using static PageOfBob.Parsing.StringRules; namespace PageOfBob.Parsing.Tests { public class RulesTest { [Fact] public void StringSouceWo...
c367c56ef83e959ea8d3aaf018b85bddb56f4b8f
C#
Anzzhhela98/CSharp-Fundamentals
/TextProcessing/Text Processing - Exercise/08. Letters Change Numbers/Program.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _08._Letters_Change_Numbers { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' ', StringSplitOptions.RemoveEmptyEntries); double ...
1302ce1349da52d81a4c3eac5fb60a8ccc50f76a
C#
washing0432/LightQueue
/LightQueue/QueueManager.cs
2.75
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using HZ.Logging.NlogWrapper; using Newtonsoft.Json; namespace LightQueue { public class QueueManager { private static readonly AutoResetEvent QueueTaskEvent = new Au...
a7451ad65ce8ac08a4d1b3240ddf0ff04f90e92f
C#
CMarth/BalloonAdventure
/SwordfishAI/SwordfishAI/SwordfishAI/Fire.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; nam...
d343ae6985f6ce47600c06d293e60bcd35af7485
C#
shendongnian/download4
/first_version_download2/112518-7770372-17240854-2.cs
3.3125
3
public class Employee { public string Name { get; set; } public int Id { get; set; } public bool IsChecked { get; set; } public override string ToString() { return Name; } } public partial class Form1 : Form { // Keep a bindable li...
84d054294693eb79fdbb726b2dc1ca0a728c3708
C#
EFIMCHIK-AA/SZMK
/SZMK/SZMK/Request.cs
2.734375
3
using System; using Npgsql; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.Threading.Tasks; namespace SZMK { /*Класс реализованный для выполненя запросов к базе данных, практически все запросы к базе реализованы в этом классе*/ public class Req...
76db4529e422e1bea0af5ee7d1ac4cdca86debf6
C#
RKGekk/BasicWavefrontObjRasterizer
/BasicRender/Engine/RPolygon.cs
2.78125
3
using MathematicalEntities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BasicRender.Engine { public class RPolygon { public enum RasterType : int { FlatColor, InterpolatedColor, Textured...
079db74d461294b33f18a41e4aa9a9b9329df0d3
C#
guglhupf18/SoftwareDesign
/Endabgabe/Main/Maptile.cs
3.234375
3
using System; using System.Collections.Generic; namespace TextAdventure { public class Maptile { public Vector2 position; public List<Character> characters; public List<Item> items; public string description; public bool accesible; public Maptile() { ...
e799a190e042f482184afb51909d254d15824369
C#
baiumbg/assignments
/software-university/beginner-c-sharp/7. CSharp-Advanced-Topics-Homework/07.MatrixOfPalindromes/MatrixOfPalindromes.cs
3.734375
4
using System; class MatrixOfPalindromes { static void Main() { int rows = int.Parse(Console.ReadLine()); int columns = int.Parse(Console.ReadLine()); string[,] palindromes = new string[rows, columns]; for (int i = 0; i < rows; i++) { for (int j = ...
9af1f04fdf2ae94f7c64f5fd30d66ce350be1e28
C#
drozddmitriy/Game15
/Image_game/Image_game/Form1.cs
2.6875
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 Image_game { public partial class Form1 : Form { public Form1...
23317d84eaa5fe26d9b79eebcdcaffa1a5d7e388
C#
pierregillon/Mvvm.Async
/src/Mvvm.Async.Tests/AsyncCommandShould.cs
2.609375
3
using System; using System.Threading; using System.Threading.Tasks; using System.Windows.Input; using Moq; using NFluent; using Xunit; namespace Mvvm.Async.Tests { public class AsyncCommandShould { private static readonly Func<Task> SOME_ACTION = () => Task.Factory.StartNew(() => { }); ...
9c215d3be721c518db96174f36bae1f12912a79b
C#
artemshuba/yandex-money-sdk-net
/Yandex.Money.Api.Sdk/Requests/OperationHistoryRequest.cs
2.609375
3
using System; using System.Collections.Generic; using Yandex.Money.Api.Sdk.Interfaces; using Yandex.Money.Api.Sdk.Requests.Base; using Yandex.Money.Api.Sdk.Utils; namespace Yandex.Money.Api.Sdk.Requests { /// <summary> /// view the history of transactions /// <see cref="http://tech.yandex.ru/money/doc/dg/...
1f51f8cffeb99ff66e01dcdf9ef3c7ede3d06c29
C#
harshadmehta001/Tracker
/KRA.DataSql/KraParametersDal.cs
2.828125
3
using KRA.Data.Repository; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using KRA.Entities; namespace KRA.DataSql { public class KraParametersDal : IKraParametersDal { public bool AddParameter(KraParameters Parameter) { ...
9132982cfff7a2e8949e36b4ac9a6d5805bda48f
C#
RokitSalad/Helpful.CircuitBreaker
/Helpful.CircuitBreaker/Exceptions/CircuitBreakerException.cs
3.03125
3
using System; using Helpful.CircuitBreaker.Config; namespace Helpful.CircuitBreaker.Exceptions { /// <summary> /// /// </summary> public abstract class CircuitBreakerException : Exception { /// <summary> /// Initializes a new instance of the <see cref="CircuitBreakerException"/> cl...
17812cd7776a4099a1cbb5728c8f4f1096bcf89b
C#
TanukiSharp/StudioPostEffect
/src/Plugins/ModelScenePlugin/NodeTransform.cs
2.921875
3
using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using Microsoft.DirectX; using System.Xml; namespace ModelScenePlugin { /// <summary> /// Primitive transform types. /// </summary> public enum TransformType { /// <summary> /// Translation transform. /// </summar...
d1811d92edaea9ee9d83cd8c06e797d0784d3086
C#
novar0/Novartment.Base
/Novartment.Base.Net/Net/BinaryTcpConnection.cs
2.65625
3
using System; using System.Diagnostics; using System.Threading; using Novartment.Base.BinaryStreaming; namespace Novartment.Base.Net { /// <summary> /// Установленное TCP-подключение, отслеживающее полное время и время простоя. /// </summary> public class BinaryTcpConnection : ITcpConnection, IDis...
928bf6082408be39f074aea0af66e8b18b39157c
C#
NicholasIbarra/Datastructures
/Algorithms/Solutions/ContinuousSubarraySum.cs
3.40625
3
using System; using System.Collections.Generic; using System.Text; namespace Datastructure.Algorithms.Solutions { // https://leetcode.com/problems/continuous-subarray-sum/ class ContinuousSubarraySumSolution { public static void Test() { ContinuousSubarraySumSolution solution =...
5f4e283804e9e81867d00ddf6073f7085d4acc35
C#
MukhametovaVictoria/Mindbox-Fullstack---C-React-MSSQL-
/FigureSquare/FigureSquareTests/Triangle.cs
3.359375
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; namespace FigureSquare.Tests { [TestClass] public class TriangleTests { [TestMethod] public void Square_SidesAre0_0Return() { //arrange Triangle triangle = new Triangle(0, 0, 0); ...
6b69f1e301a76177695577a7538ea28288650a1f
C#
imclab/geometry3Sharp
/mesh/MeshConnectedComponents.cs
2.703125
3
using System; using System.Collections; using System.Collections.Generic; namespace g3 { public class MeshConnectedComponents { public DMesh3 Mesh; public struct Component { public int[] Indices; } public List<Component> Components; public MeshC...
bafca86ddd0271305cbe55d0cd42eaf69e4cbefa
C#
frblondin/GitObjectDb
/src/GitObjectDb/Comparison/MergeChangeEqualityComparer.cs
2.6875
3
using System; using System.Collections.Generic; namespace GitObjectDb.Comparison; internal sealed class MergeChangeEqualityComparer : IEqualityComparer<MergeChange> { private MergeChangeEqualityComparer() { } public static MergeChangeEqualityComparer Instance { get; } = new MergeChangeEqualityCompare...
8284b8ed54de5e1bb4cbe4d3c261a3817330b6ed
C#
robisonjdmr/ScriptsCSharp
/Colecoes/ColecoesSet.cs
3.25
3
using System; using System.Collections.Generic; using System.Text; namespace CursoCSharp.Colecoes { class ColecoesSet { public static void Executar() { var livro = new Produto(" Games Of Thrones", 49.9); var carrinho = new HashSet<Produto>(); carrinho.Add...
b7798119d11861079936b0c83f75051abf1e1627
C#
0xF6/fido2-net-lib
/ExternalLibs/CBOR/PeterO/BigIntegerExtra.cs
2.53125
3
#pragma warning disable CS3021 // Type or member does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute /* Written by Peter O. in 2013. Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ If you like this, you should donate to P...
6812373bbc21f43509df21badc1646f54a803a04
C#
fluentassertions/fluentassertions
/Src/FluentAssertions/Formatting/EnumerableValueFormatter.cs
3
3
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using FluentAssertions.Common; namespace FluentAssertions.Formatting; public class EnumerableValueFormatter : IValueFormatter { /// <summary> /// The number of items to include when format...
8cf78d320b2b32e0200c4579164ce1fc04a148b6
C#
ElovaMor/CS-Basics
/HomeWork2/HW_12/Program.cs
3.59375
4
/* * Студент: Барановва Виталина Васильевна * Задача 2.2 * Написать метод подсчета количества цифр числа. */ using HW_11; using System; namespace HW_12 { class Program { static int Quantity(int n) { int count = 0; while (n != 0) { count ++; n = n / 10; // так как n-целое, деление целочис...
3f70e985baed1a0546952105924612690e10e765
C#
Nehta/TrainingProjects
/TrainingProjects/ConsoleApplication7/ConsoleApplication7/ShopModels/Projector.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; using System.IO; namespace ConsoleApplication7.ShopModels { class Projector { [Key] public int projectorId { get; set; } publ...
2b57d764e2edfdbafb37fffb8e5951ddf5dd9cec
C#
matthew-a-thomas/gps-logger
/Common/Extensions/AsyncExtensions.cs
3.1875
3
using System; using System.Reactive.Linq; using System.Threading.Tasks; namespace Common.Extensions { public static class AsyncExtensions { /// <summary> /// Turns the given asynchronous functions into an IObservable /// </summary> public static IObservable<T> ToObservable<T>( ...
44b029e8860fbb00b4dbfaaabd13b4a37634bafe
C#
tr00per92/SoftUni-Projects
/C-Sharp-Projects/Algorithms/RecursiveAlgorithms/RecursiveAlgorithms/Combinations.cs
4.03125
4
namespace RecursiveAlgorithms { using System; public static class Combinations { private static int selectCount; private static int fromCount; private static int[] loops; public static void GenerateWithRepetitions(int elementsCount, int elementsToSelect) { ...
554efb02facdd7b2a3e9958802e5087fd10ed8ad
C#
aarondalao/CSharpOOPPractice
/OOPPractice/practice4/arrays/Program.cs
3.984375
4
/* An array stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type stored at contiguous memory locations. Instead of declaring individual variabl...
9d2715328ef6e87c97ff7b3d594ed2ec861ace89
C#
GabrielCODP/AEDTreino
/TrabalhoAED/Questoes/Questao5.cs
3.6875
4
using System; using System.Collections; using System.Collections.Generic; using System.Text; namespace TrabalhoAED.Questoes { public static class Questao5 { static void ApagarArrayList2(ArrayList origem, int inicio, int qtde) { for (int i = inicio; i <= qtde ; i++) { ...
77b691640470e123d1f50b0a1bda555c64749c20
C#
Elcan-code/WinForm-online-book-library
/online-book-library/Form1.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 online_book_library { public partial class Form1 : Form { public Form1() ...
016ba1d2bd438f0b2a3aa8d40fa0e78bbc9c1426
C#
KoolmeisterT/Kodutood
/Programmeerimise alused/Kodutöö01/Ülesanne3/Ülesanne3/Program.cs
3.28125
3
using System; namespace Ülesanne3 { class Program { static void Main() { double num1, num2, num3; Console.WriteLine("Kui soovid leida kolme arvu keskmist, siis sisesta esimene arv "); num1 = Convert.ToDouble(Console.ReadLine()); Console.WriteLine...
a924a46d50f862a8954e217a22044151a4d31178
C#
wugelis/WebCoreApi21Test1
/Controllers/ValuesController.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using WebCoreApi21Test1.Models; namespace WebCoreApi21Test1.Controllers { [Route("api/[controller]")] [ApiController] public class ValuesCon...
1d36e304635c2c61668d3736c9d8bd32b0dc30b4
C#
reshmisaji/dotnet_learnings
/FirstWebApp/FirstWebApp/Startup.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; namespace FirstWebApp { public class Startup { priva...
a42270762db97a36765d6adb8dc012afe7c02145
C#
amyniovi/PatternsSuck
/FactoryPattern/Program.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FactoryPattern { class Program { static void Main(string[] args) { var carName = args[0]; var factory = new AutoFactory(); IAuto c...
17fd56da51178a1f057c7c8f17fdee2eec1c3dde
C#
shendongnian/download4
/code8/1459374-39882796-128646358-1.cs
2.765625
3
foreach (DataRow item in dt.Rows) { DataGridViewComboBoxCell ContactCombo = (DataGridViewComboBoxCell)(item.Cells[0]); ContactCombo.DataSource = // your contacts datasource; ContactCombo.DisplayMember = "name of field to be displayed like ...
bbbf33d0f711fbf6437cf5e68edf6bf0f6ec2588
C#
prasadgit3d/TreasureHunt
/Unity/Assets/Scripts/ToolBox/TaskSystem/RepetitionTask.cs
2.59375
3
using UnityEngine; using System.Collections; using SillyGames.SGBase.TaskSystem; namespace SillyGames.SGBase.TaskSystem { public class RepetitionTask : Task { [SerializeField] private Task m_targetTask = null; public Task TargetTask { get { ...
4047e9ccb1dfd7b3b44e0c8ec223c4635f1def91
C#
daverave1212/graveyard-man
/Assets/Scripts/Gameplay/PlaneTriangleGetter.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /* * How to use: * .DestroySquareAtPosition( Vector3 ) // * .DestroyTriangleAtPosition( Vector3 ) // Returns true if a triangle was found; * */ public class PlaneTriangleGetter : MonoBehaviour { public static PlaneTr...
2d0669a4d604576feed0f77379fdb3e95a62d0d8
C#
thunderstormwang/PlayGround
/NetCoreWebApiPlayGround/NetCoreWebApiPlayGround/ActionFilters/OtpValidationAttribute.cs
2.75
3
using System.Diagnostics; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Logging; using NetCoreWebApiPlayGround.Models; namespace NetCoreWebApiPlayGround.ActionFilters { public class OtpValidationAttribute : ActionFilterAttribute { private readonly ILogger<OtpValidationAttribute> _...
8f8024b9cdfcf1e68ae3d9b99cd016ca73252950
C#
israelKusayev/Cellular-management-system
/Server/Managers/PackageManager.cs
2.53125
3
using Common.DataConfig; using Common.Enums; using Common.Exeptions; using Common.Interfaces.ServerManagersInterfaces; using Common.Logger; using Common.Models; using Common.RepositoryInterfaces; using Db; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Server.Managers {...
3169fe6a59625478b66352c4d3446bfedd2cfad0
C#
Pazzobg/02.01.Programming-Fundamentals-Class
/00.Exam-Preparation/12. PF Extended Exam 30APR17/Exam30APR17/04.WormsWorldsParty/WormsWorldsParty.cs
3.546875
4
namespace _04.WormsWorldsParty { using System; using System.Collections.Generic; using System.Linq; public class WormsWorldsParty { public static void Main() { var wormsTeams = new Dictionary<string, Dictionary<string, long>>(); var namesList = new List<stri...
5d01a04a618adf5f34e6ef0c0a7b2e098ba78f1c
C#
Hayao-H/Nicome
/WWW/Channel.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using AngleSharp.Html.Parser; namespace Nicome.WWW { class Channel { /// <summary> /// IDのリストを取得する /// </summary> /// <param name="channnel"></param> ...
8041e0b2a7ea83a07268566c5717e83b3e501fc2
C#
rurtubia/ScrollingXNA
/ScrollingXNA/ScrollingXNA/Background.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; namespace ScrollingXNA { class Background { public Texture2D textura; public Rectangle rectangulo; public void Draw(SpriteBatch ...
77388fd76aad8be7898d7bc3ff2cdc4f78cf9d4c
C#
phanikumaruppuluri/StrategyPattern
/StrategyPattern/StrategyPattern/LowHighStrategy.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StrategyPattern { public class LowHighStrategy : IStrategy { /// <summary> /// Caluculation of Low high Startegy /// </summary> /// <param ...
e1bc690db9b1570582c2bd44321e514691ac7a5c
C#
jonasnilsson83/Bookstore
/BookstoreData/BaseDataMappper.cs
3.171875
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BookstoreData { public class BaseDataMapper { /// <summary> /// Get string value from a dataset row /// </summary> /// <param name="d...
9f8a455fe9c1b6b1487257a36a3169cef1f7a34b
C#
seaboy1234/Pantheon
/Pantheon.Tests/Server.Config/XmlTests.cs
2.59375
3
using System.Xml.Linq; using Pantheon.Server.Config; using Pantheon.Server.Config.Xml; using Xunit; namespace Pantheon.Tests.Server.Config { public class XmlTests { const string Data = @"<Object> <TestValue>Hello</TestValue> <TestNode Attributes=""Simple""> <TestItem Something=""MyValue"...
aafd2a7ab8bb8cb411ca8f680ebbf95b5fcedd27
C#
bytting/gammalab
/GammaGUI/Utils.cs
2.8125
3
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.Drawing; using System.Drawing.Printing; using System.Threading; namespace GammaGUI { public class Utils { public static string MakeFloat(string str) {...
be81ee564f363d96a1f8a24932bc3361dd1f368f
C#
ConnorUllmann/Basics
/Basics.Test/MarkovChainTests.cs
3.328125
3
using System; using System.Collections.Generic; using System.Text; using System.Linq; using Xunit; namespace Basics.Test { public class MarkovChainTests { /// <summary> /// Adds names one at a time, counting consecutive duplicates. /// If a name is different from the previous, then a n...
d31ac88c4f056721fde4bf20dffa830deffb585d
C#
randianb/magic-media
/src/Services/Core/AlbumSummaryService.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using MagicMedia.Store; using Serilog; namespace MagicMedia { public class AlbumSummaryService : IAlbumSummaryService { private readonly IMediaStore _mediaStore; private read...
0b93f84f9d162d7101a0a108f817d2904a22c60d
C#
RoxguelDevs/LoLCurrentSong
/Modules/Config.cs
2.75
3
using System; using System.IO; namespace LoLCurrentSong.Modules { static class Config { public static string AppName = "LoLCurrentSong"; private static string _CurrentDirectory; private static readonly string _File = "config.ini"; public static void LoadConfig() { ...
372570ec670c264446c078905ae6f25d8d86bb13
C#
bwong365/KeepItDRY
/KeepItDRY.BLL/Services/PetService.cs
2.75
3
using System; using System.Collections.Generic; using AutoMapper; using KeepItDRY.BLL.Models; using KeepItDRY.DAL.Repositories; namespace KeepItDRY.BLL.Services { public class PetService : IPetService { private readonly IPetRepository _repo; private readonly IMapper _mapper; public Pe...
435182c750fe4cebe945898813231a2b9be55390
C#
JustoSenka/MouseRobot
/RobotRuntime/Graphics/Text/TextDetector.cs
2.65625
3
using System.Collections.Generic; using System.Drawing; namespace RobotRuntime.Graphics { public abstract class TextDetector { public abstract string Name { get; } public abstract Point[] FindTextPosition(string text, Bitmap observedImage, float threshold = 0.80f); public abstract IEn...
7c8dcd076587cba5ffd03bf402e08851b1dcfbfe
C#
shendongnian/download4
/first_version_download2/346949-29479830-87506496-2.cs
3.171875
3
var dic = new ConcurrentDictionary<DateTime, int>(); dic[new DateTime(2015, 4, 5, 7, 0, 1)] = 1; dic[new DateTime(2015, 4, 5, 7, 0, 2)] = 2; dic[new DateTime(2015, 4, 5, 7, 0, 3)] = 3; dic[new DateTime(2015, 4, 6, 7, 0, 1)] = 5; dic[new DateTime(2015, 4, 6, 7, 0, 2)] = 6; dic[new DateTime(2015, 4, 6, 7, 0, 3)] =...
3cc04460abbb5a48747b73731fd1edf19075029b
C#
sernick/Pathfinder
/Pathfinder/Pathfinder/Shortcut.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Windows; using Pathfinder.Analysis; using Pathfinder.GraphTheory; using Pathfinder.Reading; namespace Pathfinder { public class Shortcut { #region Methods private static void ClearIntermediateVertices(List<List<...
cbe911832f753fb54d4627f06292a7dca8a324ee
C#
AnilCarnival/Crowe-Hello-World
/CroweHelloWorldWeb.UnitTests/UnitTests/HelloWorldDataServiceUnitTests.cs
2.671875
3
 namespace CroweHelloWorldWeb.Tests.UnitTests { using System; using System.Configuration; using System.IO; using CroweHelloWorldFoundation.FrameworkWrappers; using CroweHelloWorldFoundation.Mappers; using CroweHelloWorldFoundation.Models; using CroweHelloWorldFoundation.Resources; using...