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
4fd1df965ff884702723cef42586085441329c85
C#
akapoo11/Poc1
/Concepts/Covariance_NET4.5/Learning.cs
3.140625
3
using System.Collections.Generic; using System.Linq; using System.Diagnostics; namespace Covariance_NET4._5 { public static class Learning { public static void Learn() { List<GroupRecord> groupRecords = new List<GroupRecord>() { new GroupRecord() { HeaderCount = 2 }, new GroupRecord...
6907818a1cc1cb59355ee59388c6788573c15880
C#
JTOne123/ArgData
/Source/ArgData/Entities/CarList.cs
3.515625
4
using System.Collections; using System.Collections.Generic; namespace ArgData.Entities { /// <summary> /// Represents a list of Car objects. /// </summary> public class CarList : IEnumerable { private readonly List<Car> _list; /// <summary> /// Gets the Car at the specified...
3ebb5eb5f6ca437f039ba0517f7945935df3937e
C#
This-Gooch/Highland_AI_Repo
/Highland_AI/Assets/Scripts/Ability.cs
2.828125
3
using UnityEngine; using NSGameplay; using System; /// <summary> /// Base Class /// </summary> [System.Serializable] public class Ability : IEffector{ /// <summary> /// Level required to use. /// </summary> public int levelRequired; /// <summary> /// Utility cost of this ability. /// </sum...
d0298d38bd3618da9fef9be269b9d2d66dd21bfe
C#
Rolland-Campbell/console-game-csharp
/Project/Models/Game.cs
2.78125
3
using ConsoleAdventure.Project.Interfaces; namespace ConsoleAdventure.Project.Models { public class Game : IGame { public IRoom CurrentRoom { get; set; } public IPlayer CurrentPlayer { get; set; } //NOTE Make yo rooms here... public void Setup() { //Creating Rooms IRoom Room0 = ne...
4cd172c2156108d9306327d950095a348fe92e84
C#
BrooksRadtke/The-Tech-Academy-Basic-C-Sharp-Projects
/Basic C# Programs/TryCatch/TryCatch/Program.cs
3.9375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TryCatch { class Program { static void Main(string[] args) { try { // Ask user for their age Console.WriteLine("...
81b282526a5ebf5b5e05a29f6e150b322ab10823
C#
FatihBAKIR/Quark
/Source/Attributes/AttributeCollection.cs
3.171875
3
using System; using System.Collections; using System.Collections.Generic; using Quark.Utilities; namespace Quark.Attributes { /// <summary> /// This class is responsible for storing and managing the Attributes and Stats of Characters /// </summary> public class AttributeCollection : IDisposable, IEnume...
a64a0b25d5122bbccbe5039452291bf53dd5d804
C#
happy30/Gamelab-Jaar3
/Gamelab-Jaar3-UnityProject/Assets/Sourcefiles/Scripts/Player/Interaction.cs
2.75
3
public class Interaction { public string interactionCodeName; public bool read; public Interaction(string icn, bool rd) { interactionCodeName = icn; read = rd; } }
78bf6459b0ea609cccc468a381a8399487c6882e
C#
MykolaKharchenko/PMC-Library
/ModelsLib/PointClasses/Point3D.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ModelsLib.PointClasses { /// <summary> /// The Point3D<T> class provides describe the object of 3D point /// </summary> public class Point3D<T> : Point<T> { pub...
4166a07d59b7ce70eb38ae524754063f80e69420
C#
feokuma/dotnetcore.raspberry.ws2812
/app/Program.cs
2.78125
3
using System; using rpi_ws281x; using System.Drawing; using System.Threading; namespace app { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); var settings = Settings.CreateDefaultSettings(); //Use 16 LEDs and GPIO Pin 1...
db17c8a8e6e9388e27590abb1d3c75b4b71bc98e
C#
beds10/MedicalExpressApis
/MedicalExpress/MedicalExpress.INFRASTRUCTURE/Repositorios/UserRepository.cs
2.578125
3
using MedicalExpress.CORE.Entidades; using MedicalExpress.CORE.Interfaces; using MedicalExpress.INFRASTRUCTURE.Datos; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace MedicalExpress.INFRASTRUCTURE.Repositorios { public ...
8a379804e64a4a3e90c2be7ec4417d342e820be6
C#
Nomancste44/Multi-Integrator
/src/Data/Repository/UserRepository.cs
2.515625
3
using Dapper; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using ZohoToInsightIntegrator.Contract.DataContracts; using ZohoToInsightIntegrator.Contract.DataModels.Integrator.Authentication; using ZohoToInsightIntegrator.Contract.DataModels.Integrator.User; ...
99b9bd31e20b8aa1758b9387ad53d9a3850c7c11
C#
mastersign/baobab
/src/WindowsToolbox/Shell.cs
2.71875
3
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; namespace net.kiertscher.toolbox.windows { public enum GetWindow_Cmd : uint { GW_HWNDFIRST = 0, GW_HWNDLAST = 1, GW_HWNDNEXT = 2, GW_HWNDPREV = 3, GW_OWNER = 4, GW_CHI...
5ea97b27d98c2406086029002c255c8f0d71bf21
C#
rinormaloku/Hotline-Miami-Clone
/code_src/App/Engine/Render/Renderers/RigidBodyRenderer.cs
2.71875
3
using System.Drawing; using App.Engine.Physics; using App.Engine.Physics.RigidShapes; namespace App.Engine.Render.Renderers { public static class RigidBodyRenderer { /// <summary> /// Draws the shapeObject. Coordinates are took in world axis. /// </summary> /// <param name="sha...
a2048472c5a9a4163df72274b5931f77457ee72f
C#
300621334sur/Wk06_wk07-LabExercise_Nested_Loops
/class_task_2/Program.cs
3.5
4
using System; /* How Many Rows: 10 How many Columns: 10 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 */ namespace class_task_2 { class Program { static void Main(strin...
87a268e1a725a4432d991251f6d07fa76583de74
C#
pandaive/DINO
/Obsługa_biurowca/Obsługa_biurowca/Firmy_usun.cs
2.53125
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 Obsługa_biurowca { public partial class Firmy_usun : Form { DB_Access access = new DB_Access(); pub...
651b0c75b3073a7c50ee5f29b875733a56995b41
C#
GeckoTT/StockDeliverySimulator
/src/StorageSystem.MosaicDependency/Interfaces/Types/Output/StockOutputOrderItemLabel.cs
2.671875
3
using System.Data; using CareFusion.Mosaic.Interfaces.Types.Database; namespace CareFusion.Mosaic.Interfaces.Types.Output { /// <summary> /// Class which represents a label which is related to an order item of a stock output order for a storage system. /// </summary> public class StockOutputOrderItemL...
d6901212593e055e7ef588f139cef83dd1cb8a4a
C#
PatrikBak/GeoGen
/Source/Library/GeoGen.Core/Constructions/Constructions.cs
3.625
4
namespace GeoGen.Core { /// <summary> /// Helpers class containing method for getting constructions predefined in the classes /// <see cref="PredefinedConstructions"/> and <see cref="ComposedConstructions"/>. /// </summary> public static class Constructions { #region Public methods ...
41ee1ec04b80038e6d13d585e6d9b0c74047c953
C#
chrispydizzle/coding-challenges
/LinkedList/RemoveNFromEnd.cs
3.640625
4
namespace CodeChallenges { using LinkedList; public class RemoveNFromEnd { public ListNode RemoveNthFromEnd(ListNode head, int n) { // create an artifical start node to handle single item linked list. ListNode start = new ListNode(0); ListNode preNode =...
d126bd2332a691ae4050b3ec0e7615a12d9e8a38
C#
KaterynaGo/Sovereign-Sport-Outfitters-SSO-
/SSOPointOfSale/Employee.cs
2.921875
3
#region Imports using System; using System.Runtime.Remoting.Messaging; using MySql.Data; using MySql.Data.MySqlClient; #endregion namespace SSOPointOfSale { public sealed class Employee { #region Singleton Class Setup // Employee Singleton, used so whole program can reference the single Employ...
6843e4ff79bf1462c20461b545c4f5bf45b55c2c
C#
paavohuhtala/Rant
/Rant.Tests/Repeaters.cs
2.921875
3
using NUnit.Framework; namespace Rant.Tests { [TestFixture] public class Repeaters { private readonly RantEngine rant = new RantEngine(); [Test] public void BasicRepeater() { Assert.AreEqual(rant.Do(@"[rep:5]{blah}").MainValue, "blahblahblahblahblah"); ...
cb4446461d6832dfb075e8e28c98f6463e55f62e
C#
2217936322/Unreal-Dumping-Agent
/Unreal Dumping Agent/Chat/ChatManager.cs
2.578125
3
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.ML; namespace Unreal_Dumping_Agent.Chat { public class ChatManager { private static string AppPath => Path.GetDirectoryName(Environment.GetComma...
579bcf2cdee0e7977dd4fc709ffa0f05dc49326a
C#
shendongnian/download4
/code2/333352-7083351-15618357-2.cs
2.953125
3
ObservableCollection<User> Users { get; set; } void LoadUsers() { int _Size = 10; int _Page = 1; using (System.ComponentModel.BackgroundWorker _Worker = new System.ComponentModel.BackgroundWorker()) { _Worker.DoWork += (s, arg) => { ...
0b81d42436509f64383ec35a7859543273aa0074
C#
nh43de/JustTransformPlayground
/JustTransformPlayground.Ui/JsonSerializationExtensions.cs
2.625
3
using Newtonsoft.Json; namespace JustTransformPlayground.Ui { public static class JsonSerializationExtensions { public static TObject ToObject<TObject>(this string jsonString, bool ignoreNonSerializableClassReferences = false) { return JsonConvert.DeserializeObject<TObject>(jsonStr...
fff5d2834d9ba1f28e160a23e4d9a8af4bd7cb94
C#
shendongnian/download4
/first_version_download2/474895-42606394-139878367-2.cs
2.671875
3
public class Twiml : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "application/xml"; var Body = context.Request.Forms["Body"]; var response = new Twilio.TwiML.MessageResponse(); response.Say("You s...
19e8e574836d67d03fb4db9e21214bf65e864623
C#
Xazen/2015Shmup
/Assets/Scripts/Game/Other/HealthUI.cs
2.96875
3
using UnityEngine; using UnityEngine.UI; using System.Collections; public class HealthUI : MonoBehaviour { [SerializeField] private Image healthImage; private int? maxHealth; public int MaxHealth { set { maxHealth = value; } get { return maxHealth.Value; } } private int currentHealth; #reg...
afe0b48bf75ad4072453ede2f5c5c76d2329771f
C#
choby/NetCore
/Inman.Infrastructure/Kendo.Mvc/UI/Map/MapSymbol.cs
2.734375
3
namespace Kendo.Mvc.UI { /// <summary> /// The bubble layer symbol type. Supported symbols are "circle" and "square". /// </summary> public enum MapSymbol { Circle, Square } internal static class MapSymbolExtensions { internal static string Serialize(this MapSymb...
1e23cf640cbab3b5771f6c577cb5cf76cfb63a24
C#
achmand/Solving-TSP-using-GA-ACO
/TravellingSalesmanProblem/EvolutionaryComputation/EvolutionaryComputation/EvolutionaryComputationAlgorithm.cs
2.6875
3
namespace EvolutionaryComputation.EvolutionaryComputation { /// <summary> /// A base class for all evolutionary computation algorithms. /// </summary> public abstract class EvolutionaryComputationAlgorithm { #region properties /// <summary> /// The Evolutionary Computatio...
921d4ce478b1897496738c3376f6a9f4b2a58c27
C#
Domer79/Security2
/Security.Interfaces/ISecurity.cs
2.625
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using Security.Interfaces.Collections; using Security.Interfaces.Model; namespace Security.Interfaces { /// <summary> /// Интерфейс ядра системы безопасности /// </summary> public interface ISecurity { /// <summa...
1034482ec07362330debbbd713e7a53c179cb289
C#
kirilsimeonov/CS-Fundamentals
/Objects & Classes/03. Articles2.0.cs
3.734375
4
using System; using System.Collections.Generic; using System.Linq; namespace Exercise_3 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); List<Article> articles = new List<Article>(); for (int i = 0; i < n; i++) ...
da2713791ee723674da10eb177c49fc1d532d1d9
C#
lf6demo/Test
/cipher/Program.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace cipher { class Program { static void Main(string[] args) { string alpha = "abcdefghijklmnopqrstuvwxyz"; while (true){ string pla...
76229129bef2e355762f600006ba6281455377fa
C#
shendongnian/download4
/code2/231237-35613328-111684886-2.cs
3.84375
4
public static IEnumerable<ulong> Generate(ulong n) { if (n < 1) yield break; yield return 1; ulong prev = 0; ulong next = 1; for (ulong i = 1; i < n; i++) { ulong sum = prev + next; prev = next; ...
fc43c0e3ecf878f71f9ffe68f0013539b544a53f
C#
RishaLaser/RishControllerVer3.0
/Paint/Paint/SerialSenderFactory.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO.Ports; namespace Paint { public class SerialSenderFactory { bool m_bFake; public SerialSenderFactory(bool p_bFake) { m_bFake = p_bFake; } ...
0e8318054a1aeed49e3b8881ef06d3c6e4dedc34
C#
sirenescx/programming-csharp-hse
/MODULE 2/SEMINAR_03_2/Task_01/Task_07/Point.cs
3.34375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Task_07 { class Point { public double _x; public double _y; public Point() { } public Point(double x, double y) { _x = x; ...
f2869fdd443ac8b122151c981a443e4794a57737
C#
jkh9/sv2017-programming
/chapter06-classes/262-SocialNetwork2-byte.cs
3.15625
3
/* Luis Selles */ using System; class SocialNetwork { protected string name; protected string url; protected byte yearFoundation; public SocialNetwork(string setname, string seturl, int setyearFoundation) { name = setname; url = seturl; year...
c93312ef4741482d1b1457552380ba51203cccb6
C#
justinobney/ITI-Examples
/Jobney.Learning.ChainOfResponsibility/Deck.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using Jobney.Learning.ChainOfResponsibility.Enums; using Jobney.Learning.ChainOfResponsibility.ExtensionMethods; namespace Jobney.Learning.ChainOfResponsibility { public class Deck { public Deck() { Cards = new List...
ad38901e747eb923e98799197599347980c9857d
C#
Rafael-P/Senai_Sprint2_Back-End
/SPMedicalGroup/Senai_SPMedicalGroup_webApi/Senai_SPMedicalGroup_webApi/Controllers/MedicosController.cs
2.734375
3
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Senai_SPMedicalGroup_webApi.Domains; using Senai_SPMedicalGroup_webApi.Interfaces; using Senai_SPMedicalGroup_webApi.Repositories; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ...
9e3dd6747bac2cfcf22ebee9fff08de0719c0622
C#
shendongnian/download4
/code8/1480062-40579030-131470627-2.cs
3.109375
3
class Program { static void Main(string[] args) { Class[] classInstances = { new Class("A"), new Class("B"), new Class("C"), }; foreach (Class c in classInstances) { string...
774cc64c72b4a9804bffa15d625f6b3e2e06691f
C#
anikets160/eternal
/JaggedArray/Program.cs
3.828125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JaggedArray { // Jagged array is an array of array class Program { static void Main(string[] args) { string[] employeeNames = new string[3]; ...
23b6db953eb4d896b815b60ce0f2428b55dfdba2
C#
mrizzini/TDDPractice2
/StringService/Class1.cs
3.5625
4
using System; using System.Collections.Generic; namespace StringService { public class TestService { private readonly ICalculatorService _calculatorService; public TestService(ICalculatorService calculatorService) { _calculatorService = calculatorService; ...
6d0e659d834acf63f4b94ac236619a7d350d72c4
C#
JTheiller-Fork/Exchequer-UI
/PlugIns/CreditCardAddin/CSH.Exchequer.Bespoke/Settings/Configuration/Sql/SqlSettingsReader.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Xml; using System.Xml.Linq; using CSH.Exchequer.Bespoke.Exceptions; namespace CSH.Exchequer.Bespo...
39f36aeddaaf400c503f440f2d603019f9538236
C#
rosehipdan12/PSS
/PSS_WINFORM_CONTROL/PSS_WINFORM_CONTROL/Common/CollectionViewModel.cs
2.515625
3
using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using DevExpress.Mvvm; using DevExpress.Mvvm.POCO; using DevExpress.Mvvm.DataAnnotations; using DevExpress.Mvvm.ViewModel; using DevExpress.Mvvm.Da...
47cdbae06babea8c41a3d1d635b7fa832811b386
C#
Kawser-nerd/CLCDSA
/Source Codes/AtCoder/abc041/C/3868016.cs
3.015625
3
using System; using System.Linq; using System.Collections.Generic; namespace ABC041_C{ class Program{ static void Main(string[] args){ var n = long.Parse(Console.ReadLine()); var res = Console.ReadLine().Split(' ').Select((s,i) => new KeyValuePair<int,int>(i + 1,int.Parse(s)...
775bf90131c80d32dde70aaeef3e20e6e981ae6b
C#
GitZHCODE/zCode
/zCode/zCore/Obsolete/Domain3d.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; /* * Notes */ namespace zCode.zCore { /// <summary> /// Represents a double precision numerical domain in 3 dimensions. /// </summary> [Obsolete("Renamed to Interval3d")] [Serializable] public struct Domain3d { #...
4a70c419219d72a035dea0afb734a473bf9700fb
C#
fury565/Space-Station-Simulation
/0.0.6pa/JustSomeRandomRPGMechanics/JustSomeRandomRPGMechanics/PathFinder.cs
2.71875
3
using System; using System.Collections.Generic; using System.Text; namespace JustSomeRandomRPGMechanics { static class PathFinder { static List<TestPath> hell; static List<Distance> valueLocations; static List<bool> isTaken; static public Path FindPath(LiveTarget npc) {...
82303de50e6d6102599705c44138ab2f74a1df9e
C#
Falkion/huiswerk
/ConsoleApp1/ChoiceQuestion.cs
3.578125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApp1 { class ChoiceQuestion : Question { private List<String> choices; private string text; public ChoiceQuestion() { choices = new List<string>(); ...
30f85e46cf46a7fe31251199e48500767034a847
C#
PhyxionNL/DaAPI
/src/DaAPI.Core/Scopes/ScopeProperties/ScopeProperties.cs
2.890625
3
using DaAPI.Core.Common; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DaAPI.Core.Scopes { public abstract class ScopeProperties<TScopeProperty, TOption, TValueType> : Value, IEquatable<ScopeProperties<TScopeProperty, TOption, TValueType>> where TScopeProp...
4de03d68201e44de5eff6bfb573a539d5d183204
C#
Alchen21/labs
/Lab7/Lab7/Work2.cs
3.5625
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab7 { class Work2 { public static void Begin() { string str = ""; using (FileStream fs = File.OpenRead(@"Work2.txt")) ...
30122c8b32e8924ad4543f710953994244e000b5
C#
DragonSpark/Framework
/DragonSpark/Runtime/ArrayBuilder.cs
2.84375
3
using DragonSpark.Model.Sequences; using DragonSpark.Model.Sequences.Memory; using System; using System.Buffers; using System.Collections.Generic; using System.Diagnostics; using Array = System.Array; namespace DragonSpark.Runtime; /// <summary> /// Helper type for avoiding allocations while building arrays. /// ATT...
883d40e59c16a694759ae3c57bbdd96f876fd2d2
C#
lordmilko/PrtgAPI
/src/PrtgAPI/Tree/Model/Node/Internal/CompareOrphan.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; namespace PrtgAPI.Tree.Internal { /// <summary> /// Represents a comparison of two <see cref="PrtgNode"/> objects. /// </summary> [DebuggerTypeProxy(typeof(CompareOrphanD...
2056986fcf95cd78525811740427f241978c9972
C#
fnafnio/explorerbot
/HostApplication/SensorStream.cs
2.875
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; using System.Windows.Forms.DataVisualization.Charting; namespace RobotSensorStream { public partial class frmSensorStr...
69344f3d133bf277617dfa01261a772796140a94
C#
magnus-wikhog/Assignment-4
/Assignment/Animal/FoodSchedule.cs
3.71875
4
///<summary> /// Namn: Magnus Wikhög /// Projekt: _projekt_namn__ /// Inlämnad: _inlämnad_datum_ ///</summary> using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Assignment.Animals{ /// <summary> /// A class for storing foo...
a5ace97bf29eada53f14e1fa08e1f5a5a4bb3bb4
C#
Sidneys1/KeyStates
/KeyStates.ConsoleTest/Program.cs
2.90625
3
using System; namespace KeyStates.ConsoleTest { class Program { private static int _x; [STAThread] static void Main() { ActiveKeyboardMonitor.KeyDown += args => { Console.SetCursorPosition(0, 3); Console.ForegroundColor = ConsoleColor.DarkGray; Console.WriteLine("{0,9}: {1,-20}", "Key Down...
1d4cd9f0e5bae8b1b0b04cd5546e8105e8393bb2
C#
brydag/filtering
/filtering/filtering/Models/Employee.cs
2.578125
3
using System.Collections.Generic; namespace filtering.Models { public class Employee { public Employee() { Subordinates = new List<Person>(); } public string FirstName { get; set; } public string LastName { get; set; } public int Age { ...
2e34f3379a30e4b4b9523e275089464a6c393759
C#
DONGKEUMKIM/Unity_GameProjectFinal
/GameProjectFinal/Assets/02. Scripts/Common/MonoSingleton.cs
2.59375
3
using System.Collections; using UnityEngine; // Mono 싱글톤 public abstract class MonoSingleton<T> : MonoBehaviour where T : MonoSingleton<T> { private static bool shuttingDown = false; private static object syncObj = new object(); private static T instance = null; public static bool recycleObj = true; ...
b88760a46443c6033d71d525081c5879bdd4ae31
C#
xuxiaowei007/vfs
/VirtualFileSystem/VFS.File.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace VirtualFileSystem { public partial class VFS { public enum FileMode { /// <summary> /// 如果文件已存在,则将引发 IO 异常。 /// </summary> CreateNew = 1...
eb4c8c24f24633f8476295f8c9f077fa425bf3c1
C#
vmelamed/vm
/Aspects/Cache/Associative.NWaySet/INWaySetPolicies.cs
2.90625
3
using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace vm.Aspects.Cache.Associative.NWaySet { /// <summary> /// Interface INWaySetPolicies /// </summary> /// <typeparam name="TKey">The type of the cache's key.</typeparam> /// <typeparam name="TValue">The type of the cac...
31e4445499de76223b7b715b1377b02fa448f57c
C#
RomanFedorenko/BudgetWallet
/MyEntity/Report.cs
2.796875
3
using CodeFirst; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.Entity; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MyEntity { public partial class Report : Form ...
58772f3930b19f8fba9fe81bd3c6a8caad00e20b
C#
olivergrimes/ResourceBasedAuthorisation
/ResourceAuthExample/Controllers/ItemController.cs
2.75
3
using System.Collections.Generic; using System.Diagnostics; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using ResourceAuthExample.AuthRules; namespace ResourceAuthExample.Controllers { [Route("api/[controller]")] [ApiController] public class ItemController : ControllerBase ...
8c3bfb28be21a21ad04fed405220595573cff090
C#
lmercieca/Solid
/Good/liskov-substitution/Program.cs
3.515625
4
using System; namespace liskov_substitution { class Program { static void Main(string[] args) { var process = new Example_1.ShapeProcesser(); var circle = new Example_1.Circle(); var square = new Example_1.Square(); process.DrawShape(circle); ...
b0e563b4884683ed66819ffe032bd05f85bfac62
C#
Thereodorex/push_swap_csharp
/PushSwap/PushSwap.cs
3.0625
3
using System; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Reflection; using System.Linq; namespace PushSwap { public class PushSwap { private readonly StackProcessor _proc; public PushSwap(StackProcessor proc, string filename) ...
9fde9e1e6d4ad6220fe4a7c3f3be4fe2cc1e462b
C#
kimjunhwi/OuchMercenary
/Assets/Scripts/Manager/CharacterManager.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using ReadOnlys; public class CharacterManager : MonoBehaviour { IComparer compare = new SortunityLayerCompare(); public ArrayList ARRAY_CHARIC = new ArrayList(); int nSortingIndex = 0; public void Add(Character _character) { ARR...
54639b4695d5467286d8400def5c71a6a3f5ad9b
C#
doterik/RefSemantics
/RefSemantics/Span.cs
2.796875
3
using System; using System.Collections.Generic; using Xunit; using Xunit.Sdk; namespace RefSemantics { public class Span { private const string myString = "Hello world"; private static readonly int[] numbers = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; [Fact] public void String_as_rea...
4d3297ede56468635c374f6f313edd8d3f2480f8
C#
yahue/Wings
/Wings/Wings.Framework/Routes/CustomRouting.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Mvc; namespace Wings.Framework.Routes { /// <summary> /// 定制 View /// </summary> public class CustomRouting:ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingCo...
d12abf676734c5dd196a0400d10062581892d56c
C#
remarvel/Mirror
/Mirror/Calendar/TimeZoneParser.cs
3
3
using System; using System.Collections.Generic; using TimeZoneConverter; namespace Mirror.Calendar { public class TimeZoneParser { const string TimeZoneId = "TZID"; public static TimeZoneInfo Parse(Dictionary<string, List<string>> parameters) { if (parameters == null) ...
e36f12c73cab1c1d6da3a19d65bc64fbcf9e3556
C#
Serekowy/Dice_Game
/Gra w kości/Class1.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Gra_w_kości { class Class1 { public static void welcome(string name) { Console.WriteLine($"Witaj ponownie {name}, życzymy miłej gry."); } pu...
fb3796cf9f766e9cd7c77763656af4d9a8b60c93
C#
lolitsundere/RPGCardGameDemo
/Assets/Scripts/SingleAttackEffect.cs
2.796875
3
 using System.Collections.Generic; using System; using System.Linq; public class SingleAttackEffect : Attackffect { public override void Invoke(CardHolder executor, ICollection<CardHolder> targets) { if (targets != null && targets.Count == 1) { foreach (var item in Enumerable.Range...
4b627445d56338f0aa508cdc49446c82047bdfe4
C#
JaswandiAnand/Contacts
/MvcApplication1/Controllers/ContactController.cs
2.671875
3
using System.Collections.Generic; using System.Web.Http; using MvcApplication1.Models; namespace MvcApplication1.Controllers { public class ContactController : ApiController { static readonly IContactRepository ContactRepository = new ContactRepository(); //GET all Contacts ...
a3a28484358d4c5f6bdc23cc346af6fe17796d20
C#
teh-te4-tekh-team/Unity-Game
/Teh-te4-teks-Z/Assets/Scripts/Enemy/EnemyAttack.cs
2.609375
3
using UnityEngine; using System.Collections; public class EnemyAttack : MonoBehaviour { public float timeBetweenAttacks = 0.5f; public int attackDamage = 10; GameObject player; PlayerHealth playerHealth; EnemyHealth enemyHealth; EnemyMovement enemyMovement; private bool player...
e3e48bc0e202e9e70550487858c7036dda1b44dd
C#
viswanathr88/Reads
/Source/Epiphany.View.Shared/Converters/InverseBooleanToVisibilityConverter.cs
3.03125
3
using System; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; namespace Epiphany.View.Converters { /// <summary> /// Represents an inverse boolean to visibility converter /// </summary> public sealed class InverseBooleanToVisibilityConverter : IValueConverter { /// <summary> ///...
b064fc4c36291165c5e8587fb08822c9657b4042
C#
PlumpMath/gameoff2017-3
/Assets/Scripts/Other/MusicManager.cs
2.671875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MusicManager : MonoBehaviour { public static MusicManager instance = null; public AudioClip[] musicTracks; private AudioSource audioSource; private int trackNumber = -1; private void Awake() { ...
4eef96b8f058b540584fd067b50609286791eab5
C#
Alibek15/HW12
/Car.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp26 { public delegate void CarEventHandler(); public abstract class Car { public event CarEventHandler Finish; public string Name { get; set;...
9e3039f069f9d344f29d5874a53c17e02bddc752
C#
3ligriv/Import
/Import/Pictures.cs
2.546875
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 Import { public partial class frm_Pictures : Form { List<File...
e06d66e84e13bbeea7aaab8232f07c8092bd85e0
C#
fabioalpizar/GokuTrainer
/CharacterTrainer/CharacterTrainer/Controller/ViewController.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using CharacterTrainer.Model.Activities; using CharacterTrainer.Model.Rooms; using CharacterTrainer; using System.Drawing; using CharacterTrainer.Model; namespace CharacterTr...
f5eb463943ecee3c52e81c55d9a8851b6a9d2d28
C#
Blicary/KORT
/KORT/Assets/Scripts/Character/Weapons/RangedBase.cs
2.734375
3
using UnityEngine; using System.Collections; public abstract class RangedBase : WeaponBase { /* // Combat variables private GameObject bolt; // Override RunAttack() from WeaponBase // Helper functions for run attack private void HandleBoltInstantiation() { /// This is the funct...
eeebe704979a62f04c82408cda4b2e20f5780e22
C#
ironyse/TowerDefense
/Assets/Scripts/Bullet.cs
2.515625
3
using UnityEngine; public class Bullet : MonoBehaviour { private int _bulletPower; private float _bulletSpeed; private float _bulletSplashRadius; private dynamic _bulletTarget; private void FixedUpdate(){ if (LevelManager.Instance.IsOver) return; //Skip code block if Is Over if...
8615a8f65fae467fb30ce1113729daef67ab6e8e
C#
Valsom/Logging.File
/Valsom.Logging.File/FileLoggerProvider.cs
2.65625
3
using Microsoft.Extensions.Logging; using System; using System.IO; using System.Runtime.InteropServices; using Valsom.Logging.File.Formats.Abstractions; namespace Valsom.Logging.File { public class FileLoggerProvider : ILoggerProvider { private readonly string _name; private readonly Director...
d4a3c943ca266348cff4f84f77b018575c2088f1
C#
brekooname/HCMS
/HCMS.WebFramework/Security/ActiveDirectoryUser.cs
2.890625
3
using System; using System.DirectoryServices; namespace HCMS.WebFramework.Security { [Serializable] public class ActiveDirectoryUser:IComparable { #region Private Members private string _SAMAccountName = string.Empty; private string _givenName = string.Empty; private stri...
ade0fff59c978cee456fa14c22bd59aff01cfe42
C#
Tiburrs/GetFitVR
/CS6334-Project/Team12/Assets/Scripts/SensorCalibration.cs
2.53125
3
/* This is the script in charge of walking the user through calibrating their phone's * rotation in preparation for the various supported exercises. * * To start a calibration walkthough, call beginCalibration() from an outside script. */ using System.Collections; using System.Collections.Generic; using UnityEngin...
0260aae915aae4337c081c491316b0951e8c74b8
C#
lucassklp/Rx.Http
/Rx.Http/Logging/RxHttpDefaultLogger.cs
2.59375
3
using Microsoft.Extensions.Logging; using System; using System.Net.Http; using System.Threading.Tasks; namespace Rx.Http.Logging { public class RxHttpDefaultLogger : HttpLoggerBase, RxHttpLogger { private readonly ILogger<RxHttpLogger> logger; public RxHttpDefaultLogger(ILogger<RxHttpLogger> l...
28c7e46ee5a889d63f31da7dc064adfcc8496342
C#
emilioplatzer/import2sql
/Comunes/Colecciones.cs
3.078125
3
/* * Created by SharpDevelop. * User: Administrador * Date: 03/05/2008 * Time: 11:14 a.m. * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; using System.Text; using NUnit.Framework; namespace Comunes { public class Diccionario<TKey, TValue>:Syst...
19e7051fa687b51fb0da9a31b39f922ffd28d2ec
C#
BraveBoi543/ErrorHandling
/ErrorHandling/Handlind/TryCatchMe.cs
3.390625
3
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace ErrorHandling.Handlind { class TryCatchMe { public static void MyErrors() { try { using (StreamReader sr = File.OpenText("bob.txt")) { ...
f1b8081d8424d2ae5bf9b3e6d1b984ef01e77655
C#
wangmh2003/NorthFCS
/Common/BFM.Common.DeviceAsset/Socket/SocketModula.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BFM.Common.DeviceAsset.Socket; namespace BFM.Common.DeviceAsset.Socket { /// <summary> /// 自动货柜 的 Socket 通讯协议解析 /// </summary> public class SocketModula : ISocketCommDevice { ...
26b36471f03a01b19821e1a43aaf27df8dcebb94
C#
mas-yo/rustcs-test
/game/Class1.cs
3.1875
3
using System; using System.Linq; using System.Runtime.InteropServices; using System.Threading; namespace game { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct ObjInfo { public string Name; public int X; public int Y; public ObjInf...
ec8ee0b7fcc8da2eba48bf45d55ebc544870935c
C#
zaytsev-oleg/oz_csh110_wb
/task_14/Program.cs
3.609375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace task_14 { class MyStack { public const int StackSize = 10; public const int Empty = -1; private static string[] arrStack = new string[StackSize]; priva...
9c82ac8c78253764bb94e140727e73b8d5e775d0
C#
mgroves/dotnet-couchbase-ef3
/src/EFCore.Relational/Query/Expressions/AliasExpression.cs
2.703125
3
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Linq.Expressions; using JetBrains.Annotations; using Microsoft.EntityFrameworkCore.Query.Sql; using Microsoft.EntityFramework...
8cb60c4566284b5ac7e451613ebcad2d045c49dc
C#
MaskerPRC/oldmalwaresourcecode
/gopnik/Controller GUI update/Security/CBase64.cs
2.53125
3
using System; using System.Collections.Generic; using System.Text; namespace Controller.Security { class CBase64 { public static Byte[] ToBase64(Byte[] arr_bBuffer) { return UnicodeEncoding.Unicode.GetBytes(Convert.ToBase64String(arr_bBuffer)); } public static Byte...
1f3ff23cadb64b6a7092f7aed5088e92690491c9
C#
15831944/GoDEX
/Labeler/Forms/frmProgress.cs
2.59375
3
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespace Labeler { /// <summary> /// Summary description for frmProgress. /// </summary> public class frmProgress : System.Windows.Forms.Form { private System.Windows.Forms.ProgressBar Progres...
529b3b1d612a2b97e51f2d1475e49f8e0be84d9e
C#
sellyzn/CodingInterview
/CodingInterview/CodingInterview/BitManipulationProblems/SingleNumbers56I.cs
3.71875
4
using System; using System.Collections.Generic; using System.Text; namespace CodingInterview.BitManipulationProblems { public class SingleNumbers56I { public int[] singleNumbers(int[] nums) { var xor = 0; //初始化异或结果位0 foreach(var num in nums) { ...
97aeda637ce6e4c60b2461f12b334d6a8c0d2eaf
C#
AlkSt/CPT-Parser
/CPT_Parser/Tools/SavedXMLToFile.cs
3.140625
3
using Microsoft.Win32; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace CPT_Parser { class SavedXMLToFile { public string FilePath { get; set; } private bool savedStatus; ...
aa5c046b4f68302848ed36fbafdf5285d41a1b98
C#
jhkuan1989/mvc-as-gateway
/mvc-as-gateway-web/Common/JwtTokenHelper.cs
2.625
3
using Microsoft.IdentityModel.Tokens; using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.Security.Principal; using System.Web; namespace mvc_as_gateway_web.Common { public class JwtTokenHelper { const str...
ee355cd63d2a41f29f308602ea058d8f73f18e4a
C#
shendongnian/download4
/code10/1818268-53617943-187146449-2.cs
2.734375
3
public class SqlConnectionProperties { public SqlConnectionProperties(string dataSource, string initialCatalog) { DataSource = !string.IsNullOrEmpty(dataSource) ? dataSource : throw new ArgumentException(nameof(dataSource)); InitialCatalog = !string.IsNullOrEmpty(initialC...
906e8319730a243d2bede5595ecc44d348939db3
C#
DioMuller/quest-for-the-crown-3D
/Game/Assets/Scripts/AI/TargetSelector.cs
2.921875
3
using UnityEngine; using System.Linq; using System.Collections; public class TargetSelector : MonoBehaviour { #region Public Attributes /// <summary> /// Tags the entity will seek. /// </summary> public string[] TagsToTarget = { "Player" }; /// <summary> /// Seconds to recalculate next target. /// </summary>...
6a5807608431107d3d44355a88a4b70ef63ccb4a
C#
deldin/MoqAssignment
/Original/Project/Packages/Source/Ista.FileServices.Infrastructure/Interfaces/IPgpEncryption.cs
2.703125
3
namespace Ista.FileServices.Infrastructure.Interfaces { /// <summary> /// Responsble for encrypting and decrypting files using PGP algorithms. /// </summary> public interface IPgpEncryption { /// <summary> /// Decrypts contents of source file writing contents /// to destinat...
97ed7652549b81f4c9edd21b1cb78e1646827628
C#
shendongnian/download4
/code11/1933281-58425925-207400997-2.cs
2.59375
3
cs public delegate void OnLongRunningOperationStartedEventHandler(object sender); public delegate void OnLongRunningOperationFinishedEventHandler(object sender); public event OnLongRunningOperationStartedEventHandler OnLongRunningOperationStarted; public event OnLongRunningOperationFinishedEventHandler OnLongRunningOpe...
d8ae56d2dfa460204632b0997e898df7701fc8b0
C#
Squiff/maze-solver
/MazeSolverApp/MazeSolver/Model/Solver/ISolver.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MazeSolver.Model { /// <summary> /// Inerface for classes that are used to solve a Maze /// </summary> interface ISolver { Maze Maze { get; } Cell Current {...
639bf4d8668351c1a1bc8d8a70e8036a2f3394ec
C#
xiaotiantakumi/Atcoder
/Atcoder/ABC/ABC214/C.cs
3
3
using System; using System.Linq; using CoderCommon; namespace Atcoder.ABC.ABC214 { public class C : CoderBase { public override void Run() { var N = int.Parse(Console.ReadLine()); var Si = Console.ReadLine().Split().Select(int.Parse).ToArray(); var Ti = Cons...
980125a5785c446633d976438fa9fd86777864c1
C#
Steffkn/SoftUni
/03.CSharpDev/01.Advanced/ExamPreparations/19June2016/04.CubicAssault/CubicAssault.cs
3.59375
4
namespace _04.CubicAssault { using System; using System.Collections.Generic; using System.Linq; public class CubicAssault { static void Main() { string input = string.Empty; var dict = new Dictionary<string, Dictionary<string, long>>(); while ((...
32522a9e80dfc24eca7981f61ed4d45b9d7e8725
C#
elkrot/Examples-CSharp
/Code/ch23/BitmapSorter/ScrambledBitmap.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using System.Threading; namespace BitmapSorter { class BitmapLine { public int Index { get; private set; } public Color[] Pixels { get; private set; } public BitmapLine(int index...
352fb646291276d636abbceaa873dceb5bde6ebf
C#
viktorz/neurolib
/Neurolib.SimpleBackProp/BackPropNeuralNetworkTrainer.cs
3.0625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Neurolib.SimpleBackProp { public class BackPropNeuralNetworkTrainer { private int maxIterations; private double learningRate; private ...
cde83e75c70121f314553a4ab7eb4509ec4a3854
C#
luhdriloh/UnitySaveFile
/Assets/Scripts/GameData.cs
2.734375
3
using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Collections.Generic; using UnityEngine; public class GameData : MonoBehaviour { public Dictionary<FlowerColor, int> _numberOfFlowers; private readonly string _saveFileName = "/save_data.dat"; private void Awake() { ...