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
71a7003a302a583bb66d5621ffe973648887f862
C#
xarial/xcad
/src/SolidWorks/Base/IconSpec.cs
2.609375
3
//********************************************************************* //xCAD //Copyright(C) 2021 Xarial Pty Limited //Product URL: https://www.xcad.net //License: https://xcad.xarial.com/license/ //********************************************************************* using System; using System.Drawing; using Xarial...
4437bbbd633acd711703fbe16d82c375f2f022a8
C#
kirillkirill1983/ITEAProTask-
/Chapter_1/Task_2/Program.cs
3.859375
4
using System; namespace Task_2 { class Program { static void Main(string[] args) { Calculator<int, int> calculator = new Calculator<int, int>() { InitOne = 2, InitTwo = 3 }; Console.WriteLine(calculator.ToString()); double resultPlus = calculator.Plus(); ...
2ea5d8173d35fe014c1bfce08421a41ecae91cc0
C#
shendongnian/download4
/code11/1953614-59302870-211068326-2.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.Xml.Linq; namespace ConsoleApplication1 { class Program { const string FILENAME = @"c:\temp\test.xml"; static void Main(string[] ar...
19368a6841703c1efd19666f51c534bc6ab1ac52
C#
YogurtTheHorse/StrBot
/YogurtTheBot.Game.Core.Controllers.Language/Expressions/End.cs
2.53125
3
using YogurtTheBot.Game.Core.Controllers.Language.Parsing; namespace YogurtTheBot.Game.Core.Controllers.Language.Expressions { public class End : Terminal { public End() : base(string.Empty) { } public override ParsingResult? TryParse(ParsingContext ctx) { r...
86eec4aa953b0901ce1b5be681fcdf9efd2081e6
C#
xxrepo/pcs
/MAP2013/PCSComMaterials/Inventory/BO/OpenAndClosePeriodBO.cs
2.625
3
using System; using System.Linq; using PCSComUtils.DataAccess; using PCSComUtils.DataContext; namespace PCSComMaterials.Inventory.BO { public class OpenAndClosePeriodBO { /// <summary> /// Close the period by calling store procedure. /// Deactivate selected period and activ...
270e1cf4db76040f74c798c65213aa5a1591f156
C#
hubs017/Kimura-Model
/DnaBase.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Trees { public class DnaBase { public static DnaBase A = new DnaBase(DnaBaseEnumeration.A); public static DnaBase C = new DnaBase(DnaBaseEnumeration.C); public ...
57314a6baf960484ff2127150f7eb6c9877aae24
C#
leewoody/buguva
/Studijos/OS/KernelPrimityves/Operacine sistema/NativeTypes/Register3Bytes.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { public class Register3Bytes { byte[] value = new byte[3]; public Register3Bytes() { value[0] = 0; value[1] = 0; valu...
1c4d0c4745a8cbf9d7149b37e56263696f3cf3de
C#
DeanoBurrito/SemptyServ
/SemptyModule.cs
2.59375
3
using System; using System.Collections.Generic; using CliMod; namespace SemptyServ { [CLIModule("Sempty", 1)] public static class SemptyModule { static SMTPServer localServer; [CLICommand("about", "Displays info about SemptyServ")] public static void GetAbout(string[] args)...
462ebe7d1bb4349e1376e6dea74ea15ce08368d8
C#
BrettKoenig/BeginningCSharp
/BadExample.Service/Models/InventoryItem.cs
2.9375
3
using System; using System.Text.RegularExpressions; namespace BadExample.Service.Models { public class InventoryItem { public string Name { get; private set; } public int Id { get; private set; } public string Type { get; private set; } public int Amount { get; private set; } ...
47c4a1da1d2290e0cee11daf458282bf3d90bd8a
C#
Anirban166/C_focused
/C#/Delegates/Callmath.cs
3.984375
4
using System; public class MathOperations { public static double Multiply(double value) { return value * 2; } public static double Square(double value) { return value * value; } } delegate double DoubleOp(double x); class Application { static void Main() { Dou...
4a7db1e6fb90408a03e62d60a704e180fd7707fe
C#
yellowisher/ThetaStar
/Assets/1_Scripts/PathfindingManager.cs
2.734375
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class PathfindingManager : MonoBehaviour { [SerializeField] private Transform tileHolder; private Node[,] nodes; private int width; private int height; private Vector3 min; private Vector3 max; private float g...
a140c977b6ecfc5a4290685c91328833a73b05e0
C#
Bazidoa/.netpractices
/Week04/ExtensionMethodsProba/ExtensionMethodsProba/ExtensionMetodProbaforString.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExtensionMethodsProba { public class ExtensionMetodProbaforString { public string myText { get; set; } public char myChar { get; set; } public ExtensionMetodPr...
633dc8b4959c7314cc74b101209143fdf9b2c243
C#
kimphg/DataManagerTools
/ShipDensityGenerator/ReadFileJsonFirst/Object/Desnity.cs
2.921875
3
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace ReadFileJsonFirst.Object { class Density { priva...
27c13240a12f72c0b34f613d94545db11af3a522
C#
ramesaliyev/discrete-math
/HW_03_Project_Graph_Coloring/HW_03_Project_Graph_Coloring/Program.cs
3.296875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace HW_03_Project_Graph_Coloring { // Type Definitions using StudentsByLecture = Dictionary<string, List<string>>; // {lectureName:studentList} using ColoredGraphDetails = Tuple<int, int[]>; // (colorCount, {vertexIn...
d6bfb046912f5089edd5b808fb752d439f705d1e
C#
zhangjunbo-super/C-
/Register.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 test7 { public partial class Register : Form { String role = "student"; ...
573fe44f568eec742190ed4cecba8144e0054bfb
C#
horato/RoxorBot
/RoxorBot/Data/Base/ViewModelBase.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using Prism.Mvvm; namespace RoxorBot.Data.Base { public abstract class ViewModelBase : BindableBase { private Dictionary<string, object> _propertyD...
a99515ad9eda66af568ae3baa8430667eb889082
C#
amarish-kumar/video-collection
/src/Backend/VideoCollection/Features/Blog/GetAuthorsQuery.cs
2.71875
3
using MediatR; using VideoCollection.Data; using VideoCollection.Utilities; using System.Collections.Generic; using System.Threading.Tasks; using System.Linq; using System.Data.Entity; namespace VideoCollection.Features.Blog { public class GetAuthorsQuery { public class GetAuthorsRequest : IRequest<Get...
0c4db39aeba44f583e81c1df302377c04ae01487
C#
jalbaiulia/C-Fundamentals
/Syntax/MyHomework/Person.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyHomework { class Person { private string lastname; private string firstname; private string dateOfBirth; public Person(string lastname, string first...
603fe060f207ab19d6b017cc87ab8ad2ba5949a3
C#
vhchau20/BioEdVR-Vincent
/Assets/Scripts/CellChanger.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CellChanger : MonoBehaviour { public Material translucent; public Material original; private Renderer[] cellObjects; private Material[] cellMaterials; private bool originalMat = true; p...
66e066d51c2781469fce5db57cf4af98448f8716
C#
GeorgeMi/AzurePollApp
/WebAPI/Models/CategoryModel.cs
2.828125
3
/* Copyright (C) Miron George - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential * Written by Miron George <george.miron2003@gmail.com>, 2016 */ using DataTransferObject; using Microsoft.Practices.Unity; using System.Collections.Generic; ...
e0532aee01b9d16e6cc5525f1097fd00677f34a5
C#
gilbertngandu/hospital-management-emr
/Code/Websites/DanpheEMR/Services/EmailService.cs
2.578125
3
using SendGrid; using SendGrid.Helpers.Mail; using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace DanpheEMR.Services { public class EmailService : IEmailService { protected const String API_KEY = "SG.G3NPSEtGTy...
993224c6d72b637c76427724a88e637d6c8d44d7
C#
rowanlovejoy/pec-project
/PEC-App/Assets/Scripts/Models/AirSaturationTable.cs
3.109375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// Acts as a data container for air saturation values /// </summary> public class AirSaturationTable { /// Holds all the values - first key returns a dictionary with all relevant data, second key returns the appropriate...
dfd8fba3df7947456c28db4e74ac778ecc7aa1ec
C#
granstel/botframework-solutions
/lib/csharp/microsoft.bot.builder.solutions/microsoft.bot.builder.solutions/Skills/SkillRouter.cs
2.796875
3
namespace Microsoft.Bot.Builder.Solutions.Skills { using System.Collections.Generic; using System.Linq; public class SkillRouter { private List<SkillDefinition> _registeredSkills; public SkillRouter(List<SkillDefinition> registeredSkills) { // Retrieve any Skills t...
4fe8c5114a5a7913fd995054c4fe3ce222a23874
C#
AtomicPlatform/Core
/Atomic.UnitTests/Core/FunctionTests.cs
2.59375
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Atomic.Core; using System.Reflection; namespace Atomic.UnitTests.Core { [TestClass] public class FunctionTests { private IFunction _function = null; public delegate void MethodDef(int num); [TestInitialize] ...
30fb9dad7a44101fb38b2e74b879a50fd333b094
C#
rtorsvik/ROVInterface
/ROVInterface/ROVInterface/Source/Videostream/MPlayer.cs
2.5625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; class MPlayer { Process mplayer; //prosess to tun mplayer /// <summary> /// Constructor /// </summary> /// <param name="pipeName">The name of ...
70db9029648c87d8d61cff19d828d6ac2da739de
C#
lingseter/ShaHua
/Utility/WebHelper.cs
2.59375
3
using System.Collections.Generic; using System.Net; using System.Text; using System.Web; using System.Management; namespace Utility { public class WebHelper { public static string GetUserHostAddress() { return GetUserHostAddress(HttpContext.Current.Request); } publ...
f80cb015c2a48c5d459bf318b130f77d6d72115c
C#
RM-801/DMTQ-Tools
/bytes_to_text/Program.cs
2.953125
3
using System; using System.IO; using System.Linq; using System.Text; namespace bytes_to_text { class Program { static void Main(string[] args) { //// Test //string fstr = "141.0003"; //float fnum = Single.Parse(fstr); //Console.WriteLine(fnum);...
a4f1ba2815719b868d8b7cfb4bd4d9ddfe4f8f2c
C#
rettoph/Guppy
/src/Guppy.Common/Implementations/Bus.cs
2.65625
3
namespace Guppy.Common.Implementations { internal class Bus : IBus, IBroker, IDisposable { private const int DefaultQueue = 0; private readonly IBroker _broker; private readonly IBusQueue[] _queues; private readonly Dictionary<Type, IBusQueue> _typeMap; private readonly...
e140c02eaa5719aacae30be9e9ae208f89c8f226
C#
nickSdl/trainee
/Kovalskyi/BasicTrainings/Lesson5/Buffer/MyQueue.cs
3.421875
3
using System; using Lesson5.Interfaces; namespace Lesson5.Buffer { public class MyQueue<T> : Buffer<T>, IMyQueue<T> { private int head = 0; private int tail = 0; private int maxLength; public MyQueue(int length) { this.maxLength = length + 1; this.array = new T[length]; ShowBufferState showState...
056b4b1cc03edf15dc872e04839e83c468f8699c
C#
johnnyeven/apolloX-server
/GameServer/TCPServer/Wooha/Utils/Point.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Wooha.Utils { class Point { private int _x; private int _y; public Point(int x, int y) { this._x = x; this._y = y; } public Point(): this(0,...
729ded8eefcdbb75636cf38d4d8bd96a02a55c9b
C#
VincentTr4n/ComputerStore
/DAOClassesLibrary/PurchaseBillDAO.cs
2.71875
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using MyObject; using DAOClassesLibrary; using MyClassesLibrary; namespace DAOClassesLibrary { public class PurchaseBillDAO : IDAO<PurchaseBill> { pub...
4b8aa851b80826a032df890ea276c4460ef61c96
C#
dchakov/High-Quality-Code-HomeWork
/06-CtrlFlowConditionStateLoops/Task03.RefactorLoop/RefactorLoop.cs
3.828125
4
namespace Task03.RefactorLoop { using System; public class RefactorLoop { public static void Main() { bool isFound = false; int[] array = new int[100]; array[40] = 40; int expectedValue = 40; for (int i = 0; i < 100; i++) ...
17246db28cc40f2a647368a78e787eb585cd9f29
C#
gmomartins/RulesDoer
/src/RulesDoer.Core/Serialization/DMNTransformer.cs
2.515625
3
using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Xml; using System.Xml.Serialization; using Microsoft.Extensions.Logging; using RulesDoer.Core.Transformer.v1_2; namespace RulesDoer.Core.Serialization { public class DMNTransformer { pri...
26c680642327d769c9bafde36e1d9734dda4eaa5
C#
baku2san/logger
/Services/Producers/PlcMemoryValue.cs
2.828125
3
using System; namespace loggerApp.Producers { public class PlcMemoryValue { /// <summary> /// Object として、各型でそのまま入れ、DBへもそのまま流すようにする /// </summary> public Object Value {get; set;} public PlcMemoryInfo PlcMemoryInfo { get; set; } public PlcMemoryValue(PlcMemoryIn...
0c920c9c85e50c1144b05913ba74b2d8a10bc273
C#
Floxnu/Leetcode
/UniquePaths2(63).cs
3.265625
3
public class Solution { public int UniquePathsWithObstacles(int[][] obstacleGrid) { int[,] pathsGrid = new int[obstacleGrid.Length, obstacleGrid[0].Length]; pathsGrid[0,0] = 1; if(obstacleGrid[0][0] == 1) { return 0; } if(obstacleGrid[obstacleGrid.Length - 1][obstacleGrid[0]...
81e31cc323765096332d4b1abe7e6c213016cb30
C#
llenroc/Cwq-LeetCode
/CSharpImpl/N0301_RemoveInvalidParentheses.cs
3.703125
4
using System; using System.Collections.Generic; namespace CSharpImpl { /// <summary> /// link: https://leetcode.com/problems/remove-invalid-parentheses/ /// /// Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. /// Note: The inpu...
41ea585a9c10ad7786fb8ba6ce73b53230482e04
C#
944332213/PaperIndustry
/Nsfttz.SystemExtension/Data/DataTableShift.cs
2.640625
3
using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace System.Data { /// <summary> /// DataTable转换 /// </summary> public static class DataTableShift { private static MethodInfo _toEntityListMethod; internal static MethodInfo GetT...
1b797507fca12961d18f8709f9fe76670c537c64
C#
TheCoreDump/CS-SmsXmlReader
/SmsXmlReader/SmsNode.cs
2.765625
3
using System; using System.Collections.Generic; using System.IO; using System.Security.Cryptography; using System.Xml.Linq; namespace SmsXmlReader { public class SmsNode : MessageBase { public SmsNode() : base() { } public string Body { get; set; } public...
da195a9a7a3d1003c7284971569bd03135044ad4
C#
jmsaucier/VideoAdvertising
/VideoAdvertising.DataAccessLayer/DataAccessorImplementations/UserRepositorySQLImplementation.cs
2.546875
3
using System; using System.Collections.Generic; using VideoAdvertising.Common.Interfaces.DataAccessInterfaces; using VideoAdvertising.Common.Interfaces.ObjectInterfaces; namespace VideoAdvertising.DataAccessLayer.DataAccessorImplementations { public class UserRepositorySQLImplementation : IUserRepository { ...
83b8d8e55a73b418e306133d762ef72df40549cc
C#
VladimirDimov/MvcTemplateDbFirst
/Source/Data/TourPoc.Data/ApplicationDbContext.cs
2.515625
3
namespace TourPoc.Data { using System.Data.Entity.Validation; using System.Diagnostics; public class ApplicationDbContext : TourPocDbFirstEntities { public override int SaveChanges() { try { return base.SaveChanges(); } ca...
31755ef3b0fa247aa116be3f1b2fc4126d5d501e
C#
dotnet/extensions
/src/Libraries/Microsoft.Extensions.Http.Resilience/Resilience/HttpStandardResilienceOptions.cs
2.53125
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.ComponentModel.DataAnnotations; using Microsoft.Extensions.Http.Resilience.Internal; using Microsoft.Extensions.Options; using Polly.Timeout; namespace Mi...
b327222fb1dd831ce637b609a0b4761a883a2986
C#
allugit/StasisEngine
/StasisGame/StasisGame/UI/ProgressBar.cs
2.515625
3
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using StasisCore; namespace StasisGame.UI { public class ProgressBar { private Screen _screen; private SpriteBatch _spriteBatch; private UIAlignment _alignment; private int _xOffset; pr...
7cecbd84596ba42794d596ce1da1b6b1baece4ff
C#
stilux/eShop
/src/AuthServer/AuthServer/Validators/UpdateUserDtoValidator.cs
2.578125
3
using AuthServer.Models; using FluentValidation; namespace AuthServer.Validators { public class UpdateUserDtoValidator : AbstractValidator<UpdateUserDto> { public UpdateUserDtoValidator() { RuleFor(u => u.FamilyName).NotNull().MinimumLength(2); RuleFor(u => u.GivenName)...
f5fe4e679f0eba41dd0620081427fee5a14c97a7
C#
VeselinBPavlov/programming-fundamentals
/15. Lists - Exercises/ArrayManipulator/StartUp.cs
3.65625
4
namespace ArrayManipulator { using System; using System.Linq; public class StartUp { public static void Main() { var numbers = Console.ReadLine() .Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) .Select(int.Parse) ...
be6c1175d6d91039dba0fd56f94939a7184dba4f
C#
neeohw/csharp-argon2
/csharp-argon2/PasswordHasher.cs
2.796875
3
/* * The MIT License (MIT) * * Copyright (c) 2016 Kevin Spinar (Alipha) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
e7905fe688f99a15386ef9793c11c1de6661ffbd
C#
Waleed-ak/AopSln
/Aop/Helper/Relax.cs
2.96875
3
namespace Tools { using System; public class Relax<T> { #region Private Fields private readonly Func<T> _Func; private readonly object _Lock = new(); private bool _HasValue; private T _Value; #endregion Private Fields #region Public Constructors public Relax(Func<T> func) => _Fu...
d10395be5cad0520faa24ed061a6f194ef0afbf2
C#
sivukhin/GameTask
/GameTask/Button.cs
2.5625
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using DrawingExtensions; using Geometry; using Physics; using Point = Geometry.Point; namespace GameTask { class Button : GameObject { private static readonly Image ButtonImage...
5c67b5ff115a04f0a89c2db4f0d61a5bd45be2fa
C#
shendongnian/download4
/first_version_download2/203665-15671196-38180751-2.cs
2.75
3
public void DBCommand(string dynSQL, bool Silent) { checkConnection(); //Despite the name, this "returns" void, not bool SqlCeCommand cmd = objCon.CreateCommand(); SqlCeTransaction trans = GetConnection().BeginTransaction(); cmd.Transaction = trans; var doRollback = ...
add1f9ef90baac3d56135b8e94a75ac1eec24cb1
C#
wndtanaka/AdvOOP_Assessment1
/Assets/Scripts/Networking/PickUpItem.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Networking { public class PickUpItem : MonoBehaviour { protected Player player; protected WeaponManager weaponManager; private void Update() { } private void ...
8dbaf7cf303c38d070ea83750d131ec218136295
C#
SleuthEye/KassWitkinFilterBank
/KassWitkinFilterBank/Crop/CropForm.cs
2.640625
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 CustomFilterBank_Test { public partial class CropForm : Form { Bitmap _inputImage; public CropForm(...
1617d76dad21492c5cc26f5f65086706a2348d91
C#
KamReyChel/Klasy_i_Obiekty
/KartaOcenFilmow/Program.cs
3
3
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Speech.Synthesis; namespace KartaOcenFilmow { class Program { //static void UstawNazwe(out Karta karta) //{ // karta = new Karta(); ...
f4cc4677ef9d12e136d4a778058aa3fccf96669b
C#
shendongnian/download4
/code5/813226-19966096-146680411-2.cs
2.609375
3
public OleDbConnection Conexao() //Conexão { string strcon = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|DB.accdb"; return new OleDbConnection(strcon); } void tabela() { try { timer1.Enabled = false; using(var conexao =...
c7993e8738dbf8efc9eba51f564de081d300b3b1
C#
JakeAsh22/Leet-Speak-Translator
/Leetspeak/Program.cs
2.5625
3
using System; using Changer; using System.Collections.Generic; namespace MainProgram { public class Program { public static void Main() { Console.WriteLine("Please type a sentence to be translated."); string userInput = Console.ReadLine(); LeetspeakTranslato...
1307964437c315d3d99cd4217ed39608cc67c1d4
C#
williambertrand/LuxJam
/Assets/Scripts/Player/PlayerInventory.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class PlayerInventory : MonoBehaviour { public static PlayerInventory Instance; private void Awake() { if(Instance == null) { Instance = this; } } // Currently u...
b5dc97e301262c2b21a06e9cc202400c9d7318cf
C#
muhammadsaadfarooq/saad.01131152026_vp_Assignment01
/student/file.cs
3.328125
3
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace student { class file { private List<string> students_detail = new List<string>(); private int count1 = 0; public void fetch_rec(string path) { string flag; using...
023d429d44d3e18d8891ce69022315bce3a371de
C#
thomasns/advent2018
/Day1/Problem 2/Solution.cs
3.9375
4
/* * Advent of Code 2018 * Day 1 Problem 2 * Given a list of positive and negative numbers, sequentialy add them, and find the first result that occurs twice */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Advent2...
8f3631cde22f5dac8d9466546a007ba7b1df7f31
C#
danjom/YOYBackend
/YOY.DAO/Entities/Manager/SearchLogManager.cs
2.59375
3
using YOY.DTO.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using YOY.Values; using YOY.DAO.Entities.DB; namespace YOY.DAO.Entities.Manager { public class SearchLogManager { #region PROPERTIES_AND_RESOURCES // ---...
83a11f25249b90125448d1b6fc2cf601fccae56c
C#
aninkina/182AfanasyevVitaly
/Module 2/Seminar_2/Task03/Program.cs
3.484375
3
using System; /* Дисциплина: "Программирование" Группа: БПИ182_1 Студент: Афанасьев Виталий Олегович Задача: 3 */ namespace Task03 { /// <summary> /// Polygon. /// </summary> public class Polygon { public uint Sides { get; set; } public double Radius { get; ...
a9d358a89f5a705e8283536e614869e5b3db0498
C#
Meenit/Character-Builder-5
/oglelements/AbilityScores.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using System.Xml.Serialization; using System.IO; namespace Character_Builder_5 { public class AbilityScores { private static AbilityScores current; public List<...
2e076cdab84f75df73c673167dfc1ccb105277b3
C#
Ben136KBC/CodeXCavator2
/CodeXCavator.Engine/Filters/FileCatalogueEnumeratorFileFilter.cs
2.53125
3
// Copyright 2014 Christoph Brzozowski // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
39be860301d15a3e5b494b0cb0e6d3c1b8f8040c
C#
nayani21/RateCounter
/TestClassLibrary/RateCounter.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace TestClassLibrary { public class RateCounter:ContentPage { public int RatingWidth(int Ratings) { int y = (width * Ratings) / 100; ...
6cd45d712051fc56bed1ee91d860450739dd276b
C#
Gerula/interviews
/CareerCup/dutch.cs
3.484375
3
// http://careercup.com/question?id=5702373701844992 // // Sociopathic Dutch National Flag Problem. // It's like the regular problem but with more asshole (you're not allowed to get the array length) // using System; using System.Collections.Generic; using System.Linq; static class Problem { static Random rand = ...
164b2f3ff4aff4426bbdbd93e5a6206e1fa8aa67
C#
HNeukermans/Hallo
/src/Hallo/Sip/Headers/SipMaxForwardsHeader.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Hallo.Parsers; using Hallo.Sip.Headers; namespace Hallo.Sip { [HeaderFor(SipHeaderNames.MaxForwards)] public class SipMaxForwardsHeader : SipHeader, IEquatable<SipMaxForwardsHeader> { internal SipMaxForward...
eb54a7e48bfac66bf1cd1269c6450f96f8834a8b
C#
ORT-DA2/M6A-ID-2021.1
/Clases/Ejemplos/EjemploAngular/MyStore.API/MyStore.API/Data/ProductManager.cs
2.921875
3
using Microsoft.EntityFrameworkCore; using MyStore.API.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Linq; namespace MyStore.API.Data { public class ProductManager { private readonly DbSet<Product> products; private readon...
ee3a7a9d5711c5c91128d544c973c757aa5fd2d7
C#
Butthead1/RestApiTester-master
/RestApiTester/Services/Concreate/LoggerService.cs
2.71875
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; namespace RestApiTester.Services.Concreate { public static class LoggerService { private static readonly string FilePath = @$"{Environment.CurrentDirectory}\Logs\"; public async s...
9f5007d55a57b77ad4322e8a2ff012510bdc5197
C#
Mihu89/DesignPatterns
/DP/DP/C/Singeton/Singleton2.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; namespace DP.C.Singeton { class Singleton2 { private static Singleton2 _instance; private static object syncRoot = new Object(); private Singleton2() { } public static Singleton2 GetInstance() { ...
9528037bd6cef2f81b4ba5835c62c6c3b8a3c330
C#
hex11/Nett
/Source/Nett/TomlTableToDictionaryConverter.cs
2.640625
3
namespace Nett { using System; using System.Collections.Generic; using System.Diagnostics; internal sealed class TomlTableToDictionaryConverter : ITomlConverter { private static readonly Type DictType = typeof(Dictionary<string, object>); public Type FromType => Types.TomlTableTyp...
7c77c1c63768688123726ce0a95623e9685b1a11
C#
ISAM5430-FA19/weaverl5383_ISAM5430_HW
/HW02/HW02/Program.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HW02 //B1 { class Program { static void Main(string[] args) { int firstNum; int secondNum; // Display 'enter first integer' ...
36784195d4cc36239580366a0032c12bae647c14
C#
ioxuy/Himall3.3
/Himall.Service/Member/MemberGradeService.cs
2.53125
3
using Himall.Core; using Himall.IServices; using System.Collections.Generic; using System.Linq; using Himall.Entities; using NetRube.Data; namespace Himall.Service { public class MemberGradeService : ServiceBase, IMemberGradeService { public void AddMemberGrade(MemberGradeInfo model) { ...
6f80170e7da7bbecaeaf0a94b82c3d21c5e39d9b
C#
jhawe/dosdungeon
/DosDungeon/Common/Statics.cs
3.421875
3
using DosDungeon.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DosDungeon.Common { /// <summary> /// Some static function definitions /// </summary> public static class Statics { #region GetDistance ...
13031c5b0e7f5b7f6957c42c929fce3a108adee4
C#
Perugenius/The_Demiurge_Grotto_OGD_Project_1920
/Assets/Scripts/Mechanics/Character.cs
2.8125
3
using System.Collections; using Scriptable_Objects; using UnityEngine.PlayerLoop; namespace Mechanics { public abstract class Character : Movable { public CharacterStatistics statistics; protected float CurrentHealth; protected float CurrentSpeed; protected float CurrentAttack;...
850cd44502a5c758a6b618d721b4ff6a36fffb28
C#
vanilsonbr/BattleRoyale-Remote-Control-Client
/BatteRoyale.RemoteController.Client/Models/Client.cs
2.59375
3
using Microsoft.Win32; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; namespace BatteRoyale.RemoteController.Client.Models { public class Client { public string MachineName { get; set; } public string LocalIPAddre...
9e318df0fc4e0ebefd0678fac574b7c6a08e9c4d
C#
OData/WebApi
/test/E2ETest/Microsoft.Test.E2E.AspNet.OData/Common/Instancing/PrimitiveCreator.cs
2.5625
3
//----------------------------------------------------------------------------- // <copyright file="PrimitiveCreator.cs" company=".NET Foundation"> // Copyright (c) .NET Foundation and Contributors. All rights reserved. // See License.txt in the project root for license information. // </copyright> //-------...
21fa731afe2c1c1a593c61630b21cbd4f8de8073
C#
yusukeinyos/CannonToCannon
/Assets/Scripts/ScoreDisplay.cs
2.640625
3
using UnityEngine; using System.Collections; using UnityEngine.UI; public class ScoreDisplay : MonoBehaviour { public static float score; public GameObject ScoreText; public GameObject MessageText; private float time; // Use this for initialization void Start() { } // Update is...
c6133f7d0919e6040b1e2b885874fb0947063796
C#
mdesalvo/RDFSharp
/RDFSharp/Query/Mirella/Algebra/Queries/RDFDescribeQueryResult.cs
2.578125
3
/* Copyright 2012-2023 Marco De Salvo Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
60cda3610e5e4200ce86ec8219cf0037ec5a1962
C#
zajacmarekcom/szkola-szarpania
/App_M7_L1_2/App_M7_L1_2/Program.cs
2.546875
3
using System; namespace App_M7_L1_2 { class Program { static void Main(string[] args) { int zmienna = 5; Console.WriteLine("Pozostało dni: {0}", zmienna); Console.WriteLine("Adam powiedział: \"Chodźmy\". I poszedł"); } } }
9ac5e2e10954866b157f38683294689e53c4dc98
C#
vloxomire/OopPractica2
/OopPracticaN2/FightPit/Basico/Fighter.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FightPit.Basico { class Fighter { private int hp; public int Hp { get { return hp; } set { hp = value; } } private int dmg; public int Dmg{get{return dm...
0c4fff880d0a1d6bdcd6986cef133501e87dc62b
C#
rachelbarnes/RachelsRosesWebPages
/RachelsRosesWebPages/Models/DatabaseAccess.cs
2.671875
3
using RachelsRosesWebPages.Controllers; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; namespace RachelsRosesWebPages.Models { public class DatabaseAccess { const string connString = "Data Source=(LocalDb)\\MSSQLLocalDB;...
e6bbddaaa31e29dd52f31e2635e9441d99c61aa3
C#
csaking/AgileSoftwareEngineering2018-copy
/Agile 2018 - Copy/viewProjects.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Windows.Forms; using MySql.Data.MySqlClient; using System.Data; namespace Agile_2018 { public class ViewProjects { /// <summary> /// Function which returns all projects associated with Staff ID. ...
e55c83d4d6a03cbd0369b45f7a8d7e39d9c832bc
C#
AlexanderKa1/rdotnet
/RDotNet.IPC/REngineRemoteRepository.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RDotNet.IPC { public class REngineRemoteRepository : DynamicProxy<REngine> { public REngineRemote GetEngine() { REngine m = (REngine)this.GetTransparentProxy(); this...
733128325ce61ef2ca322883e9124c83fff7283f
C#
joshdyer1992/JoshInc
/JoshInc.Core/StockHistoryReader.cs
2.96875
3
using System; using System.Globalization; using System.IO; namespace JoshInc.Core { public class StockHistoryReader { public StockHistoryReader() { } public StockHistory LoadFile() { //List<SharePrice> sharePrices = new List<SharePrice>(); ...
c4b2b06cdb093b1247f31d1e1e129edb905d5761
C#
LCSMelo/CalculadoraBasica
/calculadora/Program.cs
3.6875
4
using System; namespace calculadora { class Program { static void Main(string[] args) { double num1, num2; Console.WriteLine("Bem-vindo à Calculadora Básica."); Console.WriteLine("Digite um número: "); string tmp = Console.ReadLine()...
f214efaed8862b9ccc3556ff564130079794a6d0
C#
MrPIvanov/SoftUni
/07-Data Structure/03-LINEAR DS - LIST AND DS COMPLEXITY/LinearDataStructures_Exercises_01_07/_07_DistanceInLabyrinth/StartUp.cs
3.296875
3
using System; using System.Collections.Generic; namespace _07_DistanceInLabyrinth { public class StartUp { static void Main() { var n = int.Parse(Console.ReadLine()); var matrix = new string[n][]; for (int i = 0; i < n; i++) { v...
406a21e76b0471daa0123b6a443a4acf6916344c
C#
BrunoMVPCosta/makeup.dapper
/src/DatabaseModel.cs
2.921875
3
using MakeUpORM.Mapping; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MakeUp { public class DatabaseModel { private readonly ConcurrentDictionary<Type, IEntityMapper> _typeMapping; ...
dd9a1ae0c4795350ee4ca8748225cf5c7a5ad7c5
C#
wnvko/TelerikAcademy
/CSharp/OOP/03. ExtensionMethodsDelegatesLambdaLINQ/Timer/Timertest.cs
3.78125
4
namespace Timer { using System; using System.Threading; public class Timertest { public const int ticksCount = 10; public const int interval = 2000; public static void Main() { TimerDelegate timerDelegate = new TimerDelegate(Print); Timer timer...
aa57213614d1e599db2ded78f13981fc943c0005
C#
BlackFlicka/1.-zadaca
/2_zadatak/2_zadatak/GenericListEnumerator.cs
3.21875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _2_zadatak { class GenericListEnumerator<X> : IEnumerator<X> { private IGenericList<X> _collection; private int _index = 0; public Ge...
c98fd622ad6bed4631f3d93d3a38e6eb962dd7b6
C#
leonyuzhao/Utility-CodeSnippet-
/src/Web.cs
2.921875
3
using System; /// <summary> /// Wrapped Quick Web Utilities /// <summary> namespace Utility.Web { interface IMail { void SetCredentials(string username, string password); bool Validate(); bool SendMail(); } public class GMail : IMail { private System.Net.NetworkCredential i_CurrentCredent...
53f7679b3ee1b769801d4ef633f713391a2f49bc
C#
danielarmao/SudokuSolver
/SudokuSolverApp/Program.cs
2.625
3
using SudokuSolverApp.SolveAlgorithms; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SudokuSolverApp { class Program { static void Main(string[] args) { { SudokuBlock sudokuBlock = new ...
40db40d623e8443fe006b0c9a310cb3fbaf4f7f6
C#
nguyennvo215/Ecommerce_NT
/ServerSite/Data/ApplicationDbContextSeed.cs
2.6875
3
using Microsoft.AspNetCore.Identity; using ServerSite.Models; using System.Linq; using System.Threading.Tasks; namespace ServerSite.Data { public class ApplicationDbContextSeed { public static async Task SeedEssentialsAsync(UserManager<User> userManager, RoleManager<IdentityRole> roleManager) ...
65304a3524341bd6933385f0784177e9061a9d77
C#
AlexanderEvans/LinkerLoader
/LinkerLoader/PassTwo.cs
2.6875
3
using System; using System.Collections.Generic; using System.Text; namespace LinkerLoader { partial class Program { static bool enableDebugging = false; static void PassTwo() { string ops = ""; foreach(MREC mREC in mRecords) { //calcu...
c06b7cf6d45ecb41c46266e3d519b7eeb985c2a2
C#
hammypants/dailyprogrammer
/c126i-perfectpthpowers/c126i-perfectpthpowers/Program.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace c126i_perfectpthpowers { /* * Problem: * * An integer X is a "perfect square power" if there is some integer Y such that Y^2 = X. * An integer X is a "perfect cube power" if there is some integer ...
5deb83a6070557a207ea04f940a5132336ce1b42
C#
david-ting-dt/minesweeper
/Minesweeper/Cell.cs
3.078125
3
using Minesweeper.Enums; namespace Minesweeper { /// <summary> /// Data structure that represents the cell unit on the GameBoard /// </summary> public class Cell { public readonly int X; public readonly int Y; public CellState CellState { get; set; } public int Adjac...
fb204d36e5f0fc8be96fb566523a1324f5459c73
C#
Ryan-Siqueira/Locadora_RFGV
/DAL/GeneroDAL.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using System.Data.SqlClient; using Models; using System.Data; namespace DAL { public class GeneroDAL { private string connectionString = ConfigurationManager....
5545d1739f2c63312cf4ff35aabe9811808ac798
C#
marine998/Medidor-Electrico
/MedidorModel/DTO/Medidor.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MedidorModel.DTO { public class Medidor { private int nroMedidor; private DateTime fecha; private decimal valorConsumo; public int NroMedidor { get => ...
e38b7fcb0b7de279e59f98c89bfa9ab88f1b7c65
C#
squid-box/adventofcode2020
/Source/AdventOfCode2020.Tests/Utils/VectorTests.cs
2.984375
3
namespace AdventOfCode2020.Tests.Utils { using AdventOfCode2020.Utils; using NUnit.Framework; [TestFixture] public class VectorTests { [Test] public void VectorAddition() { var vectorOne = new Vector(0, 0, 0); var vectorTwo = new Vector(5, 6, 7); ...
ae0997064ef745d9b13a9c5efbf274d3d9b4c879
C#
Sohail92/OrderAcceptanceApi
/OrderAcceptanceApi/Controllers/OrderController.cs
2.703125
3
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using OrderAcceptanceApi.Helpers; using OrderAcceptanceApi.Interfaces; using OrderAcceptanceApi.Models; namespace OrderAcceptanceApi.Controllers { [Route("api/[controller]")] [ApiController] public class OrderController : Controll...
c060c4a06bc220bb27650d50ca55a1cfc7d24e7c
C#
aleksandrmte/ClickHouse.NetCore
/ClickHouse.Api/Controllers/WeatherForecastController.cs
2.546875
3
using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace ClickHouse.Api.Controllers { [ApiController] [Route("[controller]")] public class WeatherForecastController : ControllerBase { private readonly ClickHo...
1e15682fdb663ba350f2ae68451c1f8150c9c256
C#
LevanAmashukeli/RoulleteApi
/RoulleteApi.Repository/Implementation/BaseRepository.cs
2.84375
3
using System; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using RoulleteApi.Core; using RoulleteApi.Repository.Ef; using RoulleteApi.Repository.Interfaces; namespace RoulleteApi.Repository.Implementation { public class BaseRepository<T, IdTy...
110a198d87e4541af39bba51ec9dc1314c05cda8
C#
KodFreedom/VR41
/VRTest/Assets/Scripts/Zenki/MonsterIconController.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MonsterIconController : MonoBehaviour { private static MonsterIconController instance_ = null; public static MonsterIconController Instance { get { return instance_; } } private struct Monster { public ...
6315b519043171c8e2ec28f2e13a0aa97074a0c6
C#
piyushkp/FaceRecoginitionApp
/FaceRecoginition/FaceDAO.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SqlClient; using System.Data; using System.Configuration; namespace FaceRecoginition { public class FaceDAO { public static int GetEntryIDByName(string name) { int entryID; ...