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
7df9a1ba9d9ee9595856d031a581a0d8d9476eed
C#
szmas/MVCDemo
/LinqDemo/_ToLookup.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LinqDemo { class Ticket { /// <summary> /// 票号 /// </summary> public string TicketNo { get; set; } /// <summary> /// 订单号 /// </...
21243a1b92f3de980ed22d9fc4f03e091f1a03b8
C#
Quotes/Web_App
/quotetrail/Models/User.cs
2.8125
3
using System; using System.ComponentModel.DataAnnotations; using System.Configuration; using System.Data; using System.Data.SQLite; using System.Data.SqlClient; using System.IO; namespace quotetrail.Models { public class User { [Required] [Display(Name = "User name")] public string Use...
acd375a0d63060caf1b9c6c5a0901dd7ff451f7a
C#
dieptuthinh/L-p-tr-nh-h-ng-i-t-ng
/BT_LAB5/BT_LAP5/Bai5.1/PhoneBook.cs
3.75
4
using System; using System.Collections.Generic; using System.Text; namespace Bai5._1 { class PhoneBook { //Thuộc tính: n số Contact trong danh bạ điện thoại, int n; //danh sách các Contact Contact[] ds; //thiết lập không tham số public PhoneBook() { ...
de42e23f26ab0bf6b7619fc2212fdc67e50409a5
C#
maks1596/professional-qualities-server
/ProfessionalQualitiesServer/Entities/Statistics/Correlation.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; namespace ProfessionalQualitiesServer.Entities.Statistics { public static class Correlation { public static double Covariance(IEnumerable<double> x, IEnumerable<double> y) { var xy = Math.Multiply(x, y); ...
76a23c91605d94e741f2e84c7a36bc272a8f9998
C#
jkh9/sv2017-programming
/chapter08-dynamicMemory/354a-Hoygan1.cs
3.65625
4
/* Create a C# program to translate from Hoygan to Spanish, using a SortedList. It must work correctly with the following sentence: hoygan porfabor nesecito alluda grasias */ using System; using System.Collections; public class Hoygan { public static void Main() { SortedList myDiction...
2be1b79a0f4545a6674241337b4a89d069a6d7e1
C#
L-Sypniewski/bossa-api.net
/Examples/DemoApp/Utils/GuiTraceListener.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using System.Windows.Forms; using System.Drawing; namespace pjank.BossaAPI.DemoApp { /// <summary> /// Klasa bazowa dla obiektów TraceListenera wyświetlających komunikaty na kontrolce GUI. //...
b39669d3c2c697367171ea9a747d73d970fb51fa
C#
thaipn1002/savemanegement
/POS/Control/ImageViewer/Converters/PathToBitmapImageConverter.cs
2.78125
3
using System; using System.Windows.Data; using System.Windows.Media.Imaging; namespace CPC.Control.Converters { public class PathToBitmapImageConverter : IValueConverter { #region IValueConverter Members public object Convert(object value, Type targetType, object parameter, System.G...
085f8fbab3506f6b2c7e63ef8914d7674c407327
C#
pirhosoft/PiRhoBindings
/Assets/PiRhoBindings/Runtime/BindingWrapper.cs
2.796875
3
using System; namespace PiRhoSoft.Bindings { public interface IBindingWrapperPool { void ReleaseInput(IBindingInputWrapper input); void ReleaseOutput(IBindingOutputWrapper output); } public interface IBindingInputWrapper : IBindingInput { void Setup(IBindingWrapperPool pool, IBindingInput input); } pub...
0effb338c89abb92d2077a6065de196ea3c7ff2b
C#
mayconwisley/QuemPegouOCarro
/Comandos/Cadastro/InserirMotorista.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BancoDados; using Classes.Cadastros; using System.Data; namespace Comandos.Cadastro { public class InserirMotorista { private DB conexaoBancoDados; private string SQL = str...
19ad0ca8144e5b426b9e2126a0a4adfe3c01c656
C#
clemgaut/ProjetPoo
/SourceProject/Nation.cs
3.03125
3
 using SourceProject; using System; using System.Collections.Generic; using System.Linq; using System.Text; /// <summary> /// A nation /// </summary> /// [Serializable] public class Nation : INation { private List<Unit> _units; [NonSerialized] private IUnitFactory<Unit> _unitFactory; public ENa...
4103e502dd7436875302f670b4dd5fc36ee6730b
C#
IceI3ear/topic-api
/APIVanTai/Models/WebModel/AspNetUser.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; #nullable disable namespace APIBlog.Models { public partial class AspNetUser { [Key] public string Id { get; set; } //[RegularExpression(@...
434b48f46b5e59f107307cadc5f3fa891905012b
C#
dropsonic/artificergame
/Game/XMLExtendedSerialization/Extension Classes/ObjectXMLExtensions.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; namespace XMLExtendedSerialization { public static class ObjectXMLExtensions { /// <summary> /// Получает метаданные из объекта, если он их содержит. /// </sum...
95ea39cbb5c3cd868e6a2cfc475c8200a302cb06
C#
Yusufsh27/InvestmentPortfolioTracker
/CryptoPortfolioRecorder/Models/Crypto.cs
2.609375
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.IO; using System.Linq; using System.Net; using System.Threading.Tasks; using CryptoPortfolioRecorder.ViewModel; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; // For more information on enabling MVC for e...
d9874872704fcf4d1671b35e42e55695130e0332
C#
AlienJust/AJ.Std
/AJ.Std.Concurrent/AddressedConcurrentQueueWithPriority.cs
3.203125
3
using System; using System.Collections.Concurrent; namespace AJ.Std.Concurrent { public sealed class AddressedConcurrentQueueWithPriority<TKey, TItem> { private readonly int _maxPriority; private readonly ConcurrentDictionary<TKey, ConcurrentQueueWithPriority<TItem>> _addressedQueues; public AddressedConcurren...
654fa861207b9edf2f8db1fdd62181c1814efa86
C#
vprecup/MultiFactorAuthMechanism
/OneTimePassService/OneTimePassword/Encryption/PasswordSelectionStrategy.cs
3.453125
3
using System; using System.Diagnostics; namespace OneTimePassword { public class PasswordSelectionStrategy : IPasswordSelectionStrategy { private uint passwordLength; public PasswordSelectionStrategy(uint passwordLength) { this.ValidatePasswordLength(passwordLength); ...
069b486239677bc99043e1c11af4ecc32bc83eae
C#
Monydragon/WizTime
/WizTime/Program.cs
3.015625
3
using System; using System.IO; using Newtonsoft.Json; namespace WizTime { class Program { static void Main(string[] argsi) { // var characterMony = GeneratorFactory.GenerateActor("Mony"); // File.WriteAllText(@"Saves/MonyNew.json", JsonConvert.SerializeObject(ch...
909b21e0f458474526785cbae612c88c67e467d4
C#
Kamil-Tushakov/-2-
/Практическая работа №1/Практическая работа №1/Form1.cs
2.6875
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 Практическая_работа__1 { public partial class Form1 : Form { Lis...
a38d8a17f13cd1674d9a72d27e2746f0c1c0da7b
C#
walonso/GraphQL
/CompleteGraphQL/DAO/CaducidadDAO.cs
2.5625
3
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace CompleteGraphQL { public class CaducidadDAO { private readonly CaducaContext contexto; private readonly LocService localizacion; private readonly AccesoDAO<Caducidad> caducidadDAO; public CustomError customError; ...
c8e3172fe52f17e239f5deacb1f42557ff0be10a
C#
shahidbd75/FxtfV1
/FXTF/Admin/Repository/FXTF.Lib.AdminRepository/DBOperations.cs
2.546875
3
using AutoMapper; using FXTF.Lib.AdminRepository.Repository; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Threading.Tasks; namespace FXTF.Lib.AdminRepository { public abstract class DBOperations<TEntity> where TEntity : class { private s...
58e79befcf0df4ed1da7085e4aa414ab824835d9
C#
tomrosso/Snowman
/CarExample/ICar.cs
3.375
3
namespace CarExample { /// <summary> /// Defines a set of methods common for Cars. /// </summary> public interface ICar { /// <summary> /// Gets the name of this car. /// </summary> /// <returns>The cars name.</returns> string GetName(); /// <summar...
3d8b10bf587967e4d13c3144a586e4012916eec4
C#
wincubate/cutting-edge-cs9
/Presentations/02 - What's New in CS 9/Examples/04 - Records and Inherirance/Program.cs
3.0625
3
using System; class Program { static void Main(string[] args) { Album album1 = new Album("Depeche Mode", "Violator", new DateTime(1990, 03, 19)); Album album2 = new Album("Depeche Mode", "Violator", new DateTime(1990, 03, 19)); Console.WriteLine(album1); Single single1 = new S...
f8be74ccbe796cee1d9eef637952e530a87c2641
C#
jakubsuchybio/Benchmark-Diacritics
/Benchmark-Diacritics/Program.cs
3.078125
3
using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Running; using System; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Benchmark_Diacritics { public class Program { private const string _ascii = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN...
5fe4fdd2c41486e57e40efd64ec326e8d3d49924
C#
Bhautik3968/Product_Core_API
/Helpers/PagedList.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; namespace ProductCoreAPI.Helpers { public class PagedList<T> : List<T> { public int CurrentPage { get; private set; } public int TotalPages { get; private set; } public int PageSize { get; private set; } public i...
d1266efddd9d58fbe54ee67ba78961f5b21c4dee
C#
Cheweeee/beadandok
/c#/PotyogosAmobaWPF/PotyogosAmobaWPF/ViewModel/TicTacToeViewModel.cs
2.828125
3
using PotyogosAmoba.Model; using System; using System.Collections.ObjectModel; using System.Linq; using System.Diagnostics; using PotyogosAmobaWPF.Model; using System.Collections.Generic; namespace ELTE.TicTacToeGame.ViewModel { /// <summary> /// Tic-Tac-Toe nézetmodell típusa. /// </summary> public c...
8a76fe944f509c61a5b5a091e137df0be7242106
C#
shendongnian/download4
/first_version_download2/369975-38877077-124626841-6.cs
2.75
3
private const string ConfigFileName = "MyConfig.config"; private static string LoadConfig(ImmutableArray<AdditionalText> additionalFiles, CancellationToken cancellationToken) { var file = additionalFiles.SingleOrDefault(f => string.Compare(Path.GetFileName(f.Path), ConfigFileName, StringComparison.O...
097fba2253704646e4a90466d6165b6e4a69e0ed
C#
QPC-database/TeamCloud
/src/GlobalExtensions.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace TeamCloud { internal static class GlobalExtensions { internal static Task WhenAll(this IEnumerable<Tas...
4cefdb87d5e98e248799c62cac8a9bde86cb1c3c
C#
inin2007/C-Sharp
/w3resource/Data Types/DT3.cs
3.390625
3
using System; public class DT3 { public static void Main() { string username, password; int ctr = 0,dd=0; do { username = "Paul"; password = "Lee"; if( username == "username" && password == "password" ) { dd=1; ctr=3; } else { dd=0; ctr++; } } while (( username != "username" || password != "password" ...
1d3b8040bf2e6a4dd2891b7ebf70ad529be36da1
C#
topomondher/web_helper
/btc_helper/btc_helper/BTC/BtcHelper.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; public enum Pair { btc_usd, btc_cny, ltc_usd, ltc_cny, Unknown } class BtcHelper { public static void delete_depth(string website, string currency) { string sql = "delete from ...
0d475115b69ccb4fa43cf2930c603ac4feef78ec
C#
Redsart/Telerik-Software-Academy
/C#/C# Part 1/02.PrimitiveDataTypesAndVariables/NullValuesArithmetic/NullableValues.cs
3.953125
4
//Problem 12. Null Values Arithmetic //Create a program that assigns null values to an integer and to a double variable. //Try to print these variables at the console. //Try to add some number or the null literal to these variables and print the result. using System; class NullableValues { static void Main(stri...
5c46d5501086af30a93a714934e759ef2aed25e9
C#
BasiqueEvangelist/LauncherGenerator
/MCApi/LinqExtensions.cs
3.34375
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace MCApi { public static class LinqExtensions { private class KeyedEqualityComparer<TIn, TKey> : EqualityComparer<TIn> { private Func<TIn, TKey> key; private IEqualityComp...
c329f97127a63b91e386aa37d308beb0cc407382
C#
josegutierrezc/StardomProject
/Solution/AppsManager.DTO/Entities/UserDTO.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FluentValidation; namespace AppsManager.DTO { public class UserDTO { public string FirstName { get; set; } public string LastName { get; set; } public string Userna...
3b3cd85dac34359d45b45341e9a24f467a4a0b86
C#
0xFh/Asda2-Project
/Asda2EnglishFiles/SourceCode/WCell.RealmServer/Spells/Auras/Mod/ModSpellHitChanceHandler.cs
2.578125
3
using WCell.Constants; using WCell.RealmServer.Entities; namespace WCell.RealmServer.Spells.Auras.Handlers { /// <summary>Mods Spell crit chance in %</summary> public class ModSpellHitChanceHandler : AuraEffectHandler { protected override void Apply() { Unit owner = this.Owner;...
c150a848eb370bb4a2a8b0785f0f672867443a82
C#
MusoAga/InvaderWars
/Assets/Script/InvaderWars.cs
2.625
3
using UnityEngine; using System.Collections; // Oberklasse für allgemeine Funktionen abstract class InvaderWars : MonoBehaviour { public static float getAngleBetweenTwoPoints(Vector3 point1, Vector2 point2) { return Mathf.Atan2(point1.y - point2.y, point1.x - point2.x) * 180 / Mathf.PI + 90; } ...
c1c200efcdffe2e801e68d0624bb5b5298c39d8b
C#
Vladislav281/WebPhotoHost
/Version with comments/WebPhotoHost/WebPhotoHostL/WebPhotoHostL.Services/MockPublicationRepository.cs
3.03125
3
using System.Linq; using WebPhotoHostL.Models; using System; using System.Collections.Generic; using System.Text; namespace WebPhotoHostL.Services { public class MockPublicationRepository : IPublicationRepository //псевдо база данных { private List<Publication> _publicationList; //все данные заносятс...
140e57b5aa5521fa58ef4d6b6e72d595172239de
C#
farukbenli/RideShare
/source/data-service.cs
2.640625
3
using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace RideShareCase { public class DataService : IDataService { public readonly IConfiguration _configuration; private readonly ILogger<DataService> _logger; ...
8081f9927f8742c1a8ab7d70acb46b8792df4bf1
C#
rnfrock/InterviewCake
/Solutions/9_25_16_AppleStocks_Soln.cs
3.53125
4
// 9/25/2016 Apple Stocks Interview Question using System; namespace _9_25_16_AppleStock_Soln { class Solution { public static int get_max_profit(int[] arg) { // write the body of your function here int bestBuy = arg[0]; int buyIdx = 0; int bes...
775028f95464073b2c22dac0aee8918893adb574
C#
ML-std/Web_Server_Anything_La_Corner
/ApplicationCore/Contact.cs
2.625
3
using Infrastructure; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ApplicationCore { class Contact : ISendData { DatabaseOperations databaseOperations; public Contact(string name, string email, string subject, str...
bca75e3bd5954b0ffa2a0d86e596f3c4f8eb752e
C#
SlavaFeskov/Labs_7_sem
/Piris/lab_1/web_app/Bank_System/Bank_System/Db/DbManager.cs
2.9375
3
using System.Collections.Generic; using System.Data; using System.Data.Odbc; namespace Bank_System.Db { public class DbManager { private static DbManager _instanse; public OdbcConnection OdbcConnection { get; set; } public bool Status { get; set; } private DbManager() ...
efeaede4b92477a682f4b572789f9a28dd086802
C#
drunklurker/exceptions
/7nov/Circle.cs
3.0625
3
namespace _7nov { internal class Circle { private int _radius; public int Radius { get { return _radius; } private set { _radius = value; } } public Circle(int nRadius) { if (nRadius <= 0) throw new GeometryEx...
07745d66a0fa4e596576d3d0511a15cc56beef3b
C#
wael2013/test
/ConsoleApp_Menu/Employee.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp_Menu { class Employee : IComparable { public static char c = 'n'; public string Name; public int ID; public float Salary; public Empl...
f91f22e11d1804a841799470df38535440af32b1
C#
adiaz15/WeatherCalculator
/Program.cs
3.796875
4
using System; namespace BasicWeatherCalculator { class Program { static void Main(string[] args) { Console.WriteLine("Welcome to Basic Weather Calculator"); Console.WriteLine("Enter your name"); string name = Console.ReadLine(); Console.W...
364be113d8a77a7b6e7f69b14b5695f65e8f2eaf
C#
RyanFlemming/ExcuseManager
/ExcuseManager/Excuse.cs
3.03125
3
using System; using System.ComponentModel; using System.IO; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; namespace ExcuseManager { [Serializable] public class Excuse : IExcuse { [NonSerializedAttribute] private readonly IFormatter formatter; ...
516787cc50e0d0f7f8343224be73fc6bc6baf694
C#
JakenVeina/JV.Utilities
/JV.Utilities/Extensions/MathExtensions.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JV.Utilities.Extensions { /// <summary> /// Extension methods for performing mathematical operations. /// </summary> public static class MathExtensions { /// <summa...
af6c0b621b1f6e36f0521fa43a2cb075f0b6a9d5
C#
yoperiquoi/PlantCorner
/repos/PlantCorner/Modèle.Documentation/Persistance/StubDataManager.cs
3.296875
3
using System; using System.Collections.Generic; using System.Text; namespace Modèle.Documentation.Persistance { /// <summary> /// Classe définissant la création de données fictives pour tester le fonction du modèle et des vues. /// </summary> /// <typeparam name="T">Classe utilisé par le DataManager<...
bc0f3944e3e4a0753daf31fe72ea9d49c08e684d
C#
shendongnian/download4
/first_version_download2/598815-58296882-206857065-2.cs
2.859375
3
public bool IsPairingConfirmed(Android.Bluetooth.BluetoothDevice device) { bool confirmation = false; try { if ((int)Android.OS.Build.VERSION.SdkInt >= 19) confirmation = device.SetPairingConfirmation(true); } catch(Exception ex) { Console.WriteLine(ex.Message); }...
b739d6b341c3936946ff5d59167da139f6b1734d
C#
shendongnian/download4
/code2/306792-6392728-13903389-6.cs
3.28125
3
float[] ArrayAggregate(Func<IEnumerable<float>, float> aggregate, params float[][] arrays) { return Enumerable.Range(0, arrays[0].Length) .Select(i => aggregate(arrays.Select(a => a.Skip(i).First()))) .ToArray(); }
d689cd3fad0bf1b201544be6027d5438ff03444b
C#
ttrzcinski/VoicyBot1
/VoicyBot1/model/QuestionsAboutTime.cs
3.40625
3
using VoicyBot1.backend; using VoicyBot1.backend.interfaces; namespace VoicyBot1.model { public class QuestionsAboutTime : ISkill { /// <summary> /// Responds with an answer, if it is about time. /// </summary> /// <param name="question">given question</param> ...
e5835c003c4fdce5bea75e39447b497f8672c1bd
C#
Chrislee187/chess.engine
/src/board.engine/Actions/MoveOnlyAction.cs
2.578125
3
using board.engine.Board; using board.engine.Movement; namespace board.engine.Actions { public class MoveOnlyAction<TEntity> : BoardAction<TEntity> where TEntity : class, IBoardEntity { public MoveOnlyAction(IBoardActionProvider<TEntity> actionProvider, IBoardState<TEntity> boardState) : base(actionPr...
32bbd670f094aec24b2ccb47629873a0cb145149
C#
denisoda/EpamFinalTask
/BLL/Service.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BLL.SearchAlrogorithms; using DLL; namespace BLL { public class ShopService : IShopService { #region Private fields private readonly IProductRepository _repository; ...
5df540f7adc021ddcfad00be1212d84c1130f0a6
C#
katuyayoshino/Zomibi_A_Way
/HP/Boss.cs
2.546875
3
using UnityEngine; using System.Collections; /// <summary> /// 吉野勝也担当 /// Boss. /// </summary> public class Boss : MonoBehaviour { //敵の初期多力 public float life = 50; void Start () { } void Update () { Debug.Log (life); } public void Damage ( float damage ) { //体力から差し引く life -= damage; if(life...
ae647855e45b82feda62cda1183e0f8dfed7047a
C#
glovesoflove/ilogger-with-di
/ConsoleUI/Program.cs
2.6875
3
using Autofac; using ConsoleUI.Utility; using System; namespace ConsoleUI { public interface IStrategy { void Do(); } public class ConcreteStrategyA : IStrategy { public void Do() { Console.WriteLine("Called ConcreteStrategyA.Do()"); } }; public class ConcreteStrategyB : IStrategy { public void Do() { Co...
587c97a21d1808041263bb150d59d5d865f1a02b
C#
CuST0M1z3/CSharpPart2Homeworks
/3.Methods/8. AddsIntegers/AddsIntegers.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class AddsIntegers { static void Main() { string firstNumber = Console.ReadLine(); string secondNumber = Console.ReadLine(); if (firstNumber.Length == secondNumbe...
9b3363908b97b6011b925108d9bd7dd80c5dc9ed
C#
ashes999/infinite-arpg
/infinite-arpg/Ecs/Systems/MoveToArrowKeysSystem.cs
2.734375
3
using System; using System.Collections.Generic; using DeenGames.InfiniteArpg.Ecs; using DeenGames.InfiniteArpg.Ecs.Components; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; namespace DeenGames.InfiniteArpg { public class MoveToArrowKeysSystem : AbstractSystem { public MoveToArrow...
1f022ddcf04cab13774580f8ad216b785571258d
C#
rbnpontes/SmsNet
/SmsNet.Core/Utils/SerializationExtensions.cs
2.828125
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Threading.Tasks; using System.IO; namespace SmsNet.Core.Utils { public static class SerializationExtensions { public static string ToJson(t...
97898b8b9be9ab1e962d7bfc6778cee006eee510
C#
jrisseeu/Coding-Academy
/Sprint10/ClassRosterMVC/ClassRosterMVC/ClassRosterView.cs
3.25
3
using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace ClassRosterMVC { class ClassRosterView { private string[] OperationType = { "1", "2", "3", "4" }; private string[] SchoolYear = { "FR", "SO", "JR", "SR" }; public Cl...
53fe8d05f860833fc4e397c61d09e98234a2cae2
C#
Jbohn44/BreadBuilder
/BreadBuilder/Controllers/WeatherController.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using BreadBuilder.Data; using BreadBuilder.Models; using BreadBuilder.ViewModels; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Newtonso...
3e5081eb755d6a6818f65dae20085f7e898f9237
C#
TresorMt20/FinalWebApp
/FinalWebApp/Controllers/Person1Controller.cs
2.546875
3
using DataSide; using FinalWebApp.Models; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace FinalWebApp.Controllers { public class Person1Controller : Controller { //public IActionResult Index() //{ ...
309e61035b41501834b86d2fb2ad8c6ae38ff7e8
C#
sinarahmany/Csharp
/CSharpProject/Structures/Backpack.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSharpProject { class Backpack { public string Material { get; } public int Pocket { get; set; } public string Color { get; set; } public string Size { ...
c156b3e122e21e990f34fa6f62c13dcf349464c9
C#
nobnak/Delaunay
/Assets/nobnak/Algebra/Determinant.cs
3.046875
3
namespace nobnak.Algebra { public static class Determinant { public static float Det(float[] a, int n) { var res = 1f; for (var i = 0; i < n; i++) { var max = a[I (i, i, n)]; var maxRow = i; for (var j = i + 1; j < n; j++) { var cell = a[I (j, i, n)]; if (cell > max) { max = cell;...
14a95838f6159be98e346016a26ae04d84604795
C#
roryprimrose/Tekapo
/Neovolve.Windows.Forms/WizardButtonSettingsTypeConverter.cs
2.859375
3
namespace Neovolve.Windows.Forms { using System; using System.ComponentModel; using System.Globalization; using Neovolve.Windows.Forms.Properties; /// <summary> /// The <see cref="Neovolve.Windows.Forms.WizardButtonSettingsTypeConverter" /> /// class is used to convert the /// ...
153a62804f2a5f5d8858d61862ad070f86cd4e17
C#
savpek/WoodchipBurner-AspNet
/WCB.Web.RC1/Domain/VirtualIOCard.cs
2.828125
3
using System; namespace WCB.Web.RC1.Domain { class VirtualIOCard : IScrewAndAirIO, ISensor { private readonly ILog _logger; public VirtualIOCard(ILog logger) { _logger = logger; } private State _screwState = State.Disabled; private State _airState =...
ab51ee8b9474fcf592db0f060cf5528dc12e279f
C#
lyudoGO/SoftUni
/C-Sharp-OOP/02-Static-Members-and-Namespaces/Problem03Paths/Storage.cs
3.421875
3
using Problem01Point3D; using System; using System.IO; using System.Text.RegularExpressions; namespace Problem03Paths { static class Storage { public static void savePaths(string fileName, Path3D paths) { using (StreamWriter writer = new StreamWriter(fileName)) { ...
d71b533dd241193517482a9185023c7cba92ec9b
C#
mvashwinkumar/myprojects
/IntelligentStationeryStore/IntelligentStationeryStore/intelligent-stationery-store/com.iss.inventory/Controllers/ItemMaintenanceController.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using com.iss.inventory.Entity; namespace com.iss.inventory.Controllers { public class ItemMaintenanceController { public ItemMaintenanceController(){ } public List<String> getAllItemID() { ...
326d462673a6c3b1a55dbdbc37a0e97669335fe5
C#
kris4o1993/Telerik-Academy
/C# - Part 2/03-Methods/02-BiggestInt/GetMaxNumber.cs
4.4375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //Write a method GetMax() with two parameters that returns the bigger of two integers. Write a program that //reads 3 integers from the console and prints the biggest of them using the method GetMax()....
abd0c6abcc567e9e1bec6f31c3d4a9f67e35b562
C#
dr4k3y/TaskMngrMVC
/TaskMenager/Models/UserModel.cs
2.796875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Web; namespace TaskManagerMVC.Models { public class UserModel { public int Id { get; set; } [Display(Name = "Usern...
a166e0b4cdb0dfc85b3ca9b47ccc2f973ca6a895
C#
racheliInji/finalProject
/project/BL/Converters/ScheduleConvert.cs
2.671875
3
using DAL; using DTO; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BL.Converters { public class ScheduleConvert { public static Schedule GetSchedule(DTO.ScheduleDTO ScheduleDto) { Schedule Schedule = n...
8cf40b2335f0972784c51cb5861c435c8e03a207
C#
jonmelcher/Capstone
/GarageMediator/GarageMediator/MediatorProcessingState.cs
2.8125
3
// *********************************************************************************** // filename : MediatorProcessingState.cs // purpose : the third state for GarageMediator // herein the GarageMediator is waiting to process a vehicle. all // functionality should be ava...
c6c464b9d59d262396b546c6edb28e8e57610a50
C#
Luminous-Bot/LuminousBotCore
/src/State/Cache/GuildMemberCache.cs
2.953125
3
using Discord.WebSocket; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; namespace Public_Bot { //[DiscordHandler] public class GuildMemberCache { public Guild CurrentGuild { get; private set; } public GuildMemberCa...
ba9be9d8c33d0c0925fadfc900d576bb0e1e4992
C#
StGv/AudioNetworkRock
/AudioNetworkRock/Repository/TracksRepo.cs
2.671875
3
using AudioNetworkRock.ExternalAPI; using AudioNetworkRock.MemoryCache; using AudioNetworkRock.Models; using System; using System.Collections.Generic; using System.Configuration; namespace AudioNetworkRock.Repository { public class TracksRepo : IRepository<Track> { const string CACHE_KEY = "tracks"; ...
22bb46085ba77f06340cf7b4ce618cdbd3965ac7
C#
quigamdev/Raspberry.Aircon
/Raspberry.Aircon.Models/Validations/StartAirConditionerOperationDataValidator.cs
2.53125
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using Raspberry.Aircon.Models.Models; using Raspberry.SignalR.Operations; namespace Raspberry.Aircon.Models.Validations { public class StartAirConditionerOperationDataValidator : IRpiOperationDataValidator ...
92ccefe57fa8116f508fadd885ae971f5609c092
C#
JamesPlatt99/SearchAlgorithms
/SeachAlgorithms/SodokuSolver/DepthFirstSolver.cs
2.890625
3
using System; using System.Collections.Generic; using System.Text; namespace SeachAlgorithms.SodokuSolver { public class DepthFirstSolver : BaseSodokuSolver { private Stack<Node> _visitedNodes = new Stack<Node>(); public DepthFirstSolver(Sodoku sodoku) : base(sodoku) { } ...
3113bc809c4e2cd9d4b47dcaf9e4e3bb50f9d63f
C#
rubenrosas16/sismtema_aircenter
/Presentacion/Clases/MessageBox.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Presentacion.Formularios; namespace Presentacion { public static class MessageBox { public enum Botones { Aceptar, SiNO } public ...
c2d2649feb6873e3680b2f1d51a84716088cd513
C#
nuraalam/WebFormApp
/PersonalLibraryManagmentSystemApp/PersonalLibraryManagmentSystemApp/Manager/BookManager.cs
2.828125
3
using System.Collections.Generic; namespace PersonalLibraryManagmentSystemApp { public class BookManager { BookGateway aBookGateway=new BookGateway(); public List<Book> GetAllBook() { return aBookGateway.GetAllbook(); } public bool Save(Borrower aBorrower) ...
74ef58e2581360e70444f77930858b959582c1d4
C#
jecus/Cas
/CasUiSmartCore/UIControls/Auxiliary/CommonDeletingForm.cs
2.515625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Windows.Forms; using CAS.UI.UIControls.AnimatedBackgroundWorker; using CASTerms; using MetroFramework.Forms; using SmartCore.Entities.Collections; using SmartCore.Entities.General; using...
d1d92f5c521e3668340f435d7d89a5a524177422
C#
pensonk86/Sweepstakes_Project
/Sweepstakes Project/Contestant.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sweepstakes_Project { public class Contestant { //member Variables public string firstName; public string lastName; public string email; public...
342719448ae9cb43ef4d7d4b9e8ec88900a986a0
C#
cszoolee/sch_test
/Repository/DeptRepos/DeptSQLRepository.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Repository.GenericRepos; using Entities; namespace Repository.DeptRepos { public class DeptSQLRepository : GenericSQLRepository<DEPT>, IDeptRepository { public DeptSQLRepository(s...
a375ae84166c6d28d584fe49f7aeeca344799382
C#
lukas4311/LeetCode
/LongestPalindromicSubstring/BenchmarkTest.cs
2.765625
3
using BenchmarkDotNet.Attributes; namespace LongestPalindromicSubstring { public class BenchmarkTest { private const string _benchamrkInput = "372131289"; private readonly Solution Solution; public BenchmarkTest() { this.Solution = new Solution(); } ...
a77d6df475dcde54589b429964aa202e8d328065
C#
M4N0V3Y/LaborSafety
/LaborSafety-Backend/LaborSafety/LaborSafety.Persistencia/Servicos/TelaPersistencia.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LaborSafety.Dominio.Modelos; using LaborSafety.Persistencia.Interfaces; namespace LaborSafety.Persistencia.Servicos { public class TelaPersistencia : ITelaPersistencia { private re...
85a9c32465ee6e11884c0af6af0d4d78ea66bac9
C#
kiichi54321/FukaboriWpf
/FukaboriCore/MyLib/Collections/StringSearchList.cs
3.625
4
using System; using System.Collections.Generic; using System.Text; namespace MyLib.Collections { /// <summary> /// 比較的高速に文字列の存在を確かめる /// </summary> public class StringSearchList { // private List<string> list = new List<string>(); private int topStringLength = 1; public ...
afcd3be4704c3113e8bc0892082e8f86ba04ddb4
C#
aibel18/tetris
/src/model/Grid.cs
3.34375
3
using System; using System.Collections.Generic; namespace tetris { public class Grid { public Vector2Int dimension; public Vector2Int Dimension { get; set; } public List<char[]> matrix { get; set; } public Grid(Vector2Int dimension) { this.dimension = dimension; this.matrix = new List<char[]>(); ...
97b196017e168364376c08d1796ca07304f81309
C#
jimu/ZunTzu
/ZunTzu/ZunTzu/Modelization/Commands/RotatePieceCommand.cs
2.53125
3
// Copyright (c) 2020 ZunTzu Software and contributors using System; using System.Diagnostics; using ZunTzu.Modelization.Animations; namespace ZunTzu.Modelization.Commands { /// <summary>RotatePieceCommand command.</summary> public class RotatePieceCommand : AggregableCommand { public RotatePieceCommand(IModel ...
4d0e67899e181c3bea8f28d1fa8093a2d6a40726
C#
BogdanGrytsko/HackerRank
/XTest/Codility/13.FibonacciNumbers/FibFrog.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using Xunit; namespace XTest.Codility._13.FibonacciNumbers { public class FibFrog { [Fact] public void Test() { Assert.Equal(3, Solution(new[] { 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0 })); } [Fact]...
2bd308a6d433719cde5b0b0e9f2a57aa190a1255
C#
CometaSolutions/CAM
/Source/CommonUtils/TreeToEnumerableExtensions.cs
3.203125
3
/* * Copyright 2013 Stanislav Muhametsin. All rights Reserved. * * 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 * * U...
4929981a7155c2f69c95944e2c257acefcf757a7
C#
KaterinaShumskaya/MyORM
/Task6/DataAccess/Attributes/FieldAttribute.cs
2.53125
3
namespace Persons.Attributes { using System; [AttributeUsage(AttributeTargets.Property)] public class FieldAttribute : TableAttribute { public readonly string Type; public FieldAttribute(string name, string type) : base(name) { this.Type = type; } } }
9134fe7935db62515d35b119652f6f2f2c6a85e0
C#
nicanica/CGM.NET
/CGM.Communication/Extensions/ListByteExtension.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CGM.Communication.Extensions { public static class ListByteExtension { public static bool In<T>(this T val, params T[] values) where T : struct { return values.Contains(val); } ...
70de74c5ae95cdb333045ab85f379990f2bd2a2e
C#
antonysamy931/Email-Sms
/Notification/Notification.Mail/Handler/EmailSender.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Text; using System.Threading.Tasks; namespace Notification.Mail.Handler { public class EmailSender { SmtpClient client; public string SmtpHost { get { return client.Host;...
f4e642b5717869f92c61a34cba795d5ee4759ebc
C#
DzmitrySH/TransportWorkshopCore
/TransportWorkshopCore/Models/Driver.cs
2.578125
3
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace TransportWorkshopCore.Models { public class Driver //Водители { [Display(Name = "Водитель")] public int DriverId { get; set; } [Required(ErrorMessage = "Укажите Фамилию Имя Отчест...
5d6f208d0ac4b2d76fb4558fbcc5b6db867e2ce5
C#
noah4546/DOTNET-PROGRAMING-2020
/Lab2A/Rectangle.cs
3.234375
3
/* * Noah Tomkins * October 11, 2020 * * Class: Rectangle * * I, Noah Tomkins, 000790079 certify that this material is my original work. * No other person's work has been used without due acknowledgement. */ using Lab2A; using System; using System.Collections.Generic; using System.Linq; using System.Text; ...
4098c1ded5135f619cb318c5dcd031754f49c8ee
C#
clementgame/ARIMASharp
/ARIMASharp/ARMA.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MathNet.Numerics.IntegralTransforms; namespace ARIMASharp { public class ARMA { protected double[] data; protected int ar_order = 0; protected int ma_order = 0; ...
f4e5c91a5ba1671a3eed8779b9c72bb79a190a66
C#
lhg25353411/KeqingNiuza
/src/KeqingNiuza.Wish/PieChartAnalyzer.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; namespace KeqingNiuza.Wish { public class PieChartAnalyzer { List<WishData> WishDatas; List<WishData> NoviceDatas = new List<WishData>(20); List<WishData> PermanentDatas = new List<WishData>(); List<WishData> Cha...
6edf8ced2a4af6f125e873b973387e81f6712ad7
C#
Breno-Coelho/Exercicios-CSharp
/Conjuntos/Exercicio02/Program.cs
3.171875
3
using Exercicio02.Entitites; using System; using System.Collections.Generic; namespace Exercicio02 { class Program { static void Main(string[] args) { HashSet<Curso> alunos = new HashSet<Curso>(); for (int i = 0; i < 3; i++) { Co...
6272c6167fcebab23800fbdd0fde9e50212573c5
C#
deyantodorov/TelerikAcademy
/High-Quality-Code/HW14.DesignPatterns-CreationalPatterns/CreationalPatterns/SimpleFactory/Travel.cs
2.984375
3
namespace SimpleFactory { public class Travel : CheckBook { public Travel() { this.amount = 10000; } public override string ToString() { return $"Your travel expenses: {this.amount}"; } } }
c37a1efb6a2407408e0ef9adcb37b0e08f7a0277
C#
SewerynM/Training
/Training.GrossCalculator.StockMarket/Training.GrossCalculator.StockMarket.Functions/Validators/AddItemValidator.cs
2.8125
3
using System.Collections.Concurrent; using System.ComponentModel.DataAnnotations; using FluentValidation; using FluentValidation.AspNetCore; using Training.GrossCalculator.StockMarket.Application.Models; namespace Training.GrossCalculator.StockMarket.Functions.Validators { public class AddItemValidator : Abstract...
506e89f40068b1397a444e9cbecacb1eb2b38fc7
C#
Hopasaurus/SeleniumWebDriverDemo
/WebUITestDemo/WebPage.cs
2.59375
3
using OpenQA.Selenium; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WebUITestDemo { abstract class WebPage : IWebPage { protected IWebDriver driver; protected static Dictionary<string, By> locators; publi...
e423658567e3bde1223be8f08934aeea49928aa9
C#
sarveshwarans/GradProject
/Software Framework - Assignments/LabAssignment1/LabAssignment1/IntegerSet.cs
3.90625
4
using System; using System.Linq; using System.Text; namespace LabAssignment1 { class IntegerSet { bool[] boolArray; private const int MAXSIZE = 101; /// <summary> /// Initialize all the elements of the array with the default value - FALSE. /// </summary> publi...
e202242ba8ac4d94028932d6c880b22879b397ac
C#
skela/OAuth2.Mobile
/tests/OAuth2.Mobile.Tests/Requests/TokenRequestTests.cs
2.578125
3
namespace StudioDonder.OAuth2.Mobile.Tests.Requests { using System; using System.Collections.Generic; using System.Collections.Specialized; using RestSharp; using StudioDonder.OAuth2.Mobile.Requests; using StudioDonder.OAuth2.Mobile.Tests.Helpers; using Xunit; public class TokenRequ...
d4e3e6576affa5e3a999d21feefb4cb8bf3b7692
C#
derek-hecker/Shapes
/Shapes/Circle.cs
3.828125
4
using System; namespace Shapes { class Circle { public double radius; public Circle() { Console.WriteLine("Circle being created"); radius = 1; } public Circle(double length) { Console.WriteLine(""); Console.WriteLine...
9bb8f1af934c41f32a02fd6989948d11e06870aa
C#
NektarinR/telegram
/Services/EthereumBotService.cs
2.59375
3
using System; using System.Net; using Microsoft.Extensions.Options; using Telegram.Bot; using MihaZupan; using System.Threading.Tasks; using System.Collections.Generic; using Telegram.Bot.Types.ReplyMarkups; namespace Ether_bot.Services { public class EthereumBotService:IBotService { publi...
69353b4b2f926402e5e7769b50a2c951834bf179
C#
Morplson/hamstronaut
/Hamstronaut/Assets/Scripts/MoneyRun.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class MoneyRun : MonoBehaviour { private static float cash; private Text text; // Use this for initialization void Start () { //text = GameObject.Find("MoneyDisPlay/Text").GetComponent<Text>...
c15089b64b81ccc668972ebf59c26ea51e54d13d
C#
Sterina99/TDProject
/TDProject/Assets/Scripts/BulletPooling.cs
2.796875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BulletPooling : MonoBehaviour { List<GameObject> bullets; [SerializeField] GameObject bulletPrefab; // Start is called before the first frame update void Start() { bullets = new List<GameObject>(); ...