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
b591a3cebd9092122f833c9f2efaa7b955f2a0e5
C#
Adithyat/WebAgentPro
/WebAgentProTemplate/Api/CostCalculators/DriverReceipt.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WebAgentProTemplate.Api.Models; namespace WebAgentProTemplate.Api.CostCalculators { public class DriverReceipt { public decimal BaseCost; public decimal FinalCost; public Dictionary<S...
ea5eb00bb1da2f8c46c93fd3f79f8a9916d65d65
C#
DomainGroupOSS/IdentityServer3
/source/Core/Services/ExternalClaimsFilter/MicrosoftClaimsFilter.cs
2.546875
3
/* * Copyright 2014, 2015 Dominick Baier, Brock Allen * * 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 applica...
5be0fabdfd7fc285b2584bdc48443a00a4e19f3e
C#
natalkata/C_Sharp
/4. Console_Input_and_Output/Problem7_SumOf5Numbers/Problem7_SumOf5Numbers/Problem7_SumOf5Numbers.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Problem7_SumOf5Numbers { static void Main(string[] args) { string inputNums = Console.ReadLine(); inputNums = inputNums.Replace(',', '.'); decimal sum = 0.00m; string[] numbersAsStrings...
ef161b18b3bc852273b520d9f5e4d7552b128039
C#
Azure/azure-sdk-for-net
/sdk/storage/Azure.Storage.Queues/src/Models/Internal/EncryptedMessageSerializer.cs
2.546875
3
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Text.Json; using Azure.Core; using Azure.Storage.Cryptography.Models; namespace Azure.Storage.Queues.Specialized.Models { internal static class EncryptedMessageSerializer { priva...
45859fb2c0bacd5bde07bbcd38889aea08648f5f
C#
spencer-langley/alfariq
/alfariq/ViewModels/ParticipantWelcomeViewModel.cs
2.53125
3
using alfariq.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace alfariq.ViewModels { public class ParticipantWelcomeViewModel { public ParticipantWelcomeViewModel(Participant p) { OpenSessions = new Dictionary<string, int>(); ...
f52114b50dc61079f16fc1c30b8c336153210ed8
C#
nicolascof/Music-Manager
/Music-Manager/frm_About.cs
2.84375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using System.Reflection; using System.Runtime.InteropServices; namespace Music_Manager { partial class frm_About : Form { const int MF_BYPOSITION = 0x400; [DllImport(...
d4ea5e18f4888b32ff37e7f08d4dd2d9bb35945f
C#
GHDevelop/FirstPersonGameThing
/First Person Game/Assets/Camera/Camera Controllers/BaseCameraMover.cs
2.75
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// The base camera mover that all camera movers derive from. This one simply rotates the camera with input given. /// </summary> public class BaseCameraMover : MonoBehaviour { [Header("Cameras and Transforms")] [Too...
e86584f3ef7867550dacc7505efb07b4c8ba6c2a
C#
DAABMoney/RsND-Inventory-Management
/RsND Inventory Management/Repo/OrderRepo.cs
2.890625
3
using RsND_Inventory_Management.Contracts; using RsND_Inventory_Management.Data; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace RsND_Inventory_Management.Repo { public class OrderRepo : IOrderRepo { private readonly ApplicationDbContext _db; ...
0729da4ffa0141f49b91ececedcd19152acf1fb9
C#
bravesoftdz/stroke-recognition
/segmenter/Segmenter/Segment.cs
3
3
/** * Author: Levi Lindsey (llind001@cs.ucr.edu) */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Shapes; namespace StrokeCollector { public abstract class Segment : Drawable { protected int strokeStartPointIndex; protected int strokeEndPointIndex;...
92e5e54aa6964b747f76f52ea54662490897ff4f
C#
HIOTechnologies/dashboard_win
/dashboard/Backend/EncodingBase64.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HIO.Backend { public class EncodingForBase64 { public string Base64Encode(string plainText) { if (plainText == "" || plainText == null || plainText.Length =...
f85804db5baaf524b3fa6011528a328d5cb33cd3
C#
lum1nary/MVVM.ViewModelFirst
/Src/Mvvm.ViewModelFirst/ViewResolver.cs
2.75
3
using System; using System.Collections.Generic; namespace MVVM.ViewModelFirst { public sealed class ViewResolver : IViewResolver { private readonly Dictionary<Type, ISingletonFactoryContainer> _singletonMethodContainer; private readonly Dictionary<Type, Type> _singletonAssociations = new Dicti...
82f81741d59d9253843644fda88484a9e272d03c
C#
UnicornOfDoom12/NEA
/Assets/Scripts/MapMarkerHandler.cs
2.671875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MapMarkerHandler : MonoBehaviour { public void UpdatePosition(){ GameObject Tracker = GameObject.Find("Cordinate Tracker"); // Finds the gameobject resposible for tracking cordx and cordy CordinateHandler CordinateHandler...
20d4d267c8a09a7c731eb414b85bd9e4409f37f7
C#
juanquinones/SpaceMan
/Assets/Scripts/Collectable.cs
2.9375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public enum CollectableType //creamos un enumerado para configurar todos los colleccionables { healthPotion, manaPotion, money } public class Collectable : MonoBehaviour { public CollectableType type = CollectableType.mon...
478ee52ed771fe582069330e7763529021ff47fb
C#
rafaelvasco/OMEGA
/OMEGA/Primitives/Point.cs
3.25
3
using System; using System.Runtime.InteropServices; namespace OMEGA { [StructLayout(LayoutKind.Sequential, Pack = 4)] public struct Point : IEquatable<Point> { public static readonly Point Zero = new Point(0, 0); public int X; public int Y; public Point(int x, int y) ...
11d9ec200e1ab895801fa06bbf65e42e0e9ae7bb
C#
diego-escalante/LD46-FriendlyFire
/Assets/Scripts/Player/TopDownMovement.cs
2.765625
3
using UnityEngine; // For future reuse: // TopDownMovement shouldn't take input directly, there should be a input manager controlling everything. (Ok, inputs are a little better now but there's still room to improve.) // It would be nice for TopDownMovement to have acceleration, but its not necessary for this game. ...
b0f6824d7bc1abbb803bd64f96d0a031b8eb49ae
C#
boryanagm/Telerik-Projects
/04. WEB/04. Basic Authentication/InClassActivity/Beers.Services/BeerService.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using Beers.Data; using Beers.Data.Models; using Beers.Services.Contracts; using Beers.Services.Models; using Microsoft.EntityFrameworkCore; namespace Beers.Services { public class BeerService : IBeerService { private readonly BeerDbContext dbCo...
bf163a33ac7d23d945830fcb94e66675949c790a
C#
ligu/KafkaClient
/src/KafkaClient/Protocol/HeartbeatResponse.cs
2.625
3
using System; using System.Collections.Immutable; namespace KafkaClient.Protocol { /// <summary> /// HeartbeatResponse => ErrorCode /// ErrorCode => int16 /// /// see http://kafka.apache.org/protocol.html#protocol_messages /// </summary> public class HeartbeatResponse : IResponse, IEquat...
7644f46bebfde8557639cefdd3d45804e2232997
C#
andyhodges10/RogueSharpExample
/RogueSharpExample/Actors/Monsters/Hard Monsters/Werewolf.cs
2.8125
3
using RogueSharp.DiceNotation; using RogueSharpExample.Core; namespace RogueSharpExample.Monsters { public class Werewolf : Monster { public static Werewolf Create(int level) { int health = Dice.Roll("4D4") + level / 2; return new Werewolf { ...
f1b448cdd42f0dd0be12bbec745a90e2fdae27bd
C#
albertodemarco/CupidoBot
/CupidoBotV1/CupidoBotV1/Services/CustomVisionService.cs
2.59375
3
using System; using System.Collections; using System.Linq; using System.Web; using System.Configuration; using System.Threading.Tasks; using CupidoBotV1.Data; using Microsoft.Cognitive.CustomVision; namespace CupidoBotV1.Services { public class CustomVisionService { public static async Task<ArrayList>...
c7b076c2f4e9402f70e2a25bd6c5da507a22da42
C#
Kawser-nerd/CLCDSA
/Source Codes/AtCoder/abc104/B/4784135.cs
3.578125
4
using System; namespace AtCoder { class Program { static void Main(string[] args) { MainStream(); } static void MainStream() { char[] s = Console.ReadLine().ToCharArray(); if(Judge(s)) { Conso...
76530579f6e65605b666b204da17015034ee9d1e
C#
ciscoalmighty/SafeAutoKata
/TripWork.cs
3.03125
3
using FileUpload.Models; using Microsoft.VisualBasic; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace FileUpload { public class TripWork { public static List<string> Split(string lineToSplit) { //s...
ec25f45aedc1acd57bee364a8b35ee35baac75e2
C#
quattro004/Recipieces
/RecipeUIClassLib/Extensions/StringExtensions.cs
3.78125
4
using System; using System.Collections.Generic; using System.Text; namespace RecipeUIClassLib.Extensions { public static class StringExtensions { /// <summary> /// Converts the <paramref name="input" /> string list into a string delimiting each entry using the /// <paramref name="delim...
02300be8efb849f2e6fe2a61942c8cc5cf0801d1
C#
willardf/InfiniteCyborg
/InfiniteCyborg/Genetics/BitField.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InfCy.Genetics { public class BitField { private const int DataSize = sizeof(long) * 8; private long[] data; public BitField(int len) { Len...
6e368484b34d9b6869457b7c7bdae0ab7f030d29
C#
solidify-project/engine
/src/SolidifyProject.Engine.Services/ContentReaderService/FileSystemBinaryContentReaderService.cs
2.59375
3
using System.IO; using System.Threading.Tasks; using SolidifyProject.Engine.Infrastructure.Models.Base; namespace SolidifyProject.Engine.Services.ContentReaderService { public class FileSystemBinaryContentReaderService<T> : _FileSystemContentReaderServiceBase<T> where T : BinaryContentModel, new() { p...
365e7041a111d039ea03ed6aec68628ad99c3169
C#
jonopare/extellect-utils
/src/Extellect.Utilities/Execution/CronExpression.cs
2.59375
3
#pragma warning disable 1591 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Extellect { public class CronExpression { internal class FiringIterator { private CronExpression _cron; private readonly int _minuteIndex; ...
fbea6bf07b5bfbf3a1e47cbaaf00ac51a7611465
C#
TrifonApov/SoftUni
/2023-02-CSharp-OOP/Exams/20220822/01. Structure_Skeleton_6.0/Repositories/RoomRepository.cs
2.9375
3
using System.Collections.Generic; using System.Linq; using BookingApp.Models.Rooms.Contracts; using BookingApp.Repositories.Contracts; namespace BookingApp.Repositories { public class RoomRepository : IRepository<IRoom> { private List<IRoom> rooms; public RoomRepository() { ...
26bee75b84f187a36c49b187f2c7c62e0b3922f7
C#
DejanMilicic/RavenCms
/src/RavenCms/RavenCms/Infrastructure/Helper.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; namespace RavenCms.Infrastructure { public static class Helper { public static List<string> GetRandomTags() { List<string> tags = new List<string> { "music", "business", "politics", "domestic", "internatio...
7ffb9d8b3b8ef67e2745bf1e381815e3573eb46f
C#
DanielPalatinszky/CSharp-Class-9
/CSharp Class 9/Example.cs
3.15625
3
using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Text; namespace CSharp_Class_9 { // Egy structnak is lehetnek konstruktorai és metódusai // Akkor mi a különbség a kettő között? // C#-ban valójában a típusokat két csoportra tudjuk bontani: érték és refere...
c337b064367db69cdffa95cb704269f3dace0479
C#
alakanu/GGJ2019
/Assets/Scripts/TypeWriter.cs
2.828125
3
using System.Collections; using UnityEngine; using UnityEngine.UI; class TypeWriter { public bool Writing { get { return writing; } } public IEnumerator WriteText(string text, Text uiText, AudioSource audio) { fastForward = false; writing = true...
b3dd2304889d7b8595d1bf3deb612ba13e9dd5e5
C#
zsuzsannamangu/University-Registrar
/University/Controllers/StudentsController.cs
2.609375
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using University.Models; namespace University.Controllers { public class StudentsController : Controller { [HttpGet("/students")] public ActionResult In...
07ac887b522b5e0c287cc19eefef1b97b9e76316
C#
umayya154/Event-designer-system
/Event/WcfService2/WcfService2/Admin.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Drawing; namespace WcfService2 { public class Admin { private string securitycode = "admin123"; public string Securitycode { get { return securitycode; } set { sec...
8312f856507da6abb9801ef115b5fadb69813452
C#
imxingquan/DW.Framework4
/DW.Framework/Data/DataAccessor.cs
2.515625
3
/** * 缼޹˾ (C) 2007 * ļ: DataAccess.cs * : 2007.5.20 * ޸ʱ:2011.4.8 * : * ݷͨûࡣ * */ using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.Common; using System.Web; using System.Web.Caching; using System.Web.Configuration; using DW.Framework.Configuration;...
49669ad8a6857b690ecaecd966b2781202b5ca13
C#
Earu/Octovisor
/Octovisor.Client/Exceptions/UnknownRemoteProcessException.cs
2.546875
3
using System; namespace Octovisor.Client.Exceptions { public class UnknownRemoteProcessException : Exception { public UnknownRemoteProcessException(string processName) { string msg = $"Process \'{processName}\' does not exist or is not available"; this.Message = msg; ...
0e5a44468e45a34639c17cfd13ed8b8fc00a4aa0
C#
BialekM/training
/hornets 2.0/training/HornetsTraining/HornetsTraining/Training1/HomeWork/MarcinJaniak/MarcinJaniakList.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Toci.HornetsTraining.Training1.Generics; namespace Toci.HornetsTraining.Training1.HomeWork.MarcinJaniak { class MarcinJaniakList<TListItem> : MyList<TListItem> { public override v...
0cdf356579c7637c83591e98ca2a3d0e8106a0ab
C#
mikeoye25/TechAnswers
/TechAnswers.Services/TransactionService.cs
2.546875
3
using CsvHelper; using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Threading.Tasks; using TechAnswers.Core; using TechAnswers.Core.Interfaces; using TechAnswers.Core.Models; using TechAnswers.Core.ViewModels; namespace TechAnswers.Services { ...
eef9d6015c766953ac65f08d5f35cc430167d65a
C#
shendongnian/download4
/code10/1732496-54960407-192767612-2.cs
2.59375
3
[HttpPatch("{id}")] public IActionResult Patch(int id, [FromBody]JsonPatchDocument<Node> value) { try { //nodes collection is an in memory list of nodes for this example var result = nodes.FirstOrDefault(n => n.Id == id); if (result == null) { ...
b71cb96a4e7821390304689c69be372a5c52a9ef
C#
ArikMackenburg/Lab03
/Lab/Challenge2.cs
3.90625
4
using System; using System.Collections.Generic; using System.Text; namespace Lab { public class Challenge2 { public static void HandleChallenge2() { prompt: Console.WriteLine("Pick a number between 2-10"); string input = Console.ReadLine(); int lengt...
0f23d0f5f57d725d54cb0c0736f7c1eaeb8ffc77
C#
GraemeRMcAllister/SET09102
/NBMFS/Models/MessageValidation.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBMFS.Models { class MessageValidation { public static void ValidateHeader(string header) { string typelist = ";"; if ((header.Length == 10) && ...
5b54b8e466aa2505a8172a74602e1051c8b48c1b
C#
furaga/SketchTyping
/SketchTypingLib/SketchTypingClient.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using System.Windows.Forms; using System.Drawing; using System.IO; using System.Runtime.InteropServices; namespace FLib { public class SketchTypingClient : IDisposable { readonly System.Text.En...
4704f5ea6a6c553d383191c7cdf3fe49ec83803e
C#
joshseward/HotDrinkMachine
/HotDrinksMachine/Controllers/HotDrinkController.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using HotDrinksMachine.HotDrinks; using HotDrinksMachine.Types; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace HotDrinksMachine.Controllers { [ApiControl...
904d5ef166132d1eaa974d7ee8366f599333701d
C#
okwisfav/TOM-fun-game
/TOM fun game/the best game five/sweet game/FavourTomGame/Instruction.cs
2.609375
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 FavourTomGame { public partial class INSTRUCTION : Form { public I...
901f76df264c756280e7664482893761de64da2e
C#
tomasking/CraftsmanshipKatas
/CalculatorKata/TicTacToeKata/Turn.cs
2.5625
3
namespace CraftsmanKata.TicTacToeKata { internal struct Turn { private readonly Column column; private readonly Row row; private readonly Symbol symbol; public Turn(Column column, Row row, Symbol symbol) { this.column = column; this.row...
057da186eb2e47da1bc3ed0cc08be0af6489f1b5
C#
combit/ll-samples
/Microsoft .NET/.NET Core 3.1/WinForms/RTF Sample/Form1.cs
2.59375
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Windows.Forms; using combit.Reporting; namespace RTFSample { public partial class Form1 : Form { public Form1() { InitializeComponent(); // // TODO: Add any con...
f64fa676e15043194f7f6010a1591a1fbeceab12
C#
waldos200/Programacion1
/UNIDAD_4/Grupo#4_Herencia/PrEjercicio2/PrEjercicio2/PrEjercicio2/Automovil.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PrEjercicio2 { class Automovil:Transporte { public string marca; public string modelo; public int motor; public Automovil(string marca, string modelo, ...
fedf7b967c1252558f503b03f5872001ef52adf4
C#
cocodrips/marathon24
/marathon24_2014_problemset_and_inputs/pap/paperBoy.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using Watch = System.Diagnostics.Stopwatch; using StringBuilder = System.Text.StringBuilder; using BitVector = System.Collections.Specialized.BitVector32; class Solver { Random r = new Random(0); int last; int m; void Solve() { ...
5de8b050a4c7c7b68a045336ed14af9be0f00bce
C#
mattche/ChsuSchedule
/src/ChsuSchedule.Data/Parser/ScheduleParser.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using AngleSharp.Parser.Html; namespace ChsuSchedule.Data.Parser { /// <summary>Парсер расписания.</summary> sealed class ScheduleParser : IScheduleParser { #region IScheduleParser implementation public IEnumerable<StudentClassesScheduleRecor...
51f759551286e896441cf2dfbed37681ff69e451
C#
chrispydizzle/coding-challenges
/BinaryTrees/RootLeafPath.cs
3.125
3
namespace CodeChallenges.BinaryTrees { internal class RootLeafPath { public bool HasPathSum(TreeNode root, int sum) { if (root == null) return false; return this.HasPathSum(root, sum, 0); } private bool HasPathSum(TreeNode root, int sum, int running) ...
1648413e4ead56488313a0be5bbe29b39831aa54
C#
shendongnian/download4
/code10/1814157-53442194-186404880-2.cs
2.75
3
var length = 1000; Task.Run(() => { for (int i = 0; i <= length; i++) { Application.Current.Dispatcher.BeginInvoke(new Action(() => { lblMsg.Content = "Test" + i; }), DispatcherPriority.Render); Thread.Sleep(100); } });
6c7f04f2736d40d7725f2843e658c77124cd0c9b
C#
ccandy/SRPPipeline
/Assets/Frameworks/Common/Singleton/SingletonMonoBehaviour.cs
2.65625
3
using UnityEngine; namespace Frameworks.Common { public class SingletonMonoBehaviour<T> : MonoBehaviour where T : MonoBehaviour { protected static T mInstance = null; public static T Instance { get { return mInstance; } } public static T Create() { if (mInstance != null) return mIn...
0c366fbe75b822dae9860b2b86b3a48a086b4eab
C#
ibtanjeeb/Practice-some-code
/DataTypeIO/DataTypeIO/Program.cs
3.578125
4
using System; namespace DataTypeIO { class Program { static void Main(string[] args) { //(a) Integer int[] arrint = new int[5]; Console.WriteLine("Please enter the integaer elements:"); for (int i = 0; i < arrint.Length; i++) { ...
930962ca661c73e924d30187e389ea818bf27394
C#
maksimkurb/BridgeBotNext
/BridgeBotNext/Attachments/AudioAttachment.cs
2.859375
3
using System.Text; namespace BridgeBotNext.Attachments { public class AudioAttachment : DurationFileAttachment { public AudioAttachment( string url = null, object meta = null, string caption = null, string fileName = null, long fileSize = 0, ...
579060ce9ef1d03f8c454c716c12d6d4f4f8d306
C#
ThanhThanh2911/Module2
/MVC/StudentMVC/StudentMVC/Models/StudentRepository.cs
3.28125
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; namespace StudentMVC.Models { public class StudentRepository : IStudentRepository { private readonly AppDbContext dbContext; public StudentRepository(AppDbContext dbContext) { ...
d9ce3a52346f9f402ebaa6f5b8220cab265ef85f
C#
sapiens/cavemantools
/src/CavemanTools/Extensions/ListUtils.cs
3.59375
4
using System.Linq; namespace System { public static class ListUtils { public static bool IsEqual<T>(this T[] source, T[] other) where T : IEquatable<T> => source.IsEqualTo(other, (i1, i2) => i1.Equals(i2)); public static bool IsEqualTo<T>(this T[] source, T[] other,Func<T,T,bool> ...
68325617e78af86f2dca388ed94fe5ed8ce26c85
C#
mmoroney/Algorithms
/Problems/BinarySearchTrees/SatisfiesBST.cs
3.15625
3
using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using Algorithms.DataStructures; using Utilities; namespace Problems.BinarySearchTrees { // EOPI 15.1 [TestClass] public class SatisfiesBST { [TestMethod] public void SatisfiesBSTTest() ...
de13b3e3c817bc7a2d14a61b779f121508e1dd63
C#
rgoncalves95/taskerAI
/TaskerAI.Api/Models/Mappers/PlanMapper.cs
2.671875
3
namespace TaskerAI.Api.Mapper { using System.Collections.Generic; using System.Linq; using TaskerAI.Api.Models; using TaskerAI.Common; using TaskerAI.Domain; public class PlanMapper : IMapper<Plan, PlanModel> { public void Map(Plan from, PlanModel to) { } ...
57db7ec1118b4db4e4d37e083e7ebf35594ffbb1
C#
Cundalf/Stalhvik
/Assets/Scripts/Misc/Loot.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Loot : MonoBehaviour { public Vector3 offset; public GameObject lootPrefab; [Range(0f, 1f)] public float probability; public bool loot() { if(Random.value > 1 - probability) { ...
2455e666440591a4f73d7c1efc6b2a5ba88f877a
C#
kraskoo/SoftUni-v3.0
/Data-Structures/Linear-DS-Lists-And-Complexity-Homework/P06ImplementTheDataStructureReversedList(T)/EntryPoint.cs
3.421875
3
namespace P06ImplementTheDataStructureReversedList_T_ { using System; public class EntryPoint { public static void Main() { ReversedList<int> reversedInts = new ReversedList<int>(); reversedInts.Add(3); reversedInts.Add(-34532); reversedInts....
3c345f63531c13bd3aacbcc40bfa0784808759b6
C#
DonVo2020/DonVo2020.DataStructuresAlgorithms
/DonVo2020.DataStructuresAlgorithms.MVC/Controllers/UndirectedDenseGraphController.cs
3.0625
3
using System.Linq; using Microsoft.AspNetCore.Mvc; using DonVo2020.DataStrutures.NetCore31.Graphs; using Microsoft.AspNetCore.Html; using DonVo2020.DataStrutures.NetCore31.StringHelpers; namespace DonVo2020.DataStructuresAlgorithms.MVC.Controllers { public class UndirectedDenseGraphController : Controller { ...
160e76489d0b07adf27436fc5cc1c51fb37823a2
C#
hsg77/ArcMapByCommon
/ArcMapByCommon/SelectionEx/NetColorSelection.cs
2.796875
3
using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Drawing; namespace ArcMapByCommon { /// <summary> /// .Net颜色选择 管理类 /// </summary> public class NetColorSelection { private ColorDialog m_dialog = null; public NetColorSele...
3667016cc50d89bfb3cb2ccc1d00ccdecd3145bc
C#
stanley-yang/ActivityPlanner
/Models/ActivityCenter.cs
2.609375
3
using System.ComponentModel.DataAnnotations; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace ActivityCenter.Models { public class Activity { // auto-implemented properties need to match the columns in your ...
fc4fc04efc633997b2130018b1d1b636c6395855
C#
Aekaraman/HR-Management
/HRManagement/HRManagement.Data/Repositories/Concrete/UpcomingPaymentRep.cs
2.640625
3
using HRManagement.Data.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; namespace HRManagement.Data.Repositories.Concrete { public class UpcomingPaymentRep { private static UpcomingPaymentRep paymentsFactory = null; privat...
ae6a0740a15c04162b7cb02d2c3f3d2188922283
C#
mendesbarreto/BSRescue
/Assets/Scripts/Player/InputController.cs
2.765625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public sealed class InputController : MonoBehaviour { private bool pressKeyToPlay; [SerializeField] private bool isKeyboard; public bool PressKeyToPlay { get { return pressKeyToPlay; } set { pressKeyToPlay = value; } } priv...
07b6c812bf7511fb1498b84d44a51ccf2eb03d47
C#
LilitHakobyan/MicHomeworks
/Blocknote/Blocknote/Record.cs
3.296875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Blocknote { class Record { public string Name { get; set; } public string Phone { get; set; } public Record(string name, string phons) { th...
c2d346e98bab6373790dd6e2036eccbf2af51536
C#
roxannekhouani/Programmation-Csharp
/Simulation de news/WindowsFormsApp1/Factory.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindowsFormsApp1 { delegate void Handler<T>(T t); class Factory <T> where T :chap, new() { private List<T> maListe = new List<T>(); public event Handler...
734fd82aa91bead74c45f53ff68a8f33d5467939
C#
matrizzza/RandomMathExercise
/RandomMathExercise/MainWindow.xaml.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using Syste...
4811039787462b10f25b8313db69809593eee9d5
C#
RiadRepo/Cs-basic
/text replace.cs
2.984375
3
string sayHello = "Hello World!"; Console.WriteLine(sayHello); // Hello World! sayHello = sayHello.Replace("Hello", "Greetings"); Console.WriteLine(sayHello); // Greetings World!
0d200254ffc2cdfe601ef510c21527ef757486e2
C#
cr7pt0gr4ph7/pic-simulator
/PicSim.UI/Helper/ObservableSet.cs
2.953125
3
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading.Tasks; using PicSim.Utils; namespace PicSim.UI.Helper { public class ObservableSet<T> : ISet<T>, INotifyCollectionChanged { private readonly ISet<T> m_unde...
935268573e85e2807125dfdf96037496b1a96053
C#
CarlFredrikAhl/SinusSkateboards
/SinusSkateboards/Models/Product.cs
2.78125
3
using System; using System.ComponentModel.DataAnnotations; namespace SinusSkateboards.Models { public class Product { [Key] public int ProductId { get; set; } //Primary key public int? OrderId { get; set; } //Foreign key public string Image { get; set; } public string T...
980097d27ceac7d73c40d80e171206b8cbada894
C#
lopes-felipe/Loja
/Solution/LojaVerity.Servicos/Entidades/Produto.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; namespace LojaVerity.Servicos.Entidades { [DataContract(Namespace = "http://servicos.verity.com/1.0/Entidades")] public class Produto { public Produto() { } ...
9772d323206fb8e162a6c6960413f7b1ddb71a47
C#
gstamac/AllGreen
/src/AllGreen.Core/JsMapFile.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json.Linq; namespace AllGreen.Core { public class JsMapFile { public int Version { get; set; } public string OutputFile { get; set; } public string[] SourceFiles { get; set; } public string[] Nam...
8eaaebe1fc5d01efbac2f74706fd2212de26ed88
C#
the6th/UnityNativePlugin-Template
/UnitySample/Assets/Scripts/DebugLogToText.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class DebugLogToText : MonoBehaviour { [SerializeField] Text logText; [SerializeField] TextMesh logTextMesh; private const int LOG_MAX = 20; private Queue<string> logStack = new Queue<...
6aacc176f0eaee8b1c8fc18947c5a26aae3fd1ce
C#
harshdave71720/ShoppingCartRepo
/ShoppingCartSolution/ShoppingCartSystem/ItemManager.cs
2.734375
3
using ShoppingCartDataLayer.Repositories; using ShoppingCartLibrary; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ShoppingCartSystem { public class ItemManager : ShoppingSystemManager { public ItemManager(IDataSource data...
d1c36f991876cdab5fc75da8a7ab27b5d16d54b2
C#
c-rblake/OOP2
/Bird.cs
3.234375
3
namespace OOP2 { public class Bird : Animal { private bool hasFeathers; public bool HasFeathers{ get; set; } public Bird(string name, double weight, int age, bool hasFeathers) : base(name, weight, age) { this.HasFeathers = hasFeathers; } public over...
d61b366a1c79bebed52691155e3060272c7aeccf
C#
rushidaoy/CoffeeShop
/CoffeeShopSimulation/CoffeeShopSimulation/CoffeeShopSimulation/SimulationModel.cs
2.859375
3
// Author: Mark Voong // Class Name: SimulationModel.cs // Date Created: Dec 5th 2015 // Date Modified: Dec 6th 2015 // Description: Handles all simulation logic of the coffee shop using System; using Microsoft.Xna.Framework; namespace CoffeeShopSimulation { class SimulationModel { private InputManag...
423c3a28de5f48280af5f99f944cafce189decfb
C#
nixonjoshua98/miner-maze-game
/Unity/MinerMazeGame/Assets/Scripts/Player/Modules/PlayerMining.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine.UI; using UnityEngine; public class PlayerMining : MonoBehaviour { public GameObject mineRoot; public GameObject floorTile; public GameObject wallTile; public Text blockCountTxt; private int blockCount = 0; public void Awake() { ...
edb28d0a250c53a35b28cfe626cafdc33815eb75
C#
vioan12/Verificarea-si-Testarea-Sistemelor-de-Calcul
/Homework5/Lab1/QuadraticEquation.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab1 { public class QuadraticEquation { //ax^2 + bx + c = 0 public Coefficients Coefficients { private set; get; } public double Delta { get...
8f2ccc19b644e00e337c1bfe33f16a3958b07760
C#
zenithplatform/Core
/src/Zenith.Core.Models/VirtualObservatory/Objects/ObjectModel.cs
2.546875
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Zenith.Core.Models.VirtualObservatory.Objects { public class CelestialObject { List<DataItemBase> _objectData = null; public CelestialObject() ...
acc035865e3ed9c8c20957b7a97a30adb0ffa9c0
C#
avalanchus/GooglePhotoSync
/GooglePhotoSyncLib/PhotoSync.cs
2.921875
3
using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Threading; namespace GooglePhotoSyncLib { public class PhotoSync { private readonly Configuration _configuration;...
f876410f94d9a485de22d41bd6e358bd5fa9c496
C#
ChrisConnell1/Tech-Academy-Projects
/VisualStudio/ChallengeHeroMonsterClassesPt1/ChallengeHeroMonsterClassesPt1/Default.aspx.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace ChallengeHeroMonsterClassesPt1 { public partial class Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ...
67aeb0d9af0cd6ca748061e9cfd8520efdbfb9ab
C#
mayureshkrishna/dotnetCustomerAccount
/Cox.BusinessLogic/ExceptionFormatter.cs
2.984375
3
using System; using System.Collections; using Cox.Validation; namespace Cox.BusinessLogic { /// <summary> /// Summary description for ExceptionFormatter. /// </summary> public class ExceptionFormatter { #region constants /// <summary> /// header for message to be returned. /// </summary> private const s...
67c76786460d3ad2c0a90e553ea74d2605409dd8
C#
psotirov/TelerikAcademyProjects
/Web Services/Homework 2 - WCF/WCFStringCompare/StringCount.cs
3.015625
3
using System; namespace WCFStringCompare { public class StringCount : IStringCount { public int GetSubstringCount(string input, string substring) { int count = 0; int startIndex = input.IndexOf(substring); while (startIndex >= 0) { ...
67b0648f012ae936d137f86bab355680684fca9c
C#
Kjelloo/PetShop
/CrashCourse.PetShop.Infrastructure.Data/Repositories/PetTypeRepository.cs
2.890625
3
using System.Collections.Generic; using System.Linq; using CrashCourse.PetShop.Core.IRepositories; using CrashCourse.PetShop.Core.Models; using CrashCourse.PetShop.Infrastructure.Data.Entities; namespace CrashCourse.PetShop.Infrastructure.Data.Repositories { public class PetTypeRepository : IPetTypeRepository ...
a446598aa62dfb87adfed87193dcdb6c025eee2c
C#
kaoandrew/GetUsGrub
/CSULB.GetUsGrub/CSULB.GetUsGrub.BusinessLogic/Strategies/ValidationStrategies/CreateRestaurantPreLogicValidationStrategy.cs
2.734375
3
using CSULB.GetUsGrub.Models; using System.Collections.Generic; namespace CSULB.GetUsGrub.BusinessLogic { /// <summary> /// The <c>CreateRestaurantPreLogicValidationStrategy</c> class. /// Defines a strategy for validating models before processing business logic for creating a restaurant. /// <para> ...
9fcb7cf1382469404d004a09f339fb450f6f5af0
C#
juliavav/CG
/LabsCG/LabsCG/Helpers/StringToDoubleConverter.cs
3
3
namespace LabsCG.Helpers { using System; using System.Globalization; using System.Windows.Data; public class StringToDoubleConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var v = value as double...
4826a56750741c0648edc79d0dfe1c0d2da07f01
C#
XiaoXiangJianKe/DesignPattern
/06-BuilderPattern/CharacterSystem/FemanHeroBuilder.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BuilderPattern.CharacterSystem { class FemanHeroBuilder : CharacterBuilder { private Character character = new Character(); public override void BuilderId() { ...
25bfa3c6c22b1b5c046023c1db6f8c8af4a0c46a
C#
PranikNikose/C-Sharp
/w3resource.com/Basic Exercise/Exercise20.cs
3.484375
3
using System; namespace skd { public class Exercise20 { public static void Main() { Console.WriteLine("Sum :{0}", Abosolute(13,40)); Console.WriteLine("Sum :{0}", Abosolute(50, 21)); Console.WriteLine("Sum :{0}", Abosolute(0, 23)); } ...
310ac9cd5561196221da175842b755c88a34f242
C#
lar-dragon/tweak
/TaskTemp.cs
2.71875
3
using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace Tweak { public class TaskTemp: ITask { private readonly IEnumerable<FileInfo> _files; public ulong Weight { get; } public bool ClearTemp { get; set; } ...
8aaa983909e18971d389232799b8857023b4ae82
C#
nirzaf/ProfessionalCSharp2021
/2_Libs/LoggingAndMetrics/MetricsSample/NetworkService.cs
2.78125
3
using Microsoft.Extensions.Logging; using System; using System.Net.Http; using System.Threading.Tasks; namespace MetricsSample { class NetworkService { private readonly ILogger<NetworkService> _logger; private readonly HttpClient _httpClient; public NetworkService( HttpClie...
bc6a4f82e813dd3fc7c5e3478ee0de1968ed5042
C#
omg3011/Human-Jam
/Human Jam/Assets/PlayerMovement/PlayerMovement.cs
2.5625
3
using UnityEngine; public class PlayerMovement : MonoBehaviour { public Rigidbody rb; //acceleration speed(TESTING ONLY TO SEE THE SIMULATION, WILL CLEAN UP BEFORE SUBMITTING) public float ForwardSpeed = 400f; //LEFT RIGHT turn speed... will trial and error to make it more realistic public float...
f1964b6cc26c5067d0e22c011fa39c055282ab8c
C#
ShmukaDuk/GeneralSkills
/StoreTxt.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using System.IO; using UnityEditor; using UnityEngine; public class StoreTxt : MonoBehaviour { public static void WriteUser(string text) { string path = Application.persistentDataPath + "/user.txt"; //Write some text ...
df9000ceffc3dca5ea5837eda61b1df5b3dd26c7
C#
BrendowLincoln/DIO.GamesApi
/ApiCaatalogoJogos/InputModel/GameInputModel.cs
2.734375
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace ApiCaatalogoJogos.InputModel { public class GameInputModel { [Required] [StringLength(100, MinimumLength = 3, ErrorMessage = "O nome do jogo d...
77d41c12212574e604885ab7ad944eaba2ca188d
C#
cedi-code/VertexProject
/ch04_HelloVertex_Net/Cube.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ch03_HelloCube_Net { /// <summary> /// creates a 3D Cube out of a Mesh /// </summary> class Cube : Mesh { private float size = 1.0f; private SLVec3f[] vectors; private SLVec3f fr...
a2e30628079e07aab378de2d8173ed61f4db8e8a
C#
asazonova/Randomchaos-MonoGame-Samples
/RandomchaosMGBase/BaseClasses/PostProcessing/PostProcess/RadialBlur.cs
2.609375
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace RandomchaosMGBase.BaseClasses.PostProcessing { public class RadialBlur : BasePostProcess { public float Scale; public RadialBlur(Game game, float scale) : base(game) { Scale = scale; }...
2b751edcb20348818d3ae453eee8ef7b45e0325a
C#
duospeak/IdentityService
/src/Domain/Check.cs
3
3
 namespace System { public static class Check { public static T NotNull<T>(this T obj, string parameterName) where T : class { if (obj.IsNull()) { NotNull(parameterName, nameof(parameterName)); throw new ArgumentNullException(parameterNam...
292a5051f9fe5a1571459f453367ec70b6ef79ab
C#
OliviaDenbuW/Desktop
/Nackademin år1/Färdiga kurser/C#/Lösningar Jan/kap01/ex1-9.cs
3.234375
3
using System; class Nastlade { static void Main () { Console.Write("Antal rader? "); string s = Console.ReadLine(); int n = int.Parse(s); for (int i=n; i>0; i=i-1) { for (int j=1; j<=i; j=j+1) Console.Write('+'); Console.WriteLine(); } } }
08b95dc1ac02ed6d41ffa47d5c5225c84d262f2b
C#
shendongnian/download4
/code10/1864390-55468970-194910746-2.cs
2.984375
3
public void WithReadLock(Action action) { var lockAcquired = false; try { try { } finally { _Lock.EnterReadLock(); lockAcquired = true; } action(); } finally { ...
b273a17d30875d64235433245103ee0d1200044c
C#
HiraokaHyperTools/PDFsharp
/PDFsharp/dev/XGraphicsLab-WPF/TestBezier.cs
3.015625
3
using System; using System.Collections.Generic; using System.Text; namespace XDrawing { static class TestBezier { public static void Test() { const double κ = 0.552284749f; // := 4/3 * (1 - cos(-π/4)) / sin(π/4)) <=> 4/3 * sqrt(2) - 1 //XRect rect = new XRect(x, y, width, height); doubl...
f83d5ddaa7a951b53e9a87d65bd79fffe1a98726
C#
aerodinamicc/AutoRent
/Client/Commands/Loading/LoadOfficesCommand.cs
2.90625
3
using Client.Commands.Contracts; using Data.Context; using Models; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; namespace Client.Commands.Listing { public class LoadOfficesCommand : ICommand { private readonly IAutoRentContext context; public LoadOff...
3de2b08376b7455f578861754bd845bc540fd363
C#
SpartyInDetroit/EFthis
/EFthis/Program.cs
2.96875
3
using System; using System.Data.SqlClient; using CommandLine; using EFthis.CodeGeneration; namespace EFthis { class Program { static void Main(string[] args) { Parser.Default.ParseArguments<Options>(args) .WithParsed(options => { ...
5f4410ba3583b261b9e5fc58c05d323dd5cc77d1
C#
devnixs/CSharpClassesToSQLServerTable
/ObjectScriptingExtensions/Relation.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ObjectScriptingExtensions { public class Relation : ICloneable { public TableDefinition Table { get; set; } public TableDefinition ForeignTable { get; set; } public string Name { get; set; } public RelationshipTy...