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
c40c4f626889f711a1db8e34731634896302194a
C#
b-mannari/03.UserAuthentication
/WebApi/Controllers/UserAccountsController.cs
2.546875
3
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using System.Collections.Generic; using System.IO; using System.Linq; namespace WebApi.Controllers { [ApiController] [Route("[controller]")] public class UserAccountsController : ...
9a6c59c453bd4809e4a868bba30b9a55a6b53278
C#
adhamali450/TournamentSystem
/TournamentSystem/Core/Tournament.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using TournamentSystem.Others; using TournamentSystem.RankingSystem; namespace TournamentSystem.Core { /// <summary> /// Creates a competition between a punch of challengers and determines the winner challenger among punch of players according...
44b301698752d47729c8fcc484ba96c3418dc45a
C#
alethic/Alethic.KeyShift
/Alethic.KeyShift.Kademlia/IKsKademliaHasher.cs
2.734375
3
namespace Alethic.KeyShift.Kademlia { /// <summary> /// Provides a hash algorithm for generating a node ID from a key. /// </summary> /// <typeparam name="TKey"></typeparam> /// <typeparam name="TNodeId"></typeparam> public interface IKsKademliaHasher<TKey, TNodeId> where TNodeId : unm...
08b708bf7800bf86bb2a4546636b561fddf90e01
C#
dzlab/MSLyncProjects
/TwoPartyCallControl/TransferCallSample.cs
2.53125
3
using System; using System.Configuration; using System.Threading; using Microsoft.Rtc.Collaboration; using Microsoft.Rtc.Collaboration.AudioVideo; using Microsoft.Rtc.Signaling; namespace TwoPartyCallControl { public class TransferCallSample : ISampleComponent { ApplicationEndpoint _appEndpoint; ...
4957755850115811c4043242bfa9f6d5dcd0492b
C#
harelyadan/Movies-DB-Entity-Framework-Core
/AddMovieToDirector.xaml.cs
2.796875
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text.RegularExpressions; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows...
e1d455dd8a438a91a07e28d0c09ec5e638329328
C#
uatec/CodeNexus
/src/CodeNexus.Harness/Program.cs
2.734375
3
using System; using CodeNexus.Services; using CodeRaven.Data.Redis; namespace CodeNexus.Harness { class Program { static void Main(string[] args) { IIndex index = new RedisIndex("localhost", 6379, 0); IService service = new IndexingService(index); service.St...
b2404561719fb3b345541d10fff75f0f08d05521
C#
kko3/Revature-P1
/PizzaBox.Client/Controllers/UserController.cs
2.53125
3
using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using PizzaBox.Data; using PizzaBox.Domain.Models; namespace Pizzabox.Client.Controllers { public class UserController : Controller { private PizzaBoxDBContext _db = new PizzaBoxDB...
408c7fc821ac4a4815cb642cd3554d46ae89a91e
C#
TsvetelinIvanov/IntroductionToCSharpBookExercises
/19ChapterXIX_DataStructures/03SortStudentsInfo/Program.cs
3.75
4
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace _03SortStudentsInfo { class Program { static void Main(string[] args) { SortedDictionary<string, List<StudentName>> courses = new SortedDictionary<string, List<StudentName>>(); ...
4bee090f5f9adbcc326ecbdae203b2516fec5276
C#
allancft/sta
/sys/STA_APISUL/STA.DOMAIN/DeParaDomain.cs
2.609375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using STA.LOG; using STA.DOMAIN.Enum; using STA.MODEL.Models; using STA.REPOSITORY; using System.Security.Cryptography.X509Certificates; using System.Net.Security; namespace STA.DOMAIN { public...
7c2190d7ef91c9db78fd7ae1a654047c608c79ba
C#
hgirish/SimpleCommerce
/src/SimpleCommerce.Web/Components/CategoryMenuViewComponent.cs
2.515625
3
using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using SimpleCommerce.Core.Domain.Models; using SimpleCommerce.Infrastructure.Domain.IRepositories; using System.Linq; using SimpleCommerce.Web.ViewModels.Catalog; namespace SimpleCommerce.Web.Components { public class CategoryMenuViewComponent : Vi...
444b1d7e9a290b9719c3ff2edb654006eb99a105
C#
mandrek44/Mandro.Utils
/Mandro.Utils/StreamExtensions.cs
3.1875
3
using System.IO; using System.Text; using System.Threading.Tasks; namespace Mandro.Utils { public static class StreamExtensions { public static byte[] ReadToEnd(this Stream sourceStream) { using (var memoryStream = new MemoryStream()) { ...
9e10cc7fa86e12722097165ab5b0d880c6f56f68
C#
AlanBarber/CodeKatas
/src/LookAndSay.Tests/LookAndSayTests.cs
3.234375
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace LookAndSay.Tests { [TestClass] public class LookAndSayTests { private LookAndSay lookAndSay; [TestInitialize] public void TestInitialize() { lookAndSay = new LookAndSay(); } ...
ce7c3ed5d5a34806b28730744a0f3c3d635a9a3b
C#
sabrie/TelerikAcademy
/Programming/01.CSharpPartOne/IntroCSharp/PrintMyFirstLastName/PrintMyFirstLastName.cs
2.796875
3
// Create a console application that prints your first and last name. using System; class PrintMyFirstLastName { static void Main() { Console.WriteLine("Sabrie Nedzhip"); } }
529d81dcf7e7fddc28243e01a38e375f0c3805b9
C#
ragderag/ProgramacionOrientadaAObjetos
/Tareas/Serie/Ejercicio5/Ejercicio5/Program.cs
3.328125
3
using System; using System.Globalization; namespace Ejercicio5 { class Program { //Método main del programa en el cual se hacen pruebas y se hace un if en donde se mandan a llamar //los diferentes métodos de la clase "agenda". static void Main(string[] args) { stri...
dfa809f495203c23e7467112c09eb9be5b9559ec
C#
MuhammadBilalYar/Design-Patterns
/Singleton/SingletonPolicy.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Singleton { public class SingletonPolicy { private static readonly SingletonPolicy _instance = new SingletonPolicy (); public static SingletonPolicy Instance ...
6f290763e460f54c01246d247af873fa9da3679a
C#
farheen14aslam/WildlifeTracker
/WildLifeTracker/WildLifeTracker/Services/CategoryService.svc.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; using WildLifeTracker.Models; using WildLifeTracker.Repository; using WildLifeTracker.Response; using WildLifeTracker.Uti...
270f77fef7de456eb3cda87e719014307a1dff75
C#
HamedMousavi/BreweryTax
/Entities/Tour/TourCostRuleConstraint.cs
2.609375
3
using System; using System.ComponentModel; namespace Entities { public class TourCostRuleConstraint : EntityBase { protected Int32 id; protected string name; protected GeneralType constraintType; protected TourCostRuleConstraintPropertyCollection properties; public...
91f9bdfc3364bb732117d7306dca4fe484543bd4
C#
Laikos38/RandomVarGenerator
/RandomVarGenerator/RandomVarGenerator/Form1.cs
2.546875
3
using GeneradorDeNumerosAleatorios; 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 RandomVarGenerator { public partial class Form1 : Form...
af6ea27160fa93d34632f982dc8c2cc6d57651f9
C#
CaoHoaiTan/HCMUTE
/Windows Programming/Paint/frmMain.cs
2.953125
3
using Paint.Shapes; using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Windows.Forms; namespace Paint { public partial class FrmMain : Form { #region Properties private BufferedGraphics Gp { get; set; } ...
71960681058ce1f6353f01e75a4de9ae92ea9d44
C#
Aleksandr2019I/nordic-it-cs-q1
/03/classwork/ClassWork/L03_C02_dynamic_type/Program.cs
3.125
3
using System; class Program { static void Main() { // storing a string in a dynamic object dynamic anotherName = "Alexander"; // this compiles but might throw an exception at run-time! int length = anotherName.Length; Console.WriteLine(length); } }
14dfe2373ed16d2795c102d4c7e843d0b0fa7ac7
C#
cnua/Caravan-Club-coding-test
/InterviewTest/Rectangle.cs
2.78125
3
namespace DiagramAnalysisTest {/// <summary> /// a rectangle is a typeof square in my domain /// </summary> public class Rectangle:IShape { public virtual decimal Height { get; set; } public virtual decimal Width { get; set; } public virtual decimal Area => Height * Width; } }
c935be495fced6790483c9d0cd7980af2bc41a8e
C#
dauthikimdung/ky1_nam3
/web/B/Model/DAO/NewDao.cs
2.765625
3
using Model.EF; using Model.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using PagedList; namespace Model.DAO { public class NewDao { SachDbContext db = null; public NewDao() { db = new SachDbConte...
b1d43c0dd5c6553ce8e121eb7c3fc1e5aca625c0
C#
MattSouuza/Csharp-Exercises
/SENAI-Exercises/10DivisivelPor3/Program.cs
3.875
4
using System; namespace _10DivisivelPor3 { class Program { static void Main(string[] args) { System.Console.Write("Insira um número qualquer: "); int number = int.Parse(Console.ReadLine()); System.Console.WriteLine(); if(number % 3 == 0) ...
387d81937233105059ad938411b7529cab5b0b19
C#
Erkanskola/novemberprojekt
/Food.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Raylib_cs; namespace SnakeProject { abstract class Food : Tile { private int growth; public Food(int x, int y, int growth, Color color) : base(x, y, color) { ...
317601a77cf9fbcdf92bf67e79336b2820cc7dfe
C#
shendongnian/download4
/code5/782777-19142183-48489536-2.cs
3.140625
3
public class objTest { public int index { get; set; } public string name { get; set; } } class eqcomp : EqualityComparer<objTest> { public override bool Equals(objTest x, objTest y) { ...
942ebd434cc8730478384b19068d32ab9898f1d2
C#
frnkq/prog_lab2_practica
/frnkq/db/PersonDirectory/PersonDirectory/DbConnection.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; namespace PersonDirectory { public static class DbConnection { static SqlConnection connection; public static SqlConnection GetConnection() {...
397688844572d5ed0d7881f5e3641ebc6c89ef22
C#
luizearaujo/UserImpersonation
/TestUserImpersonation/Program.cs
3.1875
3
using System; using System.IO; namespace TestUserImpersonation { class Program { static void Main(string[] args) { string login = ""; string domain = ""; string password = ""; using (UserImpersonation user = new UserImpersonation(login, domain, ...
bf8b9a994257bdb7964c2242c47886e7327d529a
C#
wxl-007/Unity3d_4.10ProjectList_iKaKu
/Assets/Scripts/Enum/Damage.cs
2.515625
3
using UnityEngine; //public struct Damage { // /// <summary> // /// 所受伤害位置 // /// </summary> // public Vector3 hitPos; // /// <summary> // /// 所受伤害撞击方向 // /// </summary> // public Vector3 hitDir; // /// <summary> // /// 伤害强度 // /// </summary> // public float damage; // /// <summ...
b9ddfc7c51473c3833de2fa1a3533f5419757878
C#
bobend212/DatabaseCRUDApp
/ProjectCRUDLoginFormApp/Source/AdminPanel.cs
2.71875
3
using System; using System.Data; using System.Data.SqlClient; using System.Windows.Forms; namespace ProjectCRUDLoginFormApp { public partial class AdminPanel : Form { string connectionString = @"Data Source = DESKTOP-3P9I28U\MATEUSZSQL; Initial Catalog = ProjectCRUDLoginForm; Integrated Security =True...
271aee6b347062aa3367e57c3e4bb7de9583bf80
C#
yuwenbai/rex_study
/01/Assets/Scripts/tools/Animation/AnimationCtrl.cs
2.765625
3
/** * @Author lyb * * */ using UnityEngine; namespace projectQ { [RequireComponent(typeof(Animation))] public class AnimationCtrl : MonoBehaviour { /// <summary> /// 最小时间 /// </summary> private int RandomTimeMin = 0; /// <summary> /// 最大时间 /// <...
c481ef907f07c22ef2b5ef8e52caa062232195ee
C#
GuilhermeS94/Etiquetas
/BarCodeFonts.cs
3
3
using System; using System.Windows.Forms; namespace e2Etiquetas { class BarCodeFonts { ///Conversão de bcode public static string Code128A(char[] codigo) { string encode = string.Empty; int asciiVal = 0; int bcVal = 0; int chkDigitTotal =...
810fee1b3e4239eecae2a1383843569ab18d515d
C#
AppXpress/ModuleEditor
/CLI/Commands/CDCommands.cs
3.015625
3
using AppX; using System; using System.Collections.Generic; using System.Linq; namespace CLI { // Command for changing working path class CDCommand : BrokerCommand { public CDCommand(CommandBroker broker) : base(broker) { } public override string Name() => "cd"; public override string Args() => "<path>"; p...
17046374129593ed125fac20e1c5d98cd9dfc14a
C#
rasor/anagramsolver
/src/anagramsolver/services/ConsoleLogger.cs
2.546875
3
using System; using System.Collections.Generic; using System.Text; namespace anagramsolver.services { public class ConsoleLogger { public void ConsoleWriteLine(string stringToLog) { Console.WriteLine(DateTime.Now.ToString("HH:mm:ss.fff") + " " + stringToLog); } } }
59fc014bc58eea720a8a15e565eb75f3c4a7a85f
C#
giselleLago/CW_TribonacciSequence
/CW_TribonacciSequence/Kata.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CW_TribonacciSequence { public class Kata { public double[] Tribonacci(double[] signature, int n) { if (n < 3 || signature.Length >= n) { return signature.Tak...
10e02605b89e092d548e3b313d77c4b06da71a8f
C#
StefanD1997/Projects
/Practice_Basic_Algorithm/Test if a given non-negative number is a multiple of 13/Program.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Test_if_a_given_non_negative_number_is_a_multiple_of_13 { class Program { static void Main(string[] args) { Console.WriteLine(test(13)); Console....
7c552d8967fdc2397833d8a061bec07470561831
C#
Demonmiker/Cloud
/ClientServerLibrary/NetBuffer.cs
2.8125
3
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace ClientServerLibrary { public class NetBuffer { public MemoryStream Ms; public byte[] Ms_Buf; public BinaryReader Br; public BinaryWriter Bw; long size; public NetBuffe...
6b06038796e9c1a9bb3751518dd27e6015f81f3f
C#
mariamsayed3/GUCera
/Milestone3/ViewAssignments.aspx.cs
2.53125
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Milestone3 { public partial class Assignments : System.Web.UI.Page ...
514a933617b4590234e00094e158fefd165e115f
C#
sskieller/ikt-sem4
/PRJ4/FWPS_App/FWPS_App/FWPS_App/Klasser/LogIn.cs
3.328125
3
using System; using System.IO; using System.Net; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace FWPS_App { ///////////////////////////////////////////////// /// Interface to implement a tool to verify /// credentials. ////////////////////////////////////...
c225dbcccab13e692a95dd8c0c4b269f0377643c
C#
monikayaneva/coursehomework
/Homework6/task 4/Program.cs
3.75
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace task_4 { class Program { static void Main(string[] args) { int[] Array = { 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 }; Console.WriteLine("The numbers ...
8d04f47347bb241a6aad16a2ea2b05d170b8227a
C#
huebschwerlen/C-Sharp
/Ex124/Ex124/Employee.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ex124 { /* 3. Create another class called Employee and have it inherit from the Person class. */ class Employee : Person { void SayName(...
6dcde96abdc50b5df92d8b0981a8b2dd1febf6c0
C#
deanashton1311/butterfly
/ButterflyCalc/ButterflyCalc.Tests/CalculatorServiceTests/DivisionTests.cs
2.75
3
using System; using System.Collections.Generic; using System.Text; using Xunit; namespace ButterflyCalc.Tests.CalculatorServiceTests { public class DivisionTests : BaseServiceTest { [Theory] [InlineData(12, 6, 2)] [InlineData(24, 6, 4)] [InlineData(58, 8, 7.25)] [Inline...
9fee33c040246c30ee0db899463db5c66d90edac
C#
stepstore/EquipmentSol
/EquipWPF/UnitWithHPandGun.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EquipWPF { public class UnitWithHPandGun : UnitBase { public IWeapon Weapon { get; set; } public double HP { get; set; } public bool Dead { get { ...
c3c933eb4c84093b8ae01b3e8ddc15d649e10d6a
C#
shendongnian/download4
/code2/200553-3844225-8061952-2.cs
2.734375
3
<pre> public void brightnesstrackBar1_ValueChanged(object sender, EventArgs e) { domainUpDownB.Text = ((int)brightnessTrackBar.Value).ToString(); B = ((int)brightnessTrackBar.Value); // TODO: Need to dispose of return value from AdjustBrightness somehow // I need more code to figure out where pi...
4363efb2d1cf02236ce675ee0854682cb5622132
C#
AdamMil/Chrono
/Amulets.cs
2.5625
3
using System; using System.Xml; namespace Chrono { #region Amulet public abstract class Amulet : Wearable { protected Amulet() { Type=ItemType.Amulet; Slot=Slot.Neck; Material=Metal.Instance; } } #endregion public sealed class LevitationAmulet : Amulet { public LevitationAmulet() { name="blue amulet"; idNa...
354420df036accb643e714809e92851d4f95a04e
C#
delevv/RecipesAPI
/RecipesAPI/Controllers/IngredientsController.cs
2.625
3
using Microsoft.AspNetCore.Mvc; using RecipesAPI.Extensions; using RecipesAPI.Resources.Ingredients; using RecipesAPI.Services.Interfaces; using System.Collections.Generic; using System.Threading.Tasks; namespace RecipesAPI.Controllers { [Route("[controller]")] public class IngredientsController : Controller ...
b58ad48d03651d7c93f7d918c5d9db9d65a73cc0
C#
Usstasikus/GoodsReviews
/GraphicPart/WorkingWithDB.xaml.cs
2.59375
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Windows; using System.Windows.Controls; using GoodsReivewsLibrary; namespace GraphicPart { /// <summary> /// Логика взаимодействия для WorkingWithDB.xaml /// </summary> public partial class WorkingWithDB : ...
ec877eeebe866f9397ac44d7d4e2f0942d254501
C#
sro-cgi-dotnet/caesar-cipher-csharp-problem-akashg524
/CaesarCipher/CaesarCipher.cs
3.484375
3
using System; using System.Linq; using System.Text; namespace CaesarCipher { public static class RotationalCipher { public static string Rotate(string text, int shiftKey) { StringBuilder result=new StringBuilder(); for (int i = 0; i < text.Length; i++) ...
43dfb4f73c547c7b0b90fb485f182377ecabf568
C#
ithanshui/Tracy.Frameworks
/DEV/Tracy.Frameworks/Tracy.Frameworks.Common/Results/PagingResult.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; /********************************************************* * 开发人员:鲁宁 * 创建时间:2014/6/20 14:57:32 * 描述说明:分页结果集实现 * * 更改历史: * * *******************************************************/ namespa...
7b2d946404e2618ecb324ff65248aec3467e0a6d
C#
joydeeprony89/BST-LCA-Binary-Search-Tree-Lowest-Common-Ancestor-
/BST LCA (Binary Search Tree Lowest Common Ancestor)/Program.cs
4.125
4
using System; namespace BST_LCA__Binary_Search_Tree_Lowest_Common_Ancestor_ { class Program { class Node { public int value; public Node left, right; public Node(int value) { this.value = value; left = right = nul...
30cb857aaa62c61c4ca2b80cafb29847b0f9bf41
C#
NejiYURI/2020FGJ_Run-Revolution
/Assets/Script/TwitchController.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Net.Sockets; using System.IO; public class TwitchController : MonoBehaviour { /// <summary> /// twitch連線相關功能 /// </summary> private TcpClient twitchClinet; private StreamReader reader; private StreamWri...
a6fdd566b2547036665ca1adc870b89d77fa7771
C#
shendongnian/download4
/first_version_download2/350832-29882869-89077193-4.cs
3.21875
3
public static class Extensions { public static IEnumerable<U> Combinations<T, U>( this IEnumerable<T> list, Func<T, T, U> combinator ) { var temp = list.ToArray(); for( int i = 0; i < temp.Length - 1; i++ ) ...
17baee19b64150b980ccc55aa8e0f43cd7d3f12f
C#
nishain-de-silva/PDSAlgorithmEngine
/LinkedList program/TrainStation/TrainStation/AddDesetance.cs
2.5625
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 TrainStations.DAL; using TrainStations.Models; namespace TrainStation { public partial class ...
2a10312a6fcb3b9f1fccb4e41bf4b0bf043b5970
C#
andrey-ilyin/Recipes
/RecipesServer/Recipes.Domain/Models/Tag.cs
2.84375
3
using System.Collections.Generic; namespace Recipes.Domain.Models { public class Tag { public string Value { get; set; } public string Icon { get; set; } public TagLevel TagLevel { get; set; } = TagLevel.Regular; public string Description { get; set; } public IColle...
d2ac7c4d77bb57497c8ed6994b30c20b5c0c7781
C#
ziyansh2/2016TeamWork_RPG
/2016RPGTeamWork/_2016RPGTeamWork/Device/GameDevice.cs
2.546875
3
///作成日:2016.12.19 ///作成者:岡本 ///作成内容:デバイス統合クラス ///最後修正内容:Sound管理の追加 ///最後修正者:柏 ///最後修正日:2016.12.19 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; namespac...
b8a503426c49b0ef11433b5b005a9e6eb2dee052
C#
bcwalnja/Scoreboard
/ScoreboardBllTests/BusinessTests/ScoreControllerTests.cs
2.53125
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using ScoreboardBLL; namespace ScoreboardBllTests { [TestClass] public class ScoreControllerTests { protected IDisposable[] disposables; private ScoreController scoreController; private bool methodWasCalled; ...
4306718787921545ff515d607e9fd3a2f9572182
C#
gonzalomacielc/docloud
/Controllers/AtributesTypeController.cs
2.578125
3
using System; using System.Configuration; using System.Web; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using doCloud.Models; using Npgsql; namespace doCloud.Controllers { [Route("api/[controller]")] public class AtributesTypeController : C...
1209d4275fed5edcc4cec81d8476d0a6358be296
C#
tvoyammn/test-your-might
/TestYourMight/Data/Mocks/MockDeals.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using TestYourMight.Data.Interfaces; using TestYourMight.Data.Models; namespace TestYourMight.Data.Mocks { public class MockDeals : IDeals { private readonly IGames _game = new MockGames(); public...
2a67e227d090bea7c64cdc233bfcc2e2d4fd54e5
C#
gozdeAnagul/WM6_Intro
/Soyut.App/Form1.cs
2.8125
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 Soyut.Lib; namespace Soyut.App { public partial class Form1 : Form { public Form1(...
ff4fc6f00c66fe3bf7f350c2eedfeee54d304d7d
C#
piomaj/Test
/ShopMVC.DAL/Repositories/Repository.cs
2.953125
3
using ShopMVC.DAL.Interfaces; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ShopMVC.DAL.Repositories { public class Repository<TEntity> : IRepository<TEntity> where TEntity : class { private reado...
f34dac8e5378e8254e119ab0e0aa848cc4b00f2d
C#
Arysmyatov/design-patterns
/DP_Command/Commands/Robot/StepRightCommand..cs
2.53125
3
namespace Dp_Command.Commands.Robot { public class StepRight : ICommand { private Dp_Command.Toys.Robot _robot; public StepRight(Dp_Command.Toys.Robot robot) { _robot = robot; } public void Execute() { _robot.StepForward(); } ...
b96673bf5a8b97baa9c823ecf96c8b8b29c5b355
C#
TheBuzzSaw/KellySharp
/KellySharp/Point32.cs
3.609375
4
using System; namespace KellySharp { public readonly struct Point32 : IEquatable<Point32> { public readonly int X; public readonly int Y; public Point32(int x, int y) { X = x; Y = y; } public bool Equals(Point32 other) => X == other.X &&...
744f245c69dd5d2cee73f003938e6e9293eb74e9
C#
Myk15/BasicRacingGame
/RaceMap/WriteRaceInformationToFile.cs
2.6875
3
using System.Collections.Generic; using System.IO; using UnityEngine; [SerializeField] public class WriteRaceInformationToFile { private static string path = Application.streamingAssetsPath + "/Resources/Results.json"; [SerializeField] public WriteRaceInformationToFile(List<GameObject> Play...
f64b059815eaa9f381074ec7a73afce957966042
C#
ArtemPychenko/LeetCode
/TestsForSolutions/Strings/SmallestCharacterFrequencyComparerFixture.cs
2.96875
3
using FluentAssertions; using Strings.Solution.SmallestCharacterFrequencyComparer; using Xunit; namespace TestsForSolutions.Strings { public class SmallestCharacterFrequencyComparerFixture { [Theory] [InlineData(new[] {"bbb", "cc"}, new[] {"a", "aa", "aaa", "aaaa"}, new[] {1, 2})] [Inl...
2d8ae747a7edb412ab4df0440c14311e72c66119
C#
mohamedmaher101205/RunbookIqbal
/RunbookAPI/Controllers/EnvironmentController.cs
2.71875
3
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Runbook.Models; using Runbook.Services.Interfaces; using System; using System.Collections.Generic; using Microsoft.AspNetCore.Http; namespace Runbook.API.Controllers { /// <summary> /// This Env...
6dbcdb32e44e1903d5bb0df4cdd015aef14b1531
C#
shendongnian/download4
/latest_version_download2/252880-57956488-205461699-2.cs
2.546875
3
CountryView.Filter += CountryFilter; private bool _All; private bool _Africa; private bool _Asia; private bool _Europe; private bool _America; public bool All { get=>_All; set { _All=value; CountryView.Refresh(); } } public bool Africa { get=> _Africa; set { _Africa=value; CountryView.Refres...
c0560d6bcb3d89ea6cf36fb79ca04a1165339919
C#
OfekItzhaki/NullObject_DesignPatterns
/C#/NullObject_DesignPatterns/NullObject_DesignPatterns/shared/UserList.cs
2.671875
3
using System; using System.Collections.Generic; using System.Text; namespace NullObject_DesignPatterns.shared { public class UserList { // List of users static readonly User[] users = { new User("1", "Rob", "Yoqneam"), new User("2", "Joe", "TelAviv"), new Us...
807be227e7817ffffc8c2f5c9694408341733337
C#
hgusinac/MVCAssignmentPerson
/Models/Repo/LanguageRepo.cs
3.0625
3
using MVCAssignmentPerson.Database; using MVCAssignmentPerson.Models.Data; using MVCAssignmentPerson.Models.Repo; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MVCAssignmentPerson.Models.Repo { public class LanguageRepo : ILanguageRepo { pri...
d16929e08415723f5fbe3bde86c7b1a858e9e6af
C#
jpauloconnor/CSharpLibrary
/0.23_Null_CoalescingOperator/Program.cs
3.8125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //TODO: Still needs a little work with explanation. Maybe more examples. //EXPERIMENT: Try commenting out the null coalescing operator(section 2) and uncommenting the other code(section 1). How is the ...
4af1b53ec2b9136ce69f6bf00cc6e614e4b70760
C#
GledachevY/softuni
/Entity Framewor Core/MinionNames/IncreaseAgeStoredProcedure/StartUp.cs
3.28125
3
using Microsoft.Data.SqlClient; using System; using System.Data; using System.Text; namespace IncreaseAgeStoredProcedure { public class StartUp { private const string ConnectionString = @"Server=.;Database=MinionsDb;Integrated Security=true;"; static void Main(string[] args) { ...
56ba5a630dd8355818a8f15af16ff77fd4371be4
C#
asbarkouky85/CodeShellCore
/CodeShellCore.Web.Razor/Text/AngularTextProvider.cs
2.65625
3
using CodeShellCore.Text; using CodeShellCore.Text.Localization; using System; using System.Collections.Generic; using System.Globalization; namespace CodeShellCore.Web.Razor.Text { public class AngularTextProvider : IRazorLocaleTextProvider { public CultureInfo Culture => Shell.DefaultCulture; ...
ab54e6b834e48dbd2fede40ee185204abc831398
C#
grubern/agdur
/src/Agdur/IO/XmlOutputMetricVisitor.cs
2.828125
3
using System.Xml; using Agdur.Abstractions; using Agdur.Introspection; namespace Agdur.IO { /// <summary> /// Provides XML output of the results of a metric. /// </summary> public class XmlOutputMetricVisitor : IMetricVisitor { private readonly XmlWriter writer; /// <summary> ...
0da025ba887385143dfa092a1011909e5128c3df
C#
jonathanmoffatt/hack-assembler
/HackAssembler.Tests/Assembler.spec.cs
2.6875
3
using System.Collections.Generic; using FluentAssertions; using HackAssembler.Core; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace HackAssembler.Tests { [TestClass] public class WhenAssemblingBinary { private Assembler classUnderTest; private Dictionary<string, int> symbolTable; ...
d2d88f52d3a9ceb2ddc85c99514f5ea5aa6efc12
C#
nikhilgv9/BasilicaSoft
/CreateRequest.aspx.cs
2.625
3
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; /* * CreateRequest.aspx.cs ...
ce941ff98dfab984173601344ae7111e18fa8c9e
C#
SamiRenkyorganci/CSharpLearning
/Metotlar/MetotGenelTanim/Program.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HelloMethod { class Program { static void Main(string[] args) { HelloMethod(); Ogrenci o1 = new Ogrenci(); o1.SelamlaOgrenci(); ...
7c499f12a442af088e0372413c15d96195220fbf
C#
dobos/PlaniCorrect
/src/Elte.PlaniCorrect.UI/UI/Forms/ScreenForm.cs
2.578125
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 Elte.PlaniCorrect.UI.Forms { public partial class ScreenForm : Form { public P...
542e4b25789da49ec092b05e20acbe14f5bec183
C#
pusachev/alevel_homework2_collections
/HourseDatabaseLiblary/Horse.cs
2.828125
3
using System; using System.Collections; using System.Collections.Generic; namespace HourseDatabaseLiblary { public class Horse { public string Pedigree { get; private set; } public string Name { get; set; } public int Age { get; set; } public int Victory { get; private set;...
7c2ebbdac6e4b61dfc06910c4431fff5a4e8016b
C#
chsami/AquariumGame
/Game/AquariumGame/AquariumGame/User/Player.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AquariumGame._0.User { class Player { static int gold; static int score; static int moneyBuffer; static string name; public static int MoneyBuffer { get ...
d06291f37e822354e1b9aecd02ffb69a29bdb79f
C#
MasterScott/Poulight-Stealer
/Org.BouncyCastle.Crypto.Utilities/Pack.cs
2.78125
3
namespace Org.BouncyCastle.Crypto.Utilities { internal sealed class Pack { private Pack() { } internal static void UInt32_To_BE(uint n, byte[] bs, int off) { bs[off] = (byte)(n >> 24); bs[off + 1] = (byte)(n >> 16); bs[off + 2] = (byte)(n >> 8); bs[off + 3] = (byte)n; } internal static voi...
4baac87efe7bd3f384be6dcab11596cbcfc7fd43
C#
KaranRami/RestApiCall
/ApiUtils/ApiUtils/ViewModel/LoginViewModel.cs
2.53125
3
using Acr.UserDialogs; using ApiUtils.DataAccess; using ApiUtils.DataModel; using System; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using System.Windows.Input; using Xamarin.Forms; namespace ApiUtils.ViewModel { public class LoginViewModel : BaseViewModel { ...
473f536951252011da9543fb1b95bd9e7eb9db3b
C#
urb31075/ArithmeticCalculator
/ArithmeticCalculator/ArithmeticCalculator.cs
3.109375
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ArithmeticCalculator.cs" company="URB31075"> // All Right Reserved // </copyright> // <summary> // Defines the MyParser type. // </summary> // --------------------------------...
ca4aa336031111c16304b3bfe59228089418607d
C#
shendongnian/download4
/first_version_download2/139153-20256614-52457329-6.cs
2.8125
3
public class InternalDateTime { private static volatile InternalDateTime _instance; private static object syncRoot = new Object(); //threadsafe singleton public static InternalDateTime Instance { get { if (_instance == null) ...
3d71653340a2a780b0c359d5ef7fcc397a1dd7a7
C#
amysimmons/pluralsight
/xUnitTests/xUnitTests.Tests/CalculatorTests.cs
3.03125
3
using System.Data.Common; using Xunit; namespace xUnitTests.Tests { public class CalculatorTests { [Fact] public void ShouldAdd() { //Arrange //sut stands for system under test var sut = new Calculator(); //Act //The act phase exercises the thing that we are testing var result = sut.Add(5...
432b3ad594ed275c719559e5c318e23dcfc1aba8
C#
TilyaGit/Dental
/Dental/Dental.Core/Patient.cs
2.84375
3
using JetBrains.Annotations; using System; using System.Collections.Generic; using System.Linq; namespace Dental.Core { public class Patient { protected Patient() { MedicationHistories = new List<Medication>(); } public Patient( [NotNull] string firstNa...
28a17f92b43f5b78208d54c110f66cede0d20287
C#
maqueco/Snake-Vs-Block-
/New Unity Project/Assets/Scripts/MoveSnake.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine.SceneManagement; using UnityEngine.UI; using UnityEngine; public class MoveSnake : MonoBehaviour { public List<GameObject> snakeParts; //To add more objects [SerializeField] private float moveSpeed = 1f; //Speed in Y axis [S...
a505c0a4c3a33ac95edb12f2deff34ba5a2d033a
C#
IranthaJ/BQuTMSWithJira
/BQuTMSWithJira/AddTask.cs
2.5625
3
using System; namespace BQuTMSWithJira { class AddTask { private int _id = 0; private string _projectname = ""; private string _categoryname = ""; private string _name = ""; private string _duedate = ""; public int ID { set { ...
a1ba04a1887c5e47045115a68f4a86a643dcbb00
C#
mg-alfa-dev/DeployToAzure
/src/DeployToAzure/PartStream.cs
2.609375
3
using System; using System.IO; using System.IO.Packaging; using System.Security.Cryptography; namespace DeployToAzure { public class PartStream: IDisposable { public readonly PackageRelationship Rel; public readonly PackagePart Part; public readonly Stream Stream; public Part...
b2894bb6aa085b44d5cd8565ab2f44875ebb9871
C#
shendongnian/download4
/latest_version_download2/184321-38461371-123069819-4.cs
3
3
// Get an entity with all the required PK values // In your example this will be the posted Department_Roles object var departmentRole = new Department_Roles() { Id = 1 }; // Get the existing entry from the database var existingDepartmentRole = dbContext.Department_Roles.Find(departmentRole.Id)...
7e8d200f9b5dece2b9abb136ca3e64367e3aec9f
C#
groundon113901/MiBank
/MiBankWebsiteA3/LoginValidator.cs
2.6875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace MiBankWebsiteA2 { public class LoginValidator : ValidationAttribute { public string[] PropertyNames { get; private set; } public LoginValidato...
bd9ede74ad95ab6e3f16f5eb3cbede987a50e51d
C#
felipemontino/Canil-WebApp
/API/CharlieDog.API/CharlieDog.Dados/Repositorio/RespositorioBase.cs
2.8125
3
 using CharlieDog.Dados.Contexto; using CharlieDog.Dominio.Interfaces.Repositories; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; namespace CharlieDog.Data.Repositorio { public class RepositorioBase<TEntity> : IDisposable, IRepositorioBase<TEntity> where ...
62d9b4869e30e3fa342a13fb8d4ce9cf93d844f4
C#
MatsyuraDenis/patterns
/command/Command/Command/Command/RestaurantCommand.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Command { class RestaurantCommand : IComand { public Restaurant Restaurant { get; set; } public RestaurantCommand(Restaurant restaurant) { Restaura...
00ee16d78afe2cf8a9e70832700fc8479bc9bd11
C#
QuinnFreedman/SmokeUnity
/Assets/Scripts/Util/Vecor2Extension.cs
3.0625
3
using UnityEngine; using System.Collections.Generic; public static class Vector2Extension { public static Vector2 Rotate(this Vector2 v, float degrees) { float sin = Mathf.Sin(degrees * Mathf.Deg2Rad); float cos = Mathf.Cos(degrees * Mathf.Deg2Rad); float tx = v.x; float t...
6c136eea2cf1dd78c6678e1eec11075860d32c5a
C#
shendongnian/download4
/first_version_download2/226166-17722795-43910771-2.cs
3.015625
3
List<int> list1 = new List<int>() { 1, 2, 3, 4 }; List<string> list2 = new List<string>() { "a", "b", "c", "d", "e" }; dataGridView1.AllowUserToAddRows = true; dataGridView1.AutoGenerateColumns = false; int myRow = -1; int myCell = -1; ...
67c27ae806aab8b51f2c0356c5a6c0584bd17a75
C#
shendongnian/download4
/first_version_download2/343932-29153686-86233116-2.cs
3.84375
4
bool c = true; // assume each 's' is in 'list2' foreach (int s in list1) { bool contains_s = false; // 's' in 'list2' ? foreach (int t in list2) { if (s == t) { // found 's' in 'list2'. co...
8bca490fc7a5e7296ecfedd252f9d31f3e7c47ee
C#
KingMido/Ahmed_Alkhafaji_MVC_2016_05
/ConsoleApplication1/WebApplication1/Models/ProductInitilizer.cs
2.984375
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WebApplication1.Models { class ProductInitilizer : DropCreateDatabaseAlways<StoreContext> { protected override void Seed(StoreContext context) ...
b92313e207b698110a74985f000263a70af21a15
C#
devatwork/LinkedINSharp
/src/LinkedINSharp/Model/People/LanguageProficiency.cs
2.78125
3
namespace LinkedINSharp.Model.People { /// <summary> /// Language proficiency. /// </summary> public class LanguageProficiency { #region Properties /// <summary> /// A structured object indicating the user's fluency. Returns one of the following five values: /// - elementary /// - limited-working /// -...
e4a98c354948ddb11dc1bdd59334db8ada06a7da
C#
jums/game-of-life
/CoreCSharpTests/DarwinTests.cs
2.734375
3
using System.Collections.Generic; using System.Linq; using NUnit.Framework; using System.Text.RegularExpressions; namespace Jums.GameOfLife.CoreCSharp.Tests { [TestFixture] internal class DarwinTests { private Darwin darwin; private World commonWorld; [TestFixtureSetUp] pu...
4b04855b3cfafc75a7ef73c1480ed0f3adcb208c
C#
openrasta/archived-openrasta-legacy
/src/openrasta-core/src/OpenRasta/DI/DependencyResolverExtensions.cs
2.59375
3
#region License /* Authors: * Sebastien Lambla (seb@serialseb.com) * Copyright: * (C) 2007-2009 Caffeine IT & naughtyProd Ltd (http://www.caffeine-it.com) * License: * This file is distributed under the terms of the MIT License found at the end of this file. */ #endregion using System; ...
58485f670ee51cfe32da40557f435818c64e306a
C#
jamalm/didactic-octo-engine
/LabTest/Assets/Atom.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Atom : MonoBehaviour { public string electronsPerShell; public string atom; public GameObject protonPrefab; public GameObject electronPrefab; public int[] shells; float shellRadius = 20.0f; // Us...
d758510c9e247dde1bdeec582bcc32eae1258195
C#
AnastasGeshovski/MoviesProject.WebApi.Refactored
/SEDC.Movies.Refactored/SEDC.Movies.Services/Classes/MovieService.cs
2.765625
3
using SEDC.Movies.Common.Exceptions; using SEDC.Movies.DataAccess.Repositories.Interfaces; using SEDC.Movies.DomainModels; using SEDC.Movies.Mapper; using SEDC.Movies.RequestModels; using SEDC.Movies.RequestModels.Enums; using SEDC.Movies.Services.Interfaces; using System; using System.Collections.Generic; using Syste...
4549c9a2f39841c1bc806a71b1d6b941ae36b508
C#
idow17-meet/ForesightArtifact
/ForesightArtifact/ForesightConfig.cs
2.578125
3
using BepInEx.Configuration; namespace ForesightArtifact { public class ForesightConfig { public ForesightConfig(ConfigFile config) { chestPriceCoefficient = config.Bind<float>( "Config", "chestPriceCoefficient", 1.5f, ...