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
5fe1027dedd5bb24c309c84c0d6894d6b3b376de
C#
tdcoish/OGK_ChessSoftware
/OGK_Chess/Assets/Scripts/Board/DT_BD.cs
2.734375
3
/************************************************************************************* The board we play on. *************************************************************************************/ using UnityEngine; public static class PieceInfo{ public static uint _white = 1<<1; public static uint ...
1c9fd56fb74cdb0c02e20c1f8f2a427058435623
C#
mathiasuy/webservice
/Logica/LTipoTraslado.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using EntidadesCompartidas; using ExcepcionesPersonalizadas; using Persistencia; namespace Logica { public class LTipoTraslado { //Buscar public static TipoTrasladoType BuscarTipoTraslado(int id) { ...
35623721ab235d453bd1e7c1b63c29846310ee51
C#
Noah-Garrett/csharp-exercises
/video-basics/Program.cs
3.453125
3
using System; namespace videobasics { class MainClass { public static void Main(string[] args) { string myString = "My \"so-called\" life"; string myString2 = "what if i need a \nnew line"; string myString3 = @"Go to your c:\ drive"; string mySt...
31f1b4960516d19f0137235a3540707af18043fe
C#
OlufemiFowosire-zz/PluralsightDesignPatternsPracticeCodes
/Patterns/TemplateMethod/TemplateMethod/TemplateMethod.Test/ColdVeggiePizzaServicePrepare.cs
2.640625
3
using System; using System.Collections.Generic; using System.Text; using Xunit; using Xunit.Abstractions; namespace TemplateMethod.Test { public class ColdVeggiePizzaServicePrepare { private readonly ITestOutputHelper output; public ColdVeggiePizzaServicePrepare(ITestOutputHelper output) ...
c1f6d54dfd3fdd59e28b6cd4bd07f1f49c2180af
C#
kallDun/Google-Hash-Code
/Google Hash Code/Models/Car.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Google_Hash_Code { class Car { public List<Street> streets; public Street street_now; public int time_to_intersection; public Car(List<Street> street) ...
1ca486ad12b94498db0ac7e506cc8cd8cd9b4fe0
C#
jalex/VisioAutomation
/VisioAutomation_2010/VisioAutomation/Shapes/UserDefinedCellHelper.cs
2.5625
3
using System.Collections.Generic; using System.Linq; using VisioAutomation.Exceptions; using VisioAutomation.Extensions; using VisioAutomation.ShapeSheet; using IVisio = Microsoft.Office.Interop.Visio; namespace VisioAutomation.Shapes { public static class UserDefinedCellHelper { private static readonl...
137a4e6745a8d708a844f2ac0f325758e5955d5d
C#
asyade/RaidBot
/RaidBot.Protocol/messages/game/inventory/items/ObjectAddedMessage.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using RaidBot.Protocol.Types; using RaidBot.Protocol.Messages; using RaidBot.Common.IO; namespace Raidbot.Protocol.Messages { public class ObjectAddedMessage : NetworkMessage { public const uint Id = 3025; public override uint MessageId { get { retu...
8541a3bcdb4900d6e75721b9c98b673808d84f03
C#
Saihar1sh/battle-tank-game
/Assets/Scripts/Camera/CameraSwitch.cs
2.515625
3
using UnityEngine; using UnityEngine.UI; public class CameraSwitch : MonoBehaviour { [SerializeField] private GameObject cam , cam3rdPerson; [SerializeField] private Button switchCamBtn; private int count = 0; private void Awake() { switchCamBtn.onClick.AddListener(SwitchCam); ...
d78fbe3ce52b2d161b0e201011217979ff95d25b
C#
zachtodd99/STEPS-Student-Teacher-Educational-Process-Supplement
/Assets/_scripts/stats.cs
2.71875
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class stats : MonoBehaviour { public GameObject statPrefab; // Use this for initialization void Start () { User user = GameObject.Find("User").GetComponent<User>(); user.s...
0a816bd0da3498b290a9f739c23b3ffc77a85f36
C#
maziesmith/WebServices
/Week4/WcfInClass1/WcfInClass1/WcfInClass1/ContactManager.svc.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; namespace WcfInClass1 { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in code, ...
1c149460006fc7984c9534afeac19f8eac199b72
C#
marcdacz/interpreter
/Code/Interpreter.Models/Collections/VariableCollection.cs
3.03125
3
using System; namespace Interpreter.Models.Collections { public class VariableCollection : BaseScopedValueCollection<object> { private VariableTypes GetVariableType(string name) { VariableTypes type = VariableTypes.Unknown; if (name.StartsWith("local", StringComparison....
b3988d382a35c5dd4cd42394a167788148fe5fa5
C#
nickky2010/C-Sharp-HW7
/HW7_5/Program.cs
3.015625
3
// Задание 5 //Создать структуру, которая должна содержать следующие элементы: //поля для хранения фамилии, даты рождения, даты поступления, диагноза, //свойство для определения продолжительности пребывания в больнице в днях, //метод для определения возраста.Для описания последн...
92a98100aeec11992486542135da495ae307e5aa
C#
Joelx/Schlangenwettkampf_Forms
/Schlangenwettkampf_Forms/Form1.cs
2.609375
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 Schlangenwettkampf_Forms { public partial class Welt : Form { public Welt() ...
bbd15aa47736a21d976d496a9ab2d80cc751ec3b
C#
KirillOsenkov/AspNetCore-Tooling
/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Formatting/StringExtensions.cs
2.734375
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; namespace Microsoft.AspNetCore.Razor.LanguageServer.Formatting { internal static class StringExtensions { public static ...
4e7e87c60f93d5a3f2498319329f9c24c8126636
C#
ectuser/Object-Oriented-Programming
/SpaceStrategy/SpaceStrategy/Form1 Parts/Registry.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace SpaceStrategy { public partial class Form1 { // REGISTRY public static Random rnd = new Random(); public static List<Resource> reso...
0acec7cac521474278ba25240dacb555133362cb
C#
SmitaJShetty/Betting-Problem
/totebettinproblem/GameRunner.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.ObjectModel; namespace ToteBettinProblem { public class GameRunner { public Collection<IGame> GamesSet { set; get; } public Collection<Bet> BetList { set...
225cd74358bc31698707f36122e2af8f05242d98
C#
humamAbedrabbo/BarjeesGameWindows
/Elements/Cell.cs
3.046875
3
using Barjees.Common; using Barjees.Shapes; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Barjees.Elements { /// <summary> /// Board cell class /// </summary> public sealed class Cell : VisualGameObje...
24128d8627ec481d654763b66d38927e610b23e6
C#
KatySpielberg/Tic-Tac-Toe-in-WINFORM-
/WinForm_TicTacToe/WinForm_TicTacToe/Form1.cs
3
3
using System; using System.Windows.Forms; /// <summary> /// https://www.youtube.com/watch?v=p3gYVcggQOU&t=32s /// </summary> /// https://www.youtube.com/watch?v=mRg4FNvxjjo namespace WinForm_TicTacToe { public partial class Form1 : Form { bool turnX = true; // false will be = turn of O ...
d8ac44d9b14c84f52c93a74aacc531c9ca185aeb
C#
jeromeb85/Yis
/Source/CSharp/Yis/Framework/Data/Database/Paramhelper.cs
2.59375
3
using Oracle.ManagedDataAccess.Client; using System; using System.Data; using System.Data.Odbc; using System.Data.SqlClient; namespace Yis.Framework.Data.Database { public sealed class DbDataParamHelper { private DbDataParamHelper() { } public static IDataParameter BuildDataPa...
fd157d132fd5eb6325b1b5ed15eee6c8347ebc19
C#
r-net11/Rubezh
/Projects/Common/OpcDaServer/OpcDaServer/OpcDaItemBase.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace OpcFoundation { /// <summary> /// Тег или директория OPC DA сервера /// </summary> public abstract class OpcDaItemBase { public OpcDaItemBase() { _items = new List<OpcDaItemBase>(); } #region Fields And Pr...
6df6ae2f0905a215ea58fc0218dd58f9d8004a2f
C#
AATerekhov/CuttingSheet
/RandomlyCuttingSheet/Helper.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using Tekla.Structures.Geometry3d; namespace RandomlyCuttingSheet { class Helper { public static IOrderedEnumerable<RandomlyPlate> SortingFCNR(IOrderedEnumerable<RandomlyPlate> orderByPlateList, int widthMainPlate) { ...
aa34846d34ded41297cbf95faad4e86aef1e8d80
C#
JavierRoviraltaTerron/MedicalAppointmentManager
/WebAPI/Controllers/AppointmentController.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using MedicalAppointmentManager.BusinessLogic.Interfaces; using MedicalAppointmentManager.BusinessLogic.Models; namespace MedicalAppointmentManager.WebAPI.C...
bcc86fbe50a3cdfdf6e12ca7c434e38c3d1b02ed
C#
ztepsic/MedOrd
/src/MedOrd/MedOrd.DomainModel/MedicalCase.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MedOrd.DomainModel.Enumerations; namespace MedOrd.DomainModel { public class MedicalCase : PersistentObject { #region Members /// <summary> /// Dohvaca ili postavlja naziv medicinskog slucaja /// </summary> public...
518f841836e107ec5803aa93b508bd34ee2e32cc
C#
HarunDilukaHeshan/KnBPrototype01
/Knb.App.Simulator.Shared/GameData/CardPack.cs
3.171875
3
using System; using System.Collections; using System.Collections.Generic; using System.Text; namespace Knb.App.Simulator.GameData { public class CardPack : IEnumerable<Card> { protected Card[] Cards { get; } public int Count { get { return Cards.Length; } } public CardPack(Card[] card...
11683c14fb1b163b8fbaf88e2e34b7d130e2cabb
C#
krishna5816/RestaurantSystem
/ManifacturedMenuitems/Menufactured_partial.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using CustomControls; using System.Drawing; namespace RestaurantSystem.ManifacturedMenuitems { public partial class List { #region groub_by_itm public ...
28e8c7256e08921313395936a6bf16de99ed4884
C#
shendongnian/download4
/first_version_download2/535476-50182303-172739255-4.cs
3.1875
3
// Assign the game objects manually from the Unity interface via drag and drop. That is why public. Public GameObject[] ParticleSystems; Private String[] YourEmotions; float activationDuration = 15f; // Your code to retrieve the txt value and assign to 'YourEmotions' array. Have the order match...
01a51cd728a59b4edacf735a381a42483bb39146
C#
goozgk/Free-Snipping-Tool
/Free Snipping Tool/Operations/Shortcuts.cs
2.515625
3
using System; using System.Windows.Forms; using System.Runtime.InteropServices; class Shortcuts { public static string[] keys = { "PrintScreen", "Home", "End", "PageUp", "PageDown", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12" }; public static string[] Modifiers = { "Windows", "S...
3695a10c77cd93e91204515329d0f7ace80cf152
C#
Bpoe/WakeOnLan
/WakeOnLanCmdlet/Extensions.cs
3.796875
4
//----------------------------------------------------------------------- // <copyright file="Extensions.cs"> // Copyright // </copyright> //----------------------------------------------------------------------- namespace Poesoft { using System.Collections.Generic; using System.Globalization; ...
e887308dea73ef9e0942b3bf58a0ff7998423a46
C#
catahoc/ClimatePicking
/srv/ClimatePicking.DataRetriever/LoadLonLatScript.cs
2.5625
3
using System; using System.Data.Entity; using System.Linq; using ClimatePicking.Domain; namespace ClimatePicking.DataRetriever { public class LoadLonLatScript { public static void Do() { var countries = CountryRecord.Retrieve(); using (var context = new Clima...
4a038d60fbc1901dc8532a2ad5cc52c930d6fe2f
C#
ap0llo/mddocs
/src/MdDocs.ApiReference.Test/Model/XmlDocs/XmlDocsReaderTest.cs
2.640625
3
using System; using System.Linq; using System.Xml.Linq; using Grynwald.MdDocs.ApiReference.Model; using Grynwald.MdDocs.ApiReference.Model.XmlDocs; using Microsoft.Extensions.Logging.Abstractions; using Xunit; namespace Grynwald.MdDocs.ApiReference.Test.Model.XmlDocs { public class XmlDocsReaderTest { ...
3e433d9c7c4802d2b07cf3752a6129c02019b073
C#
stpersam/BDDPrufung
/XUnitTestProject2/SpecFlowFeature1Steps.cs
3.125
3
using System; using TechTalk.SpecFlow; using Xunit; namespace XUnitTestProject2 { [Binding] public class SpecFlowFeature1Steps { double pi; [Given(@"the first number is (.*)")] public void GivenTheFirstNumberIs(double p0) { pi = p0; } [W...
3966f6865a9b48beb8f9e5049634ad6bd3d09cd3
C#
benvaro/MDI_Demo
/MDI_Demo/Parent.cs
2.6875
3
using System; using System.Windows.Forms; namespace MDI_Demo { public partial class Parent : Form { public Parent() { InitializeComponent(); } private int id = 0; public int COUNT_ITEMS => 8; public ToolStripItemCollection WindowDropDownItems => w...
10104f59d3a208690539728cc933cc7580237a2e
C#
shendongnian/download4
/code3/542175-12568763-29602084-2.cs
3.1875
3
delegate void T2(); static void Main(string[] args) { T2 Thread = new T2(Work); while (true) { IAsyncResult result = Thread.BeginInvoke(null, null); //OTHER WORK TO DO Thread.EndInvoke(result); } ...
f4ca98c51b070a6a9a96d11b2e8072231cae49a9
C#
EladHarizy/fluffy-octo-robot
/src/Lib/Lib.DataTypes/Email.cs
3.0625
3
using System.Collections.Generic; using System.Text.RegularExpressions; using Lib.Exceptions; namespace Lib.DataTypes { public class Email { private const string regex = @"^(?=[A-Z0-9][A-Z0-9@._%+-]{5,253}$)[A-Z0-9._%+-]{1,64}@(?:(?=[A-Z0-9-]{1,63}\.)[A-Z0-9]+(?:-[A-Z0-9]+)*\.){1,8}[A-Z]{2,63}$"; private readonl...
3a4dc4c0243b7427c338609991393177f9636b00
C#
dsuz/unity-game-dev1-2nd-term-2020
/Assets/Scripts/MoveObjectCurveToPlayer.cs
2.796875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// まっすぐ下に移動し、プレイヤーに近づいたらその方向に曲げるように動かすコンポーネント /// </summary> [RequireComponent(typeof(Rigidbody2D))] public class MoveObjectCurveToPlayer : MonoBehaviour { /// <summary>移動速度</summary> [SerializeField] float m_speed =...
efb8953b0c8a3c0aed6718f33522d959052b0257
C#
semenow94/CS-Algoritms-and-Structures
/HW2-2/Program.cs
3.9375
4
using System; namespace HW2_2 { //Требуется написать функцию бинарного поиска, посчитать его асимптотическую сложность и проверить работоспособность функции. //O(n)=log(n) class Program { static void Main() { Console.WriteLine("Имеем отсортированный массив из 20 элементов")...
a7ab5a10d3486c0de0f80a04bcc6c8cd15800f5d
C#
RichardBradley/MMEd
/MMEd/Ad3ds/FaceListChunk.cs
2.859375
3
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace MMEd.Ad3ds { class FaceListChunk : Chunk { public override void Deserialise(Stream xiInStream, int xiLength) { BinaryReader lReader = new BinaryReader(xiInStream); int lCount = (int)lReader...
881a275e1bd588d42309d98331913461aba37d58
C#
kurtosmate/DesignPatterns
/DesignPatterns/Command/Command.cs
2.875
3
namespace DesignPatterns.Command { /// <summary> /// The 'Command' abstract class /// </summary> abstract class Command { protected Adder receiver; // Constructor public Command(Adder receiver) { this.receiver = receiver; ...
a710239abe4cd53630b8ebbc108f1a1c689c70c9
C#
mvppet/Community
/CommunityClassLibraryTests/CommunityClassLibrary/Generic/BasicPositionSteps.cs
2.90625
3
using CommunityClassLibrary.Locations; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using TechTalk.SpecFlow; namespace CommunityTests.CommunityClassLibrary.Generic { [Binding] public class BasicPositionSteps { BasicPosition bp; [Given(@"I have a new position object")] ...
1b64a226a131083fb544868e5cad0b79aad1b5c4
C#
shawn718/KraceGennedy
/KraceGennedy/Controllers/NotificationController.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using KraceGennedy.Interfaces; using KraceGennedy.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; // For more information on enabling Web API for empty projects, visit https://go.microsof...
58adec9385c2b22aba5257c52f8dac5e0b23f926
C#
samuelhegner/Flocking_Unity2D
/Flocking Simulation 2D/Assets/Shapes/Scripts/Runtime/Microtypes/RectPivot.cs
2.578125
3
using UnityEngine; // Shapes © Freya Holmér - https://twitter.com/FreyaHolmer/ // Website & Documentation - https://acegikmo.com/shapes/ namespace Shapes { public enum RectPivot { Corner, Center } public static class RectPivotExtensions { public static Rect GetRect( this RectPivot pivot, Vector2 size ) => ...
961db073d877b3a06bb0a345b92062ebc975145e
C#
OtherCannon/baja-lang
/compiler/Program.cs
3
3
using System; using LLVMSharp; namespace Baja { class Program { public static Properties BuildProps; static void Main(string[] args) { // Create a new Properties container BuildProps = new Properties(); // Check for arguments. If none given, check ...
10291b88f877dfa1203393655f560ba568cae6f1
C#
jordoin/nute
/Armlet/OpenSpace/ArmletServer/Server/HonorLogic/ArmletList.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using NetworkLevel.WCFServices; using PillInterfaces; namespace HonorLogic { internal class ArmletList { private readonly Dictionary<int, Armlet> _armlets = new Dictionary<int, Armlet>(); private readonly object _syncRoot = new...
eab24e220ca21cf4f4bda0b1320c0773a406bf4c
C#
KillerMaker/ComprasWinForm
/ComprasWinForm/Modelos/CSolicitud.cs
2.78125
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ComprasWinForm.Modelos { class CSolicitud : CEntidad { public readonly int? id; public readonly int empleado; pu...
32efb600efc5cf9d5a32720af6c8c75c28e65f7c
C#
RadSt/WPF-App-For-Ref
/VisualPacker/Models/Container.cs
2.953125
3
using System; using System.Collections.Generic; using System.Windows.Media.Media3D; namespace VisualPacker.Models { public class Container : ICloneable { private int priority; //приоритет загрузки private String color; //Цвет предмета при отображении на схеме укладки (в HTML формате...
7ca63bc4d1cffbbc78238b0bfd0aa2d0ce271e97
C#
tolchev/Budget
/WpfObjectView/Views/DetailFrameItems/DetailFrameItemContainer.cs
2.625
3
using System.Collections.Generic; using System.Reflection; using System.Windows; using System.Windows.Data; namespace WpfObjectView.Views.DetailFrameItems { class DetailFrameItemContainer { readonly List<BindingExpressionBase> bindingExpressions; readonly DetailFrameItemFactory itemFactory; ...
13b74ab991aac4ffc6853a6693ddb4709c099b32
C#
sametcem/csharp
/Task10/Controllers/StudentsController.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Task10.Models; namespace Task10.Controllers { public class StudentsController : Controller { List<Student> lst; public StudentsController() ...
587e3f4af3f2d4ca7ac80cd4b95ad08385fb30c5
C#
hirotk/Algorithm
/AlgorithmTest/BinarySearchTest.cs
2.953125
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Algorithm; namespace AlgorithmTest { [TestClass] public class BinarySearchTest { static int[] a = { -2, 0, 2, 3, 5, 7, 11, 11, 13, 17, 19, 23}; [TestMethod] public void IndexOfTest() { int expected = -...
c072cf0e0e7a685cdce10238f2184f1f9c56ddff
C#
beetee2/BlackJackMVC
/Blackjack/Models/Card.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Diagnostics; namespace Blackjack { public class Card { private string[] suits = {"club", "diamond", "heart", "spade"}; private List<string> letters = new List<string> { "j", "q", "k"}; ...
3a7bdab8cd440610815675c64c8d677740703321
C#
flovo89/Logger
/Logger/Logger.Common.Base/Prism/DelegateLogger.cs
2.75
3
using System; using Microsoft.Practices.Prism.Logging; namespace Logger.Common.Prism { public sealed class DelegateLogger : ILoggerFacade { #region Instance Constructor/Destructor public DelegateLogger (Action<string, Category, Priority> loggingDelegate) { if (loggingD...
aed2c083bc4b41a5933119cc26d8fc57a7d3724e
C#
ap0llo/mddocs
/src/MdDocs.ApiReference/Model/_Extensions/TypeReferenceExtensions.cs
2.859375
3
using System.Collections.Generic; using System.Linq; using Mono.Cecil; namespace Grynwald.MdDocs.ApiReference.Model { /// <summary> /// Extension methods for <see cref="TypeReference"/>. /// </summary> internal static class TypeReferenceExtensions { /// <summary> /// Gets the <see ...
56a1d0b7c7e38250f9179f2f5c41e1d5f2ff0de1
C#
subbudatta/csv
/Test/ArgumentsTest.cs
2.53125
3
using NUnit.Framework; using System; using System.IO; namespace DevOps.Tests.CSVConverter { [TestFixture] public class ArgumentsTest { private static string assemblyPath = System.Reflection.Assembly.GetAssembly(typeof(ArgumentsTest)).Location; private static string assemblyDir = Path.GetD...
643a80e4c7448f1919a40d2469c9b47d503978a1
C#
BMerlo/JDynamic
/Assets/_Scripts/JsonDynamic.cs
3.078125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; public class JsonDynamic : MonoBehaviour { //need these strings to load and handle data string path = null; string textAsset = null; [SerializeField] UIBuilder uiBuilderRef; List<string> ...
fb52e880e57fbd01961ed05f9d0137b87e931521
C#
amd-9/simple-api
/GeoHelper/GeoHelper.cs
2.8125
3
using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using System; using System.Net.Http; using System.Threading.Tasks; namespace GeoHelper { public class GeoHelper { private readonly IHttpContextAccessor _httpContextAccessor; private readonly ILogger<Geo...
b3cf7d168ef345e8d3e2c14d5bf9fc995a91d88d
C#
wujpkimo/TranningCsharp
/Lession2/ConsoleApp3/Program.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { internal class Program { private static void Main(string[] args) { int[] v4 = new int[] { 4,44,444 }; ...
bbeb2e301b375bc4b2c997d32881d071592d9858
C#
larielrary/IT-DDP
/LR2/LR2/Controllers/DiaryNoteController.cs
2.71875
3
using ClassLibrary; using ClassLibrary.Repository; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Linq; namespace MeteorologicalDiaryServer.Controllers { [Route("api/[controller]")] [ApiController] public class DiaryNoteController : ControllerBase { private read...
c31101195a08f2f0f5694964195883d826ee9dd5
C#
NickUsov/asp-hw-2
/Controllers/HomeController.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace WebApplication3.Controllers { public class HomeController : Controller { // GET: Home public ActionResult Index() { return View(); } public...
053a266f6e6a47d1c75eb7ef75d9f147d9e0cdae
C#
themultiv3rs3/samples
/CS/App_Code/SqlServerPdfLiteSessionProvider.cs
2.625
3
using System; using System.Data; using System.Data.SqlClient; using System.Web; using RadPdf.Lite; // Not in use by default // Uncomment the approprate line in CustomPdfIntegrationProvider.cs public class SqlServerPdfLiteSessionProvider : PdfLiteSessionProvider { /* This class assumes a SQL Server table cal...
81aea16575d164cd061dff1c39b3bf9ffc841fb9
C#
ritschard/HomePLC_GUI
/Model/TriggerEngine.cs
2.625
3
using System; using System.Collections.Generic; using System.Text; using System.ComponentModel; using System.Xml; namespace HomePLC.Model { public class TriggerEngine : BindingList<BaseTrigger> { private List<BaseTrigger> fTriggerList; public void Save(string filename) { X...
54f3436cc86b1decd4d440d5a60908d02ef3d510
C#
mariapsz/SeleniumTests-CS
/CarrefourTests/PropertiesCollection.cs
3.15625
3
using OpenQA.Selenium; using System; using System.Collections.Generic; namespace CarrefourTests { class PropertiesCollection { public static IWebDriver driver { get; set; } public static List<Product> addedProductsList = new List<Product>(); public static void showAddedProductsList()...
cd78ab8275d59f203d6cf7675ee1c6e26ebf5739
C#
hujgup/Snake
/src/namespaceModel/tests/testFruit.cs
2.78125
3
using System; using System.Timers; using System.Collections.Generic; using SnakeGame.GridSystem; using NUnit.Framework; namespace SnakeGame.Model { /// <summary> /// Provides unit tests for the Fruit class. /// </summary> [TestFixture()] public class TestFruit { private void TestConstruction(Gri...
c2532d19a62d39a82b2d3317b807f661444a9b4c
C#
otemnov/ncqrs
/Framework/src/Ncqrs/Eventing/UncommittedEvent.cs
2.75
3
using System; using Ncqrs.Eventing.ServiceModel.Bus; namespace Ncqrs.Eventing { /// <summary> /// Represents an event which has not been yet persisted. /// </summary> public class UncommittedEvent : IPublishableEvent { private readonly object _payload; private readonly l...
f7db638cce3bb6a9f817f53252ec472850f74fc8
C#
lucasloss/TextFileSearch
/TextFileSearch/Model/PathInformation.cs
3.375
3
using System.Collections.Generic; namespace TextFileSearch { /// <summary> /// Represents the path where the application is going to search for files. /// </summary> public class PathInformation { /// <summary> /// Gets or sets the path where the aplication is going to search for f...
7a131a753b32e3ad39ada3b19e76ca4f75604c0b
C#
vukhai98/csharpbasic
/test/csharpbasic/ConsoleRead/Program.cs
3.09375
3
using System; namespace ConsoleRead { class Program { static void Main(string[] args) { //Console.WriteLine(Console.Read()); // đọc 1 ký tự từ bàn phím bằng lệnh Console.Read() sau đó in ra ký tự vừa đọc ( bảng mã askey) //Console.ReadKey(); // lệnh này dùng với mục đíc...
77b28cf62dcdaadd43ce97928d0ed9d99de29e23
C#
flashd2n/main-telerik-git
/databases/Training/Code-First/CFTraining/ACFTraining.Data/Migrations/Configuration.cs
2.515625
3
namespace ACFTraining.Data.Migrations { using CFTraining.Models; using System.Data.Entity.Migrations; public sealed class Configuration : DbMigrationsConfiguration<CFTrainingDbContext> { public Configuration() { this.AutomaticMigrationsEnabled = true; this.Automa...
73ed0ec2d2079b4655d0c553400a59dd506e6121
C#
jrmrtns/cwat
/CWAT/Cellent.Template.Common/Interceptors/LoggingInterceptor.cs
2.953125
3
using System; using System.Diagnostics; using System.Linq; using System.Threading; using Cellent.Template.Common.Extensions; using Microsoft.Practices.Unity.InterceptionExtension; namespace Cellent.Template.Common.Interceptors { /// <summary> /// Interceptor für das Log /// </summary> public class Log...
0c3c984a5c6b9d091b9328bdeb0a51bbac737c26
C#
joycymichael/CSExercises
/CSExercises/Ex07-15/Ex10.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSExercises { public class Ex10 { public static void Main(string[] args) { int d1, d2; double d; Console.Write("\n\t\tDistance betw...
e0bf210ef6f3666ec71b0e3b0b0575b73a49a279
C#
binary-dao/A-star
/Assets/Scripts/ModelScript.cs
2.578125
3
using System; using System.Collections.Generic; using UnityEngine; public class ModelScript : MonoBehaviour { internal const int MAX_ROWS = 50; internal const int MAX_COLS = 50; private const int NEIGHBOUR_DISTANCE = 1; //for really bad cases and mistakes private static int MAX_ITERAT...
8bdc65ffc52e062cdea9b87cc426d900f511c522
C#
brianly/Yammer.NET-2.0
/Yammer.APIWrapper/Group.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; using System.Collections.Specialized; namespace Yammer.APIWrapper { public class Group { #region Yammer Properties /// <summary> /// The object type, such as user, tag, etc. ...
8320bf9a2ccbd24ef6df1ea299b779e5afdfb0b2
C#
MadcowD/DeepLearn.NET
/NeuralLibrary/NeuralNetwork/Neuron.cs
3.40625
3
namespace NeuralLibrary.NeuralNetwork { /// <summary> /// The base unit of the neural network. /// Contains pertinent information to neural nodes and feedforward propagation thereof. /// </summary> public class Neuron { public Neuron() { Net = 0; ...
c4c32e0d5e8d1f05e7bcd4f0764694f013ec5043
C#
alexizt/CompositePattern
/CompositePattern/Program.cs
3.140625
3
using System; namespace CompositePattern { class Program { static void Main(string[] args) { var t1 = new Todo("Hacer A I"); var t2 = new Todo("Hacer A II"); var tc1 = new TodoComposite("Hacer Composite A"); var tc2 = new TodoComposite("Hacer Su...
385273784e0f9c550b92400deec643fde50bfd5e
C#
TodorVyagov/C-Sharp-Part-2
/2.Homework.MultidimensionalArrays/07.LargestAreaOfEqualElementsInArray/LargestAreaOfEqualElementsInArray.cs
3.953125
4
using System; //Write a program that finds the largest area of equal neighbor elements //in a rectangular matrix and prints its size. namespace LargestAreaOfEqualElementsInArray { class LargestAreaOfEqualElementsInArray { static int[,] matrix = { {1, 3, 2, 2, 2, 4}, ...
975099e04c4dd7b346f153abaf2582301c1dd2ec
C#
showtroylove/IGS
/Data/CodeExamples/SortActions.cs
2.96875
3
using System; using DevExpress.Spreadsheet; using DevExpress.Utils; using System.Globalization; using System.Collections.Generic; namespace SpreadsheetExamples { public static class SortActions { static void SimpleSort(IWorkbook workbook) { #region #SimpleSort Worksheet worksheet =...
592756717a0ceb03c3526ff913e72b5c8c22c15c
C#
kobbikobb/Folferine
/Folferine.Website/Domain/Game.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; namespace Folferine.Website.Domain { public class Game { public int Id { get; set; } public DateTime CreatedDate { get; set; } public virtual Course Course { get; set; } public virtual List<Scorecard> Scorecard...
6ec7cd2eced3f558b33f1c45de3770ae9c732cf2
C#
LightRay2/game
/Utils/Helpers/HEncoder.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Game2D.Game.Helpers { public class HEncoder { public enum Type{Byte, Int, Double, String} public static List<byte> Encode(params object[] vars) { MemoryStream s...
bdcb3d9e72d347f7569806b2c7bd09259c9cf293
C#
RainMaker777/my-time-tracker
/My Time Tracker - Windows/Classes/MostRecentUsed.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MyTimeTracker.Classes { public class MostRecentUsed<T> { #region Constants private string regKey_MaxItems = "MRU_MaxItems"; private string regKey_ItemCount = "MRU_ItemCount"; private string regKey_mruBaseName = "...
521880184f0339238eaf52d4e28ec6b5af1c372e
C#
gfloresuth/SimpleCRUDcsSource
/SimpleCRUDcsModel/MySQLDriver/MySQLDriver.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MySql.Data.MySqlClient; namespace SimpleCRUDcsModel.MySQLDriver { public class MySQLDriver : ErrorHandler, IDatabaseConnection { private MySqlConnection _connection; public...
d558a0cde1c500c4d08a7888a40caa7ad4ee975d
C#
HendrickSamuel/MyCartography
/CLShape/POI.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CLShape { public class POI: Coordonnees { #region VARIABLES private string _description; #endregion #region PROPRIETES public string Descripti...
b636f84fcba77757617916e0ed8fd29f2d6faded
C#
shendongnian/download4
/code2/195447-3733925-7816637-2.cs
2.78125
3
private readonly object _sync = new object(); public event PropertyChangedEventHandler PropertyChanged { add { lock (_sync) _propertyChanged += value; } remove { lock (_sync) _propertyChanged -= value; } } private PropertyChangedEventHandler _propertyChanged; protected void O...
6fcd82a6fec95df98d407ce66c0212d8840a2d0b
C#
radtek/credit-card-exchange
/Client Generator/TargetClass/WaitForUpdateMethod.cs
2.734375
3
namespace FluidTrade.ClientGenerator.TargetClass { using System.CodeDom; using FluidTrade.Core; /// <summary> /// Creates a method to dispose of the resources used by the data model. /// </summary> class WaitForUpdateMethod : CodeMemberMethod { /// <summary> /// Creates a method to dispose of the...
21f69bffc88eac185eaf71f7b755652af34dbf26
C#
ahristoff/OOP-Advanced
/5_Reflection/EXERCISES/EXERCISES/P04_BarraksWars/Core/Engine.cs
3.125
3
using System; using _04BarracksFactory.Contracts; namespace _04BarracksFactory.Core { class Engine : IRunnable { private IRepository repository; private IUnitFactory unitFactory; private ICommandInterpreter commandInterpreter; public Engine(IRepository repository, IUnitFactory...
47b3a640f2dfe10506c3fdd90e1ec6f76b8b883b
C#
canab/flunity
/SampleProject/Assets/Flunity/Internal/MovieClipParser.cs
2.671875
3
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; namespace Flunity.Internal { internal class MovieClipParser { private const int RES_LINE = 1; private const int INST_LINE = 2; private const int FRAME_LINE = 3; public static TimeLine ...
17a856c60723303b785a5306fb73d3b36a257c42
C#
liujingcheng/LogAnTest
/LogAnTest/LogAn/LogAnalyzer.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LogAn { public class LogAnalyzer { public int MinNameLength = 8; private IWebService _service; public LogAnalyzer(IWebService service) { this._service = service; ...
0eb6c7c8ae1ba9525d434bf499fd2baefb299dfc
C#
ygtegeyvz/Car-Sales-Management-System-With-Layered-Architecture
/DataAccess/Concrete/EntityFramework/UserDal.cs
2.90625
3
using System.Linq; using DataAccess.Abstract; using Entities.Concrete; namespace DataAccess.Concrete.EntityFramework { public class UserDal:EfEntityRepositoryBase<Users,CarsCompanyContext>,IUsersDal { public static bool isValidLogin(string userName, string password) { using (CarsCo...
0ea7882d322460936389457b8c3c76565e7f88b4
C#
aerobless/HSR_MsTech
/Ex01/2.1/ShapesMain.cs
3.671875
4
using System; namespace Shapes { public class ShapesMain { public static void Main() { // TODO: // Erzeuge Square-Objekt Square myFirstSquare = new Square(1,2,4); // Ausgabe Degrees Console.WriteLine("Degrees: "+myFirstSqua...
1fab18ac44a1f918981c83535302b83dc316c25c
C#
bildermann/dotnet-sqlproxy-proto
/Controllers/RequestController.cs
2.546875
3
using Microsoft.AspNetCore.Mvc; using dotnet_sandbox.Models; using System.Collections.Generic; using MySql.Data.MySqlClient; using SqlKata; using SqlKata.Compilers; using System; namespace dotnet_sandbox.Controllers { [Route("api/[controller]")] public class RequestController : Controller { [Htt...
3933b18b44ed7591ed16e8801a471fe620b13c57
C#
nowanys/Wirehome.Core
/Wirehome.Core/MessageBus/MessageBusSubscriber.cs
2.65625
3
using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Threading; namespace Wirehome.Core.MessageBus { public class MessageBusSubscriber { readonly Action<IDictionary<object, object>> _callback; readonly ILogger _logger; long _processedMessage...
d356fea8a2a5dfc93d8a0d5b0ae359cb8b664a08
C#
vytautas-dotcom/DotNetEgzaminas
/AntraUzduotis/AntraUzduotis/Program.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AntraUzduotis { class Program { static void Main(string[] args) { Console.WriteLine("Matricu sudetis atimtis. Matricu dimensijos turi sutapti"); ...
fb1d24e5635730f39b8b1b1e5995bcf839c918cc
C#
dmitriy27sprinchak/Lab1_Sqr_Allied_testing
/Lab1_Sqr_Allied_testing/Sq_Figure_Allied_lab/CircleParam.cs
2.765625
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 Sq_Figure_Allied_lab { public partial class CircleParam : Form { string s; ...
73d908ac3c18189ef23f6ac5ad6111b81540b5fe
C#
PelleRemus/Facultate
/Anul3Sem1/Inteligenta Artificiala/RegresieLiniara/RegresieLiniara/Program.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace RegresieLiniara { class Program { static void Main(string[] args) { Engine.Init(); for(int i=0; i<1000; i++) { ...
90dd65cc08fec0101688c99e1886e90777d30d39
C#
mcaden/Sweeper
/Sweeper/Tasks/RunStyleCopRescanAll.cs
2.640625
3
namespace Sweeper { using System; using System.Diagnostics; /// <summary> /// Formats the document based on visual studio formatter settings. /// </summary> public class RunStyleCopRescanAll : SolutionStyleTaskBase { /// <summary> /// Initializes a new instance of the RunSt...
1de5e8516e77ce02e46b88b01ff23ab156c9fac9
C#
AnthonyLasiewicki/Virtual_Electronics_Lab
/Assets/Electrical/Circuit/Node/Node.cs
2.875
3
using System; using System.Collections.Generic; using UnityEngine; /// Node.cs is the script for the Node Component attached to the node objects. public class Node : MonoBehaviour { public static List<Node> TotalNodes { get; private set; } = new List<Node>(); public List<Component> Components { get; private ...
24726e5cee82880ad2670034c36b8c45d4d8c27c
C#
Jazz-Harris/NeedForSpeedZombieEdition
/Assets/Scripts/CameraController.cs
2.953125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; // This class controls the behavior of the camera in conjuction to the player public class CameraController : MonoBehaviour { public GameObject player; //Public variable to store a reference to the player game object private Vecto...
31dec60add9e9403a380df79d7b66540bd9e4ce3
C#
google-code/bizblox
/API/BizBloxCSExamples/DataObjects/StudentCollection.cs
2.609375
3
using pixolut.BizBlox; public class StudentCollection : DOCollection { //START BizBlox Generated Code : Do not remove or alter this comment //Last Updated : Thursday, 24 August 2006 4:57:09 PM //BizBlox Version : 1.2.0.0 #region "BizBlox Generated Code" public StudentCollection() : base(new DOFactory((...
fdf9e3d8d159cfd153f9f997ab1aaaf2eb03d9f5
C#
abhishekarora185/Imperial-Chess
/Assets/Scripts/Pieces/Rook.cs
2.53125
3
using System.Collections.Generic; using UnityEngine; public class Rook : AbstractPiece { public bool canCastle; public Rook() { this.InitializationActions(); } public Rook(Position position) { this.InitializationActions(); this.SetCurrentPosition(position); } // Use this for initialization void Sta...
217d51fa898dd05d010cd4f09e9f61c99df5e69c
C#
SatyaWeb006/comp-programing
/leetcode/_csharp/medium/_870_advantage_shuffle.cs
3.640625
4
using System; using System.Collections.Generic; // https://leetcode.com/problems/advantage-shuffle/ namespace _csharp { public class _870_advantage_shuffle { public int[] AdvantageCount(int[] A, int[] B) { int an = A.Length; int bn = B.Length; // index | value KeyValuePair<int,int>[] aa = new KeyValu...
30facfa2c65dcd837bf635996cf91812229189b0
C#
a407121393/neo-express
/src/neo-express/Extensions.cs
2.734375
3
using McMaster.Extensions.CommandLineUtils; using NeoExpress.Abstractions.Models; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.IO; using System.Linq; using System.Text; namespace NeoExpress { internal static class Extensions { public static string ToHexString(this byte...
55e9dee428bb7c9dfc620efc4b6e3688f6daef34
C#
ConfirmitYaroslavlStudents/Students
/2014/Kuzmin, Ovchenkov, Ragimov/HospitalApplication/HospitalApp/UserPages/SelectUser.xaml.cs
2.765625
3
using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Windows; using System.Windows.Controls; using HospitalLib.Data; using HospitalLib.Providers; namespace HospitalApp.UserPages { /// <summary> /// Interaction logic for SelectUser.xaml /// </summary> pu...
0a32aea91dac1668cfcf8f4223014f696da1bf77
C#
AllisterChew/helper
/tests/HelperTest.cs
3
3
using Helper; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; namespace HelperTest { [TestClass] public class HelperTest { [TestMethod] public void ToCamelCase() { StringHelper sh = new StringHelper(); Assert.AreEqual(sh...
15c0f12d3df6474ce6e023ebd080b5bc9e21eb91
C#
Patrickode/603-Narrative-Project
/Assets/Scripts/System/EventSystem.cs
2.53125
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class EventSystem : MonoBehaviour { public static EventSystem instance; private void Awake() { instance = this; } public event Action OnEventA; public void EventA() { if(On...