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
683b3b85fdd27377a76df1a1101f93d0537fc140
C#
Minie17/days
/params/params/Program.cs
3.140625
3
using System; namespace param { class Program { static void Main(string[] args) { int add1 = Addition(1); int add2 = Addition(2, 2, 2, 2); int[] addarray = new int[3] { 3, 3, 3 }; int add3 = Addition(addarray); } static int Addition(params int[] values) { ...
cb5028b7006849a1f58ceb3c9420cc63d47ff45a
C#
toshinomi/Windows.Form
/CSharp/ImageProcessing/Lib/ComImageProcessingInfo.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /// <summary> /// 画像処理の設定管理のロジック /// </summary> public class ComImageProcessingInfo { /// <summary> /// 現在の画像処理の名称 /// </summary> public string CurrentImageProcessingName { set; get; } ...
1520d9a3a25471f2e64f627ad7b2f36d25c53a35
C#
joelwjx/space-OSHA-re
/space-OSHA-re/Assets/Scripts/ScaleBounceLoop.cs
2.609375
3
using System.Collections; using UnityEngine; public class ScaleBounceLoop : MonoBehaviour { [SerializeField] private bool playOnAwake; [SerializeField, Min(0)] private float loopTime = 0; [SerializeField] private AnimationCurve xScaleCurve; [SerializeField] private AnimationCurve yScaleCurve; [Ser...
bd5c0932bba35fee57c9ea86c7efc9ba9d191a2d
C#
seasun/Demo
/MyTestProjects/MyManageProject/FactoryMethodPattern/NPowerOperation.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace FactoryMethodPattern { class NPowerOperation : Operation { /// <summary> /// 返回a的b次方减1 /// </summary> /// <param name="a"></param> /// <param name="b"></param> /// <r...
860cb37f9936a75e89201fd8eba8c2f4b050b969
C#
martyna41236/Tetris
/Tetris2019.09.25/Tetris/Tetris/Form1.cs
3.28125
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 Tetris { public partial class Form1 : Form { public Form1() { ...
cbe71dd9aeac57a5971be8d11805fd3e4fd1a8b4
C#
somnathchaudhary/FileUploade
/FileUplode/Controllers/UploadController.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FileUplode.Models; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace FileUplode.Controllers { public class UploadController : Controller { ...
0e898065b44abae211f5b0c6a692f28e481085b4
C#
tonyhallett/MoqProtectedSourceGenerator
/EndToEndXUnit/TestClasses/Tests/MoqProtectedSourceGeneratorTest_HasSource.cs
2.578125
3
using Xunit; namespace EndToEndTests { public class MoqProtectedSourceGeneratorTest_HasSource : MoqProtectedSourceGeneratorTestBase { protected override string Source => @" using System; using Moq; using NUnit.Framework; namespace ClassLibrary1 { public abstract class MyProtected { pr...
c98d4b93c6290f12703080ae047b87219d09099c
C#
Danny-L1u/Personal-Project
/Assets/Scripts/TitleScreen.cs
2.625
3
//Code taken from: https://www.youtube.com/watch?v=zc8ac_qUXQY using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.Audio; /** This class stops the current music if it is not done playing, then plays the menu music. It also plays the selec...
19ffcf1e7d27bad4264030117c5ce453934438dd
C#
nendo-code/Henacat_sharp
/Programs/CookieTest/CookieTest.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Henacat_sharp.servlet.http; using System.IO; namespace CookieTest { public class CookieTest : HttpServlet { protected override void doGet( HttpServletRequest request, HttpServletRe...
0602689255e0154b1989cd3a7bbbcc52694df7b3
C#
maramail/miaobox_open
/Assets/Scripts/PureMVC/Patterns/Mediator/Mediator.cs
2.71875
3
/* PureMVC C# Multi-Core Port by Tang Khai Phuong <phuong.tang@puremvc.org>, et al. PureMVC - Copyright(c) 2006-08 Futurescale, Inc., Some rights reserved. Your reuse is governed by the Creative Commons Attribution 3.0 License */ #region Using using System.Collections.Generic; using PureMVC.Interfaces; #endre...
039f73f53083282b3a376726af924578cf3bafab
C#
MetDaniel/CSharpHomework
/homework8/program1/OrderDetails.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace program1 { [Serializable] public class OrderDetails:Order { public string goodName { get; set; } public double price { get; set; } public OrderDetails(strin...
9903610faa50a3cba5255d0752b518b4659e8bd8
C#
Tonifolgado/LearningByExample
/Generics.cs
3.84375
4
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace LearningByExample1 { class Generics { public void usingGenericMethod() { int[] arrInts = new int[] { 2, 5, 4, 7, 6, 7, 1, 3, 9, 8 }...
867d47d1e9c73fe0a62819ba9cab8cedb649c63f
C#
berbulalauri/web-project-01
/modules-.NET/21-threads/Tutorials/tutorial-02/tutorial-02/Program.cs
3.609375
4
 using System; using System.Threading; namespace tutorial_02 { class Program { static int count = 0; static object locker = new object(); static void Main(string[] args) { Thread thread = new Thread(Proceed); thread.Start(1); Proceed(2); ...
04daa2900790851b0900d934314acf0946c2f355
C#
modios/robust-predicates
/src/RobustPredicates/InCircle.cs
2.71875
3
using System; namespace RobustPredicates { public static class InCirlce { public static double Fast(double[] pa, double[] pb, double[] pc, double[] pd) { double adx = pa[0] - pd[0]; double ady = pa[1] - pd[1]; double bdx = pb[0] - pd[0]; double b...
2657fecfc2183092370eddb8fcf69fd57722dea7
C#
Anonsubmission/DSV
/ASPNetWebStack/DotNetOpenAuth/src/DotNetOpenAuth.OpenId/OpenId/IdentifierContract.cs
2.75
3
//----------------------------------------------------------------------- // <copyright file="IdentifierContract.cs" company="Outercurve Foundation"> // Copyright (c) Outercurve Foundation. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace Dot...
3d6a775dba8de4b29a267e9c48b654b3f4d4a3aa
C#
GediminasMasaitis/MHArmory
/MHArmory/ViewModels/SkillSelectorViewModel.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; using MHArmory.Core; using MHArmory.Core.DataStructures; namespace MHArmory.ViewModels { public enum VisibilityMode { All, Selected, Unselected...
52b2f320551e073897743cb73d16806d49e672ca
C#
johnholliday/structurizr-objects
/StructurizrObjects/StructurizrObjects/ComponentAttribute.cs
2.96875
3
using System; namespace StructurizrObjects { [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] public class ComponentAttribute : Attribute { public ComponentAttribute(string description, string technology, string type = "") { Description = descr...
73aea1aa0a1b1ca8f0cf1bda1a9b145096de24b9
C#
sts-CAD-Software/PCB-Investigator-Scripts
/ASync-Folder/Highlight pins.cs
2.65625
3
//ASynchronous template //----------------------------------------------------------------------------------- // PCB-Investigator Automation Script // Created on 29.04.2014 // Autor Fabio // // Example to highlight pins on top component layer with asynchronous script. //-----------------------------------------...
b5113fdea0d77a09bd77ed718cf209f2f2b64581
C#
rafaelcarlins/Teste_Softplan
/Softplan/Business/TaxaJuros.cs
2.609375
3
 using Newtonsoft.Json; using Softplan.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace Softplan.Business { public class TaxaJuros :ITaxaJuros { HttpClient client = new HttpClien...
d44f0aab85b99fa3dd0e474ea6e72ee34eddaea2
C#
OlegFirumiants-Sela/SAR_Tech-interview-test
/InterviewTest/FirstQuestion/Rectangle.cs
3.4375
3
using System; using System.Collections.Generic; using System.Text; namespace FirstQuestion { class Rectangle : AbstractPolygon, IPolygon { double _width, _length; public Rectangle(double width, double length) { _width = width; _length = length; CalcA...
d46525e42a5be0bac3d21e85aa8541e12d337da8
C#
lynkfox/schoolExampleCode
/C Sharp Programing 2/FreeWeather/FreeWeather1/Controllers/WeatherController.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using FreeWeather1.Models; using System.Net.Http; using Newtonsoft.Json; // For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink...
c5c3a2bc966659dfa91d8c425d202d6a4fe051f5
C#
Yupdown/Project-Isometric
/Assets/Project-Isometric/IsometricGame/Item/ItemContainer.cs
3.046875
3
using System; namespace Isometric.Items { public class ItemContainer { private ItemStack _itemStack; public ItemStack itemStack { get { return _itemStack; } } public bool blank { get { return _itemStack == null; }...
9dea818a76ded40013cc45563834d09dcab32e8b
C#
romulo-ribeiro/Exercism
/teams/padawan-2020-maringa/csharp/react/React.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; public class Reactor { public InputCell CreateInputCell(int value) => new InputCell(value); public ComputeCell CreateComputeCell(IEnumerable<Cell> producers, Func<int[], int> compute) => new ComputeCell(producers, compute); } public ...
f887d9dd1c543edb0f4088035887d13644447f8a
C#
NoumanMalik-grb/phamarchy-systeam
/phamarchy systeam/Controllers/SaleReturn1Controller.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using phamarchy_systeam.Models; using System.Web.Mvc; namespace phamarchy_systeam.Controllers { public class SaleReturn1Controller : Controller { Model1 db = new Model1(); public ActionResult SaleReturnCart() ...
266127cf95b1fc5ae2dfd8b7e9877b621f479f56
C#
CappiJonas/Curso-de-L-gica-de-Programa-o
/Seção 6/Exercícios Propostos/Exercicios_Propostos/Exercicio_8/Program.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Exercicio_8 { class Program { static void Main(string[] args) { int N; string[] sexo; double[] altura; N = int.Parse(Co...
3693db5be8e8753aa18b30ad2696fb6d1f23db78
C#
lacerdaeduardo/SwStarship
/src/SwStarship.Core/Util/SwApiClient.cs
2.5625
3
using Microsoft.Extensions.Configuration; using RestSharp; using SwStarship.Core.Domain.Models; using SwStarship.Core.Generics; using SwStarship.Core.Interfaces; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; namespace SwStarship.Core.Util { public class SwApiClient :...
e040db36e2a90630e1f001307d47138572befc53
C#
gindyo/POS-WPF
/Register.UI/Models/BaseVM.cs
2.671875
3
using System; using System.ComponentModel; using System.Reflection; using System.Runtime.CompilerServices; using Interfaces.VMBased; namespace Register.UI.Models { public class BaseVM<T> : IBaseVM { public BaseVM() { } public BaseVM(T baseInstance) { ...
f366c19cdf484e70e89a9dd31ad852f1a5bdb639
C#
EdwardDobson/CUBER
/Assets/Scripts/Platforms/Rotate.cs
2.71875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public enum RotateDirection { None, Right, Left, } public class Rotate : MonoBehaviour { public float Speed; public RotateDirection dir; // Start is called before the first frame update void Start() { ...
7d137daac10eb4f3a2e0146e4f49e59776a2b8e0
C#
Mozlite/aspnetcore
/Mozlite.Mvc/AdminMenus/MenuProviderFactory.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Caching.Memory; namespace Mozlite.Mvc.AdminMenus { /// <summary> /// 菜单提供者工厂实现类。 /// </summary> public class MenuProviderFactory : IMenuProviderFactory { private readonly IEnumerable<IMenuProvider...
78bf4df9538f79d7e7cc4c7c114a2564f320147d
C#
renansalvino/MVCSenai
/McBonaldsMVC/Repositorios/ClienteRepository.cs
2.828125
3
using Microsoft.Win32; using System.Collections.Generic; using System.IO; using System.Security.AccessControl; using System.Text.RegularExpressions; using System; using Hamburgueria_WebMVC.Models; namespace Hamburgueria.Repositories { public class ClienteRepository : BaseRepository { public static uint CON...
02365c4c93e92814fa944a306cebb3294ca6a796
C#
BerniceChua/PluggableAITutorial
/Assets/PluggableAI/TargetsAndArrayList.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public static class TargetsAndArrayList { /*[HideInInspector]*/ public static List<GameObject> m_TargetsList = new List<GameObject>(); //// Use this for initialization //void Start () { //if (m_Targe...
905cc2a062c8939bbade8831c3c58e451d19d66a
C#
Gribbleshnibit8/CKAN-plugins
/Parts Pruner/FilePruner.cs
2.859375
3
using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Remoting.Messaging; using CKAN; using PartsPrunerPlugin; namespace PartsPruner { class FilePruner { /// <summary> /// Takes a .prnl file and determines if it is fully or partially pruned /// </summary> /// <param name...
c13cca448c3a77f06ce89948e3d63b70096f391a
C#
juan102/Parcial2
/Decorator/FastSSD.cs
2.671875
3
using System; using System.Collections.Generic; using System.Text; namespace Decorator { public class FastSSD : Decorador { private Computador ComputadorActual; public FastSSD(Computador computador) { this.ComputadorActual = computador; } public override de...
8390aa56ce02b15748194e9213617d9ca6962933
C#
EricZhaoCherryTomato/ConnectFour
/ConnectFour/Game.cs
3.125
3
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Linq; namespace ConnectFour { public class Game :IGame { private readonly IBoard _board; private readonly IPlayer _player; private readonly IJudge _judge; public ...
6fe05fbdaeaaea19f329b67e3d0ee5743bbf95a6
C#
jacksonh/manos
/src/Manos/Manos.Http/HttpParser.cs
2.53125
3
// // Based on http_parser.java: http://github.com/a2800276/http-parser.java // which is based on http_parser: http://github.com/ry/http-parser // // // Copyright 2009,2010 Ryan Dahl <ry@tinyclouds.org> // Copyright (C) 2010 Tim Becker // Copyright (C) 2010 Jackson Harper (jackson@manosdemono.com) // // Permission is ...
2678aea007a2705921b3c15673b1e41584a43e1b
C#
shopathome-engineering/message-queue
/Exceptions/MessageSerializationFailureException.cs
2.984375
3
using System; namespace ShopAtHome.MessageQueue.Exceptions { /// <summary> /// Indicates a failure in serializing or de-serializing a Message object /// </summary> public class MessageSerializationFailureException : Exception { /// <summary> /// Constructs a new MessageSerializatio...
64c44eaa51c4ac54cfe7072bc3933dfac218daf6
C#
ErickTejaxun/Usac-Forms
/Proyecto1/UsacForms/xForms/xForms/Form1.cs
2.6875
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 xForms.Clases; namespace xForms { public partial class Form1 : Form { public Form1...
3046f315322987c0481ad50827302ce18126e3df
C#
navneetkaurbedi6/SwarajIP
/SwarajInsurancePortalDA/Common/CollectionHelper.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Data; using System.Text; using System.Reflection; using System.IO; using System.Web; namespace SwarajInsurancePortalDA.Common { public class CollectionHelper { /// <summary> /// Converts datatable to genric class ...
874f9af0fd034a3fcae1ea78b45ad5eec2ef64e0
C#
leonmeijer/mobile
/Phoebe/Data/SqlExtensions.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Toggl.Phoebe.Data.DataObjects; namespace Toggl.Phoebe.Data { /// <summary> /// This extension class contains everything that deals with raw SQL. /// </summary> public static class SqlExtensions { ...
e098fb84ead2f9b23c9513329c90c401174dc296
C#
sholev/SoftUni
/C#-WebDeveloper-3.0/C#-OOP-Basics-June-2016/Exercises/DefiningClasses/Person/Startup/Startup.cs
3.609375
4
namespace Person { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; class Startup { static void Main(string[] args) { ThirdProblemTest(); } private static void ThirdProblemTest() { var c...
852363653e57864e6c57948af1f20619678a5554
C#
Yongfou/jo
/SocketServeur/Serveur/Serveur.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ServeurData; using System.Net.Sockets; using System.IO; using System.Threading; using System.Net; namespace Serveur { class Serveur { const string FICHIER = "..\\..\\..\\ListeCli...
d60484173c73447c30a258a573784e194347ba44
C#
kinnejs/Komodo_DevTeams
/DevTeamsProject/DevTeam.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DevTeamsProject { public enum TeamNam { Alpha = 1, Beta, Gamma } public class DevTeam { //try instead of having separate name and Id for de...
02efe8e069651111d1eb824bd7ce8201fea496a6
C#
chrlemay/praktijksplitsing
/SyntraWestCSharpExercises/BuildingBlock3_Selectie/Opdracht03_07Portkosten.cs
3.125
3
using System; namespace SyntraWestCSharpExercises.BuildingBlock3_Selectie { public class Opdracht03_07Portkosten : ExerciseBase { public override void RunExercise() { string binnenBelgie, genormaliseerd; float gewicht, bedrag; Console.WriteLine("Versturen b...
2826e5eb3cc99e001899a9ed1a8150bdcd1c35e4
C#
j-ronnas/UnstableEcosystems
/Assets/SoundManager.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SoundManager : MonoBehaviour { AudioSource source; public static SoundManager instance; private void Awake() { instance = this; source = GetComponent<AudioSource>(); } public...
81879af5b2a1a7152add24cf3adce441ba855088
C#
piekstra/MiscProjects
/C#/HackerRank/BalancedBrackets/ctci-balanced-brackets.cs
3.09375
3
using System.CodeDom.Compiler; using System.Collections.Generic; using System.Collections; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Serialization; using System.Text.RegularExpressions...
fba9ded90a8f0c2e3f128b285fff270dad81992d
C#
OsvaldoJ/BeetleX
/samples/Echo.Server/Program.cs
2.609375
3
using BeetleX; using BeetleX.EventArgs; using System; namespace Echo.Server { class Program : ServerHandlerBase { private static IServer server; public static void Main(string[] args) { server = SocketFactory.CreateTcpServer<Program>(); //server.Opt...
def8b0c34301cb93580dbcf0535aee179cf38856
C#
teodorro/Evolution1
/TestModel2/TestUpgrade/TestUpgradePoisonous.cs
2.578125
3
using System.Collections.Generic; using System.Linq; using Model; using Model.Upgrades; using Xunit; namespace TestModel.TestUpgrade { public class TestUpgradePoisonous { private IAnimal _victim; private void OnVictimChoose(object sender, VictimChooseEventArgs args) { if (...
cddf431b45b5b921cbf7d3504cfc770c1fd0f539
C#
elinaach/assignments
/Branching/assignment2.cs
3.71875
4
using System; public class Branching { public static void Main(string[] args) { int dayNumber; Console.WriteLine("Please enter the number of the day:"); if (!Int32.TryParse(Console.ReadLine(), out dayNumber) || dayNumber < 1 || dayNumber > 7) { Console.WriteLine("Inpu...
0f180ea08c8188b54dd2579d77f3bb8754fe397b
C#
mghall25/CSharp-Course-Practice-Projects
/ChallengeSimpleDarts/ChallengeSimpleDarts/Score.cs
3
3
using Darts; namespace ChallengeSimpleDarts { public static class Score { public static int CalcDartThrow(Dart dart) { int throwScore = dart.ThrowScore; // calc non-bullseye if (throwScore != 0) { if (dart.ThrowInRing == "inner")...
9d735e60871602e841928905c1833db2416105b9
C#
debop/NFramework
/test/NFramework.Test/Validations/ValidatorToolFixture.cs
2.515625
3
using System; using NUnit.Framework; using SharpTestsEx; namespace NSoft.NFramework.Validations { [Microsoft.Silverlight.Testing.Tag("Validations")] [TestFixture] public class ValidatorToolFixture { [Test] public void GetValidatorTest() { var validator = ValidatorTool.GetValida...
869f0b0051d81fe913c9b2208aa2ea720f953fd9
C#
parzital/CSharp-4-Basic-Apps
/(Maths Game) Matematik Oyunu/Matematikoyunu/KayitAc.cs
2.640625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Matematikoyunu { public partial class KayitAc : Form { public...
06b157af27f1c8b3ec9e9abd7751e507db3744ff
C#
werdnalt/TowerGame
/Assets/Scripts/MinionSpawner.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System; public class MinionSpawner : MonoBehaviour { public Path path; public int owner; public Path.Direction pathTraversalDirection; public float timeBetweenGroupSpawns = 6f; public GameObject minion; public ...
013e472da21e29c9f18fc2adc3f1682b2126f67d
C#
changweihua/CLib
/Image/CImageEdge.cs
2.578125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; namespace CLib.CImage { #region 关于 /************************************************************************************* * CLR 版本: 4.0.30319.18034 * 类 名 称: CImageEdge * 机器名称: LUMIA800 ...
40cb48a07a907394f2bed6fce38e0c63e6346900
C#
salileo/WallpaperManager
/WallpaperManager/TrayIcon.cs
2.59375
3
using System; using System.Drawing; using System.IO; using System.Windows; using System.Windows.Forms; using System.Windows.Resources; namespace WallpaperManager { class TrayIcon { private MainWindow parentWindow; private NotifyIcon trayIcon; private MenuItem openWindowMenuItem; ...
d553fe86d8059ab747b790de0e893582d721f14c
C#
robrich/aspnet-dos-and-donts-for-highly-maintainable-code
/03. Action Filters/ActionFilters/Filters/HelloActionFiltersAttribute.cs
2.875
3
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; namespace ActionFilters.Filters { public class HelloActionFiltersAttribute : ActionFilterAttribute { public override async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutio...
c855fc8746a85fad94582b28de93cb4119d69d41
C#
YugoAnzai/Dunk-Line
/Assets/Scripts/Save/PlayerPrefsManager.cs
2.609375
3
using System.Collections.Generic; using UnityEngine; public enum SaveKey { HighScore = 0, LastScore = 1, } public class PlayerPrefsManager { private enum ValueType { INT, FLOAT, BOOL, STRING } private static Dictionary<SaveKey, string> keyNames; private stat...
de31d375eee8e5d7e76c0b916ccd2677effe79a4
C#
jiangyimm/DonePad
/DonePadClient/MongoDb/MongoDbProvide.cs
2.828125
3
using MongoDB.Driver; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using DonePadClient.Config; namespace DonePadClient.MongoDb { public class MongoDbProvide { static MongoDbProvide() { Init(); } private static Mo...
1de20a994c30d77971ac687fe521a2d74e439cd0
C#
GuilhermeMatheus/alura-csharp-poo2
/src/06-ByteBank-Construtores/ContaCorrente.cs
3.46875
3
using System; namespace _06_ByteBank_Construtores { public class ContaCorrente { public static int NumeroDeContasCriadas { get; private set; } private int _numero; private int _agencia; private double _saldo; private Cliente _titular; public int Numero ...
7f07f9080bf23b583d007d7ae18854c12a1d0891
C#
Cinchoo/ChoETL
/src/ChoETL/Common/Dynamic/ChoDynamicClassFactory.cs
2.71875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Runtime.Serialization; using System.Text; using System.Threading; using System.Threadin...
2884b7986b1b583c67eefe7ca966bdab7e8b84b0
C#
IgnacioFigueroa/proyecto-grupo-03
/SimuladorHorario/SimuladorHorario/EventoPersonal.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimuladorHorario { [Serializable()] public class EventoPersonal:Evento { public string nombre { get; private set; } public string hora { get; private set; } ...
a6ee07d6a2bf33bc8e7ab02e86b25bb54a000425
C#
Soucre/Working_git_vfs
/VfsInformationCustomerService 2010/Services/Crawler/Page.cs
2.96875
3
using System; using System.Collections.Generic; using System.Text; namespace VfsInformationFeedService.Crawler { public class Page { #region Constructor /// <summary> /// Default constructor. /// </summary> public Page() { } #endregion #region Private I...
db3875985eca5646cc854a47dbaa1198fefa87d0
C#
YassineMarroun/CSharp-Basics2021
/Ejemplo17-List/Program.cs
3.71875
4
using System; using System.Collections.Generic; namespace Ejemplo17_List { /* * Ejemplo de uso de lista */ class Program { static void Main(string[] args) { // Creo la lista List<char> listaABC = new List<char>(); // Añadimos los elementos ...
407d4fd61232678c0185693e2e2d410b2cdf914e
C#
unixcrh/Motion
/Motion/ZForge.Motion.Core/CameraStatus.cs
2.890625
3
using System; using System.Collections.Generic; using System.Text; namespace ZForge.Motion.Core { public class CameraStatus { private int status; public const int STARTED = 0x01; public const int STOPPED = 0x02; public const int PAUSED = 0x04; public CameraStatus(int status) { this.status = status; ...
561a3b2c2e22625a5a878908dcef38fd1574310b
C#
StoQK/CSharp-II
/5. UsingClassesAndObjects/04. SurfaceOfTriangleCalculation/SurfaceOfTriangleCalculation.cs
4.5
4
//Write methods that calculate the surface of a triangle by given: //Side and an altitude to it; Three sides; //Two sides and an angle between them. Use System.Math. using System; namespace _04.SurfaceOfTriangleCalculation { class SurfaceOfTriangleCalculation { static double CalculateSurfaceOfTriangl...
757e0c344cf0e7edf7e643d40fb1f12c00281fcf
C#
FilipeAndre-Silva/learning_csharp
/Tutorial C#/Variáveris/Program.cs
3.609375
4
using System; namespace Variáveris { class Program { static void Main(string[] args) { //Variáveis em C# string vazia; vazia = "Atribuindo valor"; Console.WriteLine(vazia); string nome_completo = "Filipe André da Silva...
b4959bb66792a62fbc0d5f4a882bc5b41d56a46d
C#
gongjiaji/RecipeSlave
/Assets/Scripts/enemy/EnemyController.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyController : MonoBehaviour { public float hp; public int attack; public bool isDead; public GameObject[] loots; private GameObject player; public Vector2 dropRate; public Vector3 lootOffset; ...
d7b328706360692c611fe27ef6344b2ca3c5d9e8
C#
anycmd/anycmd
/src/Anycmd.Xacml/Runtime/Functions/BaseAtLeastOneMemberOf.cs
2.796875
3
using Anycmd.Xacml.Interfaces; using System; namespace Anycmd.Xacml.Runtime.Functions { /// <summary> /// BAse class for all the implementations of the AtLeastOneMemberOf&gt;type&lt; functions. /// </summary> public abstract class BaseAtLeastOneMemberOf : FunctionBase, ITypeSpecificFunction { #region IFunction ...
a360f346efc5e5c7b0084f7431a85346fd66c117
C#
PawelGerr/Thinktecture.Runtime.Extensions
/samples/Thinktecture.Runtime.Extensions.Benchmarking/Database/Name.cs
2.90625
3
using System; using System.ComponentModel.DataAnnotations; namespace Thinktecture.Database; [ValueObject] public sealed partial class Name { private readonly string _value; static partial void ValidateFactoryArguments(ref ValidationResult? validationResult, ref string value) { if (String.I...
33db938c1e4cd91b85c86ca331930800fe9f7764
C#
gitter-badger/wham
/src/WarHub.Armoury.Model.BattleScribeXml/GuidMapping/GuidControllableBase.cs
2.59375
3
// WarHub licenses this file to you under the MIT license. // See LICENSE file in the project root for more information. namespace WarHub.Armoury.Model.BattleScribeXml.GuidMapping { using System; using System.Collections.Generic; using System.Xml.Serialization; public abstract class GuidControllableB...
4042b9240b477caef3430f0dbb45c9c53713c9b6
C#
reiss-josh/wallrun
/Assets/SabreCSG/Scripts/Brushes/CompoundBrushes/TrimBrush.cs
2.515625
3
#if UNITY_EDITOR || RUNTIME_CSG using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Sabresaurus.SabreCSG { [ExecuteInEditMode] public class TrimBrush : CompoundBrush { /// <summary> /// The size of the trim. /// </summary> [Serializ...
1ff25f3dce24dc0789dd8fce5d4ce25a206ea259
C#
shendongnian/download4
/latest_version_download2/60642-11005636-28633286-4.cs
3.25
3
public class LambdaExpressionAttribute : Attribute { public LambdaExpression MyLambda { get; private set; } //ctor public LambdaExpressionAttribute(Type hostingType, string filterMethod) { MyLambda = (LambdaExpression)hostingType.GetField(f...
72265be0a9af068f2fcbc2d2ce5b12d96c84eaa3
C#
MrDywar/cart-service
/src/CartService.Application/Repositories/ShoppingCartRepository.cs
2.671875
3
using CartService.Application.Services; using CartService.Domain.Entities; using Dapper; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CartService.Application.Repositories { public class ShoppingCartRepository : RepositoryBase, IShoppingCartRepository { p...
f9b0b4865bda21b26ca7798f25c747e332a6cc0a
C#
Anii92/ChatWindowsForms
/Business.Logic/LoginBusiness.cs
2.609375
3
using Common.Logic.Models; using DataAccess; using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Business.Logic { public class LoginBusiness: ILoginBusiness { private Repository repository; p...
6a0fd730ae401b6c4e0c79c00ce295f8ea91b812
C#
mahal1234/InstituteMVC_Project
/InstituteMVC_Project/Controllers/SalaryController.cs
2.78125
3
using InstituteMVC_Project.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace InstituteMVC_Project.Controllers { public class SalaryController : Controller { // GET: Salary //object of the ADO.Net Model class to conect ...
9ce80a1b90de2410fb4cd8d3468724cf51fe4a36
C#
mati4ever/FPPG-CRM-v2
/UI CRM/AddTaskForm.cs
2.5625
3
using FPPG_CRM_v2; 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 UI_CRM { public partial class AddTaskForm : Form { ICaller ...
fdd8f99e948b89a6071aa6852eac908237989174
C#
nikita262001/CinemaBuyTicket
/CinemaNick/CinemaNick/DataBase/AccountDB.cs
2.9375
3
using SQLite; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace CinemaNick { public class AccountDB { private List<Account> _startData = new List<Account> // стартовые аккаунты админов { new Account ...
990d55c4018ec7c23d627cf2d71c6c8ab4a2e282
C#
chris24sahadeo/projects
/mopd_programming_exercise/LibraryApp/LibraryApp/Logic/BookActions.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using LibraryApp.Models; namespace LibraryApp.Logic { public class BookActions : IDisposable { private LibraryContext __db = new LibraryContext(); public bool AddBook(string book_id, string book_name, string...
19a0c174d1c96dbf3b2e8df01159a50c81fe229c
C#
RMSpratt/Design-Patterns-CSharp
/CommandPattern/Example/PlayerController.cs
2.859375
3
/* Class: PlayerController * Description: Invoker class to handle command requests and invoke them on the * receiver (Player) class. */ public class PlayerController { List<UserCommand> playerCommands; UserCommand lastCommand; public PlayerController() { playerCommands = new List<UserCommand...
7eca226dbfa7aed7fac8710fe1db7ab325b9b0d0
C#
Kingefosa/QuickGenerate
/quickgenerate/complex/TitleGenerator.cs
3.4375
3
using System.Text; using QuickGenerate.Implementation; using QuickGenerate.Primitives; namespace QuickGenerate.Complex { public class TitleGenerator : Generator<string> { private readonly Generator<string>[] wordGenerators = new Generator<string>[] { new...
6ba339f64d50fdc7c732505e9513ea809e67b993
C#
BucurCosmin/HomeMonitor
/WebMonitor/Services/SensorsDataWeather.cs
2.96875
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WebMonitor.Data; using WebMonitor.Models; namespace WebMonitor.Services { public class SensorsDataWeather : ISensorsDataWeather { private readonly ApplicationDbCo...
f2f4841c3b56a8c1f687ff2773d228f787dfc412
C#
auxo86/-
/清單式的內容/Controllers/HomeController.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using 清單式的內容.Models; namespace 清單式的內容.Controllers { public class HomeController : Controller { // GET: Home public ActionResult Index() { //DropDownBox ListBox ...
3529f9c5314e52fb49ee7602c95035f47c3b269a
C#
patschm/MOC20483C_01_2021
/Module_6/Serializers/Program.cs
3.046875
3
using Bogus; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Xml.Serialization; namespace Serializers { class Program { static void Main(st...
523cac0e38aec4e7ed49401d75baa829af9a9062
C#
delapiero/csharp-design-patterns
/Obserwator/ObserwatorB.cs
2.71875
3
using OxyPlot; using OxyPlot.Axes; using OxyPlot.Series; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Obserwator { public class ObserwatorB: IObserwator, INotifyPropertyChanged { ...
c1bb61c34b40b7f7fe68308745a8eea7366ec4ab
C#
EugenMayer/mvvmcrossDAL
/Utils/ModelChangedEvent.cs
2.640625
3
using System; namespace Cirrious.CrossCore.MvvmCrossDAL { public delegate void ModelChangedEventHandler(object sender,ModelChangedEventArgs args); public enum ModelChangeOperation { Add, Update, Delete, DeleteAll } public class ModelChangedEventArgs: EventArgs ...
2440b2dd38cee540a32f695b1e0d0fdf62e15f32
C#
PALNI/MAgPIE
/Shared Library/Pipeline/CountingEnumerable.cs
3.015625
3
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.Contracts; namespace ZondervanLibrary.SharedLibrary.Pipeline { public class CountingEnumerable<T> : IEnumerable<T> { private readonly IEnumerable<T> _enumerable; public CountingEnumerable(IEnume...
10b6ccf5d5e1d0b807c65abcdf29538c92f7276d
C#
nodoid/GridClick
/GridClick/GridClick/GridClickPage.cs
2.765625
3
using System; using System.Collections.Generic; using Xamarin.Forms; namespace GridClick { public class GridClickPage : ContentPage { public GridClickPage() { if (Device.OS == TargetPlatform.iOS) Padding = new Thickness(0, 20, 0, 0); BackgroundColor = ...
29aeda3899eaaa3d01e25f8cfbc9e18908b664e5
C#
shendongnian/download4
/first_version_download2/115954-8047688-17917947-2.cs
2.6875
3
public bool EndOfStream { get { if (this.stream == null) { __Error.ReaderClosed(); } if (this.charPos < this.charLen) { return false; } int num = this.ReadBuffer(); return num == 0; } }
a885f864fe8c35a891906c0b0dba619810e10d39
C#
dotnatcore/dotvuecore
/src/DotVueCore.SockJs/Route.cs
2.515625
3
using System.Text.RegularExpressions; namespace DotVueCore.SockJs { internal class Route { public Route(string method, int type, bool regex, string match, SessionHttpContextHandler handler) { Method = method; Type = type; if (regex) { ...
7eafcb06b7db01cb725c1d692c26d43f892c947f
C#
jjzhang166/tkSim
/Assets/scripts/ColliderToChildrens.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ColliderToChildrens : MonoBehaviour { // Use this for initialization void Start () { // Iterate through all child objects of our Geometry object foreach (Transform childObject in transform) { // First ...
82664ab10613b04804dc08e98e6dd865f2973001
C#
OpenRIAServices/OpenRiaServices
/src/VisualStudio/Templates/CSharp/BusinessApplication/Assets/Resources/ApplicationResources.cs
2.546875
3
namespace $safeprojectname$ { using System; using System.ComponentModel; using System.Globalization; using System.Windows.Browser; /// <summary> /// Wraps access to the strongly-typed resource classes so that you can bind control properties to resource strings in XAML. /// </summary> p...
ce6f4878e726ffcfef343e5a4bc9963acc3fe6d8
C#
masaru-b-cl/ngtnet2-fizzbuzz
/FizzBuzz.Test/FizzBuzzTest.cs
3.0625
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace FizzBuzz.Test { [TestClass] public class FizzBuzzTest { private FizzBuzzer fizzBuzzer; [TestInitialize] public void SetUp() { fizzBuzzer = new FizzBuzzer(); } [TestMethod] public void...
4e1eb202c4a355aafdd900e6c77200832a2e1766
C#
jeisonnunez/Portafolio-Proyectos
/LoginSystem/PresentacionWPF/Gestion/ModelTipoCambio/ModelTipoCambio.cs
2.578125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Vista.Clases_Basicas; namespace Vista.Gestion.ModelTipoCambio { public class ModelTipoCambio: INotifyPropertyChangeObservable,IDataErrorInfo { ...
8be9c8be64aec36dae73cb7e09401871baa9344c
C#
alexjo24/Learning_C_Sharp
/Algorithms/SelectionSort/Program.cs
3.703125
4
using System; namespace Program { class Program { static void Main(string[] args) { Random rnd = new Random(); int Min = -100; int Max = 100; int[] randomArr = new int[Max]; for (int i = 0; i < Max; i++){ randomArr[i]...
fe4e0c17bb94f89e81dd5c3d4d46a676cee8afd3
C#
Komplementariteten/dotnet
/conture-detect/Image/BmpTypes.cs
2.59375
3
using System.Runtime.InteropServices; using System.Text; namespace Image { [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct BmpFileHeader { public ushort BfType; public uint BfSize; public uint BfReserved; public uint BfOffBits; public override string ...
dbd6c11125a00f5de1a76d9ec0278eca847f25b6
C#
Engin-Boot/modularity-c-AleenaSaleem
/TelCo.ColorCoder/ColorCode.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; using System.Drawing; namespace Telco.ColorCoder { class ColorCode { internal static Color[] colorMapMajor; internal static Color[] colorMa...
2237586a8c800ad9b2ac9c050bdc835c47f63c0f
C#
Peter-Georgiev/Programming.Fundamentals
/ArraysAndMethods-Exercises/04.NthDigit/NthDigit.cs
3.96875
4
using System; class NthDigit { static void Main() { int readInteger = int.Parse(Console.ReadLine()); int index = int.Parse(Console.ReadLine()); byte result = FindNthDigit(readInteger, index); PrintNthDigit(result); } static byte FindNthDigit(long readInteger,...
4a500b48a23297af18e5c70fdfc01ee281033e15
C#
konolga/bowling-game
/ServerAPI/Controllers/UsersController.cs
2.5625
3
using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using ServerAPI.Data; using ServerAPI.Infrastructure; using System.Collections.Generic; using Microsoft.Extensions.Logging; namespace ServerAPI.Controllers { [ApiController] [Route("api/[controller]")] public class UsersController : ControllerB...
9f2d0f1e9d1ecf63e23b46cab5bb3f58b505b70b
C#
devsinsight/santex.league
/Santex.League.Repository/Repository.cs
2.8125
3
using Microsoft.EntityFrameworkCore; using Santex.League.Domain.Repository; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace Santex.League.Repository { public class Repository<T> : IRepository<T> where T : ...
375148b0655a939f8e336e30b7cfae9fdbdb8d5e
C#
NaylonBrando/engdemrg-ders-3-dot-net-core
/OOP2/Customer.cs
2.65625
3
using System; using System.Collections.Generic; using System.Text; namespace OOP2 { class Customer { //Classlarda özellik ve operasyon tutarız. //Özellik tututlan yerde operasyon tutulmamalı, operasyon tutulan yerde özellik tutulmamalı. //Özellik tutulan Classlar varlıktır. pub...
5a438d59a224eb15fed87da505d64717716b99a9
C#
marcosdosea/CatalogarPatrimonio
/Codigo/CatalogarPatrimonio/Service/DialogoServicoService.cs
2.65625
3
using Core; using Core.DTO; using Core.Service; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Service { public class DialogoservicoService : IDialogoservicoService { private readonly CatalogarPatrimonioContext _context; public DialogoservicoSe...