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
633cc61dfa41f70413116a28b8647ccbd5c198be
C#
yokandro/number_game
/number_game/Program.cs
3.875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace number_game { class Game { static int guess = 0; static int target = 5; static string Input = ""; static Random RandomNumber = new Random(); pu...
4f1dcffc3ae1cb1e94ab052d2c5cd8604834de4b
C#
PatrykOlejniczak/WPK.TransportSystem
/Data.DAL/Migrations/Seed/SeedQuestionnaire.cs
2.65625
3
using System; using System.Collections.Generic; using System.Data.Entity.Migrations; using System.Linq; using Data.Core.Repository; using Data.Core.UnitOfWork; using Data.Entities; namespace Data.Core.Migrations.Seed { public class SeedQuestionnaire : ISeedMethod { private readonly DataContext _dataCo...
447723e50e5b4270ff89d1f6efbc0d123e229853
C#
Egor92/TrumpSoftware-Foundation
/TrumpSoftware.Shared/Converters/DoubleToGridLenghtConverter.cs
2.53125
3
using System; #if WPF using System.Windows; using CultureArgumentType = System.Globalization.CultureInfo; #elif WINRT using Windows.UI.Xaml; using CultureArgumentType = System.String; #endif #if WPF namespace TrumpSoftware.Wpf.Converters #elif WINRT namespace TrumpSoftware.WinRT.Converters #endif { public class ...
7c7a4643018b4c6bc9adbe433f397cc72b9c014b
C#
benny1337/ocr
/businesscardapp/businesscardapp/Communicator/CardCommunicator.cs
2.890625
3
using models; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace businesscardapp.Communicator { public class CardCommunicator { public async Task<BusinessC...
c10dd63734513ecab2e16f51dabda227f59bfb24
C#
kupokev/ComServer
/src/OnyxCore/Server/Log.cs
3.296875
3
using System; namespace OnyxCore.Server { public class Log : IDisposable { // Planning on changing all the Console.WriteLine commands to log in database eventually. public Log() { } /// <summary> /// Dispose of current instance /// </summary> ...
e2cef9486c872625b32b9a5c9d08813fe113de2b
C#
HippoT/ProAspCore
/src/EssentialCSharpFeatures/Controllers/HomeController.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using EssentialCSharpFeatures.Models; using Microsoft.AspNetCore.Mvc; namespace EssentialCSharpFeatures.Controllers { public class HomeController : Controller { bool FilterByPrice(Product p) { ...
0e024fe3b9675846dffde7fe9f3a624de9bcae03
C#
happy-potato18/workers-registration-mvc-app
/WorkersRegistrationApp/WorkersRegistrationApp/WorkersRegistrationApp/Domain/SqlDataFlow.cs
3.15625
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Web; namespace WorkersRegistrationApp.Domain { /// <summary> /// The <c>SqlDataFlow</c> class. /// Contains methods for passing requests and getting responses from database /// </summary> p...
d528510134de7af48e8244ad9fe8011d466d9a9b
C#
gordiig/Hexa-C
/MiniC/Generators/Expressions/BinaryOperators/InclusiveOrGenerator.cs
2.53125
3
using Antlr4.Runtime; namespace MiniC.Generators.Expressions.BinaryOperators { public class InclusiveOrGenerator: BaseCodeGenerator { public override AsmCodeWriter GenerateCodeForContext(ParserRuleContext context, AsmCodeWriter currentCode) { var inclusiveOrExprCtx = context as Mini...
7de4872c7ec60b71917fa90dc1c62135cfef2a33
C#
lisiara/Practice-2019
/BikersBlog/RealBlog/Models/DBModel/User.cs
2.609375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace RealBlog.Models { public class User { [Key] public int Id { get; set; } ...
3bb9b97f43f15dd137ebca550c4e69dd303d5ff0
C#
yuchaoonline/Cartisan
/Cartisan/Infrastructure/AssertionConcern.cs
3.15625
3
using System; namespace Cartisan.Infrastructure { public static class AssertionConcern { public static void Equals(object object1, object object2, string message) { if (!object1.Equals(object2)) { throw new InvalidOperationException(message); } } pu...
51eb56d9b82ceab04bad69c1e3d94ce4cf9c360e
C#
jjeffery/SecurePay
/src/SecurePay.Tests/YearMonthTests.cs
2.890625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using SecurePay.Model; namespace SecurePay.Tests { [TestClass] public class YearMonthTests { [TestMethod] public void Parse() { var testData = new[] { new {Text = "1/1", Month = 1, Year = 20...
3a2d0f470ab11ae92ce6e5d351b829a071a518a9
C#
lulzzz/Iris
/DashboardBackend/Data/UpdatesRepository.cs
2.875
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using Common; using DashboardBackend.Models; using MongoDB.Driver; using MongoDB.Driver.Linq; namespace DashboardBackend.Data { public class UpdatesRepository : IUpdatesRepository { private readonly IMongoCollection<UpdateEn...
c3235c5b1381c1be940b82a4361dff72048a3ab4
C#
tasadar2/RpgMakerEncoder
/RpgMakerEncoder/Conversion/JTokenConverter.cs
2.984375
3
using System.Linq; using Newtonsoft.Json.Linq; using RpgMakerEncoder.Ruby; namespace RpgMakerEncoder.Conversion { public class JTokenConverter : IConvert<RubyToken, JToken> { public JToken Convert(RubyToken ruby) { switch (ruby.Type) { case RubyTokenType...
dc67f158ed26ccd047adf8f586da0f529bbf8c38
C#
Tarak-Chandra-Sarkar/DesignPatternsCode
/PasswordChecker/PasswordChecker/Rules/PasswordCannotContainUsername.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace PasswordChecker.Rules { public class PasswordCannotContainUsername : IPasswordRule { public bool BreakOnFailure { get { return false; } } ...
64b4c375715eeccd96ed639e6f9441625bf7d911
C#
jassbhatia0786/video_rental
/video_rental/video_rental.cs
2.578125
3
using System; using System.Data; using System.Windows.Forms; namespace video_rental { public partial class video_rental : Form { database_operation f = new database_operation(); public video_rental() { InitializeComponent(); } private void addmoview_button_...
d5b6680968ad37e951adc78f2df44866e08995d1
C#
GSIL-Monitor/hotel
/Mzl.Model/Proxy/CTripHotel/RoomDesInfo/LengthOfStay.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mzl.EntityModel.Proxy.CTripHotel.RoomDesInfo { public class LengthOfStay { /// <summary> /// 连续入住时长促销: /// Max-最大连住时长; /// Min-最小连住时长; /// </sum...
aab636e378bb4b430e125132d7bb7ed48af7b48a
C#
rcarubbi/Carubbi.AuthenticationManager
/Carubbi.AuthenticationManager/FormBasedAuthenticationManager.cs
2.75
3
using System; using System.Text; using System.Web; using System.Web.Security; namespace Carubbi.AuthenticationManager { /// <inheritdoc /> /// <summary> /// Gerenciador de Autenticação baseado na abordagem do Asp.net Form based Authentication /// </summary> public class FormBasedAuthenticationMana...
e8d0d2d273190a62a93c6c56a8e4c6e410689184
C#
tavisca-ragul/Data-Structure
/DataStructure/LinkedListOperations.cs
3.875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataStructure { class LinkedListOperations { private LinkedList _List; private int _Data, _Position; public LinkedListOperations() { _List =...
5a15e38dcab325839a244b7857643f7c114b13fe
C#
Eden-AQI/Eden-AQI
/Server/Eden.Web.Framework/WebTools.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Eden.Web.Framework { public class WebTools { public static void CopyProperties(object from, object to, bool excludeNull = true) { var fromPs = from.GetType(...
2a95b7cd1d9674ec37d4089e64519087acd1cb3d
C#
merklol/C-sharp-Basics
/main/apps/Loops.cs
3.984375
4
using System; //6. Write a program, the running result of following program is as follows(using looping) // 5 // 666 // 77777 // 8888888 public class Loops : Application { private string line1 = ""; private string line2 = ""; private string line3 = ""; private string line4 = ""; public Lo...
58ebc8e85cf3356c89346da667467e801e9391a4
C#
wlniao/xcore
/Wlniao.XCore/Extend/Type/StringExtend.cs
3.21875
3
using System; using System.Text; using System.Text.RegularExpressions; namespace Wlniao { /// <summary> /// String类常用方法扩展 /// </summary> public static class StringExtend { /// <summary> /// 是否为空 /// </summary> /// <param name="input"></param> ...
76caaf9e1e1aacdcc1039c4c41e21a92d63be68e
C#
Magofna68/AnimalShelter.Solution
/AnimalShelter/Migrations/20210611192048_SeedData.cs
2.640625
3
using Microsoft.EntityFrameworkCore.Migrations; namespace AnimalShelter.Migrations { public partial class SeedData : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DeleteData( table: "Pets", keyColumn: "P...
18ba6897e825a0f91920e3ec7dc8381674eb0ae1
C#
OliaSednev/CodeValue_HW
/Backgammon_OliaSednev/BackgammonLogic/GameLogic.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BackgammonInterfaces; using BackgammonImplementation; namespace BackgammonLogic { class GameLogic: IGameLogic { public IBoard GameBoard { get; set; } public IPlayer X_Playe...
a35e26709fd7a8c3c0a5cd66b773aaa5df9c6104
C#
thePurpleMonkey/CS586_Train_Database
/CS586_Train_Database/Registration_form.cs
2.65625
3
using Npgsql; using System; using System.Globalization; using System.Text.RegularExpressions; 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; namespa...
bf9329b9441ca027dff417746325dace9b64d59b
C#
elunadanilo/FrontEndCrud
/PersonaFrontEnd/PersonaFrontEnd/Services/PersonaService.cs
2.65625
3
using Newtonsoft.Json; using PersonaFrontEnd.Dao; using PersonaFrontEnd.Models; using PersonaFrontEnd.Utils; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using System.Web; namespace Pers...
5f181248ee6198f5e5e625daac24072dccc5386d
C#
garyemerson/jim_and_his_lan_party
/jim_and_his_lan_party.cs
3.09375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; class ConnectedCompenent { // game -> num players for that game in this conn comp public Dictionary<int, int> NumPlayersByGame; // player in this conn comp public List<int> players; } class Solution { static void ...
a56495bec2a0dd418b4895f46d0b6c9e2c738134
C#
ChesterTheCheese/physical
/physical/math/Vector3f.cs
2.8125
3
using System; namespace physical.math { public class Vector3f : VectorFloat { public const int SIZE = 3; public const int OX = 0, OY = 1, OZ = 2; public float X { get { return Data[0]; } set { Data[0] = value; } } public float Y { get { return Data[1]; } set { Data[1] = value; } ...
19d86e61f41944815165b5120b01309322b497b7
C#
nielsbakkers/Software
/Euro-Dollar-Converter/Euro-Dollar-Converter/Form1.cs
2.859375
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 Euro_Dollar_Converter { public partial class Form1 : Form { publ...
203230f5ea53cc89affa98f49c3acbc566ff5de1
C#
ctcb57/lemonade_Stand
/lemonade_Stand/lemonade_Stand/Player.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace lemonade_Stand { public class Player { //member variables public string name; public int weeklyProfit; private int cashOnHand; public int CashO...
fa31e053572a8b7457486726f9dc1d3611c16354
C#
curicm/BitFaster.Caching
/BitFaster.Caching.Benchmarks/DataStructureBenchmarks.cs
3
3
using BenchmarkDotNet.Attributes; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace BitFaster.Caching.Benchmarks { [MemoryDiagnoser] public class DataStructureBenchmarks ...
e07cc1672ee5f1851ce61784aec47b6c420baa13
C#
bjavanderdoef/NWD
/Website/App_Code/SupportedImageFormats.cs
2.6875
3
using System; using System.Collections.Generic; using System.Drawing.Imaging; using System.IO; using System.Web.UI.WebControls; public static class ImageUploadHelpers { #region Private Fields/Properties - Image Formats private static SortedDictionary<Guid, string> _ImageFormats = null; private static Sor...
6bb65e770bb6314c59c6b86e21a178c5dceef435
C#
nikolay-doichev/Csharp-Entity-Framework-Core-October-2019
/04. Code-First/P01. Hospital Database/Data/HospitalContext.cs
2.53125
3
using Microsoft.EntityFrameworkCore; using P01_HospitalDatabase.Data.Models; namespace P01_HospitalDatabase.Data { public class HospitalContext : DbContext { public HospitalContext() { } public HospitalContext(DbContextOptions options) : base(options) { ...
85600afd39cf996ef56d300b94c1a2f3963fb827
C#
hmthanh/FileSharing
/Client/Client.cs
2.796875
3
using FileSharing.Client.Clients; using FileSharing.Commons; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Client { class Client { private string masterServerIP; private int masterServerPort; private List<...
7e0f713c48c8280ce57a05a0dc7b5dbb6a81c391
C#
kgp-developments/WindowsFolderEditor
/ReFolder/Dir/MainDir.cs
2.734375
3
using ReFolder.Dir.Description; using System; using System.Collections.Generic; namespace ReFolder.Dir { [Serializable] public class MainDir : Dir, IEditableDirWithChildren { public List<IEditableDirWithChildrenAndParent> Children { get; set; } = new List<IEditableDirWithChildrenAndParent>(); ...
65d715b97381f0c41de3ac067fdd36b008308764
C#
ghhv/GrowattApi
/Ealse.Growatt.Api/Ealse.Growatt.Api/Converters/DictionaryBaseConverter.cs
2.96875
3
using Ealse.Growatt.Api.Exceptions; using System; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; namespace Ealse.Growatt.Api.Converters { public abstract class DictionaryBaseConverter<TKey, TVal> : JsonConverter<Dictionary<TKey, TVal>> { public override...
8405c27e0764d9cfa1d0f74d9a8f3062525611e2
C#
patrickhitch/Middleware
/src/RateLimiting/RateLimitingOptions.cs
2.53125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Caching.Distributed; namespace Hellang.Middleware.RateLimiting { public class RateLimitingOptions { private List<Check<bool>> Safelists { ...
fb16cc9242e17f8a1acfd4c03a804a2d17b9195b
C#
Kulawy/NineMensMorris
/NineMensMorrisBack/Model/Morris.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NineMensMorrisBack.Model { public class Morris { public int Id { get; } public Tile One { get; set; } public Tile Two { get; set; } public Tile Three { ...
0c24741171cff22925c783e9d4c724556d13df09
C#
SoCreate/service-fabric-distributed-cache
/examples/Services/ClientApp/Controllers/CacheDemoController.cs
2.59375
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Caching.Distributed; namespace ClientApp.Controllers { [Route("api/[controller]")] [ApiController] public class CacheDemoController :...
d6c7d53ae57b5d9a2e48bd5018901031a8bf1e4d
C#
Maxluciani/Entra21-web
/Domain/Players/Player.cs
3
3
using System; using System.Collections.Generic; namespace Domain { public class Player : person { public Guid Id { get; private set; } = Guid.NewGuid(); public int Goals {get; private set; } public Player(string name) : base(name) {} public (IList<string> Errors,bool IsValid...
b3983c2a751b0b3b5ddca63c429a7f16add3c1d9
C#
dotnet/arcade
/src/Microsoft.DotNet.Build.Tasks.Packaging/src/NugetPropertyStringProvider.cs
2.65625
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.IO; using System.Collections.Generic; namespace Microsoft.DotNet.Build.Tasks.Packaging { public class NuspecPropertyStringProvider { publ...
edb608bfb0437479b3c67ab3340cc44db8de715c
C#
LukeStanislaus/SailingWeb
/SQL.cs
3.140625
3
using Dapper; using SailingWeb.Data; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Linq; using System.Text; namespace SailingWeb { public static class Sql { private static string _race = Program.Globals.RacenameTable; /// <summary...
8c6bb2861fe3a4c6507f4f44198ff24510541cef
C#
cbirkeland/Plugg
/vecka1/Övningar-dag-2-c#/4.3-Validation-KLAR.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp53 { class Program { static void Main(string[] args) { string[] peopleArray; // Skapar Array direkt string separator = AskUserForSe...
83d3c8d0f2cdd50095c4fba3cc4a47c1b824b012
C#
AngeloMelo/DDDReact
/DDD.Infra.Data/Repositories/RepositoryBase.cs
2.71875
3
using DDD.Domain.Contracts.Repositories; using DDD.Infra.Data.Context; using System; //using System.Data.Entity; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DDD.Infra.Data.Repositories { public class RepositoryBase<TEntity> : IDisposable, IReposi...
d95b1cf6960506b4b68c6f54ea809ffa11fca1b1
C#
kobraks/Callender
/Client/Connection.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net.Sockets; using System.Net; using Core; namespace Client { public class Connection : IDisposable { TcpClient client = new TcpClient(); NetworkStream stream = null...
b04bd7698a50339d76ce8202535e280a4d376de1
C#
fatihkucukkara/EFGRApiDemo
/EFGRApiDemo.Dal/Repositories/GenericRepository.cs
2.875
3
using EFGRApiDemo.Dal.Base.Interfaces; using EFGRApiDemo.Data.Context; using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Data.Entity.Migrations; using System.Linq; namespace EFGRApiDemo.Dal.Repositories { public class GenericRepository<...
6ba26b9f46d980adc112d1c508908f97a94158bb
C#
hrimar/MyFirstOwnWebProject-FishSpinDays
/FishSpinDays/FishSpinDays.Web/Common/ApplicationBuilderAuthExtensions.cs
2.625
3
namespace FishSpinDays.Web.Common { using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Identity; using FishSpinDays.Common.Constants; using FishSpinDays.Models; using Microsoft.Extensions.DependencyInjection; using FishSpinDays.Data; using Microsoft.EntityFrameworkCore; usin...
3adbe50811249c022177e4a07233d05189ee4e3c
C#
JozefR/CoffeTime
/Algorithms/Searching/Binary/Program.cs
3.9375
4
namespace Binary { class Program { static void Main(string[] args) { int[] primes = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97}; var target = 53; BinarySearch(primes, target); BinarySearchRecur...
e1bfe985272ae0e9b90d55c048811c8d326785f6
C#
NikiSpasov/CSharp-Advanced
/SetsAndDictionaries/02.SetsOfElements/SetsOfElements.cs
3.890625
4
 namespace _02.SetsOfElements { using System; using System.Collections.Generic; using System.Linq; class SetsOfElements { static void Main() { int[] input = Console.ReadLine() .Split() .Select(int.Parse) .ToArray(); ...
93725c84e9f8b8910a0216f3864ccf893d065a97
C#
ghj123h/Taicai
/archive/history/2018-19/1-3/190103/code.cs
3.015625
3
// 190103 Key: a/1006/y/1/125.04/5.0 using System; using System.Collections.Generic; using TaicaiLib; namespace Taicai190103 { public class ProblemFactory { public static bool seasonal = true; public static IEnumerable<Problem> GetProblems() { List<Problem> list = new List<Problem>(); Problem tmp; //...
2b47967bbf20ca68347acee4703dcd89ce59c443
C#
paurbano/TalleresConsola
/OReillyFundamentalsDelegados/Program.cs
3.421875
3
using System; namespace OReillyFundamentalsDelegados { /// <summary> /// Ejemplo de uso de delegados, esta aplicación simula un procesador de imagen y diferentes efectos que un usuario puede aplicarle(opacidad, rotar, recortar,etc..) /// el usuario puede seleccionar uno o varios y luego aplicarlos en la s...
97d8b0b50290a4c2dbcf23c6f570e22d0b5754ba
C#
VISAB-ORG/CBR-Shooter
/CBRS/Assets/Scripts/TCPIP/ConnectionToPathViewer.cs
2.734375
3
using System; using UnityEngine; using System.Net.Sockets; using System.IO; using Assets.Scripts.Util; using Assets.Scripts.CBR.Model; using System.Threading; using System.Text; using Assets.Scripts.AI; namespace Assets.Scripts.TCPIP { /** * Diese Klasse stellt die Verbindung via TCP/IP zum Java Projekt her...
8807c7b7806bd0c7f7faa5054ec82af6451d71b1
C#
howie1329/LifeSims2
/Data/BadActs.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Console = System.Console; namespace LifeSims2.Data { class BadActs { public string BadActsName { get; set; } public void BadActsMenu() { Console.Clear(...
080fca87d7be50d77c26699a726118ac057a360a
C#
Maoni0/docs
/docs/csharp/programming-guide/concepts/linq/codesnippet/CSharp/introduction-to-linq-queries_3.cs
2.84375
3
// Query execution. foreach (int num in numQuery) { Console.Write("{0,1} ", num); }
78b2154a21afd7abf280b37d52e10696580557b3
C#
dteixeir/food-truck
/api/DataLayer/Managers/AuthManager.cs
2.734375
3
using System; using System.Linq; using Microsoft.EntityFrameworkCore; using api.Domain; using api.DataLayer.Interfaces; using Microsoft.IdentityModel.Tokens; using System.Text; using System.IdentityModel.Tokens.Jwt; using Microsoft.Extensions.Configuration; using System.Security.Claims; using System.Security.Cryptograp...
8d5fd58067a9710c5ef0595df88304489af0b5de
C#
shendongnian/download4
/code4/583225-13642986-32546975-1.cs
3.3125
3
public ArrayList FindDuplicateRows(DataTable dTable, string colName) { Hashtable hTable = new Hashtable(); ArrayList duplicateList = new ArrayList(); //add duplicate item value in arraylist. foreach (DataRow drow in dTable.Rows) { if (hTable.Contains(drow[colName])) ...
a915c9dec479e11bfeba0ca1f64b8c2c7cccb298
C#
DeanZhouLin/BackendPrjs_BaseLibrary
/Com.BaseLibrary.Common/Collection/IKeyedList.cs
3.25
3
using System; using System.Collections.Generic; namespace Com.BaseLibrary.Collection { /// <summary> /// Represents a collection of IKeyedObject that can be accessed by index. /// </summary> /// <typeparam name="T"></typeparam> public interface IKeyedList<TKey, TItem> : ICollection<TItem> where TItem : IKeyedIte...
b08a0036600211b7e69464f3f5db0306112189e3
C#
sms-apps/faalon
/source/ConsoleGame/ConsoleGame.Engine/IScreenBuffer.cs
2.546875
3
using ConsoleGame.Engine.Core; namespace ConsoleGame.Engine { public interface IScreenBuffer { void Clear(); string Retrieve(); //char Retrieve(SimplePoint point); //string Retrieve(SimplePoint point, int length); void Store(char input, SimplePoint point); ...
e954283d600ea7ab7ab5c1b9904b17af316e4e8a
C#
AngleSharp/AngleSharp
/src/AngleSharp/Html/Dom/Events/ModifierExtensions.cs
2.796875
3
namespace AngleSharp.Html.Dom.Events { using System; /// <summary> /// A couple of useful extensions for the modifier list. /// </summary> static class ModifierExtensions { public static Boolean IsCtrlPressed(this String modifierList) { return false; } ...
7b5107d2512ae4a1c464a49621101be1e482b31a
C#
SHSongs/CowardGame
/assassin/Assets/Script/player/Move.cs
2.609375
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Move : MonoBehaviour { private Rigidbody2D _rigidbody2D; public float speed = 1; // Start is called before the first frame update void Start() { _rigidbody2D = this.GetComponent<Rigidb...
21853f73ea7eb5ae3af5c87a015f671b0c331d6d
C#
CorinaCiocanea/TrainingCSharp
/Homework 9/CodeFirst/CodeFirst/Program.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.Entity; namespace CodeFirst { class Program { static void Main(string[] args) { using (var db = new SampleData()) { // C...
eec76f7d9fbdffa61e9eb40ade28293d69dac280
C#
lefterisdiakakis/MisterApplicationsAPI
/Persistance/BaseHttplClient.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace Persistance { public abstract class BaseHttplClient : IDisposable { private static object _locker = new object(); private stati...
022df85d3fbce4738bbc76ad28665f18c6eab679
C#
nhonduyen/designpatter
/Prototype/ShapeCache.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace Prototype { class ShapeCache { public static Dictionary<int, Shape> shapeMap = new Dictionary<int, Shape>(); public static Shape getShape(int id) ...
6eb2ad6dc73c7c9648123cc19527e3577c94efe9
C#
sergiorykov/Caramba
/src/Caramba/Generators/OffsetIndexGenerator.cs
2.8125
3
using System; namespace Caramba { public class OffsetIndexGenerator : IIndexGenerator { private readonly IIndexGenerator _generator; private readonly int _offset; public OffsetIndexGenerator(int offset, IIndexGenerator generator) { if (generator == null)...
eaa005bf97e2f87a55acbb7c6931711e1834b661
C#
stevelinz/A6_Media_Abstract_Classes_Linz
/Program.cs
2.734375
3
 namespace A6_MovieOO.Models { public class Program { static void Main(string[] args) { GoAgain: System.Console.WriteLine("View: [M]ovie, [S]how, [V]ideo, [E]xit"); string typePick = System.Console.ReadLine(); if (typePick == "V" || ty...
894a02df62e31ab426573d56741e2f08907999ad
C#
turbo25mike/myBook
/DrawIt/DrawIt.iOS/DrawView.cs
2.640625
3
using System; using System.Collections.Generic; using System.Drawing; using MonoTouch.CoreGraphics; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace DrawIt { // Original Source: http://stackoverflow.com/questions/21029440/xamarin-ios-drawing-onto-image-after-scaling-it public class DrawView : UIView ...
7dc80451bf87c07e2ed3f1ed7df83376fb294c5f
C#
atomic7777/SimpleMap
/Map/Google/GoogleRectangle.cs
2.90625
3
using System; using System.Drawing; using SimpleMap.Map.Types; namespace SimpleMap.Map.Tile { public class ScreenRectangle : ICloneable, IComparable { public static readonly ScreenRectangle Empty = new ScreenRectangle(); public ScreenCoordinate LeftTop { get { ...
ea90924094ce2ddbfe2803842ec0547d46e07c95
C#
luizamunk/RPGProjectOOP
/RpgProject/RpgProject/CharacterClasses/Entity.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RpgProject.CharacterClasses { public enum EntityGender { Male, Female, Unknown, Androginous } public abstract class Entity { #region Fields Region protected s...
ac6a81e73dedaf361d78cf0a89465bde587a4d27
C#
yoyo02222803/TEoG_Unity_2
/Assets/Items/Scrips/Edibles/MealRation.cs
2.546875
3
using UnityEngine; namespace ItemScripts { [CreateAssetMenu(fileName = "MealRation", menuName = "Item/Edibles/MealRation")] public class MealRation : Edibles { public MealRation() : base(ItemIds.MealRation, "Meal ration") { } // use function aka what the item does, base.us...
f21dd12722fc44ca1ff268f0e62db194760c9a30
C#
sameerkapps/smart-switch
/PowerUpApp/Powerup.core/ViewModels/IBluetoothManager.cs
2.890625
3
// Copyright (c) 2015 Sameer Khandekar // Provided as is with MIT License using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Powerup.core.ViewModels { /// <summary> /// This encapsulates the functionality that needs to be supported /// by bluetooth manager on each pla...
65b50bdcaa9a7f9afd3e8c0fd81db7f212b1378e
C#
devanshachaudhari/SampleExercise
/MemberClaimsExercise/CsvHelper/CsvParserService.cs
2.8125
3
using CsvHelper; using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace CsvHelperLib { public class CsvParserService<T> : ICsvParserService<T> where T : class { public List<T> ReadCsvFileToModel(string pa...
db2c34c729cbf5f73fa76f38a302a04d2914927f
C#
rhom6us/Airspace
/Rhombus.Wpf.Airspace/Rhombus.Wpf.Airspace/Controls/VisualWrapper.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using JetBrains.Annotations; namespace Rhombus.Wpf.Airspace.Controls { /// <summary> /// The VisualWrapper simply integrates a raw Visual child into a tree /// of FrameworkElements. /// </summary> ...
42f65691cefdc906b07c16b3f6404e206b94d6b1
C#
ArseniBarsegyan/ReminderXamarin
/ReminderXamarin/ReminderXamarin/ReminderXamarin/Elements/BindableToolbarItem.cs
2.671875
3
using Xamarin.Forms; namespace ReminderXamarin.Elements { public class BindableToolbarItem : ToolbarItem { public static readonly BindableProperty IsVisibleProperty = BindableProperty.Create(propertyName: nameof(IsVisible), returnType: typeof(bool), decla...
95d90890e5127d91f4b2c307acac7f0484e91b2e
C#
ryanlacombe/Battle-Tanks
/GraphicalTestApp/Cannon.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GraphicalTestApp { class Cannon : Actor { //Creates the variables needed for the Cannon Class private Sprite _cannonSprite; private int _playerNum; priv...
acf5dbf2fc183dab4a10fcc6afaa3abe6bb6328e
C#
ByrkoAnton/ITVDNEssentialAbstraction
/abstraction03/Player.cs
3.015625
3
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; namespace abstraction03 { class Player : IPlayable, IRecodable { public void Pause() { Console.WriteLine("IPlayable pause"); } void IRecodable.Pause() {...
e099ebe90df6a50b7b9bdaa4307dc6d6e82f02f6
C#
mr-krustev/Telerik-Academy-Course
/C# OOP/ExtensionMethodsDelegatesLambdaLINQ/StudentSystem/Start.cs
3.21875
3
namespace StudentSystem { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Start { static void Main() { var allStudents = new List<Student>() { new Student("Pesh...
1c9e0079e63571e4ae03f79caf7ed143a9ed7de9
C#
vgjenks/EnterpriseLayers
/EnterpriseLayers.Data.Access/UnitOfWorkFactory.cs
3.078125
3
using EnterpriseLayers.Contract.DataAccess; using System; namespace EnterpriseLayers.Data.Access { public class UnitOfWorkFactory { public IUnitOfWork UnitOfWork { get; set; } public UnitOfWorkFactory(string databasePlatform) { UnitOfWork = Create(databasePlatform); } public static IUnitOfWor...
e8e572ed556e24ea9c8749444b4f38d4834850d9
C#
dragobaltov/Functions-Exercises
/PredicateForNames/PredicateForNames/Program.cs
3.609375
4
using System; using System.Collections.Generic; using System.Linq; namespace PredicateForNames { class Program { static void Main(string[] args) { int maxLength = int.Parse(Console.ReadLine()); Predicate<int> predicate = n => n <= maxLength; Action<string> p...
addae243190568a3f9add69ebab2756adc38dffb
C#
JokePenny/VikingVillage
/Vik/Buildquarry.cs
2.734375
3
using System.Drawing; namespace Vik { class Buildquarry : Build { private byte distance;// растояние private static byte ID = 15;// индефикатор объекта public Buildquarry(byte X, byte Y, byte Distance) : base(X, Y) { x = X; y = Y; distance ...
831591dc5850c1772880789ac1c08828952549ef
C#
thuliomariano/SimpleSocketClient
/SimpleSocketClient/View/Client.cs
2.640625
3
using SimpleSocketClient.Controller; using System; using System.Net; using System.Net.Sockets; using System.Text; using System.Windows.Forms; namespace SimpleSocketClient { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public string m...
4d0cae677c8c96a601a96f6c0dad34c4cd779460
C#
riverswb/LifeQuantified
/LifeQuantified/LifeQuantifiedDB.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using SQLite; namespace LifeQuantified { class LifeQuantifiedDB { ...
42fbecd24d91c505b0db53920b4a98bf01b7894d
C#
cmccrain/Project-Dollhouse
/TSOClient/tso.simantics/engine/VMRouteFinder.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using TSO.Files.formats.iff.chunks; namespace TSO.Simantics.engine { public class VMRouteFinder { /// <summary> /// This method will find all the avaliable locations within the ...
65688d2b6e0d713097f9e54eb8f643e6f0619d0f
C#
chavesandres1009/dbk
/AppKoralitos/ConfigView.cs
2.640625
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 AppKoralitos.Controller; namespace AppKoralitos { public partial class ConfigView : Form {...
3e0d390caefecf6eb618089e06c7779c2bbe3e35
C#
astnt/parser-net
/Parser/Model/Hash.cs
2.921875
3
using System; using System.Collections.Generic; using System.Text; namespace Parser.Model { public class Hash : IExecutable { private Dictionary<String, Object> dictionary = new Dictionary<String, Object>(); public Hash() { } public void addKey(Caller caller) { string key = ((Text...
aafcd06e0cf38555f0ae2ee38edd80f29193f754
C#
FrostySoup/XplicityProject
/ExplicityForm/Repository/Repository/UsageDataRepository.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using DataLayer.DatabaseData; using Microsoft.Data.Entity; namespace Repository.Repository { public class UsageDataRepository { public async Task<UsageData> GetItemAsync(Expr...
08ae73b72263482fd4f0c0819c94b3153ced38f6
C#
GOODVIN39/GeekBrains
/HomeworkL2.7/Program.cs
3.859375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HomeworkL2._7 { class Program { static void Main(string[] args) { // Шаповаленко Александр Не выполненно, т.к. не понимаю что такое рекурсия и как её правил...
1134abd5609682aac34e680ebc44b454a8b84c0c
C#
AlexTorrenti/EjemplosEFCore
/EjercicioLINQ/LINQ.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; namespace Day1 { public class LINQ { class Voice { public int Downloads { get; set; } public double Rating { get; set; } public string Name { get; set; } public double Version { g...
7bc58b71b197c9a6ee4243aa06403aeec1cc7319
C#
dogiaplinh/ktcnpm
/ktcnpm/Core/Models/RouteItem.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; namespace Core.Models { public class RouteItem : BindableBase { private double npv; public RouteItem(List<int> paths) { Paths = new List<int>(paths); } public RouteItem(string paths) ...
bb269ef00aa0b40a51042a75f62a39f3e55c6781
C#
lucasschmidtt/ProvaRaquel
/Services/InscricaoService.cs
2.609375
3
using System.Linq; using System.Collections.Generic; using edital.Data; using edital.Model; using edital.Services.Interfaces; using System; using Microsoft.EntityFrameworkCore; namespace edital.Services { public class InscricaoService : IInscricaoService { private readonly ApplicationDbContext _context; ...
91350130ee868fe201b98d912b99a4967cc902cc
C#
Freelooppowter/Calculator
/SimpleCalculatorV2.0/SimpleCalculator/Model/CalculatorManager.cs
3.09375
3
using SimpleCalculator.DataAccess; using SimpleCalculator.Domain; using System; using System.Collections.Generic; namespace SimpleCalculator.Model { /// <summary> /// 四则运算计算类 /// </summary> public class CalculatorManager { public static CalculatorManager GetInstance() { ...
9509cb298d910d2dba22492103bdac79e4c7760a
C#
Lehcim1995/ProjectEuler
/ProjectEuler/Problems/Problem12.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ProjectEuler.Classes; using ProjectEuler.Interfaces; namespace ProjectEuler.Problems { class Problem12 : IProblem { public long Answer(params long[] arguments) { ...
20f35124f0cd65fec24f944db89e0d7e482fe1f5
C#
inmovery/ProxyGrabber
/ProxyGrabber/Models/Proxy.cs
2.734375
3
namespace ProxyGrabber.Models { public class Proxy { public string Ip { get; set; } public string Port { get; set; } public ProxyType Type { get; set; } public Location Location { get; set; } public Anonymity Anonymity { get; set; } public int Speed { get; set...
bd31f72a7b87ee7148fc501f4c35ceea5b4d3a21
C#
Ehasaniceiu04/R-D
/RD/Program.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Dynamic; namespace ProblemSolving { class Program { static void Main(string[] args) { var test = GetDynamicData(2); Console.WriteLine(test.Na...
4cd13474d9bfe04c5163074879d75a0d6fdb932c
C#
zhanwei103/AlumniPlatform
/Common.DbFactory/Factory.cs
2.921875
3
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Common.DbFactory { public sealed class Factory { private static volatile Factory singleFactory = null; private static object syncObj = new o...
34c1cb99ccbc5d56f3476292b2483ab70ce86f45
C#
KevinShevchuk/ProgrammingPracticeProblems
/ProgrammingPracticeProblems/Project Euler/EvenFibonacciNumbers.cs
4.1875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PracticeProblems { class EvenFibonacciNumbers { //Each new term in the Fibonacci sequence is generated by adding the previous two terms.By starting with 1 and 2, the first 10 t...
ac769f30c5edfead74a6c8b2d0bcd8ec0ec1417c
C#
falseinteger/xamarinStocks
/Stocks/Core.cs
2.515625
3
using System; using System.Threading; using System.Threading.Tasks; using Stocks.Data; namespace Stocks { public static class Core { /// <summary> /// Действие когда выполняется обновление валют, при условии что есть данные /// </summary> public static Action ActionUpdate; ...
020d24911bb55f476787b52209518208a1311833
C#
Pawel-kutsenko/CurrencyExchanger
/WinFormsMVP.Tests/Tests.cs
2.671875
3
using System.Collections.Generic; using System.Linq; using Moq; using WinFormsMVP.Model; using WinFormsMVP.Presenter; using WinFormsMVP.View; using Xunit; namespace WinFormsMVP.Tests { public class PresenterTests { private readonly List<Customer> stubCustomerList = new List<Customer> { ...
58df9c2440cb857802fed4a917b245c7b7c0b93a
C#
karlzakhary/god-of-war-mini
/Assets/Scripts/Melee Enemy/MeleeAttack.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MeleeAttack : MonoBehaviour { [Tooltip("Attack range of the Melee Enemy.")] public float range = 2.2f; [Tooltip("Time (in seconds) to wait between attacks.")] public float timeBetweenAttacks = 2f; [Tooltip...
be607ffe396289bfce0734d5b0377bae06947bab
C#
mygithub222225/designPatterns
/设计模式的艺术/FacadePattern/Sample2/NewEncryptFacade.cs
2.703125
3
using FacadePattern.Sample1; namespace FacadePattern.Sample2 { /// <summary> /// 新加密外观类:具体外观类 /// </summary> public class NewEncryptFacade : AbstractEncryptFacade { private readonly FileReader _reader = new(); private readonly NewCipherMachine _cipher = new(); private reado...
f15550692918910914dc040bd8d56997e602873c
C#
shendongnian/download4
/first_version_download2/138568-9997960-22886654-2.cs
2.5625
3
private void Form1() { InitializeComponent(); if (IsInWinFormsDesignMode()) { // your code stuff here } } public static bool IsInWinFormsDesignMode() { bool returnValue = false; #if DEBUG ...
00dc77d12b991bbe1b7104a5b65566fde1016d22
C#
Kleiboy92/dev-Squares
/dev-Squares/Backend/ResultContainer.cs
2.859375
3
using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Threading; namespace dev_Squares.Backend { public class ResultContainer : IEnumerable<Result> { public bool Finished { get; private set; } = false; public bool Started { get; private...