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
ae9edbf3c7ca24ef7e6f5c28cf737069d8c8f6bf
C#
Spooky323/ProfileSearch
/ProfileSearch/Program.cs
3.078125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using Newtonsoft; using System.Threading; using Newtonsoft.Json.Linq; using System.Reflection.Emit; namespace ProfileSearch { class Program { static Stack<Map> stack = new Stack<Map> { }; stat...
2b3950a2721623f6ad40308d2e82a4015c9be0f4
C#
peccatun/WebProjects
/HealthyEnvironment/HealthyEnvironment/Models/Comment.cs
2.59375
3
using System; using System.ComponentModel.DataAnnotations; namespace HealthyEnvironment.Models { public class Comment { public Comment() { Id = Guid.NewGuid().ToString(); } public string Id { get; set; } [Required] [Display(Name = "Comment")] ...
4d031b497407cd0af4f6458b98c2b17ea3bc18b4
C#
MetalKid/ThatConference-Aurelia
/WebApi/Data/Common/EntityBase.cs
2.875
3
#region << Usings >> using System; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Reflection; using ThatConference.Common.Enums; using ThatC...
aa5fdc492000bfd4cd4082236713c102e98681bd
C#
shendongnian/download4
/first_version_download2/528347-49166253-168466170-2.cs
3.46875
3
public string Replacement(string input, string replacement) { string[] words = input.Split(' '); int barIndex = 0; string result = string.Empty; for (int i = 0; i < words.Length; i++) { if(words[i].C...
13e410d2732a1c2778512b4fb31655c9b4ee55f7
C#
mustaddon/PipeTransform
/PipeTransform/PipeTransforms/JoinPipeTransform.cs
2.875
3
using RandomSolutions.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace RandomSolutions.PipeTransforms { public class JoinPipeTransform : IPipeTransform { public string Name => "join"...
d78606430918e119f532875cd374b6fe8ff660be
C#
aristotelis79/EmployeeApp
/EmployeeApp/EmployeeApp/Services/EmployeeService.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using EmployeeApp.Data.Entities; using EmployeeApp.Repository; using Microsoft.EntityFrameworkCore; using Attribute = EmployeeApp.Data.Entities.Attribute; namespace EmployeeApp.Services { publi...
ae9c63e425f0481ea3836efab2fad9c2e80f30e6
C#
david3663/MediaBrowser
/MediaBrowser.Server.Implementations/Library/DisplayPreferencesManager.cs
2.78125
3
using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Persistence; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Logging; using System; using System.Collections.Concurrent; using System.Threading; using System.Threading.Tasks; namespace MediaBrowser.Server.Implementations.Library { //...
3fcafa0f6e050a9a113ba752c6738b2f21f334e2
C#
nss-bladeRunners/bangazon-cli
/BladeRunnersBangazonCLI/Database/DataAccess/Queries/Select/SelectActiveCustomerQuery.cs
2.921875
3
using BladeRunnersBangazonCLI.DataAccess.Models; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; namespace BladeRunnersBangazonCLI.Database.DataAccess.Queries { class SelectActiveCustomerQuery { readonly string _connectionString = ConfigurationManager.Connect...
8d5470d78029a3acaabfb8ba3ebeb14ea173b662
C#
paule96/AC-Configbuilder
/src/Output.cs
2.703125
3
using System; using System.Collections.Generic; using System.IO; using System.Text; using Newtonsoft.Json; using System.Linq; namespace ACConfigBuilder { public class Output { public void writeOutput(List<string> AC, Stream s) { StreamWriter writer = new StreamWriter(s); ...
f9ac234f63facb24acaf3f845ce2a64baa02c53d
C#
CColdShadow/learngit
/Apowersoft.Utils.Imaging/Effect/PixelateEffect.cs
3.046875
3
using System; using System.Collections.Generic; using System.Text; using System.Drawing; namespace Apowersoft.Utils.Imaging { /// <summary> /// 像素化 /// </summary> public class PixelateEffect : IEffect { public PixelateEffect(int pixelSize) { PixelSize = pixelSize; } ...
633f03c456c1ffa21ba6ed6992fc49166a0668ad
C#
ulasguner/advanced-algorithms
/tests/Advanced.Algorithms.Tests/Binary/BaseConversion_Tests.cs
2.765625
3
using Advanced.Algorithms.Binary; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Advanced.Algorithms.Tests.Binary { [TestClass] public class BaseConversion_Tests { [TestMethod] public void BaseConversion_Smoke_Test() { //decimal to binary Asse...
dc1fbe47160ce5ae4e0baf1c5e72ffa4d1800234
C#
jacheima/MatchThree
/MatchThreeGame/Assets/Scripts/CameraController.cs
2.921875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraController : MonoBehaviour { private Board board; private float cameraOffset = -10f; public float aspectRatio = 0.625f; public float padding = 2f; // Start is called before the first frame...
398a4610fa56011387f0ec60ad00b4a8e692c9f6
C#
lucabox/scratchpad
/app/app/Storage/LRUStringCache.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace app.Storage { public class LRUStringCache : IStringCache { private int _capacity; private Dictionary<string, LinkedListNode<Tuple<string, string>>> _keyNodes; ...
079c885cba0b109ed709b6b6371734a99a724a2f
C#
kokoteofilov1/Programming-Fundamentals-SoftUni
/C#/05. Arrays/Arrays Lab/p08_CondenseArrayToNumber/Program.cs
3.875
4
using System; using System.Linq; namespace p08_CondenseArrayToNumber { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int[] array = input.Split(' ').Select(n => int.Parse(n)).ToArray(); if (array.Length == 1) ...
322bc0ed3ee3cf97671089b6307d7c05f0f971f4
C#
jeremymaya/Code-401-Lab05-I-Built-A-Zoo
/IBuiltAZoo/IBuiltAZoo/Classes/Bear.cs
2.9375
3
using System; using System.Collections.Generic; using System.Text; using IBuiltAZoo.Interfaces; namespace IBuiltAZoo.Classes { public class Bear : Mammal, ISwim { public string Color { get; set; } public override string Species { get; set; } public override string Reproduce ...
506ae7ddfcd1caa0163284bf270ac693f89cde38
C#
inkybeta/MessagingServer
/MessagingServerBusiness/UserClientService.cs
2.578125
3
using System; using MessagingServerBusiness.Interfaces; using MessagingServerCore; using MessagingServerCore.Interfaces; namespace MessagingServerBusiness { public class UserClientService : IMessagingClient { public IClient Client { get; set; } public string Status { get { return Client.Status; } set { C...
d3ce272f2e6e32cb11604b3fecc7d277b7db08d7
C#
shendongnian/download4
/code6/1079733-28087618-82132816-2.cs
2.9375
3
IEnumerable<Payment> UnitePayments(List<Payment> list1, List<Payment> list2) { ... Check that list1 and list2 are the same length ... for(int i=0; i<list1.Length; i++) { if(list1.Period!=list2.Period) ... handle this case... yield return new Payment { Period = l...
3cec0ba95f022a89217892300fcc27031bd405a6
C#
Vali0/Telerik-Academy-Courses
/CSharp - 2/Homeworks/HW2MultidimensionalArrays/Task01cDiagonalMatrix/Task01cDiagonalMatrix.cs
4.25
4
using System; // Write a program that fills and prints a matrix of size (n, n) as shown below: (examples for n = 4) class Task01cDiagonalMatrix { static void Main(string[] args) { int size = 0; int member = 1; int row = 0; int col = 0; Console.WriteLine("Enter size of ...
cee089d83386b86b5166e4e5a28d9fcbf98f6c38
C#
smytheagain/SQLiteArrayStore
/SQLiteArrayStore/SQLiteConnector.cs
3.09375
3
namespace SQLiteArrayStore { using System; using System.Collections.Generic; using System.Data; using System.Data.SQLite; using System.IO; public class SQLiteConnector : IDisposable { public SQLiteConnection Connection { get; private set; } public SQLiteConnector(string da...
af552ca37d971fe5ba45f4b3676a6472bccad2d5
C#
jsikorski/dotnet-paint
/DotNetPaint/DotNetPaint.Plugins.Dimmer/Dimmer.cs
2.8125
3
using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Windows.Forms; using DotNetPaint.Common; namespace DotNetPaint.Plugins.Dimmer { public class Dimmer : IPlugin { public ToolStripItem AddButton(ToolStrip container) { ...
f38d2d9feefee07bc055c6384b302fb762e70eda
C#
rickj33/RavenSerialziationIssue
/RavenSerializationIssue/Extensions.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RavenSerializationIssue { public static class Extensions { public static void AddItem<T, I>(this Dictionary<T, I> source, T key, I value) { if (!source.ContainsKey(key)) { sour...
2e93c8fb44c5007be26ad7ec08d341abe39f38bb
C#
JessyBUni/FileParsing
/Individual_Coursework/Person.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Individual_Coursework { public class Person { private string FirstName; public void set_FirstName(string name) { this.FirstName = name; } ...
07d172cd4b6121be36b17ecddf9f8b3c34bb32a3
C#
Hook35/BasicProjectManagement
/ProjectManagement/Log.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Net.Mail; using System.Net; namespace ProjectManagement { public static class Log { public static string log = ""; public static int C...
cd29dc9398ef48bfa76eca2e5f093703434b7ca5
C#
llenroc/CrossPlatformSummit
/MvvmTipCalc/MvvmTipCalc.Core/ViewModels/TipCalcViewModel.cs
2.65625
3
using System.Windows.Input; using MvvmCross.Core.ViewModels; namespace MvvmTipCalc.Core.ViewModels { public class TipCalcViewModel : MvxViewModel { private TipCalculator _tipCalculator = new TipCalculator(); private decimal _billAmount; public decimal BillAmount { get { r...
41a74ebf5f144b589f5f98faf14a33927b15bd28
C#
foluis/TodoList
/Code/Na.TodoList/Na.TodoList.Data/Repositories/AppUserRepository.cs
2.59375
3
using Microsoft.EntityFrameworkCore; using Na.TodoList.Data.Interfaces; using Na.TodoList.Domain; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace Na.TodoList.Data.Repositories { public class AppUserRepository : IAppUserRepository { private rea...
623911125c8c5c1d65c4b2ce9e7a352fe9dcfd51
C#
shendongnian/download4
/first_version_download2/68956-38720924-124009711-2.cs
2.65625
3
public static string CityStateCountByIp(string IP) { var url = "freegeoip.net/json/" + IP; var request = System.Net.WebRequest.Create(url); using (WebResponse wrs = request.GetResponse()) using (Stream stream = wrs.GetResponseStream()) ...
1a381bb47168a1484ed230930b2863b2c430163c
C#
kurtkreemers/AdoFinal
/Videotheek/GetalGroterDanNulRule.cs
2.625
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Controls; namespace Videotheek { public class GetalGroterDanNulRule : ValidationRule { public override ValidationResult Validate(object v...
f48c7df5a50d0a550dd2f1507d7bcad9ea3db6aa
C#
tricore-r-hattori/BreakingTiles
/Assets/Script/ScoreText.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; using System; /// <summary> /// スコア /// </summary> public class ScoreText : MonoBehaviour { /// <summary> /// スコアの種類 /// </summary> public enum ScoreType { PastScore, TileHighScore, ...
eaa2d96edc9ca1810a1ffc26663e9138ffe5951a
C#
Alexandr63/Fractal
/LSystem/ILSystem.cs
3.078125
3
using System.Drawing; namespace LSystem { /// <summary> /// Интерфейс L-системы. /// </summary> public interface ILSystem { /// <summary> /// Текущая строка L-системы. /// </summary> string ResultString { get; } /// <summary> /// Текущее поколение. ...
a28c0d70f11c43e7f81484042a5ccca22d7ecb05
C#
dben41/willisTowersWatsonAssessment
/2 - AdvancedTicTacToe/AdvancedTicTacToe.Tests/AdvancedTicTacToe.Tests/AdvancedTicTacToeTest.cs
3.1875
3
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AdvancedTicTacToe.Tests { [TestClass] public class AdvancedTicTacToeTest { [TestMethod] public void Winner1StraightRow() { //assuming that user will never play same piece twice... I'd return -1 if it was an in...
ad0d16c3923eb105ef7c0c3d67ceabb0d33db482
C#
shendongnian/download4
/code7/1271911-34053474-105493610-2.cs
2.640625
3
public ActionResult SomeMethod(int status) //Assume 4 is passed in { if (status == 1) { return PartialView("partial1", model); } if (status == 2) { return PartialView("partial2", model); } if (status == 3) { retur...
f99f9f929aa32f9b9d8966d9fc73c3df8335cb7d
C#
julian-tuazon/cs-sgt-api
/SgtApi/Controllers/GradesController.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using SgtApi.Models; namespace SgtApi.Controllers { [Route("api/[controller]")] [ApiController] ...
3219992956d3256e72cdc4fe107e0900c74f5322
C#
PrimusStudios/sotsera.blazor.oidc
/src/Sotsera.Blazor.Oidc/Utilities/UrlBuilder.cs
2.671875
3
// Copyright (c) Alessandro Ghidini. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Based on https://github.com/IdentityModel/oidc-client-js by Brock Allen & Dominick Baier licensed under the Apache License, Version 2.0 using Sys...
b480b9da7fd59f454ec58204980dd3cdd8291756
C#
shanewongsirikul/Vorbereitung
/Program.cs
3.609375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Vorbereitung { class Program { static void Main(string[] args) { int auswahl; Console.WriteLine("1 Zeichen ersetzen"); Console.Write...
3446656154c2820ecd6d218f3796fe29374dd36f
C#
tww19861004/39ce16e9-2fb3-4001-9c37-c71d5c8efb1f
/CancellationTokenSource1/Program.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace CancellationTokenSource1 { class Program { static void Main(string[] args) { CancellationTokenSource cts = new CancellationTokenSour...
9411104c5169b47ac328a50e9a845a2eaf4db1da
C#
s19339/Tut5
/Tut3/Services/SqlServerStudentDbService.cs
2.765625
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Threading.Tasks; using Tut3.DTOs.Requests; namespace Tut3.Services { public class SqlServerStudentDbService { public void EnrollStudent(EnrollStudentRequest request) { //1. ...
0a9e54009c96a6d91d378b39249b0ea047ff85ed
C#
Chaosdevelop/WalletModule
/SimpleCurrency.cs
3
3
using UnityEngine; namespace CurrencyWallet { [System.Serializable] public sealed class SimpleCurrency : ICurrency { [SerializeField] uint balance; [SerializeField] string name; public string Name => name; public uint Balance { get { return balance; } set { balance = value; onBala...
77e08df0e012a432487dd7c3d693e0a58c3409d1
C#
kellyelton/octgn-server-old
/trunk/Containers/GameBox.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Skylabs.ConsoleHelper; using System.Collections; namespace Skylabs.Containers { public class GameBox { public static ArrayList Games { get { lock (...
48832302c6d2bfeeb691467d8f1b7c7069b11800
C#
suren-vanyan/ISTC-CODING-SCHOOL
/OOP.Inheritance.World of animals/World of animals/Zoo/Animals.cs
2.65625
3
using System; using System.Collections.Generic; using System.Text; namespace WorldՕfAnimals.Zoo { class Animals { public static int AnimalCount { get; set; } public Animals() { AnimalCount++; } public string Name { get; set; } public int Age { get; ...
66d1d8ddbb4fd9a7de52f49ac332244818f7d8fb
C#
272489711/SV_AIO_WinForm
/ExcelOrWordForSV/ExcelOrWordForSV/ExcelProcess.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Microsoft.Office.Interop.Excel; namespace ExcelOrWordForSV { class ExcelProcess { object missing = Missing.Value; Application excelApp; stri...
ee4f9fb4a527a49e81192cd077340f766566691b
C#
michaRZ/CSharpNotes
/05-classes/RoomTests.cs
3.34375
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; namespace _05_classes { [TestClass] public class RoomTests { [TestMethod] public void RoomTest() { // new up instance of a Room w/ Constructor from Room.cs Room class Room livingRoom = new Roo...
fb982c8d7f8c56345f9a1385c7ec703af84cce83
C#
krzysztofkolek/NorthwindWindowsStore
/NorthwindWindowsStore/Utils/BytesToImageConverter.cs
2.75
3
namespace NorthwindWindowsStore.Utils { using System; using System.IO; using Windows.Storage.Streams; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Media.Imaging; public class BytesToImageConverter : IValueConverter { public object Convert(object value, Type targetType, object ...
51e14c4a52062a0806571659138f45cb61a6e2a8
C#
Stroopwafe1/GameOfLife
/GOLTests/Board_Should.cs
2.796875
3
using Model; using NUnit.Framework; namespace GOLTests { public class Tests { [SetUp] public void Setup() { } [Test] public void BoardConstructor_FromFEN_ShouldReturnSameFEN_Empty() { string FEN = "8/8/8/8/8/8/8/8/"; Board board = new Board(FEN); string actual = board.ToString(); Assert.AreEq...
6e5efbd086b30f80c19175ab75496ba4c1035ef3
C#
crowar/PfxBrutPassword
/PfxBrutPassword/Program.cs
3.25
3
using System; using System.Security.Cryptography.X509Certificates; using System.Threading.Tasks; using System.IO; namespace PfxBrutPassword { class Program { static void Main(string[] args) { Console.WriteLine("Download password lists from https://github.com/danielmiessler/SecLists...
62808167599cc5d78b5795bc15eed05f5b7d7964
C#
bubdm/SysCommand
/examples/Example.Methods/Commands/MethodsCommand.cs
2.953125
3
using System.Linq; using SysCommand.ConsoleApp; using SysCommand.Mapping; namespace Example.Commands { public class Method1Command : Command { public string MyAction() { return "MyAction"; } public string MyAction2(int? arg0 = null, int arg1 = 0) { ...
3f6056772009aa78de701ea9dc735589541e7e38
C#
sieunhantanbao/mycompany-nservicebus
/src/Services/MyCompany.Scheduler/MyCompany.Scheduler/Services/ScheduleService.cs
2.703125
3
using MyCompany.Scheduler.Models; using NCrontab; using Quartz; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MyCompany.Scheduler.Services { public class ScheduleService : IScheduleService { private readonly IList<ScheduleItem> _scheduleItem...
c5ddcbd5f6de8f59ffe6df5968d65d5d9ae72534
C#
shanghaif/LocationSystem
/BLL/BLL/Tools/PosDistanceHelper.cs
2.640625
3
using DbModel.LocationHistory.Data; using Location.BLL.Tool; using LocationServer; using System; using System.Collections.Generic; using System.Linq; namespace BLL.Tools { public static class PosDistanceHelper { public static List<T> FilterErrorPoints<T>(List<T> posInfoList) where T : IPosInfo ...
4e5cc206bdb2ce1511536fc2f95ca76554ebdbe9
C#
kallDun/Console_Programs
/Lab_3/Classes/Tasks/Task__1_1.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab_3 { class Task__1_1 : IRunnable { public void Run() { var time_1 = new MyTime(14, 19, 4); Console.WriteLine("First date - " + time_1); ...
fb17f2a49900553998a317fe6e224ce18bf05952
C#
dmayhak/HyperSlackers.Localization
/Localization/Attributes/MinValueAttribute.cs
3.125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using HyperSlackers.Localization.Extensions; namespace HyperSlackers.Localization { /// <summary> ...
80121af2b2e64b463230ca78b48bb20c2a45db11
C#
Nookiie/GUIProject
/src/Model/Image.cs
2.78125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; namespace Draw.src.Model { public class Image : Shape { #region Constructor public Image() { } public Image(Bitmap image) : base(image) { } ...
82e369e1e799c066dd6670106147b20e92ba766b
C#
SeeminglyScience/EditorServicesCommandSuite
/src/EditorServicesCommandSuite/Language/UsingUtilities.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation.Language; using System.Text; using EditorServicesCommandSuite.CodeGeneration.Refactors; using EditorServicesCommandSuite.Utility; namespace EditorServicesCommandSuite.Language { internal static class UsingUtilitie...
9b760fcf487f223ddbc4400a9bb6f2d6b24327ee
C#
clambert0615/Lab-8---Classmates
/Lab 8 - Get to Know Your Classmates/Program.cs
3.375
3
using System; using System.Globalization; namespace Lab_8___Get_to_Know_Your_Classmates { class Program { static void Main(string[] args) { int[] studentNumbers = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; string[] students = { "Amy", "Andrew", "Brett", "Bob...
133d1a04ccadee5454f6189d7cfff8c12f10affe
C#
diferotorres/Policies
/PolicyApp/Store/PolicyStore.cs
2.546875
3
using Dapper; using PolicyApp.Models; using System; using System.Collections.Generic; using System.Linq; namespace PolicyApp.Store { public class PolicyStore : IPolicyStore { public IEnumerable<Policy> GetAllPolicies() { const string sql = @"SELECT po.P_Id ,po.P_Name ,po.P_Description ...
8701d9761e8729ad410403436ca648ff21d36c9b
C#
beetleman/asp.net_core_dokerized
/src/DataService.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using System.Data.SqlClient; using System.Data; namespace app { public class DataService { private readonly AppSettings AppSettings; ...
409ff5bfe8d4ce741c0a58fa3054af114bd20ccd
C#
shendongnian/download4
/first_version_download2/423300-37189083-117922983-2.cs
2.765625
3
public class Base<T> { public abstract T Clone() } public class Child : Base<Child> { public override Child Clone() { return ...; } }
44c86ae6d20e900b9d073c27defc25dc23865c95
C#
madladwolf/5119-FT03-Menus
/5119-FT03/5119-FT03/Hora.cs
3.421875
3
using System; using System.Collections.Generic; using System.Text; namespace _5119_FT03 { class Hora { public int hora, min, seg; public Hora() { hora = 0; min = 0; seg = 0; } public Hora(int h, int m, int s) ...
a49dc413ab09a0a848bbd4ea748766f5d34bcf49
C#
martin-repo/edsioux
/EdSioux/Color/ColorManager.cs
2.625
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ColorManager.cs" company="Martin Amareld"> // Copyright(c) 2017 Martin Amareld. All rights reserved. // </copyright> // --------------------------------------------------------...
9231dec97edb71cd271935874fbf376ea1bfbe0b
C#
pluskal/CSharpTraining
/Examples/Service_oriented_applications/WCFChatClientAzure/AzureLab/ChatUWPApp/ViewModels/MainViewModel.cs
2.59375
3
using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Threading.Tasks; using System.Windows.Input; using Windows.Networking.Connectivity; using ChatUWPApp.Connected_Services.ChatApi; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; namespace ChatUWPApp.View...
84ea7d77823567dfbe904b5cbb654116b64d0ef5
C#
rithikaravi/DotNetTraining_Rithika_844596
/ADO.NET/Form3.cs
2.9375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace FORM1 { public partial class Form1 : Form { public Form1() ...
dc840ff7346c758d09337f95369289322b8ca5a6
C#
HatOrigins/ColourFactory
/Assets/Scripts/ColourBehaviour.cs
2.71875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ColourBehaviour : MonoBehaviour { public int colour; private int sectionIndex = 0; private GameObject gridManager; private List<GameObject> level; private int speed = 3; // Use this for initialization v...
5047d96af700d4d89d780e688d8143df745b46c7
C#
andrekirst/DateTimeRangeParser
/src/DateTimeRangeParser.Tests/ExtensionTests/DateTimeExtensionTests/BetweenTests.cs
2.765625
3
using DateTimeRangeParser.Extensions; using Shouldly; using System; using System.Linq; using Xunit; namespace DateTimeRangeParser.Tests.ExtensionTests.DateTimeExtensionTests { public class BetweenTests { [Fact] public void DateTime_is_between_Start_and_End_Expect_true() { D...
264428661441ca24fed69a9e79fcfa055715588c
C#
Ahmed-Hafez/SalesManagementSystem
/SalesManagment/ViewModels/UserControls/ProductRowViewerListViewModel.cs
2.828125
3
using System; using System.Collections.ObjectModel; using System.Data; using System.Data.SqlClient; using System.Threading; namespace SalesManagment { public class ProductRowViewerListViewModel : BaseRowViewerListViewModel { #region Private Members /// <summary> /// The type of search...
1ee10a70f37a6ee706edd2b7f2a723e93fb97aea
C#
r-petrov/cSharp-Advanced-Course
/Homeworks/2.Methods/7.GenericArraySort/GenericArraySort.cs
3.71875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class GenericArraySort { static void SortArray<T>(List<T> list) where T : IComparable { for (int i = 0; i < list.Count - 1; i++) { int minValue = i; for (...
63df75e35b6ea9258c81a5a2d1c9745d70c58a2e
C#
marcin-kowal/techtalk-unittest
/Bookstore.Tests/Application/Mapper/BookDtoMapperTests.cs
2.828125
3
using AutoFixture; using Bookstore.Application.Mapper; using Bookstore.Application.Model; using Bookstore.DataAccess.Model; using Xunit; namespace Bookstore.Tests.Application.Mapper { public class BookDtoMapperTests { [Fact] public void Map_Always_AllPropertiesMapped() { // ...
178802ae92d869abd30fe0bedf87a2df0671a24d
C#
jorricarter/FinalCapstone
/Assets/Jorri Assets/Logic/Scripts/GameObjects/Bullet.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Bullet : MonoBehaviour { public int speed = 300; //how many seconds bullet exists. public float lifeDuration = 2f; private float lifeTimer; //Since I'm pulling from a pool, 'start' wouldn't activ...
5a84ac7f6b5b2d61d5e6aa3c6e21a48ce62befdd
C#
andrushenkobogdan23/ExtraCodeTest
/Mvc/TagHelpers/DMTagHelper.cs
2.71875
3
using Microsoft.AspNetCore.Razor.TagHelpers; using System; namespace MVC.TagHelpers { /// <summary> /// DateTime output format will be "dd.MM" /// </summary> [HtmlTargetElement(Attributes = TagNames.SS_DM)] public class DMTagHelper : TagHelper { /// <summary> /// DateTime outpu...
8b0f80717627c8476c47a88270bae2aec34c80f4
C#
crowdoka/type-inspector
/Examples/TypeReferenceExample.cs
2.53125
3
using System; using UnityEngine; namespace TypeInspector.Examples { public class TypeReferenceExample : MonoBehaviour { public TypeReference type; [TypeFilter(nameof(FilterTypePredicate))] public TypeReference typeFiltered; public bool FilterTypePredicate(Type ...
aeff956f2be7c62f426c21fb1dc3b2c9759f60c6
C#
breshch/AIS
/AIS2/Updater/App.xaml.cs
2.671875
3
using System; using System.Threading; using System.Windows; namespace Updater { /// <summary> /// Логика взаимодействия для App.xaml /// </summary> public partial class App : Application { private static Mutex _mutex; protected override void OnStartup(StartupEventArgs e) {...
bcb9cead29d1a5c16c3e24193d5190448d755083
C#
santoshacharya2468/asp.net-core-jwt-authentication
/Controllers/AccountController.cs
2.5625
3
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.IdentityModel.To...
be0721a30f4dc3d61dd6e5a633ea6e5f82563938
C#
RealityVirtually2019/Demystified
/demystified/Assets/Magic Leap/Dodge/Helpers/Tween/Scripts/Tween.cs
2.90625
3
// --------------------------------------------------------------------- // // Copyright (c) 2018 Magic Leap, Inc. All Rights Reserved. // Use of this file is governed by the Creator Agreement, located // here: https://id.magicleap.com/creator-terms // // ----------------------------------------------------------------...
28708334b8774d51bfe410d80de4da3b086b50db
C#
hvminh90/OnlineShop
/Model/DAO/ProductCategoryDAO.cs
2.765625
3
using Model.EF; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Model.DAO { public class ProductCategoryDAO { OnlineShopDbContext db = null; public ProductCategoryDAO() { db = new OnlineShopDbCont...
3ee0d3c78c1bdccb8beeec4f2b26eeac61c8aa70
C#
aleesan7/PascalCompiler
/PascalCompiler/PascalCompiler/Compiler/Instructions/Case.cs
2.8125
3
using System; using System.Collections.Generic; using System.Text; using PascalCompiler.Compiler.Abstract; namespace PascalCompiler.Compiler.Instructions { class Case : Instruction { public Expression expr; public LinkedList<CaseElement> cases; public Case(Expression expr, LinkedList<...
30ce80d41df6deb71f30ae6adc604eab9f7266a2
C#
kendallb/Skybrud.Social
/src/Skybrud.Social/Twitter/Options/TwitterSearchTweetOptions.cs
2.921875
3
using System; using Skybrud.Social.Http; using Skybrud.Social.Twitter.Enums; namespace Skybrud.Social.Twitter.Options { public class TwitterSearchTweetOptions { #region Properties /// <summary> /// The search query of 500 characters maximum, including operators. Queries may addition...
98e2573995bd24b2f382394cadb33240c73ad641
C#
BorysLevytskyi/StockMarket
/StockMarket.Model/Logging/LoggingExtensions.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using StockMarket.Model.Traders; namespace StockMarket.Model.Logging { public static class LoggingExtensions { private static readonly object SyncRoot = new object(); private static readonly Type[] DisabledLoggers =...
f75281ce4bc382bc976810c9e9fed19cd3bc949e
C#
brayanesc/MonitoreoLogisticoClient
/MonitoreoLogisticoClient/Data/MarcacionesService.cs
2.578125
3
using MonitoreoLogisticoClient.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using System.Web; namespace MonitoreoLogisticoClient.Data { public class MarcacionesService { public static string urlBase { get; set; } ...
fbdff8ae41d9bf359d6c4d7c5937f0e013a97b1a
C#
maziesmith/TelerikAcademyHomeworks
/CSharp1/ConsoleInputOutput/2.PrintCirclePerimeterAndArea/Program.cs
3.234375
3
using System; class Program { static void Main(string[] args) { decimal radius = decimal.Parse(Console.ReadLine()); Console.WriteLine("Area: {0}\nPerimeter: {1}", (decimal)Math.PI * (radius * radius), 2 * (decimal)Math.PI * radius); } }
59becc86c1bd6b2be443faf45c75757bad28e228
C#
isen-ng/testcontainers-dotnet
/src/Container.Abstractions/WaitStrategies/ExposedPortsWaitStrategy.cs
2.546875
3
using System; using System.Collections.Generic; using System.Net.Sockets; using System.Threading.Tasks; using Polly; using TestContainers.Container.Abstractions.Exceptions; namespace TestContainers.Container.Abstractions.WaitStrategies { /// <summary> /// Checks if exposed ports are available to indicate if se...
9062dd60df965c25a39957f962d0d6a6d16465d4
C#
shwarma01/OxfordHack2020
/HackGame/Assets/Scripts/Audio/AudioManager.cs
2.8125
3
using UnityEngine.Audio; using System; using UnityEngine; using UnityEngine.SceneManagement; using System.Collections.Generic; using System.Collections; public class AudioManager : MonoBehaviour { /* -------------------------------------------------------------------------------------------- * Usage: * ...
f0dc1c434ef0425152355fd40f4a3014d24049ba
C#
xtmhm2000/net-Pipelining
/Library/Exception/PipelineNotFoundException.cs
2.640625
3
namespace PipeliningLibrary { using System; /// <summary> /// Exception thrown when there's no pipeline registered with the given identifier. /// </summary> [Serializable] public sealed class PipelineNotFoundException : Exception { internal PipelineNotFoundException(string id) ...
2fd11432be98a3f34fbe2fa49fb125d68aba01ea
C#
shendongnian/download4
/first_version_download2/48432-11307324-26266945-2.cs
3.328125
3
public class TempFileStream : Stream { private readonly string _filename; private readonly FileStream _fileStream; public TempFileStream() { this._filename = Path.GetTempFileName(); this._fileStream = File.Open(this._filename, FileMode.OpenOrCreate, FileAccess....
18ae7f514176a0ef4cb5111dad43486c00b36d04
C#
ssukhpinder/ObserverPattern
/ObserverPattern/ConcreteObserver/Follower.cs
2.8125
3
using ObserverPattern.Observer; using ObserverPattern.Subject; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ObserverPattern.ConcreteObserver { public class Follower : IFollower { public void Update(ICelebrityInstagram cel...
9cd01f20659f664e922898f5a9bead97dfce6729
C#
Shabibzadeh/WindowsForms
/CAS.Windows.Forms/BackForwardTreViewHelper.cs
2.6875
3
//___________________________________________________________________________________ // // Copyright (C) 2020, Mariusz Postol LODZ POLAND. // // To be in touch join the community at GITTER: https://gitter.im/mpostol/OPC-UA-OOI //__________________________________________________________________________________...
b45a5a0ce9953584e93001a2d28c189ac1b151ca
C#
yeliuyChuy/leetcodeCSharp
/leetcodeCSharp/Properties/FindPivotIndex724.cs
3.125
3
namespace leetcodeCSharp { public class FindPivotIndex724 { public int PivotIndex(int[] nums) { int lsum = 0; int rsum = 0; foreach (int num in nums) { rsum += num; } for (int i = 0; i < nums.Length; i++) ...
5a550cdbb924e9364379beaacd18ea3f31c28a16
C#
shendongnian/download4
/first_version_download2/341302-28916044-85320045-4.cs
2.71875
3
private void txt_LostFocus(object sender, RoutedEventArgs e) { int value1; int value2; TextBox textBox = (TextBox)sender; if (textBox.Tag is bool && (bool)textBox.Tag) { if (Int32.TryParse(textBox.Text, out value1)) { if (...
fcafb89e1c71800178a8b739a3fccc67d8d6f200
C#
shendongnian/download4
/code2/334039-7097027-15586744-10.cs
2.5625
3
private void Completed(object sender, SocketAsyncEventArgs e) { // What type of operation did just completed? switch (e.LastOperation) { case SocketAsyncOperation.Send: { ProcessSent(e); ...
f9930c0ebf25e78744e074b7526cb474f77b0431
C#
CheryakVlad/Advanced-C-Sharp
/Module10/Downloader/SiteDownloader.cs
2.671875
3
using System; using System.IO; using System.Net.Http; using System.Text; using Downloader.Enums; using Downloader.Exception; using Downloader.Logger; using HtmlAgilityPack; namespace Downloader { public class SiteDownloader { #region Private fields private const int _pathLimit = 70; private int _analasisL...
a61019f7f4062befc2eb7d2c2fa791da987024dd
C#
mandeepjhajj/Code_Analyzer
/TestCase/TestCase2.cs
3.078125
3
using System; namespace Test { public class EnumTest { enum Days { Sun, Mon, Tue, Wed, Thu, Fri, Sat }; static void Main() { int x = (int)Days.Sun; Console.WriteLine("Sun = {0}", x); Console.WriteLine("Fri = {0}", y); } ...
d2f4560a47b966723238c7e26a48d98abae94c5f
C#
zhangkjun/Chinahoo.Extensions.Caching.FreeRedis
/Chinahoo.Extensions.Caching.FreeRedis/RedisXmlRepository.cs
2.78125
3
using FreeRedis; using Microsoft.AspNetCore.DataProtection.Repositories; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; namespace Chinahoo.Extensions.Caching.FreeRedis { /// <summary> /// An XML repository backed by a Redis list entry. /// </su...
4657f214b9b40c5cce81fb233ef1c15bf2d3112c
C#
SreehariAranghat/Training2018CSharp
/AdoNetTraining/Student.cs
3.015625
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data.Odbc; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AdoNetTraining { public class Student { public int Id { get; set; } public string Name ...
c238199b9666b4bad7da301d6acaad9b3ca8314c
C#
kuier/ChengxuyuanMianshiJindian
/程序员面试金典/6-像素翻转/Program.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /* * 有一副由NxN矩阵表示的图像,这里每个像素用一个int表示,请编写一个算法,在不占用额外内存空间的情况下(即不使用缓存矩阵),将图像顺时针旋转90度。给定一个NxN的矩阵,和矩阵的阶数N,请返回旋转后的NxN矩阵,保证N小于等于500,图像元素小于等于256。 */ namespace _6_像素翻转 { class Program { class Tran...
d3dac85cf015b24285bbd649246cb5e8be1129e1
C#
overpowerMCM/JC-PPop
/Assets/Scripts/PandaPop/MapTile.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PathFinding; using PPop.Input; using PPop.Interfaces; using UnityEngine; namespace PPop { [Serializable] [RequireComponent( typeof( MeshRenderer ) )] public class MapTile : InteractiveTile, IAStarNode { ...
61ad6face6211e60657bf7eb68b8a3e06ebe061f
C#
Level0r0s/ExpressCraft
/ExpressCraft/controls/CheckEdit.cs
2.609375
3
using Bridge.Html5; namespace ExpressCraft { public class CheckEdit : Control { public TextInput Edit; public HTMLSpanElement span; public bool Checked { get { return Edit.Text.IsTrue() == 1; } set { Edit.Text = value.ToString(); } } pu...
e59829da0e4de5c66edc4bb1eb1c2c0b8d56bc2a
C#
myoxuunt/yh
/8.Src/YeHeCommuniServer/Xdgk.Communi/BitDataField.cs
2.8125
3
//using System; //using System.Collections.Generic; //using System.Text; //namespace Xdgk.Communi //{ // /// <summary> // /// // /// </summary> // public class BitDataField : DataField // { // #region Members // public int BitBeginPosition // { // get { return _bitBegi...
0c0ed2eaea449c06f20e896adc75ca86176d3bf0
C#
Metodil/SoftUni
/02. Tech Module/Programming Fundamentals/14. Arrays - Exercises/Arrays and Methods - More Exercises/08.UpgradedMatcher/UpgradedMatcher.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _08.UpgradedMatcher { class UpgradedMatcher { static void AddToArray(ref Product[] products, string[] names, long[] quantities, string[] prices) { for (int ...
92b5414195f9b8ec7f640ae781a14d13204b85c7
C#
Exoil/Dekorator
/Dekorator/Additions/DoubleCheese.cs
2.734375
3
using Dekorator.Pizzas; using System; using System.Collections.Generic; using System.Text; namespace Dekorator.Additions { public class DoubleCheese : PizzaDecorator { public DoubleCheese(Pizza pizza) :base(pizza) { } public override string GetDescription() { ...
7ecacf46a7612625de4709e28437d5ede78cd852
C#
IELBHJY/C--projects
/1112_视频学习/01_exercise1/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01_exercise1 { public class Person { //字段 public string _name; public int _age; public char _gener; //属性(作用就是保护字段,对字段的赋值和取值进...
2f8482ff3a113d2520a0f6f55c431b9a7fbc571d
C#
robertwaltham/blackcorejabber
/Alliance.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace BlackCoreJabber { class Alliance { public int ID; public string name; public string ticker; public static List<Alliance> allianceCache; ...
19c4b7adf1aa70705a52ace29e782635d257117b
C#
eliotcowley/Quest
/Quest/Assets/RhythmTool/Scripts/Util.cs
2.953125
3
using UnityEngine; using System.Collections; public static class Util { private static LomontFFT fft = new LomontFFT(); private static float[] magnitude = new float[0]; private static float[] streched = new float[0]; private static float[] mono = new float[0]; public static float[] GetSpectrum(f...
74754c5f499c3bf76dc429aa1ecab03ea17bc729
C#
Solfylte/Load-test-for-Photon-Unity-Networking
/Assets/PUNLoadTest/Scripts/SimplePUNConnection.cs
2.515625
3
using System; using UnityEngine; #if IS_PUN1 using Photon; #elif IS_PUN2 using Photon.Pun; using Photon.Realtime; #endif namespace PunLoadTest { #if IS_PUN1 || IS_PUN2 /// <summary> /// Works on the principle - who first joined the server, he creates a room. Compatible with PUN 1 and 2. /// </summary> #if ...
1a28c0b5e1aaf15b83768131b1be80ad0e0cd827
C#
SmorcIRL/UniversityRepo
/Sem 1 & 2/Programming/Other_Sem_2/Puzzle/Source/GameForm.cs
2.625
3
using System; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Windows.Forms; namespace Puzzle { public partial class GameForm : Form { private int[,] Matrix = new int[4, 4], BufferMatrix = new int[4, 4]; ...