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
94454476da1abc6ef4b25303893acc51d3b3acd2
C#
mamighi/Automotive-Repair-Shop
/automotive repair shop/costumerMain.aspx.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace automotive_repair_shop { public partial class costumerMain : System.Web.UI.Page { DataBase db = new DataBase(); int id; protected void Pa...
643b6549e77d35256abb32df6e804ba1ba5ce95b
C#
wimh/monkey-cs
/libmonkey/utils/PeekableEnumerator.cs
3.265625
3
using System.Collections; using System.Collections.Generic; namespace libmonkey.utils { /// <summary> /// Simple implementation of IPeekableEnumerator /// </summary> /// <typeparam name="T"></typeparam> public class PeekableEnumerator<T> : IPeekableEnumerator<T> where T : class { priva...
403167d34d4ec2d8eb38284c9ae1d2034e46ca63
C#
Nu11Undefined/Sieve
/Решето Эратосфена/Controller.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Drawing; namespace Решето_Эратосфена { /// <summary> /// Система ввода информации /// </summary> public class Controller { bool _isLe...
a82008a27570ef6a96709333a479b68c4ec6508e
C#
mcdonajo/ShinsakaiWindowsApp
/ShinsakaiWindowsApp/ScoringControl.cs
2.609375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ShinsakaiWindowsApp { public partial class ScoringControl : UserControl { publ...
5e3e0ac5c95992fe93c77d63e59f3b3eac1a99c2
C#
Vadimsafin0072/WindowsFormsApp58
/WindowsFormsApp58/Form1.cs
2.9375
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 GG1 { public partial class Form1 : Form { public Form1() { ...
15dd7db69fe7301953c5fbc00a6bd4c14e0ce7de
C#
celestinojones/project0
/PizzaBox.Client/Program.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using PizzaBox.Domain.Abstracts; using PizzaBox.Domain.Models; using PizzaBox.Domain.Recipes; using System.Text.RegularExpressions; namespace PizzaBox.Client { class Program { private static List<Size> _possibleSizes = ne...
8376b3af734541bed39d5303b75be6999b746a9a
C#
alexhock/galaxymorphology
/ML/Utils/CSVIO.cs
3.484375
3
using System; using System.Collections.Generic; using System.IO; namespace Utils { public class CSVIO { public static List<T[]> Load<T>(String filePath, char colDelimiter = ',', String lineDelimiter = "\r\n") { var samples = new List<T[]>(); var lines = File.ReadAllLi...
47d8bcd3327773ea97c00aa15361bb77e3d6c032
C#
chyenc/MyChy.Frame.Core
/MyChy.Frame.Core.Web/MyChy.Frame.Core.Common/Helper/SafeSecurityHelper.cs
3.0625
3
using System; using System.Security.Cryptography; using System.Text; namespace MyChy.Frame.Core.Common.Helper { public class SafeSecurityHelper { ///// <summary> ///// DES加密字符串 ///// </summary> ///// <param name="pToEncrypt">待加密的字符串</param> ///// <param name="sKey">加密密钥...
0044fdeb5be18619722a1b7192268439fbba700d
C#
klenkiew/SimpleDrive
/FileService/Queries/Decorators/CachedQuery.cs
2.609375
3
using Cache; namespace FileService.Queries.Decorators { internal class CachedQuery<TQuery, TResult> : IQueryHandler<TQuery, TResult> where TQuery : IQuery<TResult> { private readonly IQueryHandler<TQuery, TResult> decorated; private readonly IUniversalCache cache; public Cache...
cad41f82e7abf9d4ca09c264fb5ff30c349e92a4
C#
lunchin/EPiServer.Azure.StorageExplorer
/EPiServer.Azure.StorageExplorer/StorageExtensions.cs
2.515625
3
using Azure.Storage.Blobs; using Azure.Storage.Blobs.Models; using System; namespace EPiServer.Azure.StorageExplorer { public static class StorageExtensions { public static AzureBlob GetAzureBlob(this BlobContainerClient item) { var properties = item.GetProperties().Value; ...
26e7c4c62b20ca228e2ea2cc1e208e9b2546a3ee
C#
adampolar/RosalindAnswers
/src/Rosalind/Program.cs
3.1875
3
using System; using System.Linq; using System.IO; using System.Collections.Generic; namespace Rosalind { public class Program { public static void Main(string[] args) { var fileName = "/home/adam/Downloads/rosalind_nwc (3).txt"; var ans = new List<int>(); ...
5db23f4d08c63360d46d0d53fbb0b1286918c858
C#
baiyanlali/CS309-OOAD-Nikomon-Unity
/Nikomon/Assets/Scripts/GamePlay/UI/Extension/Radar.cs
2.53125
3
using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace GamePlay.UI.Extension { public class Radar:Graphic { public uint m_Sum = 6; public Color32 m_PropertyColor = Color.blue; public Vector2 m_Sizes { get; set; } public float m_MaxV...
855d3098b1922cc1e0a894a3d0f1208fe9678d79
C#
veenajoglekar/Assignment-DecisionMaking
/DecisionMakingStatement/DecisionMakingStatement/VoteCasting.cs
3.421875
3
using System; using System.Collections.Generic; using System.Text; namespace DecisionMakingStatement { public class VoteCasting { public void Vote() { int age; Console.Write("Enter a age: "); age = int.Parse(Console.ReadLine()); if (age > 18) ...
8cb044c5f695b90c21b9a44a97bc921816553e0a
C#
DustinFox96/ToDoApp
/ToDoLib/Controllers/TodoController.cs
3.015625
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using ToDoLib.Models; namespace ToDoLib.Controllers { public class TodoController { private readonly ToDoDbContext _context; public async Task<IEnumerable <Todo>> ...
094658d34a5da12214116c042626bcbcb5f3b636
C#
thienhuynh88/WebOnline
/Common/TPF.Resourses/EnumResourseExtensions.cs
3.234375
3
using System; namespace TPF.Resourses { public static class EnumResourseExtensions { /// <summary> /// Resource của EnumCommonStatus.Active lưu dưới dạng EnumCommonStatus_Active = "Kích Hoạt" /// -> cách lấy EnumCommonStatus.Active.ToEnumResourceString() /// </summary> ...
144d45ff4f2243fb2efc0ed725ec75f294a64a5d
C#
maxkhl/OutpostOmega
/Game/ProjectSpace/ProjectSpace.Data/DataHandler_Serialization.cs
2.796875
3
using System; using System.Text; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.IO.Compression; using System.Xml.Linq; using System.Security.Cryptography; using OutpostOmega.Game; namespace OutpostOmega.Data { /// <summary> /// Contains main-serialization ...
9a85a20eb86dd2c11de900a77d8236f9e5be68af
C#
TheHACKATHON/Zireael_Web
/Client/Converters/VerifyConvertrer.cs
2.625
3
using System; using System.Globalization; using System.Linq; using System.Windows.Data; namespace Client.Converters { public class VerifyConvertrer : IMultiValueConverter { public object Convert( object[] values, Type targetType, object parameter, CultureInfo culture) { ...
71e37a60c58432f1d6eb7ccb7421893602dabd7c
C#
Woody-Hu/LeetCode
/LeetCode/LeetCode/Partition Array Into Three Parts With Equal Sum.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LeetCode { class Partition_Array_Into_Three_Parts_With_Equal_Sum { public bool CanThreePartsEqualSum(int[] A) { var sum = A.Sum(); if (sum % 3 != 0) { ...
2001be3d87d4f9734b1a94ba251c4fc3a53f69ee
C#
Nieko/Nieko
/Nieko.Infrastructure.Desktop/ComponentModel/Repositioner.cs
2.765625
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; using System.Linq; using System.Linq.Expressions; using System.Text; namespace Nieko.Infrastructure.ComponentModel { public class Repositioner<T> where T...
81b871d5d1b6db2b8a253798eefd47fa1d032ba6
C#
akasake/bloggingengine
/Controllers/BloggingController.cs
2.515625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using BloggingEngine.Models; using BloggingEngine.DataAccess; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using CSharp_Pline.Controllers...
c5a1fea953ab14846413cba09e37b1f56b4aff9c
C#
urb31075/PdfCombiner
/PdfCombiner/Program.cs
2.578125
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="Program.cs" company="urb31075"> // All Right Reserved // </copyright> // <summary> // The program. // </summary> // -----------------------------------------------------------...
5841a2489ea77a716b996db3d06ef14e181c4dfc
C#
cinis77/CSharp20200601
/_20200611_PrezidentoRinkimai/_20200611_PrezidentoRinkimai/Program.cs
2.84375
3
using System; using System.IO; using System.Windows.Forms; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _20200611_PrezidentoRinkimai { class Program { [STAThread] static void Main(string[] args) { string pat...
c9a8fe74bd9b9d57ea5b122b886ac47edf79e95c
C#
AlvaroWhiteRD/MantenimientoProductos
/CapaDatos/D_Categoria.cs
2.9375
3
using System; using System.Collections.Generic; using System.Text; using System.Data.SqlClient; using System.Configuration; using CapaEntidades; using System.Data; namespace CapaDatos { public class D_Categoria { //realizamos la conexion a la base de datos. //conectar viene de la conexion del A...
d56b7efe7ebca49c5c39e359e15fa273972de3b9
C#
Gelller/TestJob
/TestJob/Data/CountryConfiguration.cs
2.515625
3
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using TestJob.Models; namespace TestJob.Data { public class CountryConfiguration : IEntityTypeConfiguration<Country> { public void Configure(EntityTypeBuilder<Country> builder) { builder.ToT...
862395c670d2c19488f3e273828239e78133da2f
C#
adambednarz/MiniProjects
/FluentBuilders/Entities/Comment.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace FluentBuilders.Entities { public class Comment { public Guid TaskId { get; set; } public string Body { get; protected set; } public DateTime CreationDateTime { get; protected set;...
36f54dc5e6ee1de9014ec7f7aa773f2c8f6fc1be
C#
byon/Aamch
/AcceptanceTests/Steps/ValueSteps.cs
2.671875
3
using System.Linq; using TechTalk.SpecFlow; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; using AcceptanceTests.Support; namespace AcceptanceTests { [Binding] class StepDefinitions { private TroopFile troopFile; private Repository reposit...
e5680d326a840eedbc65765224aead08b0949453
C#
green-fox-academy/Atis0505
/Csharp-course/week-03/day-03/DiceSet/DiceSet/Program.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DiceSet { class Program { public static void Main(string[] args) { // You have a `DiceSet` class which has a list for 6 dices // You can roll al...
6e3380086beaf3beeb6f72652567ce67cc5ac2e1
C#
ajdintbk/CarRent
/CarRent.WinUI/Forms/Rents/frmRentCar.cs
2.515625
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 CarRent.WinUI.Forms.Rents { public partial class frmRentCar : Form { private i...
0754ab552019f17cc0a9d93be8bb8deda2ac9351
C#
AlexSereda/DT8999_GamesProg
/Assets/3 - Vectors & Input/Loopies.cs
2.953125
3
using UnityEngine; using System.Collections; public class Loopies : MonoBehaviour { int age = 30; bool alive ; GameObject[] enemies; void Start () { for(int x = 0; x < 2; x++) { for(int y = 0; y < 2; y++) { Debug.Log ("I looped once!"); } } /*while(age > 10) { Debug.Log ("I am de-a...
e70ddf98ee0929604861d3c58dc884f14f3a076f
C#
EwertonMaik/csharp
/Conta/ContaBancaria.cs
3.53125
4
using System; using System.Globalization; namespace Primeiro.Conta { //Classe Conta Bancaria class ContaBancaria { //Definição de Atributos usando Auto Properties public int NumConta { get; private set; } public string Titular { get; set; } public double Saldo { ...
3026a2c159d4cf5560842b584b492ffb951f9e98
C#
keless/AuthorRoom
/Assets/Framework/Framework.cs
2.828125
3
using UnityEngine; using System.Collections; using System.Collections.Generic; /// <summary> /// EventBus provides an addListener/removeListener/dispatch interface /// not guaranteed to be thread-safe /// </summary> public class EventBus { string _name; public string name { get { return _name; } ...
9937480987ba95ecaece5bfce1b90ab92b2c28ca
C#
IanLeatherbury/QuickVote-XamAndroid
/QuickVoteNative/Adapters/PollCommentAdapter.cs
2.59375
3
using System; using Android.Support.V7.Widget; using Android.Views; using Android.Widget; using Android.Util; using System.IO; using System.Threading.Tasks; using System.Net; using Splat; using Android.Graphics.Drawables; using QuickVoteNative.Activities; namespace QuickVoteNative { public class PollCommentAdap...
ae3d78f137dbee319c1435c4d98f892b78c8495a
C#
eliezerwong/CSharp-Basics
/P13.2 - Birds Class/Birds/Bird.cs
3.453125
3
using System; using System.Collections.Generic; using System.Text; namespace Birds { class Bird { public double height; public double weight; public bool gender; public int eggCount; public int LayEggs(int BirdType) { Random random = ...
b90e561161c75e11fb71b91cfc25c6a1744741fe
C#
psvenkadesan/VendingMachine
/VendingMachineUnitTest/ProductUnitTest.cs
2.6875
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using VendingMachine; namespace VendingMachineUnitTest { [TestClass] public class ProductUnitTest { #region "Positive Scenario" //Test for coin detail [TestMethod] public void TestMethod_ProductDetail() ...
ec89a728e809c0a466d2f95a4d96e3d6ea3b69f1
C#
GLevieux/landscape
/Assets/WFC/Scripts/Utils/ListOptim.cs
3.015625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ListOptim<T> where T : class { public T[] data; public int size; public void Init(int sizeMax) { data = new T[sizeMax]; } public void Add(T t) { data[size] = t; size++; ...
9c68863f7a8007b23ea6e69e9c80d50c3c603dab
C#
Bengali4/Network_Simulator
/Electrical Network/Electrical Network/Meteo.cs
3.03125
3
using System; using System.Collections.Generic; using System.Text; namespace Electrical_Network { public class Meteo { public string name; public int Solar; public int Wind; public int Heat; public Dictionary<string, int> Dico_Impact = new Dictionary<string,...
8574c15ca1311571587eeecc527e457c242406f0
C#
shendongnian/download4
/first_version_download2/441252-39378783-126630635-2.cs
2.796875
3
private static Random rnd = new Random(); private static object sync = new object(); static void Main(string[] args) { List<Task> tasks = new List<Task>(); // Execute the task 10 times. for (int ctr = 1; ctr <= 5; ctr++) { tasks.Add(Task.Factory.StartNew(Fi...
b339f3663f8551da679339d5003f024c0afc98ce
C#
siddharthagout/Felbook
/Felbook/Models/StatusService.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ComponentModel.DataAnnotations; using System.ComponentModel; using Felbook.Helpers; namespace Felbook.Models { public interface IStatusService { // Najde status, která má odpovídající id Status Fi...
a71999c4b52aa6fde06616336ac2f1052f25613a
C#
Gorrii/AppSalesMan2
/AppSalesMan2.Database/Repository/SalesManDataRepository.cs
2.734375
3
using AppSalesMan2.Database.Entity; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AppSalesMan2.Database.Repository { public class SalesManDataRepository { readonly AppSalesMan2DbContext _DbContext = new AppSale...
a28fefa6544fea344f08affc00c8b64dfdc0c18a
C#
sayanghosh-1/FoodOrderingApp
/Test/UserFactoryTest.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; namespace FoodOrderingApp.Test { [TestFixture] class UserFactoryTest { [Test] public void When_UserWill_Login_expects_true() { // a...
efd80e82de433d9b2aa723bb46eef6ffb8aa1056
C#
Alachisoft/NCache
/Src/NCClient/Web/Caching/LockHandle.cs
2.578125
3
// Copyright (c) 2021 Alachisoft // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
262d4c6dd38e8e1c5deff3b8cadf7722382186d8
C#
Educational-Repos/Lemma
/Lemma/Util/LambdaComparer.cs
2.96875
3
using System; using ComponentBind; using System.Collections.Generic; using System.Linq; using System.Text; namespace Lemma.Util { public class LambdaComparer<T> : IComparer<T> { private readonly Func<T, T, int> lambda; public LambdaComparer(Func<T, T, int> _lambda) { if (_lambda == null) throw new Arg...
b559cfd2aca0823717130ab3816043c12e59d4d4
C#
NasC0/Telerik_Homework
/C# part 2/8. StringsAndTextProcessing/16. CalculteDaysBetweenDates/CalculteDaysBetweenDates.cs
3.84375
4
using System; using System.Globalization; class CalculteDaysBetweenDates { static void Main() { try { System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Console.Write("Enter the first date: "); string firstDateString = Conso...
6fd849a4bf5bead710b3ca0bd64bf1790861691e
C#
Borohard/CarSharing
/CarSharing.App/Cars/Commands/RentalCarCommand.cs
2.515625
3
using System; using System.Threading; using System.Threading.Tasks; using CarSharing.Domain.Orders; using CarSharing.App.Interfaces; using MediatR; namespace CarSharing.App.Cars.Commands { public class RentalCarCommand : IRequest { public Guid UserId { get; set; } public Guid CarId { get; set;...
9ba79f14446982e88d7a123fecb1a6cee754e8fb
C#
bubbafat/Twilio-WebAPI
/src/Twilio.WebApi/TwilioRequest.cs
2.859375
3
namespace Twilio.WebApi { /// <summary> /// Base class for mapping incoming request parameters into a strongly typed object /// </summary> public abstract class TwilioRequest { /// <summary> /// Your Twilio account id. It is 34 characters long, and always starts with the letters...
de1ddf074ddf954dc91e2534c29f33c6eabc3f0e
C#
nathanpjones/DecimalMath
/DecimalEx/TransformationMatrixBase.cs
3.375
3
using System; namespace DecimalMath { /// <summary> /// A base class to support implementation of a square matrix to be used for affine transforms. /// </summary> /// <typeparam name="TSelf">Reference to the type inheriting this base class.</typeparam> public abstract class TransformationMatrixBas...
e00e1f24437e02e50b9e7acb0570c2fa259d338a
C#
Navila48/UniversityApp
/UniversitywebApp/UniversityApp/UniversityApp/GateWay/StudentResultGateWay.cs
2.65625
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; using UniversityApp.Models; namespace UniversityApp.GateWay { public class StudentResultGateWay: Gateway { public List<string> GetAllStudentRegNo() { ...
d5811da92bd3439c25df92c89b5881fbf3b58019
C#
aequabit/ChromaCheatsEmulator
/Rijndael.cs
2.734375
3
using System; using System.IO; using System.Security.Cryptography; using System.Text; namespace ChromaFramework.Encryption { public static class Rijndael { public static string Decrypt(string text, string key, string iv) { string str = key; string str1 = iv; ...
c455a00f1fecc782de7549ee34af510d685a84e8
C#
bubdm/NoStringEvaluating
/NoStringEvaluatingTests/Formulas/FormulasContainer.NumberListFormulas.cs
2.84375
3
using System.Collections.Generic; using System.Linq; using NoStringEvaluatingTests.Model; namespace NoStringEvaluatingTests.Formulas { public static partial class FormulasContainer { public static IEnumerable<FormulaModel[]> GetNumberListFormulas() { var list1 = new[] {1d, 3d, 2d}....
b65cde95c942c1da1346ecdf42a0e61fa7bfde33
C#
damagefilter/PlayblackCore
/Game/EventSystem/Events/SaveGameLoadedEvent.cs
2.578125
3
namespace Playblack.EventSystem.Events { public class SaveGameLoadedEvent : Event<SaveGameLoadedEvent> { /// <summary> /// The save game we loaded from. /// </summary> /// <value>The name of the scene.</value> public string SaveName { get; private s...
9393f857e68f7ff79cda80baec7122a893ea2071
C#
xavieroldan/C_Sharp
/randomNumber/Program.cs
3.8125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace randomNumber { class Program { static void Main(string[] args) { int input; int rndNumber; Random rnd = new Random(); bo...
6981fc2cd2e6337d745de5d13e6aa0774b16aa64
C#
Swaelo/mmo-client-old
/Assets/Scripts/Items/ItemManager.cs
2.984375
3
// ================================================================================================================================ // File: ItemManager.cs // Description: Keeps track of all the active item pickup objects currently active in the game world // ====================================================...
dd821d81b62da727d800e8eab88f40946b899306
C#
vkrehovetsky/TestApp
/NUnitTestWebApp/AssignmentsControllerTests.cs
2.765625
3
using Microsoft.AspNetCore.Mvc; using Moq; using NUnit.Framework; using System.Collections.Generic; using System.Linq; using TestWebApp.Controllers; using TestWebApp.Models; namespace Tests { public class Tests { private Mock<IRepository> _mock; private AssignmentsController _controller; ...
4f78d50f053e0da8ad06b7ee9047dbf3a3869102
C#
chertoGUN/HSE-University-projects
/Course-1/Programming/Lab.13/MyCollection.cs
3.71875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab._13 { class MyCollection : ICollection<Time> { public string name; public List<Time> arr = new List<Time>(); public MyCollection(string Name) { ...
f5d7cca9fe42a6101d80814dddc0117871d43ff6
C#
AnonymousRandomPerson/AR_Mario_Game
/Assets/Scripts/Level/Enemies/OHKO.cs
2.796875
3
using UnityEngine; /// <summary> /// Kills the player instantly (regardless of power-up) upon hitting a trigger. /// </summary> public class OHKO : MonoBehaviour { /// <summary> /// Kills the player instantly upon collision. /// </summary> /// <param name="collider">The collider that collided with the object.</p...
37e62e7233d9f4fd006b2b002725176767a66852
C#
ChineduOzodi/GodotLife
/Scripts/Pathfinding/Coord.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Godot; namespace Life.Scripts.Pathfinding { public struct Coord { public int x; public int y; public static Coord zero = new Coord(); //public Coord() ...
24ce4b7c21afc207ba29d78392c7bd7ed36113b2
C#
OrhanCinar/c-sharp-practice
/C-Sharp-Practice/Dynamic Programming/ValueContinuousFloorFunc.cs
3.703125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C_Sharp_Practice.Dynamic_Programming { class ValueContinuousFloorFunc { int max = 10000; int[] dp; void InitDP() { dp = new int[max]; ...
ef364b273f690dbb36c7cfeb9b959954d2305e44
C#
M-Files/COMAPI.Extensions.Community
/MFilesAPI.Extensions/Email/EmailMessage.cs
2.75
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Mail; using System.Net.Mime; using System.Runtime.InteropServices; using System.Text; namespace MFilesAPI.Extensions.Email { /// <summary> /// Represents an email message to be sent via the default plugi...
29166f382aec4a991cd4934e6fb7eec301713e90
C#
denissfloww/Information-systems-design
/Lab7/Orders/OrdersClient/Controllers/OrderController.cs
2.53125
3
using Orders.Domain.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Orders.Domain.Services; using Excel = Microsoft.Office.Interop.Excel; using Word = Microsoft.Office.Interop.Word; namespace OrdersClient.Controllers { public class ...
0c971ca91eb8a40104019e5ecc47d8837844f76b
C#
joensindholt/my-athletics-club
/server/Models/DataStore.cs
2.578125
3
using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Table; namespace MyAthleticsClub.Server.Models { public class DataStore { private readonly CloudStorageAccount _storageAccount; public DataStore() ...
d6dd6704d317caf20bfdf9d1fc7a34512a8f3a69
C#
SumoSoftware/Sumo.Data
/src/Sumo.Data/Core/Names/ColumnName.cs
3.0625
3
using System; using System.Collections.Generic; using System.Text; namespace Sumo.Data { public class ColumnName : ItemName, IColumnName, IItemName, IEquatable<ColumnName> { protected ColumnName() : base() { } public ColumnName(string name) : base(name) { } public ColumnName(string n...
245d8b6814c521638de4c42e189b484748fb5cee
C#
Shakaza/BA-Clustering
/TreeClust/TreeClust/FileParser.cs
3.203125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TreeClust { class FileParser { private static StreamReader SR; public static bool fna; public static Task t; public static int Size = 1...
f617b99ee714575aa42fb89e553afdb61e69fa8b
C#
leonardojc96/ABML-Examen-Info
/Validaciones.cs
3.59375
4
using System; using System.Linq; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace ABMLEmpleados { static class Validaciones { public static int ANumeroEntero(string valor) { int b; bool esEntero = int.TryParse(valor, ...
4969f8f33731880cb985929419e983144b4007f1
C#
elisbergling/c-sharp
/ConsoleApp1/Program.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { /* Console.BackgroundColor = ConsoleColor.Magenta; Console.Clear(); ...
67d71f211d5d738d45a219a092e89764ac31d7d5
C#
davidaturner/CoderForLife-WozU
/FSWO102-CS/20210428/Lesson01/02_DataTypes/02_DataTypes/Program.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _02_DataTypes { class Program { static void Main(string[] args) { int daysInAYear = 365; Console.WriteLine(daysInAYear); double som...
382809d7dd92e14ecfb52c2621aff7bc9b14b159
C#
wesnerm/CompetitiveProgramming
/Library/Algorithms/Graphs/NetworkFlow/MinCostMaxFlow.cs
3.15625
3
using System; using System.Collections.Generic; namespace Softperson.Algorithms.Graphs { // Implementation of Min cost Max flow algorithm using adjacency // matrix (Edmonds and Karp 1972). This implementation keeps track of // forward and reverse edges separately (so you can set cap[i][j] != // cap[j...
ced03c51cc6a2936808df2b8e3d9146fcf3ed3a8
C#
Julius2305/Unity-Projekte
/XRaySimulation-master/XRaySimulation/Assets/Scripts/Source/Furniture/MoveableController.cs
2.78125
3
using System; using System.Collections.Generic; using UnityEngine; public class MoveableController : FurnitureController { private bool isMoved; public MoveableController(Transform conntrolledTransform) : base(conntrolledTransform) { isMoved = false; } public override void Interact(bool[...
9be86ddf84059de8d78f51ab10674d9d36ed7e47
C#
bodines1/Boxy
/Boxy/Reporting/CardMimicStatusEventArgs.cs
3.046875
3
using System; namespace CardMimic.Reporting { /// <summary> /// Event args to report a status message to a listener. /// </summary> public class CardMimicStatusEventArgs : EventArgs { /// <summary> /// Creates a new instance of the EventArgs. /// </summary> /// <par...
0a291a94300a30200bf5e14f2c5b16b51dc85dd5
C#
sonicrang/RangPaint
/RangPaint/Model/Strokes/BrushStroke.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; namespace RangPaint.Model { class BrushStroke : StrokeBase { public BrushStroke(S...
8b20e406d0c8caaa0ee6aa0b8fdb8fe049c5874a
C#
runceel/ReactiveProperty
/Source/ReactiveProperty.NETStandard/Notifiers/ScheduledNotifier.cs
2.71875
3
using System; using System.Reactive.Concurrency; using System.Reactive.Subjects; namespace Reactive.Bindings.Notifiers; /// <summary> /// Notify value on provided scheduler. /// </summary> public class ScheduledNotifier<T> : IObservable<T>, IProgress<T> { readonly IScheduler scheduler; readonly Subject<T> tr...
32c7758df402f33c66be5ba2074c574118ea12dd
C#
starfrost013/free-project
/Emerald.COM.Writer/1.6/COMWriter.WriteCOM.Header.cs
2.9375
3
using Emerald.COM; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Emerald.COM.Writer { public partial class COMWriter { /// <summary> /// Writes the header to a COM file. /// </summary> ...
5e15c36f501044e179edca9e783db5e1797193e3
C#
Pratz1994/ReactJsSample
/DAL/ShopInitializer.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Shop.Models; namespace Shop.DAL { public class ShopInitializer : System.Data.Entity.DropCreateDatabaseIfModelChanges<ShopContext> { protected override void Seed(ShopContext context) { List<St...
035c9f6829f55b336fc2f0fe93018c3516914a20
C#
TKU-IIT/C-Practicing
/privateConstructor.cs
3.671875
4
using System; namespace privateConstructor { class privateConstructor { static void Main(string[] args) { //Console.WriteLine("Hello World!"); objCaller objc = new objCaller(); } } class obj { int a, b; public int result; ...
e2ded5f432f9b84a085cbab4163d32ce6a73782d
C#
zhijieqiu/ChineseSpeller
/ChineseSpeller/SpellerModel.cs
2.8125
3
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using ChineseSpeller.Interface; using ChineseSpeller.tool; namespace ChineseSpeller { public class SpellerModel { private readonly ...
3d4d96a4b3505c3bd257509ec5ea47f77c1d56fa
C#
mirzaevolution/NameSorter
/NameSorter.ConsoleApp/Program.cs
3.203125
3
using System; namespace NameSorter.ConsoleApp { class Program { private static void InvokeCommand(string[] commands) { Console.WriteLine("===================================="); Console.WriteLine(" Name Sorter v1"); Console.WriteLine(" By: Mirz...
6df861f83fb5f97d08727e107aa3911f01dc98ec
C#
Danisimogg/better-travel-1
/src/BetterTravel.DataAccess.EF/Seeder/DbSeeder.cs
2.578125
3
using System.Threading; using System.Threading.Tasks; using BetterTravel.DataAccess.Abstractions.Entities.Enumerations; using BetterTravel.DataAccess.EF.Seeder.Abstractions; using Microsoft.EntityFrameworkCore; namespace BetterTravel.DataAccess.EF.Seeder { public class DbSeeder : IDbSeeder { private r...
d7828d31dfd180926901a88ffe59666b66435563
C#
IbespwnAC/MagTools
/Main/Shared/Constants/CoverageFlags.cs
2.71875
3
using System; using System.Collections.Generic; namespace Mag.Shared.Constants { /// <summary> /// This is the mapping for LongValueKey.Coverage. /// It represents what body parts an armor piece covers when used in defensive/armor calculations. /// </summary> [Flags] public enum CoverageFlags { N...
6ec73727c05653dddb59b3e5300b00820b5de3a7
C#
msvas/GDSGameJam2016
/Assets/Gameplay/CameraControl.cs
2.71875
3
using UnityEngine; using System.Collections; public class CameraControl : MonoBehaviour { [SerializeField] private Transform player1; [SerializeField] private Transform player2; [SerializeField] private float minSizeY; private new Camera camera; void Start () { camera = GetComponent<Camera>(); } vo...
f2804e88666234a3c1848c9de43b297dbc51a761
C#
LucasVelozo/Tarefa01102021
/POO2Ex10/Program.cs
3.796875
4
using System; namespace POO2Ex10 { class Program { static void Main(string[] args) { Console.WriteLine("==Área de um retângulo, terreno grande-pequeno=="); Terreno t; t = new Terreno(); do { Console.Wr...
2e17b89993bbc3783bef40fd0e493320816db86d
C#
erevivo/EcoBuy
/EcoBuy/ViewModels/UserControls/SearchEngineUCVM.cs
2.671875
3
using EcoBuy.Models; using System.Collections.ObjectModel; using System.Linq; using System.Windows.Data; namespace EcoBuy.ViewModels { public class SearchEngineUCVM : ViewModelBase { #region Private Fields private string _searchText; private ObservableCollection<PurchasedProduct> _ori...
32ab6231a4c484545ec9217ea01dc5b723a0de04
C#
shendongnian/download4
/latest_version_download2/212159-45503525-153198586-2.cs
3.15625
3
public static IEnumerable<DataRow> SortByNonEmpty( this IEnumerable<DataRow> source, string columnName) { var query = from r in source let value = r.Field<string>(columnName) where !String.IsNullOrEmpty(value) orderby value ...
063bddbefbfd224800285744c700062dd6895b82
C#
matchaniat/budget-manager
/Budget Manager/Ajoutcompte.xaml.cs
2.6875
3
using System.Windows; using System.Data.SQLite; namespace Budget_Manager { /// <summary> /// Logique d'interaction pour Ajoutcompte.xaml /// </summary> public partial class Ajoutcompte : Window { public Ajoutcompte() { InitializeComponent(); } ...
4da901baa6c4ea53dc3430c4a0d373d0968273e0
C#
3j/dddsample
/source/dddsample/domain/shared/IEntity.cs
2.6875
3
namespace dddsample.domain.shared { public interface IEntity<T> { /// <summary> /// Entities compare by identity, not by attributes. /// </summary> /// <param name="the_other_entity">The other entity.</param> /// <returns><code>true</code> if the identities are the same, ...
d49e0c493481697337ff64da588c585c419e50d3
C#
ghostsquad/SharpZendeskApi
/SharpZendeskApi.Test/Common/JsonTestObjectFactory.cs
2.546875
3
namespace SharpZendeskApi.Test.Common { using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Ploeh.AutoFixture; using RestSharp; using SharpZendeskApi.Models; using SharpZendeskApi.Test.Common.JsonObjects; /// <summary> /// The json test object factory. ...
f3bd77380b6795b80913329b84a5820c9e823cd1
C#
LP89Coding/KeyPresser
/KeyPresser/PressKeyDialog.xaml.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using Syste...
209e892bf4415fd5e452f5f59b6de96c3b03725f
C#
LiveGood/SoftUni
/C# Basics Homeworks/06. Loops-HW/12. Spiral Matrix/SpiralMatrix.cs
3.953125
4
using System; /* Problem 19. ** Spiral Matrix Write a program that reads from the console a positive integer number n (1 ≤ n ≤ 20) and prints a matrix holding the numbers from 1 to n*n in the form of square spiral like in the examples below. */ class SpiralMatrix { //This solutin uses multidimension...
af400315813f3f90dcf7804c676b39adad0b83d7
C#
sabrigulseven/SearchTree-Heap-HashTable-BikeRentalSystem-DataStructures
/DS_20_P3/Duraklar.cs
2.921875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS_20_P3 { public class Duraklar { string durakAdi; int bosPark, tandemBisiklet, normalBisiklet; //Duraklar sınıfında musteriler liste...
72c4dbd8c2260d1733a723c7383734c753078563
C#
MotorGenerator/ControlDantistPanel
/рабочая/ControlDantist/Find/FindContractTo2019NoValid.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ControlDantist.Find { public class FindContractTo2019NoValid : IFindPerson { string numContract = string.Empty; public FindContractTo2019NoValid(string numContract) { this.numCo...
2039e1ed8e09e579061cc114fb85a6cc764e36a2
C#
mihaistancu/project-references
/ProjectReferences/ProjectReferences/Project.cs
3.03125
3
using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml.Linq; namespace ProjectReferences { public class Project { private static readonly Dictionary<string, List<string>> cache = new Dictionary<string, List<string>>(); public static List<string> DirectReference...
8302bc2beb3b3b3d24bc98699ad55e1906f6577e
C#
mpurchese/SigmaDraconisDemo
/SigmaDraconis.Shared/PerfMonitor.cs
2.765625
3
namespace SigmaDraconis.Shared { using System; public static class PerfMonitor { private static int updateFrameCount = 0; private static int drawFrameCount = 0; private static long drawTickCount = 0; private static long updateTickCount = 0; private static DateTime l...
3f3d6207b23ed44cb21a53e32037d1ff63b3e68c
C#
pubbychanda/Part-7---ListBoxes
/Form1.cs
2.734375
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 Part_7___ListBoxes { public partial class Form1 : Form { List<int> numbers = n...
b7d4bdda997f3f4eb127345b1676f3a834fed50e
C#
amitsharma1100/AsyncProgramming
/AsyncProgramming/AsyncProgramming/Form1.cs
3.03125
3
using System; using System.IO; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace AsyncProgramming { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private async void button1_Cli...
aae8391cfe750b16c8c28acedfdee3eeab90ea01
C#
NoahJalava/FinalProjectServer
/FinalProjectServer/PacketMove.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace FinalProjectServer { public class PacketMove : Packet { public int ID { get; set; } public RectangleF NewPosition { get; set; } public Pa...
21140e2a23585a24c227966e5ac22259becb6ff5
C#
chetan-rote/ProductReviewManagement-LINQ
/ProductReviewManagement/ProductReviewManagement.cs
3.0625
3
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Data; namespace ProductReviewManagement { class ProductReviewManagement { /// <summary> /// UC8 The data table /// </summary> public readonly DataTable dataTable = new DataTable()...
34e1878693dc1c60995101781206646f96ac2228
C#
Nashnir/CSharpDirectXRaytracing
/07-BasicShaders/RTX/Helpers.cs
2.578125
3
using System; using System.Numerics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Vortice.Direct3D12; namespace RayTracingTutorial07.RTX { public static class Helpers { public static unsafe void MemCpy<T>(IntPtr destination, T[] source, uint count) whe...
574949524ae3350d40ce2cd92135bfeb34a7a86d
C#
kostadinM29/Softuni-OOP
/CSharp OOP Exe Encapsulation/03. ShoppingSpree/Core/Engine.cs
3.421875
3
using ShoppingSpree.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ShoppingSpree.Core { public class Engine { private readonly ICollection<Person> people; private readonly ICollection<Product> products; public Engine() {...
249523cac6353cb33118cba72a6a9118fe65c93c
C#
palanikumar32/vuejs-aspnetmvc
/VueJsAspNetMVC/Models/Employee.cs
2.921875
3
using System; using System.Linq; namespace VueJsAspNetMVC.Models { public class Employee { public int ID { get; set; } public string Name { get; set; } public string PhoneNo { get; set; } public string Gender { get; set; } public string Email { get; set; } publi...
3e3ce5e77f2e0e9e6efbab2096b8c1c233518891
C#
sunsp1der/Spider-Toolkit
/st Utilities/Extensions.cs
2.90625
3
using UnityEngine; using System.Collections; public static class InputExtensions { public static int LimitToRange( this int value, int inclusiveMinimum, int inclusiveMaximum) { if (value < inclusiveMinimum) { return inclusiveMinimum; } if (value > inclusiveMaximum) { return inclusiveMaximum; } return value;...
5935571f7a3af563c46d48a4c8cf36b75736f400
C#
todorm85/telerik-academy-2015
/Courses/Software Technologies/Web-Services-and-Cloud/homework/02. ASP.NET-Web-API/MusicAlbums/Server/MusicAlbums.Api/Controllers/ArtistsController.cs
2.609375
3
namespace MusicAlbums.Api.Controllers { using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using AutoMapper; using AutoMapper.QueryableExtensions; using MusicAlbums.Api.Models; using MusicAlbums.Data...
ed5739fe75ec0df008d17db28af9b00c063128c8
C#
shendongnian/download4
/first_version_download2/276209-22225605-59705967-2.cs
2.828125
3
int position = 0; int veces = 0; string temp = "" for (int i = 0; i < m.Length; i++) { if (Char.IsDigit(m[i])) position = i; else break; } veces = Convert.ToInt32(m.SubString(0, i + 1));