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
dc87f9d422b7331258e0c1a8cb4ee652138763b9
C#
chisty/go-workshop
/practice/grpcdemo/GRPC-C#/Client/Program.cs
2.953125
3
using System; using System.ComponentModel; using Grpc.Core; using Proto; namespace Client { class Program { static void Main(string[] args) { Console.WriteLine("GRPC Client. Enter 2 integer separated by space. (Enter blank to exit)"); var channel = new Channel("localh...
3bad5b54d0ba4de248c4fc87b722504de7ef74b6
C#
ilseatvega/18023892_GADE6112_POE
/18023892Brink_GADE6112_POE/Assets/Scripts/FactoryBuilding.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; //added for healthbar using UnityEngine.UI; public class FactoryBuilding : Building { //variables specific to Resource Building //float unitType; //float speed = 5; //cost float cost; //the healthbar slider publ...
0d9fe879f3e676edf7d775a1aad20e29c101ddb7
C#
StefanIvanovIvanov/SoftUni
/Programming Fundamentals-Extended/MoreArraysExercise/04.CommandInterpreter/Program.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; namespace _04.CommandInterpreter { class Program { static void Main(string[] args) { List<string> arr = Console.ReadLine() .Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) ...
dad525128975bb0a17e4a371cfc994137ea07da6
C#
Filirien/ListProcessing
/ListProcessing/ListProcessing/Core/Commands/PrependCommand.cs
3.046875
3
namespace ListProcessing.Core { using System; using System.Collections.Generic; public class PrependCommand { public void Execute(List<string> commandParameters, List<string> data) { if (commandParameters.Count != 1) { throw new Exception("Error...
1447551d2a225a68f5956d65155cb11245473833
C#
b3nk4n/uwpcore.framework
/Framework/UWPCore.Framework/Notifications/Models/AdaptiveActions.cs
2.765625
3
using System.Collections.Generic; using System.Xml.Linq; namespace UWPCore.Framework.Notifications.Models { /// <summary> /// The actions system command types. /// </summary> public enum ActionsHintSystemCommand { SnoozeAndDismiss } /// <summary> /// Class for an adaptive acti...
4191626c2702dc21dc949930be572c0a5dfe0a16
C#
fabioPuissant/DesignPatternsCSharp
/CommandPattern/Commands/GarageDoorDownCommand.cs
2.671875
3
using CommandPattern.Invokers; namespace CommandPattern.Commands { public class GarageDoorDownCommand:ICommand { readonly GarageDoor _garageDoor; public GarageDoorDownCommand(GarageDoor garageDoor) { this._garageDoor = garageDoor; } public void Execute() =...
4c1dab03c1b5c7e557df754847e680a0702451db
C#
aaldrich/Intro-to-NHibernate
/NHibernate Fluent/DataAccess/DataAccess/Managers/ManagerRepository.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using NHibernate; using NHibernate.Linq; using NHibernateDemo.Entities.Managers; namespace NHibernateDemo.DataAccess.Managers { public class ManagerRepository : IManagerRepository { readonly ISession session; publ...
a65186af85ef22b1ec4c6d523ded81d6b853459e
C#
jabboura4327/USDAFoodProject
/USDAFoodProject/WebRequestExtensions.cs
2.734375
3
using System; using System.Net; namespace USDAFoodProject { internal static class WebRequestExtensions { /// <summary> /// Creates a web request using the API method /// </summary> /// <param name="foodId">Specifies the food id#</param> /// <returns></returns> p...
7189f5b1909f54f1fcaae750a520db096383efca
C#
Slugburn/DarkestNight
/Slugburn.DarkestNight.Wpf/ViewModels/CommandVm.cs
2.765625
3
using System.Collections.Generic; using System.Linq; using System.Windows.Input; using Slugburn.DarkestNight.Rules; using Slugburn.DarkestNight.Rules.Models; namespace Slugburn.DarkestNight.Wpf.ViewModels { public class CommandVm { private readonly Game _game; private readonly string _heroName...
ad8b637acd48c6dccb16e994c7e189a5dd64488a
C#
SailleshPawar/MS-Unit-Test-Day1
/MainProject/Program.cs
3.53125
4
using System; using Arithmetic; namespace MainProject { class Program { static void Main(string[] args) { try { ArithmeticOperations arithmetic = new ArithmeticOperations(); Console.WriteLine("Enter first number"); arithmet...
fb08ce8518546a521677d570bc5604d88dbaf244
C#
Fernandonetosoares/C_SHARP
/Códigos_C/repos/Ramificar o fluxo de código usando o constructo de mudança de casos/Program.cs
3.53125
4
using System; namespace Ramificar_o_fluxo_de_código_usando_o_constructo_de_mudança_de_casos { class Program { static void Main(string[] args) { //Criar a instrução switch int employeeLevel = 100; string employeeName = "John Smith"; string title...
9cb892ad3f6095463a0c016390875c8c4012e640
C#
rho24/PocoDb
/source/PocoDb/Linq/PocoQueryable.cs
2.71875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace PocoDb.Linq { public class PocoQueryable<T> : IQueryable<T> { public IQueryProvider Provider { get; private set; } public Type ElementType { get; private set; }...
9ed56ff92b20846c61c505d21083a06b97519590
C#
IslamG/Autopilot_Game
/New Floor/Assets/Scripts/SpillPuzzle.cs
2.59375
3
using UnityEngine; public class SpillPuzzle : Puzzle { [SerializeField] GameObject coffeeBlock, coffeeStain; [SerializeField] DoorScript storageDoor; public bool HasCoffee { get; set; } = false; private void Filled() { gameObject.GetComponent<AudioSource>().Play(); HasCof...
dca4702d6d3cb5d376ce7ad7a4fa39a7ecb24996
C#
fabysch/Practica1_FSCH
/Practica1_FSCH.Tests/UnitTest1.cs
3.203125
3
using NUnit.Framework; using Practica1_FSCH_Library; namespace Practica1_FSCH.Tests { public class Tests { [SetUp] public void Setup() { } [Test] public void TDD_WhenSum_ReturnGreater([Values (4)] int numero1,[Values(2)] int numero2) { string ...
ff58d78ce35ba05a35ca2c7e2fe8091878fb7abb
C#
Kaffedreng/tagger
/source/Tagger/TextTag.cs
3.171875
3
namespace Tagger { public abstract class TextTag<T> : ContentTag<T> where T : TextTag<T> { protected TextTag(string name) : base(name) { } public T Text(string text) { _text = text; return (T)this; } // rende...
b97cecfe6f6f915e9acc10fda32b02db3ba7788c
C#
zyanfx/Zyan
/source/Zyan.Communication/Security/DomainHelper.cs
2.765625
3
namespace Zyan.Communication.Security { /// <summary> /// http://www.pinvoke.net/default.aspx/netapi32.NetGetJoinInformation /// </summary> public class DomainHelper { [System.Runtime.InteropServices.DllImport("Netapi32.dll", EntryPoint = "NetApiBufferFree")] private static extern uint NetApiBufferFree(System...
7d322ec1520f950570f43b6c061cb49c9d647fc8
C#
Kartikraval/Training-Feb-2021
/Modules/C#/Day3/kartik.raval/Practice/Practice3/Item.cs
2.671875
3
using System; using System.Collections.Generic; using System.Text; namespace Practice3 { class Item { public int ID { get; set; } public string Name { get; set; } public static Item GetItem() { var newItem = new Item() { ID = 101, Name = "MyItem"}; retu...
9cda4c0a590fc7bb6947e96f34a6f146f955e45d
C#
AndriiMytsko/EmergencyServiceProject
/EmergencyService/EmergencyService/EmergencyService.cs
3.078125
3
using System.Collections.Generic; using System.Linq; namespace EmergencyService { class EmergencyService { private IList<IOperator> operators; private IDictionary<DepartmentType, IDepartment> departments; public EmergencyService( IList<IOperator> operators, ID...
0a0ef4e38e0517dc0ec7e0983a50ecd742cd5b45
C#
robertvazan/juicestream
/JuiceStream/PrefixStream.cs
2.8125
3
// Part of JuiceStream: https://juicestream.machinezoo.com using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace JuiceStream { /// <summary> /// Many protocols need to include short "ma...
023e66ee7eae26aa2ec6e42ae4a704f123e4cc6e
C#
mfe-/App1Android
/App1Android/MainActivity.cs
2.625
3
using Android.App; using Android.Widget; using Android.OS; using Android.Content; using System.IO; using SixLabors.ImageSharp; namespace App1Android { [Activity(Label = "App1Android", MainLauncher = true)] public class MainActivity : Activity { protected override void OnCreate(Bundle savedInstance...
59cb0c531e04cb01b221b71f3e9b20bd1675cf29
C#
makinteractlab/Elevate
/ApplicationSoftware/StairVR/Assets/Scripts/stairToJson.cs
2.640625
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System.IO; using Newtonsoft.Json; using Newtonsoft.Json.Linq; public class stairToJson : MonoBehaviour { Board_Data BoardData; List<Pin_Data> board_data_list = new List<Pin_Data>(); Jso...
abf10b17528d932e2d98c435d9798e41f905973e
C#
chethanamurthy/Telecare
/Console.cs
3.171875
3
using Telecare; using System; using System.Collections.Generic; using System.Linq; namespace Test { class Program { static void Main(string[] args) { Console.WriteLine("Start building cars"); List<CarFactory> myCars = new List<CarFactory>(); myCars.Add(CarFa...
bb3586375264d2c6f656e5c57dae7c6bd52e588e
C#
ahadarif007/niftyAPI
/niftyAPI/Models/StaticFunctions.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace niftyAPI.Models { public class StaticFunctions { public static int square(int n) { return n * n; } public static Double squareRoot(int n) { ...
f039689bd2a8622b816e22e78d1534860ca283d3
C#
uchr/ld32
/LD32/Assets/Scripts/Units/Troop.cs
2.703125
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Text; [System.Serializable] public class Troop { public List<Unit> units; public Vector3 center { get { if (units.Count == 0) return Vector3.zero; Vector3 center = Vector3.zero; foreach (var unit in units...
68098560f71662733eb6051f789f8cd9a8f6bb3b
C#
petercsengodi/games
/University/source/Superstition/GameServer/ServerControl.cs
2.609375
3
using System; using System.IO; using System.Threading; using GameLib; using System.Net; using System.Net.Sockets; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; namespace GameServer { /// <summary> /// Summary description for ServerControl. /// </summary> ...
0cb5be73e4f24ed8ee8ba8295b362908a94e61c6
C#
lKAMiKADZE/SpravRemontSite
/DataObject/IMG_Shop.cs
2.515625
3
using Microsoft.AspNetCore.Http; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Threading.Tasks; namespace SpravRemontSite.DataObject { public class IMG_Shop { public long ID_IMG_Shop { get; set; } public string I...
758280e2108db28e781786f99ed86c0d8fab9a3e
C#
Sollare/SSTUCloud
/DAL/HTTPGetter.cs
2.609375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; namespace DAL { public class HTTPGetter { /// <summary> /// http://rasp.sstu.ru /// </summary> public static string RootUrl = @"http://rasp.sstu.ru"; public static string TeachersUrl = ...
7b1cb600e89eb66d7277cf61e89212764703d78f
C#
CritBear/Gravity
/Assets/Download/HyperLuminal/LocatorSystem/Demos/Scripts/ToggleLocationMarker.cs
2.734375
3
using UnityEngine; using System.Collections; using HyperLuminalGames; public class ToggleLocationMarker : MonoBehaviour { // keep track of the time between toggles. private float time = 0.0f; // accessible variable for toggle time period. public float ToggleTimer = 2.5f; // local copy of this location script....
41229a318e9a2d55d5c9b9962b86b4ff01257b4f
C#
sirhappy/182FominSergey
/2module/FinalTest_Fomin_4/University/GoodStudent.cs
3.484375
3
/** * Программирование * Фомин Сергей * Вариант 4 **/ using System; namespace University { public class GoodStudent : Student { /// <summary> /// Конструктор хорошего студента /// </summary> /// <param name="name">Имя</param> /// <param name="surname">Фамилия</p...
d46c169d48e0cf15fe3407bea157f18f0382a057
C#
intervals-mining-lab/libiada-core
/LibiadaCore/Core/Characteristics/Calculators/FullCalculators/MKSkew.cs
2.65625
3
namespace LibiadaCore.Core.Characteristics.Calculators.FullCalculators { using LibiadaCore.Core.SimpleTypes; using LibiadaCore.DataTransformers; /// <summary> /// Statistical genetic characteristic MK skew. /// </summary> public class MKSkew : NonLinkableFullCalculator { /// <summa...
370e997352103240f3618dcc97c0170ddb33b431
C#
nohe427/HackerRank
/MinimumHandShakes/minimum-hand-shakes.cs
3.59375
4
using System; using System.Collections.Generic; using System.IO; class Solution { static int minimumShakes(int a) { int shakes = 0; while(a > 0) { a=a-1 shakes = shakes + (a); } return shakes; } static void Main(String[] args) { int t = Convert.ToI...
a11d294cff98419504408aa9493ea4f71f5763e0
C#
nishantgupta2501/battleshiptracker
/BattleshipStateTracker/Program.cs
3.671875
4
using System; using BattleshipStateTracker.SupportingClasses; using static System.Console; namespace BattleshipStateTracker { class MainClass { public static void Main(string[] args) { WriteLine("Welcome to Battleship Tracker"); WriteLine("Press 1 to Setup Game-Board");...
087642df517e290e94c3aa04b55fa7a0240c8f20
C#
shendongnian/download4
/first_version_download2/594867-57762177-204621842-2.cs
2.828125
3
public static class ILoggableUtils { // For extension methods on ILoggable public static void Log(this ILoggable instance, string message) { DoSomethingWith(message, instance.SomePropertyOfILoggable); } }
180bce65002e5faaad844e0b4a08dffaa901e56b
C#
busterwood/Repositories
/BusterWood.Repositories/Strings.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BusterWood.Repositories { static class Strings { public static string ToPascalCase(this string text) { var temp = new StringBuilder(text.Length); ...
aed83f380bbdad4fa2d43797c4d216ac90381a7e
C#
vicente-nvt/PokerGame
/PokerGame.Dominio/Business/RegrasDeDesempate/DesempateDeFullHouse.cs
2.609375
3
using System.Collections.Generic; using System.Linq; using PokerGame.Dominio.Identificadores; namespace PokerGame.Dominio.Business.RegrasDeDesempate { public class DesempateDeFullHouse : IRegraDeDesempate { private readonly IIDentificadorDeCartas _identificadorDeTrinca; public DesempateDeFull...
6619c426d17b683bbb6fa2cffbdbfafa66db2373
C#
brianhodges/csharp-windowsservice
/TestService/Extensions.cs
2.515625
3
using System; using System.IO; namespace TestService { public class Extensions { public const string filePath = "C:\\Services\\tmp\\"; public const string databaseName = "log.db3"; public const string fileName = "lastServiceBroadcast.txt"; public const string sqlLiteD...
18de14edcee0d070140f4165535ef2cf58ae6ed0
C#
nifx28/WebAppClassic
/WebAppClassic.Tests/Controllers/HomeControllerTest.cs
2.578125
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Net.Http; using System.Text; using System.Threading.Tasks; using System.Web.Mvc; using WebAppClassic.Controllers; using WebAppClassic.Models; namespace WebAppClassic.Tests.Controller...
ce3a4ce53e524c335efd9526adf4a49f5e2b5f1d
C#
MobileGuru1013/CooperativeMappingSimulator
/CooperativeMapping/Enviroment.cs
2.828125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CooperativeMapping { [Serializable] public enum PlatformState { Healthy = 1, Destroy = 2, OutOfBounderies = 3 } [Seri...
68cbb272d3dd24929ca795322cf53ef8b01daf58
C#
edchang2/CIS2561
/Action/Prefs/Class1.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Prefs { public class Prefs { string fileName; Dictionary<string,string> preferences = new Dictionary<string,string>(); static Prefs instance =...
4f6071d3eed13452d9257b1931b79d95bc1c93dd
C#
rdnvndr/VerticalExample
/2018/removeemptyrole/Program.cs
2.765625
3
using System; using System.Linq; using System.Windows.Forms; using Ascon.Vertical.Technology; using Ascon.Integration; namespace removeemptyrole { internal sealed class Program { [STAThread] private static void Main(string[] args) { if (args.Count() < 1) return; string modelName = args[0]; ...
57cadbf21e1d911e61642571dc6a156f5bf07d55
C#
PardisMotie/KnowledegeManagement
/UseCases/CommandHandlers/TeamHandlers/ChangeTeamTitleCommandHandler.cs
2.734375
3
using CommandHandling.Abstractions; using Commands.TeamCommands; using DomainModel; using System; using System.Threading.Tasks; using UseCases.RepositoryContracts; namespace UseCases.CommandHandlers.TeamHandlers { class ChangeTeamTitleCommandHandler : IHandleCommand<ChangeTeamTitleCommand> { readonly...
3118f00de83f04017982daf2add43b45fbb8276c
C#
grayyang/OhmSharp
/OhmSharp/OhmSharp/Mapping/MappingMemberAttribute.cs
2.953125
3
using System; namespace OhmSharp.Mapping { /// <summary> /// Specifies that the this property or field should be mapped to Redis store /// </summary> [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] public sealed class MappingMemberAttribute : Attribute { /// <summa...
9f8cc628011990b670c28fa5cc271d8539013ce6
C#
BootsSiR/FortniteReplayDecompressor
/src/FortniteReplayReader/Models/Events/PlayerElimination.cs
2.546875
3
using System; namespace FortniteReplayReader.Models.Events { public class PlayerElimination : BaseEvent, IEquatable<PlayerElimination> { public PlayerEliminationInfo EliminatedInfo { get; internal set; } = new PlayerEliminationInfo(); public PlayerEliminationInfo EliminatorInfo { get; internal ...
34c9bc48cdcaf1cc3f5a8a08cc02d2f0f3edf67b
C#
DevVeryMe/TripFlip
/TripFlip/TripFlip.Tests/WebApiUnitTests/PasswordHasherHelperTests/PasswordHasherHelperPositiveTests.cs
2.515625
3
using Microsoft.AspNetCore.Identity; using Microsoft.VisualStudio.TestTools.UnitTesting; using TripFlip.Domain.Entities; using TripFlip.Services.Helpers; namespace WebApiUnitTests.PasswordHasherHelperTests { [TestClass] public class PasswordHasherHelperPositiveTests { [TestMethod] public v...
c18e82865edfd5f182db0b229bfa832f65ad81a5
C#
eduardorcosta/Poker
/Poker Games/texto/MojoPojoPoker-master/MojoPojoPoker.Test/UnitTest.cs
2.6875
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using MojoPojoPoker; using MojoPojoPoker.CLI; using MojoPojoPoker.CLI.Poker; using System.ComponentModel.Design; using System.Reflection; using System.Linq; using Moq; using System.Collections.Generic; namespace MojoPojoPoker.Test { [TestClass] ...
e3a08de44e89ee867c09d9671592a8ee53a5ac6b
C#
ShawnPence/AdventOfCode2019
/AdventOfCode2019/AdventOfCode2019/Day12.cs
3.21875
3
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace AdventOfCode2019 { public static class Day12 { public static void Problems() { Console.WriteLine("Input file:"); string fileName = Console.ReadLine(); while (!File.Exists(fileName)) { Console.WriteLine(...
3dde1ddf6f6dae61202d7154dd1faf8af893d618
C#
bankoff/TelerikAcademy
/HomeworkCSharp2/09PreparationForExam/Exam20130205/2JoroTheRabbit/JoroTheRabbit.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; class JoroTheRabbit { static int[] ReadInput(string input) { char[] separator = { ' ', ',' }; string[] stringArray = input.Split(separator, StringSplitOptions.RemoveEmptyEntries); int[] array = new int...
cf1eb0381c889e619578e3d8bea316da963b87d6
C#
Gubbsy/MusicMatch-Server
/MusicMatch-Server/Requests/CreateAccount.cs
2.578125
3
using System.ComponentModel.DataAnnotations; namespace MusicMatch_Server.Requests { public class CreateAccount { [Required] public string AccountRole { get; set; } [Required] public string Username { get; set; } [Required] [RegularExpression(@"^[a-zA-Z0-9!#$%&'*...
3e94784a1a64ed6a67111643ed06366082976747
C#
TylerStein/escape-claws
/Assets/Game/Scripts/AudioTrack.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AudioTrack : MonoBehaviour { public AudioSource source; public int fadeDirection = 0; public float fadeRate = 1f; public void Awake() { // } public void Update() { if (fadeDirection != ...
bf1adc725f5affb3bebe7269c62896324cb6268e
C#
jimin4017/python_project
/WindowsFormsApp1/WindowsFormsApp1/Form1.cs
2.546875
3
using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using System; using System.Diagnostics; using System.Windows.Forms; namespace WindowsFormsApp1 { public partial class Form1 : Form { string result1,result2,result3,result4,result5,result6,result7,result8; public Form1() { InitializeComponent(...
5e5da0ff5e04ce8e607c81ad9069fc0b15a1b9cc
C#
Lithry/PathFinder
/Assets/Scripts/Behavior Tree/NodeWithChildrens.cs
2.875
3
using System.Collections; using System.Collections.Generic; public class NodeWithChildrens<T> : BTNode<T> { protected List<BTNode<T>> childs = new List<BTNode<T>>(); public NodeWithChildrens(T blackboard) : base(blackboard) {} override protected void Awake() {} override protected State Execute() { return Sta...
2ff82ce6090157812f5686dedeebe9bbd8a0ff84
C#
zhangleiming/TashanzhishiSolution
/Zhixing.Tashanzhishi.Web/Filter/JsonFilterAttribute.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.Mvc; using Newtonsoft.Json; namespace Zhixing.Tashanzhishi.Web.Filter { /// <summary> /// JSON反序列化过滤器 /// </summary> public class JsonFilterAttribute: ActionFilterAttri...
be2e1515de7f5c1d4b9787c114630985e73dea2e
C#
c-costello/data-structures-and-algorithms
/Challenges/breadth-first-traversal/BreadthFirstApp/BreadthFirstApp/Program.cs
3.46875
3
using System; using System.Collections.Generic; using StacksAndQueues; using Tree.Classes; namespace BreadthFirstApp { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); BinaryTree<int> tree = new BinaryTree<int>(); tree.Roo...
d7b4aacd2642df3852e99668530b63683767fb64
C#
serdarymz03/Excel-ClosedXml-Projesi
/ClosedXml_Project/FrmReadExcel.cs
2.59375
3
using ClosedXML.Excel; using Entity; 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 ClosedXml_Project { public partial class FrmReadExcel...
56b35faa2e51e88979ad361812485b34c4ac97e2
C#
brianmains/Nucleo.NET
/src_wip/Nucleo.Core/EventsManagement/IEvent.cs
2.609375
3
using System; namespace Nucleo.EventsManagement { /// <summary> /// Represents an event. /// </summary> public interface IEvent { #region " Properties " /// <summary> /// Gets or sets the name of the event. /// </summary> string Name { get; } #endregion #region " Methods " /// <summary> ...
e402cc1e3abbbbb02192e520b90c0c62336024e9
C#
dotnet/infer
/src/Runtime/Core/Serialization/XmlWriterExtensions.cs
2.78125
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.ML.Probabilistic.Serialization { using System.Xml; /// <summary> /// Provides exten...
da4130e6f64d1c510a96bf4045160dc38370a1ce
C#
IvayloDonchev/OOP_CS_2018
/Lect_2_BaseElements/Delegates/Program.cs
3.875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Delegates { class Program { delegate double Calculation(double a); // декларация на делегат static double Square(double x) => x * x; static void Proccess(Calcu...
e726acdf9d2fb556d6f8dfbfd38a0c580a6b8112
C#
bmaximus/DesignPatterns.Net
/DesignPatterns/AbstractFactory/Devices/LgTablet.cs
2.953125
3
using DesignPatterns.AbstractFactory.Interfaces; namespace DesignPatterns.AbstractFactory.Devices { public class LgTablet : Device { public LgTablet(string brand) : base(brand) { } public override int BatteryLife() { return 6500; } public o...
fbf405d4448ab0cfad8bf5ddf284ac9fe94322b5
C#
youthfulIdealism/storyLib
/EmergentStoryLib/Defenitions/Scripting/DefaultLanguage/ArgumentFinders/Find_Int.cs
2.609375
3
using System; using System.Collections.Generic; using System.Text; using EmergentStoryLib.Instance; namespace EmergentStoryLib.Defenitions.Scripting.DefaultLanguage.ArgumentFinders { public class Find_Int : ArgumentFinder { public static Find_Int instance; static Find_Int() { ...
ffa38d361b4babd724fcf01a14811e29926cd0c2
C#
shlee322/Netronics
/server/Framework/Protocol/PacketEncoder/Http/Request.cs
2.75
3
using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Text.RegularExpressions; namespace Netronics.Protocol.PacketEncoder.Http { public class Request { private string _method; private string _path; private string _protocol; private read...
a7d7347ce3f8353f17c084554e0b21d67374d2b4
C#
IPCConnectedFactoryExchange/CFX
/CFX/Structures/SolderReflow/ReflowZone.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CFX.Structures.SolderReflow { /// <summary> /// A specialized type of Stage that represents a thermal zone within a solder reflow oven. /// </summary> public class ReflowZone :...
799595781bcc0b324a0cc709edda9627ecfb6e5f
C#
SaxxonPike/scharfrichter
/NAudio/Wave/SampleProviders/WaveToSampleProvider.cs
3.078125
3
using System; using System.Collections.Generic; using System.Text; namespace NAudio.Wave.SampleProviders { /// <summary> /// Helper class turning an already 32 bit floating point IWaveProvider /// into an ISampleProvider - hopefully not needed for most applications /// </summary> public class Wave...
c407651c13fee0222f11dbceaff00cd5b9bb7916
C#
ILya-Lev/Codility.Solution
/LeetCode.Tasks/P0992SubArray.cs
3.453125
3
using System.Collections.Generic; namespace LeetCode.Tasks { public class P0992SubArray { private readonly List<int> _subArray = new List<int>(); private readonly Dictionary<int, int> _popularity = new Dictionary<int, int>(); public int SubarraysWithKDistinct(int[] source, int k) ...
9d9273038a5bed69f752108322c1e643c0e0fcec
C#
Radostta/Programming-Basics-And-Fundamentals-SoftUni
/ExamPreparation/RectangleWithStars-Books/Program.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RectangleWithStars_Books { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); Console.WriteLine(new string...
4f45e76e728242c75f4c89671b7a30c8f3694b5b
C#
brianbartilet/DailyDashboardAutomation
/DailyDashboardAutomation.AppReferences/YNAB/Utilities/ConfigReader.cs
3.078125
3
using System; using System.Configuration; using System.Xml; namespace AppReferences.Utilities { /// <summary> /// ReadConfigFile is just going to read the config file /// </summary> public class ReadConfigFile : ConfigurationElement { /// <summary> /// This is only going to read t...
ed90c9abf93934a7c824e5b0f18239288a9c371e
C#
cobalt910/com.cobalt910.core
/Runtime/Extension/VectorMathExtension.cs
2.515625
3
using UnityEngine; namespace com.cobalt910.core.Runtime.Extension { /// Extension methods for Vector4 public static class Vector4Extension { public static Quaternion ToQuaternion(this Vector4 v) { return new Quaternion(v.x, v.y, v.z, v.w); } public s...
9d9877f5556ee013a47934ebaee22e82f4dc907c
C#
marchoeijmans/PatternExamples
/SimpleFactory/BusinessLayer/FirstNameFirst.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SimpleFactory.BusinessLayer { public class FirstNameFirst: Namer { public FirstNameFirst(string arg) { int indexOfFirstName = arg.IndexOf(" "); if (indexOfFirst...
4467b7b326b576352d63071be5b5328646892d09
C#
IzyPro/MiniSwitch
/MiniSwitch/Services/TransactionTypeServices/TransactionTypeService.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using MiniSwitch.Data; using MiniSwitch.Models; namespace MiniSwitch.Services.TransactionTypeServices { public class TransactionTypeService : ITransactionTypeService { ...
9768dfb1dd8fc31b26f02358f4fd77a6f64d19f0
C#
judgie79/iGolfTournament
/Golf.Tournament/Utility/HtmlTeeboxHelper.cs
3.140625
3
using Golf.Tournament.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; namespace Golf.Tournament.Utility { public static class HtmlTeeboxHelper { public static MvcHtmlString Draw(this TeeBox teebox, bool showPar = fal...
af48be894e1d37e835972bad15c706a9face119a
C#
alastairwyse/TryML
/ServiceLayer/C#/MnistImageStore.Persistence/MnistImageNativeFormatFileReader.cs
2.890625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Net.Http.Headers; using MnistImageStore.Models; namespace MnistImageStore.Persistence { /// <summary> /// Reads MnistImage objects from files in the native MNIST format (specified at h...
16bed6884736bd03403bef7e4e5233aee44a87d6
C#
luedos/Boxes
/Assets/Scripts/HUD/HUD.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class HUD : MonoBehaviour { public Image FirstImage; public Image SecondImage; public Text FirstText; public Text SecondText; public GameObject PauseButton; public GameObject PauseMenu...
6d71ae55a9c6814712f26c743c0cbef6d708cd1f
C#
shendongnian/download4
/first_version_download2/324702-27106910-78350137-4.cs
2.6875
3
private void ProcessResult<TResult>(Task<TResult> task) { if (task.IsFaulted) { //remove from cahe } else if (task.IsCompleted) { //add to cache } }
f30d379c5ed1d0cf0824f1c6f2092fa6ba9f2199
C#
Xianbiao-Jiang/LeetCode-CS
/LeetCode/0101-0150/0116-PopulatingNextRightPointersInEachNode.cs
2.765625
3
//----------------------------------------------------------------------------- // Runtime: 164ms // Memory Usage: // Link: //----------------------------------------------------------------------------- namespace LeetCode { public class _0116_PopulatingNextRightPointersInEachNode { public TreeLinkNo...
447f7dcb37eeb4d0bee2af85e7e3d59d17be13b4
C#
ozgend/codefiction-tech-proxy
/src/CodefictionTech.Proxy.Core/Options/WebSocketOptions.cs
2.640625
3
using System; namespace CodefictionTech.Proxy.Core.Options { /// <summary> /// Shared Proxy Options /// </summary> public class WebSocketOptions { private int _webSocketBufferSize; public WebSocketOptions() { _webSocketBufferSize = 4096; } /// ...
8acabc19e319485e155a3d9a3f8a43ce5d1bb20d
C#
CoderVision/NS45
/NtccSteward.Core/Factories/AddressInfoFactory.cs
2.59375
3
using NtccSteward.Core.Interfaces.Common.Address; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace NtccSteward.Core.Factories { public class AddressInfoFactory { public T CreateAddress<T>(IAddress source) where T : IAddress, new() ...
1bf7484da9a26fea6781f06c83318f66455ea5fc
C#
Petko-Petkov/Telerik
/Programming/OOP/Homeworks/01.DefiningClassesPartOne/MobilePhone/GSMTest.cs
2.828125
3
namespace MobilePhone { using System; using System.Collections.Generic; using System.Linq; public class GSMTest { public static void Main() { var gsms = new List<GSM> { new GSM("Galaxy 6", "Samsung", 800.00m, new Battery(BatteryType.LiIon, "m...
938a0e3bec65bf52a1ee46848d71c2134d3e6ad4
C#
tonysneed/Kliant.AspNetCore-Angular
/Exercises/03-Patterns-Testing/03b_UnitTesting/After/test/HelloWebApi.Tests/ValuesControllerTests.cs
2.96875
3
using System.Linq; using Xunit; using HelloWebApi.Controllers; using HelloWebApi.Repositories; using Moq; namespace HelloWebApi.Tests { public class ValuesControllerTests { [Fact] public async void GetShouldReturnValues() { string[] expected = { "value1", "value2", "value3...
11a839e76e93c717978744491c66d4e56b1104e6
C#
OutdoorStore/TheOutdoorStore
/Ecommerce-App/Ecommerce-App/Models/Interfaces/ICart.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Ecommerce_App.Models.Interfaces { public interface ICart { /// <summary> /// Creates a new entry in the Cart database table /// based on the userId parameter, and returns the new ...
9e5b9fd29077ae256b454a8dff64eabfc61d9a99
C#
123byl/AGV_ClientUI_by-Castec
/CtLib/CtLib/Library/CtIO.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using CtLib.Module.Utility; using CtLib.Module.XML; namespace CtLib.Library { /// <summary> /// I/O 之 XML 檔案操作 /// <para>使用統一格式之 XML 檔案,方便各專案之使用</para> /// <para>如欲建立或修改 XML 檔案可使用 <see cref="CtLib.Forms.TestPlatform.XML_Editor"/></para> /// </su...
4ab817cddc8393106e950c647bb1ce0a207804cf
C#
secure-software-engineering/FalseCrypt
/cs_desktop/src/FalseCrypt.Crypto/WeakPasswordDerivation.cs
2.921875
3
using System.Security.Cryptography; using System.Text; namespace FalseCrypt.Crypto { public static class WeakPasswordDerivation { public static string StringToHash(string input) { // Bug 6: Using a weak hashing provider // Bug 7: Not disposing IDisposable if...
f41f0322090962bf9d2b5c494ee5d39a2bf247b8
C#
tjones0808/Triangle-Type-Program
/TriangleTypeTests/UnitTest1.cs
2.921875
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using Triangle_Type_Program; namespace TriangleTypeTests { [TestClass] public class UnitTest1 { public UnitTest1() { } [TestMethod] public void IsScalene() { var result = Program.DetermineTriang...
c8c3bc5237ecc8969b1512d9a9e7f77bcc4ebd8d
C#
medipokur/csharp_CodeSamples
/primitif_tipler.linq
3.0625
3
<Query Kind="Program" /> void Main() { string s = "abcd"; DateTime d = DateTime.Now; //d.Dump(); Book b = new Book(){Author="ali"}; Test(ref s, ref d, b); b.Dump(); } // Define other methods and classes here public void Test(ref string s, ref DateTime d, Book b){ d = DateTime.To...
ca09cad6b221adb284f5869456baa4c2f3043333
C#
chiguozi/UnityExcelExportTool
/Assets/Editor/DataExporter/Type/DictionaryIntStringType.cs
2.65625
3
using System.Collections.Generic; using System; public class DictionaryIntStringType : IType { public string lowerName { get { return "dictionary<int,string>"; } } public string realName { get { return "Dictionary<int, string>"; } } public Type type { get { return typeof(Dictionary<int, string>); } } ...
4fc8dd093ff73a819c6ecd6d208a5b2534ae20de
C#
Archangel37/Factorials
/Factorials/Form1.cs
3.265625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Numerics; using System.Threading; namespace Factorials { public partial class FormFact ...
bec3751565771b2d2011b14293c19f230ac6dc8a
C#
michael-debinder/data-services
/MetadataProcessor/Results/Entities.Attrs/DSCourseAttrs.cs
2.71875
3
// <copyright file="DSCourseAttrs.cs" company="Brightree LLC"> // Copyright (c) Brightree LLC. All rights reserved. // </copyright> namespace DataServices.SDK.Entities.Attrs { using Data; /// <summary> /// Represents a specific instance of the Course entity type with strongly typed attributes. ///...
913f7d3fafb7c43e79c9d61d3a4add0d372cc088
C#
cdhanna/track-wire
/Track/Track/RenderUtils/Camera.cs
2.59375
3
using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Track.MathUtils; namespace Track.RenderUtils { class Camera { public Vector2 Position { get; set; } public Vector2 Velocity { get; private s...
74e92ccb81798df8a9b515a3c485a33d2b19e3f8
C#
JorSanders/FreeWheels
/FreeWheels/PozyxLibrary/RegisterHeaders/GeneralData.cs
2.609375
3
using FreeWheels.PozyxLibrary.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FreeWheels.PozyxLibrary.RegisterHeaders { public class GeneralData : RegisterHeaders { public GeneralData(IConnection connection) : ba...
513da55808703a5c2599c6030ecb47ce05ebd9b9
C#
dust63/StarDust.FFMPEG.Wrapper
/src/StarDust.FFMPEG.Wrapper/FFProcessWrapper.cs
2.6875
3
using DeferredEvents; using StarDust.FFMPEG.Wrapper.Helpers; using System; using System.Diagnostics; using System.IO; using System.Text; using System.Threading; using System.Threading.Tasks; namespace StarDust.FFMPEG.Wrapper { ///<inheritdoc/> public class FFMPEGProcessWrapper : IFFMPEGProcessWrapper { ...
52f2627a6c312a0e2162004c0bbf0e28c6339e44
C#
yvcabrerago/Chess.NET
/Chess.ViewModel/Game/BoardVM.cs
2.9375
3
//----------------------------------------------------------------------- // <copyright file="BoardVM.cs"> // Copyright (c) Michael Szvetits. All rights reserved. // </copyright> // <author>Michael Szvetits</author> //----------------------------------------------------------------------- namespace Chess.ViewModel...
e6a2de98439c4c0cb48327208c3e06e541c285fe
C#
davemau51074/BioShockesque-Game
/Bioshock Game XNA/Bioshock Game XNA/Bioshock Game XNA/DeadBodies.cs
2.71875
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Bioshock_Game_XNA { class DeadBodies { const int deadBody_Position_X = 515; const int de...
88d5c623e7f031977e1ce90a5f92183d82eaabe1
C#
OwenZhangSH/LeetCodeDemo
/Array/300. Longest Increasing Subsequence/LengthOfLIS1.cs
3.390625
3
public class Solution { public int LengthOfLIS(int[] nums) { int max = 0; int size = nums.Length; int[] currentMax = new int[size]; int current = 0; if (size == 0) { return max; } max = 1; currentMax[size - 1] = 1; for ...
1adad5b0fd3d04502613b802aed5e000d8f5f6d0
C#
rwcarroll77/MyCapstoneWork
/MillennialResortManager/DataAccessLayer/RoleAccessorMock.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DataObjects; namespace DataAccessLayer { /// <summary> /// Eduardo Colon /// Created: 2019/02/09 /// /// RoleAccessorMock to be used for testing /// /// the class...
9c0573c9ebffee58705d1e2d17007d9025136d81
C#
carloslo/nreco
/src/NReco.Tests/Transform/LocalFileManagerTests.cs
2.515625
3
using System; using System.Collections.Generic; using System.Text; using System.IO; using NUnit.Framework; using NReco.Transform; namespace NReco.Tests.Transform { [TestFixture] public class LocalFileManagerTests { [Test] public void ReadContentFileTest() { ...
e496ec69dd65deef6b740cd2db276a2e344476fd
C#
sadeniju/WpfExperiments
/SearchBox/Models/Book.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SearchBox { public class Book { public string Author { get; set; } public string Title { get; set; } public string ReleaseDate { get; set; } public Book(string author, string title, str...
7d664297666222f7381e7179c2bb5ca8818b7eb6
C#
Lightanic/Lightless
/Assets/Scripts/Inventory/ScriptableObjects/Inventory.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu] public class Inventory : ScriptableObject { public List<InventoryItem> Items = new List<InventoryItem>(); public List<uint> ItemNumber = new List<uint>(); public Dictionary<string, InventoryItem> ItemsDicto...
dc67234f36ad90e0e385f43369dc9f5896be7694
C#
AArnott/ClueBuddy
/ClueBuddy/Node.cs
3.015625
3
//----------------------------------------------------------------------- // <copyright file="Node.cs" company="Andrew Arnott"> // Copyright (c) Andrew Arnott. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace ClueBuddy { using System;...
10e26e6b23fea17260d4a257c512c3760858de17
C#
ObsidianMinor/Gfycat.Net
/src/Gfycat.Net/GfycatClientConfig.cs
2.75
3
using Gfycat.Rest; using Newtonsoft.Json; using System; namespace Gfycat { /// <summary> /// Defines a configuration for a <see cref="GfycatClient"/> /// </summary> public class GfycatClientConfig { /// <summary> /// Gets the Gfycat API version used by the client /// </summ...
6bf10094f89aed7ec0d506c6a87d9566c72207b0
C#
malaterre/charls-native-dotnet
/src/SpiffCompressionType.cs
2.53125
3
// Copyright (c) Team CharLS. // SPDX-License-Identifier: BSD-3-Clause namespace CharLS.Native { /// <summary> /// Defines the compression options that can be used in a SPIFF header v2, as defined in ISO/IEC 10918-3, F.2.1. /// </summary> public enum SpiffCompressionType { /// <summary> ...
3c3b54f7f8a175727b22256f2a2da22e3947d07b
C#
vostok/clusterclient.core
/Vostok.ClusterClient.Core/Transforms/DefaultHeadersTransform.cs
2.859375
3
using System.Collections; using System.Collections.Generic; using JetBrains.Annotations; using Vostok.Clusterclient.Core.Model; namespace Vostok.Clusterclient.Core.Transforms { /// <summary> /// A <see cref="IRequestTransform"/> which append default headers to <see cref="Request"/>. /// </summary> [Pu...
e0bd0057318e126f8fb190fb2d04f7495d8e62e3
C#
ivaKozarova/CSharpOOP
/ExamsOOP/Exam_12April2020/Robots/Robots.Tests/RobotsTests.cs
2.984375
3
namespace Robots.Tests { using NUnit.Framework; using System; [TestFixture] public class RobotsTests { private Robot robot; private RobotManager robotManager; [SetUp] public void Setup() { this.robot = new Robot("Pesho", 100); ...