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
71de0660c11bfd2e0e6d6c09fdabd2bd07717f62
C#
Holmes-s/Deck-Package
/Assets/Scripts/Hand.cs
2.796875
3
using System.Collections.Generic; using UnityEngine; namespace Photon.Pun.CardPackage { public class Hand : Collection { /// <summary> /// Draw an amount of cards from the beginning of a targeted card collection /// </summary> /// <param name="collection">target card collection</param> /// <param name="a...
4bc949f99cd7d82e11872f429db1c4a8cd5958e4
C#
gormel/SuperLib
/SuperCore/SuperCore/Utils/Utils.cs
3
3
using System; using System.Collections.Generic; using System.Linq; namespace SuperCore.Utilses { internal static class Utils { private static readonly Dictionary<Tuple<Type, int>, Type> mTypesCashe = new Dictionary<Tuple<Type, int>, Type>(); public static Type GetActionWrapper<T>(Type[] argT...
1b4667e9ddaa2029ac94fa1e741cb41176390e60
C#
shira-zichel/CloudComputingProject1
/BE/Doctor.cs
2.515625
3
using System; using System.Collections.Generic; using System.Text; namespace BE { public class Doctor { public string Name { get; set; } public int age { get; set; } public string WorkPlace { get; set; } public int ID { get; set; } public override string ToString() ...
59da06a9227c97664c86cf061b9f2f83133e6020
C#
mco2hy/CoopSimulator
/CoopSimulator.Helper/DateHelper.cs
3.421875
3
using System; namespace CoopSimulator.Helper { public class DateHelper { public static int MonthDifferenceBetweenTwoDate(DateTime startDate, DateTime endDate) { return (endDate.Year - startDate.Year) * 12 + endDate.Month - startDate.Month; } public static int WeekDi...
27ebdb5a1725fa689b3e6bd34c27970399324d04
C#
pupentamaster/GreenSuperGreen
/GreenSuperGreen.NetStandard/Exceptions/StackTraceExceptionUC/StackTraceExceptionUC.cs
2.765625
3
using System; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.Serialization; // ReSharper disable UnusedMember.Global // ReSharper disable InconsistentNaming // ReSharper disable CheckNamespace namespace GreenSuperGreen.Exceptions { /// <summary> /// Allows to create Exception...
5ca239fb392f7986d0b4e43b17aec44cc4e38577
C#
PStanos/Unity-Editor-Tuts
/Assets/Scripts/Grid/TileDirectory.cs
2.5625
3
using UnityEngine; using System.Collections; using System.Collections.Generic; [System.Serializable] public class TileDirectory : ScriptableObject { [SerializeField] private List<TileType> _tileTypes; public List<TileType> TileTypes { get { return _tileTypes; } ...
3e3dbb24d444633d449ff21d2be558e93ccf6e90
C#
ufanatoly/practicePeton
/mdbWrite/Class1.cs
2.859375
3
using System; using System.Collections.Generic; using System.Data.OleDb; using System.Linq; using System.Text; using System.Threading.Tasks; namespace mdbWrite { public class MdbWrite { public void addAtributes(string connectionString, string[] strArrayName, string[] strArrayValue) { ...
5e3a20ce04ab718e3d4a6251e7fa1bb90df30ac9
C#
andreiboy84/EPAMPAB
/GoeuroTest/GoeuroTest/GoeuroTest.cs
2.5625
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace GoeuroTest { [TestFixture] public class GoeuroTest { [Test] public void Test1() { using (var page...
2b169d026fbe76406bf19c13ce0c0f41b921c17d
C#
ArturLehnytsky/LearningAutomation
/FirstTestFraemwork/UnitTest1.cs
2.546875
3
using System; using NUnit.Framework; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; namespace FirstTestFraemwork { [TestFixture] public class UnitTest1 { public IWebDriver driver; [SetUp] public void init() { driver = new ChromeDriver(); } ...
0541a040b9620efbaeb9bf28bad2fa784d298fb0
C#
sunneo/NesDev
/HalfNes/Com/GrapeShot/utils.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HalfNes.Com.GrapeShot { public class utils { private utils() { } public static int BIT0 = 1, BIT1 = 2, BIT2 = 4, BIT3 = 8, BIT4 = 16, BIT5 = 3...
613da15691665aeea075eeb32794d85673f860c4
C#
OneEighteenNoTwo/LetterboxdCsv
/CommandLineManager/OptionAttribute.cs
2.9375
3
using System; namespace CommandLineManager { [AttributeUsage(AttributeTargets.All)] public class OptionAttribute : Attribute { public readonly string shortCmd; public readonly string longCmd; private bool required; public virtual bool Required { get ...
73257cda40bd54d33c31179421623fdbc3c18f32
C#
AlexeyShpavda/CalculusPractice
/Inheritance/Inheritance/Models/SportsCar.cs
3.609375
4
namespace Inheritance.Models { class SportsCar : Car { private static string _color; public static string Color { get => _color; set => _color = value; } public SportsCar(string name, string number, string speed, string color) : base(name, number, speed) => Color = color; ...
96ed835206ecd0cb701f2ee7bd81309db0858647
C#
razuk-78/DotNetExamples
/ThreadTasks/MyTaskScheduler.cs
3.046875
3
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; class MyScheduler:IDisposable { List<Task> _tasks = new List<Task>(); CancellationTokenSource cs = new CancellationTokenSour...
41a7db4ba08afaacafee40a4e5a42cfcb9ef8706
C#
Digishui/Digishui.NET
/Digishui.NET/Extensions/System.Uri.cs
2.578125
3
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using System.Net; using System.Threading.Tasks; using System.Web; //=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= namespace Digishui.Ex...
eea792e82ecec06bd858029f37f57d04a58a5079
C#
dev2dev-community/d2dquest
/src/D2DQuest.BusinessLogic/Commands/RegisterWordCommand.cs
2.515625
3
using System; using System.Linq; using D2DQuest.Contracts.Commands.Exceptions; using D2DQuest.Contracts.DataAccessLayer; using D2DQuest.ObjectDomain; using D2DQuest.Contracts.Exceptions; using D2DQuest.Contracts.Commands; namespace D2DQuest.BusinessLogic.Commands { public class RegisterWordCommand : IRegisterWord...
83ed887e4efc8a87981c6ee6c0a0e20a747d0abe
C#
relaxar/ngenerics
/src/NGenerics.Tests/DataStructures/General/VertexTests/GetIncidentEdgeWith.cs
2.546875
3
/* Copyright 2007-2017 The NGenerics Team (https://github.com/ngenerics/ngenerics/wiki/Team) This program is licensed under the MIT License. You should have received a copy of the license along with the source code. If not, an online copy of the license can be found at https://opensource.org/licenses/MIT. *...
50e6d801feab46ecd9d06568ea6ef1584c7a21fe
C#
sepehrhh/Coursera_Algorithm_Implementations
/A4/A4/Node.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace A2 { public class Node { public Node Prev { get; set; } public long Distance { get; set; } public long Data { get; set; } public Nullable<long> QueueInd...
8325741f2e758238341b4a616219e7bf5ef96138
C#
danielmoore/Extension-Method-Pack
/NorthHorizon.Common.Xmp/ObjectExtensions.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Reflection; namespace NorthHorizon.Common.Xmp { /// <summary> /// Provides extension methods for all objects. /// </summary> public static class ObjectExtensions { /// <summary> /// Executes the specified action if <p...
dc2b611bb9994233cd4b26fdb1c067a57ab7e916
C#
nigel-sampson/object-server
/UnitTests/Chelsea/Occasion.cs
2.6875
3
using System; using System.Xml.Serialization; using Nichevo.ObjectServer; namespace UnitTests.Chelsea { [Table("Occasions", "Id", PrimaryKeyType.Identity, DefaultOrder="name")] public abstract class Occasion : ServerObject, IComparable { public const int MaxNameLength = 50; [XmlType("Occasion")] public clas...
b2bb1b443e2d69003400e18574f9f465b100556e
C#
OpenNefia/OpenNefia
/OpenNefia.Core/Areas/AreaId.cs
3.03125
3
namespace OpenNefia.Core.Areas { [Serializable] public readonly struct AreaId : IEquatable<AreaId> { public static readonly AreaId Nullspace = new(0); public static readonly AreaId FirstId = new(1); internal readonly int Value; public AreaId(int value) { ...
5ad6a9720004386c140c7a6247126d5034c084fc
C#
mschwa/resolver
/Resolver.Case.Api/src/Services/StorageRepository.cs
2.703125
3
using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Queue; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.WindowsAzure.Storage.Table; using Resolver.Case.Api.Snapshot; namespace Resolver.Case.Api.Services { public class S...
87352f72ea3f5bf6dc7fca47b2536738dda6bd8e
C#
SaeedTaghavi/learning_csharp
/00_basics/03_bankAccount/03_csharp.cs
2.96875
3
using System; namespace myBank { class Program { static void Main(string[] args) { var account = new bankAccount("taghi",100); Console.WriteLine($"accont {account.Number} was created for {account.Owner} with {account.Balance}"); account.MakeWithdrawal(10, Dat...
b4be61684c06e1bda7df3ff9137be243749503b7
C#
NickHudgins/NickHudgins-c-sharp-material
/module-1/02_Variables_Data_Types/student-exercise/VariableNaming/Program.cs
3.515625
4
using System; namespace VariableNaming { class Program { static void Main(string[] args) { /* 1. 4 birds are sitting on a branch. 1 flies away. How many birds are left on the branch? */ int startingNumberOfBirds = 4; int n...
9706ba2b7d659aeffd91a24c6607ef7c710822c2
C#
TRiV07/OrchardCore.Commerce
/src/Modules/OrchardCore.Commerce/Settings/ProductAttributeFieldSettings.cs
2.90625
3
using OrchardCore.Commerce.Abstractions; using System.Collections.Generic; namespace OrchardCore.Commerce.Settings; /// <summary> /// A base class for product attribute settings. /// </summary> public abstract class ProductAttributeFieldSettings { /// <summary> /// Gets or sets the description text to display...
12dcc105d18aee073fcc6251bc145966badf0d31
C#
e-hill/track-my-games
/src/Repositories/GoalsRepository.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AutoMapper; using Microsoft.EntityFrameworkCore; using TrackMyGames.DbContexts; using TrackMyGames.Entities; using TrackMyGames.Models; namespace TrackMyGames.Repositories { public class GoalsRepository : IGoalsR...
bd4a7ad3670e44b048255b67af34fc5b06f9d7bf
C#
spica29/Centar-za-udomljavanje-pasa
/Centar/Centar/UgovorDAO.cs
2.640625
3
using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Centar { public class UgovorDAO:IDaoCrud<Ugovor> { private MySqlConnection con; public UgovorDAO(string host, string db, string user, str...
a9834a575d72f4d497f631f96cab022c5e8f724e
C#
Garados007/MaxLib
/MaxLib.Sqlite/DB/Database.cs
2.796875
3
using System; using System.Data.SQLite; using System.Diagnostics; using System.Threading; namespace MaxLib.DB { public class Database : IDisposable { public class TransactionDisposer : IDisposable { readonly Database db; public TransactionDisposer(Database db) ...
8782acfb6cfb1ea0ef38909fcef17ca2d87ae991
C#
dochinhthtn/crazy-fitness-app
/Assets/Scripts/Components/ProfileForm.cs
2.65625
3
using Models; using UnityEngine; using UnityEngine.UI; using System; namespace Components { public class ProfileForm : BaseComponent<Models.Profile> { [SerializeField] private InputField nameInput; [SerializeField] private Toggle maleOption; [SerializeField] private Toggle femaleOption; ...
5fea2d167eb2765d21931c81e560bcd1012cb5b5
C#
zhuhuijun/20201228testcrud
/Asp.NetCore/SoEasyPlatform/src/LayuiCmdCore.Utils/StringExtensions.cs
3.234375
3
using System; using System.Collections.Generic; using System.Text; namespace LayuiCmsCore.Utils { /// <summary> /// String 操作扩展类 /// </summary> public static class StringExtensions { /// <summary> /// Null Empty 判断 /// </summary> /// <param name="str">源字符串</param> ...
15ba5a305d02a3931c5cd6f3a63d87175468290b
C#
ErhanKurnaz/UrenTijd
/UrenTijd/MainWindow.xaml.cs
2.71875
3
using System.Windows; using System.Globalization; using UrenTijd.ui; using System.ComponentModel; using System.Threading; using System; using System.IO; namespace UrenTijd { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window, INotifyPropert...
2d01c0e4d04868a351f6872aa879f3d1e8efed05
C#
chris-nissen/authorization
/src/GraphQL.Authorization/Requirements/ClaimAuthorizationRequirement.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace GraphQL.Authorization { /// <summary> /// Implements an <see cref="IAuthorizationRequirement"/> which requires an instance of the specified /// claim type, and, if allowed values are specified, the cl...
b26f6a840adec05147c2b89c354dfb125c9dee4c
C#
LogicAndTrick/sledge
/Sledge.FileSystem/VirtualFile.cs
2.78125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace Sledge.FileSystem { public class VirtualFile : IFile { public FileSystemType Type { get { return FileSystemType.Virtual; } } public bool IsCont...
99b48a6bc90728c731825abd36d5e578b6947323
C#
zmaimy22/Plugins
/TechTreeTool/BlueprintController.cs
2.671875
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Linq; using System; using TechTree.Model; namespace TechTree { /// <summary> /// The BlueprintController wraps the Blueprint class. This is so you can have multiple instances of /// a blueprint (eg multiple soldier...
4d8b88a70d6aa790e7f527ce2b11a8e19b683b69
C#
pieringro/MyTrelloClone-Server
/MyTrelloClone.DataAccess/Data/BoardData/Commands/CreateTaskLiskCommand.cs
2.5625
3
using MediatR; using MyTrelloClone.DataAccess.Data.Repository.IRepository; using MyTrelloClone.Models; using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; namespace MyTrelloClone.DataAccess.Data.BoardData.Commands { public class CreateTaskLiskCo...
1a8e6808a1e746febc7e9bb64b7a7224b7ba4ec5
C#
TanushaVeraksa/test
/xUnit/InequalityTriangles/Triangle.cs
3.140625
3
using System; namespace InequalityTriangles { public class Triangle { public static bool TheExistenceOfTriangle(double X, double Y, double Z) { return (X > 0 && Y > 0 && Z > 0 && X <= Y + Z && Y <= X + Z && Z <= X + Y); } } }
6ecacdae4f714f2840cf3fe999641584082ba741
C#
adehikmatfr/c-sharp-simple-desktop-project
/AppFirst/AppFirst/model/Koneksi.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; //panggil modul driver mysql using MySql.Data; using MySql.Data.MySqlClient; namespace AppFirst.model { class Koneksi { //buat method open db untuk membuka d...
f9a8f4084cc37b65ba50bcceb4f64472da2dffa3
C#
christophwille/viennarealtime
/Source/MundlTransit.WP8.Data/Reference/ReferenceDataContext.Import.cs
2.625
3
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using SQLite; namespace MundlTransit.WP8.Data.Reference { public partial class ReferenceDataContext { public async Task InitializeData...
d903e2e2557140ad3c81f8493cccbf750d2f64bb
C#
ossentoo/xamarin-amccorma
/MaskValidation - BETA/MaskedEdit/Library/SelectionPoint.cs
2.578125
3
using System; namespace Masked.Library { public class SelectionPoint { public SelectionPoint(Int32 start, Int32 end) { this.Start = start; this.End = end; } public SelectionPoint(Int32 start) { this.Start = start; this.End = -1; } /// <summary> /// used by renderer /// </summary> /...
34df7c664369b97a2ca8c39983281008407ecba2
C#
patrickmartins/Bazaar
/src/PM.Bazaar.Services.WebApi/Extensions/ImageUtilExtension.cs
3.046875
3
using System; using System.Drawing; using System.Drawing.Imaging; using System.IO; namespace PM.Bazaar.Services.WebApi.Extensions { public static class ImageUtilExtensions { public static Image Resize(this Image image, int maxWidth, int maxHeight) { var ratioX = (double)maxWidth/im...
17996bbe5c88c602f8165c13bd7a878c2c12369b
C#
peytonas/keepr-ta
/Services/VaultKeepsService.cs
2.796875
3
using System; using System.Collections.Generic; using Keepr.Models; using Keepr.Repositories; namespace Keepr.Services { public class VaultKeepsService { private readonly VaultKeepsRepository _repo; public VaultKeepsService(VaultKeepsRepository repo) { _repo = repo; } public VaultKeep Cr...
3c6c578eccf577bbc5df98a6eff2552fe57d0f42
C#
mybirthname/VisitorSimple
/DesignPatterns/Program.cs
2.6875
3
using DesignPatterns.VisitorPattern; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DesignPatterns { class Program { public static void Main(string[] args) { TestSimpleVisitor(); } publi...
72c376182777905a1ecb59bb7f6072c1768abaaf
C#
MaximillianMS/AllaxScript
/Loggers/UltraLogger.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Allax.Logger { public class UltraLogger { static int MAX_NOTES = 100000; static bool TurnedOn = false; const string PredefinedPath = "C:\\Windows\\Temp\\"; ...
57971acc98604ddda3fc9a00a05f70a8399ee0da
C#
stefanv877/CSharpOOP_SoftUni
/DefiningClasses/RawData/Car.cs
2.703125
3
using System; using System.Collections.Generic; using System.Text; class Car { string model; Engine engine; Cargo cargo; Tire tires; public string Model { get { return model; } } public Engine Engine { get { return engine; } } public Cargo Cargo { ...
269047f95c2d8c310175bbd4fe2da1473a5cda80
C#
BagirovPavel/TestForWork
/ProjectLife/LoadWindow.xaml.cs
2.53125
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Docum...
95d56d7fac548ff254c3e46e512b456480f900b9
C#
K2177/TTOS0200
/Labra1+2/Tht05.cs
3.28125
3
using System; namespace Labra1_2 { class Tht05 { public static void Tehtava5() { // Tee ohjelma, joka näyttää annetun sekuntimäärän tunteina, minuutteina ja sekunteina. Aikamääre sekuntteina kysytään käyttäjältä. Console.Write("Sekunnit: "); int sek = int.P...
57deaa2697a041c019bcc1b95ee09705f9243267
C#
liamxun-123/myMd
/01.计算机科学/算法/leetcode/513.找树左下角的值.cs
3.328125
3
/* * @lc app=leetcode.cn id=513 lang=csharp * * [513] 找树左下角的值 * * https://leetcode-cn.com/problems/find-bottom-left-tree-value/description/ * * algorithms * Medium (72.00%) * Likes: 140 * Dislikes: 0 * Total Accepted: 25.7K * Total Submissions: 35.8K * Testcase Example: '[2,1,3]' * * 给定一个二叉树,在树的最后...
241299f8062208a973c188a22804120e84ab82fe
C#
nirjhar18/EventsAndDelegates
/Number.cs
3.875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EventsAndDelegates { //All the subscribers must provided a handler function, which is going to be called when a publisher raises an event. //In the above example, the Number...
373dde8656dee8abdb19caad51d4568237a8ae65
C#
huchanghui123/Read-PC-hardware-info
/OpenPCINFO/PC.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; using System.Management; using System.Collections; using System.Net; using System.Net.NetworkInformation; using System.Linq; namespace OpenPCINFO { class PC { public static string GetSystemType() { try {...
61af434a9e47deb2d55b83d5b8e4ff6f97441c23
C#
BigETI/INIEngine
/INIEngine/INIFile.cs
3.046875
3
using System.IO; /// <summary> /// INI engine namespace /// </summary> namespace INIEngine { /// <summary> /// INI file class /// </summary> public static class INIFile { /// <summary> /// Open file /// </summary> /// <param name="path">Path</param> /// <ret...
958c427edea4f8ffd504da3fe7ea502a2b63b11c
C#
chuxuantinh/Software-Dev
/13.DS-Adv/exam21Nov2020/01. Dog Vet - Correctness_Skeleton/01.DogVet/DogVet.cs
3.265625
3
namespace _01.DogVet { using System; using System.Collections.Generic; using System.Linq; public class DogVet : IDogVet { List<Dog> dogs = new List<Dog>(); Dictionary<string, Dictionary<string, Dog>> byOwnerId = new Dictionary<string, Dictionary<string, Dog>>(); Dictionary<B...
fef1d2b85a26b585af7bd0c7715aae34f25be959
C#
chenmj201601/UMP
/UMP/UMPS4601/UMPS4601/Converters/TableLvConverter.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Data; using VoiceCyber.UMP.Common; namespace UMPS4601.Converters { public class TableLvConverter : IValueConverter { public object Convert(object value, Type targetType, obj...
e965f1f16f9921f93b6176488ac512f1273bfa2c
C#
Albert-Bennett/EonEngine
/Eon Engine/Console/Mk 1/Eon/Eon/Common.cs
2.703125
3
/* Created 10/06/2013 * * Author: Albert Bennett. * Copyright @ Aeon Studios. */ using Eon.Helpers; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Media; using System; namespace Eon { /// <summary> /// An event ...
6d3a434c3a2f5149f1504cc151903415b3b87fdc
C#
justJosh1004/AcademyPGH-VisualStudio
/2-23-17/Guessing Game/Guessing Game/Program.cs
3.875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Guessing_Game { class Program { static void Main(string[] args) { int[] my_array = { 3, 12, 8, 33, 2 }; while (true) { ...
95518d2f5f724efdeee7b975cbb08ea7499574ed
C#
eiceblue/Spire.Presentation-for-.NET
/CS/03_Slides/ClonePPTAtEndOfAnother.cs
2.8125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Spire.Presentation; namespace ClonePPTAtEndOfAnother { public partial class Form1 : Form { public Form1() { ...
12f5b4e40186ea7a980ece6963d9c9386e880c65
C#
marcieleadivincula/entra21
/AppVinteUm/AppVinteUm/GeraOutrosDados.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AppVinteUm { class GeraOutrosDados { private static Random ran = new Random(); //Gera int TipoCliente, sendo 1 para NORMAL e 2 para SÓCIO e 0 para indefinido p...
cdf63fd7e923cff48ac3fc32ddf8279b205b5b99
C#
ElementaryDearWatson/TestBench
/SOLIDexperimentation/Program.cs
3.296875
3
using System; namespace SOLIDexperimentation { class Program { public static void Main() { Console.WriteLine("Name of the Student?"); var name = Console.ReadLine(); Console.WriteLine("Student ID"); var Id = Console.ReadLine(); Console...
0a97ac392b418e1c2284d9d1e9a23994fc4167c1
C#
KinaUna/AvP_Song_Annotations
/AvP_Song_Annotations/Services/RunProcess.cs
2.890625
3
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using AvP_Song_Annotations.Extensions; namespace AvP_Song_Annotations.Services { public class ProcessWrapper : Process { public enum PipeType { StdOut, St...
cebc45c7f84f75435b90ade8ba304ccd8d0bee4a
C#
AArnott/MoneyMan
/src/Nerdbank.MoneyManagement/AccountSort.cs
2.625
3
// Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the Ms-PL license. See LICENSE.txt file in the project root for full license information. using Nerdbank.MoneyManagement.ViewModels; namespace Nerdbank.MoneyManagement; /// <summary> /// Sorts <see cref="AccountViewModel"/> objects by <see cref=...
7d75d98f0f6540739eb40d0a36f31b200e1e6c88
C#
vait/TimerInForm
/TimerInForm/Form1.cs
2.90625
3
using System; using System.Threading; using System.Windows.Forms; namespace TimerInForm { public partial class Form1 : Form { private readonly SafeTimerDecorator _timer; public Form1() { InitializeComponent(); _timer = new SafeTimerDecorator(ShowTime, null, Timeout.InfiniteTimeSpan, Timeout.InfiniteTim...
59484b32b9e0bfed1a2c2d68b3d0534ebe26ea46
C#
didimitrov/Algo
/SortingAlgorithmsDemo/CSharp2/StringsAndTextProcessing/21.CharOccurs/Program.cs
3.96875
4
/* * 21. Write a program that reads a string from the console and prints * all different letters in the string along with information how many * times each letter is found. */ using System; using System.Collections.Generic; using System.Linq; namespace _21.CharOccurs { class Program { static void Ma...
6be846799b80e37f36d12b4a6ecfb200c6114c88
C#
cristirss/TlgrmGenerator
/TelegramGenerator/Program.cs
3.359375
3
using Json.Net; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace TelegramGenerator { class Program { static void Main(string[] args) { List<T...
46c43ca997bcaf0f08c896c511ffed59601c02de
C#
zhuxb711/Vanara
/PInvoke/Gdi32/WinGdi.Brush.cs
2.53125
3
using System; using System.Runtime.InteropServices; namespace Vanara.PInvoke { public static partial class Gdi32 { /// <summary> /// <para>The <c>CreateBrushIndirect</c> function creates a logical brush that has the specified style, color, and pattern.</para> /// </summary> /// <param name="plbrush"> /// ...
be51771009c0b1eaafdaafa7f46300a95645df9b
C#
rangermattos/remnants
/Remnants/Models/Effects/Line.cs
2.8125
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Content; using System; namespace Remnants { class Line { public Vector2 A; public Vector2 B; public float Thickness; public Line() { } public Line(Vector2 a, Vector2 b,...
9edc397de05a7d8682c6cf2a265428a65811a9ac
C#
Tgsngl/ClassMetotDemo
/ClassMetotDemo/Program.cs
3.234375
3
using System; namespace ClassMetotDemo { class Program { static void Main(string[] args) { Musteri customer1 = new Musteri(); customer1.Name = "Ali"; customer1.Surname = "Veli"; customer1.Id = 2132; Musteri customer2 = new Musteri();...
1a381df8c0b3a1798c922de02c614488cc458947
C#
TrevorMare/Interviews
/Ozow/src/StringSorter/ArrayLibrarySorter.cs
3.234375
3
using System; using System.Linq; namespace StringSorter { public class ArrayLibrarySorter : Interfaces.ISortingAlgorithm { public string SortingName => "Array Library"; public string ApplySort(string input) { if (string.IsNullOrEmpty(input)) { ...
f4ce3e7598d10c4c3ddb9530a2f523f360b0a6cb
C#
andreharak/MyImdb
/MyImdbLibrary/MovieCountry.cs
2.640625
3
using System; using SQLite; namespace MyImdbLibrary { [Table("MovieCountry")] public class MovieCountry { [PrimaryKey, AutoIncrement, Column("Id")] public int Id { get; set; } [MaxLength(8)] public int Movie { get; set; } public int Country { get; set; } pu...
2a9069253faa891ea8b6cbaa99530b5bf4e4a6e7
C#
roysbailey/Selenium.Helpers
/TestFramework/POM/HomePage.cs
2.734375
3
using OpenQA.Selenium; using OpenQA.Selenium.Support.PageObjects; using System; using System.Threading; namespace WebSitePOM.POM { public class HomePage { static string reltativePath = "sut\\home.html"; private static string PageTitle = "Home Page"; [FindsBy(How = How.LinkText, Using =...
e005ad4d7ad5e78eb18010495d6fdbda01e9471c
C#
m1771vw/MyCodeFights
/CodeFights/TestCode/MatrixElementsSumClass.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CodeFights { public class MatrixElementsSumClass { public int matrixElementsSum(int [][] matrix) { var totalCount = 0; for (int y = 0; y < matri...
222134f88141c1defa69188ea6c3c5747b19e39a
C#
idotnet/MvcDemo
/MvcViewApp/Controllers/HomeController.cs
2.53125
3
using MvcViewApp.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace MvcViewApp.Controllers { public class HomeController : Controller { // GET: Home public ActionResult Index() { /* 弱类...
4149c0ccf353cb9daa15f800f204eb1daece44c9
C#
samkim91/Algorithm
/Algorithm/DivisibleSumPairs.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Algorithm { class DivisibleSumPairs { public int divisibleSumPairs(int n, int k, int [] ar) { int result = 0; for (int i = 0; i < n - 1; i++) { for (int j = 1; j < n - i; ...
aa0ba6ac3027165a91262d138a47930612c9b50c
C#
BartSiwek/GALibrary
/TestApp/MuPlusLambdaTester.cs
2.875
3
using System; using System.Collections.Generic; using System.Text; using GALibrary.Common; using GALibrary.Evolutionary; using GALibrary.Evolutionary.Chromsomes; using GALibrary.Evolutionary.Operations; using GALibrary.Evolutionary.MuPlusLambda; namespace TestApp { class MuPlusLambdaJudgeClass : IOneChromosomeJudg...
b6a38f5b494bfab47a31cb2481f66e2ddf94eb10
C#
Trevorton27/brendonBattleShipApp
/BattleShip/GameBoard.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; namespace BattleShip { class GameBoard { private List<Coordinate> AllCoordinates { get; set; } = new List<Coordinate>(); public int ShipHealth { get; set; } public void DrawGameBoard (bool isPeek = false) { ...
05eea4cdd05c0a942f8f45fc476dcc63a133807d
C#
vasudhapuri/OOPS
/SettingFieldsWhielCreatingObjects/Program.cs
3.453125
3
using System; namespace SettingFieldsWhielCreatingObjects { class Program { String model; int year; String color; static void Main(string[] args) { Program p = new Program(); p.model = "Merc"; p.year = 1988; p.co...
4c7e800d636b3397797d0fa7d23bba5c1d88e412
C#
outase/taws
/tawsLibrary/FileIo.cs
2.6875
3
using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using System.Text; using System.Web; using tawsCommons.mvc; namespace tawsLibrary { public class FileIo { //エビデンス用のディレクトリ作成 public string CreateEvidencesDirectory(ITestPropertyModelB...
46ffa4068bac3d8c5da0a1697f2dd7cf9f2bd666
C#
khats/Coffee
/Coffee.Shared/Extenders.cs
2.984375
3
namespace Coffee.Shared { using System; using System.IO; using System.Runtime.Serialization.Formatters.Binary; public static class Extenders { public static byte[] ToByteArray(this object a, bool failIfNull = true) { if (a == null) { if (fail...
98ab204cbd9679972c3d77b6153f9fb81b6fd41e
C#
legoli/Diancan
/GeneralCode/Base64Convertor.cs
2.953125
3
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace GeneralCode { public class Base64Convertor { public static String convertToBase64(byte[] buffer) { String strRet = ""; if (null == buffer) return ""; try ...
7a15904c1cf17164e30b896884f717c0a8aefce0
C#
JTOne123/Yozian.Extension
/src/Yozian.Extension.Test/ICollectionExtensionTest.cs
2.71875
3
using System.Collections.Generic; using NUnit.Framework; namespace Yozian.Extension.Test { public class ICollectionExtensionTest { [SetUp] public void Setup() { } [TestCase()] public void Test_AddWhen() { var collection = new List<int>() {...
8059ddfc8dc40fc6697b656f496c48a27e232ef7
C#
AntonFechin/zipper
/zipper/Program.cs
3.125
3
using System; namespace zipper { class Program { static void Main(string[] args) { try { StartProgram(args); } catch (Exception ex) { Console.WriteLine("There was an error \"{0}\"", ex.Message); ...
d657ad3a94f19452a930bda070969959efae376b
C#
CreateLab/vk
/VkNet/Enums/SafetyEnums/ScheduleWorkInfoStatus.cs
2.53125
3
using System; using VkNet.Utils; namespace VkNet.Enums.SafetyEnums { /// <summary> /// Тип расписания. /// </summary> [Serializable] public class ScheduleWorkInfoStatus : SafetyEnum<ScheduleWorkInfoStatus> { /// <summary> /// Нет информации о расписании /// </summary> [DefaultValue] public static reado...
d9bd69fcb94dd4535e4e11b907cc57b9dd164870
C#
CoserL/Remember
/RememberMyPass/Classes/PasswordDB.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RememberMyPass.Classes { class PasswordDB { private static DataBase getDataBase() { DataBase db = new DataBase(); if (db.DatabaseExists() == fal...
8a2d0f76364f0c5325ee9116c845393ad1a02f64
C#
shendongnian/download4
/code5/810051-19888315-51149479-2.cs
2.625
3
protected void Button1_Click1(object sender, EventArgs e) { // Session["Fruitname"] = TbxName.Text; // my session i have made MyFruit = Session["Fruitname"] as List<string>; //Create new, if null if (MyFruit == null) MyFruit = new L...
7d594b0be8eeebae9e00181b53174ab37ac63518
C#
shiiifuuuu/bitm_dot_net
/Day10/Assignment8/Assignment6/Repository/ItemRepository.cs
3.140625
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using Assignment6.MODEL; namespace Assignment6.REPOSITORY { public class ItemRepository { private SqlConnection sqlConnection; pu...
f86f1a1ca2d6940fd17a031eb81a05ccb56d3b25
C#
rcolzani/SmartSchoolWebAPI
/SmartSchool.API/Data/Repository.cs
2.875
3
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using SmartSchool.API.Helpers; using SmartSchool.API.Models; namespace SmartSchool.API.Data { public class Repository : IRepository { private readonly SmartContext _context; p...
c87deae504583e0ffa7f4e7303ef5ff56236fdc9
C#
tedlasai/UserCreation
/UserCreation/Data/UserDatabase.cs
3.359375
3
/*File: UserDatabase.cs *Description: Methods to interact with user database */ using System.Collections.Generic; using System.Threading.Tasks; using SQLite; using UserCreation.Models; namespace UserCreation.Data { public class UserDatabase { //database connenction readonly SQLiteAsyncConn...
facbf418ef9fb23b816ef55c8b2ddb3412648781
C#
VincentH-Net/XamarinCommunityToolkit
/XamarinCommunityToolkit/Views/SnackBar/Options/SnackBarActionOptions.shared.cs
2.59375
3
using System; using System.Threading.Tasks; using Xamarin.Forms; namespace Xamarin.CommunityToolkit.UI.Views.Options { public class SnackBarActionOptions { /// <summary> /// Gets or sets the action for the SnackBar action button. /// </summary> public Func<Task> Action { get; set; } = DefaultAction; publ...
02ed20df3ab9f02990bd22592d300ae90908177e
C#
cryptobuks/E-CommerceSystem
/Controllers/ProductsController.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using BusinessLogic; using Common; namespace Assignment.Controllers { public class ProductsController : Controller { // GET: Products [HttpGet] public ActionResult P...
8bca34d3f94efcfe84dd3aa2490024f2b58478b2
C#
ViktorGorchev/C-Sharp-Fundamentals
/C# Advanced/Homework/01 Arrays, Lists, Stacks, Queues/05 LongestIncreasingSequence/LongestIncreasingSequenceMain.cs
4.03125
4
namespace _05_LongestIncreasingSequence { using System; using System.Linq; public class LongestIncreasingSequenceMain { public static void Main() { int numberLongest = 0; int bestCount = 0; int longestCount = 0; int[] inputNumbers = Cons...
63e6e593783e3866321842afdafcb11d83f562e9
C#
NobuyukiInoue/LeetCode
/Problems/0500_0599/0551_Student_Attendance_Record1/Project_CS/Student_Attendance_Record1.cs
3.515625
4
using System; public class Solution { public bool CheckRecord(string s) { return !(s.IndexOf("A") != s.LastIndexOf("A") || s.Contains("LLL")); } public string output_str_array(string[] words) { if (words.Length <= 0) return ""; string results = words[0]...
d5126a91357ab92bf104f688b6f31d02f136d827
C#
kosmakoff/AdventOfCode2016
/Day08/CommandParser.cs
3.453125
3
using System; namespace Day08 { public class CommandParser { public ScreenCommand Parse(string command) { if (command.StartsWith("rect")) return ParseRectCommand(command); if (command.StartsWith("rotate row")) return ParseRotateRowComman...
33db2c04ae3ef57e8331e3b8b756a3fcc2600921
C#
ideadreamDefy/Defy
/SiRenNiuNiu/Assets/Scripts/Model/Player.cs
2.578125
3
using UnityEngine; using System.Collections; using System; using System.Collections.Generic; //玩家类 public class Player { //玩家手牌 public List<Poker> poker = new List<Poker>(); public List<int> pokerValue = new List<int>(); public List<GameObject> pokerGameObject = new List<GameObject>(); public void AddPoker(Poker p...
85a80ba4521bf7bb4ca9066f14ae2e8f5373e286
C#
josephvempala/GameServer
/Server/server/ServerHandle.cs
2.5625
3
using Shared; using System; namespace Server { internal static class ServerHandle { public static void WelcomeReceived(int client_id, Packet packet) { string username = packet.ReadString(); Console.WriteLine($"{client_id} says {username}"); Server.clients[cl...
24b5a3de692664f66d8b2b9528a858847fbe45b3
C#
THING-Lab/HapticVRWizard
/HapticVRWizard/Assets/Scripts/Tools/Tube/TubeDraw.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; public class TubeDraw : StrokeDraw { private int _numSegments = 10; // Should match min move distance public float _meshTailLength = 0.03f; private Vector3 _prevNormal; // Connects the most recently added vertex ...
230d36def6532bb4f8e6ec9fcc76f86120bc3830
C#
simonejsing/Prerelease
/CraftingGame/ProceduralObjectManager.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using CraftingGame.Physics; using Terrain; using VectorMath; using Object = CraftingGame.Physics.Object; using Contracts; namespace CraftingGame { internal class ProceduralObjectGrid : ICollidableObjectGrid { private readonly Grid grid...
19c54fb9c99f3ce778c808a9948a44078e7ed01b
C#
rougemeilland/palmtreemath
/Palmtree.Math/Implements/SubstractImplementOfUnsignedLongLongInteger.cs
2.859375
3
using System; using System.Diagnostics; namespace Palmtree.Math.Implements { internal class SubtractImplementOfUnsignedLongLongInteger : ImplementOfUnsignedLongLongIntegerBase { #region パブリックメソッド public ushort[] Subtract(ushort x, ushort y) { Debug.Assert(x > 0); ...
956c6881319f454519c33f867272510f3e78ae46
C#
SpinDOS/Algorithms
/AlgorithmTests/CpAlgorithmsTests/Algebra/ModularArithmetic/MontgomeryMultiplicationTests.cs
2.6875
3
using CpAlgorithms.Algebra.ModularArithmetic.MontgomeryMultiplication; using NUnit.Framework; namespace AlgorithmTests.CpAlgorithmsTests.Algebra.ModularArithmetic { public class MontgomeryMultiplicationTests { private const uint Modulo = 127; private MontgomerySpace _testSpace; ...
db3cbe83f00126108c51406f17801ae9929060b7
C#
491134648/Kugar.UI.Web
/Kugar.Core.Web.NetCore/MyRequest.NetCore.cs
2.65625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; using Kugar.Core.BaseStruct; using Kugar.Core.ExtMethod; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjec...
0b43eea3a2bf8138fe2745faa71b8cdab477889f
C#
sahernoureen/TaskManagmentSystem-C-Asp.net-
/Models/Helper/AdminHelper.cs
2.609375
3
using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System.Collections.Generic; using System.Data.Entity; using System.Globalization; using System.Linq; using TaskManagementSystem.Models.Helper; namespace TaskManagementSystem.Models { public static class AdminHelper { ...
b80e03c427c5894076c7f10d051d8311e91578a8
C#
lhaneda-tocho/Patmark-master
/iOS/Presenter/MyToast.cs
2.984375
3
using System; using GlobalToast; namespace TokyoChokoku.Patmark.iOS.Presenter { public static class MyToast { public const double Long = 3.5; public const double Short = 2.5; /// <summary> /// トーストを経由してユーザにメッセージを伝えます。 /// メッセージはローカライズされて表示されます。 /// </summary> ...
d0346c729b9e8853641274622d58f8bddd791029
C#
fabioGeorg/freebox-api
/FreeboxAPI/FSAPI/FSErrorsPlus.cs
2.765625
3
 namespace FreeboxAPI.FSAPI { /// <summary> /// FSErrorPlus /// </summary> public enum FSErrorsPlus { /// <summary> /// No error. /// </summary> none, /// <summary> /// Error reading archive. /// </summary> archive_read_...
d27c4dfa6e660006437417423c676806dcf7c41f
C#
EvdokiyaValova/Programming-Fundamentals-
/Fundamentals-Basic-Homeworks/Man O War4/Program.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; namespace Man_O_War3 { class Program { static void Main(string[] args) { List<int> piratesShip = Console.ReadLine().Split(">").Select(int.Parse).ToList(); List<int> warship = Console.ReadLine().Split(">"...