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
b90ee3b0a433a4966a363d2d8d3c7f70dc819f34
C#
thcl-0407/NetCore_API_BlogApplication
/Services/PostService.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using DAL; using DAL.Entities; using Microsoft.EntityFrameworkCore; using Services.Entities; using DTO.ReadDTO; using DTO.WriteDTO; namespace Services { public class PostService : IPostService { private B...
37e6dd539aeeae9225436ab1edcce9b05b76e911
C#
BobFrapples/TeaseAI
/TeaseAI.Services/CommandProcessor/GotoDommeLevelCommandProcessor.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using TeaseAI.Common; using TeaseAI.Common.Constants; using TeaseAI.Common.Data; using TeaseAI.Common.Events; using TeaseAI.Common.Interfaces; namespace TeaseAI.Services.CommandProcessor { public class GotoDommeLevelCommandProcessor : CommandProce...
154a48b547ede613420041041a7e37956a95454e
C#
chedan1992/bellali
/QinGuo/trunk/Program/快洗车App/trunk/Aspx.DataAccess/BaseDAL.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using QINGUO.DataAccessBase; using QINGUO.Common; using Dapper; using QINGUO.DataAccessBase; namespace QINGUO.DAL { public class BaseDAL<T> where T : class,new() { protected IDapperHelperSql<T> dab...
ec963265593e2305cda2f53e471bc6f9120d8de5
C#
YumengSun1990/VCards
/FolkerKinzel.VCards/Intls/Converters/InterestLevelConverter.cs
3.015625
3
using FolkerKinzel.VCards.Models.Enums; using System; using System.Diagnostics; namespace FolkerKinzel.VCards.Intls.Converters { internal static class InterestLevelConverter { internal static class Values { internal const string High = "high"; internal const string Medi...
ac462506fde2bad7f2a6073eca53ef54c3066e74
C#
sandermvanvliet/TestableHttpClient
/src/Codenizer.HttpClient.Testable/ConfigurationDumpVisitor.cs
2.65625
3
using System.CodeDom.Compiler; using System.IO; using System.Linq; using System.Net.Http; namespace Codenizer.HttpClient.Testable { internal class ConfigurationDumpVisitor : RequestNodeVisitor { private readonly StringWriter _writer; private readonly IndentedTextWriter _indentedWriter; ...
5b59e635f65941233d37182497f19624a520f53e
C#
chcg/js-map-parser
/source/JsParser.UI/UI/Theme.cs
2.546875
3
using System.Drawing; using System.Xml.Linq; namespace JsParser.UI.UI { public class Theme { public bool IsPredefined { get; set; } public string Name { get; set; } public ColorTable Colors { get; set; } public XElement SaveToXml() { var themeX...
9411d86bfdbedbf5f0a3f1a896d1540889fd3f88
C#
Albawab/MyWork
/WebSocketGameOX/GameOX/Protocol/EventHelper.cs
2.890625
3
// <copyright file="EventHelper.cs" company="PlaceholderCompany"> // Copyright (c) PlaceholderCompany. All rights reserved. // </copyright> namespace HenE.WebSocketExample.Shared.Protocol { using System; using System.Text; using HenE.Abdul.GameOX; /// <summary> /// Helper de events. /// </sum...
c42134a5de170443b968261d668352a7a980d315
C#
oriolrivera/ejercicios-programacion-3
/calculadora c saharp/calculadora c saharp/Form1.cs
2.78125
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 calculadora_c_saharp { public partial class Form1 : Form { double dato1; double dato2;...
b77dd32988ab4cc3cc027757dad5d9273372d758
C#
MR-Amoori/Contacts
/ContactsConnectionSQL/ContactsConnectionSQL/Services/ContactsRepository.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Data.SqlClient; namespace ContactsConnectionSQL { class ContactsRepository : IContactsRepository { private string Connectionstring = "Data Source=.;Initia...
7f64cc26340066c788690587fd2f4e6d900e1e0e
C#
sunc123/PatternLearn
/PatternLearn/Factory Method/IDCard.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PatternLearn { class IDCard : Product { private string owner; public string Owner { get { return owner; } } public IDCard(string owner) {...
4f8f7ae4500ec36f55aed8d4d701f3440cd439df
C#
ChaXiangMoKe/FastEngine
/unity/Assets/FastEngine/Scripts/Core/ResLoader/Res/RunAsync/RunAsync.cs
2.609375
3
using System.Collections.Generic; namespace FastEngine.Core { /// <summary> /// 资源异步管理洗头 /// </summary> [MonoSingletonPath("FastEngine/ResLoader/RunAsync")] public class RunAsync : MonoSingleton<RunAsync>, IRunAsync { /// <summary> /// 同时运行异步最大数 /// </summary> pr...
2a25a86acb3d0964cb034c41b63385b915ed5dba
C#
HugoMautner/Databas-Uppgift
/DatabasUppgift/DatabasUppgift/SqliteDataAccess.cs
2.640625
3
using System; using System.Configuration; using System.Data; using System.Data.SQLite; using Dapper; using System.Linq; using System.Collections.Generic; namespace DatabasUppgift { static class SqliteDataAccess { public static void SaveStudent(StudentModel student) { using (IDbConn...
e49cfec1d979d4c4bae6f09cb37b19c7e634b559
C#
sebahomsi/nutricion
/Servicio/Objetivo/ObjetivoServicio.cs
2.6875
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; using Infraestructura.Contexto; using Servicio.Interface.Objetivo; namespace Servicio.Objetivo { public class ObjetivoServicio : ServicioBase, IObjetivoServicio { ...
ed7ced37893c175925ee0ba6a8c1a05fafcc3a54
C#
shendongnian/download4
/first_version_download2/518168-47840500-162897014-2.cs
3.234375
3
public class Rectangle { public int length { get; set; } public int breadth { get; set; } public int area() { return length * breadth; } } public class Square : Rectangle { }
131b8da1c228baccf02557f6ff93ba13d7907a3a
C#
HTD/Woof
/Packages/Woof.Console/ConsoleTools/ConsoleTheme.cs
2.859375
3
namespace Woof.ConsoleTools; /// <summary> /// Defines console color theme assigning standard console colors to common text elements in hexadecimal format. /// </summary> public class ConsoleTheme { /// <summary> /// Gets or sets the default text color. /// </summary> public string DefaultText { get;...
f6c75a7c191e724db2a64d5217f903d7f0c793df
C#
GhBogdan97/collective-project-backend
/collective-project-backend/Controllers/StatisticsController.cs
2.59375
3
using API.Mappers; using API.ViewModels; using DatabaseAccess.DTOs; using DatabaseAccess.Models; using Microsoft.AspNetCore.Mvc; using Services; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace API.Controllers { [ApiController] public class StatisticsC...
e712784c0d6ae24950a1d1fafe34dbfa18954d75
C#
VB6Hobbyst7/SmoothGL
/SmoothGL/Graphics/Geometry/VertexElementDouble.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using OpenTK; using OpenTK.Graphics; using OpenTK.Graphics.OpenGL; namespace SmoothGL.Graphics { /// <summary> /// Describes a vertex element as a vector of double precision floating point numbers. /// </summary> pu...
bbd2240657bdfe513077dee0b23962f37123ff56
C#
Cpp-dwarf/Unity-Proj
/Assets/FluentDialogue/Example/Conversation14.cs
2.5625
3
using UnityEngine; using Fluent; /// <summary> /// This example shows that the conversations can be paused until something happens /// </summary> public class Conversation14 : MyFluentDialogue { public GameObject blueGuy2; public GameObject player; public bool HasVisitedRed { get; set; } bool cameBackF...
b6e509b98f159767ca3d4cdbe22f55b456c3adee
C#
pepelefevre/Problems
/Island/Island/IslandSolver.cs
3.8125
4
using System; namespace Island { class IslandSolver { // Array of 0s and 1s to solve private int[,] ocean; // Array of whether the 1 has been visited before private bool[,] visited; public IslandSolver(int size) { ocean = randomArray(size); ...
5e0d057790e6f4771d271d2bafc137c306d0733c
C#
TameemShahid/CableManagementSystem
/CableMangementSystem/GenReport.cs
2.71875
3
using System; using System.Diagnostics; using MigraDoc.DocumentObjectModel; using MigraDoc.DocumentObjectModel.Tables; using MigraDoc.Rendering; using System.Collections.Generic; namespace CableMangementSystem { static public class GenReport { public static void CreateDocumentHistory(string main,st...
5d27dfcdfe274b76ad13f3c19825fc55a66880ee
C#
gqy117/YoutubeBatchDownloader
/YoutubeBatchDownloader.Service/YoutubeHtmlParser/YoutubeHtmlParser.cs
2.53125
3
namespace YoutubeBatchDownloader.Service { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using Microsoft.Practices.Unity; using AngleSharp.Parser.Html; using CsQuery; usin...
badb58a25d2e466a9ed876b550b3ad3ea05c3a0e
C#
Softfire/softfire-monogame-libraries
/Softfire.MonoGame.NTWK/Services/Lidgren/LidgrenNetManager.cs
2.625
3
using System.Collections.Generic; using System.Net; using Microsoft.Xna.Framework; using LidgrenNetPeerStatus = Lidgren.Network.NetPeerStatus; namespace Softfire.MonoGame.NTWK.Services.Lidgren { public class LidgrenNetManager<T1, T2> where T1 : LidgrenClient where T2 : L...
babfd2f125a5b04d8dbf32d2c22ab0ac8914008e
C#
dreamplayer-zhang/programingstudy
/RootTools_Vision/RemoteProcess/PipeClient.cs
2.578125
3
using Microsoft.Win32.SafeHandles; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows; namespace RootTools_Vision { class P...
4f73f84e5a6b4ba2bb16442ec55a00c961e330da
C#
Vladyslav-lys/Grocery
/Grocery.DAL/Grocery.DAL.Repositories/RepositoryFactory.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; using Grocery.DAL.Contexts; using Grocery.DAL.Contract; using Grocery.BLL.Entities; namespace Grocery.DAL.Repositories { public class RepositoryFactory : IRepositoryFactory { readonly Dictionary<Type, object> collection = new Dictionar...
1ad6dfab925009a49be2e49bea3bebde3240baf8
C#
Niicksan/SoftwareUniversity
/Professional Modules/C# DB Fundamentals/Databases Advanced - Entity Framework/Exercises/01. DB Advanced - Apps Introduction/6. Remove Villain/Remove Villain.cs
3.125
3
using System; using System.Data.SqlClient; namespace _6._Remove_Villain { class Program { static void Main(string[] args) { int recivedVillainId = int.Parse(Console.ReadLine()); string connectionString = @"Data Source=(local)\SQLEXPRESS; Initial Catalog = MinionsDB; In...
ff972441b4f94a8355008a639b66a8c915415077
C#
Litorasul/TechModule_with_CSharp_at_SoftUni.bg
/06.Objects andClasses/06. ObjectsAndClasses/P06.VehicleCatalogue/VehicleCatalogue.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; namespace P06.VehicleCatalogue { class VehicleCatalogue { static void Main(string[] args) { List<string> input = Console.ReadLine().Split().ToList(); List<Vehicle> cars = new List<Vehicle>(); ...
3112a7a8b0b34cb2bf9392240dc207a2a58d5f68
C#
kkozmic/PaulTest
/PaulBenchmarks/StructureMap.cs
2.609375
3
using PaulBenchmark.PaulModel; using StructureMap; namespace PaulBenchmark.PaulBenchmarks { public class StructureMap : IBenchmark { private readonly Container container; public StructureMap() { container = new Container(e => { e.Fo...
7b92f1d0a9258ef9480175c48b576b8b14e55c31
C#
embix/adventofcode
/2019/LinqPadQnD/day04_2.linq
3.0625
3
<Query Kind="Program" /> void Main() { var cases = //testcases; Enumerable.Range(puzzleMin, puzzleMax-puzzleMin+1) .Select(i=>new TestCase{ Password = i.ToString() }).ToList(); cases.Last().Dump(); var meetingCount = 0; foreach(var pw in cases) { var isMeetingCriteria = IsMeetingCriter...
85ac4127896d011b6df93abbb3bbd9b38de9f495
C#
AlexandraDamaschin/Company
/Company/DAL/ProductRepository.cs
2.578125
3
using Company.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Company.DAL { public class ProductRepository : IProductRepository { private SampleDBEntities context; public ProductRepository(SampleDBEntities context) { t...
c44d433d273c500375ab5c176094a0b9826d2a9d
C#
shendongnian/download4
/code9/1610917-45182892-151920009-2.cs
2.640625
3
public class SerialConnection { INIFile settings = new INIFile("C:\\Lateco\\settings.ini"); public SerialPort SerialPort { get; set; } static SerialConnection connection= null; public event EventHandler WeightReceived; public static SerialConnection OpenConnection()...
95b5e5187b1e9cd71ce0643813d39673e79a3d4b
C#
AlAstapov/Equipment
/ConsoleApp1/Stock.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { public class Stock { public static int SnowBoardCountOnStock; public static int SkiCountOnStock; public static void GetSnowBoardsFromStock(int countToTake) { if (Sn...
44ac1a0cd362ed0dc587d64d1daa7b7c3c192084
C#
iKostov86/CSharp
/Homeworks/C# - part 1/OperatorsAndExpressions/10. Point, Circle, Rectangle/PointCircleRectangle.cs
3.671875
4
using System; public class PointCircleRectangle { static void Main(string[] args) { double x = double.Parse(Console.ReadLine()); double y = double.Parse(Console.ReadLine()); bool inCircle = true; bool inRectangle = true; string result = string.Empty; var circle...
28fbb3bf0b2a2a770ccdb6475c2c4be5b7528214
C#
messyoxd/TrocaArquivo
/TrocaArquivo.TupleSpace/Servidor/Servidor.cs
2.734375
3
using System; using System.Linq; using System.Threading; using dotSpace.Objects.Network; using dotSpace.Objects.Space; namespace TrocaArquivo.TupleSpace { public class TpServidor { private readonly string port; private readonly string ip; private SpaceRepository repository; publ...
8358dc9c87c9ba8a8fd107b871763d95e45d82a9
C#
yas-mnkornym/DroneManipulator
/DroneManipulator/DroneManipulator.Simulator/ComiketSystem/Settings/SettingsImpl.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace ComiketSystem.Cheekichi.Infrastructure.Settings { internal class SettingsImpl : CSBaseNotifyPropertyChanged, ICSSettings, IDisposable { #region Private Fields List<Type>...
2b8f705f0070268c98e968e8a34ed18942a09d02
C#
samitsuun/15helmi
/ConsoleApp1/ConsoleApp1/Program.cs
3.140625
3
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { List<string> rivit = new List<string>(); StreamReader reader =...
66cbc3688d79b378f8f6fd4863a56d0f3a22b802
C#
shendongnian/download4
/code6/1069979-27762586-80885830-2.cs
3.15625
3
static void Main(string[] args) { //INTEGERS int max = 5; Cake[] cakes = new Cake[max]; int[] qty = new int[max]; int[] price = new int[max]; int i; int qty_search; int counter = 0, found = 0; ...
3318e864ed18335bc80291336639dd089d7e5a08
C#
perivar/PresetConverter
/PresetConverterProject/CommonUtils/IOUtils.cs
3.1875
3
using System; using System.IO; using System.Text; using System.Linq; using System.Globalization; using System.Text.RegularExpressions; using System.Collections.Generic; using System.Reflection; using System.IO.Compression; namespace CommonUtils { /// <summary> /// Utils for input output (IO). /// </summary...
d57d09bbe9816bd265ec04d15fb819274b3d71c7
C#
HemlataDhangar/StudentManagement
/DataAccess/Concrete/StudentDL/StudentDataLayer.cs
2.75
3
using Common.Model; using DataAccess.Abstract.IStudentDL; using Domain; using Infrastructure.Contract; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; namespace DataAccess.Concrete.StudentDL { public class StudentDataLayer : IStudentDa...
a632d99cc4997ce09f75c55949d9f6797a366fee
C#
WolfGamesLLC/WolfGamesUnityApps
/Marble Motion/Assets/Scripts/OldPlayerController.cs
2.578125
3
using UnityEngine; using UnityEngine.UI; using System.Collections; using System; public class OldPlayerController : MonoBehaviour, IMovementController { public BallController ballController; private Rigidbody rB; // Run when the enable event is fired public void OnEnable() { ballControll...
e88f2f2e2ecef8bf3bafc4e7503f5014eacb1bd7
C#
Dantellevi/Xamarin_develop
/Metanit_Lesson/patternMVVM/ContextMenuMVVM/ContextMenuMVVM/ContextMenuMVVM/PhoneViewModel.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; namespace ContextMenuMVVM { public class PhoneViewModel : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; public Ph...
a12f1f55bc5a4b3c24a91dcac842b82071b8e4b7
C#
BroYee/StudentSoldier
/6-25 War - Student Soldier/Assets/InGame/Item/ItemManager.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ItemManager : MonoBehaviour { public List<GameObject> items; public bool[] itemUsed; private void Start() { StartCoroutine(RegenAmmo(0)); StartCoroutine(RegenFirstAidKit(0)); itemUsed...
b14d93b753cd8c4355dcf3a0e5b6a7c4ed389ec6
C#
vicenteMdz/camino-mas-corto-algoritmo-evolutivo
/JuegoCaminoMasCorto/Coordenadas.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JuegoCaminoMasCorto { class Coordenadas { private int coordx = 0; private int coordy = 0; public String Coordenada { get ...
47c27f659f93c550605560890cb4c7b1f06e05aa
C#
Dijkstra7/AureaDashboard
/Assets/Scripts/Student_Selector_Manager.cs
2.765625
3
using System.Collections.Generic; using UnityEngine; using System.IO; using UnityEngine.UI; using System.Text.RegularExpressions; using System.Linq; using System; //---------------------------------------------------------- // Generates a student list inside the student selector // From the file 'Ginzy_Students_List....
2af334cc4764fb642cf6f60adf98750ae1495deb
C#
tomazk8/SoftCore
/SoftCore/Composition/ComposablePart.cs
2.546875
3
using System; using System.Collections.Generic; using System.Reflection; using System.Text; using System.Linq; namespace SoftCore.Composition { /// <summary> /// Represents the part in the IoC container that has at least one export and can have imports. /// </summary> public class Composabl...
55331880c29fe45ad0844fa5045f98a660c08a3e
C#
sym1945/JYOOK
/JYOOK.Infrastructure.Data/Repositories/PackingRepository.cs
2.625
3
using JYOOK.Domain; using System.Collections.Generic; using System.Threading.Tasks; namespace JYOOK.Infrastructure.Data { public class PackingRepository : IPackingRepository { private const string CONFIG_PATH = @"Configs\Packings.xml"; private readonly XmlSerializer<List<PackingInfo>> _XmlSer...
4ca00d4dc2b552e9b8e2b2777d5ccb705d0ffc9e
C#
wouldyougo/TRx
/TRL.Emulation/TradingDataContextExtensionsForEmulation.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using TRL.Common.Data; using TRL.Common.Models; using TRL.Common.Collections; namespace TRL.Emulation { public static class TradingDataContextExtensionsForEmulation { public static Order AddSignalAndItsOrder(this IDa...
c1871c43f4a0379dec2206d5df3d99700c5838d6
C#
norisradu/JuniorMind
/Field/Field/FieldTests.cs
3.28125
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Field { [TestClass] public class FieldTests { [TestMethod] public void InitialAreaForASimpleScenario() { float initialArea = CalculateInitialArea(1, 6); Assert.AreEqual(2, initialAre...
367867fa83ae566fd09dea8c24755052cf77b45e
C#
balanikas/ExpressQuiz
/ExpressQuiz.Core/Utils/DataProvider.cs
2.75
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Xml.Linq; using System.Xml.Schema; using ExpressQuiz.Core.Models; namespace ExpressQuiz.Core.Utils { public class DataProvider { private static bool ValidateData(XDocument doc, str...
85533876c03d7bf1779403f5baf930b1dbaa9470
C#
AndreyMav/OpenTradingFrameworkNet
/OTFNCore/Market/Timeframe.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OTFN.Core.Market { public class Timeframe { private int minutes; public int Minutes { get { return minutes; ...
cfd8cd3c08d5ba4451e18edf24093f76981f8837
C#
FabricioZAGA/programacion-entornos-visuales-issc
/A6 - GEOMETRÍA/A6 - GEOMETRÍA/Program.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A6___GEOMETRÍA { class Program { static void Main(string[] args) { Console.WriteLine("¿Prismas (1) o Pirámides (2)"); int res = ...
d132a540def85ead73cb54be41d98e0bb4bafa79
C#
Tuka96/ASP-DOT-NET
/class demo/AmazonOnline/DAL/CatalogDBManger.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Data.SqlClient; using Catalog; using System.Runtime.InteropServices; namespace DAL { public static class CatalogDBManger { //CRUD Operations against da...
2bb32d4893dc099a53a9050584f38fcdc72de1f7
C#
cdoyle02/TacoParser
/LoggingKata/Program.cs
3.203125
3
using System; using System.Linq; using System.IO; using GeoCoordinatePortable; namespace LoggingKata { class Program { static readonly ILog logger = new TacoLogger(); const string csvPath = "TacoBell-US-AL.csv"; static void Main(string[] args) { log...
321a2e6296c87cb95d2df3a5df168ee6fbb5674b
C#
efletche/PetClass
/PetClassTest/Program.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PetClassTest { class Program { static void Main(string[] args) { List<PetClass> PetList = new List<PetClass>(); PetList.Add(new PetCat("Mitten...
fae0d14ac811d6a52bc6e8609cc199613053e611
C#
WhoStoleMyToast/StockBuddy
/ZackRankFinder/SymbolFetcher.cs
2.953125
3
using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Http; using System.Threading.Tasks; namespace ZackRankFinder { public class SymbolFetcher : ISymbolFetcher { private ILogger _logger; public SymbolFetcher(IL...
23772fea416304f80d58d6ceb6b0ca7e189a324c
C#
doublnt/dotnetcore
/EntityFrameworkCore/EFWebDemo/DataBaseContext/BooksContext.cs
2.609375
3
using System; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using EFWebDemo.Model; namespace EFWebDemo.DataBaseContext { public class BooksContext : DbContext { public BooksContext(DbContextOptions<BooksContext> options) : base(options) { } protected o...
62597a4c30f6b9110537e8d9e0d42e6a54bb4aad
C#
atanasd357/Introducing-to-Programming-With-CSharp-Book
/13.Strings/CensorForbiddenWords/Program.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; //Task 11 namespace CensorForbiddenWords { class Program { static void Main(string[] args) { string text = "Microsoft announced...
d436030428db40ea25e627980c8ddc29ccfd9707
C#
MirellaU/Complec-project
/Project/Complex.cs
3.578125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Project { class Complex { public double Real { get; set; } public double Imaginary { get; set; } public Complex(double real, double imaginary) { ...
461adfd7a4b425ec2c921a568dd1809f57f71a37
C#
coderhardly/BasicPracticeByCsharp
/Singleton/Program.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Singleton { class Program { static void Main(string[] args) { SingeltonDemo s1 = SingeltonDemo.GetInstance(); SingeltonD...
f8ebccd8321bc6ea703b009ef52e9e4cd30e2872
C#
aL3891/FinBotFramework
/FinBotFramework/Program.cs
2.59375
3
using System; using System.IO; using System.Linq; using Tulip; namespace FinBotNet { class Program { public static string ToProp(string input) => string.Join("", input.Replace("%", "").Split(' ').Select(n => Cap(n))); public static string Cap(string input) => input[0].ToString()....
16567dfcc16ad28a5f05e509530bdc186f151a3f
C#
mangostools/ScriptEditor
/ScriptEditor/FormMaskCalculator.cs
2.9375
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 ScriptEditor { public partial class FormMaskCalculator : Form { public uint ReturnValue { get; set; } // we ...
03f89da0738118a1842a22f298dae71d0c26f160
C#
CloudHolic/VST.Net-Synthesizer
/Syntage.Framework/Parameters/IntegerParameter.cs
3.015625
3
using System; using System.Globalization; using Syntage.Framework.Tools; namespace Syntage.Framework.Parameters { public class IntegerParameter : Parameter<int> { public IntegerParameter(string name, string label, string shortLabel, int min, int max, int step, bool canBeAutomated = true) : base(name, label,...
e7d9d643cffc5ab531aa299979aa2de703c68085
C#
mastertnt/cga-parser
/CGACompute/Extrude.cs
3.140625
3
using System; using CGAParser; using SharpDX; namespace CGACompute { /// <summary> /// Extrude algorithm. /// </summary> public class Extrude : IAlgorithm<Polygon, Geometry> { /// <summary> /// Distance of extrusion. /// </summary> public float Distance { ...
81e8d1a28d7bd464eb530203313f877aa59dda94
C#
tectronics/revenge-of-the-titans
/Project/Assets/Scripts/Skills/Dispel.cs
2.546875
3
using System.Collections.Generic; namespace Assets.Scripts.Skills { public class Dispel : Skill { public Dispel() { TypesTarget = TypesTarget.OneFriend; Name = "Очищение"; Description = "Снимает все негативные эффекты."; IsOnlyAliveTar...
b1063d61151f6abdd10cb72fb02242169904f367
C#
RuzmanovDev/Telerik-Academy-Season-2016-2017
/Modul-II/01.High-Quality-Code/04.Design-Patterns/DIi.NET_SourceCode/HelloDI/HelloDIUnitTest/SecureMessageWriterTest.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; using Moq; using Ploeh.Samples.HelloDI.CommandLine; using System.Security.Principal; using System.Threading; namespace Ploeh.Samples.HelloDI.UnitTest { public class SecureMessageWriterTest : IDisposable { ...
b3088b436f2037d2313da679dea8c908cb3ee290
C#
stargarner/StarGarner
/StarGarner/Model/GiftHistory.cs
2.6875
3
using Newtonsoft.Json.Linq; using StarGarner.Util; using System; using System.Collections.Generic; namespace StarGarner.Model { public class GiftHistory { static readonly Log log = new Log( "GiftHistory" ); private class Item : IComparable<Item> { public readonly Int64 t...
7d5936833c28f98397676b8eec2af39612a31f5f
C#
luizdequeiroz/cursos-cast-group
/app/Controllers/CategoriaController.cs
2.78125
3
using domain.Entities; using domain.Enums; using Microsoft.AspNetCore.Mvc; using service; using System.Threading.Tasks; namespace app.Controllers { [ApiController] [Route("api/[controller]")] public class CategoriaController : ControllerBase { private readonly ICategoriaService categoriaServic...
1c24a607ac2acf7e9abe5a2279b6bbb96aafde8a
C#
AllanO-Cell/Luma-Game-Test-
/Luma Test Game/Assets/Scripts/Player/GunControls.cs
2.765625
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class GunControls : MonoBehaviour { Character_Movement movement; PlayerStats m_playerStats; public GameObject bulletPrefab; public Transform bulletSpawn; public float bulletSpeed = 30; float s...
d3abf4f2407980ef39948c877e4432151090c23d
C#
voodoo123x/TuxBlox
/Tuxblox/Model/Entities/NodeStatusEntity.cs
2.515625
3
namespace Tuxblox.Model.Entities { public class NodeStatusEntity : BaseEntity { private string _Status; private int _BlockHeight; private int _Headers; private int _Connections; /// <summary> /// Gets and sets the Status property. /// </summary> ...
21912fb62181ca595569d80acd09b6be1bf740b6
C#
eelmartin/Ingen-eria-y-servicios-industriales
/Capa.BL/Helpers/PdfHandler.cs
2.65625
3
using Capa.DATOS.Templates; using iText.Forms; using iText.Kernel.Pdf; using System; using System.Collections; using System.Collections.Generic; namespace Capa.BL.Helpers { public class PdfHandler { public static bool CrearPDF(IPdfTemplate template, string pathSalida) { return Llen...
7093b1dc36c288b516ea66b24cbdae9c31a27d4d
C#
EsaGit2022/IsisStandAlone
/EF_Model/Uitbreiding/KlantUitbreiding.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Windows; namespace EF_Model { partial class Klant : IDataEr...
f0b27143eae3e9dd346dac55050de4bc18065ce8
C#
mivak/CSharp
/ExamPreparation/CoffeeMachine/ConsoleApplication1/CoffeeMachine.cs
3.78125
4
namespace CoffeeMachine { using System; using System.Globalization; using System.Threading; public class CoffeeMachine { public static void Main() { Thread.CurrentThread.CurrentCulture = CultureInfo.CurrentCulture; int tray1 = int.Parse(Console.ReadLine());...
56be89c7cc7fe9955bfa0f32024dc573d0a5fd10
C#
RGIvan/Altair1718-VS
/2ª Evaluación/wd3_GestionAlumnosFP_En2capas/LNegocioyADatos/Entidades/Grupo.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LNegocioyADatos.Entidades { public class Grupo { //Campos int idgrupo; string alias; string nombre; //Constructor public Grupo(int id...
ff4be7d9c46b7559a648b345eb871f41c546fced
C#
RoxanneIheanacho/Programming-in-C-
/Shape_Calculator/Shape.cs
3.6875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace examination_2 { //https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/abstract will only be base class public abstract class Shape { /**The abstract keyword enables yo...
d709d6b5b215f843765b9fb24f1d7e2f3bd3edd9
C#
trovao1990/Alura-CSharp.Net
/CaixaEletronico/Form1.cs
2.640625
3
using System; using System.Windows.Forms; namespace CaixaEletronico { public partial class Form1 : Form { Conta[] contas; Conta contaSelecionada; Conta contaDestino; public Form1() { InitializeComponent(); } private void Form...
a3e1b8e9ebf84e77a4e61f5b6cc47b1314e3efa4
C#
warawicht/office-point-bot2
/OfficePointBot/Dialogs/KnockKnockDialog.cs
2.546875
3
using Microsoft.Bot.Builder.Dialogs; using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Web; namespace OfficePointBot.Dialogs { public class KnockKnockDialog { public static readonly IDialog<string> Dialog...
16dd3a536ce18d67574be2fd7bee246eba90c71b
C#
skclusive/Skclusive.Mobx.StateTree
/src/StateTree/Type/TypeExtensions.cs
2.84375
3
using System; using System.Linq; namespace Skclusive.Mobx.StateTree { public static class TypeExtensions { public static bool IsSimpleType( this object target) { return target == null || target.GetType().IsSimpleType(); } /// <summary> /// Deter...
2ac92ba58b2011cd4caa75b9b6d7c3cf5e3e8e4c
C#
michaelmcmullin/csMatrix
/csMatrix.Tests/MatrixRowColumnOperationTests.cs
2.984375
3
using System; using Xunit; namespace csMatrix.Tests { public class MatrixRowColumnOperationTests { [Theory] [InlineData(1, 2)] [InlineData(2, 1)] [InlineData(5, 2)] public void MatrixGetEnumerator(int rows, int columns) { Matrix m = new Matrix(rows, ...
2e304a262eadcd88c41657d262d8b2957bc43972
C#
nurike/Qiwi
/Program.cs
3.0625
3
using Qiwi.Classes; using System; namespace Qiwi { public class Program { static void Main(string[] args) { MyQueue queue = new MyQueue(); Console.WriteLine("Введите список номер тел.:"); string input = Console.ReadLine(); Console.Writ...
3d41a17b018ce3f1006a15e2572be08f77ac4737
C#
Tsoy-tech/it-nordic-school
/CourseProject_v.2/Reminder.Storage/Reminder.Storage.WebApi.Client/ReminderStorageWebApiClient.cs
2.640625
3
using Reminder.Storage.Core; using System; using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using Newtonsoft.Json; using Reminder.Storage.WebApi.Core; using System.Linq; using System.Text; namespace Reminder.Storage.WebApi.Client { public class ReminderStor...
4d27d1915cf5baf89b4b0eeb8217913d2fbc966f
C#
kylegalbraith/aws-email-service
/src/Processors/SendEmail.Lambda/Function.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Amazon.Lambda.Core; using Amazon.SQS; using Amazon.S3; using SQS.Adapater; using S3.Adapter; using EmailMessage.Repository; using SES.Adapter; using Amazon.SimpleEmail; using SES.Adapter.Config; using SendEmail.Messa...
23ea15341b7a3f7f8d0347075e9c862e6ae5546d
C#
jakakordez/roks-adventures
/Roks adventures/Drawable.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Roks_adventures { class Drawable { public string[] Lines; public int x, y, width; public Action<int, int, string, bool> Print; public Dra...
4f6412f562dee7812a72e9403e9ba6c120e691b4
C#
DesislavaPlam/GiftSuggester
/GiftSuggester/GiftSuggester/GiftSuggester.Shared/ViewModels/EventsViewModel.cs
2.59375
3
namespace GiftSuggester.ViewModels { using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; ...
4c05e9a3fbc1273971b67d48a796326ca53de15c
C#
jazd/Business
/CSharp/Core.Test/TestBalance.cs
2.859375
3
using System; using NUnit.Framework; namespace Business.Core.Test { [TestFixture] public class TestBalance { [Test] public void Value() { var record = new Balance() { RightSide = true, Debit = 10, Credit = 4 }; Assert.AreEqual(6, record.Value); record.Credit = null; Assert.AreEqual(...
172ad401faf8119bae4fd149c6de3a563ed30a96
C#
Barleysack/CSharpbasics
/C#basics/Day5/Short_test_01/Short_test_01/Program.cs
3.515625
4
using System; namespace Short_test_01 { class Program { static void Main(string[] args) { try { Console.WriteLine("값을 입력하세요 : "); int input = Convert.ToInt32(Console.ReadLine()); Console.WriteLine($"입력된 값은 {input} 입니다"); ...
0b1b3f9689979acda0c9f7b809eac78ca64bfb6e
C#
zhulinyin/UserManagementSystemUWP
/UserManagementSystem/UserManagementSystem/ViewModels/EmployeeViewModel.cs
2.796875
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using UserManagementSystem.Models; using Windows.Data.Json; namespace UserManagementSystem.ViewModels { class EmployeeViewModel { ...
ff5477b338ea3f95309d9cee95e95cfe95707540
C#
KJfe/Labb3
/View/GeneralForm.cs
2.734375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using ValumeFigyre; namespace View { public partial class GeneralForm : Form, IAddO...
9f3f1c34491c1bd0987cd5c539b611818269d7e2
C#
blakeohare/pyweek22
/mapeditor/TileStore.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MapEditor { public static class TileStore { private static string[] tiles = null; private static Dictionary<string, Tile> idsToTiles = new Dictionary<string,...
c0ca26ca1aceead82e0fffb71452a328d54ab546
C#
Marin-Tsanov/2.-C-Sharp-Advanced
/5. Numeral Systems/4. Hexadecimal to decimal/Program.cs
3.609375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace _4.Hexadecimal_to_decimal { class Program { static void Main() { string number = Console.ReadLine(); Console.WriteLine(em...
f9df4d085fb95cc4fb378ffaeaf278b02e9f405c
C#
ivandrofly/DoFactorydotNetDesignPattern
/Abstract Factory/Structural codes/AbstractProductA.cs
2.578125
3
/// <summary> /// Creates an instance of several families of classes. /// /// Provide an interface for creating families of related or /// dependent objects without specifying their concrete classes. /// /// Frequence of use: 5 high. /// </summary> namespace DoFactory.GangOfFour.Abstract.Structural { /// <summar...
2ffa54f86947fc9f367494fe5b7123d06d028a70
C#
Makzz90/VKClient_re
/VKClient.Common/framework/DelegateCommand.cs
2.75
3
using System; using System.Windows.Input; namespace VKClient.Common.Framework { public class DelegateCommand : ICommand { private Func<object, bool> canExecute; private Action<object> executeAction; public event EventHandler CanExecuteChanged; public DelegateCommand(Action<object> executeAction) ...
1543d60747182daf7eb45fa1810c8389a2ab8485
C#
sebastianOrtiz/Concurrente2
/PacmanServidor/PACMANv3/PACMANv3/pkgModelo/DatosJugador.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System.Threading.Tasks; namespace PACMANv3.pkgModelo { /// <summary> /// Clase que representa un jugador /// </summary> public class DatosJugador { pri...
ef512eb57f70c8391aa5e84a1f905bde19ad23b0
C#
KrzysztofKowalski/scalex
/src/DrawingSurface/GDIDrawingSurface.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using Webprofusion.Scalex.Util; namespace Webprofusion.Scalex.Rendering { public class GDIDrawingSurface : IGenericDrawingSurface { private Graphics canvas; private Brush ForegroundBrus...
6490e507cc71b37752d63ca41c54a51152391653
C#
Nikolay-712/CSharp-OOP
/Exercises/Polymorphism-Exercise/03.WildFarm/Birds/Owl.cs
3.484375
3
using System; using System.Collections.Generic; using System.Text; namespace _03.WildFarm { public class Owl : Bird { private static double OwlFoodModificator = 0.25; public Owl(string name, double weight, double wingSize) : base(name, weight, wingSize) { } ...
a0be681655aa1009788ffa4f5b53fd96f9e0fc30
C#
rix1/mgdev-life-of-pi
/Assets/Scripts/g_NoteGenerator.cs
2.71875
3
using UnityEngine; using System.Collections; using Rhythmify; public class g_NoteGenerator : _AbstractRhythmObject { public GameObject green; public GameObject red; public GameObject yellow; private Vector3 spawnLoc1 = new Vector3(-1.8f ,4f,0f); private Vector3 spawnLoc2 = new Vector3(0.0f ,4f,0f); private...
e2df4b63d1de1640505e5ff1db2123270e98eb17
C#
qq550723504/DesignPatterns
/BehavioralPatterns/MediatorPattern/Program.cs
2.515625
3
using System; namespace MediatorPattern { class Program { static void Main(string[] args) { var robert = new User("Robert"); var john = new User("John"); robert.SendMessage("Hi! John!"); john.SendMessage("Hello! Robert!"); Console.R...
09cfe38707e990a8f85d9ea6863fa91ff608f1a5
C#
Whathecode/NET-Standard-Library-Extension
/src/Whathecode.System/IO/Extensions.DirectoryInfo.cs
3.15625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; namespace Whathecode.System.IO { public static partial class Extensions { /// <summary> /// Returns an enumerable collection of file information that matches a regular expression. /// </s...
e22ebe2b48a50c449a7e300dc9c50ac3ccf2d322
C#
AzureCloudMonk/introducing-dapr
/Chapter 9/ImageProcessing/ObjectRecognition/DataStructures/ModelResult.cs
3.09375
3
namespace ObjectRecognition.DataStructures { public class ModelResult { /// <summary> /// x1, y1, x2, y2 coordinates. /// </summary> public float[] BBox { get; } /// <summary> /// The category of the bounding box. /// </summary> public string Lab...
d63225f16544a41b7568e6096f2c901661d140f7
C#
MartinArvidsson/1dv402-ma223ku-Recept_p-_fil
/FiledRecipes/FiledRecipes/Views/RecipeView.cs
2.890625
3
using FiledRecipes.Domain; using FiledRecipes.App.Mvp; using FiledRecipes.Properties; using System; using System.Collections.Generic; using System.Linq; namespace FiledRecipes.Views { /// <summary> /// /// </summary> public class RecipeView : ViewBase, IRecipeView // Publik klass som heter RecipeView...
79febd70bb396f1eddd80c985f441c22feffb501
C#
Danailnd/Principles-of-Programing
/Ch 2 Calculating Area for Circle, Rectangle or Square/Program.cs
4.1875
4
using System; namespace Ch_2_Calculating_Area_for_Circle__Rectangle_or_Square { class Program { static void Main(string[] args) { bool repeat = false; do { Console.WriteLine("Hello. Please choose one of the following shapes to calculate the ...
66e411381328a16154ddcc721ce7ab14496790b3
C#
jasarvn/howdengroup
/insuranceMonitoringSystem/insuranceMonitoringSystem/Helpers/Dbhelper.cs
2.640625
3
using System.Configuration; using System.Data; using System.Data.SqlClient; using insuranceMonitoringSystem.Constants; using Microsoft.EntityFrameworkCore; namespace insuranceMonitoringSystem.Helpers { public class Dbhelper { protected static string cs = Constants.Constants.connString; pu...