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
5d88b9bc38dc72ecbcccff3b486aed7a023335cc
C#
Azarchenkov1/Surveys
/Model/Model.cs
3.046875
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Surveys.Model { public class Model : DbContext { bool IsInitialize = false; bool IsRecreate = false; public DbSet<Survey> SurveyList { get; s...
1d7c422982ec6768adad473b3dfc907f729bee13
C#
Danro1994/EMApp
/EventMaker/EventMaker/DomainService/CompraDomainService.cs
2.625
3
using EventMaker.Modelos; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace EventMaker.DomainService { public class CompraDomainService { public string GetCompraDomainService(Compra compra) { if (compra == null) {...
f07a2bc53d01c219f96fad49c354c9099f39b5a1
C#
mpielikis/nhibernate-contrib
/src/NHibernate.Caches/SysCache2/NHibernate.Caches.SysCache2/CommandCacheDependencyElement.cs
2.90625
3
using System; using System.Configuration; namespace NHibernate.Caches.SysCache2 { /// <summary> /// Configures a sql command notification cache dependency for am NHibernate cache region /// </summary> public class CommandCacheDependencyElement : ConfigurationElement { /// <summary>Holds the configura...
60ca3a427609edb589273ce8a026d4c15b324656
C#
SercanSever/devframework-practice
/DevFramework.Core/EntityFramework/EfEntityRepositoryBase.cs
2.828125
3
using DevFramework.Core.DataAccess; using DevFramework.Core.Entities; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace DevFramework.Core.EntityFramework { public class EfEntityRepo...
57279b8d16e68b387dd24815597ce963e917abae
C#
patel-pragnesh/Quick-Stocktaker
/src/QuickStockTaker/QuickStockTaker/ViewModels/AboutViewModel.cs
2.59375
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Windows.Input; using Acr.UserDialogs; using NLog; using QuickStockTaker.Data; using QuickStockTaker.Models; using QuickStockTaker.ViewModels.Base; using Xamarin.Essentials; using Xamarin.Forms; namespace QuickStockTaker.ViewMod...
f9cfef5a2b7ba13a2a8dc7836bb6561e7af734e6
C#
lightningopal/Juegos-para-Web-y-Redes-Sociales---Unity
/Project Towns/Assets/Scripts/Game/AI/Nodes/WanderNode.cs
2.515625
3
using UnityEngine; public class WanderNode : Node { private NPC npc; private float stillTime = 1.0f; private float nextChange = 0.0f; private bool isMoving = true; private Vector3 newDestination; public WanderNode(NPC npc_, float stillTime_) { this.npc = npc_; this.stillT...
97a2cd838b708aba949dad2533637b0c4426923c
C#
piotrptak/WPF-Customer-List-Example
/WPFClient/Validators/SampleValidator.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Controls; namespace WPFClient.Validators { public class SampleValidator : ValidationRule { public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo) ...
08057a749739378e33b9aceac6c341e11463215a
C#
marcelooliveira/CourseSignUp
/CourseSignUp/CourseSignUp.Console/Services/SignupMessageSubscriber.cs
2.59375
3
using RabbitMQ.Client; using System; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using RabbitMQ.Client.Events; using Newtonsoft.Json; using CourseSignUp.Domain.Model; using CourseSignUp.Domain.Services; namespace BackgroundTasksSample.S...
6ac5a13ceb31c3482005075c4fa50239786e2263
C#
lynch829/AverageHU_ESAPI
/PlaneStatisticsPlugin.cs
2.625
3
using System; using System.Linq; using System.Text; using System.Windows; using System.Collections.Generic; using VMS.TPS.Common.Model.API; using VMS.TPS.Common.Model.Types; using VMS.TPS.Common.Model; namespace VMS.TPS { public class Script { public Script() { } public void Exec...
879e2ac433dd8a93598dff2160f59e19385850a9
C#
kailIII/BaseSistemasIntegrados
/2daPresentacion/SistemasIntegrados/SistemasIntegrados/datos/Inventario/datTipoMaterial.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using clases.Inventario; using System.Data; namespace datos.Inventario { public class datTipoMaterial { public List<clsTipoMaterial> consulta() { try { List<clsTipoMa...
d8bab4b15e306c414c9f82815e3f211740fe4bd4
C#
OrlandoLopezW/logger
/JobLogger/src/JobLogger.LoggerApi/Infrastructure/Utility/Helpers/DateHelper.cs
2.546875
3
using System; namespace JobLogger.LoggerApi.Infrastructure.Utility.Helpers { public class DateHelper { public static DateTime UtcToPeru(DateTime dateTime) { return dateTime.AddHours(-5); } public static DateTime PeruToUtc(DateTime dateTime) { re...
3f0ce43995de65b05d9d03a90f71514d204ddbef
C#
14-SZFT-2020-2022/edabitFeladatok
/EdabitFeladatok/Medium.cs
3.53125
4
using System; namespace EdabitFeladatok { class Medium { public static int[] ArrayOfMultiples(int szam, int hossz) { int[] tomb = new int[hossz]; for (int i = 0; i < hossz; i++) { tomb[i] = (i + 1) * szam; } TombKiir...
e218e96c99fddf0b76ebb042dd0963dcbe903edb
C#
ammogcoder/ServiceStack-Succinctly
/Chapter05 - Service Implementation/3.OrderItemService/OrderManagement.DataAccessLayer/StatusRepository.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using OrderManagement.Core.Domain; namespace OrderManagement.DataAccessLayer { /// <summary> /// In-memory orders repository, that fakes the database /// </summary> public class StatusRepository : IStatusRepository { privat...
29c821b527722389ab840fed7e91f5cbbf66c777
C#
DimitarMihov/CSharp-projects
/OOP/ObjectOrientedProgrammingParthII/BankOperations/Customer.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BankOperations { public class Customer { public string Name { get; set; } public CustomerType customerType; public Customer(string name, CustomerT...
04cc5d0f7a0bd4466e1f2bdd345ba4d7b87e62cf
C#
akily1568/unity-2D-game
/Assets/Scripts/backgroud Script/BGScrolling.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BGScrolling : MonoBehaviour { public float scrollSpeed; //biến tốc độ chuyển động BG private Material mat; // khai báo biến liên quan đến hình ảnh chuyển động private Vector2 offset = Vector2.zero; //di chuyển ...
15d992436ab2b5073fcf54c563a15f4f3482e918
C#
sackerud/directoryIntegrity
/src/directoryIntegrity.Core/FileSystem/File.cs
2.53125
3
namespace directoryIntegrity.Core.FileSystem { public class File : GenericFileSystemEntry { public File(string rootPath) : base(rootPath) {} public override string Name => System.IO.Path.GetFileName(Path); public override bool IsDirectory { get => false; set ...
9680aca270414bd6542c8c53e3e9b3fd090cd3c7
C#
bunshue/vcs
/_2.vcs/my_vcs_lesson_c_example/WAVFile class and Audio Mixer/AudioMixer/AudioMergeThread.cs
2.890625
3
/* This file contains the AudioMergeThread class, which helps to encapsulate the threading and * logic to run the audio merge operation in a separate thread so that the main GUI is not frozen. * * Date Author Description * 2009-03-24 erico Created * 2009-03-31 erico Fixed bugs in A...
3ae6060d7aaf5a2b4ea89a18c4c516031f5dd1d5
C#
CdLoveWm/DesignPatterns
/DesignPatterns.Library/行为型/策略模式/AirplaneStrategy.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DesignPatterns.Library.行为型.策略模式 { /// <summary> /// 策略--飞机旅行 /// </summary> public class AirplaneStrategy : IStrategy { public void StartOff() { ...
0773e509748d4ece7d3871141cbd47f4c9dd057d
C#
gadzhov/SoftUni
/C# DB Fundamentals/Databases Advanced - Entity Framework/DB Apps Introduction/07. Print All Minion Names/Startup.cs
3.40625
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _07.Print_All_Minion_Names { class Startup { static void Main() { SqlConnection connection = new SqlConnection("Server=(localdb...
5a4b415aacb33f7ae98f61cc6840fae379b6652c
C#
miicksgarza/mercator
/mercator/DataAccess/ProveedorDAL.cs
2.890625
3
using Entities; using System; using System.Collections.Generic; using System.Data.Entity.Validation; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataAccess { public class ProveedorDAL { #region Guardar proveedor //CREATE public static bool createProve...
67ffa72b7a2c8bd9340377f4398975641a6ec035
C#
zaharPonimash/SharpLearning
/src/SharpLearning.FeatureTransformations.Test/CsvRowTransforms/ReplaceMissingValuesTransformerTest.cs
2.6875
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using SharpLearning.FeatureTransformations.CsvRowTransforms; using SharpLearning.InputOutput.Csv; using System.IO; namespace SharpLearning.FeatureTransformations.Test.CsvRowTransforms { /// <summary> /// Summary description for ReplaceMissingValuesTransforme...
06ad1c1923eb9727cb31580da7dffd65ca1e6e8f
C#
MakotoIshikawa/MyLibrary
/ExtensionsLibrary/Extensions/DictionaryExtension.cs
3.5
4
using System.Collections.Generic; using System.IO; using System.Linq; namespace ExtensionsLibrary.Extensions { /// <summary> /// Dictionary を拡張するメソッドを提供します。 /// </summary> public static class DictionaryExtension { #region メソッド #region GetValueOrDefault /// <summary> /// 値を取得します。存在しないKeyの場合は default 値を返し...
29558ab30b7e5909c66f320e939e089088ac2671
C#
shendongnian/download4
/code3/571652-21520376-57092475-2.cs
2.75
3
public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Return) { MessageBox.Show( textBox1.Text + " ...
97b147104eabde5179b02cc520df96b4824e659c
C#
JoeBuntu/Inventory
/Inventory/Inventory.Testing/Materials_Repository.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MySql.Data.MySqlClient; using NHibernate; using NHibernate.Cfg; using NHibernate.Linq; using NUnit.Framework; using Inventory.Core; using Inventory.Core.Data; using Inventory.Core.Entities; namespace Inventory.Testing { [T...
108e66fac5232203df4304ef9e896bb09a201f77
C#
alesegdia/cube-wars
/Assets/Scripts/Core/Unit.cs
2.796875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace CubeWars { public class Unit : MonoBehaviour { #region Readonly Fields private const float DamageVFXShakeForce = 0.1f; private const float DamageVFXShakeDuration = 0.5f; #endregion ...
7796d0a095ea0c2f08f8b1683b6671fb38b83caa
C#
paras-goyani/CE_048_Paras
/Project_CE048_CE055/blogging/Models/sqluser.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace blogging.Models { public class sqluser : Iuserreposetory { public AppDbContext context; public sqluser(AppDbContext cont) { context = cont; } public vo...
7cb133ac5e24ea2e6d9f5cb47a05692a3892ebd4
C#
tuanlead/a2hat
/bdb.test/Program.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using BerkeleyDB; using System.IO; namespace bdb.test { class Program { static void Main( string[] args ) { try { var cfg = new HashDatabaseConfig(); cfg.Duplicates...
7c114258713629f4c0c809331964198973850ba3
C#
benburton123/SoftwareEngineerTest
/src/FizzBuzzAPI/FizzBuzzAPI/Rules/FizzRule.cs
2.6875
3
using System; namespace FizzBuzzAPI.Rules { public class FizzRule : BaseRule { private const string Fizz = "fizz"; protected override Func<int, bool> Rule { get => (int number) => number % 3 == 0; } public override string Output { get => Fizz; } public override string Name =...
0df729eb990b29b431387bc549b01d658b5e57f1
C#
Sunirmal/DatingAPI
/DatingAPI/Controllers/BuggyController.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using DatingAPI.Data; using DatingAPI.Entities; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; // For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?...
c6926bf28d7e670362deec8d5ce8376670a26004
C#
GalinaSazonova/2semester
/12.02.14/5/masSortByColl/Program.cs
4.03125
4
using System; namespace masSortByColl { class Program { /// <summary> /// Print two dim array /// </summary> /// <param name="arr">Array to print</param> /// <param name="arrSizeColumns">Size of array</param> public static void PrintTwoDimArray(int[,] arr, int a...
d90999dfc7dcb83dc5167d7bcf5da694122b1e82
C#
GitHubyangjunyi/CSharp
/Abstract/Program.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Abstract { class Program { static void Main(string[] args) { Dog dog1 = new Dog(); dog1.Shout(); Console.ReadKey(); } } ...
63754e0d44924f320858c86ccb429b3de132992b
C#
NicholasDeLioncourt/phonix
/Core/Log.cs
2.671875
3
using System; using System.IO; using System.Text; using Phonix.Parse; namespace Phonix { public class Log { public enum Level { Error = 0, Warning = 1, Debug = 2, Verbose = 3 }; public readonly Level LogLevel; public reado...
f2593d4ff147cd7b6c2b37a6b3f7c9154cfb18f9
C#
tiesch/MyApp
/MyApp/Extensions/MenuExtension.cs
2.515625
3
using HtmlAgilityPack; using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.Routing; using MyApp.Models; using System.Collections.Generic; namespace MyApp.Extensions { public static class MenuExtension { /// <summary>...
38406e28a96246706b098d18f39dc58d4d07bea9
C#
Evgeshast/CustomSerialization
/Task/TestHelpers/XmlDataContractSerializerTester.cs
2.671875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace Task.TestHelpers { public class XmlDataContractSerializerTester<T> : ISerializer<T> { private readonly XmlObjectSerializer serial...
b8cc8d1112c2a1fae4833ccf8f30e609d76f9bdc
C#
Hexet/pair-comparison-method
/ClassLibrary/FileManager.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; namespace ClassLibrary { public interface IFileManager { string Content { get; } string FilePath { set; } string[] Alternatives...
cad322c115e51396dc515169b19d8bb148b13f28
C#
DMKiehl/CriticalThinkingWork
/CriticalThinking/CPU.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CriticalThinking { class CPU { //member variables public string Manufacturer; public string Name; //constructor public CPU(string manufacturer,...
571bc2549618af2b258a33a0aacd3b3059aa5b50
C#
erimus/BoytrixWpf
/Common/Attributes.cs
2.78125
3
using System; using System.Collections.Generic; using System.Reflection; namespace Boytrix.Logic.Business.Common { [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)] public class DbTableName : Attribute { private string _tableName; public DbTableName(string t...
d8469668c507462ec633db512c35bdd4a9b6c171
C#
nagasudhirpulla/oxyplot_widget
/PspDataLayer/Config/ConfigurationManagerJSON.cs
2.5625
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PspDataLayer.Config { public class ConfigurationManagerJSON { public string Host { get; set; } = "10.2.100.56"; public int Port ...
39a7bce89b2d52a373231775d07a41a76d78e5f9
C#
azure-community-day/vacd.api
/src/Services/TokenBuilder.cs
2.671875
3
using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Clients.ActiveDirectory; using System; using System.Threading.Tasks; namespace luis.azure.api.Services { public class TokenBuilder : ITokenBuilder { private readonly IConfiguration _configuration; public TokenBuilder(IConfigura...
f38f7ceb1cea05caacfabf3910f1247fe7f3f3c1
C#
d77commerce/Exercise-C-sharp
/combi/combi/Program.cs
2.890625
3
using System; namespace combi { class Program { static void Main(string[] args) { int nom = int.Parse(Console.ReadLine()); int count = 0; for (int i = 0; i <= nom; i++) { for (int y = 0; y <= nom; y++) { ...
44c439870360b329406eed91b0f6f2753fa519b7
C#
garnhold/CrunchyBox
/CrunchySandwich/Extensions/Vector3/Vector3Extensions_MoveTowards.cs
2.609375
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Crunchy.Sandwich { using Dough; static public class Vector3Extensions_MoveTowards { static public bool GetMoveTowards(this Vector3 item, Vector3 target, Vector3 amount, out Vector3 output) ...
8ccfe41cdd92ebf07a0ce5262598231abfadb9ea
C#
Egoily/iLawyer
/02.Domain/ee.iLawyer.WebApi.Invoker/WebInvoker.cs
2.65625
3
using System; using System.IO; using System.Linq; using System.Net; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Text; namespace ee.iLawyer.WebApi.Invoker { public class WebInvoker { public enum MediaType { XWwwFormUrlencoded, ...
3b3c35f756a44126d6e6d84953acca617accaa79
C#
Jupotter/AdventOfCode
/2019/AdventOfCode/IntCode.cs
3.390625
3
using System; using System.Collections.Generic; namespace AdventOfCode { public class IntCode : IDisposable { private enum Mode { Position, Immediate, } private struct Parameter { public readonly Mode Mode; public readonl...
c145e5b70c30abc1e6cd2b5f0b73cc079e3b816d
C#
RomeshAbeyawardena/WebToolkit
/WebToolkit.Tests/ParallelTaskTests.cs
3.015625
3
using System.Linq; using System.Threading.Tasks; using WebToolkit.Common; using Xunit; namespace WebToolkit.Tests { public class RaceTests { async Task<decimal> SlowProcess(int delay) { await Task.Delay(delay); return 224959.42m; } [Fact] public...
bd0a153a12127910101ed2e4794765e2a01e7288
C#
Maceage/DesignPatterns
/FacadePattern/Domain/Computer/HardDrive.cs
2.671875
3
using System; namespace FacadePattern.Domain.Computer { public class HardDrive { public void Spin() { Console.WriteLine("Hard drives spinning at a rapid 10RPM"); } } }
91602df9a8c6de027aac0cdc6ade731d5c85fd3a
C#
choicoding1026/.NET
/OrderManagement/OrderManagement.DAL/ItemDAL.cs
2.765625
3
using Microsoft.Extensions.Configuration; using OrderManagement.DAL.DataContext; using OrderManagement.IDAL; using OrderManagement.Model; using System; using System.Collections.Generic; using System.Linq; namespace OrderManagement.DAL { public class ItemDAL: IItemDAL { private readonly IConfiguration ...
4e97de6cfc3dbe792a2f47b69b5b8f427000cf7d
C#
blazes816/Bejeweled
/Bejewed/Bejewed/Dispatch.cs
2.890625
3
using System; using System.IO; using System.Collections; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Reflection; using Microsoft.Xna.Framework; using Bejeweled.States; namespace Bejeweled { class Dispatch { // Define possible game states and set our curre...
172821ef90e5a743e85a0a7e84f892df80e41c32
C#
meCtd/SimpleProject
/Tamagochi/Model/Game.cs
2.734375
3
using System; using System.Threading; namespace Tamagotchi.Model { public class Game { #region Fields private bool _isPaused; private Timer _gameTimer; #region CriticalValues private const double CriticalSatietylValue = 0.3; private const double CriticalMoodValue = 0.3; private const double Critica...
9cbca05f25914eedef24cb2c6209538867d053c3
C#
zzattack/munia
/MUNIA-win/SVG#/Text/FontFamily.cs
2.84375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Svg.Text { /// <summary> /// http://stackoverflow.com/questions/3633000/net-enumerate-winforms-font-styles /// </summary> public class FontFamily { #region InstalledFont Paramet...
feda9e49f31746ce94bba1eb4e8966faa009613e
C#
StephenSpectrum/CharMap-Plus
/CharMap Plus/ViewModels/BaseViewModel.cs
2.671875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using Windows.UI.Popups; namespace CharMap_Plus.ViewModels { public class BaseViewModel : INotifyPropert...
6878239c7111cc568e4dc4201ac21c402e267b96
C#
sraoh/UniBoardUpdated
/UniEBoard.Repository/Factories/AssetEntityFactory.cs
2.6875
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="AssetEntityFactory.cs" company="Cognite Ltd"> // Copyright (c) 2013 Cognite Ltd (http://www.cognite.co.uk) // </copyright> // <summary> // AssetEntityFactory class definition /...
bd97006c7799d9b98753d595211c8d4d94684faf
C#
joymon/puzzles
/PricingEngine/PricingEngine/PricerDecorators/SupplyLowDemandLowDecorator.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PricingEngine { internal class SupplyLowDemandLowDecorator : PricerDecorator { private const int PercentageToAdd = 10; public SupplyLowDemandLowDecorator(IPricer price...
ac62c759cc6c37c8adde5eaa914d753d8e6b4280
C#
msalman-abid/DBS-Fall-19-Bitbuilder
/BitBuilder_v1/Cart.cs
2.890625
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BitBuilder_v1 { class Cart { private Cart() { } public static List<CartItem> cart_collection = new List<CartIt...
6cf7eb94c1b7531095010c0f09b0a2c0ebe87069
C#
bunshue/vcs
/_2.vcs/my_vcs_lesson_c_example/_bookbook/VCS2013程式設計經典/ch06/StackDemo/Program.cs
3.8125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StackDemo { class Stack { private int[] _aryData; private int _top; // 建構式 public Stack(int n) { _aryData = new int[n]; ...
eb22066dc29d6e82b5b2338d68b65d1fe28d092c
C#
David-Desmaisons/Ornette
/Ornette.Application/Model/NextTrack.cs
2.59375
3
namespace Ornette.Application.Model { public class NextTrack { public Track Track { get; } public bool Play { get; } internal static NextTrack None { get; } = new NextTrack(null, false); internal NextTrack(Track track, bool play) { Track = track; ...
1cb3ce9c289769572925a59e8b6763624778076d
C#
abdonkov/HackBulgaria-CSharp
/Week01/ProblemSet-03-MoreProblems/MaximalScalarProduct/Program.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MaximalScalarProduct { class Program { static int MaxScalarProduct(List<int> v1, List<int> v2) { var sortedV1 = v1.OrderByDescending(x => x).ToList(); ...
ca9d56d8b0b3ce9e7b5d272249885c2538e35d4e
C#
kaursimranjeet/TechBase
/TechBaseEntityFramework/Repositories/ExerciseItemRepository.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LapbaseBOL; using System.Data.Entity; namespace LapbaseEntityFramework.Repositories { public class ExerciseItemRepository : IExerciseItemRepository, IDisposable { private LapbaseCon...
67a3eeffd67c1b7e92a400ed070f8256c3c19c47
C#
hoppfull/Learning-CSharp
/Advanced/ex03 LINQ/Program.cs
3.5
4
using System; using System.Linq; using System.Collections.Generic; namespace ex03 { class Program { static void Main(string[] args) { IEnumerable<int> xs = new int[] { 1, 2, 3, 4, 5 } .Where(x => x < 4) .Select(x => x * 2); foreach (int x in xs) ...
d3973a7039bd633e427ecd4af6dff9feb4dd7c5d
C#
abkabd/PP2labs
/Lab2/Complex/Program.cs
3.671875
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Complex { class Complex { int a, b; public Complex() { a = 1; b = 1; } public Complex(int a, int b) ...
dbab1d6f5d6bfc77585d1dc225c206949fd6c3d4
C#
tkmagesh/Starbucks-CSharp-Apr-2021
/CSharp8Features/CSharp8Features/PatternMatching.cs
3.4375
3
using System; namespace CSharp8Features { public class Square { public double Side { get; } public Square(double side) { Side = side; } } public class Circle { public double Radius { get; } public Circle(double radius) { ...
0f9c39b6666487e2adc1a60ca7624db245c26fff
C#
shendongnian/download4
/latest_version_download2/175900-36550944-115450037-2.cs
3
3
//In Linq to Entities you can project using an anonymous type or a custom class(also known as a DTO) var cars= context.Cars .Include("Owner") .Include("Parts") .Where(c=>c.id == strID) .Select(c=>new {//Change this projection at...
abc1bbe958222c0928cf44b917d0e38be8b9d235
C#
igavriil/two_player_ai
/src/TwoPlayerAi/DataStructures/PriorityQueue.cs
3.453125
3
using System; using System.Linq; using System.Collections.Generic; namespace TwoPlayerAi.DataStructures { public class PriorityQueue<T> where T : IComparable<T> { private IList<T> _priorityQueue; private IComparer<T> _comparer; public PriorityQueue() : this(Enumerable.Empty<T>...
a33f3251388bde361c9014f14fc506a5b11e709c
C#
sanjnisha17j/CovidDistanceChallenge
/Covid19VaccinationChallenge/Utils/DistanceCalculator.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Covid19VaccinationChallenge { public static class DistanceCalculator { public static List<People> CalculateDistance(List<People> peopleList, List<VaccinationCentre> vacList) { ...
65c2da17591795fe7b2d9d8beae55cc726abc103
C#
nm-1216/os.brain
/Os.Brain.Lib/Os.Brain.Core/GB/Sex.cs
2.9375
3
//----------------------------------------------------------------------- // <copyright file="Sex.cs" company="Os.Brain">Copyright (c) Os.Brain. All rights reserved.</copyright> // <author>Craze</author> // <datetime>2013/12/21</datetime> // <discription>GB2261 人的性别代码国家标准</discription> //------------------------------...
275b0c8f1a68a872081fa53eee98e13de3f56399
C#
hse-programming-CSharp2020-2021/207KhoollgmMikhail
/Module_4/Seminar_2/Task_2/Program.cs
3.25
3
using System; using System.IO; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.Text.Json; using System.Xml.Serialization; namespace Task_2 { [Serializable] [DataContract] public class ConsoleSimbolStruct { [DataMember] public char ...
22989fa9647735c243c40888476462d5513bee74
C#
vallenti/SoftUni
/Softuni-CSharp/CSharp-part-1/5. Conditional Statements/InputNumbers/InputNumbers.cs
3.8125
4
using System; class InputNumbers { static void Main() { Console.Write("Please choose 0 for integer, 1 for double, 2 for string: "); byte n = byte.Parse(Console.ReadLine()); switch (n) { case 0: int x = int.Parse(Console.ReadLine()); C...
eba101952aaee781c3db9c158aafc5d5284ed14b
C#
mhoyer/Spartakiade
/Rx/FizzBuzz/FizzBuzz/ConsoleOutputObserver.cs
3.078125
3
using System; namespace FizzBuzz { public class ConsoleOutputObserver : IObserver<int> { public void OnNext(int value) { Console.WriteLine(value); } public void OnError(Exception error) { Console.WriteLine("error: {0}", error); ...
3b54f759130872128fc494405e5c5d3f67f293f7
C#
pylypeiev/CSharpExtensionMethods
/Pylypeiev.Extensions.Tests/Objects tests/DoubleExtensionsTests.cs
3.296875
3
using Xunit; namespace Pylypeiev.Extensions.Tests { public class DoubleExtensionsTests { [Fact] public void AbsTest() { //Arrange double num = -1; //Act double numConverted = num.Abs(); //Assert Assert.Equal(1, numC...
d7627c4b80b4bfedbbfdd23b0eca47ed57fae23a
C#
pratikshawasnik98/Training
/22-march-2020/9.prime_number.cs
3.890625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _9.prime_number { public class Program { static void Main(string[] args) { Console.WriteLine("Enter a number"); int num = int.Parse...
07145e3a9f5de954fa3cad906e821970b5bbd35f
C#
Koynonia/mybank
/ex_bank/Form1.cs
2.546875
3
using System; using System.Collections; using System.Windows.Forms; namespace mybank { public partial class FrmConta : Form { //private Cliente cliente; private Conta[] contas; private TotalizadorDeContas contaTotal; public FrmConta() { this.StartPosition =...
6503175b68eac160079f7b5616c98cedb2723545
C#
DesireTilleras/Tentamen_Systemtestning_Desire
/EmployeeClass/Employee.cs
3.5
4
using System; using System.Linq; using System.Net.Mail; using System.Text.RegularExpressions; using Xamarin.Essentials; namespace EmployeeClass { public class Employee { public string specialChar = @"\|!#$%&/()=?»«@£§€{}.;'<>_,"; private string firstName; public string FirstName ...
0e3f01df2987865178e3d8b643992db3dfa7ebc8
C#
clemensott/TimetableFH
/AdmittedClasses/NameCompare.cs
2.65625
3
using System.ComponentModel; using TimetableFH.Controls.Compare; namespace TimetableFH.AdmittedClasses { public class NameCompare : INotifyPropertyChanged { private string name; private CompareType compareType; public string Name { get { return name; } ...
a04d3259c9267868a3757927a545770457885cb5
C#
makingsensetraining/mslunches
/MSLaunches.Backend/MSLaunches.Domain/Services/Interfaces/IMealService.cs
2.84375
3
using MSLunches.Data.Models; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace MSLunches.Domain.Services.Interfaces { /// <summary> /// Service responsible of handling meals /// </summary> public interface IMealService { /// <summary> /// Gets ...
56ae5291ec25fca2931915ebe1590bd3f901ae0c
C#
mnhaque/NunitDataDriven
/Nunit3_DataDrivenExamples/Credit/CreditDecissionTest.cs
2.640625
3
using Moq; using NUnit.Framework; using ShipIt.Credit; using ShipIt.Credit.Service; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Nunit3_DataDrivenExamples.Credit { [TestFixture] public class CreditDecissionTest { Mock...
627093b5dbcbb6c06ec53841f783d79703b4d306
C#
erikmorais/Atelier
/AtelierEntertainment/Repositories/OrderRepository.cs
2.71875
3
using AtelierEntertainment.Entities; using AtelierEntertainmentEntities; using AtelierEntertainmentEntities.Interfaces; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace AtelierEntertainment.Repositories { /// <summary> /// Decorator Pattern /// </s...
b22f0e83ef6b7d81cbf7b5c840132f843b9742f2
C#
BlueButterflies/CsharpAdvanced
/DefiningClassesExercise/SpeedRacing/Car.cs
3.625
4
using System; using System.Collections.Generic; using System.Text; namespace SpeedRacing { public class Car { public string Model { get; set; } public double FuelAmount { get; set; } public double FuelConsumptionPerKilometer { get; set; } public double Distance { get; set; } ...
d002f25c13779d0ea452173cd29249cfedf709bf
C#
Gavamot/RefWork
/RefWork/Model/TegCounter.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using HtmlAgilityPack; namespace RefWork.Model { public class TegCounterExceprion : Exception { public TegCounterExceprion(string message) : base(message) { ...
9cd21c64c20522872a30d989ee05943ad12157ab
C#
commonsensesoftware/More
/test/More.Tests/More/ComponentModel/RuleT1T2Test.cs
2.625
3
namespace More.ComponentModel { using FluentAssertions; using System; using Xunit; public class RuleT1T2Test { [Fact] public void new_rule_should_not_allow_null_callback() { // arrange var evaluate = default( Func<string, string> ); // ac...
ba00bc2f34c94b30611327d37e7cdb7cb943897a
C#
JackHilon/ComplexNumbersComprehensiveProgram
/ComplexNumbersComprehensiveProgram/BasicFourOperationsPolarDegree.cs
3.359375
3
using System; using System.Collections.Generic; using System.Text; namespace ComplexNumbersComprehensiveProgram { public static class BasicFourOperationsPolarDegree { public static PolarDegreeNumber Add(PolarDegreeNumber number1, PolarDegreeNumber number2) { XYFormNumber n1 = Compl...
d4619cd4b6d091df3281f88cec3ebeb6a6671d87
C#
WeyensLuk/BattleShipReferee
/BattleShipReferee.API/Business/RandomTurnDeterminer.cs
2.65625
3
using System; using BattleShipReferee.API.Domain; namespace BattleShipReferee.API.Business { public class RandomTurnDeterminer { public Player Determine(GameState gameState) { var randomNumber = new Random().Next(0, 1000); return randomNumber >= 500 ? gameState.PlayerOn...
7abb5f015bf7739400b76b75ec095025826c05be
C#
jamunabalamurugan/CTSDN016
/C#_Day11/PrjAdoFirstApplication/PrjAdoFirstApplication/ThreetireArchitectureEg.cs
3.453125
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Configuration; using System.Data; namespace PrjAdoFirstApplication { //Model Class class Student1 { public int Id { get; set; } public string Name { get; set; } public int? Age { get; set; } ...
e91f52925d49874e468d034dac274fdcf527ee77
C#
kohrVid/QuadraticEquations
/QuadraticEquations/Form1.cs
3.015625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace QuadraticEquations { public partial class Form1 : Form { public Form1() { InitializeComp...
b258fd79824f79bd0845bff2859c862f8329a678
C#
seaboy1234/PineTreeLanguage
/PineTree.Interpreter/Native/String/StringType.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using PineTree.Interpreter.Runtime; namespace PineTree.Interpreter.Native.String { public class StringType : TypeMetadata { public override TypeInfo Info => TypeInfo.String; pub...
ecc697e3b9fd1710eef9f1992abed1f664367aa9
C#
AlexFlasch/Voronoi
/Voronoi/VoronoiCell.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Otter; namespace Voronoi { class VoronoiCell : Entity { private VoronoiPoint point; public VoronoiCell Left { get; set; } public VoronoiCell Right { get; set; } public VoronoiCell Up { g...
af5300c88ba904a40c274bfc34e091d8da8967b9
C#
marcioBiason/Younder-BFF
/ConfigureSwaggerOptions.cs
2.578125
3
using Microsoft.AspNetCore.Mvc.ApiExplorer; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Microsoft.OpenApi.Models; using Swashbuckle.AspNetCore.SwaggerGen; namespace Younder_BFF { /// <summary> /// Classe de Configuração de versões no Swagger /// </summary> p...
2365e80b7676f70f5c0f996dd7c6b6af9aa67842
C#
final2040/SimpleBackup
/SimpleBackupApplication/Program.cs
2.515625
3
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Timers; using Microsoft.SqlServer.Server; using SimpleBackupLibrary; using Configuration = SimpleBackupLibrary.Configuration; using Logs; namespace SimpleBackupA...
1c3fe692e1e36022af235b90f18e9243fcc70e77
C#
pieterCorp/Ganzenbord
/Ganzenbord/Fields/Inn.cs
2.84375
3
using System; using System.Windows.Controls; using System.Windows.Media.Imaging; namespace Ganzenbord { public class Inn : Field { public Image SpecialImage { get; set; } public Player CurrentPlayer { get; set; } public Inn(int number, int x, int y) : base(number, x, y) ...
bb73436463bd860c0beec6ea60ec889464f37cc8
C#
Miansamou/AdoteUmaBatata
/Assets/Scripts/Language-Dialogue/LocalizedText.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class LocalizedText : MonoBehaviour { Text text; public string key; private string currentLanguage; // Start is called before the first frame update void Start() { text = GetCom...
6624a14a1274a44a23c6e04ccd6486c026a64818
C#
BlackbirdSolutions-Public/IotSound
/MidiMessage.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace IotSound { public enum MsgClass { NOTE_OFF = 0, NOTE_ON, POLY_AFTERTOUCH, CONTROL_CHANGE, PROGRAM_CHANGE, CHAN...
a188204e61fa8d5e241b5edc3fd5bde05396dcab
C#
benmut/tangentemp
/Tangent.Employee.Droid/Adapters/ReviewAdapter.cs
2.640625
3
using System; using System.Collections.Generic; using Android.Views; using Android.Widget; using Java.Lang; using Tangent.Employee.Core.Models; namespace Tangent.Employee.Droid.Adapters { public class ReviewAdapter : BaseAdapter { List<Review> _reviews; public ReviewAdapter(List<Review> revie...
f2b657e0fe78896297324e89bc51086513a83609
C#
qutus18/RTCVision
/VisionApp/SocketConnection/Server.cs
3.03125
3
using System; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using System.Windows; using System.Windows.Threading; namespace VisionApp { public class Server { private static Socket listener; public static ManualResetEvent allDone = new ManualResetEvent(f...
832bed88752c3bc9f249724058cf8c49079de129
C#
logwinow/Portfolio
/Sea scavenger/Assets/Scripts/Game Scenes/Custom Namespaces.cs
2.6875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Net; using UnityEngine; namespace Custom { namespace SerializationSurrogates { using System.Runtime.Serialization; public static class SerializationSurrogatesUtilities { ...
0cc924464c96810f73e112c93b9cd2ac162805ac
C#
Anthony-ui/apiParcialAereopuerto
/api_aereopuerto/Controllers/PilotosController.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using api_aereopuerto.Modelos; namespace api_aereopuerto.Controllers { [Route("api/[controller]")] [ApiControll...
27319b8d4b78ef2e55c660e679cbd55228747b1b
C#
clementsainsRobotics/medx
/baza/DALCPatients.cs
3.015625
3
using System; using System.Collections.Generic; ////using System.Linq; using System.Text; using System.Reflection; using Npgsql; namespace baza { /// <summary> /// Данный класс инкапсулирует извлечение объектной модели данных о пациенте из БД /// </summary> public class DALCPatients {...
fdd4525406e56dd1d84c40331dc03f909e9d0fce
C#
ToshieCosed/Dimension-Explorer-buggy-1.0
/Assets/Chest.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Assets { public class Chest { float Screenx; float Screeny; int ContainsItemId; bool openstate; GameEntity chestsprite; public Chest(bool open_state, int startx, i...
65ee83d81103b76010298b5b72e4ddc9e1eef539
C#
wongomao/Basic3
/DependInject2/PrintingNotifier.cs
3.0625
3
using System.IO; namespace DependInject2 { // A memo notifier that prints messages to a text stream. public class PrintingNotifier : IMemoDueNotifier { TextWriter _writer; // Construct the notifier with the stream onto which it will // print notifications. public Printin...
1fe79aa751b80af1e72076789915d74ce261c341
C#
mjgood/GameJam_2
/NameReaper/Assets/Code/NamedObjects/Plant_Potted.cs
2.53125
3
using UnityEngine; using System.Collections; public class Plant_Potted : ObjectInformation { // Use this for initialization void Start() { gameObject.AddComponent<Plant_Potted_RestState>(); gameObject.AddComponent<Plant_Potted_CombatState>(); } // Update is called once per frame ...
ae6c2bd6a056b33ec21950808f67288b8f3b197c
C#
tatsiana485/TanyaAuto
/TanyaAuto/Program.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace TanyaAuto { class Program { static void Main(string[] args) { //Lesson3_Pifagor(); //Lesson3_Cos(); //Lesson4_1(); //Lesson4_2_1(); ...
c3a935713e02c14722da674d8d0e4c213a7325a8
C#
blackbs1994/SistemaInventario
/ProyectoInventario/AccesoDatos/Gesionar/CatalogoProductosDB.cs
2.640625
3
using AccesoDatos.Modelo; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AccesoDatos.Gesionar { public class CatalogoProductosDB { public static bool guardarCatalogoProductosa(CatalogoProductos obj...
ac3d28e859aea0679bf0d3ed029ad2fe039de972
C#
pirocorp/CSharp-OOP-Basics
/07. Static Members And Namespaces/07. Static Members And Namespaces - Exercises/P05_HTMLDispatcher/HTMLDispatcher.cs
3.171875
3
namespace P05_HTMLDispatcher { public static class HtmlDispatcher { public static string CreateImage(string imageSource, string alt, string title) { var img = new ElementBuilder("img"); img.AddAttribute("src", imageSource); img.AddAttribute("alt", alt); ...