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
130b7aa0b2baa8081fb09321f7af02fa008fdff2
C#
RISStudio-tm/RIS-Libraries
/RIS.Collections/Trees/KDTree/KDTreeSelector.cs
2.90625
3
// Copyright (c) RISStudio, 2020. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE file in the project root for license information. using System; using System.Collections.Generic; namespace RIS.Collections.Trees { internal static class KDTreeSelector { internal sta...
50ef01ac63cb4872145d6e2d8492192c6082b751
C#
georgimanov/Databases
/DB Applications/2.CodeFirst/StudentSystem.ConsoleClient/Program.cs
2.84375
3
 namespace StudentSystem.ConsoleClient { using System; using System.Linq; using StudentSystem.Data; using StudentSystem.Models; public class Program { public static void Main() { var studentSystemDbContext = new StudentSystemDbContext(); bool input = f...
e1cb27cb85e2f661545863d7ace2a6051c771489
C#
AirKuma/AirProject
/Assets/AirKuma/Source/GeomStructs/VectorLikeStructs.cs
2.6875
3
using UnityEngine; namespace AirKuma.Geom { public interface IGeomData2D<TScalar> { TScalar X { get; } TScalar Y { get; } } public interface IGeomData3D<TScalar> { TScalar X { get; } TScalar Y { get; } TScalar Z { get; } } //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++...
9ddbb7ce0287ef9caed5de77133248a4e4a26ad2
C#
yordanov21/myplacesbox
/src/Data/myplacesbox.Data/Seeding/TownsSeeder.cs
2.984375
3
namespace MyPlacesBox.Data.Seeding { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using MyPlacesBox.Data.Models; using Newtonsoft.Json; public class TownsSeeder : ISeeder { public async Task SeedAsync(App...
075a3f90201ce6fec67605af858311cca43c8a80
C#
damifil/TIP
/TIPySerwer/TIPySerwer/Program.cs
2.75
3
using HashLib; using Ozeki.Network; using System; using System.Collections.Generic; using System.Data.Entity; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; using System.Security.Cryptography; using System.Security.Policy; using System.Text; using System.Threading; using System.Threadi...
7cc0c8eadcab02d19d350737f47ff56068f561b4
C#
allvie/common
/src/Common/Collections/DictionaryExtensions.cs
2.796875
3
/* * Copyright 2006-2015 Bastian Eicher * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
3b6694ea3b97caf7d2e669bfa43d048e05350cf9
C#
bubdm/Liquid.NET
/Liquid.NET/src/Filters/Math/PlusFilter.cs
2.796875
3
using Liquid.NET.Constants; using Liquid.NET.Utils; namespace Liquid.NET.Filters.Math { //public class PlusFilter : FilterExpression<NumericLiteral, NumericLiteral> public class PlusFilter : FilterExpression<LiquidNumeric, LiquidNumeric> { private readonly LiquidNumeric _operand; ...
f5e803cd71bfdb6b631cc0826013dad0b5fbba9f
C#
Akilgour/ForbiddenIslandMVCTwo
/ForbiddenIslandMVCTwo.Tests/Helpers/GamePlaySettingHelperTest/NumberOfPlayersTest.cs
2.671875
3
using System; using System.Text; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using ForbiddenIslandMVCTwo.Models; using ForbiddenIslandMVCTwo.Helpers; namespace ForbiddenIslandMVCTwo.Tests.Helpers.GamePlaySettingHelperTest { /// <summary> /// Summary description for Nu...
b25b660ce8bff5b9b7a8481e1fbe3ec1dcd4dd12
C#
Angel-125/Snacks
/Snacks/Simulator/SnackSimThread.cs
2.546875
3
/** The MIT License (MIT) Copyright (c) 2014-2019 by Michael Billard Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
9e4d6a97ff72124fcaaafc726a6cdcb809e1a4ea
C#
HaimGoldest/MiniGamesPortal
/Common/Model/Game.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Common.Model { public class Game : BaseModel { #region Private Fileds and Propeties private List<Player> _players; public List<Player> Players { ...
f696da9c168a40d70d5c9140307c90ed8931606d
C#
windystrife/UnrealEngine_NVIDIAGameWorks
/Engine/Source/Programs/AutomationTool/BuildGraph/Badge.cs
2.6875
3
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AutomationTool { /// <summary> /// Defines a badge which gives an at-a-glance summary of part of the b...
d9db625a2c4cb4dac709a67497700516412b1b70
C#
SekretTikhon/WGA_01
/WGA_01/Field.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WGA_01 { class Field { public static readonly int size = 5; Chip[] target; Cell[,] cells; public Field() { target = new Chip[size];...
7292b8142256f1b75a897eda289dadc3843a8755
C#
Suravarus/Senior-Project
/Bullet Hell/Assets/ND_VariaBULLET/Scripts/Collision/ShotCollidable.cs
2.515625
3
#region Script Synopsis //The interface IShotCollidable is used to represent any kind of object which can collide with a bullet or laser. //Examples: ShotCollision, ShotCollisionDamage //CollisionArgs is used to transmit sender information in a single object over to the object being collided with. //E...
b8e575807bad7cb64628cb371d8e6904ad626647
C#
mryunt/school
/Homework.Business/Concrete/StudentService.cs
2.75
3
using Homework.Business.Abstract; using Homework.DAL.Context; using Homework.DAL.Dtos.Student; using Homework.DAL.Entities; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Homework.Business.Concrete { public class Stud...
8014dd51cd57fe75d81369a229227000bea69b7d
C#
OlegKleyman/Calculator
/src/Calculator.App/Program.cs
3.484375
3
using System; using Calculator.Core; namespace Calculator.App { internal class Program { private static void Main(string[] args) { var parser = new DefaultParser(); var calculator = new Core.Calculator(); var factory = new SymbolFactory(); var ...
6e98e896c7bed9f6075eaa04a46195c3a41263a4
C#
braianb92/.NET-Capacitacion
/Backend/Evaluaciones/Modelado en C#/Modelado_Clases/Autor.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Modelado_Clases { class Autor { public int idAutor { get; set; } public string nombre { get; set; } public string apellido { get; set; } public Autor(...
e41467e360d28a758b00895c261a0cea9d6dcd00
C#
SallingProject/SailingApp3
/SPP/Assets/SPP/Programmer/Scripts/Common/Scene/SceneGame/Point/PointArrayObject.cs
2.609375
3
/**************************************************************************************/ /*! @file PointArrayManager.cs *************************************************************************************** @brief ポイントを管理するArrayを管理する @note とりあえず ***********************************************************...
dc3c29e3b114736b6ed77aab5c30a2b44a5284cd
C#
olivif/projecteuler
/ProjectEuler/Problem24.cs
3.1875
3
namespace ProjectEuler { using System; public class Problem24 : Problem { public override int Solve() { var list = "0123456789".ToCharArray(); var permutationIndex = 1000000 - 1; var permutation = Utils.GetPermutation(list, permutationIndex); ...
a1fb9fde7573799cfad702a7cc29a0ae1176333d
C#
AnkitaKhurana/repos_backup
/Queswer/BusinessLogic/Logic/QuestionLogic.cs
2.71875
3
using DataAccess.Data; using Shared.DTOs; using Shared.Exceptions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BusinessLogic.Logic { public class QuestionLogic { private QuestionData questionData = new QuestionData(); ...
c365f35437c2b299030308b05722c641ee002efa
C#
shendongnian/download4
/code8/1344815-36308641-114453078-2.cs
3.09375
3
public DataTable Convert(DataTable dt1) { try { var dt2 = dt1.Clone(); foreach (DataColumn dc in dt2.Columns) { dc.DataType = Type.GetType("System.String"); } foreach (DataRow row in dt1.Rows) { ...
72fe564d14eb965480713ef6643ddec3e327427b
C#
stepanovalexei/centipede
/Assets/Scripts/GameLogic/CentipedeLogic/Head.cs
2.515625
3
using System; using UnityEngine; using DG.Tweening; using GameLogic; namespace CentipedeImpl { public class Head : MonoBehaviour, IHead { public Point Point { get; set; } public Point PreviousPoint { get; private set; } public ShotResult Result { get; } = ShotResult.Decapitation; ...
e35b3d16e903a492693e992fce44736396a64547
C#
jdhaynes/dilemma
/src/dilemma/Dilemma/DilemmaSvc.Infrastructure/S3/AwsS3Bucket.cs
2.765625
3
using System; using DilemmaApp.Services.Dilemma.Application.Interfaces; namespace DilemmaApp.Services.Dilemma.Infrastructure.S3 { public class AwsS3Bucket : IFileStore { private readonly string _bucketName; private readonly string _region; public string Url => $"https://{_bucketName}.s3...
051551047c397b37eaf4e6fd524944f2d0fdd75f
C#
wasabii/rnet
/Rnet/RnetSetDataMessage.cs
2.625
3
using System; using System.Diagnostics; using System.Diagnostics.Contracts; using System.IO; namespace Rnet { /// <summary> /// Defines an RNet event message. /// </summary> [DebuggerDisplay("{DebugView}")] public class RnetSetDataMessage : RnetMessage { /// <summary> ...
a9de248384c9ad8174936db3ce4d35c35428ad00
C#
emirhannuz/RentalProject
/Business/Concrete/BrandManager.cs
2.96875
3
using Business.Abstract; using Core.Utilities.Business; using Core.Utilities.Results; using DataAccess.Abstract; using Entities.Concrete; using System.Collections.Generic; namespace Business.Concrete { public class BrandManager : IBrandService { IBrandDal _brandDal; public BrandManager(IBrand...
2ea35e363ec011bd6b608362b3c23aec4f3d626a
C#
apache/lucenenet
/src/Lucene.Net/Search/Similarities/LMSimilarity.cs
2.625
3
using System.Globalization; namespace Lucene.Net.Search.Similarities { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF ...
b2e48820940379cfbff541a2ac18616d2026ac6a
C#
Fibonacci-/su-online-risk
/Agramonte/Project/Project/Player.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace Project { class Player { //list of variables public String nickname; public Color ArmyColor; public int numOfTerritories; ...
1dbe4326c84af923e11f23872d414ce467ced23a
C#
diegomullerp/Cinq-Volvo
/MyServices.Web/UserDTO.cs
2.578125
3
namespace MyServices.Web { using System.ComponentModel.DataAnnotations; public class UserDTO : User { public UserDTO(string id, string name) : base(id, name) { } [Required] [Key] public override string Id { get { return base....
25d4cdbadf01d31329205267bb500d9cd535c45f
C#
ujemnaDelta/Delta
/PortalApp.API/Data/Seed.cs
2.671875
3
using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Identity; using Newtonsoft.Json; using PortalApp.API.Models; namespace PortalApp.API.Data { public class Seed { private readonly UserManager<UserModel> _userManager; private readonly RoleManager<Role> _roleManager;...
ddec326b1792136f2c699fe459b74e3644947ea2
C#
Hatsen/SchoolStuff
/LogLL/LogLL/Program.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LogLL { class Program { static void Main(string[] args) { LL s = new LL(); s.add(3); s.add(7); s.add(5); s.add(6); s.printAll(...
5de0f9ba2fa7065f952c50a4ce716bdf4e094bf5
C#
trigger-segfault/ZeldaOracle
/ZeldaOracle/Game/Game/Worlds/LevelEditorExtensions.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ZeldaOracle.Common.Geometry; using ZeldaOracle.Common.Scripting; using ZeldaOracle.Game.Tiles; using ZeldaOracle.Game.Tiles.ActionTiles; namespace ZeldaOracle.Game.Worlds.Editing { /// <summary>A...
96e7a919b9eae4feab3e1d08e6df9404f6c647e4
C#
Lucas-Souza-Santos/CSharp-CFB-Cursos
/Exercicios/EstruturaDecisao/parte1/Ex001.cs
4.0625
4
using System; /* Faça um Programa que peça dois números e imprima o maior deles. */ namespace EstruturaDecisao { class Ex001 { static void Main() { // Primeiro número: Console.Write("Digite um número: "); double num1 = double.Parse(Console.ReadLine()); ...
210b2ee4b2c9344ec435fef5fc087cc79c2d745b
C#
jaseporter01/DNUG
/DNUG/Controllers/BlogsController.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Oak; using Massive; namespace DNUG.Controllers { public class Blogs : DynamicRepository { public Blogs() { Projection = d => new Blog(d); } } public cla...
e18b2af89d2c4aded6b19786d3e02107b874daf3
C#
rufusl/lol-viewport-finder
/LOLViewportFinder/ImagePreProcessing.cs
3.25
3
using System; using System.Drawing; using System.Drawing.Imaging; using System.Runtime.InteropServices; using System.Linq; using System.IO; namespace LOLViewportFinder { interface IImageProcessor { Bitmap ProcessImage(Bitmap img); } /// <summary> /// Crops an image to a normalized rectang...
0e0e75966d5c24de0df27661247943aa4c1131d7
C#
umggt/bodegas
/src/core/Criptografia/EncriptadorDeClaves.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Threading.Tasks; namespace Bodegas.Criptografia { public class EncriptadorDeClaves { private const int Iteraciones = 10; private const int LongitudSalt = 16; private cons...
b9a212186eb63c718c507a5efa9b5ae5af41a789
C#
freedragon/dist-grpc-bench
/DistGRPC/Program.cs
2.625
3
using BenchmarkDotNet.Running; using System; using CommandLine; namespace DistributedGRPC { class Program { public class Options { [Option('h', "Host", Required = true, HelpText = "Set the hostname (or IP address) of service for benchmark.")] public string Ho...
e43c1bd4dc644ccff93aa03e1c8db6eff2be8b6a
C#
OmarLetona14/Analizador
/Helper/Pintar.cs
2.734375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace AnalizadorLexico.Helper { class Pintar { String[] reservadas = new String[] { "planificador", "descripcion", "año", "dia", "me...
377e9ed18356f345610316c6e79673a545052411
C#
zenithplatform/Core
/src/Zenith.Core.Shared/Serialization/SerializationHelper.cs
2.671875
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Zenith.Core.Shared.Serialization { public static class SerializationHelper { public static T Deserialize<T>(string json) where T : class { ...
a64c5ab3a7b540c102f29d653356ccd085456c93
C#
mediocresurgeon/Pathfinder
/Core.Domain.UnitTests/Characters/Spellcasting/SpellLikeAbilityRegisteredEventArgsTests.cs
2.65625
3
using System; using Core.Domain.Characters.Spellcasting; using Moq; using NUnit.Framework; namespace Core.Domain.UnitTests.Characters.SpellRegistries { [TestFixture] [Parallelizable] public class SpellLikeAbilityRegisteredEventArgsTests { #region Constructor [Test(Description = "Ensur...
ab69d853396788b47ddd309422ac9cfa7e8d2df6
C#
BoberIosif/ExamFinal
/Models/Bill.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExamFinal.Models { class Bill { public string Name { get; set; } public string Phone { get; set; } public float PricePerMinute { get; set; } public Tim...
0f54580034e2cb8ee86bb42c659d873fc63dc018
C#
graasmund/Solvers
/EightQueens/ReverseMetaSolver.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication3 { class ReverseMetaSolver { // Another simple idea: for any size A, solve this area *completely*, i.e. identify all possible solutions. /...
801ae754b222b2d975e38edea4666a5a78738c4b
C#
Lekaan/MyLittlePonyNew
/MyLittlePonyNew/Repositories/BlogPostRepository.cs
3.0625
3
using MyLittlePonyNew.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MyLittlePonyNew.Repositories { public class BlogPostRepository { public static List<BlogPost> blogList = new List<BlogPost>(); private static int _idCounter ...
e00573fb08cc63d31f596f1299523264582ac631
C#
Raushaniia/Algorithms_course
/Music/Music/Program.cs
3.4375
3
using System; using System.Linq; namespace CorpAlgoCourse.Spock { public class Music { private static void Main() { var items = Console.ReadLine().Split(new[] { ' ' }).Select(str => int.Parse(str)).ToArray(); int n = items[0]; int[,] songs = new int[n, 2]; ...
9e53951e2d2d16e343734d6efd4efe0abad0cc2a
C#
HongYeseul/DBP_CoffeShop_Project
/Student_Singleton/DBManager.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MySql.Data.MySqlClient; using MySqlConnector; namespace Student_Singleton { class DBManager { private static DBManager instance_ = new DBManager(); public static DBManager...
44073874067cd6f6a71b9af999e1790722f2d1a1
C#
Faulo/Communiganda
/Assets/Scripts/RandomExtensions.cs
3.5
4
using System; using System.Linq; namespace Communiganda { public static class RandomExtensions { static readonly Random random = new Random(); public static T RandomElement<T>(this T[] enumerable) { if (enumerable == null || enumerable.Length == 0) { throw new ArgumentN...
4842be9cdfdc9c3cc1ab6565605d552592b88b5e
C#
er-mansi7/SitefinityWebApp
/Mvc/Models/FlatTaxonomyModel.cs
2.765625
3
using SitefinityWebApp.MVC.ViewModel; using System; using System.Collections.Generic; using System.Linq; using System.Web; using Telerik.Sitefinity.Taxonomies; using Telerik.Sitefinity.Taxonomies.Model; namespace SitefinityWebApp.MVC.Models { public class FlatTaxonomyModel { private readonly TaxonomyM...
160cf692bd414359cb398bf5247cd78d92b93386
C#
Hengle/Nine.Geometry
/test/PointTest.cs
3.1875
3
namespace Nine.Geometry.Test { using Xunit; public class PointTest { [Fact] public void Ctor_value() { var input = 123456789; var value = new Point(input); Assert.Equal(input, value.X); Assert.Equal(input, value.Y); } ...
2bcadccadbb50d2aa5d5fbe97bd4ed2bb3eccda1
C#
xiaoxiongnpu/NET
/RCNet/Neural/Network/SM/Synapse/DynamicSynapseSettings.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Globalization; using System.Xml.Linq; using System.IO; using RCNet.Extensions; using RCNet.XmlTools; using RCNet.RandomValue; namespace RCNet.Neural.Network.SM.Synapse { /// <summary> /// Setup parameters ...
da15683723647c21595c4b2bdaefc5707288f1e6
C#
armandofc1/repositorio
/Program.cs
2.796875
3
using System; namespace RepositoryPattern { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); var usuario = new Usuario { Nome = "Teste", Sobrenome = "Teste" }; /* I...
a30dc838d4373f14b03e52aecd47befcae5cef5a
C#
ActivePHOENiX/BenchmarkDotNet
/BenchmarkDotNet/Tasks/BenchmarkParametersSets.cs
2.859375
3
using System.Collections.Generic; using System.Linq; using System.Text; using BenchmarkDotNet.Extensions; namespace BenchmarkDotNet.Tasks { public class BenchmarkParametersSets { public static BenchmarkParametersSets Empty = new BenchmarkParametersSets(string.Empty, false, null); public strin...
c5abf3a647a4e369de87a95dfba29994d1bd30ad
C#
stan-k1/WideWorldReports
/CustomAssembly/CustomAssembly/MyAssembly.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CustomAssembly { public static class MyAssembly { public static string Capitalize(string text) { if (!String.IsNullOrEmpty(text)) return te...
7304fecbab9ecaaeaac982168bc5ae6bd52ea641
C#
vishalishere/nsynth
/source/NSynth/Audio/AudioCodec.cs
2.609375
3
/****************************************************************************** * NSynth - A Managed Multimedia API - http://nsynth.gearedstudios.com/ * * Copyright © 2009-2013 William 'cathode' Shelley. All Rights Reserved. * * This software is released under the terms and conditions of the MIT/X11 ...
58f0b36ea0e1fcee14d84673b037e82ea36951b7
C#
alesak23/Hex
/Hex/GameLogic.cs
3.15625
3
using System.Collections.Generic; using System; using System.Linq; namespace Hex { public enum TerrainTypes { Land, Water, City, Harbor, Capital } public enum HexDirections { Up, UpRight, DownRight, Down, DownLeft, LeftUp, U = Up, UR = UpRight, DR = DownRight, D = Down, DL = DownLeft, LU = LeftUp } /...
06330471d6ce7b0b3b9ed4198d53c1a3d6999d3f
C#
koyoru12/passmo
/response.cs
2.78125
3
using System.Net; using System.IO; using System.Text; using System.Runtime.Serialization; using System.Runtime.Serialization.Json; namespace Passmo { //------------------------------------------------------ // Response //------------------------------------------------------ class Response { ...
bd25a493721a95e5f5248c58b8b25a106333ed19
C#
abdelrady/CS-Code-Samples
/VSP_new/RAW_Packets_Codes/Arp_Test1/Arp_Test1/Program.cs
2.796875
3
using System; using System.Collections.Generic; using System.Text; using System.Net.Sockets; using System.Net; namespace Arp_Test1 { class Program { static void Main(string[] args) { Socket MainSocket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Raw); ...
f2d9a753de3b02f40790cd786a37d832d135ae5d
C#
fabriciosro/apigarden
/Garden.Infra/Data/Standard/DomainRepository.cs
2.515625
3
using Garden.Infra.Data.Configuration; using System; using System.Data; namespace Garden.Infra.Data.Standard { public abstract class DomainRepository : IDomainRepository { protected readonly IDbConnection connection; protected IDbTransaction transaction { get; private set; } protected...
7d6d92151a20a9f2d81a7df58bda74ebbe6407c9
C#
maQus123/MarkdownAspNetCoreBlog
/src/MarkdownAspNetCoreBlog/Repositories/Tags/TagRepository.cs
3.21875
3
namespace MarkdownAspNetCoreBlog.Repositories.Tags { using Microsoft.EntityFrameworkCore; using Models; using System; using System.Collections.Generic; using System.Linq; public class TagRepository : ITagRepository { private readonly DataContext dataContext; public TagReposi...
8453390389b48016b36fa839fa04d2109d74ee17
C#
maca88/T4FluentNH
/Source/T4FluentNH/T4FluentNH.Tests/Inheritance/Animal.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace T4FluentNH.Tests.Inheritance { public abstract partial class Animal : Domain.Entity { public abstract string Name { get; set; } public virtual Owner Owner { ...
e2e905a991329abd37d3def101cc03a80ef55be8
C#
chrisdaly01/OptiCoffeeTDD
/OptiCoffeeTDD.Coffee/Coffee.cs
3.34375
3
using System; using System.Text; using OptiCoffeeTDD.EnumsAndConstants; using OptiCoffeeTDD.Interfaces; namespace OptiCoffeeTDD.DomainModels { public class Coffee : ICoffee { public Enums.CoffeeSize Size { get; set; } public int Creams { get; set; } public int Sugars { get; set; } ...
958c76dcd295c8d25c54ba70ed7eec0d28adbc99
C#
Dadd76/Kata-FizzBuzz
/FizzBuzz/FizzBuzzTest.cs
3.09375
3
using System; using NUnit.Framework; using NUnit.Framework.Constraints; namespace Fizz { [TestFixture] public class UnitTest1 { [TestCase(1)] [TestCase(2)] [TestCase(4)] public void TestThatCommonNumberReturnNumber(int i) { string message =...
684f23708bcf574d8af2f489c823a0e02462c1c2
C#
lindgrenkamali/Studier-sommar-2021
/CSHARP 9 AND NET 5/Kapitel 6/Chapter 6/PacktLibrary/Thing.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PacktLibrary.Shared { public class Thing { public object Data = default(object); public string Process(object input) { if (Data == input) ...
b24bdc6d45a58bcb4bdd1dd81e696a7fd3ac4b9f
C#
0dayso/BPiaoBao
/BPiaoBao/AutoUpdate/MainService/StringHelpers.cs
2.65625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; namespace AutoUpdate.MainService { public static class StringHelpers { public static string Get(this string str) { if (string.IsNullOrEmpty(str)) ...
0196a0f6a446d769627f8570adec554fba4c1626
C#
epicabsol/GridCollisionDemo
/DemoForm.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.Threading.Tasks; using System.Windows.Forms; namespace GridCollisionDemo { public partial class DemoForm : Form { private enum DragMo...
692872025b2fb3252941e260891b306065064d18
C#
inessousacaldas/auroras_heart
/Unity/Aurora's Heart/Assets/Scripts/SoundFollow.cs
2.71875
3
using UnityEngine; using System.Collections; public class SoundFollow : MonoBehaviour { /* // path manager from the "Simple Waypoints" (http://www.rebound-games.com/?page_id=39) // you can assign waypoints directly in waypoints public PathManager manager; // this can be made public and assigned d...
b15ddcc66028a472e90e867e42a516958ff48154
C#
vysotskaya/EpamFinalProject
/BLL/ConcreteServices/CategoryService.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using AuctionLog; using BLL.Interface.Entities; using BLL.Interface.Helper; using BLL.Interface.InterfaceServices; using BLL.Mappers; using DAL.Interface.DTO; using DAL.Interface.Repositories; using DAL.Interface.Repository; namespace BLL.ConcreteServ...
d787e6a2294606e0e42d7224709d0a845c504022
C#
ameetj85/Assignments
/CleverDevicesEx/CleverDevicesStackTests/CustomStackTests.cs
3.0625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using CleverDevicesStack; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CleverDevicesStack.Tests { [TestClass()] public class CustomStackTests { public i...
b12482b6af5ee3f88fdd18ca57d2106713de113e
C#
TIY-NET-Tampa/Lecture-Examples
/week-2/CustomTypes/CustomTypes/Card.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CustomTypes { public class Card { public Suits ThisSuit { get; set; } public Rank ThisRank { get; set; } public override string ToString() { ...
d613bc5dd0736a6d6a1bd68b9309bf571156c38a
C#
OctopusDeploy/CoreUtilities
/source/Octopus.CoreUtilities/Extensions/HttpResponseExtensions.cs
2.90625
3
using System.Net; namespace Octopus.CoreUtilities.Extensions { public static class HttpResponseExtensions { /// <summary> /// Test to see if a response was successful /// </summary> /// <returns>true if the response was successful, and false otherwise</returns> public s...
b3593f941e8b8bae5b24841059ef4be755bca4ed
C#
lambethd/Pathfinding
/Pathfinding/Form1.cs
3.046875
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 Pathfinding { public partial class Form1 : Form { Bitmap originalImage; ...
eefd0b6920cc8bafcb92a5c1a34fc0a426350ce8
C#
gitter-badger/Gu.Reactive
/Gu.Reactive.Tests/ToObservableNestedTests.cs
2.609375
3
namespace Gu.Reactive.Tests { using System; using System.Collections.Generic; using System.ComponentModel; using System.Reactive; using NUnit.Framework; public class ToObservableNestedTests { [Test] public void TwoLevels() { int count = 0; v...
74c103f6a4cb17d41ac687e52a74b4e111754e1f
C#
KevinFritsch/CSharp_Multi-Player_Snake_Game
/Chat/clientUdp/clientUdp/ClientUdp.cs
3.015625
3
using System; using System.Net; using System.Net.Sockets; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace ClientUdp { class ClientUdp { private static Thread thread; private static bool continuer = true; privat...
335a28aef5edf75b2963dfeb3a18aef12524b0c3
C#
xSolutionist/ProjectEdna
/ProjectEdna/DTOs/LocationDTO.cs
2.609375
3
using System; namespace ProjectEdnaWeb.DTO { public class LocationDTO { public LocationDTO (string longitud, string latitud, string country) { Longitud = longitud; Latitud = latitud; Country = country; } public string Longitud { get; set; } public string Latitud { get; set; } pu...
31d699430c712f54cebbe2a6748502f1159dc2ec
C#
tylerwolverton/SIGGD-WithinTheDarkness
/Engine/GUI/Containers/ListContainer.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; namespace Engine { public class ListContainer : GUIContainer { public enum Orientation { HORIZONTAL, VERTICAL, } public enum Align ...
e717f0de88a5e89fdf9ee168956c353e665d57d3
C#
priyamvadhapadmakumar/BookStore
/BookStore/Areas/Admin/Controllers/UserController.cs
2.703125
3
using BookStoreDataAccess.Data; using BookStoreDataAccess.Repository.IRepository; using BookStoreModels; using BookStoreUtility; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System...
6c239668987011794136fa46b98d99c9e53d6501
C#
DORAdreamless/Dapper.AutoMigrate
/src/Tiantianquan.Common/Tiantianquan.Common/Dependency/ComponentAttribute.cs
3.484375
3
using System; namespace Tiantianquan.Common.Dependency { /// <summary>An attribute to indicate a class is a component. /// </summary> [AttributeUsage(AttributeTargets.Class)] public class ComponentAttribute : Attribute { /// <summary>The lifetime of the component. /// </summary> ...
ec9a709bc5181318728163fc6af90bcce36fe671
C#
PressFtoPayTaxes/Homework
/Interfaces/Program.cs
3.296875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Interfaces { class Program { static void Main(string[] args) { House house = new House(); Console.WriteLine("Количество людей в бригаде, не счи...
14fcbd9884a9889a52ed6e3bc16bafb9222ca7ff
C#
DigitalMoss/UIA.Extensions
/src/UIA.Extensions/AutomationProviders/Defaults/Tables/DataGridCellInformation.cs
2.625
3
using System.Windows; using System.Windows.Forms; using UIA.Extensions.AutomationProviders.Interfaces.Tables; using UIA.Extensions.InternalExtensions; namespace UIA.Extensions.AutomationProviders.Defaults.Tables { public class DataGridCellInformation : CellInformation { private readonly DataGridViewCe...
ba4c992ddb790404661b0247df9293825d43aeb8
C#
Ktenbrook1/Sweepstakes
/Steaks/Steaks/UserInterface.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Steaks { public static class UserInterface { public static string GetFirstName() { Console.WriteLine("Please enter your first name: "); ...
f6fd4146b768bef60027baf082b9be6c0ae76eeb
C#
chelovek1418/PetSharing
/PetSharing.Data/Repositories/IMessageRepository.cs
2.859375
3
using Microsoft.EntityFrameworkCore; using PetSharing.Data.Contexts; using PetSharing.Data.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PetSharing.Data.Repositories { public interface IMessageRepository { Task C...
2d3dc2e495560fe5b95e2bfbec775764b257aa7d
C#
tomcurran/advent-of-code-2020
/Day14.cs
3.09375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; namespace AdventOfCode2020 { static class Day14 { public static void Part1() { var input = File.ReadAllText("day14-input.txt"); var regex = new Rege...
82d9b3e68a6969785f8b550567b2645e26bfad9e
C#
Varcal/Wevo
/src/Wevo.Dados/Transacoes/UnitOfWork.cs
2.59375
3
using System; using Microsoft.EntityFrameworkCore.Storage; using Wevo.Dados.Contextos; using Wevo.Dominio.Contratos.Transacoes; namespace Wevo.Dados.Transacoes { public sealed class UnitOfWork: IUnitOfWork { private readonly EfContext _db; private IDbContextTransaction _transaction; p...
cca2c4cdf0993559c1b2a183217c50e59c3dce69
C#
vszhou/AzureFunctions-TheLongRun-Leagues
/TheLongRun.Common/Events/Command/ParameterValueSet.cs
2.8125
3
using System; using System.Runtime.Serialization; using CQRSAzure.EventSourcing; namespace TheLongRun.Common.Events.Command { /// <summary> /// A parameter to be used when processing the command was set /// </summary> [Serializable()] [CQRSAzure.EventSourcing.DomainNameAttribute("Command")] [C...
de9197db061999dd50a00fc485afadc0417b5037
C#
dennisshevtsov/azure-functions-custom-binding-sample
/AzureFunctionsCustomBindingSample.Api/Validators/CreateTodoListValidator.cs
2.609375
3
// Copyright (c) Dennis Shevtsov. All rights reserved. // Licensed under the MIT License. // See LICENSE in the project root for license information. namespace AzureFunctionsCustomBindingSample.Api.Validators { using System; using System.Collections.Generic; using AzureFunctionsCustomBindingSample.Api.Dtos; ...
0dfb6f256b421cebaa0790796e4ad806ab5e8a9d
C#
afilipov1/Telerik-Academy
/CSharp OOP/3.Extension-Methods-Delegates-Lambda-LINQ/07.Timer/MainMethod.cs
3.296875
3
//Using delegates write a class Timer that can execute certain method at each t seconds. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace _07.Timer { class MainMethod { private static void SayBau() ...
af6af17f659efe79c1e72c39c5f124325bf79ca7
C#
MrKevHunter/ubersprogen
/ProcedureGenerator.Ui/Services/DbTableService.cs
2.734375
3
using System; using System.Collections.ObjectModel; using System.Linq; using ProcedureGenerator.Core.DataAccess; using ProcedureGenerator.Core.Domain; using ProcedureGenerator.Ui.Dto; namespace ProcedureGenerator.Ui.Services { public class DbTableService : IDbTableService { public ObservableCollection<T...
5e2211e2f283d357cfbbf1c1ed9bd7dce2dbe0d5
C#
EvProt/Factory
/Factory/Program.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Factory { class Program { abstract class Army { public abstract General CreateGeneral(); public abstract Captain CreateCaptain(); ...
e7d8043a2b337bd328ef4f9be1f3ff092a3e849d
C#
AminLexs/ProjectEgyptGame
/DungeonProt/Assets/Opsive/UltimateInventorySystem/Scripts/ItemActions/DebugItemObjectAction.cs
3
3
namespace Opsive.UltimateInventorySystem.ItemObjectActions { using Opsive.UltimateInventorySystem.Core; using Opsive.UltimateInventorySystem.Core.AttributeSystem; using Opsive.UltimateInventorySystem.Core.DataStructures; using Opsive.UltimateInventorySystem.ItemActions; using System; using Syst...
70d7e43e713b6e530df7ba59edf8b13ff8e5e131
C#
nsaori/c_sharp-practice
/Practice/Program.cs
3.5625
4
//p.340 stsatic(class) 변수 상속 //p.346 new,virtual,overriding keywords //virtual,overriding keywords ; 같이 쓴다!! //new ; 부모께 쓴다! // 그래도 ((Parent)child).Method(); 이렇게 안하면 그냥 자식 자신을 호출한다. //virtual ; 나는 부모다! //overriding ; 오버라이딩한다! 난 자식 자기 껄 쓰겠다! // ((Parent)child).Method(); 이렇게 해도 자식자신이 호출된다. using Sys...
9edf699704f5d512eb0d02d9fd73ca70984cc809
C#
everyday-solution/ESolutions.Net
/ESolutions.Net/NetworkAdapterException.cs
2.609375
3
using System; using System.Collections.Generic; using System.Text; namespace ESolutions.Net { /// <summary> /// Exception that can be thrown by the NetworkAdapter class. /// </summary> public class NetworkAdapterException : Exception { #region NetworkAdapterException /// <summary> /// Constructor for a new ...
81ef6ca4055ef74997477f07ba9ebb09646676bd
C#
Mauricioagreda/Foreverland5819
/SRC/C sharp/ForeverLand/ForeverLand/EnteCon.cs
2.765625
3
using System; using System.Collections.Generic; using System.Text; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ForeverLand { public abstract class EnteCon { [ForeignKey("dni")] [Required] public Cliente Cliente { get; set; }...
9c10113eed19fb965a90efd555f390a9d0d01645
C#
hallipr/ARKStatsExtractor
/ARKBreedingStats/Ark/GameConstants.cs
2.90625
3
using ARKBreedingStats.species; namespace ARKBreedingStats.Ark { /// <summary> /// Constants of the game Ark. /// </summary> public static class GameConstants { #region Breeding public const double ProbabilityHigherLevel = 0.55; // probability of inheriting the higher level-stat ...
90f429c40508ff9c31ce11a00e890729e5f92d51
C#
Mikanwolfe/Artillery3
/src/States/CombatState.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Artillery { public class CombatState : GameState { #region Fields #endregion #region Constructor public CombatState(A3Data a3Data) : base...
585c39362f676ce31c37d0ce05de324430c47fb7
C#
PrinceJK/CodingInterviewPreparation
/CrackingInterview/LINQOperation/Program.cs
3.6875
4
using System; namespace LINQOperation { using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; class Program { static int SumDefault(int[] array) { /* * * Sum all numbers in the array. * ...
bbf844a99d8700c7305d385f623c057e95ddd85e
C#
skiwheelr/KarveCar
/src/Controls/KarveControls/Clock/KarveClock.xaml.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
d0f308948737ed62c9984dae3a32a8e81c9965df
C#
trondr/NCmdLiner.SolutionCreator
/src/NCmdLiner.SolutionCreator.Library/Common/IO/FileEncoding.cs
2.734375
3
using System.IO; using System.Text; namespace NCmdLiner.SolutionCreator.Library.Common.IO { public class FileEncoding : IFileEncoding { public Encoding GetEncoding(string fileName) { int bom0, bom1, bom2, bom3; using (var fileStream = new FileStream(fileName, FileMode.Op...
5248c7cfbf0906f0771923186d30083128f31b48
C#
vikasl/MassTransit
/src/Samples/WinFormSample/SubscriptionManagerGUI/TimeoutListViewItem.cs
2.59375
3
namespace SubscriptionManagerGUI { using System; using System.Windows.Forms; using MassTransit.Util; public class TimeoutListViewItem : ListViewItem { public TimeoutListViewItem(Tuple<Guid, DateTime> item) { //what is used to search //now ...
3e99341f819a6c098fe051f13edad969c10d9f47
C#
summerstream/Mvc
/src/Microsoft.AspNet.Mvc.TagHelpers/EnvironmentTagHelper.cs
2.625
3
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.AspNet.Hosting; using Microsoft.AspNet.Razor.TagHelpers; namespace Microsoft.AspNet.Mvc...
3e23239b77b026c840c2011702b3577046463b7f
C#
SweetNail/Practice
/LeetcodeApp/ValidParentheses.cs
3.859375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LeetcodeApp { /// <summary> /// solution for Valid Parentheses 20 /// </summary> public class ValidParentheses { /* https://leetcode.com/problems/valid-...
5b8d5ec0f79c28ddfa715fbf70ff4c0ccd786250
C#
Fylipp/mlp-cs
/MlpCs/Network.cs
3.28125
3
using System; using System.Linq; using JetBrains.Annotations; namespace Fylipp.MlpCs { /// <summary> /// A network of neurons composed into layers. /// </summary> public class Network { /// <summary> /// The non-input layers of the network. /// </summary> [NotNull] ...
6f3e2b7f14133c66a0a87b4bed8777806b9d9eb1
C#
dnl1/simple-asp-net-mvc-blog
/BlogSollisWeb/BlogSollisDados/UsuarioDados.cs
2.953125
3
using System.Data.SqlClient; namespace BlogSollisDados { public class UsuarioDados { /// <summary> /// /// </summary> /// <typeparam name="IUsuarioBase">Qualquer classe que implemente IUsuario</typeparam> /// <param name="pEmail"></param> /// <param name="pSenha"></pa...
b769a1a07e3634f49600d6d594abad13d671ed71
C#
hamdanvp/FlightsBookingApi
/FlightBookingApi/Interfaces/AirlineScheduleServices.cs
2.84375
3
using FlightBookingAPI.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace FlightBookingAPI.Interfaces { public class AirlineScheduleServices : IAirlineScheduleServices { public FlightBookingDbContext _...