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
aa85b05cebfe3d6a854cab32c343d0ae80076fd3
C#
Gcrouzet/CDA
/CDA/src/FOAD_C#/ExercicesWinform/Calculatrice - Copie/Additionneur.cs
2.65625
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 Calculatrice { public partial class Additionneur : Form { private int somme = ...
8a348c306ea54ee90353e1da93f4178ed19d4b8c
C#
gitAakash/NewsIndia
/Common/EmailHelper.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Net.Mail; using System.IO; using System.Text; using System.Configuration; using System.Net; namespace Common { /// <summary> /// Summary description for EmailHelper /// </summary> public class EmailHelper...
ebd26d1f6a011ffca18d61ecfccfe49dd8b0d6b0
C#
matthewd673/RUINS
/RUINS/PngToArray.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace RUINS { public class PngToArray { /// <param name="pngName">Use a 20x20 png, don't stick ".png" at the end</param> public static int[,] c...
d8ebfa14fdb0a678abe7ffb8af0dd46f47595f44
C#
toketamas/mintaprogik
/WinFormsEvents/WinFormsApp1/Element.cs
2.84375
3
using System.Windows.Forms; namespace WinformEvents { class Element { private string objectType; private TextBox textBox; private CheckBox checkBox; private string origString; private bool origState; public Element() { } public Element(...
cff04a6d8db20fd3d7a6dcf50c873470bfe2b960
C#
kobz2414/SAD2
/SAD2/frmStockRecordHistory.cs
2.515625
3
using MySql.Data.MySqlClient; using System; using System.Collections; 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 SAD2 { public partial class frmSto...
d2214ac9696ae2d9a958def541bd7d6340a7ec8a
C#
iherak/CellarJournal
/CellarJournal.Model/Wines/ActivityHistory.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; namespace CellarJournal.Model { public class ActivityHistory { public List<KeyValuePair<DateTime, string>> _activities; public ActivityHistory() { _activities = new List<KeyValuePair<DateTime, string>>(); ...
8186fa806081a1e37ad9363ddadabbf89a404f46
C#
Affections/Exercises-Functional-Programming
/Problem 6. Reverse and Exclude/Program.cs
3.484375
3
using System; using System.Collections.Generic; using System.Linq; namespace Problem_6._Reverse_and_Exclude { class Program { static void Main(string[] args) { var input = Console.ReadLine() .Split(new string[] { " " }, StringSplitOptions.None) .Sele...
527293485415d8a8e666a8d0b8753ab77472236c
C#
johnnyasantoss/roslyn-analyzers
/Tests/Analyzers.Tests/_TestEnvironment/Base/CSharpDiagnosticAnalyzerTest.cs
2.59375
3
using Analyzers.Tests._TestEnvironment.Roslyn.DiagnosticAnalyzers; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; using Shouldly; namespace Analyzers.Tests._TestEnvironment.Base { public abstract class CSharpDiagnosticAnalyzerTest<T> : FileReaderTest where T : DiagnosticAnalyzer, ...
9461f6954542d8cd06e215ffba4d0d19ede88c0b
C#
DemoSourceForTeam/TSDAccounting
/TSD.AccountingSoft.DataObjects/SqlServer/Dictionary/SqlserverElectricalWorkDao.cs
2.515625
3
 using System; using System.Collections.Generic; using System.Data; using TSD.AccountingSoft.BusinessEntities.Dictionary; using TSD.AccountingSoft.DataAccess.IEntitiesDao.Dictionary; using TSD.AccountingSoft.DataHelpers; namespace TSD.AccountingSoft.DataAccess.SqlServer.Dictionary { /// <summary> /// Class ...
8b652f9a8e9e5eccc4301ff4795dcc1f8c35e508
C#
chandana-rao/CodeAnalysisTool
/Project 4/Element/Element.cs
2.984375
3
////////////////////////////////////////////////////////////////////////////////////////// // Executive.cs - Data Structure for Type and dependency analysis // // Language: C#, 2017, .Net Framework 4.6.1 // // Application: Project #3, CSE681 Fall 2018 ...
e92f9672a1f307c796be2b0a0c7209943166e840
C#
icarousfff/yolov5-net
/src/Yolov5Net.App/Program.cs
3.015625
3
using System; using System.Collections.Generic; using System.Drawing; using Yolov5Net.Scorer; using Yolov5Net.Scorer.Models; namespace Yolov5Net.App { class Program { static void Main(string[] args) { using var image = Image.FromFile("Assets/test.jpg"); using var score...
0030d09780519b0bb2f80fa28476517131222a9b
C#
FineRedMist/Compression
/OneOddSock.IO/BitStreamWriter.cs
2.90625
3
/* Copyright 2012 Brent Scriver Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
50ca4f662d472413273a7f3c3258af82ffe620b5
C#
teunw/Dash-Cap
/Assets/Scripts/TeamCollector.cs
3.3125
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using Assets.Scripts; public static class TeamCollector { /// <summary> /// The first team. /// </summary> private static List<MemberData> team1 = new List<MemberData>(); /// <summary> /// The second team. ///...
a183384867f32e00fab9edfe178c54b736275ea7
C#
barry-jones/live-documenter
/Source/TheBoxSoftware.DeveloperSuite.LiveDocumenter/Pages/Elements/SeeAlso.cs
2.765625
3
 namespace TheBoxSoftware.DeveloperSuite.LiveDocumenter.Pages.Elements { using System.Windows.Documents; using TheBoxSoftware.Reflection.Comments; /// <summary> /// Represents a link that is to be displayed in a see also section /// of the document. This currently relates to the seealso xml code ...
678eff8eeee5fa1dfbe00f0f58cae913ebbb2815
C#
Gal-Klein/azuremeetupjuly17
/acsmeetup/ACSMeetup.Web.API/Models/Settings.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ACSMeetup.Web.API.Models { public static class Settings { public static string HelpMessage = "This is a Meetup app, do not expect too much. Just ask: What's the lates on a news subject, or read me the us new...
556104dff081287a9a1e164dfd4f20d30c9e99e8
C#
d1lm/ZombieShmup
/Assets/Scripts/Hunter/PlayerController.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /* In order to implement the player movement and have the player look at whatever the mouse is pointing at, we followed a video tutorial by the YouTuber "gamesplusjames" Specifically, we referenced his video "Unity Top Down Shooter #1 -...
bdeee79f8c41ebdfaed37a08d4795897b65bfa1c
C#
eduardorcosta/Poker
/Poker Games/PokerSharp-master/HandSpecifications/CardsOfAKindSpecification.cs
2.953125
3
using System; using System.Linq; using System.Collections.Generic; using PokerSharp.Cards; using PokerSharp.Hands; namespace PokerSharp.HandBuilders { abstract class CardsOfAKindSpecification : HandSpecification { protected int numberOfCards; protected Type handClass; protected CardsOfAKi...
eae2e96d99637db10120d24c992b89f05141cd60
C#
Uzumaki2205/API-Templater-Report-v2
/API-Templater-Report/Controllers/FillDocxController.cs
2.5625
3
using API_Templater_Report.Models; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Web; using System.Web.Http; namespace API_Templater_Report.Controllers { /// <summ...
f481df85b5be4f05b5c403e6fb45c7c1d294531a
C#
SeanJuice/MVC-Crud-Repository
/Repository/StockRepository.cs
2.71875
3
using MVCAndOOP.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace MVCAndOOP.Repository { public class StockRepository: IEStockRepository,IECartRepository { public List<Models.Product> SeletctALLPS() { return Stock.SelectList(); ...
709f99dae924fb86d3026a72ff7a763c91f15752
C#
OpenLocalizationTestOrg/ECMA2YamlTestRepo2
/fulldocset/add/codesnippet/CSharp/t-system.codedom.codetyp_6_1.cs
3.125
3
// Creates an expression referencing the System.DateTime type. CodeTypeReferenceExpression typeRef1 = new CodeTypeReferenceExpression("System.DateTime"); // Create a C# code provider CodeDomProvider provider = CodeDomProvider.CreateProvider("CSharp"); // Gen...
5839a13e2731e4c8ebaf0e6a94cb334ff60af36b
C#
deepfry3/AMAZEing
/Assets/Scripts/Systems/SkyboxController.cs
2.8125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /* Author: Blake, Cameron, Declan * * SkyboxController is a Singleton used to manage the rotation of the Skybox camera * and Sunlight within the skybox. * * It can be accessed via SkyboxController.Instance. */ /// <summary> /// Ma...
417c8c97a2247d3ba131fe14ffeb56bc8f89c555
C#
alexnaraghi/unity-architectures
/Assets/Implementations/Kiss/Scripts/TransitionOnKeyPress.cs
2.71875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Kiss { /// <summary> /// Moves to the next state when a key is pressed. /// </summary> [RequireComponent(typeof(StateTransition))] public class TransitionOnKeyPress : MonoBehaviour { ...
17aa6e66ac6b22c473e735a841eb40879b1c0570
C#
rohitgit2k18/notifitadmin
/bkp-06-09-2018/Archana/NewAllMarkPulished/Install/Default.aspx.cs
2.578125
3
//----------------------------------------------------------------------- // <copyright file="Default.aspx.cs" company="Able Solutions Corporation"> // Copyright (c) 2011-2014 Able Solutions Corporation. All rights reserved. // </copyright> //----------------------------------------------------------------------- ...
8db181cc0b218c9132c39c56f3d725591dd5d048
C#
ngm/ApleT
/src/variant.specs/Steps.cs
2.734375
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TechTalk.SpecFlow; using FluentAssertions; using System.Diagnostics; namespace variant.specs { [Binding] public class Steps { private string output; ...
c2adaef4c06a6cb505c786b72c739c6b36746ac0
C#
ctrl-brk/pripev
/2.0/Applications/ResendRegistrations/Program.cs
2.515625
3
using System; using System.Data; using Pripev.DAL; using Pripev.Utils; using log4net; using log4net.Config; namespace ResendRegistrations { internal class Program { private static readonly ILog Log = LogManager.GetLogger(typeof(Program).FullName); private static void Main() { #if !DEB...
1b67d75afe312310c063f16bd593e4d695c6110c
C#
fenixio/Artisan
/Logger/LogExtension.cs
2.640625
3
using System; using System.Runtime.CompilerServices; using Artisan.Tools.Reflector; using System.Text; namespace Artisan.Tools.Logger { public static class LogExtension { public static void WriteLog(this object o, Level level, string message, [CallerFilePath] string sourceFilePath = "", [Ca...
4de51025cd6831e9d86e49a2493dca65464f8a73
C#
yosoydead/exercises
/staircase/staircase/Program.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace staircase { class Program { static void Main(string[] args) { for (int i = 0; i < 6; i++) { for (int j = 0; j < 6; j++) ...
2d858315e6dbe34e79a43c0845891063db6e5e05
C#
XXChester/GWNorthEngine
/Logic/PulseAnimationManager.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using GWNorthEngine.Logic.Params; namespace GWNorthEngine.Logic { /// <summary> /// Models a pulse animation manager which plays the animation forward to the end, then plays reversed to the start, rinse and repeat /// ...
cd77401fee26502e924f2d1cdd9fb092175f2168
C#
angelaJelenkovich/OOP20-zeldaRemake-csharp
/ZeldaRemake/ZeldaRemake/Hero.cs
2.890625
3
using System; using System.Collections.Generic; using System.Drawing; using System.Text; namespace ZeldaRemake { public class Hero { private int posx; private int posy; private int life; private const String imgPath = "Resources/adventurer_walk1.png"; priva...
bcc64ad1962656d83ceedc9ce1d246004eff5716
C#
CriusNyx/CharacterMovement
/Character/PlayerControllers/PhysicsMotionController.cs
2.515625
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.PhysicsExtensions; namespace UnityEngine.CharacterMovement { /// <summary> /// A movement controller with the following features /// /// Snaps to ground /// Moves smothly up and down ram...
382679ceb87e9662e83b83cff4b9b95184a7e1a1
C#
chesterhartin/CreditCardExample
/CreditCard.Tests/EntityTests/AccountTests.cs
2.828125
3
using CreditCard.CreditCardClass; using NUnit.Framework; namespace CreditCard.Tests.EntityTests { [TestFixture] class AccountTests { #region " Setup and Teardown " [SetUp] public void Account_Setup() { //intentionally left blank for this test } ...
c0e2bfd60342a7cd99579e6dd12f272ead19fa58
C#
molock/VRHeadsetExhibition
/Assets/Scripts/AutoScale.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AutoScale : MonoBehaviour { public float minScale = 0.5f; public float maxScale = 1.5f; public float scaleRate = 0.5f; static float t = 0.0f; private bool is_growing = true; // Update is called once pe...
24d8e406e50834b2a505a458bfe320208e951781
C#
yusitnikov/magnus
/Magnus/Profiler.cs
3
3
using System; using System.Collections.Generic; namespace Magnus { class Profiler { public static readonly Profiler Instance = new Profiler(); private DateTime lastTime, frameStartTime; private int prevFrames = 0, currentFrames = 0; private Dictionary<string, double> prevStat...
bb941bfe07ea56a7904008a11bbf05a6578a9128
C#
RonaldoOliveira18/TaskManagement
/src/microservices/FileMicroservice/Repository/FileTaskRepository.cs
2.671875
3
using FileMicroservice.Context; using FileMicroservice.Model; using System.Collections.Generic; using System.Linq; namespace FileMicroservices.Repository { public class FileTaskRepository : IFileTaskRepository { private readonly CRUDContext _context; public FileTaskRepository(CRUDContext conte...
7fe0ef5ed2a1b229e69a212d1ee810561e9b2154
C#
kbolay/Bolay.Elastic
/Bolay.Elastic.Mapping/Types/Binary/BinaryProperty.cs
2.546875
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Bolay.Elastic.Mapping.Properties.Binary { /// <summary> /// The binary type is a base64 representation of binary data that can be stored in the index. /// T...
31b28b28e6bdaa4a3d2764e1d99f9b2c6678c6c7
C#
TheOldMan66/TelerikAcademy
/DataStructures&Algorithms/05.AdvancedDataStructures/ADSHomework/03.Trie V3/Trie.V3.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Diagnostics; namespace _03.Trie_V3 { class Trie { public int count; private Dictionary<char, Trie> childs; public Trie() { ...
e724df78d368dab3266dd995f3f6a5d552abfe7b
C#
fernandolorenzon/EmuLoader
/EmuLoader/Forms/FormSeries.cs
2.53125
3
using EmuLoader.Core.Classes; using System; using System.Linq; using System.Collections.Generic; using EmuLoader.Core.Models; using EmuLoader.Core.Business; namespace EmuLoader.Forms { public partial class FormSeries : FormRegisterBase { private static FormSeries instance; public string Series...
74f6d387694a8378a7691bf93ec0355ed0e63151
C#
olenkabilonizhka/ConsoleProjectPZ
/DALTests/PersonDALTests.cs
2.546875
3
using DAL.Repositories; using DTO; using NUnit.Framework; using System.Configuration; //using System.EnterpriseServices; using System.Linq; using System.Transactions; namespace DALTests { [TestFixture] public class PersonDALTests { protected TransactionScope transactionScope; PersonDAL per...
498a47d281d9c53ec278a363a95d9a32d2895b23
C#
jephbayf1986/AllisonsShopInventory
/AllisonsShopInventory.Application/InventoryActions/DemoInventory.cs
2.578125
3
using AllisonsShopInventory.Helpers; using AllisonsShopInventory.InventoryItems; using System.Collections.Generic; namespace AllisonsShopInventory.InventoryActions { public static class DemoInventory { public static void Load(IList<InventoryItem> inventoryList) { bool ConfirmLoad =...
923811aab6401c00d97f6266f8a1d36910715375
C#
Angliy/DevFx
/DevFxTest/DevFx/Core/AppModule.cs
2.53125
3
/****************************************************************************** Copyright 2005-2007 R2@DevFx.NET DevFx.NET is free software; you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License as published by the Free Software Foundation; either version 2 of the Licens...
f56f1046ea0de732a537a5e38efab38c42e41fb6
C#
BrunaReveriego/HackerRankMercadoLivre
/HackerRank_Mercado_LIvre/Program.cs
3.578125
4
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HackerRank_Mercado_LIvre { class Program { static void Main(string[] args) { var maxDigit = 6; CalculaDigitos(maxDigit); } pri...
ff3d643e94894e4dfc90300f058cc07f77fc7686
C#
faustis1337/Faust.GithubActionsTesting
/Faust.GithubActionsTesting/UnitTest1.cs
2.5625
3
using Faust.SomeService; using NUnit.Framework; namespace Faust.GithubActionsTesting { public class Tests { private CalculatorService CalcService = new CalculatorService(); [SetUp] public void Setup() { } [Test] public void AddingTwoNumbersTest(...
d92258f05df397a68431987e91cfe654459678bd
C#
usmysha/UziFirstApp
/UziFirstApp/Form1.cs
3.03125
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 UziFirstApp { public partial class Form1 : Form { public Form1() { ...
7298d623e15406ba650f6542e7fe65edef1c5f26
C#
joaquin-corchero/RateCalculator
/RateCalculator.Tests/Infrastructure/ConsoleFormatterTests.cs
2.703125
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using NBehave.Spec.MSTest; using RateCalculator.Infrastructure; using RateCalculator.Models; using System.Collections.Generic; namespace RateCalculator.Tests.Infrastructure { public class When_working_qith_the_console_formatter { protected IOutputFor...
a5858f0d927aebba0b7a7affd2fd54c6bf1486c5
C#
Ghyro/.NET-Mentoring-Program-for-L1-Q4-2019-Belarus
/Potestas/Potestas/Storages/ListStorage.cs
2.828125
3
using System.Collections.Generic; using System.Linq; using Potestas.Interfaces; namespace Potestas.Storages { public class ListStorage<T> : List<T>, IEnergyObservationStorage<T> where T: IEnergyObservation { public string Description => "Simple in-memory storage of energy observations"; pu...
409e7b0b08b526ca70c56d16f113e9370a144f37
C#
OpenLocalizationTestOrg/ECMA2YamlTestRepo2
/fulldocset/add/codesnippet/CSharp/m-system.drawing.drawing_1_1.cs
3.109375
3
public void TransformPointsExample(PaintEventArgs e) { Pen myPen = new Pen(Color.Blue, 1); Pen myPen2 = new Pen(Color.Red, 1); // Create an array of points. Point[] myArray = { new Point(2...
5f31243259edcad6d1c02954af24e461e223eb44
C#
HonzaMD/TunnaHead-483-processor
/Pin.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hradla { class Pin { public string Name { get; } public Wire Wire { get; set; } public Component Parent { get; } private bool signaled; ...
ff770f52162e5b7a8d726465c29d4bdc74d30790
C#
hiwadrashad/ModellenBureauBlazorVersion3
/ModellenBureauBlazorVersion3/Shared/Enums/Female/UpperArmWidth.cs
2.671875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Text; namespace Data.Enums.Female { public enum UpperArmWidth { [Description("28")] twentyeight, [Description("29")] twentynine, [Descr...
e2dff96688531d2fa86402a2c838df1630086311
C#
LeoDecking/mccVS
/mccVS/mccVS/ProjectType/Resources/Resources.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Xml; namespace ProjectType.Resources { public class Command { public string Name; ...
748e07d2622a86e3898fb710a90dafff3cb18bea
C#
a446198034/MutiPlayers_Server
/KunGeServerToBeMultiGame/TcpClient.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using System.Threading.Tasks; namespace VideoRecorder { /// <summary> /// TCP服务器连接类 /// </summary> public class TcpClient { private stri...
74c6672be219c571b3593a034e3e0f6ab02e767a
C#
madvorak/CellularCrypto
/MartinDvorak/Crypto/EncrypterReversibleCA.cs
3.53125
4
using System; using System.Collections; using Cellular; namespace Crypto { /// <summary> /// Class for symmetric cryptography performed by a reversible CA. /// </summary> class EncrypterReversibleCA : IEncrypter { private readonly int stepCount; /// <summary> /// Creates a...
8af1c73ab790d1bf45c9136eb06bcf780db54529
C#
dolunay/DateTimeExtensions
/DateTimeExtensions/WorkingDays/CultureStrategies/HolidayStrategyBase.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DateTimeExtensions.WorkingDays.CultureStrategies { public abstract class HolidayStrategyBase : IHolidayStrategy { protected readonly IList<Holiday> InnerHolidays; private readonly IDictionary<int, IDictionary<DateTim...
068f98584c093087c4e5b4788f34c274a35f6b0e
C#
superkarn/Ratana.Library
/src/Ratana.Library.Cache/CacheExtentions.cs
2.625
3
using System; namespace Ratana.Library.Cache { public static class CacheExtentions { private static readonly TimeSpan DEFAULT_CACHE_DURATION = TimeSpan.FromDays(1); public static T GetOrAdd<T>(this ICache cache, String key, Func<T> orAdd) { return cache.GetOrAdd(key, orAdd...
11d1ab556f6bcd9434a819728ff2abe415f32b80
C#
VD-15/Equaliser
/Equaliser/src/Engine/Sprite.cs
2.921875
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using System.Collections.Generic; namespace Equaliser.Engine { class Sprite { public static Dictionary<string, Texture2D> LOADED_TEXTURES = new Dictionary<string, Texture2D>(); public Rectangle crop; ...
dff45a7c829943d0472a7ada20a6b2a47ec1b470
C#
bcarterterp/Looter
/Assets/Scipts/Cards/GraveLogic.cs
2.78125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GraveLogic : CardLogic { private int option; private Item item; private int gold; private Character monster; private string roundRecap; public override void Interact (Hero hero) { if (GetStage () == 3) { ...
d4b1e2c8cb6fcc55a3273e8bbb67ef2d579df446
C#
MarkDHarris/channel9-dl
/src/channel9-dl/VideoRecording.cs
2.765625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace channel9_dl { public class VideoRecording { private static char[] invalidChars = { '\\', '/', ':', '*', '?', '"', '...
c7fd1799393580a125f11efa0e8c7b8061662623
C#
pp33gt/Garage1_0_Exercise_Csharp
/Garage.BLL/DomainEntities/MotorCycle.cs
2.828125
3
namespace Garage.BLL.DomainEntities { public class MotorCycle : Vehicle { public int MotorCycleTopSpeed { get; } public MotorCycle(int licenseNo, int numberOfWheels, Color color, int motorCycleTopSpeed) : base(licenseNo, numberOfWheels, color) { MotorCycleTopSpeed = motorCy...
3528fecad4844d88b09475bf552723b39c3f7f63
C#
zhaoyabo/GameBase
/GameBase/Assets/Scripts/NetMessage/TCPClient/CNetStreamBuffer.cs
3.0625
3
using System; using System.Collections; namespace Game { internal class CNetStreamBuffer { private const int m_nMaxStreamCount = 2; private ArrayList m_streamList = new ArrayList(); private int m_nActivedStreamPosition; public CNetStreamBuffer() { for (int ...
a86e1c7030e7ef3701818cba005d2353d6e3e870
C#
muriloformiga/Caju-Play
/Assets/Scripts/Arbitro.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Arbitro : MonoBehaviour { public GameObject time1; public GameObject time2; GameObject timeDaVez; // Use this for initialization void Start () { SortearTimeInicial (); FocarCamera (timeDaVez); } // Update is ca...
01e2ea9ab2db9161f32e137341af8d431aa3c5df
C#
Jacob-Buchinsky/CF-Game
/CF-Game-git/Assets/_Scripts/Social Area Scripts/Leaderboard.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Leaderboard : MonoBehaviour { public Text[] Highscores; int[] highscoresValues; // Use this for initialization void Start () { highscoresValues = new int[Highscores.Length]; for...
cea471e3a038ed01e45823e3e11fb1edc20a3ed2
C#
gabrielfontineli/cs-gama
/ClassExercises/Exercises/Exercise07.cs
3.671875
4
using System; namespace ClassExercises { class Exercise07 { public static void Run() { Console.WriteLine("-------Exercise 07-------"); float Grade1, Grade2, FinalGrade; Console.WriteLine("enter grade"); Grade1 = float.Parse(Console.ReadLine()); ...
026a5cad9aafdb75c787824e818daf5f2e0dd502
C#
shahdat45ict/ContactEntrySystem
/src/Contact.Entry.Api/Controllers/ContactsController.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using ContactEntry.Api.Model; using ContactEntry.Api.Services; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace ContactEntry.Api.Controllers { [Route("[controller]")] [ApiController] ...
889962683ea1d5de065a0935381a2a4c4b73cfa0
C#
dotnet/symstore
/src/Microsoft.FileFormats/MemoryBufferAddressSpace.cs
3.140625
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Microsoft.FileFormats { /// <summary> /// Creates an address spac...
0ebbbbb7312a7d94abe4a0ca8c8f2df859cf6718
C#
softvis-research/Getaviz4HoloLens
/Assets/_scripts/_model/ID.cs
3.421875
3
namespace Model { public class ID { public string Value { get; private set; } private ID() { } public static ID From(string value) { return new ID { Value = value }; } public override string ToString(...
09d09f79aa03a9aa9c8402e46353f9c18668825b
C#
LykashevichAndrei/TAT2018
/task_DEV-5/task2_test/UnitTest1.cs
2.828125
3
using System; using Xunit; using task_DEV_2; namespace XUnitTestProject1 { public class EvenElementsOfTheStringTest { [Fact] [Xunit.Theory] [InlineData("abcdef","ace")] [InlineData("abab","aa")] public void CreateNewStringWithEvenElements(string NewString, string Result)...
c9052c7cf65a44907dec2282d243c6256f4f0672
C#
celerik/celerik-netcore-services
/source/Celerik.NetCore.Services/Pagination/PaginationResult.cs
2.75
3
using System.Collections.Generic; namespace Celerik.NetCore.Services { /// <summary> /// Response base class for all requests implementing pagination. /// </summary> /// <typeparam name="TItem">The entity type in the "Items" collection.</typeparam> public class PaginationResult<TItem> : Pagination...
93a64e22fecc20fbe67ca79d9802ae3bd0abd37d
C#
patrious/LeaderSorting
/LeaderSorter/LeaderSorterConfiguration.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GeneticAlgorithm.LeaderSorter { [Serializable] public class LeaderSorterConfiguration { public int NumberOfTeams { get; set; } public int ProtectedGroupThreshold { ...
f24cf5a8739431b90bcb97a2a06e60516741b492
C#
daneb/monitoringApi
/Models/Repository/SensorsRepository.cs
2.671875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Threading.Tasks; using Dapper; using Dapper.Contrib.Extensions; using Microsoft.Extensions.Configuration; using Models.Interfaces; namespace Models.R...
bd57fe4474c287a0342c228be1e43182c588c37f
C#
anhtaka/csharp-PocketRefer
/Chap3/Chap3/StringIndexOf.cs
3.984375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Chap3 { class StringIndexOf { public static void Main(string[] args) { string s1 = "abcDEFghi123-999"; Console.WriteLine("文字列で検索:" + s1.IndexOf("123")); Console....
2ff70b7957cb45ad864e7565a976a4bf6392926e
C#
HassanAfnan/Serving-Hands
/Models/ForgetPassword.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.SqlClient; namespace Serving_Hands.Models { public class ForgetPassword { public string Email { get; set; } public bool cond = false; Connection con = new Connection(); ...
7c43a487f403a577cc2f362d7c4457828461a190
C#
ProjectAgri20/newrepo
/ScalableTestFramework/Source/PluginSupport/Connectivity/Wireless/Wifi.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using NotifCodeACM = HP.ScalableTest.PluginSupport.Connectivity.Wireless.WlanNotificationCodeAcm; using NotifCodeMSM = HP.ScalableTest.PluginSupport.Connectivity.Wireless.WlanNotificationCodeMsm; namespace HP.ScalableTest.PluginSupport.Connectivity.W...
046ec345b268fa1a108e58c158bd22f49d6bbda0
C#
VocaDB/vocadb
/VocaDbWeb/Helpers/HighchartsHelper.cs
2.640625
3
#nullable disable using VocaDb.Web.Code.Highcharts; namespace VocaDb.Web.Helpers; public static class HighchartsHelper { public static double ToEpochTime(DateTime date) { return (date - new DateTime(1970, 1, 1)).TotalMilliseconds; } public static Highchart DateLineChartWithAverage(string title, s...
de4c0c0b5cb239d5f18d924e67a2314ff039a1e2
C#
ydar95/RayTraceX
/RayTraceX/Lib/Light.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RayTraceX { //光源集合 public class Lights : List<Light> { } /// <summary> /// 光源属性 /// </summary> public class Light { public Vector Position; ...
cf82012f874c9d465748bd7f8a7789423e480071
C#
LanceWeiSky/LeetCode
/LeetCode/0700/20/A722.cs
3.140625
3
using System; using System.Collections.Generic; using System.Text; namespace LeetCode._0700._20 { class A722 : IQuestion { public void Run() { throw new NotImplementedException(); } public class Solution { public IList<string> RemoveComments(str...
b26b7c03394fc192d24670fdb8f7d38dc766dc34
C#
maxarnheiter/THD1v2
/Assets/Scripts/Map.cs
2.515625
3
using UnityEngine; using System.Collections.Generic; using System.Linq; [ExecuteInEditMode] public class Map : MonoBehaviour { public string name; public int highestFloor; public int lowestFloor; public Map() { this.highestFloor = 10; this.lowestFloor = -10; } void Start () { } void Update (...
944cb8f0b85f4753cf2a753273fa3a1bb754766e
C#
HuoPengCheng/WL
/WebApplication1/Controllers/DBhelper(xyc).cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Configuration; using System.Data.SqlClient; using System.Data; using Newtonsoft.Json; namespace WebApplication1.Controllers { public class DBhelper { private readonly string constr = "Data Source=.;Initi...
4f928734460791dc9a6453024e767ef51a8ea388
C#
nevgeny/jenya-lang-compiler
/Lexer/Token.cs
3.3125
3
using System; namespace ExtraLab2018.Lexer { sealed class Token { public readonly TokenType Type; public readonly string Lexeme; public readonly int Position; public Token(TokenType type, string lexeme, int position) { if (type != TokenType.EOF) { var regex = Regexes.Instance.GetTokenRegex(type...
16a5acc0c3d7e3abb955fec3a50179d944dd6fe2
C#
Noirdemort/Bodark.NET
/Bodark/BlockChain.cs
2.90625
3
using System; using System.Collections.Generic; using System.Text; using System.Security.Cryptography; using System.Linq; using Newtonsoft.Json; namespace Bodark { public class BlockChain<T> where T : class { readonly List<Block<T>> _blocks = new List<Block<T>>(); public IReadOnlyColle...
df483d5319de8ea58395cacd3bdb247b1800fda8
C#
unk1nd0ne/FunWithQuizes
/FunWithQuizes/Quiz.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace FunWithQuizes { public class Quiz { private int quizId { get; } private static int nextId = 1; public List<Question> FunQuiz = new List<Question>(); public Quiz () { ...
80e99a151eaba182be5ef576c3c9087c32fbd165
C#
dresswithpockets/Vgui
/Vgui/VguiObject.cs
2.6875
3
using System.Collections.Generic; namespace Vgui { public class VguiObject { public string Name { get; } public string? Value { get; } public bool IsValue => Value != null; public Dictionary<string, VguiObject> Properties { get; } = new(); private Dictionary<VguiNameFla...
4f8dd6ac827d7694a68e2febdf810fe6322af268
C#
dinesh-lawate/My-Design-Patterns
/FluentBuilder/Program.cs
3.578125
4
using System; using System.Collections.Generic; using System.Text; namespace FluentBuilder { internal class Program { //In below example I have implemented Builder pattern with Fluent API so we can create complex HTML representation. public interface IHtmlElement { List<IH...
ac968af86f126a88b9be3d2c8148c3b86dceab97
C#
skambuilds/ACONRP
/ACONRP/Ant.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ACONRP { public class Ant { public List<Node> Solution { get; set; } public int[,] CoverRequirements { get; set; } public int[] CoverRequirementsArray {...
47287de4cc4a25a32e03ac9dac2a812f1d22e8f1
C#
hast0n/ProjetProgAvENSC1A
/Services/DataTables/ProjectDataTable.cs
2.90625
3
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text.Json; using System.Threading.Tasks; using ProjetProgAvENSC1A.Models; namespace ProjetProgAvENSC1A.Services.DataTables { class ProjectDataTable : IDataTable { private string...
7e1c9cef353170d0fd89f788f11f48fac716b014
C#
kevhiggins/bandit
/Assets/Scripts/App/Simulation/Deck.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using App.Extensions; using App.Simulation.Cards; namespace App.Simulation { public class Deck { public List<Card> cards = new List<Card>(); public ICard Draw() { var nextCard = cards.FirstOrDefault(); ...
993f6418f111d61911669d56b5476945fc7ee180
C#
arturfil/codesnap-backend
/API/Controllers/PostsControllers.cs
2.5625
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using Application.Posts; using Domain; using MediatR; using Microsoft.AspNetCore.Mvc; namespace API.Controllers { public class PostsController : BaseApiController { [HttpGet] public async Task<ActionResult<List<Post>>> GetPosts()...
a8cd28b28fb686bd72ba3c45846429da98aa0e3f
C#
sangar3/CIS452_Assingment8
/FPS/Assets/Scripts/PickupSuperClass.cs
2.703125
3
/* * (Santiago Garcia II) * (PickupSuperClass.cs) * (Assignment) * (The main abstract superclass to define the temp method) */ using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class PickupSuperClass : MonoBehaviour { public GameObject pickedupgun; pub...
75da0082fad3fcc80e40ac665836cb5dc1bf13f2
C#
BI7PRK/UtilityNet
/FileIO/FileManager.cs
2.75
3
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; namespace UtilityNet.FileIO { public class FileManager { /// <summary> /// 删除文件 /// </summary> /// <param name="virPath">文件相对路径</param> /// <returns></returns> ...
f74fa0d05ad47fc1ccd7eaed0b1299995cf08e7b
C#
DigitalPlatform/dp2
/DigitalPlatform/4.0/FileDownloadDialog.cs
2.65625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace DigitalPlatform { public partial class FileDownloadDialog : Form { public string SourceFilePath { get; set; ...
7912521e808e9b6a7d56dd43a013b105c57747e4
C#
hthenrique/Nity-Pet-Racoes
/Nity Pet Rações/Utils/InstanciarForms.cs
2.6875
3
using Nity_Pet_Rações.Forms.Forcedores; using System.Linq; using System.Windows.Forms; namespace Nity_Pet_Rações.Utils { public static class InstanciarForms { public static Form VerificarForm(Principal principal, string nomeForm) { Form instancia = null; switch (nomeFor...
bc4c700175f18b28f753ca6e3eeff68174505990
C#
emilieDelsol/CSHARP-WCS
/DOJO/dojo/Dojo_UnitTest_241120/Dojo_UnitTest_241120/Program.cs
2.859375
3
using NUnitTest_Dojo241120; using System; namespace Dojo_UnitTest_241120 { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); string entry = "ZQVIGRmmOAWOmmo"; string entry2 = "abcdefg"; string[] result_entry = {...
adeadf786d4ad32541238044c3ffa182249fc376
C#
AnthonyPageau/Rest_Api_Alexa
/Controllers/LeadController.cs
2.734375
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 RestApi.Models; using Newtonsoft.Json.Linq; namespace RestApi.Controllers { [Route("api/[controller]")] [...
fc4511712955efb051357c0b75138317fb23ceb9
C#
shendongnian/download4
/latest_version_download2/782-34869091-189401546-2.cs
2.78125
3
var assemblyName = "Some.Assembly.Name" var nameSpace = "Some.Namespace.Name"; var className = "ClassNameFilter"; var asm = Assembly.Load(assemblyName); var classes = asm.GetTypes().Where(p => p.Namespace == nameSpace && p.Name.Contains(className) ).ToList();
93b4d1436946d0e0df05d179b30198f30a2ccd8c
C#
redwarewolf/2018_1C_3051_Barrilete_Cosmico
/TGC.Group/VectorMovement/DirectionAngle.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TGC.Group.Modelo; using TGC.Core.Mathematica; namespace TGC.Group.VectorMovement { class DirectionAngle { public float angulo { get; set; } public float anguloRad { get; set...
8ed186d4920ca4f1819e3dd03f66fb9d94fb49b1
C#
marcelosn/AutoZap
/AutoZapClass/Persistence/DataMappers/GenericMapper.cs
2.921875
3
using System; using System.Data; using System.Collections.Generic; using System.Reflection; // This is the default DataMapper that will be used if we don't have a // mapper that was built specifically for the type. This mapper uses // reflection so it will be much slower than a DataMapper created // specifically...
311b6953d76f3bd96b3d3d4c44338e29b8a4e377
C#
AlanRow/MeloMan2.0
/Models/Generator.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SpectrumVisor.Parameters; namespace SpectrumVisor.Models { abstract public class Generator : IModel { virtual public IModel Generate(Dictionary<string, Param> parameters) {...
271dd97e5f091b6b393df6c252c93585235f8111
C#
exploitx3/C-Sharp-
/C(Sharp)Advanced/9-ExtractURLsFromText/ExtractURLsFromText.cs
3.109375
3
using System; namespace _9_ExtractURLsFromText { class ExtractURLsFromText { static void Main() { string[] text = Console.ReadLine().Split(' '); for (int i = 0; i < text.Length; i++) { if(text[i].StartsWith("http://") || text[i].StartsWith("w...
b5dbcb61dfd591038fe97507e9a152eed5e7a2dc
C#
heavyd1001/SQLRestoreScripter
/SQLRestoreScripter/BackupFile.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Text.RegularExpressions; namespace SQLRestoreScripter { public class BackupFile { private string _name; private string _path; private DateTi...
6195da44a0bebc999833b984e795326c7e008d1c
C#
SamuelD28/Structure_Tp1
/CalculatriceLib/AccumuleurGen.cs
3.59375
4
using SDD.Interface; using System; using static System.Console; using static SDD.Utility.CharExtensions; using static SDD.Utility.StringExtensions; using static SDD.Utility.Utils; namespace SDD.Class { public class AccumuleurGen<T> : IAccumuleurGen<T> where T : struct { /// <summary> /...
1bef00cff402ef6dd38a5597c9c6b1e3a841efad
C#
yogendrasinghmehra/BlogApis
/Controllers/BlogController.cs
2.75
3
using System; using BlogApis.Models; using BlogApis.Models.Entities; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Authorization; using Microsoft.EntityFrameworkCore; namespace BlogApis.Controllers { [Route(...
e01cdb1511d250e77b230ea13ea48ada654fba76
C#
RHF01369/DS
/Dynamic Summoner/Assets/Scripts/New Folder/UnitSpawn.cs
2.84375
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public interface IPoolable { void Initialize(UnitData data, Vector2 position); bool IsMyTeam { get; } bool IsUsed { get; } } public class UnitSpawn<T> where T : IPoolable { private int initNumber; public...