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
0759e4efdadf47cceeb88da5faf50e3816a5a374
C#
SamreenZ13/XMLWebServices
/NeighborhoodGroceryApp/Pages/AutoCompleteData.cshtml.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using GroceryStore; using Housing; using Newtonsoft.Json.Schema; using Newtonsoft.Json.Linq; namespace NeighborhoodGroceryApp.Pa...
0a9d91317677d434a4eec283db0a551997344461
C#
Syzuna/TwitchLib.Extension
/TwitchLib.Extension/Extension/RotatedSecretExtension.cs
2.734375
3
using System; using System.Linq; using System.Threading.Tasks; using TwitchLib.Extension.Events; namespace TwitchLib.Extension { public class RotatedSecretExtension : ExtensionBase { private readonly int _interval; public event EventHandler<SecretRotatedEventArgs> SecretRotated; publi...
5ca60bcc3fb274eb5de8cd2353bf9763baa22814
C#
shakasi/coding
/DBCompare/DBDiff钱伟/HelperCollection/Cryptography/RSAHelper.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Security.Cryptography; namespace Utility.HelperCollection.Cryptography { public class RSAHelper { /// <summary> /// 生成密钥 /// </summary> public static Dictionary<Keys,string> Gener...
cb273570b6bf6811d6644e7d086d416688010747
C#
achat/DayGame
/Source/QuestLog/Tasks/Habit.cs
3.28125
3
namespace DayGame { public class Habit : Task { public int Positive { get; set; } public int Negative { get; set; } public Habit(string name, string description, TaskDifficulty difficulty) : base(name, description, difficulty) { Positive = 0; Negative ...
6331195e5a450376bd8c3ebc57e4839c4b1063c4
C#
fernandofig/Projects
/activewriter/trunk/src/Dsl/NRefactory/ParserFactory.cs
2.546875
3
#region License // Copyright 2004-2010 Castle Project - http:www.castleproject.org/ // // 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/...
b42ac9928e57d69534a9ace68db1f0c96d9cc298
C#
shendongnian/download4
/first_version_download2/184024-13930614-33343969-2.cs
2.59375
3
public class Test { private string _test; public Test(string Test,string _test) { this.Test = "test";//this refers invoking object Test i.e class varaible // vs. Test = "test";//this refer method passed Test param // and this._test = "test";//this refers i...
41437260ba94306a2f171f39127b3430ae2fb1f4
C#
mjr129/mgui
/MGui/Controls/CtlSplitter.cs
2.640625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MGui.Controls { public class CtlSplitter : SplitContainer { priva...
e5ca6ae30e258e7f5893bbbd270f4991c22c2cad
C#
helgihaf/Grocker
/Grocker/Options.cs
3.0625
3
using System; using System.Reflection; using System.Text; namespace Grocker { /// <summary> /// Encapsulates the command-line options used by Grocker /// </summary> public class Options { public bool HelpWanted { get; set; } public string DirectoryPath { get; set; } public ...
f708a73338b4c45fcd272ee2099af5929a31051b
C#
SofiaHritcu/AspNetSandBox
/AspNetSandBox.Tests/BooksInMemoryRepositoryTests.cs
2.765625
3
using System; using AspNetSandBox.Models; using AspNetSandBox.Services; using Xunit; namespace AspNetSandBox.Tests { /// <summary>BooksInMemoDryRepositoryTests Class.</summary> public class BooksInMemoryRepositoryTests { /// <summary>Shoulds the get book valid identifier.</summary> [Fact] ...
47e86c214ec2dafd5e279f58cecd8c87cf36441e
C#
fegeroldi/FIPPalace_V2
/FIPPALACE/Persistencia/HospedagensDB.cs
2.6875
3
using FIPPALACE.Modelo; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FIPPALACE.Persistencia { class HospedagensDB { private Banco banco; public HospedagensDB(Banco ...
208511e1f3ad635c9a7184d17d222d86a44b3ceb
C#
jrDev1/UAlive
/Core/Editor/Units/Global/Widgets/HasBinaryVariableWidget.cs
2.53125
3
using Ludiq; using Bolt; namespace Lasm.UAlive.IO { /// <summary> /// The visuals and visual behaviour of a HasBinaryVariable Unit. /// </summary> [Widget(typeof(HasBinaryVariable))] public sealed class HasBinaryVariableWidget : UnitWidget<HasBinaryVariable> { public HasBinaryVariableW...
51d9718717efe8ef2e15e05e6aa94c94d4f2ec7a
C#
dvasilev89/SoftUni
/C# Programming Fundamentals/02. Data Types and Variables/BoatSimulator/Program.cs
3.671875
4
using System; class Program { static void Main(string[] args) { int oddBoat = char.Parse(Console.ReadLine()); int evenBoat = char.Parse(Console.ReadLine()); byte n = byte.Parse(Console.ReadLine()); int oddMoves = 0; int evenMoves = 0; for (int i = 1; i <= n; i...
00f8c6a60a1924687d98ad4713e537242230b676
C#
dj3mu/HamnetMonitoring
/SnmpAbstraction/DeviceDatabase/DeviceDatabaseMaintenance.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Configuration; namespace SnmpAbstraction { /// <summary> /// Class performaning maitenance tasks on the cache data. /// </summary> public class DeviceDatabaseMaintenance { /// <summary> ///...
9c72b59d59d8806e1b52d6c3ac28e52565404165
C#
Fpisti-dev/FruitIshido-Web-Form-C-Sharp
/App_Code/Stone.cs
2.578125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Web; using System.Web.UI; /// <summary> /// Summary description for Stone /// </summary> [Serializable] public class Stone { public string Name { get; set; } public string Text { get; set; } public Color...
2ea58d9d68a32dd3bd754b94e98e2832bd0855d6
C#
mat3u/EyeTracking
/EyeTracking.Util.DP/PointInTime.cs
3
3
namespace EyeTracking.Util.DP { using System; public struct PointInTime { public PointInTime(string line) : this() { var s = line.Split(new[] { ';' }); this.T = new DateTime(1970, 1, 1).AddMilliseconds(double.Parse(s[0])); this.X = Double.Pa...
85c50559f1ac3bc700e41adc32cf74eb16070680
C#
SveGeorgiev/blueblood
/BlueBloodSystem/Services/JsonConvertService.cs
2.96875
3
using BlueBloodSystem.Models; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace BlueBloodSystem.Services { public class JsonConvertService { public void WriteToFile(string fileName, List<Transaction> items) { File.W...
2dcbe0064463335b243963eee3ea70549c866c99
C#
juhamlee/dicepoker
/Assets/Scripts/Data/PlayerInfo.cs
2.703125
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerData { public string name { set; get; } public int currentScore { set; get; } public ScoreData[] arrScoreData = null; public bool isAutoPlay { get; private set; } public void Initialize(...
e56086736824de00bc0c4bc100a56ed512a3161a
C#
insetfrostbyte/CodeSample
/CodeSampleCore.Core/Boggle/BoggleLibraryUtils.cs
3.5
4
namespace CodeSample.Core.Boggle { public static class BoggleLibraryUtils { /// <summary> /// Builds up the specified boggle dictionary from a list of words /// </summary> /// <param name="wordList">The source list of words</param> /// <returns>The boggleDictionary head ...
9102303767b03df0ef28aefa3a56c7c6b0840bc2
C#
201019-UiPath/Siles-LoayzaAndres-Project0
/StoreDB/Models/InvItem.cs
2.9375
3
namespace StoreDB.Models { /// <summary> /// Represents a product and its quantity at a store Location. /// </summary> public class InvItem : Item { /// <summary> /// ID for the Location associated with this InvItem. /// </summary> /// <value></value> public i...
b52b468ac4dc287d8af6558688b5b89f8413c1a4
C#
salman2184dev/dynamicwebsite1
/AlphasoftWebsite.Core/DAL/Repository/CompanyDetailRepository.cs
2.625
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; using AlphasoftWebsite.Core.DAL.Interface; using AlphasoftWebsite.Core.Model; namespace AlphasoftWebsite.Core.DAL.Repository { public class CompanyDetailRepository : ICompa...
08ad9dbe323ed13098476ce1285a89bbb7453e48
C#
phxswjjj/poe-cs
/poe.lib/ML/MLModelEngine.cs
2.65625
3
using Microsoft.Extensions.ObjectPool; using Microsoft.ML; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace poe.lib.ML { public class MLModelEngine<TSrc, TDst> where TSrc : class where TDst : class, new() { private readonl...
2278a5ec71061b4562691478ebaa472cfccc135e
C#
Jeremie-de-Vos/DORB-Logistics
/Code/DORB-Logistics/DORB-Logistics/Db.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MySql.Data.MySqlClient; using System.Windows.Forms; using System.Data; using System.Data.SqlClient; namespace DORB_Logistics { class Db { //Database-Variable private static...
e927c3fd41682330fc0b6bb9905020c00c9af105
C#
goofy5752/Tech-Module
/Technology Fundamentals Mid Exam - 10 March 2019 Group 1/Hello, France/Program.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; namespace Hello__France { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split('|'); double budget = double.Parse(Console.ReadLine()); double startBudge...
18e93de6ca9f8128168841f46af958736f2facc5
C#
ParagMeshram/leet-code-practice
/StrobogrammaticNumber/Program.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StrobogrammaticNumber { class Program { static void Main(string[] args) { } } public class Solution { private readonly Dictionary<char, cha...
e9a33b0ca2ad0bf51ee51fe70704b2e846b55b04
C#
Liromanz/OOPConsole
/TestingAppOOP/Writers/ConsoleLogWriter.cs
2.671875
3
using System; namespace TestingAppOOP { class ConsoleLogWriter: ILogWriter { public void LogInfo(string message) { Console.WriteLine($"{DateTime.Now:yyyy-MM-dd HH:mm:ss zzz}\tInfo\t{message}"); } public void LogWarning(string message) { Console....
2a15fcce6299d0d7fec401744d41875ee3b8c46a
C#
4elus/Estate1
/estate/estate/Test.cs
2.75
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; namespace estate { public partial class Test : Form { bool finish = f...
8caae4c604bbc916430ef9dcb36c739b4207a300
C#
melvinatuscano/SmartHomeBot
/SmartHomeBot/Dialogs/SmartHomeLuis.cs
2.578125
3
using Microsoft.Bot.Builder.Dialogs; using System; using System.Collections.Generic; using System.Linq; using Microsoft.Bot.Builder.Luis; using System.Threading.Tasks; using Microsoft.Bot.Builder.Luis.Models; using System.Net.Http; using System.Net.Http.Headers; using Newtonsoft.Json; namespace SmartHomeBot.Dialogs {...
37c6963a10f88731b1dd7c4ee476cee7ddd7ba74
C#
shendongnian/download4
/first_version_download2/602379-58783128-208899599-2.cs
2.515625
3
// using System.Security.Principal; // using System.DirectoryServices.AccountManagement; new PrincipalSearcher(new UserPrincipal(new PrincipalContext(ContextType.Machine))) .FindAll() .Single(a => a.Sid.IsWellKnown(WellKnownSidType.AccountGuestSid)) ...
3db4e0ba303d127bfbe1cb7b86fe119162ce1fc1
C#
Filipedc1/RgSite
/RgSite.Core/Extensions/UserExtensions.cs
2.53125
3
using RgSite.Core.Models; using System.Linq; using System.Security.Claims; namespace RgSite.Core.Extensions { public static class UserExtensions { public static bool IsAdmin(this ClaimsPrincipal user) => user.IsInRole(RoleConstants.Admin); public static bool IsCustomer(this Claims...
0a4dbc8214cbf6111a8d5b03e9bd1f3c2c6f1750
C#
sn3m/unity-doodle
/Assets/Scripts/PlayerMovement.cs
2.703125
3
using UnityEngine; public class PlayerMovement : MonoBehaviour { public Rigidbody rb; public float jumpForce; public float sidewaysForce; public float maxSpeed; // Update is called once per frame void Update() { float horizontal = Input.GetAxisRaw("Horizontal") * sidewaysForce; ...
f1a8c2eaed856dbe46b80821f5f98e942495d5b0
C#
fazaltech/WinForm_Model
/WinForm_Model/Program.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; using System.Windows.Forms; namespace WinForm_Model { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [ST...
6c86a0189d936db37d28344fc7fdfea6eb0194de
C#
gahantognoli/courseudemycsharp
/Avancado/Secao 2/ExemploTeste2/ExemploTeste2/Conta.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExemploTeste2 { public class Conta : ITributavel, IRecompensavel { public int Numero { get; set; } public double Saldo { get; set; } public Conta() { ...
1bf22c9420d4d9d069293711c97f74a7a04568d4
C#
DaveTCode/FreshdeskApiDotnet
/FreshdeskApi.Client/Solutions/Requests/CreateCategoryRequest.cs
2.859375
3
using Newtonsoft.Json; namespace FreshdeskApi.Client.Solutions.Requests { /// <summary> /// Contains the information required to create a category /// /// c.f. https://developers.freshdesk.com/api/#solution_category_attributes /// </summary> public class CreateCategoryRequest { /// ...
4790dc6854052d60ab3e35f348fc5a044fc5c299
C#
AnnaLeukhina/365days_for_coding_cs
/Quest_001/PlayerVSPlayer/Program.cs
3.421875
3
using System; namespace PlayerVSPlayer { class Program { static void Main() { while (true) //Для повторного запуска игры без перезапуска программы { Console.WriteLine("ДОБРО ПОЖАЛОВАТЬ! " + "\nИгра рассчитана на 2-х игроков. Ниже вве...
3a3f57dceaf66438fc6e18dbadc39269341baa82
C#
KirilZafirov/DrawingFormsWithDesignPatterns
/MultiplePatternsHomework/Shapes/ConcreteShapeFactory.cs
3.125
3
using MultiplePatternsHomework.Shapes.Abstractions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MultiplePatternsHomework.Shapes { public class ConcreteShapeFactory : ShapeCreatorFactory { public override AbstractShape Ge...
61a9f403373de16512e2c01a91f872d10762ce55
C#
kyleb4020/GoMoney
/FinancialPortal/Helpers/IdentityHelpers.cs
2.71875
3
using FinancialPortal.Models; using System; using System.Collections.Generic; using System.Linq; using System.Security.Principal; using System.Web; namespace FinancialPortal.Helpers { public static class IdentityHelpers { private static ApplicationDbContext db = new ApplicationDbContext(); //...
727e62e512febbe3c919e1902e923dc37a4ce9d5
C#
nkruger01/Alura
/T0 - AprendendoCSharp/4-ConversoesEOutrosTiposNumericos/Program.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _4_ConversoesEOutrosTiposNumericos { class Program { static void Main(string[] args) { //double ocupa 64bits double salario = 1200....
8ef6c0952501be287e77947fcbf85d0de1415884
C#
antonyzudov/algPractice
/Business/Sorting/findMedian.cs
3.453125
3
using System.Collections.Generic; using System.ComponentModel; using System.Linq; namespace Business { [Description("https://www.hackerrank.com/challenges/find-the-median/problem")] public static class FindMedian { public static int? GetMedian(IReadOnlyCollection<int> arr) { if...
d1497e68d5dae3113d974f3dfe9779d878dd3030
C#
spencerr/UdemyAnimeList
/src/UdemyAnimeList.Domain/Common/PaginatedList.cs
3.0625
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UdemyAnimeList.Domain.Common { public class PaginatedList<T> : List<T> { public int Index { get; } public int TotalPages { get; } ...
3b5bdd58adfe8870f256bea3804d33ac87bbedd3
C#
RichieHuezca/Practica-DB4O-VS
/ProdAcademica/Bd/Clases/Program.cs
2.5625
3
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Bd { class Program { static void Main(string[] args) { Util db = new Util(); // Tesis ProductoTesis = new Tesis("Mi mundo", new Estudiante("51...
76a0527f70b996327d024ccf405351ad4a6a025a
C#
CreateLab/vk
/VkNet/Model/Country.cs
2.984375
3
using System; using VkNet.Utils; namespace VkNet.Model { /// <summary> /// Информация о стране. /// </summary> [Serializable] public class Country { /// <summary> /// Идентификатор страны. /// </summary> public long? Id { get; set; } /// <summary> /// Название страны. /// </summary> public stri...
e76276f6ddae6ca2e56839c32fa704eea411dd26
C#
hungvv6574/CMSSolutions
/CMSSolutions/Web/UI/JQueryBuilder/JQueryFunction.cs
2.59375
3
using System.Text; namespace CMSSolutions.Web.UI.JQueryBuilder { public class JQueryFunction : JQuery { private readonly string name; private readonly string[] arguments; private readonly JQuery[] handlers; public JQueryFunction(params JQuery[] handlers) { ...
e168c1f53e591d1fd230ab483bc91d23c4378164
C#
shendongnian/download4
/code10/1801603-52919245-184223138-2.cs
3.296875
3
class Program { static void Main(string[] args) { int instances = CheckValues("Number of instances"); int numofIpv4 = CheckValues("number of ipv4"); int numofIpv6 = CheckValues("number of ipv6"); //etc } private static int Check...
98cd14e1fa85f05a3e8833ceab307094d5089c2a
C#
aliciaCarlson/Carlson_Alicia_Portfolio
/Carlson_Alicia_jsPractice/C# Projects/Project1_MadLibs_C#/Velasco_Alicia_MadLibs/Validation.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Velasco_Alicia_MadLibs { public class Validation { public static float GetFloat(string input, string message = "Please enter a vaild number: ") { ...
2616eab59aa4b6bcbb2dbdd3f10e341809022517
C#
liamwhan/CoinSpotDotNet
/CoinSpotDotNet/Responses/Order.cs
2.890625
3
using CoinSpotDotNet.Common; using System.Text.Json.Serialization; namespace CoinSpotDotNet.Responses { /// <summary> /// Base Class for Order Details /// <para> /// See <see href="https://www.coinspot.com.au/v2/api#openorders"/> /// </para> /// </summary> public abstract class Order {...
33e825d18b9d828905e51e21483c43fab3769c0d
C#
yangar/Trady
/Trady.Analysis/Indicator/SimpleMovingAverage.cs
2.609375
3
using System.Linq; using Trady.Core; using static Trady.Analysis.Indicator.SimpleMovingAverage; namespace Trady.Analysis.Indicator { public partial class SimpleMovingAverage : IndicatorBase<IndicatorResult> { public SimpleMovingAverage(Equity equity, int periodCount) : base(equity, periodCount) ...
55b891bc3b9f32e72a5f6de2b2c180443d862905
C#
Washi1337/AsmResolver
/src/AsmResolver.PE/Certificates/CustomAttributeCertificate.cs
2.703125
3
using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using AsmResolver.IO; namespace AsmResolver.PE.Certificates { /// <summary> /// Represents an attribute certificate that contains a custom or unsupported certificate type or file format. /// </summary> [DebuggerDisplay("{Typ...
a7a6d54893d5f09588ad49a36004303e75bde2d6
C#
coolFangjun/ClownFish.HttpServer
/src/ClownFish.HttpServer/Authentication/GenericIdentity.cs
2.890625
3
using System; using System.Security.Principal; namespace ClownFish.HttpServer.Authentication { /// <summary> /// 一个简单的IIdentity实现类 /// </summary> public class GenericIdentity<TUser> : IIdentity where TUser : class, IUser, new() { private TUser _user; /// <summary> /// 与用户信...
a25ac896836423b50a8e039c7f65b62f76299378
C#
TanadBandodkar/Library-Management-System
/WindowsFormsApp1/AddBooks.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using WindowsFormsApp1; namespace WindowsFormsApp1 { public partial cla...
0f91a0f84f8f11fbcc23e22478cca6004044107d
C#
AmiChaib/WeatherApp
/Menu.cs
2.5625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Net; using System.Text; using System.Windows.Forms; using Newtonsoft.Json; namespace WeatherApp { public partial class Menu : Form { st...
032d113c3d1208d7b1e38c010d91ee3460e974b5
C#
marijngoedegebure/NarrativeWorldCreator
/GameSemantics/Content/GameMaterial.cs
2.90625
3
/************************************************************************** * * GameMaterial.cs * * Jassin Kessing * Computer Graphics & CAD/CAM Group * TU Delft * 2010-2011 * * This program is free software; you can redistribute it and/or modify it. * ****************************************************...
ec3d1a5e1caf4527cbbbc52415cccbe6ff5c87d9
C#
Inlic/CSharpContracted
/Repositories/ContractorsRepository.cs
2.90625
3
using System.Collections.Generic; using System.Data; using System.Linq; using CSharpContracted.Models; using Dapper; namespace CSharpContracted.Repositories { public class ContractorsRepository : Irepository<Contractor> { private readonly IDbConnection _db; public ContractorsRepository(IDbConnection db) ...
19d7a5d4700f13567e357a9d92522f9d27096484
C#
daVinay/AIT_Library_System
/AITLibrary/BusinessLogic/BookLogic.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Example; namespace BusinessLogic { public class BookLogic { #region Set Variable //Set the different variable who are going to be used for storing the datatable in the dataset private BookDAO _b...
156998be0d4e8e7d5a17c12679767d54c914f026
C#
maruitao123/git3
/DAL/DAL/DbBase/ExecuteQuery.cs
2.640625
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using DAL.abstractClass; using Renci.SshNet; using MySql.Data.MySqlClient; namespace DAL.DbBase { abstract class ExecuteQuery : DbBaseInterface { public bool I...
c805d3c31e2278a1b33efa6aab93bf73df81fbfb
C#
dyedefRa/HelloXamarin
/FireBaseXamarin/FireBaseXamarin/FireBaseXamarin/Views/RoomListPage.xaml.cs
2.53125
3
using FirebaseXamarin.Helper; using FirebaseXamarin.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace FirebaseXamarin.Views { [XamlCompilation(XamlCompilationOptions.Compile)] pub...
ad113d2422d8b6943495a23cf7ef09ba73d19a51
C#
davidyush/CSharp
/Less6/Less6_exc2_Yushkov.cs
3.546875
4
using System; using System.Collections.Generic; namespace Less6_exc2_Yushkov { class Program { static void Main(string[] args) { Student Soffy = new Student("Soffy", 15, true); Student Nikola = new Student("Nikola", 21, false); Student Daniel = new...
4c0f46145d5c36451b55282f1ee27728d0bc3819
C#
kahamilton3/csharp-web-dev-lsn5unittesting-studio
/BalancedBracketsTests/BalancedBracketsTests.cs
2.625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using BalancedBracketsNS; using System; namespace BalancedBracketsTests { [TestClass] public class BalancedBracketsTests { // TODO: Add tests to this file. [TestMethod] public void EmptyTest() { A...
a8d63cd427de33b81b24924575f25be772f86ba0
C#
MohitJain02/CSharpTips
/TipsAndTraps/TipsAndTraps/GenericMethodUsingImplicitTyping/DelegateDictionary/RemovalOfIfElseController.cs
3.546875
4
using System; using System.Collections.Generic; using System.Diagnostics; namespace GenericMethodUsingImplicitTyping.DelegateDictionary { public enum Action { Save, Back, Next, Forward } public class RemovalOfIfElseController { private Dictionary<Action, Fu...
fd290b564a286c9ec4fb8b451836929b0b9c30a9
C#
tarsilabcarvalho/Linguagens-AulasC
/Lista05/Exercício02/Exercício02/Form1.cs
3.171875
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 Exercício02 { public partial class Form1 : Form { public Form1()...
35ccfe29ec66a110d2b7394d2a8a34b7e3fd6c26
C#
itsChris/Sample-EF-RelationsApp
/Sample-EF-RelationsApp/Program.cs
3.296875
3
using System; namespace Sample_EF_RelationsApp { class Program { private static DemoDataContext db = new DemoDataContext(); static void Main(string[] args) { CleanDatabase(); AddPerson(); AddCustomTask(); Console.WriteLine("Press any key..."...
08ab9367daaeb1a87ed5ac84945be5e9eb59997a
C#
DaryaBattalova/BankingSystem
/BankingSystem/Controllers/BankController.cs
2.515625
3
using BankingSystem.Models.BankManagement; using BankingSystem.Services.BankManagement; using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Web.Http; using System.Web.Http.Description; namespace BankingSystem.Controllers { [RoutePrefix("api/v1/banks")] // [Authorize(Roles...
af236b9e1166a56b5ffebb547317289449609cce
C#
Anabolkick/EF-core-practice
/People EF Core/User.cs
2.90625
3
using System.Collections.Generic; namespace People_EF_Core { public class User { public User(string login, string password, byte[] salt) { Login = login; Password = password; Salt = salt; Companies = new List<Company>(); } public...
b7420e4e88c6d28481ec6ed37fbdeb99e1a08fa4
C#
tvdewiel/SolutionExceptionsVoorbeeld
/OrderSysteem/Adresbeheerder.cs
2.90625
3
using System; using System.Collections.Generic; using System.Text; namespace AdresSysteem { public class Adresbeheerder { public List<Adres> Adressen = new List<Adres>(); public void VoegAdresToe(Adres adres) { if (Adressen.Contains(adres)) throw new AdresbeheerderException...
ff8f80b9c3fab2a8c86dfa5ffd67f2fd8bdf79de
C#
Dimitriann/OldExamDNP
/ExOld/WebApplication/Data/AuthorServiceSQLITE.cs
2.671875
3
using System.Collections.Generic; using System.Threading.Tasks; using API.Models; using Microsoft.EntityFrameworkCore; namespace API.Data { public class AuthorServiceSQLITE : IAuthorService { private BookStoreDbContext StoreDbContext; public AuthorServiceSQLITE(BookStoreDbContext bookStoreDbC...
d57494024c4d0e3e703d81d61e76ae0fa0102c68
C#
shendongnian/download4
/latest_version_download2/36415-5965630-12888090-2.cs
2.859375
3
[STAThread] public static void Main() { int VB$t_i4$L0 = GetCount(); for (int index = 1; index <= VB$t_i4$L0; index++) { Console.WriteLine("For {0}", index); } Console.ReadKey(); }
247edd34b12f04ab5cddbd34201d1919bd1e8044
C#
johnmensen/TradeSharp
/src/TradeSharp.Client/MainForm.DragDrop.cs
2.59375
3
using System.Drawing; using System.Linq; using System.Windows.Forms; using TradeSharp.Client.Controls; namespace TradeSharp.Client { /// <summary> /// Реализация Drag & Drop (обработчиками Move - ResizeEnd) /// </summary> public partial class MainForm { /// <summary> /// пятачки с ...
dceb6c5b7ac8849fb22e83f07e3952f132f6273f
C#
IndproTraining/CodeGen
/App_Code/RegisterUser.cs
2.625
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; /// <summary> /// Summary description for RegisterUser /// </summary> public class RegisterUser { public RegisterUser() { // // TODO: Add constructor logic here ...
47ca119f2ecc1e74422f38acf068f1b8c97a3271
C#
vzhukovsky/IP
/ImagesProcessing/SecantMethod/SecantMethod/Services/Priznak.cs
2.5625
3
using System.Collections.Generic; using System.Linq; using SecantMethod.TablePriznakov; using SecantMethod.TableSign; namespace SecantMethod.Services { public class Priznak { public static List<PriznakTable> GetPriznaks(List<PriznakTable> priznakTables, List<SignTable> signApponentsTables)...
4639d560d21a97bbe93b98a208ea8753f88a5951
C#
kylegessel/sprintfinity3902
/Sprintfinity3902/Sprites/Items/MovingSwordVerticalSprite.cs
2.71875
3
using Microsoft.Xna.Framework.Graphics; namespace Sprintfinity3902.Sprites { public class MovingSwordVerticalSprite : AbstractSprite { public Texture2D Texture { get; private set; } private const int SWORD1_POS_X = 1; private const int SWORD1_POS_Y = 154; private const int SWOR...
fcb688ddbf582d066a8e342ab6d3737cd48742d4
C#
IPL-ESTG-EI-SI/2015-16
/Worksheet4-Exercise2.1/Form1.cs
3
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Exercise2._1 { public partial class Form1 : Form {...
9aab5d92b1e39efd8488f92bb003f1ccab63a1a4
C#
Ahets/Algorithms
/Sorting/SortAlgorithms.Core/ListSort.cs
2.828125
3
using System.Collections.Generic; using System.Linq; namespace SortAlgorithms.Core { public class ListSort : ISortAlgorithm { public int[] Sort(int[] arr) { var list = new List<int>(); list.AddRange(arr); list.Sort(); return list.ToArray(); ...
6170dd90f940a40c295c0b947d0d22df4d2f9612
C#
danilovich1214/-_basic
/ProgrammingBasics/SearchLastFile/ResourcesUtil.cs
2.6875
3
using System; using System.IO; namespace SearchLastFile { public class ResourcesUtil { public static string BinPath { get; private set; } public static string DataFolder { get; private set; } static ResourcesUtil() { BinPath = Directory.GetParent(Directory....
db5a75f39a979125a2542c51ef147c4aa32f6dfb
C#
Demertal/AagErp
/AagErp/ModelModul/Models/MovmentGoodType.cs
2.515625
3
using System.Collections.Generic; namespace ModelModul.Models { public class MovmentGoodType : ModelBase<MovmentGoodType> { public MovmentGoodType() { MovementGoodsCollection = new List<MovementGoods>(); } private int _id; public int Id { ...
a8e2886c34c161a1425e26e699232bba3ee45d5e
C#
Syrrianyl/EDDI-French
/Events/EmpirePromotionEvent.cs
2.859375
3
using EddiDataDefinitions; using Newtonsoft.Json; using System; using System.Collections.Generic; namespace EddiEvents { public class EmpirePromotionEvent : Event { public const string NAME = "Empire promotion"; public const string DESCRIPTION = "Triggered when your rank increases with the Emp...
8c3240e764363005ffe06f965375124d49629722
C#
jgeorge247/Midterm_GC_CarLot
/Midterm_GC_CarLot/CarLot.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Midterm_GC_CarLot { class CarLot { public static List<Car> CarList() { List<Car> cars = new List<Car>(); cars.Add(new Car("Honda", "CR-V", 2018,...
c6c8e5e18d18c59f7fedcea26dd4ffa942018aaf
C#
Serbenko/Day3
/Polynomial/PolynomialClass.cs
3.296875
3
using System; using System.Linq; using Configuration; namespace Polynomial { public sealed class PolynomialClass { private static double epsilon; static PolynomialClass() { epsilon = 0.00001; //epsilon = double.Parse(ConfigurationManager.AppSettings["epsilon"])...
435f0a957909b334500735e430ca1af2ece0422b
C#
I-Hudson/Race-Track-Generator
/Assets/IRP/Scripts/Voronoi/vVertex.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /* * Vertex class. Stores all needed information about each vertex within the * voronoi diagram. */ public class vVertex { //position of this vertex public DVector2 Site; //ID for this cell( Optional ) public int ID; ...
5bb2bc1699c43cbaf3d7b286ca0714a1fd562d6d
C#
lchoros/StringsExercises
/MultiplyBigNumber/Program.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MultiplyBigNumber { class Program { static void Main(string[] args) { string num1 = Console.ReadLine(); int num2 = int.Parse(Console.ReadLine())...
b5618f5dfa20caba25e7d6c22258b23b9f130912
C#
shendongnian/download4
/code8/1405407-38169656-121822462-2.cs
3.328125
3
string searchText = "text";//Hardcoded for the sake of example List<string> items = new List<string>(); items.Add("text 1"); items.Add("hello"); items.Add("text 2"); foreach(string item in items) { if(item.StartsWith(searchText)) { System.Diagnostics.Debugger.Brea...
40d89ad9cd77e53f6eef50528e1e7100aaebbd32
C#
KevMorelli/Courses
/2017/02 - .NET Lab/Clase 04 Cola y Pila/21-11Practica/Day4/Profesional.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Day4 { public abstract class Profesional : Persona { public string Dni { get; set; } public string Experiencia { get; set; } public abstract int BaseSueldo { ...
9fae7ea7c0c6cccb61860e49f35a7f0f4e028210
C#
4x4-Jerry/BaiKetThucHocPhan
/QuanLyDuAn_K70/BoPhanDAL.cs
2.59375
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace QuanLyDuAn_K70 { class BoPhanDAL { DataConnection dc; SqlDataAdapter da; SqlCommand cmd; public BoPhanDA...
7701d65aa312a3665569d14950890414badc671e
C#
crhodes2/Neural-Net-Image-Recognition
/CST 407 AI - Assignment 3/Program.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace CST_407_AI___Assignment_3 { class Program { static void Main(string[] args) { // create the net itself Net theNet = new Net();...
7bb6660a5cfe55807e5fa3b9ab5cbb44e6f01288
C#
FrayxRulez/Charts
/Charts/Data/DoubleLinearChartData.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Data.Json; namespace Unigram.Charts.Data { public class DoubleLinearChartData : ChartData { public float[] linesK; public DoubleLinearChartData(JsonObject jsonObje...
566dd22ea21c87d7cf80739b430d24b521982f92
C#
WaifuShork/Luxembourg
/src/Expressions/BinaryExpression.cs
3.046875
3
namespace Luxembourg.Expressions { public class BinaryExpression : Expression { public BinaryExpression(Expression left, Token op, Expression right) { Left = left; Operator = op; Right = right; } public Expression Left { get; } public...
a03ba0d50342bf4d2ad510983f1e1d642a87d965
C#
ydrobot/WordSearch
/src/Utils/MigrationData.cs
2.9375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Dapper; using Newtonsoft.Json; using Npgsql; namespace Utils { public static class MigrationData { public static async Task MigrationDataAsync(string connectionDbString, string pathJ...
bd921f44dc4baafda2f037999aca56e02c52b949
C#
AndreKraak/corefxlab
/src/System.Numerics.Matrices/System/Numerics/Matrix2x3.cs
3.265625
3
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Runtime.InteropServices; namespace System.Numerics.Matrices { /// <summary> /// Represents a matrix of double precision floating-point values de...
f1973cd121dd603fa054f0efdfe0f0db5d2ea869
C#
objuan/petrorov
/app/App.Petrorov/Core/MPoint.cs
3.015625
3
using System; using System.Linq; using System.Drawing; using System.Collections.Generic; using Newtonsoft.Json; using System.Drawing.Drawing2D; namespace App.Petrorov { //public struct Point //{ // float _x; // float _y; //} /// <summary> /// Vector2D - A value typ...
6d90bc54172d0ad6dd9c35518991077268356335
C#
everrosales/MakeMIT-2015
/New Unity Project/Assets/LeapMotion/Scripts/Utils/FixedCube.cs
2.515625
3
using UnityEngine; using System.Collections; using System.IO.Ports; using System; public class FixedCube : MonoBehaviour { //public static SerialPort sp; // Use this for initialization void Start () { //sp = GrabbingHand.sp; } // Update is called once per frame void Update () { } void On...
7bc86915fe01c2c9719d2603ef6e39de461484a8
C#
PeterPartridge/PlayingwithExcelDLL
/EcxelTest/EcxelTest/WebForm1.aspx.cs
2.546875
3
using Microsoft.Office.Interop; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Excel = Microsoft.Office.Interop.Excel; namespace EcxelTest { public partial class WebForm1 : System.Web.U...
30d6b4285768b79df7ce0ef4776b8c635bb5f3aa
C#
Pinotom/BibApp
/DataAccess/Lezen.cs
3.0625
3
using System; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization.Formatters.Binary; namespace DataAccess { public class Lezen { public static List<T> ItemsInCollectie<T>() { List<T> itemsInCollectie = new List<T>(); try { ...
67ede94a40fa899380a5463817cf98a086e8e30b
C#
vladmkn/GitHub
/AkkaTest/AkkaTest/Program.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Akka; using Akka.Actor; namespace AkkaTest { public class Greet { public Greet(string who) { Who = who; } public string Who { get; private set;...
7bd8da025c011f41d7bda37e470221727fcd2da3
C#
shendongnian/download4
/code1/47365-7939908-121235918-2.cs
3.28125
3
public static Bitmap cropAtRect(this Bitmap b, Rectangle r) { Bitmap nb = new Bitmap(r.Width, r.Height); Graphics g = Graphics.FromImage(nb); g.DrawImage(b, -r.X, -r.Y); return nb; }
0c4080ba173c6c83f6690a7303048e61efe78491
C#
chopperaddict/ColorSelection
/Converts/UniversalValueConverter.cs
2.84375
3
using System; using System . Globalization; using System . Windows; using System . Windows . Data; using System . Windows . Media; namespace ColorSelection . Converts { /// <summary> /// Receives a (typically color) Resource name as a string /// and returns the relevant value as a brush if foud ...
4b8ab4b412ce20750de36db52df3cbfa65f86bc7
C#
Buzzard765/SlidingPuzzleGame
/Ice Maze Game - Demo/Assets/Script/NPCDialogue.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class NPCDialogue : MonoBehaviour { public CharacterObject CharacterDialogues; public string NPCName; public Queue<string> NPCSentences = new Queue<string>(); public string CurrSentence; ...
7b6d3de5ad1371f6feca56b404b0a5914836bb82
C#
kacerekz/KIV-ZPOS
/MeshAnimation/Clustering/KMeans.cs
2.703125
3
using System; using System.Collections.Generic; using MathNet.Numerics.LinearAlgebra; using OpenTkRenderer.Rendering.Meshes; using OpenTkRenderer.Structs; namespace MeshAnimation.Clustering { /// <summary> /// K-means clustering /// </summary> class KMeans : IClustering { /// <summary> Num...
86b07c89bd1895a7ddb069f9234544a29e58af2f
C#
gustavogodinho/asp-net-core.DapperContrib.API
/asp-net-core.DapperContrib.API/Validators/CommentValidator.cs
3
3
using asp_net_core.DapperContrib.API.Models; using FluentValidation; namespace asp_net_core.DapperContrib.API.Validators { public class CommentValidator : AbstractValidator<Comment> { private const string ALERTA_NOME = "Informe um 'Nome' com tamanho entre 5 e 50 caracteres"; private const str...
43c8f48eadef6bace4b172ea4e03b0b147167d13
C#
fredericaltorres/Azure-VM-for-docker-and-visual-studio
/DotNetCore_Cloud_Docker_Dvt/fDotNetCoreContainerHelper/RuntimeHelper.cs
2.671875
3
using Microsoft.Extensions.Configuration; using System; using System.Text; using System.Linq; using System.IO; using System.Reflection; using System.Collections.Generic; using System.Collections; namespace fDotNetCoreContainerHelper { public class RuntimeHelper { private static string ListToString(Lis...
cb8183f4b8f00b05fcefe335e839baa73fab32a8
C#
henon/pythonnet_netstandard
/src/runtime/pynumber.cs
2.953125
3
using System; namespace Python.Runtime { /// <summary> /// Represents a generic Python number. The methods of this class are /// equivalent to the Python "abstract number API". See /// PY2: https://docs.python.org/2/c-api/number.html /// PY3: https://docs.python.org/3/c-api/number.html /// for ...
2a46690bbd6f796d8063d5a37474af908182ba8b
C#
EliteSalad/Capture-the-Flag
/AI-Assignment-Main-master/AIAssignment/Assets/Scripts/AI Support/AgentData.cs
2.59375
3
using System.Collections.Generic; using UnityEngine; // Add new AI moods here as needed public enum AiMood { Idle, Attacking, Fleeing, Winning, Losing, Dead }; /// <summary> /// Stores significant adta about the AI agent, this can also be used to evaluate an enemy AI's strength /// A few utility methods are provided...
d539bf4f5f28012ccb1149e1a20310ec6ad30aca
C#
lakylekidd/microservices-sample-project
/Ordering.API/Application/CommandValidations/CancelOrderCommandValidator.cs
2.546875
3
using FluentValidation; using Microsoft.Extensions.Logging; using Ordering.API.Application.Commands; namespace Ordering.API.Application.CommandValidations { /// <summary> /// The cancel order command validator /// </summary> public class CancelOrderCommandValidator : AbstractValidator<Cancel...