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
aa96c277c69d12b8a178d35d70b6630a4dac457d
C#
tarunbatta/ipg
/core/leetcode/1139.cs
3.40625
3
// Url:https://leetcode.com/problems/largest-1-bordered-square /* 1139. Largest 1-Bordered Square Medium Given a 2D grid of 0s and 1s, return the number of elements in the largest square subgrid that has all 1s on its border, or 0 if such a subgrid doesn't exist in the grid. Example 1: Input: grid = [[1,1,1],[1,0...
e468232dba43c815a664d31bc3f061c9f1e069b6
C#
OlegGelezcov/boscs
/ReportUtils.cs
2.765625
3
namespace Bos { using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public static class ReportUtils { public static double GetEfficiencyChangeForOneReport(EfficiencySpeedData data) { if(data.TransportCount == 0 ) { data...
938841356611423283eac9f5cdc25340baa0ba7a
C#
exercism/csharp-representer
/test/Exercism.Representers.CSharp.IntegrationTests/Solutions/Identifiers/MultipleVariables/Fake.cs
2.59375
3
public static class Fake { public static int Test(int number) { var a = number + 2; var b = a % 5; var c = b + a + number; return c / 2; } }
16fb73313920d7526a744a9315e13cbf8512cf60
C#
MoritzGoeckel/ForexDataminer_V3
/V3-Trader-Project/Trader/Tests/DataLoader_Test.cs
2.65625
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace V3_Trader_Project.Trader.Tests { [TestClass] public class DataLoader_Test { [TestMethod] public void DataLoader_...
f357afd742a0334721a6dcab9e0dcb52d15a4e9c
C#
m-nito/MicroMySQLSharp
/MicroMySQLSharp/MicroMySQLSharp/MicroMySQLSharp.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MySql.Data.MySqlClient; using System.Data; namespace MicroMySQLSharp { public static class MicroMySQL { /// <summary> /// Initializes its static Instance. /// </sum...
0ecb30e382b6d02cc40d900a59330592c8bdf906
C#
hany-cloud/MvcMusicStore
/Controllers/StoreController.cs
2.65625
3
using MvcMusicStore.Models; using System; using System.Collections.Generic; using System.Linq; using System.Data.Entity; using System.Net; using System.Web; using System.Web.Mvc; namespace MvcMusicStore.Controllers { public class StoreController : Controller { private MusicStoreEntities dbContext =...
93f95382791b931db73c17d0dd95f3855bc09b36
C#
Gosh1998/Transport
/TransportConsole/Program.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Transport; namespace TransportConsole { class Program { private static void Main() { var list = new List<ITransport>(); var car = new Car { TheCurrent...
f9863974b7eb8a539e8e520f813293a72d8aabba
C#
laball/demo
/WpfApp/NotificationObject.cs
2.890625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WpfApp { class NotificationObject : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; public void RaisePr...
4445492f1b27763c1c59a8de949a3877a411235a
C#
NDCorp/TimeCalculator
/TimeCalculator/MainWindow.xaml.cs
2.828125
3
/* TEAM ONE: TIME CALCULATOR * Shane Frost - 5600861 * Jeewan Kalia - 8032997 * Mireille Tabod Epse Nubaga - 6542864 * Abhishek Sharma - 7719818 * Edward Barber - 7925969 * Joseph Kasumba - 8147696 */ using System.Windows; namespace TimeCalculator { /// <summary> /// Interaction logic for MainWindow....
f94fc273a954b5bbcfd7fd1d364d103163036d8b
C#
rnycz/WebApp
/Controllers/ProductsController.cs
2.515625
3
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; using Magazyn.Database; using Magazyn.Models; namespace Magazyn.Controllers { public class ProductsController : Controller { private...
c91096c52759075868d99075c81349f014b421d1
C#
Kawser-nerd/CLCDSA
/Source Codes/AtCoder/arc050/B/1130154.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("5 5"); ...
d730104e57c705b759b80fa128f6cc7d9d40e1b9
C#
mmcs-Robolab/RoboLab-Client-Server
/RoboLabLib/TestRobot.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RoboLab { public class MyRobot : Robot { public MyRobot() { } /// <summary> /// Основная программа робота. /...
e0267680f33922b1aa1964c9706bbace067e4424
C#
vivermais/vivermais
/Vida.Model/Entities/Urgencia/EspecialidadeAtendimentoUrgence.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ViverMais.Model { /// <summary> /// Esta especialidade é utilizada para direcionar um paciente atendido em determinada especialidade. /// Para cada PA deverá ser feito o cadastro de pelo menos uma especialidade...
967f24f945a1ce50d210afde2e8cef567614fef5
C#
qq353571619/data_structure_and_algorithm
/线性表/MyList.cs
3.84375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 线性表 { //线性表的顺序存储结构 public class MyList<T> { private T[] _data; private int _maxLength = 24; private int _currentLength = 0; //默认构造函数 public...
925c55528de9c52105b85b312ece8003ba7f5ac3
C#
CaptainOachkatzl/XSCore
/XSUtility/Logging/NetworkLogger.cs
3.140625
3
using System.Text; using XSLibrary.MultithreadingPatterns.Actor; using XSLibrary.Network.Connections; namespace XSLibrary.Utility { /// <summary> /// Logging the same connection which is used for logging results (obviously) in an endless loop /// </summary> public class NetworkLogger : Logger { ...
ae84d0d62822216a505df1002f4e6e1c29001504
C#
trapazza/binOp
/BinOp/PEG/Operators.cs
2.890625
3
namespace BinOp.PEG { using System; using Rules; using Rules.Leaf; /// <summary> /// Basic PEG operators /// With these rules any grammar can be defined /// </summary> public static class Operators { /* * Grammar: * * seq = expr + '+' + ZeroOrMo...
8605cc2f84319826723f159810d9ce8fcfb3d334
C#
Ramax22/Final-IA-UADE-RamiroGarbagna
/Assets/Scripts/IA/FSM/States/WaitForRegroupState.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class WaitForRegroupState<T> : FSMState<T> { EntityContainer _entity; int _aliveSoldiers; float _timer; float _radius = 8f; LayerMask _alliedLayerMask; public WaitForRegroupState(EntityContainer entity, Laye...
9994ff40713b153aa8148c68583b63c5a294f13b
C#
calebrudder/WeatherApp
/ViewModels/UserViewModel.cs
2.65625
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Weather.DataAccess; using Weather.Models; using Windows.Storage; namespace Weather.ViewModels { public...
56220c67fd7179b9f283e55c95206f34324b07f8
C#
melliemello/TelerikAcademyHomeworks
/C#-Part-II/02-MultiDimensional-Arrays/01-Fill-Matrix/Program.cs
4.15625
4
//Write a program that fills and prints a matrix of size (n, n) as shown below using System; namespace _01_Fill_Matrix { class FillMatrix { static void Main() { Console.Write("write down the size N of the matrix:"); int size = int.Parse(Console.ReadLine()); ...
787120eedb55d638997f10f402f1079e49f10d56
C#
jeremy06/TextMatchingSolution
/ProjectExam/ProjectExam.Tests/Controllers/TextMatchingTest.cs
2.53125
3
using System; using System.Security.Cryptography.X509Certificates; using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json.Schema; using ProjectExam.Controllers; using System.Web.Mvc; namespace ProjectExam.Tests.Controllers { [TestClass] public class TextMatchingTest { [...
53257f2fe650baf9c7eb82cc4ec138f785ed66d8
C#
Gannachka/TestTask
/TAF/CoreUI/Element.cs
2.765625
3
using OpenQA.Selenium; using OpenQA.Selenium.Support.UI; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Collections.ObjectModel; namespace Core.UI { public class Element : IElement { protected IWebElement WebElement; protected By By; ...
36f2c96544380be614b57b1c50d248d721edde38
C#
remyajk/MySamples
/ncR/ncR/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ncR { class Program { static void Main(string[] args) { List<int> teams = new List<int>() { 1, 2, 3, 4 }; IEnumerable<IEnumerable<int>> result =...
4a79b3f842bb0d018f1e37e8fc939b9c190ec10f
C#
monkeykane/ARGhost
/Assets/GhostGame/Scripts/SetRenderQueue.cs
2.6875
3
using UnityEngine; using System.Collections; // 1. You can determine in which order your objects are drawn using the Queue tag. // A Shader decides which render queue its objects belong to, this way any Transparent shaders make sure // they are drawn after all opaque objects and so on. // // 2. There are f...
50c668107170e59b3407b75f5d80c0d14278cf7f
C#
vshardul/RandomStuff
/QuickSort/QuickSort/Program.cs
3.609375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace QuickSort { internal class Program { private static void Main(string[] args) { while (true) { Console.WriteLine("Enter numbers ...
682116c99679d563302d4721bef219809e49abda
C#
squideyes/SquidEyes
/Source/SquidEyes.Generic/Extenders/UriBuilderExtenders.cs
2.984375
3
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Web; namespace SquidEyes.Generic { public static partial class UriBuilderExtenders { public static UriBuilder SetQueryParam(this UriBuilder uri, string key, object value) { ...
4dd8bb4a0ac257fcd4c5f5643ba52946279ae5f7
C#
nikolay-kostov/myprojects
/ASP.NET-Web-Forms/19.RealExam/RealExam/ASP.NET WebForms Extended User Profile/Administration/Categories.aspx.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.ModelBinding; using Error_Handler_Control; using WebFormsTemplate.Models; namespace WebFormsTemplate.Administration { public partial class Categories : System...
b889cec8308ef31d688d63ca4d1a8316bcf32a78
C#
lanceAsparagus/Ch_10_Studio
/SkillsTracker/Controllers/SkillsController.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; // For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 namespace HelloASPDotNET.Controllers { //[Route("/helloworld")] pub...
2722813efa5b9f3fe9afa7d9653ad1685aeaed87
C#
Jbtyson/BladesLib
/BladesLib/BladesLib/Gameplay/Agents/Actors/Player.cs
2.546875
3
// Player.cs // James Tyson using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using BladesLib.Input; namespace BladesLib.Gameplay.Age...
6a8728c9d3af454c252680b83d03413b643f572c
C#
auturge/servicesentry
/src/ServiceSentry.Extensibility/Logging/Exceptions/ExceptionWriter.cs
2.8125
3
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Text; namespace ServiceSentry.Extensibility.Logging.Exceptions { public abstract class ExceptionWriter { public static ExceptionWriter Default { get { return new ExceptionWriterI...
0af640d9bae10e9be639406bd51123802f7bae16
C#
tommyhama95/PGR305-Exam-grp-764
/pgr305_grp10_backend/Methods/FormFileExtensions.cs
3.015625
3
using Microsoft.AspNetCore.Http; public static class FormFileExtensions { public static bool IsImage(this IFormFile file) { // Check if the received file is an image, otherwise do nothing if( file.ContentType.ToLower() != "image/jpg" && file.ContentType.ToLower() != "image/jp...
43fafbd2f20489c6af3aad78d1a4e92d46a2bc8f
C#
initialsam/Yame.Tools
/Yame.Tools/SafeCollections/SafeEnumerable.cs
2.796875
3
using System.Collections; using System.Collections.Generic; using System.Threading; namespace Yame.Tools.NetCore.SafeCollections { public sealed class SafeEnumerable<T> : IEnumerable<T> { private readonly IEnumerable<T> _enumerator; private readonly ReaderWriterLockSlim _locker; ...
2e2e068c6f0d15d8790405c5f3cc3586a3bd2aef
C#
nikolaylachev/SoftUni-Projects
/Projects/Prog. Fundamentals Problems/Objects Excepts Files Exercs/02.Vehicle Catalogue/Program.cs
3.484375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _02.Vehicle_Catalogue { class Program { class Car { public string Type { get; set; } public string Model { get; set; } public string...
a10b5242a4af5453d818e596d12a5c3a9af2b4c2
C#
timvandenhof/BBCodesExtended
/BBCodesExtended.Test/Parsing/UrlTagTests.cs
2.640625
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Net; using System.Web.Security.AntiXss; namespace BBCodesExtended.Parsing.Test { [TestClass] public class UrlTagTests { [TestMethod] public void Can_parse_url_tags() { const string input = "W...
ca76c6edebc79901c7917e7adf50f397de8099ea
C#
Donevadon/TextQuest
/ActionElement.cs
2.71875
3
using System; namespace TestTextQuest { public abstract class ActionElement { public abstract string Text{get;} public abstract string[] TextActions{get;protected set;} protected abstract ActionElement[] actions{get;} public int CountActions => actions.Length; public Act...
2f7d825e2fb09bd515448b57951dfb625f2a4fe2
C#
ccxlimin/baixiaotang
/AmazonBBS.Model/ResultInfo/Paging.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AmazonBBS.Model { public class Paging { /// <summary> /// 自动计算分页 /// </summary> /// <param name="totalCount">总数</param> /// <param name="pageInd...
ba0c2361e3a0c9d7d7cc29e1bb08ce6fa1cad873
C#
slsnider727/GoldBadgeChallenges
/05_Greeting/CustomerUI.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading; using System.Threading.Tasks; namespace _05_Greeting { public class CustomerUI { private readonly CustomerRepository _customerRepo = new CustomerReposito...
02bf4783ed56f8fb89bf53f731555513d35c340d
C#
AprigioJoseZancheta/TrabalhoDesenvolvimentoAprigio
/Application/ServiceCandidate/CandidateService.cs
2.6875
3
using Domain.CandidateDomain; using Infrastructure; using System.Collections.Generic; namespace Application.ServiceCandidate { public class CandidateService : ICandidateService { private ICandidateRepository _candidateRepository; public CandidateService(ICandidateRepository candidateRepositor...
aca7ee07470865a94c523da7c64f57c5ccecf69b
C#
fr830/Common-2
/src/Emzi0767.Common/Utilities/AsyncManualResetEvent.cs
2.78125
3
// This file is part of Emzi0767.Common project // // Copyright 2020 Emzi0767 // // 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 // // ...
086faf68ac648f523d2dfc8bdce12ca023144a3a
C#
bwoodfield/unit-test-training
/UnitTestProject/AuthenticatorTests.cs
2.84375
3
using Newtonsoft.Json; using NUnit.Framework; using Refactoring; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UnitTestProject { /// <summary> /// Summary description for AuthenticatorTests /// </summary> ...
1abd13f15ad33d520a84b26ff1d260c443c7ad23
C#
JP-LeGrand/ClickNCheck-Backend
/ClickNCheck/RefCheck/DocType/EmploymentType.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ClickNCheck.RefCheck.DocType { public static class EmploymentType { private static readonly List<pair> employmentType = new List<pair> { new pair("Fulltime", "FT" ), ...
36eab0483d94f9b1b3dbaca82d303ac0491794d4
C#
cgi-uswest-chimpls/preferences
/Controllers/RootController.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using MongoDB.Driver; using Preferences.Models; using Steeltoe.Extensions.Configuration.CloudFoundry; namespace Preferen...
d25e2a7e4ae7fe8ab48b93b7425a9055a6561037
C#
skybrud/Skybrud.Umbraco.GridData
/src/Skybrud.Umbraco.GridData/Models/GridDataModel.cs
2.671875
3
using System; using System.IO; using System.Linq; using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Skybrud.Essentials.Json.Extensions; using Skybrud.Umbraco.GridData.Factories; using Umbraco.Cms.Core.Models.PublishedContent; namespace Skybrud.Umbraco.GridData.Models { /// <summary> ...
1345e0b2cab836a023d2fe4a975cfed82aec2484
C#
michaelpino/REIM-SciencePark
/Assets/Scripts/A1/Ubicador.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Ubicador : MonoBehaviour { Vector3 ubicacion = new Vector3(0, 0, 0); public string posicion; public int numeroPosicion; //1 = Izquierda, 2 = centro, 3 = derecha // Use this for initialization void S...
e710372f641bf09596e7dca3a9b2ca2648fd389f
C#
shendongnian/download4
/first_version_download2/363261-31138037-94006790-8.cs
2.515625
3
var pathFOSE = @"D:\Public\temp\FOSEtest.txt"; var contents = File.ReadAllText(pathFOSE); var output = Regex.Replace(contents, @"(?i)(?<=[a-z0-9])(?:\r\n|\n|\r)(?=[a-z0-9])", " "); var pathNewFOSE = @"D:\Public\temp\NewFOSE.txt"; if (!System.IO.File.Exists(pathNewFOSE)) { File.WriteAllTe...
de7fcebbaa24fcfbccb576c9e07dff1b6eca0b1b
C#
taochangle/oa
/FTD.BLL/InvoiceType.cs
2.6875
3
using System; using System.Data; using System.Text; using System.Data.SqlClient; using FTD.DBUnit;//Please add references namespace FTD.BLL { /// <summary> /// 类InvoiceType。 /// </summary> [Serializable] public partial class InvoiceType { public InvoiceType() {} #region Model private long _id; private ...
71e4af885ca20670df4d99019652b578dc2f457d
C#
visualmehedi/Student-system-management
/VisaKurser.aspx.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.SqlClient; using Studiesystemet.Support; namespace Studiesystemet { public partial class VisaKurser : System.Web.UI.Page { pro...
fe526bc1199d5d333728e09a8432b63b6489e411
C#
raojala/oop-koti
/TTOS020011/tehtava_5/Program.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace tehtava_5 { class Program { static void Main(string[] args) { int sekunnit = 0, minuutit = 0, tunnit = 0; Console.WriteLine("anna sekunttimäärä...
2ca9545d10be89ab417e3a5c0952b01ca0e52d6f
C#
zspitz/ExpressionTreeToString
/Library/CodeWriterVisitors/VBExpressionMetadata.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace ExpressionTreeToString { internal class VBExpressionMetadata { internal bool IsInMutiline { get; private set; } = false; internal ExpressionT...
6024467b76abe3d0b483f194796a4acfe62d8042
C#
Siko91/TelerikAcademy-FULL
/Homeworks/TelerikAcademy--DataBases/ADO-NET/task7-AddRowsToExcelFile/Program.cs
3.1875
3
using System; using System.Collections.Generic; using System.Data.OleDb; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Task6_CreateExcelTable; namespace task7_AddRowsToExcelFile { internal class Program { private const string DataProviderString = "Provider=...
dec8073e12d72f924e6d94371c278570299bc639
C#
Eliya-56/Project2Arkanoid
/GameInConsole/GameInConsole/Board.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NConsoleGraphics; namespace GameInConsole { [Serializable] class Board : IGameObj, IBoard { public int X { get; set; } public int Y { get; set; } ...
27d95babf9869c9f2a800decee54dfe9e1c096c8
C#
jonathascosta/ProjectEuler
/ProjectEuler/Level 2/Problem029.cs
3.765625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Numerics; namespace ProjectEuler { static class Problem029 { /// <remarks> /// Consider all integer combinations of a^b for 2 <= a <= 5 and 2 <= b <= 5: /// 2^2=4, 2^3=8, 2^4=16, 2^5=32 /// 3^2=9, 3^3=27, 3^4=...
308b1523f2d4181ec5d9015c92135d6272810d6a
C#
PacktPublishing/Microsoft-HoloLens-Developers-Guide
/Chapter05/RockOn_chapter5/RockOn/Assets/Scripts/Cursor.cs
2.6875
3
using UnityEngine; public class Cursor : MonoBehaviour { private GameObject _objectBeingHit; [Tooltip("The gameobject to be used as cursor.")] public Transform cursor; [Tooltip("The position the cursor is placed at when nothing is hit.")] public float maxDistance = 5.0f; // Use this for initializati...
5a091ec56b654cf2ca03fe0c0e2fab0fc85fdcea
C#
tubsiwub/KaryoteTestScripts
/Allele_C#Scripts/Bezier.cs
2.953125
3
using UnityEngine; namespace Allele { public static class Bezier { public static Vector3 GetPoint(Vector3 p0, Vector3 p1, Vector3 p2, float t) { //return Vector3.Lerp (Vector3.Lerp (p0, p1, t), Vector3.Lerp (p1, p2, t), t); t = Mathf.Clamp01 (t); float oneMinusT = 1f - t; Vector3 poi...
e8eb2f8cc4d4741f92ff81f0bb7e80c86da31017
C#
ValikLinnik/MyShooter
/Assets/C#/InputManager.cs
2.609375
3
using UnityEngine; using System.Collections; using System; public class InputManager : MonoBehaviour { public event Action<Vector3> OnMouseDown; public void OnMouseDownHandler(Vector3 pos) { if(OnMouseDown != null) { OnMouseDown(pos); } } [SerializeField] ...
874437d10dc33f09cce8c19d060b2010e23f547f
C#
GameCrazed/TreeViewSandbox
/TreeViewSandbox/Form1.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using TreeViewSandbox.Data; using TreeViewSandbox.Dtos; using TreeViewSandbox.DupesFromArtemis; using TreeViewSandbox.Entities; namespace TreeViewSandbox { public partial class Form1 : Form { private readonl...
da355b29485d394ec9f01bfcc0932b2d3d30b5a5
C#
Cuatrivago/CuatrivagoProject
/CuatrivagoProjectAdmin/Context/UpdateRoomContext.cs
2.59375
3
using CuatrivagoProjectAdmin.Models; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; namespace CuatrivagoProjectAdmin.Context { public class UpdateRoomContext { public List<Room> getAllRommByType(string conn, int id...
e5abbef364a1e801460dd0a7d16f3fa4d4106dd4
C#
hafewa/MyLeetcode
/MyLeetcode/树/_0563二叉树的坡度.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyLeetcode.树 { //https://leetcode-cn.com/problems/binary-tree-tilt/ class _0563二叉树的坡度 { public int FindTilt(TreeNode root) { if (root == null...
faf466f6618093d57b778b9c37119c4ee980c5b1
C#
sebastianandrada/tp_laboratorio_2
/TP-03/ClasesInstanciables/Alumno.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using EntidadesAbstractas; namespace ClasesInstanciables { public sealed class Alumno : Universitario { public enum EEstadoCuenta { AlDia, Deudor, Becado } private Universidad....
58423c04783c76300db4746dd1bec658ebd2332e
C#
oachkatzalschwoaf/ESC-POS-.NET
/ESCPOS_NET/Extensions/ImageSharpExtensions.cs
2.796875
3
using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.Processing; namespace SixLabors.ImageSharp { public static class ImageSharpExtensions { public static byte[] ToSingleBitPixelByteArray(this Image<Rgba32> image, bool rasterFormat = true, int? maxWidth = null, int? maxHeight = null, fl...
d859f841ab4a765e39003621b4a39151a8d6a99b
C#
heroius/XuAlgrithms
/Sample/ODEs/GEAR.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sample.ODEs { public class GEAR : SampleItem { public GEAR() : base("ODEs.GEAR") { } public override string Execute() { int i, j, k, jjs; ...
359055f654f4af7db34fa027911d566580ca1596
C#
griderd/Jebnix
/Jebnix/Graphics/TextMemory.cs
3.296875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Jebnix.Graphics { internal class TextMemory { // TODO: Add additional rows to make scrollable screens. Change output to display applicable values. char[][] cells; bool[][] locked; i...
4ee65215b6b7843cc75dcdea2d73b6def9199a92
C#
Anthv96A/FizzBuzzTDD
/FizzBuzzz/Services/FizzBuzzCalculator.cs
3.171875
3
using FizzBuzzz.Interfaces; using System; using System.Collections.Generic; using System.Text; namespace FizzBuzzz.Services { public class FizzBuzzCalculator : IFizzBuzzCalculator { public string Calcuate(int input) { if(input % 3 == 0 && input % 5 == 0) { ...
bb4bee82110a5224569e0e774f36570b784df1ef
C#
sorenjuul/bddsharp
/Sudoku/Form1.cs
2.859375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using BddSharp.Kernel; using BddSharp.Serializer; /* Sudoku layout is represented in the nodeArray. N[81] The physical layout should be read like this N...
bcb313ee724cbe08d63fc95bef79f12e022b262c
C#
cr2000/CSharpBasic
/12Homework/MoviesApp/Helpers/MovieHelper.cs
2.984375
3
using MoviesApp.Entities; using System; using System.Collections.Generic; using System.Text; namespace MoviesApp.Helpers { public class MovieHelper { public static List<Movie> Top10Movies() { return new List<Movie>() { new Movie(){Title = "The Lord of th...
f8f8f7b15d03dfe4c40e7a13b0626f355e71db65
C#
Connor889/shopStore
/App_Code/Model/SsOrder.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; /// <summary> /// SsOrder 的摘要说明 /// </summary> public class SsOrder { private int _ID; private string _UserID; private DateTime _Date; private int _State; public SsOrder() { } public SsOrder(int id, string us...
0469331ef9ec7224f6c12725fce906c2b7b2bd84
C#
ronnygunawan/ninja
/RG.NinjaTests/DictionaryExtensionsTests.cs
2.921875
3
using System.Collections.Generic; using Xunit; using FluentAssertions; namespace RG.NinjaTests { public class DictionaryExtensionsTests { [Fact] public void CanUseDictionaryInDictionaryInitializer() { Dictionary<int, string> dictionary = new() { { 1, "Satu" }, { 2, "Dua" } }; Dummy dummy = new()...
145f008319be28db126a0ee5ccad94fe3668d583
C#
TomasEkeli/DotNET.Fundamentals
/Source/PropertyBags/ITypeFactory.cs
2.65625
3
// Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; namespace Dolittle.PropertyBags { /// <summary> /// Defines a factory for constructing an instance of a type using a <see cref="PropertyBag" />. ...
5e3960d911db577847e0b558fa5c39a278d09f83
C#
sonu-dev/master-infra
/src/Master.Web/Master.Web.Api/Providers/TokenProvider/TokenProvider.cs
2.65625
3
using Master.Web.Api.Options; using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Tokens; using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Text; namespace Master.Web.Api.Providers.TokenProvider { public class TokenProvi...
7541d32ba08e1e660d0ae1ec4ef1932ad7aad299
C#
hzhhhbb/LeetCode
/src/LeetCode.Test/StringAndArray/RemoveDuplicatesClass_Tests.cs
3
3
using NUnit.Framework; using LeetCode.StringAndArray; using System; using System.Collections.Generic; using System.Text; using Shouldly; namespace LeetCode.StringAndArray.Tests { [TestFixture()] public class RemoveDuplicatesClass_Tests { [Test()] [Timeout(1000)] public void RemoveD...
fb87c3d66788019e1a69dd49dbe090ecb0b90a7d
C#
hellfiredb17/IronGear
/Assets/Scripts/Networking/Hawkeye/Client/ClientConnection.cs
2.59375
3
using UnityEngine; using System.Net.Sockets; using System; using Hawkeye.NetMessages; namespace Hawkeye { public class ClientConnection : Connection { //---- NetMessage Listeners //------------------------- public ILobbyClientListener LobbyListener; public IClientConnectionList...
f62f8a27cc82afc397692ebbcbefb550f04cec67
C#
tynatsuhara/west
/Assets/Scripts/World/Locations/Benchmarking.cs
2.6875
3
using System.Collections; using System.Collections.Generic; using System.Diagnostics; using UnityEngine; public class Benchmarking : MonoBehaviour { void Start() { Stopwatch timer = Stopwatch.StartNew(); AsciiData ascii = new AsciiData(); UnityEngine.Debug.Log(ascii.Get("room1").ToString(c => c)); UnityEn...
d6e1686510e975f4c0caa3b7291b40721afe80a0
C#
Kaptanael/WebCrawler
/WebCrawler.ConsoleApp/Program.cs
3
3
using HtmlAgilityPack; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Json; using System.Threading.Tasks; namespace WebCrawler.ConsoleApp { class Program { static async Task Main(string[] args) { Console.WriteLine("En...
6165406471e2f9a3e6059548600f2f7be8e4996b
C#
przemekmas/SudokuSolverWPF
/SudokuSolverWPF/SudokuMainGridControl.cs
2.71875
3
using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Media; namespace SudokuSolverWPF { [TemplatePart(Name = "PART_SudokuMainGrid", Type = typeof(UniformGrid))] public class SudokuMainGridContro...
683f38a151b51100fe8f9de6e16a3e24c9dc3674
C#
ARLM-Attic/Simple-CIL-compiler
/Language.Core/Semantic/AST/Statements/IfStm.cs
2.671875
3
namespace Language.AST.Statements { using Semantic; using Semantic.ASTVisitor; using Semantic.Data; public class IfStm : StatementBase { private ExpressionBase _condition; public ExpressionBase Condition { get { return _condition; ...
5e9f68e50eb44a3fae1495ba100d2d28ce242c5e
C#
shendongnian/download4
/code9/1581738-44084423-145829253-4.cs
2.828125
3
private void textBox1_TextChanged(object sender, EventArgs e) { int a; bool succes = int.TryParse(textBox1.Text, out a); if(!succes) { MessageBox.Show("incorrect"); ...
aa1885050c1ebbb1a1d7fe4433c8f9aa3ffd7258
C#
b-suke/Demo
/ML.NET1/YoloTest/Program.cs
2.546875
3
using System; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Graphics.Imaging; using Windows.Media; using Windows.Storage; namespace YoloTest { class Program { ...
92685daed231998f426072db6d7eb388c093ec29
C#
mebjas/ADA
/AlgorithmsNetCore/Queue/IQueue.cs
2.75
3
namespace Algorithms { interface IQueue<T> { void Enqueue(T node); T Dequeue(); T Peek(); bool IsEmpty(); int Count { get; } } }
7c68cf8b28f89a133ec1ebc594ce70601e030be1
C#
stef7182/EventTest
/EventTest/Metronome.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EventTest { public delegate void DG_MetronomeTick(); class Metronome { public event DG_MetronomeTick Tick; public void FireTick() { for ...
c945274c3c7ca4bfe7ab093b85446c592022e49d
C#
KangLLL/century_war
/client/Assets/Scenes/Build/Scripts/ActorIdleAnimation.cs
2.53125
3
using UnityEngine; using System.Collections; using System; public class ActorIdleAnimation : MonoBehaviour { BuildingIdleAnimation m_BuildingIdleAnimation = BuildingIdleAnimation.IdleRightDown; tk2dSpriteAnimator m_SpriteAnimator; [SerializeField]int m_TimeTickInterval = 100; int m_Curren...
b71c6f1bc3480199b6fa9f695dcc3d6706cbe8e1
C#
Zonciu/Box2DSharp
/src/Dynamics/Contacts/PolygonAndCircleContact.cs
2.59375
3
using System.Diagnostics; using System.Runtime.CompilerServices; using Box2DSharp.Collision; using Box2DSharp.Collision.Collider; using Box2DSharp.Collision.Shapes; using Box2DSharp.Common; namespace Box2DSharp.Dynamics.Contacts { /// <summary> /// 多边形与圆接触 /// </summary> public class PolygonAndCirc...
fc8e6a40e05740a70bd332b8424c6739aff39b7a
C#
kookmin-sw/capstone-2021-17
/Assets/MasterServerToolkit/MasterServer/Scripts/Modules/Profiles/ObservableDictionaryString.cs
2.953125
3
using MasterServerToolkit.Networking; using System; using System.Collections.Generic; using System.Linq; namespace MasterServerToolkit.MasterServer { public class ObservableDictionaryString : ObservableBaseDictionary<string, string> { public ObservableDictionaryString(short key) : base(key) { } ...
9a16791eefa1574953b0ba57026cd623e48b5b21
C#
SyntraWest/CSharp2-20-21
/TodoLijst/TodoLijst/TodoLijstLibrary/TodoItem.cs
3.125
3
using System; namespace TodoLijstLibrary { public class TodoItem { public TodoItem() { Naam = "Nieuw TODO-item"; TegenWanneer = DateTime.MaxValue; WanneerKlaar = null; } public string Naam { get; set; } /// <summary> /// Te...
1dfc5ddc76b058987adaa19e7666d7980e1bd1fe
C#
cswings/Examples
/C# to show/Design Patterns/Decorator/StreamOutput.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Program3 { public class StreamOutput : Output { //class contains a reference to an output stream, and its write method expects a streamable argument //(something that ca...
2cbd949fc1d556c3ff72fcf6af2202b2ebb6bbfb
C#
evllena/my2048
/2048WinFormsApp/2048WinFormsApp/UserResultsStorage.cs
3.109375
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; namespace _2048WinFormsApp { public class UserResultsStorage { public static string path = "userResults.json"; public static string pathBest = "bestResult.txt"; public static void Add(User user) ...
26fff5ededd197b7b0b5913ccaf8cdf1384e8514
C#
jjimenezg88/netCoreReactRedux
/SomosClearMovies.Infrastructure.Tests/MoviesDbContextTest.cs
2.609375
3
using FluentAssertions; using Microsoft.EntityFrameworkCore; using Microsoft.VisualStudio.TestTools.UnitTesting; using SomosClearMovies.Infrastructure.Helpers; using System; using System.Linq; namespace SomosClearMovies.Infrastructure.Tests { [TestClass] public class MoviesDbContextTest { private M...
5c737e3303dd3cc2b60c4291a4590446e4c969e8
C#
diegoncollazo/UTN
/Laboratorio II/Ejercicios/J.Excepciones/Ejercicio 42/MiClase.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ejercicio_42 { public class MiClase { private readonly string objeto; public MiClase() { try { MiClase.Estatico(); ...
17f9cf975efb55ab2b14ecc10646d7a2642aef93
C#
DevFlake/Flake.MoBa
/Flake.MoBa.XpressNetLi.Comunication/Answers/AnswerBase.cs
2.921875
3
namespace Flake.MoBa.XpressNetLi.Comunication.Answers { /// <summary> /// Answer Base Class /// </summary> public class AnswerBase { /// <summary> /// Array which holds the real answer of central /// </summary> internal byte[] _ByteArray; /// <summary> ...
9ca1e93f192f3421cc8845ee3ed0eaf4d4d35446
C#
clydeburgos/CRUDXMLWebForm
/Helpers/DataCiper.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Web; namespace WebApplication1.Helpers { public class DataCiper { private RSACryptoServiceProvider rSA; public DataCiper(string key) { var...
e4dbcbe973f57aa0685cfb7e8a7d8a52c3a535d9
C#
Sar-dim/Telegram-Bot
/TelegramBot/ConsoleTelegramBot/BotClient.cs
2.59375
3
using BotLogic.Abstractions; using BotLogic.Services; using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.Json; using Telegram.Bot; using Telegram.Bot.Args; using Telegram.Bot.Types.Enums; namespace ConsoleTelegramBot { class BotClient { private static ITel...
0df5ca979380b1062e1133c58c87619763ccc482
C#
Divergic/techmentorapi
/TechMentorApi.Model.UnitTests/PhotoTests.cs
2.6875
3
namespace TechMentorApi.Model.UnitTests { using System.IO; using FluentAssertions; using ModelBuilder; using NSubstitute; using Xunit; public class PhotoTests { [Fact] public void CopyConstructorCreatesInstanceWithSuppliedValuesTest() { var originalData ...
f34ffa1c3cf5454fee53ae5795e6761ae2d479cb
C#
kimtg/SweepSecond-CS
/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.Windows.Forms; namespace SweepSecond { public partial class Form1 : Form { static Brush brushHour = Brushes.DeepSkyBlue;...
00f03a5ba9ebd82268f1bda5e9a602056f09a929
C#
BrokenEvent/ProxyDiscovery
/BrokenEvent.ProxyDiscovery/Parsers/LineRegexProxyListParser.cs
2.921875
3
using System; using System.Collections.Generic; using System.Text.RegularExpressions; using BrokenEvent.ProxyDiscovery.Helpers; using BrokenEvent.ProxyDiscovery.Interfaces; namespace BrokenEvent.ProxyDiscovery.Parsers { /// <summary> /// Gets the proxy list by splitting the content by lines and parsing each one ...
9f2c60e126cbd39684bf56f0330626f4814f8ae8
C#
tomserious/admission_github
/App_Code/BasicInfo.cs
2.796875
3
using System; using System.Configuration; using System.Data; using System.Data.SqlClient; public class BasicInfo { /// <summary> /// 更新或插入记录,根据ID /// </summary> /// <param name="id">用户ID</param> /// <param name="bi">基本信息对象</param> public static void SetBasicInfoByID(int id, BasicInfo bi) {...
aa0209b53e38c167b2f77aeeff8fc4e823da71ce
C#
Maestro1334/NoSQL_project
/NoSQL Pro-ject/AddUser.cs
2.75
3
using System; using System.Text.RegularExpressions; using System.Windows.Forms; using Logic; using System.ComponentModel.DataAnnotations; namespace NoSQL_Pro_ject { public partial class AddUser : Form { private readonly UserService userService; public AddUser() { Initializ...
5ad36601f8878fba58fbde5233acf821bf474305
C#
JaninaBratu/TrainningC_Sharpe
/TrainningNet/Lessons/Lesson_14/OrderAction.cs
3.5
4
using System; using System.Collections.Generic; namespace TrainningNet.Lessons.Lesson_14 { public class OrderAction { public static List<Order> orderList = new List<Order>(); public static List<Order> tempOrderList = new List<Order>(); public static void DisplayHistoryOfOrders(Custom...
6009705018f4cdea1aa0e274001574920fbce50b
C#
dzhanetGerdzhikova/Programming-Basics
/Exam-Excersice/MovieRating/Program.cs
3.625
4
using System; namespace ForLab { internal class Program { private static void Main(string[] args) { int countFilms = int.Parse(Console.ReadLine()); double maxRating = double.MinValue; string nameMax = ""; double minRating = double.MaxValue; ...
1779ff3ba0f61047b7e5661609afac1e410e0675
C#
pallhelgi/WebServices
/DotNetCore/unitTestMoq/CleanThatCode.Community.Common/StringHelpers.cs
3.96875
4
using System; using System.Collections.Generic; using System.Linq; namespace CleanThatCode.Community.Common { // Your job is to implement this class public static class StringHelpers { // Instead of spaces it should be separated with dots, e.g. Hello World -> Hello.World public static strin...
42e48b3b7ba1310ba0ad802989ffe35f802373a4
C#
aramLee06/Tichu
/Assets/Scripts/Runtime/Game/PlayerHandler.cs
2.53125
3
using UnityEngine; using System.Collections.Generic; /// <summary> /// Player handler. /// </summary> public class PlayerHandler : MonoBehaviour { /// <summary> /// Is this a human player? /// </summary> public bool isHumanPlayer; /// <summary> /// The type of the tichu called. /// </summary> public TichuType ...
de4d2fe9147791df811fecf473607d212e920fb8
C#
bradymholt/cron-expression-descriptor
/test/TestFormats.sl.cs
2.609375
3
using Xunit; using Assert = CronExpressionDescriptor.Test.Support.AssertExtensions; namespace CronExpressionDescriptor.Test { /// <summary> /// Tests for Slovenian /// </summary> public class TestFormatsSl : Support.BaseTestFormats { protected override string GetLocale() { ...
b0fd92d3f1a28cd502cd0c550cc90734b55a3c96
C#
qwer2003tw/windows-programming-hw1
/POSOrderingSystem/POSOrderingSystemTests/Model/OrderTests.cs
2.71875
3
// file: Model\OrderTests.cs // // summary: Implements the order tests class using Microsoft.VisualStudio.TestTools.UnitTesting; namespace POSOrderingSystem.Model.Tests { /// <summary> (Unit Test Class) an order tests. </summary> /// /// <remarks> Chen-Tai,Peng, 11/25/2018. </remarks> [TestClass...