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
d00f0513e7f9fbd50e4833a0f68bdbc52eaf5409
C#
szabototo89/CodeSharper
/src/CodeSharper.Core/Common/StandardExecutor.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using CodeSharper.Core.Common.Runnables; using CodeSharper.Core.Common.Runnables.Converters; using CodeSharper.Core.ErrorHandling; namespace CodeSharper.Core.Common { public class StandardExecutor : IExecutor { private readonly IRunnabl...
e05f7227f296e81d82f663a88f34abda0564d59f
C#
i-cortez/AnotherInventoryTutorial
/Assets/Scripts/SC_CharacterController.cs
2.59375
3
// SC_CharacterController.cs // // Ismael Cortez // 12-10-2020 // Simple Inventory System // // Adapted from Sharp Coder: // https://sharpcoderblog.com/blog/unity-3d-coding-a-simple-inventory-system-with-ui-drag-and-drop // using System.Collections; using System.Collections.Generic; using UnityEngine; // Automatical...
2836a2b5522adc9f38e25e819ce57811373334c4
C#
DanilaMstr/FileWorker
/FileWorker/AbstractFileProcessor.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace FileWorker { abstract class AbstractFileProcessor { public void ProcessFile(string fileName) { if (fileName == null) { ...
5e92bbc1e5de98ba51c0fb1678267314c57b700b
C#
QuantumXS202/dippro
/Pro/getters en setters/player.cs
3.125
3
using System; using System.Collections.Generic; using System.Text; public class player { private int _lives = 10; public int lives { get { return _lives; } } private int _points = 0; public int points { get { ...
167a010906c8627a27f8cd61eeb1a140dbef42eb
C#
htna/HCsbLib
/HCsbLibMin/HCsbLibMin/HTLib2/HMath.Numerics/Quaternion.cs
2.875
3
using System; using System.Collections.Generic; using System.Text; using System.Runtime.Serialization; namespace HTLib2 { [Serializable] public struct Quaternion : IEquatable<Quaternion>, ISerializable { public enum EnumToString { ToAxisAngle, ToVector }; public static EnumToString typeToString = Enu...
5a75769cf04773e65f355e3a85773a4c0b705f4b
C#
SvenCoppens/TrainingManagerProject-master
/UnitTestProject1/ImplementationTests.cs
2.703125
3
using DataLayer; using DomainLibrary.Domain; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; namespace UnitTestProject1 { [TestClass] public class ImplementationTests { [TestMethod] public void TestMultipleAdditionsAndGetAllRunningSessions...
1061e218307d7e8f2cddd9031e9a2d07813b7792
C#
aemarkov/BooksCatalog
/BooksCatalog/Controllers/BooksController.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using AutoMapper; using BooksCatalog.Models; using BooksCatalog.ViewModels; namespace BooksCatalog.Controllers { /// <summary> /// Controller for display list of books /// </summary> public class...
d210735b3a3820bad3822a970fbf383e1fab6332
C#
ajitsnz/CSharpAutomationExperimental-
/QaAutoTests/MeetupDemoTests/API.cs
2.703125
3
using FluentAssertions; using FluentAssertions.Execution; using Newtonsoft.Json; using NUnit.Allure.Core; using NUnit.Framework; using QaAutoTests.Api.BDD.Client; using QaAutoTests.DataObjects; using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; usi...
1dbe2dd66ad17cbf66298ba4bfc7d2e8e5bfd743
C#
deanmadden/Snap
/Business/Card.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Business.Enums; namespace Business { /// <summary> /// Represents a playing card /// </summary> public class Card { public Card(RankEnum rank, SuitEnum suit) { ...
383b54e7121853ff131c6ebb12bdd40c65adbe14
C#
Kononkov1998/The-Return
/The Return/Assets/Scripts/Player.cs
2.609375
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public Location currentLocation; public List<Item> inventory = new List<Item>(); void Start() { } void Update() { } public bool ChangeLocation(str...
4fcfea552b692e33256ebe03569df6cf024df1d1
C#
vasilvalchanov/Web-Services-and-Cloud
/ASP-NET-Web-BookShopHomework/BookShopSystem.Services/Models/ViewModels/BookViewModel.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace BookShopSystem.Services.Models.ViewModels { using BookShopSystem.Models; using Microsoft.Ajax.Utilities; public class BookViewModel { public int Id { get; set; } public string Title { get;...
44076c44e71a83fc4c26cfb608565b40e210fac1
C#
thegreatco/SharpLock.InMemory
/src/SharpLock.InMemory/SharpLockInMemoryStringIdDataStore.cs
2.578125
3
using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace SharpLock.InMemory { public class SharpLockInMemoryStringIdDataStore<TLockableObject> : ISharpLockDataStore<TLockableObject, string> where TLockableObject : c...
58d4c03280e029814163e11482a66acca9b176f6
C#
rcmilan/ex-websocket-backend
/teste-websocket-backend/Hubs/ChatHub.cs
2.890625
3
using Microsoft.AspNetCore.SignalR; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using teste_websocket_backend.Models; namespace teste_websocket_backend.Hubs { public class ChatHub : Hub { private readonly string _botUser = "Chat Bot"; // usuário par...
1e65833b95c930af4ff9247f1b692f29dcaa1251
C#
xXx-QuIcks0p3rr2004-Sw4gg3r-xXx/CarSharer4.0
/CarModel.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CarSharer { public class CarModel { public int id; // let's see if we need this public string brand; public string model; public int power; // in HP (PS...
d35ed3ff13d2f7e249b661bfb29469fbf40e5c27
C#
VisualAcademy/DotNet
/DotNet/DotNet/31_Algorithms/13_01_Etc/알고리즘_배열채우기_행우선.cs
4.09375
4
class 알고리즘_배열채우기_행우선 { static void Main() { int[,] arr = new int[5, 5]; int value = 0; int row = 0, col = 0; // 배열 채우기: 행 우선 while (col < 5) { row = 0; while (row < 5) { value = value + 1; arr[...
1a18c1c8ad393f393a42ec0e914eb8eabceec181
C#
Haje-Guildmaster/guildmaster
/Assets/Scripts/Items/EquipmentStats.cs
2.59375
3
using System; using UnityEngine; namespace GuildMaster.Items { [Serializable] public sealed class EquipmentStats { [SerializeField] private int atk; public int ATK => atk; private bool Equals(EquipmentStats other) { return atk == other.atk; ...
bafd4d5aaad398a45cb0d0b3b1e8551a92544cbd
C#
rebel-07/first
/Diplom2/Diplom2/Form1.cs
2.71875
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 MySql.Data.MySqlClient; namespace Diplom2 { public partial class Form1 : Form { pu...
2d8c9d6b73e0da9a19a8179182beb33c867b785f
C#
shendongnian/download4
/code10/1766165-51553357-178533066-2.cs
3.171875
3
public MyForm() { InitializeComponent(); // At most 11 characters TxtID.MaxLength = 11; } private void TxtID_KeyPress(object sender, KeyPressEventArgs e) { // char.IsDigit is too wide: it returns true on any unicode digit (e.g. Persian ones) e.Handl...
90aa8b7449afc18d511179d6e46d839c6dc383ea
C#
Elvin1999/EduraWebApp
/Edura/Controllers/ProductController.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Edura.Models; using Edura.Repository.Abstraction; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace Edura.Controllers { public class ProductController : Controller { priv...
a36e0fc4ec1edfc36d231fe57c90ecf634d34712
C#
aspnet/samples
/samples/aspnet/WebApi/ControllerSpecificConfigSample/CustomControllerConfigAttribute.cs
2.546875
3
using System; using System.Net.Http.Formatting; using System.Web.Http.Controllers; namespace ControllerSpecificConfigSample { /// <summary> /// This <see cref="Attribute"/> class sets per controller specific configuration. Controllers /// marked with this attribute will have a configuration provided by th...
bec0e4431ff8389360468bd512371c725dfc0a3a
C#
bilesha/100-Days-of-Code
/Binary To Decimal Conversion/C#/Program.cs
3.921875
4
using System; // C# program to convert //binary to decimal //Function to convert //binary to decimal class GFG { public static int binaryToDecimal(int n) { int num = n; int dec_value = 0; //initializing base1 //value to 1, i.e 2^0 int base1 = 1; int temp = n...
dac3b19dca3bac30bf7fb58f84cb577e40ffe48e
C#
zagiame/SoftUni
/C# Programing Fundamentals/PF11.ArraysExercise/02. Common Elements/Program.cs
3.515625
4
using System; namespace _02._Common_Elements { class Program { static void Main(string[] args) { // input string[] input1 = Console.ReadLine().Split(" "); string[] input2 = Console.ReadLine().Split(" "); // calculation foreach (stri...
a5cb5eddded12c33e34771be39ee2e6cb117bb6e
C#
manvig-optimus/Xamarin-Forms
/DocumentManagementSystem/DocumentManagementSystem/DocumentManagementSystem/Authentication/RequestHandler.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using Xamarin.Auth; using Xamarin.Forms; namespace DocumentManagementSystem.Authentication { public static class RequestHandler { public static async Task<string> Proce...
6b39b66139dcf6c2bc796577b881c852f6c6c37c
C#
GriefSyndromeModderTools/GS_ReplayBrowser
/ReplayInfo.cs
2.6875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GS_ReplayBrowser { class ReplayInfo { public string FilePath; public string FileName; public int FileSize_KB; public TimeSpan Time; ...
85991d7afc88e3f3f4e3c34c1699c64f7aaa754c
C#
yuva2achieve/TelerikAcademy
/CSharpPartTwo/07.Arrays/21.PrintAllCombinations/PrintAllCombinations.cs
3.8125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _21.PrintAllCombinations { class PrintAllCombinations { static void GetCombinations(int index, int start, int end, int[] array) { if (index == array.Length)...
8e8da6f653639fb8a493fad288a06e5ec8963cb2
C#
pederriis/MJAPDelpin.Contract
/MJAPDelpin.Contract.Application/Infrastructure/SQLDatabaseLogic.cs
2.796875
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Text; using System.Threading.Tasks; using MJAPDelpin.Contract.Application.Interface; using MJAPDelpin.Contract.Domain; using MJAPDelpin.Contract.Domain.DTO; using MJAPDelpin.Contract.Domain.Models; namespace MJAPDelpin.Contract....
c9df5e164bbbee2524b9c099a2687bea0e9c9849
C#
hu19891110/Orc.Squirrel
/src/Orc.Squirrel/Orc.Squirrel.Shared/Services/Interfaces/IUpdateService.cs
2.578125
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IUpdateService.cs" company="Orcomp development team"> // Copyright (c) 2008 - 2015 Orcomp development team. All rights reserved. // </copyright> // -----------------------------...
d43fecaa0172a58ef292e8978b3ec0601570f529
C#
tinudu/Linx
/tests/Tests.Linx/AsyncEnumerable/GroupAggregateTests.cs
2.703125
3
using System.Threading.Tasks; using Linx.AsyncEnumerable; using Xunit; namespace Tests.Linx.AsyncEnumerable; public sealed class GroupAggregateTests { [Fact] public async Task Success() { var result = await "Abracadabra".ToAsync() .GroupAggregate(char.ToUpperInvariant, (g, t) => g.Cou...
f8343a1cf8731de32eaa5e4bf994185ef6e5afe2
C#
FQanbari/BookShope
/BookShop/Mapping/CategoryMap.cs
2.84375
3
using BookShop.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BookShop.Mapping { public class CategoryMap : IEntityTypeConfiguration<Category> { ...
907383993b86b3c4624222c7854c50e6c0d16198
C#
shendongnian/download4
/first_version_download2/83689-5464974-11709896-2.cs
2.625
3
public class PersonMap:ClassMap<Person> { public PersonMap() { Table("Person"); Id(x=>Id).Column("PersonID"); References(x=>x.Student).KeyColumn("StudentID") Nullable().Cascade.All(); References(x=>x.Teacher).KeyColumn("TeacherID") ...
c2f08b7a4fa53d90438d84d19b83c2cfb0b3215f
C#
cproctor1988/magic_game
/player.cs
3.09375
3
using System; using System.Collections.Generic; namespace magic_game { public class Player { public string name; public int health; public int black_mana; public Deck deck; public List<Card> played_lands; private List<Card> hand; public List<Card> played_crea...
50719e0425c226ff52579eb643d7937dcebda2d1
C#
brendenvogt/dotnet-core-base
/Base/Infrastructure/Utilities/JsonSerializer.cs
2.53125
3
using System; using Infrastructure.Interfaces; using Newtonsoft.Json; namespace Infrastructure.Utilities { public class JsonSerializer : IMessageSerializer { public string Serialize(object obj) { return JsonConvert.SerializeObject(obj, Formatting.Indented); } } }
358e2fe3f2f8eaa7c3328fce98e756da80104d0d
C#
dvdpostweb/dvdPost-BO
/DvdPost/PayPal_Merchant_SDK/BasePayPalService.cs
2.6875
3
using System; using System.Collections.Generic; using System.Text; using PayPal.Authentication; namespace PayPal { public class BasePayPalService { private string ServiceName; private string ServiceVersion; private string AccessToken; private string AccessTokenSecret; ...
a9e8a1bf0dec47b55dce3f98c70fdddec0c85c65
C#
basakamars/CodeTest
/Core Json.net Test/Program.cs
2.796875
3
using System; using Newtonsoft.Json; namespace Core_Json.net_Test { class Program { static void Main(string[] args) { TestObject o = new TestObject(); o.ID = 99; o.Money = 99.99m; o.Name = "Test Object"; o.Update = DateTime.Now.AddDays...
a1b59288581478f993e9867c6e24086fd13cb5e6
C#
taesoku/Coding.Dojang
/src/Coding.Dojang/Question.098.Find.Happy.Number.cs
3.390625
3
using System.Collections.Generic; namespace Coding.Dojang { public static class Question098FindHappyNumbers { // time taken: 00:05:27:21 public static void Answer() { var output1 = FindHappyNumbers(3); var output2 = FindHappyNumbers(7); ...
40a1fa416400768968df85198caf711427800bb3
C#
dekz/carto
/cartographer/Dms.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace cartographer { public class Dms { public int m_degrees; public int m_minutes; public double m_seconds; public Dms() { } public Dms(double a_coord) ...
7fb18377a101b104f6c961bf9096f5f0760bb021
C#
chenzuo/tiny
/third-party/BclExtras/Collections/IPersistentList.cs
2.75
3
using System; using System.Collections.Generic; using System.Text; namespace BclExtras.Collections { /// <summary> /// Represents a persistent or immutable list which is indexable /// </summary> public interface IPersistentList<T> : IReadOnlyListEx<T> { IPersistentList<T> Insert...
f99d6e196c258e48731b410b9d0237ea057337c9
C#
david1221/ShopCarSln
/ShopCar/Controllers/CarsController.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using ShopCar.Data.Interfaces; using ShopCar.Models; using ShopCar.ViewModels; namespace ShopCar.Controllers { public class CarsController : Controller { private readonly IA...
8ca640b5837d2a952319b0328c2bb4ae4bcb2f6b
C#
RaikkonenLee/c_sharp_6_cookbook
/CSharpRecipes/09_NetworkingAndWeb.cs
2.59375
3
using System; using System.Text; using System.Net; using System.Net.Sockets; using System.IO; using System.Linq; using System.Security; using System.Collections.Specialized; using System.Runtime.InteropServices; using System.Diagnostics; using System.Web; using System.Web.Compilation; using System.CodeDom.Compiler; usi...
1ef8f856512d39e802861c42a4f8a9a6fee78204
C#
sharad99kr/csharp-exercise
/Exercise/BinarySearch.cs
3.703125
4
using System; namespace Exercise { public class BinarySearch { public static void Main5() { int[] arr = { 4, 9, 5, 1, 6, 2, 8, 10, 3, 12, 15, 17, 19, 11, 13, 16, 14 }; Console.Write("Un sorted array : "); foreach (int item in arr) { Console.Write(item + ...
972b70b41d3ed7d24e0dd954f2e8f60e6c437697
C#
natasajevtic/DAN_XLIX_Natasa_Jevtic
/DAN_XLIX_Natasa_Jevtic/Zadatak_1/Models/Users.cs
3
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace Zadatak_1.Models { class Users { /// <summary> /// This methods finds employee based on forwarded username and password. /// </summary> /// <param name="username">Employee use...
9b4a9aa61efb4e748d75fa97e34c5cd712398d58
C#
pekkah/tanka-graphql
/src/GraphQL/ValueSerialization/DoubleConverter.cs
2.828125
3
using System.Buffers; using System.Buffers.Text; using System.Globalization; using System.Text; using Tanka.GraphQL.Language.Nodes; namespace Tanka.GraphQL.ValueSerialization; public class DoubleConverter : IValueConverter { public object? Serialize(object? value) { if (value == null) ret...
444e7a6165f1fc1e14dbe167e14cd04039eaa644
C#
poohpaintii/book-source-codes
/c#/Visual C# 2010 Recipes - A Problem-Solution Approach/Chapter17/Recipe17-20/Countries.cs
2.890625
3
using System.Collections.ObjectModel; namespace Apress.VisualCSharpRecipes.Chapter17 { public class Countries : Collection<Country> { public Countries() { this.Add(new Country("Great Britan", Continent.Europe)); this.Add(new Country("USA", Continent.NorthAmerica)); ...
d2652f323829e8543e5abe603eee8b92d770d0c5
C#
HemangRajvanshy/Hacker-Story
/HackerStory Project/Assets/Scripts/Common/Player.cs
2.640625
3
using UnityEngine; using System; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Collections; public class Player : MonoBehaviour { public PlayerSave PlayerData { get; private set; } public bool PlayerDataExists { get { return PlayerDataExist(); } } private int StoryIn...
7183b27c7322f03c97a11bbe1b6a161529fcd1ed
C#
joaopapereira/fullbuckets
/Assets/scripts/GameLogic/Game.cs
2.625
3
using System; using UnityEngine; public interface Player { int Drops { get; set; } } public class PlayerImpl : Player { private int dropsLeft; public int Drops { get { return dropsLeft; } set { dropsLeft = value; } } } publ...
bdbcb3081fb86770a265827361bd7fc7c2906921
C#
BlueSky007/ExchangeManager
/Manager20131001/ManagerService/DataAccess/UserDataAccess.cs
2.875
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Security.Cryptography; using Manager.Common; namespace ManagerService.DataAccess { public class UserDataAccess:DataAccess { public static Guid LoginIn(string userName, string...
fab116d5f7fb48fd98e01f954de25fa5c4641e7c
C#
usausa/Smart-Net-Windows
/Smart.Windows/Windows/Internal/ConvertHelper.cs
2.5625
3
namespace Smart.Windows.Internal; using System.ComponentModel; using System.Globalization; public static class ConvertHelper { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Ignore")] public static object? Convert(Type targetType...
82a3668fd60e552d8013b037006699d82ceccc2b
C#
inthehand/32feet
/InTheHand.Net.Bluetooth/Platforms/Windows/BluetoothRadio.Windows.cs
2.546875
3
// 32feet.NET - Personal Area Networking for .NET // // InTheHand.Net.Bluetooth.BluetoothRadio (WinRT) // // Copyright (c) 2019-2023 In The Hand Ltd, All rights reserved. // This source code is licensed under the MIT License using System; using System.Threading.Tasks; using Windows.Devices.Bluetooth; using Windows.D...
07d57f39fc2d93c8b43f072c298071f328b73acd
C#
andrewfoghel/cis237assignment3
/cis237assignment3/Protocol.cs
3.203125
3
namespace cis237assignment3 { internal class Protocol : Droid { private decimal total; private int numberLanguages; private const int costPerLanguage = 20; public Protocol(string material, string model, string color, int numLang) : base(material, model, color) { ...
7dcfdce43540d23c1ff2071256bd156a1c0a5db3
C#
Zectew33/DoublyLinkedLists
/Assginment1_Task2/Program.cs
3.40625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Remoting.Messaging; using System.Text; using System.Threading.Tasks; namespace Assginment1_Task2 { class Program { static void Main(string[] args) { String path1 = @""; ...
4bdd2776f09c9a2af3cbf07db1289a43837f870c
C#
jinmin88/LeetCodes
/Add-Strings/Program.cs
3.875
4
using System; using System.Text; namespace Add_Strings { class Program { static void Main(string[] args) { Solution sol = new Solution(); Console.WriteLine("11+123=" + sol.AddStrings("11", "123")); Console.WriteLine("456+77=" + sol.AddStrings("456", "77")); ...
e82af8f30ce6db9b9cbc16456e0575293f234d35
C#
jbfp/Geek-Challenge-14
/src/SGC14.Web.Tests/Models/Twitter/SentimentAnalyserTests.cs
2.9375
3
using NUnit.Framework; using SGC14.Web.Models.Twitter; using System.Collections.Immutable; namespace SGC14.Web.Tests.Models.Twitter { [TestFixture] public class SentimentAnalyserTests { [Test] [TestCase("I had a nice day with friends.", 3.0)] [TestCase("I have nothing ba...
7476269b83cea4e91cfb306c38bf96c15547f9ab
C#
rafaelfgx/DesignPatterns
/source/Behavioral/Iterator/Iterator.cs
2.5625
3
public abstract record Iterator { public abstract object CurrentItem(); public abstract object First(); public abstract bool IsDone(); public abstract object Next(); }
5c7b9dc6b5b9e17bec5468078cbb36b56142d014
C#
Ieeax/cssparser
/src/CssParser/Parsing/SimpleBlock.cs
2.921875
3
using System.Diagnostics; namespace Leeax.Parsing.CSS { [DebuggerDisplay("Count = {Value.Count}")] public class SimpleBlock : IValue { private readonly char _prefix; private readonly char _suffix; public SimpleBlock(char prefix, char suffix) { _prefix = prefix;...
77c2b29b38311547e919ae05777728ea4ff475bf
C#
naccib/NaccordBot
/Utilities/Equation.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DiscordBot.Priting; using info.lundin.math; namespace DiscordBot.Utilities { static class EquationSolver { // IO stuff private static TextChannel UtilitiesChannel = new Te...
674aad308db1945197ca97a8c734975b788e240b
C#
jaytula/csharp-wars
/ResponsibleDrinkingTests/UnitTest1.cs
3.203125
3
using System; using NUnit.Framework; namespace CodewarsTests { [TestFixture] public class DrinkinTest { [Test] public void drinkinTest1() { Drinkin drinkin = new Drinkin(); string expected = "1 glass of water"; string actual = drinkin.hydrate("1...
f8b86585542102bd5fc1d9342aecb643a6fc78a8
C#
bubdm/MultiClientOPC
/Client/Models/Common/BaseModel.cs
2.578125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace Client.Models.Common { public class BaseModel : INotifyPropertyChanged { public event PropertyChangedEventHandler Proper...
39c05f030d7c7339cc332fd2088f9f6a53886f76
C#
AntoninsVorona/HeartRhythm
/Assets/Scripts/Inventory/ItemManager/ItemManager.cs
2.828125
3
using System.Collections.Generic; using UnityEngine; public class ItemManager : MonoBehaviour { private const string PATH = "Items"; private readonly Dictionary<string, Item> itemCache = new Dictionary<string, Item>(); private void Awake() { if (Instance == null) { Instance = this; } else if (Instance...
03863b08463dec9a681553893b53f1ccbb3072cc
C#
nhatthi196/QuanLiSieuThi_AprioriTID
/AprioriTID/Model/Law.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AprioriTID.DAO; namespace AprioriTID.Model { public class Law { public List<Item> X { get; set; } public List<Item> Y { get; set; } public double Conf { get; set; } ...
095e9bf5e1e87243efce09bbd0671b534671b1fd
C#
ismet-git/ConsoleApp
/ConsoleApp/Anagram.cs
3.9375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp { public class Anagram { //static void Main(string[] args) //{ // string s = "moon"; // string t = "nnoo"; // bool b = isAn...
1226ee951b507beaa268fb3b712774e0b9c27867
C#
DenisLabrecque/Warglobe
/Assets/Scripts/InstantiableSound/InstantiableSound.cs
2.609375
3
using UnityEngine; using UnityEngine.Audio; namespace Warglobe { [CreateAssetMenu(menuName ="Denis/Instantiable Sound")] public class InstantiableSound : ScriptableObject { [SerializeField] AudioClip _clip; [SerializeField] AudioMixerGroup _mixer; /// <summary> /// Instantiate a game...
a0a16c7924b64e71ea30839aface6abf8bfdeb6a
C#
BenDew21/CbaS
/CBaS Core/Framework/UI/Utility Classes/Utilities.cs
3.203125
3
using System; namespace CBaSCore.Framework.UI.Utility_Classes { public static class Utilities { public static Tuple<double, double> GetSnap(double x, double y, double snap) { // If we don't want to snap, then simply return the X,Y if (snap == 0) return new Tuple<double,...
ba9129a53f9f2988c86497677ab016c707306811
C#
Howlyy/SystemBiblioteczny
/SystemBiblioteczny/IssueInfo.cs
2.53125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace SystemBiblioteczny { /// <summary> /// Klasa okna dane o wypozyczeniach. /// <...
ee14c8ba77d315744ccd100199f44ea995e297ce
C#
marcusjobb/NET20D
/TDD/Inlämning1/Oskar/Inlamningsuppgift1TDD/Geometric/Triangles/EquilateralTriangle.cs
3.5625
4
namespace Inlamningsuppgift1TDD.Geometric.Triangles { public class EquilateralTriangle : Triangle { public EquilateralTriangle(float sideLength) { Base = sideLength; } public EquilateralTriangle(float _base, float _height) { Base = _base; ...
a420f8d7553c2ea883fa0050a13cb1b89125fe95
C#
mayconwisley/Tuottavuus
/Controle/DepartamentoControle.cs
2.9375
3
using Banco_De_Dados; using Modelo; using System; using System.Data; namespace Controle { public class DepartamentoControle { CRUD crud; string SQL; public DepartamentoControle() { crud = new CRUD(); SQL = String.Empty; } public bool Grav...
0d5f0f23499e0d4b9d11bc08403adb22c340f120
C#
BojanPetrovic2745/CS322-DZ05-BojanPetrovic2745
/CS322-DZ05-BojanPetrovic2745/Pomocna.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CS322_DZ05_BojanPetrovic2745 { static class Pomocna { private static Random rnd = new Random(); public static int GetRandomBroj() { int...
e45ecf261a28885e9c8aae89b1d5c5d1fec8ec65
C#
justDeek/Useful-Unity-Utilities
/Custom PlayMaker Actions/Random Customs/RandomPointOnSlope.cs
2.71875
3
using UnityEngine; namespace HutongGames.PlayMaker.Actions { [ActionCategory("Random")] [Tooltip("Returns a random point between two Vector3 variables. Useful for 2.5D games, e.g. if you want GameObjects to spawn further down the farther away they are or vice versa.")] public class RandomPointOnSlope : FsmStateAct...
2fa53c203568af447445ecf32556b768f0160527
C#
Wavergg/DeliveryMapApp
/DeliveryAppWhiterocks/DeliveryAppWhiterocks/Data/SQLite/UserDatabaseController.cs
2.734375
3
using DeliveryAppWhiterocks.Models; using SQLite; using System; using System.Collections.Generic; using System.Text; using System.Xml; using Xamarin.Forms; namespace DeliveryAppWhiterocks.Data.SQLite { public class UserDatabaseController { static object locker = new object(); SQLiteConnectio...
8b9ed60f86e90f17102b450f3dcd8002f006a7c2
C#
HeBaSoft/CK2Parser
/CK2Parser/CK2Parser/Parse/Model/WrapperParser.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CK2Parser.IO; using System.Text.RegularExpressions; using CK2Parser.Node; namespace CK2Parser.Parse.Model { class WrapperParser : ValueParser { private static readonly Regex _parser ...
2f3bf46b4fe24ae6b5701c44de6de5696b7f6540
C#
sami119/Simple-Programs
/Programs/Visual Studio Projects/From Lessons/Модул 7/ConsoleMVC/ConsoleMVC/Views/Display.cs
3.5
4
using System; using System.Collections.Generic; using System.Text; namespace ConsoleMVC.Views { class Display { public double Percent { get; set; } public double Amount { get; set; } public double Total { get; set; } public double TipAmount { get; set; } public Display...
cdf1adf3a1a083bda96f1002296a3baad85dc1c4
C#
hjgode/RAC_switch
/sdf_src/OpenNETCF.Drawing/OpenNETCF.Drawing/FontEx.cs
2.875
3
using System; using System.Runtime.InteropServices; using System.Drawing; using System.Collections; namespace OpenNETCF.Drawing { /// <summary> /// Defines a particular format for text, including font face, size, and style attributes. /// </summary> public class FontEx : IDisposable { #region private fields ...
433d45a13c8c47a670270f248ef35d118da734c4
C#
MRavandoust/CDA_2005
/C#/CDA2005_DESKTOP/ClassLibraryForet/Feuille.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibraryForet { public class Feuille { int nbNervures; private EnumFormeFeuille formeDeFeuille; private EnumCouleur couleurDeFeuille; /***********...
7030adda00767e8a5e3126c53fcf9da95f6421c6
C#
jasonrobert-gc/ahbc-012021-examples
/Day13/Program.cs
3.625
4
using System; using System.IO; namespace Day13 { class Program { static void Main(string[] args) { //// Static File methods //File.Exists("test.txt"); //File.ReadAllLines("test.txt"); //File.WriteAllText("test.txt", "asdfasdfasdf"); ...
632e8481e2727d0e7616d1de41bee4972f4b9a95
C#
zhoufwind/SaveAsT
/WindowsFormsSaveObjectsAsXMLAndJSON/FromSaveAsXML_JSON.cs
2.671875
3
using System; using System.Collections.Generic; using System.IO; using System.Windows.Forms; using Newtonsoft.Json; namespace WindowsFormsSaveObjectsAsXMLAndJSON { public partial class FromSaveAsXML_JSON : Form { private List<BilingualBook> classicsBilingual; public FromSaveAsXML_JSON() ...
acd1ee6e70e2c342fef920615b45fafe2310114c
C#
casrom/UnityPlayground
/Assets/Scripts/Inventory/Inventory.cs
2.953125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(fileName = "Inventory", menuName = "Inventory/Inventory", order = 1)] public class Inventory : ScriptableObject { private Dictionary<int, ItemInfo> items; //items in the inventory public int capacity = 4; pub...
68f985e86af7c5a2257d0a5932d672cbce1b872f
C#
boring-sandwich/ConvertingHexStuff
/ConvertingStuff/HexToDecimal.cs
3.484375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConvertingStuff { public class HexToDecimal { const decimal c_MB = 1048576; char[] characters; public bool CheckInputHEX(string hexInput) { ...
92fd64af61841e13152582c8d6abb691d073797c
C#
a3217496402/SekiroModManager
/Form_InputModName.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 SekiroModManager { public partial class Form_InputModName : Form { public Form...
07d4b4972670021028e9df60905cfac41035e823
C#
hoinarut/UnitTestingPlayground
/IamService/DataAccess/Extensions.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using IamService.DataAccess.DTOs; namespace IamService.DataAccess { public static class Extensions { public static UserDto ToDto(this User user, bool includeDetails) { var dto = new UserDto { ...
c8755853c12cdff4849131d18b80e6fbfc7d49d9
C#
korombus/BlackJack
/Asset/Scripts/System/DeckClass.cs
2.6875
3
using UnityEngine; using System.Linq; using System.Collections; using System.Collections.Generic; public class DeckClass{ /// <summary> /// 模様の種類 /// </summary> public enum Symbol { HEART = 0, SPADE, CLUB, DIA, } /// <summary> /// 模様の名称一覧 /// </sum...
6bd4758d5917c76cb287a11cd56bfbceff5bd068
C#
Emma8sun/jabber-irc
/JabberIRC/IRC/Commands/InfoPartial.cs
2.90625
3
namespace JabberIRC.IRC.Commands { /// <summary> /// Parameters [ target ] /// /// The INFO command is REQUIRED to return information describing the server: its version, when it was /// compiled, the patchlevel, when it was started, and any other miscellaneous information which may be /// con...
14e98b7703825d6a13bdda51dc2d669c6145bbda
C#
ShadowEaze/Distributed-Programming
/Weather Web Client A/WeatherWebClient/WeatherWebClient/Controller/ClimaCellController.cs
2.546875
3
using System; using System.Collections.Generic; using System.Text; using WeatherWebClient.Endpoints; using WeatherWebClient.JSONParser; using WeatherWebClient.Models; using WeatherWebClient.Models.Forecast; using WeatherWebClient.POCO; namespace WeatherWebClient.Controller { class ClimaCellController : Controller...
c0cdf0c0f48bbc9f4693fb84d1bca3a6b7718039
C#
dlgv/IrbisPortal
/BotUAC/TUserRoles.cs
3.1875
3
 using System; using System.Collections.Generic; using System.Linq; using System.Text; //---------------- using System.Xml; using System.Xml.Linq; // XElement using System.Collections; // ArrayList namespace BotUAC { [Serializable] public class TUserRoles : IEnumerator //, IEnumerable { ...
327d9bd5b6043bf6a242c545de72aaa86057b96d
C#
bechchadli/Prg-Ev-n-mentielle
/AppWF2/AppWF2/FGestionCandidat.cs
2.578125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace AppWF2 { public partial class FGestionCandidat : Form { //Déclar...
3e6a4f89afc58419065d660bd81329016d19b365
C#
black-hole-soft/game-show
/GameShow/GameShow/Screens/TeamsScreen.cs
2.75
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.IO; namespace GameShow { public partial class TeamsScreen : Form { private ...
246c2e721756d6f32ffd3b2ea953198266056aa6
C#
jhk2011/Practice.Converters-DotNet
/Practice.Converters/Converters/ArrayConverter.cs
3.390625
3
using System; using System.IO; namespace Practice.Converters { public class ArrayConverter : Converter<Array> { public override bool CanConvert(Type type) { return type.IsArray && type.GetArrayRank() == 1; } protected override void WriteObject(BinaryWriter writer, Type type, A...
79e683b42f0c50a2f4c1963c01ec587d7001fade
C#
himanshu8088/scaler-academy
/SpecialInteger/Program.cs
3.84375
4
using System; using System.Collections.Generic; namespace SpecialInteger { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); var sol = new Solution(); sol.solve(new List<int>() { 1,2,3,4,5}, 10); } } class ...
1b857b4236482772bc5375930559e62e747778b3
C#
maraf/G810Playground
/src/TestConsole/Program.cs
2.59375
3
using LedCSharp; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace TestConsole { class Program { private static CancellationToken cancellationToken; static void Main(string[] args...
a087a6eb1d7773f7a002b4d5e2b2dd9a2df81c4b
C#
Joel-Crunk/Farm
/OleManCrunksFarm/Rabbit.cs
3.3125
3
using System; namespace OleManCrunksFarm { internal class Rabbit { int rabbits = 0; public Rabbit() { } public void Live() { Reproduce(); Sleep(); Jump(); Eat(); Console.WriteLine($" There are...
939a311c4dc8275c7138068bb41ccc5f27b4576e
C#
WinterISGroup/EgyptExcavationProject
/Services/RecordService.cs
2.921875
3
using EgyptExcavationProject.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; //Service to handle the bulk of the logic neccessary for the controller in adding records to the database, editing, and deleting namespace EgyptExcavationProject.Services { public ...
63b271ab0054c301dba64590c257c8f38ac1e7a8
C#
AzureMentor/azure-functions-templates
/Functions.Templates/Templates/HttpTriggerWithParameters-CSharp/HttpTriggerWithParametersCSharp.cs
2.53125
3
#if (portalTemplates) using System.Net; public static HttpResponseMessage Run(HttpRequestMessage req, string name, TraceWriter log) #endif #if (vsTemplates) using System.Net; using System.Net.Http; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.Azure.WebJobs.Hos...
3de2902ea16b6b6dbd1b088a56d271abf7c24b44
C#
raccoon-repo/coursework
/XmlImpl/Xml/Utils/Impl/AuthorProxyNodeParser.cs
2.9375
3
using System; using System.Collections.Generic; using System.Xml; using BookLibrary.Core.Dao; using BookLibrary.Entities; using BookLibrary.Entities.Proxies; namespace BookLibrary.Xml.Utils.Impl { /* Responsible for parsing XmlNode into * AuthorProxy instance */ public class AuthorProxyNodePars...
009c125c0f8273ae352e6a70a50c6c5c25f89de9
C#
Montyi/Half-Dragons
/Source/Utilities/DragonRageUtilities.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Verse; namespace HalfDragons { public static class DragonRageUtilities { public static Hediff GetDragonRageHediff(this Pawn pawn) { List<Hediff> hediffs = pawn?...
a146685410b269411b33d21c85d0a2ca494914f2
C#
wufenglu/Warship-Excel
/Warship.Attribute/Attributes/LengthAttribute.cs
2.6875
3
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Warship.Attribute.Attributes { /// <summary> /// 长度校验属性 /// </summary> public sealed class LengthAttribute : BaseAttribute { /// <summary> /// 构造函数 ...
ff5f5fed0fc5b668d9e24badc46c92c1a4558381
C#
EricksonMarinho/teste
/LetrasComTraco/LetrasComTraco/Program.cs
3.140625
3
using System; namespace LetrasComTraco { class Program { static void Main(string[] args) { string texto; Console.Clear(); Console.WriteLine("Digite um texto"); texto = Console.ReadLine(); for(int i = 0 ; i < texto.Length; i++) ...
c55821a9ebf9b863553db1f7c6d9e2289d09b353
C#
Liao9144/Blog
/.NET 高级开发系列/MyGeneric/MyGeneric/GenericMethod.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyGeneric { public class GenericMethod { public static void Show<T>(T tParameter) { Console.WriteLine("This is {0},parameter={1},type={2}", ...
1dcc88eda42a1966b472d487f35c0bce5293a8b4
C#
bh-schmidt/ef-crud
/src/Data/Repositories/Repository.cs
2.921875
3
using Data.Context; using Microsoft.EntityFrameworkCore; using Models; using System.Collections.Generic; using System.Threading.Tasks; namespace Data.Repositories { public abstract class Repository<TModel> : IRepository<TModel> where TModel : BaseModel { private readonly IUnitOfWork unitOfWork...
0f4d3404b00fd0054b6765626d9a553672db3fcc
C#
minsterdead/GEM-C.Employe
/Service/MySql/MySqlProjet.cs
2.5625
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using GEM_C_E.Models.Entities; using GEM_C_E.Service.Definitions; using Immobilus.Logic.Services.Helpers; using MySql.Data.MySqlClient; namespace GEM_C_E.Service.MySql { public cl...
08c873aaa896b0b770e71fc389a4551df943fd64
C#
yyoda/Flooder
/Flooder/Configuration/WorkerElement.cs
2.828125
3
using System; using System.Collections.Generic; using System.Configuration; namespace Flooder.Configuration { [ConfigurationCollection(typeof(WorkerElement))] public class WokerElementCollection : ConfigurationElementCollection, IEnumerable<WorkerElement> { [ConfigurationProperty("type", IsRequire...
842c18873aee90e3b23e04e1f95e068cd56da2a1
C#
MarimerLLC/CslaGenFork
/branches/V4-3-RC/Solutions/HandleCodeSmithExtension/Program.cs
2.5625
3
using System; using System.Windows.Forms; namespace HandleCodeSmithExtension { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main(string[] args) { if (!CheckComm...
0bb2ab13f0fc4a7d4287f53d483ed2e74a5d7ae4
C#
shendongnian/download4
/code1/76022-1202973-3428017-4.cs
3.453125
3
public IEnumerable<T> GetData<T>(IDataReader reader, Func<IDataRecord, T> BuildObject) { try { while (reader.Read()) { yield return BuildObject(reader); } } finally { reader.Dispose(); } } //...