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
1f6c20512ffd289924235dc581e6c16eb371805a
C#
CodeFactoryLLC/CodeFactoryDocs
/src/CodeFactoryVisualStudio/CodeFactory.VisualStudio/ProjectSystemException.cs
2.609375
3
//***************************************************************************** //* Code Factory SDK //* Copyright (c) 2020 CodeFactory, LLC //***************************************************************************** using System; namespace CodeFactory.VisualStudio { /// <summary> /// Code factory excepti...
e41575aa32fecc1d3b4a7a8504e785dff2a4b493
C#
kangelov1/Old-Softuni-stuff
/OOP/AnimalFarm/Exercise 3/Program.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(); var input2 = Console.ReadLine().Split(); try { Student s...
68bcd225c09ec698790fd420d01d200bb236eda7
C#
Devin-X/tada
/Questions/461-HammingDistance.cs
4.125
4
using System; namespace questions { public class Hamming { // Question URL: https://leetcode.com/problems/hamming-distance/description/ //The Hamming distance between two integers is the number of //positions at which the corresponding bits are different. //Given two integers x...
438c05d933fb864755e0bdd3f7459b74b9aeb585
C#
jasarsoft/launcher-samp
/TestConsole/Program.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; namespace TestConsole { class Program { static void Main(string[] args) { Query.Query sQuery = new Query.Query("127.0.0.1", 7777); sQuery.S...
1beb67bfa43b7129da6e9f47fd11bbac7cc28606
C#
jebawdej/HouseHoldMoney
/HouseHoldMoney.Model/HouseHoldContext.cs
2.6875
3
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HouseHoldMoney.Model { public enum ThermOfPayment { MONTHLY, _2_MONTHLY, QUARTERLY, SEMI_ANNUALLY, ANNUALLY, CUSTOM } public class HouseHoldMoney ...
ef24a16b58ed2bec750ac52f3a550d2485951431
C#
Vincenvon/AdoAndEF
/Domain/Concrete/MyUserRepository.cs
2.828125
3
using System.Linq; using Domain.Abstract; using Domain.Entities; namespace Domain.Concrete { public class MyUserRepository:IPersonRepository { private string str; private DataBase db; public MyUserRepository() { str = @"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=Te...
20f07fb72bb8e2b2be0dfe2424580378188b7c95
C#
provencesl/LiteGF
/Assets/Scripts/Frame/FSM/StateManager.cs
2.828125
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public class StateManager : BaseManager<StateManager> { private List<States> states = new List<States>(); private StateID currentStateID; public StateID CurrentStateID { get { return currentStateID; } } private States curren...
db66ca90d08317293d6c7ddc3660276f6ea8f66c
C#
salva-olacua/TP_Criptografia
/WindowsFormsApp1/Objects/Encryptor.cs
2.6875
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindowsFormsApp1.Objects { public class Encryptor { private BitArray XORByElements(BitArray bitArrayGuide, BitArray bitArrayToOperate) => bitArrayGuid...
10af38831d82aee8487834399c13bafe49c6ee3a
C#
40448091/eSecurity
/assignment/blockchain/BlockChainServerNode/BlockChain.Console/Program.cs
2.609375
3
using System.IO; using System; using System.Linq; using System.Collections.Generic; using System.Threading; /******************************************************************** * BlockChain Server Console * Author: Paul Haines (March 2020) * Provides a basic command line console interface to the BlockChain * ...
c592e5c0d1ffb3bbbb4211755c971ecd696ec722
C#
eodus413/Train
/ProjectTrain/Assets/SourceCodes/InGame/Entity/Behavior/MoveBehavior.cs
3
3
using UnityEngine; namespace Entity { //이동 인터페이스 public interface IMoveBehavior { bool isMoving { get; } float speed { get; } Vector2 direction { get; } Transform transform { get; } void Move(Vector2 direction); } //기본 이동 public class DefaultMove : I...
f9abbc733da39cc78d0e4c6c22c1b9fef90dc11f
C#
chatton/JustFollowingOrders
/Assets/Scripts/Commands/AttackCommand.cs
2.53125
3
using System; using Core; using UnityEngine; using World; namespace Commands { public class AttackCommand : ICommand { private static readonly int Attack = Animator.StringToHash("Attacking"); private Animator _animator; private Health _health; private Attacker _attacker; ...
fda2fb97b46b2fd3ba992168a902170f88732c8d
C#
poojithahebbar123/netadvance
/Vamsi/Day 2 Assignment/TrainingSolution/TrainingUI/Program.cs
3.375
3
using System; using System.Collections.Generic; using TrainingModel; namespace TrainingUI { class Program { static void Main(string[] args) { // Add the initial set of trainings List<Training> pythonTrainings = new List<Training>() { new Trai...
77d95c203f9bc7ccb55744b605f8c14082c56635
C#
ICC3101-201810/movies-cbsanchez
/LaboratorioFinal/LaboratorioFinal/Productor.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LaboratorioFinal { [Serializable] class Productor: Persona { List<Pelicula> peliculasProductor = new List<Pelicula>(); public Productor(string minombre, string mia...
0067f4a279cfccfecf4718035ba8bbc6e700f362
C#
ZanoniCintia/Laboratorio_2_2020
/labo prog 2/ComiqueriaApp/ComiqueriaLogic/Comun/ComiqueriaException.cs
2.75
3
using ComiqueriaLogic.Persistencia_de_Datos; using System; using System.Text; namespace ComiqueriaLogic { class ComiqueriaException : Exception, IArchivoTexto { public ComiqueriaException(string message, Exception innerException) : base(message, innerException) { ArchivoTexto.Escri...
e2838dfbc19c122e70fa84ca073b8a04123b4aaf
C#
KeyboardWarrior-dev/ExileApi
/Core/DebugWindow.cs
2.515625
3
using System; using System.Collections.Generic; using ExileCore.Shared; using ExileCore.Shared.Helpers; using ImGuiNET; using SharpDX; using Vector2 = System.Numerics.Vector2; using Vector4 = System.Numerics.Vector4; namespace ExileCore { public class DebugWindow { private static readonly object locke...
b03f4bd6446c1091a414bf42c94030acb120979f
C#
LinkaiShao/HomeWork
/BinarySearch/BinarySearchUnitTest/UnitTest1.cs
3.15625
3
//----------------------------------------------------------------------- // <copyright file="UnitTest1.cs" company="CompanyName"> // Company copyright tag. // </copyright> //----------------------------------------------------------------------- namespace UnitTestProject1 { using System; using BinaryThing...
69140640912a743f857aff48e0f236c39e41101e
C#
dmeshkov-gh/GeekBrains_CSharp-2_AsteroidGame
/AsteroidGame/VisualObjects/Bullet.cs
2.859375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AsteroidGame.VisualObjects { class Bullet : CollisionObject { private const int __BulletSizeX = 25; private const int __BulletSizeY = 10; ...
26fcc3904ad962ab9b0bda738b777ea9b229e059
C#
GITHUB243884919/unity_study2019
/Assets/Scripts/UFrame/FSM2/FSM.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace UFrame.FSM { public abstract class FSMState { public string stateName; public string preStateName; public FSMMachine fsmCtr; Dictionary<string, System.Func<bool>> convertConds = new Dicti...
dafd5b1a5178e9c6d18e11f1d4484bebf5e437f1
C#
sumantabag19/evaeims
/AuthorizationServer.Api/Controllers/ValuesController.cs
2.59375
3
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Diagnostics.HealthChecks; using System.Threading.Tasks; using System.Linq; namespace AuthorizationServer.Api.Controllers { [Route("api/[controller]/[action]")] [IgnoreAntiforgeryToken] [AllowAnonymous] ...
dea04846bcd444de5b08904eebf19102100243aa
C#
JEBernard/Bank_Account
/Bank_Account/Account.cs
2.71875
3
using System; using System.Data.SqlClient; using System.IO; using System.Linq; using System.Windows.Forms; namespace Bank_Account { partial class frmAccount : Form { private string username = frmLogin.Username; private static double checkingamount; private static double savingsamount;...
fa27cc55178e36c3989e015c15459e52b25139de
C#
Will-Clinic/WA-Will-Clinic
/WillClinicTestBattery/ModelLawyer.cs
3
3
using System; using WillClinic.Models; using Xunit; namespace WillClinicTestBattery { public class ModelLawyer { public ApplicationUser user { get; set; } public ModelLawyer() { user = new ApplicationUser() { Id = "00000000-0000-0000-0000-0000000...
6f7fdc7b7883d1cdd07875d9670c0003669f3957
C#
svenschmidt75/Rust
/DSandAlg/CodingProblems/CrackingTheCodingInterview/Problem_2_5/Problem_2_5/Class1.cs
3.453125
3
using System; using NUnit.Framework; namespace Problem2_5 { public class Node { public int Value { get; set; } public Node Next { get; set; } } public class LinkedList { public Node Head { get; set; } public static LinkedList SumList(LinkedList list1, LinkedList l...
0cbad18c600240069d1b40249b7e98d4bb606df0
C#
shendongnian/download4
/latest_version_download2/108602-22299507-59993010-4.cs
2.609375
3
public class SomeModel { [DataType(DataType.EmailAddress)] [Display(Name="Some string for LabelFor", Prompt = "Placeholder in input"] public string SomeEmail { get; set; } }
c1108f63d3b73bcab236f36ef9300d4a9537bd5c
C#
sd797994/Oxygen-EshopSample
/Services/BaseLib/ApplicationBase/Infrastructure/Common/Event/IEventBus.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ApplicationBase { /// <summary> /// 事件总线 /// </summary> public interface IEventBus { /// <summary> /// 发布事件 /// </summary> /// <typepar...
8d4fbc9cfa9b7d689c883b0f90570b88ff8a1c6f
C#
HardTooKill/Payment
/Payment/DataContext.cs
2.53125
3
using System.Collections.Generic; namespace Payment { /// <summary> /// This class is used to store temporary data if needed /// </summary> public class DataContext { public List<Salary> SalaryList { get; set; } public List<PaymentSlip> PaymentSlipList { get; set; } public...
3b22c2bd48ac7496afe27e776e541757a426b083
C#
OskariV/DeepSpaceGame
/Radar.cs
2.625
3
using UnityEngine; using System.Collections; public class Radar : MonoBehaviour { void Start () { } private bool enemyInRange = false; /// <summary> /// Checks if enemy is in range. /// </summary> /// <param name="other">Other.</param> void OnTriggerEnter2D (Collider2D other) { if (!oth...
008870cc98360a370027f5c56736dab6eac860c1
C#
shendongnian/download4
/code2/347421-7429995-16401491-2.cs
2.578125
3
public void patientUpdate() { hospitalSQLEntities db = new hospitalSQLEntities(); string formpatientid = Request.Params["patientid"]; patient mypatient = null; try { mypatient = db.patients.Single(u => u.patie...
b128a965dc40c1444e9c283dd12e34aa0d508b32
C#
ayzatgv/VS_MeatGrinderAPI
/MeatGrinderAPI/DataAccess/SiteService.cs
2.734375
3
using MeatGrinderAPI.Helpers; using MeatGrinderAPI.Models; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; namespace MeatGrinderAPI.DataAccess { public class SiteService : MyDataAccess { // public static List<Site> Sites_Select(int id = 0) ...
527095af81156a89292af928cb88eaa50087e97c
C#
mrstebo/FakerDotNet
/tests/FakerDotNet.Tests/Fakers/CoffeeFakerTests.cs
2.734375
3
using FakeItEasy; using FakerDotNet.Data; using FakerDotNet.Fakers; using NUnit.Framework; namespace FakerDotNet.Tests.Fakers { [TestFixture] [Parallelizable] public class CoffeeFakerTests { [SetUp] public void SetUp() { _fakerContainer = A.Fake<IFakerContainer>(); ...
b6e7b368f9af309ef85a75f393f92c53a3d3e5c3
C#
shendongnian/download4
/first_version_download2/125091-8852693-19987153-6.cs
2.734375
3
using (FileStream fs = new FileStream(workingFile, FileMode.Create, FileAccess.Write, FileShare.None)) { using (Document doc = new Document(PageSize.LETTER)) { using (PdfWriter writer = PdfWriter.GetInstance(doc, fs)) { doc.Open(); ...
cc4839025fdef811879ed0442322e0b248cf518f
C#
akhil-007/Final-Hackathon
/Client/Hackathon-master/Client1/DeleteForm.aspx.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Client1 { public partial class DeleteForm : System.Web.UI.Page { Vehicle obj = new Vehicle(); protected void Page_Load(object s...
3e63e4e52b07bc1cfdf11883bbe7ca3ff11e7069
C#
JohnMcLane4/SpaceCombatKitTryOut
/Assets/SpaceCombatKit/Systems/AddOns/AISystem/Scripts/PIDControllers/PIDController3D.cs
2.953125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace VSX.UniversalVehicleCombat { /// <summary> /// A 3-dimensional (X-Y-Z) PID Controller. /// </summary> [System.Serializable] public class PIDController3D { [Tooltip("The PID controller for the X axi...
44fc32d911a93e5dd9e5ce2ff40c8f7b20b6babc
C#
tyagiamit08/BusinessHouseGame
/src/BusinessHouseGame.BL/Services/GameService.cs
2.828125
3
using System.Collections.Generic; using System.Linq; using BusinessHouseGame.BL.Enums; using BusinessHouseGame.BL.Interfaces; using BusinessHouseGame.BL.Models; using AppConstants = BusinessHouseGame.BL.Constants.Constants; namespace BusinessHouseGame.BL.Services { public class GameService : IGameService { privat...
18dd2be46c3d60eb6b56dbb37bf37c5137bd4398
C#
Nachitous/GPM
/SpatialCubesTest/SpatialCubesIntersectionTest.cs
2.609375
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using SpatialCubesBusiness; using SpatialCubesDomain; namespace SpatialCubesTest { [TestClass] public class SpatialCubesIntersectionTest { [TestMethod] public void TwoCubesInDiffentQuadrantAndPlaneTest() { P...
4c4bcf10f0ede4bafa535e24ec6030f4f02add2f
C#
ahweb/InterviewSource
/ObserverProject/Program.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ObserverProject { /// <summary> /// 观察者模式 /// </summary> class Program { static void Main(string[] args) { WeatherSignBoard signBoard = new WeatherSignBoard() { Temperature =...
12370c465bd4da99066a8392877599ab1e1eab0d
C#
Sora0Siro/Audit-master
/AuditWFA/Auditory.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AuditWFA { class Auditory { //fields private int number; private bool projector;//projector availability //Constructors public Auditory() ...
11abe730162f74c0c7c5bacdbeb86055fe428c99
C#
alaminut/design-patterns-course
/LiskovSubstitution/Program.cs
4.09375
4
using System; using static System.Console; namespace LiskovSubstitution { class Program { static int Area(Rectangle r) => r.Width * r.Height; static void Main(string[] args) { // According to the Liskov Substitution principle // an inherited class shall...
8c7823f81c905101bc91afbc8b94b58794171da5
C#
VisualPi/LOQUET_TIXIER_WATHTHUHEWA_Projet_Annuel
/ProjetAnnuel/ProjetAnnuel_Unity/Assets/MiniGame Utils/MiniGames Scripts/PatternRaceGame.cs
2.578125
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public class PatternRaceGame { public float _score; public float _percentInsideTurn; public float _percentInsideStraightLine; public float _averageAngleInside; public float _averageAngleOutside; public...
72cbe6670cb0bcc5f3eba34124cf6b4dda899d3d
C#
salma10/Problem-Solutions
/1342-number-of-steps-to-reduce-a-number-to-zero/1342-number-of-steps-to-reduce-a-number-to-zero.cs
3.1875
3
public class Solution { public int NumberOfSteps(int num) { int count = 0; while(num > 0) { if(num % 2 == 1) num--; else num /= 2; count++; } return count; } }
4e91210464452faf4aba378000c9868474d6db17
C#
winnitron/WinnitronLauncher
/Assets/Scripts/System/Classes/Playlist.cs
2.859375
3
using UnityEngine; using System.IO; using System.Collections.Generic; using System.Globalization; using SimpleJSON; [System.Serializable] public class Playlist { public string name; public string description; public DirectoryInfo directory; public List<Game> games; public int selectedIndex = 0; ...
2360c42f0a04771ff3e2b3122467375598c49f28
C#
synesissoftware/CLASP.NET
/test/unit/Test.Unit.Exceptions/InvalidValueException_tester.cs
2.59375
3
 namespace Test.Unit.Exceptions { using global::Clasp; using IArgument = global::Clasp.Interfaces.IArgument; using InvalidValueException = global::Clasp.Exceptions.InvalidValueException; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; [TestClass] public class InvalidVal...
6de19562b61aa4f24e6b39e10bd610f9ea256a77
C#
EmmaForsberg/PersonRegistry
/Form1/Klasser/Female.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Form1.Klasser { public class Female : Person { public Female(string newprefix, string firstName, string lastName) : base(newprefix, firstName, lastName) { } ...
01564c132bff052da9944e72a7db638992488a9d
C#
wightzhang/SalaryPayment
/SalaryPaymentUI/TransactionContainer.cs
2.734375
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using SalaryPayment; namespace SalaryPaymentUI { public class TransactionContainer { public delegate void AddAction(); private readonly IList<Transaction> transactions = new List<Tra...
05102e7f8f18d53b8576e80c3fc43b71d7b26117
C#
StefanWentink/SoftWareEssentials
/SWE.Monad/Interfaces/IMonad.cs
2.625
3
namespace SWE.Monad.Interfaces { public interface IMonad<T> { T Value { get; } /// <summary> /// Gets <see cref="Value"/>. /// </summary> /// <param name="defaultValue"></param> /// <returns></returns> T GetValue(); /// <summary> /// Get...
cc2e6693c5fed80cc922c083921b5b7536b3de9c
C#
kosmosfourthreefour/pro-csharp-7
/chapter_5/Properties/Properties/Car.cs
3.3125
3
using System; namespace Properties { class Car { // automatic properties!! public string PetName { get; set; } public int Speed { get; set; } public string Color { get; set; } // type 'prop' and tab to auto- // create an automatic property //public boo...
666e095441c14386dec146f975ab82efc32333f9
C#
Dayn9/PsychStudies
/PsychStudies/PsychStudies/ContentManager.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; namespace PsychStudies { class ContentManager { TextBox descBox; //reference to the description box for writing ListBox studiesList; ...
1c6d8a478a9bf79ce5daa5d1884b4ce0e8dbb0c9
C#
brunosferreira/tvassinatura
/TVAssinatura.Dados/Repositorios/PlanoRepositorio.cs
2.53125
3
using System.Linq; using TVAssinatura.Dados.Contextos; using TVAssinatura.Dominio.Planos; namespace TVAssinatura.Dados.Repositorios { public class PlanoRepositorio : RepositorioBase<Plano>, IPlanoRepositorio { public PlanoRepositorio(ApplicationDbContext context) : base(context) { } ...
bdef358cd3aab67bd4aef7fd36f699e8cadb60f0
C#
Mostafa-Mamdouh/FreelanceTemplate
/Infrastructure/Data/GenericRepository.cs
2.546875
3
 using Infrastructure.Interfaces; using Infrastructure.Specifications; using Infrastructure.Entities; using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.SqlClient; using System.Linq; using System.Threading.Tasks; namespace Infrastructure.Data { public class GenericReposito...
1256f60c3bcc27db71ecc386c046604c3b0d8bfd
C#
JonVolbrecht/CustomListLutetium_Project
/CustomListLutetiumTests/SubtractOperatorTestMethods.cs
3.03125
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using CustomListLutetium; namespace CustomListLutetiumTests { [TestClass] class SubtractOperatorTestMethods { [TestMethod] public void SubtractOperator_VerifyListsCombineAtIndexZero() { //Arrange ...
f1c160ebeae75520f2621a11902e496ca3df3bcd
C#
lixindou/DesignPattern
/AbstractFactory/Factories/BMOBankAccountFactory.cs
2.515625
3
using AbstractFactory.BankAccount; using AbstractFactory.Interfaces; namespace AbstractFactory.Factories { public class BMOBankAccountFactory : IBankAccountFactory { public ISavingAccount CreateSavingAccount(string accountNumber) { return new BMOSavingAccount() {BankCode = BankCode...
909e18582bebc589e3bb05649c92959287c51b23
C#
loadprofilegenerator/DistributedSimulator
/CommonDistSimFrame/Client/CalcExecutor.cs
2.53125
3
using System.Diagnostics; using System.Globalization; using System.IO; using System.Threading; using Automation; using CommonDistSimFrame.Common; using JetBrains.Annotations; namespace CommonDistSimFrame.Client { public class CalcExecutor { [NotNull] private readonly DistLogger _logger; [NotNull] ...
5e030a3e4d84a432ffd2a9ff5450900c97cd0edb
C#
wjkhappy14/aspnetwebstack
/src/System.Web.Http.SelfHost/Singletons/MySingleton.cs
3.125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; namespace System.Web.Http.SelfHost.Singletons { /// <summary> /// double checked locking 双检锁 /// this is java(double checked locking) maybe help you http://www.infoq.com/cn/articles/dou...
036877e0cb123fc9cf693f57c7642b6c2026c104
C#
Sahar-Alwakily/ballfurious
/ballfurious/playermove.cs
2.671875
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 ballfurious { abstract class playermove { public static void playerup(PictureBox player) { ...
a1ec08d75739f75a70a5285a2f1916e8ce5a6ae4
C#
Emil33/CryptoInformer-Website
/CryptoInformer/CryptoInformer/Forms/Registration.aspx.cs
2.609375
3
using System; using System.Data.SqlClient; using System.Drawing; public partial class Registration : System.Web.UI.Page { SqlConnection conn; SqlCommand cmd; SqlDataReader reader; String queryStr; public bool registerSuccess = false; protected void Page_Load(object sender, EventArgs e) {...
f0e308b49189b61c399fc751795779c57f85b8dc
C#
Kawser-nerd/CLCDSA
/Source Codes/AtCoder/arc087/A/2710664.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Competitive { internal class Solution { public int N; public int[] A; public void Run() { { N = Input.ReadInt(); A = Input....
6451d91de23a0a55f1d678fa26780d258a01eb29
C#
IndigoA/Supay-Bot
/Commands/GrandExchange/CoinShare.cs
2.875
3
using System; using System.Threading.Tasks; namespace Supay.Bot { internal static partial class Command { public static async Task CoinShare(CommandContext bc) { if (bc.MessageTokens.Length < 3) { await bc.SendReply("Syntax: !CoinShare <player...
8e62b7bbd865a2161333c59178098f9d9fe19293
C#
zdgeorgiev/TelerikAcademyProjects
/C#/C# II/07. Text Files/11. DeletePrefix/DeletePrefix.cs
3.859375
4
using System; using System.IO; using System.Text; class DeletePrefix { public const string PrefixValue = "test"; static void Main(string[] args) { StreamReader reader = new StreamReader("../../input.txt"); using (StreamWriter writer = new StreamWriter("../../output.txt")) { ...
efb1eed932bbbb4f43e3983a5cadba6c34c288a8
C#
Leo-Rain/FlowSharp
/FlowSharp/Framework/Renderer/Data/ColorMapping.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SlimDX.Direct3D11; using SlimDX.DXGI; using Device = SlimDX.Direct3D11.Device; using System.IO; using SlimDX; namespace FlowSharp { class ColorMapping { /// <summary> /// T...
2ece4cd10090c08bf8e611e78735f2536e06f27a
C#
objectyan/MyTools
/OY.Solution/OY.TopSdk/Schema/Options/Option.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; using System.Xml; using Top.Schema.Depend; using Top.Schema.Enums; using Top.Schema.Exceptions; using Top.Schema.Util; namespace Top.Schema.Options { public class Option { protected string displayName; protected string value; ...
509d9e1abc991317a9616452dd5d97e4aeb286bc
C#
Azcryte/Untrusted
/Untrusted/Untrusted/Untrusted/TextInterface.cs
2.84375
3
using System; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; namespace Untrusted { public class TextInterface { SpriteFont spriteFont; Texture2D texture; Rectangle rectangle; Vector2 position; ...
cb83e853863a2daf70083e5ca8c408e1df8ccc29
C#
TallManCycles/MyFitness
/MyFitness/MyFitness/Pages/Activities.xaml.cs
2.6875
3
using MyFitness.Data; using MyFitness.Helpers; using MyFitness.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace MyFitness.Pages { public partial class Activities : ContentPage { private Sql _sql; ...
714f164c8fbc31544e522dd140b1d031a12c0ada
C#
shendongnian/download4
/first_version_download2/500440-45797448-154423823-6.cs
2.765625
3
public MainWindow() { InitializeComponent(); grid1.DataContext = vm = new MyViewModel() { DataItems = { new ItemVM(), }, ComboItems = { "A", "AAAAAAAAAAAAAAAAAAAAAAA" }...
437fb669806faf194b9fa5c7430425d51eb3c900
C#
mock-angel/EndLessRunner-1
/EndLessRunner/Assets/Scripts/Weight.cs
3.125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Weight { private List<int> weightList; //Run time usage. private int tempweight = 0; private int totalWeight = 0; private int selectedWeight = 0; public Weight(){ weightList = new List...
8e8b50bf8c9ea92cd00cf09889cd3eac17d538e2
C#
5yph/Zen-Maker-Lab
/Assets/Template Scripts/PlayerMovement3 Template.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; // THIS IS THE TEMPLATE FOR THE THIRD VERSION OF THE PLAYER MOVEMENT SCRIPT // Do not attempt unless you have already completed the previous templates public class PlayerMovement3Template : MonoBehaviour { private Rigidbody2D rb; pr...
3c3ded974bda71931b516fff19e003568ff2bae9
C#
KlassenAI/HSE_LAB_12
/HSE_LAB_12/Birds.cs
3.78125
4
using System; namespace HSE_LAB_12 { public class Birds : Animals { int beakSize; public int BeakSize { get { return beakSize; } set { if (value <= 50 && value >= 1) beakSize = value; else beakSize = 1; } ...
b560f33d4bdc586e162c9373c7dae25865d3555f
C#
TomaMajic/SudisIm
/SudisIm.Tests/Models/NotificationTests.cs
2.671875
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using SudisIm.Model.Models; namespace SudisIm.Tests.Models { [TestClass] public class NotificiationTests { private Game game; private Referee referee; [TestInitialize] public void TestInit() { ...
eaa7b00f787dc1158dc5fa0f392f87d12b48c269
C#
John30008225/Algorithm-Array
/ConsoleApp1/ConsoleApp1/Program.cs
2.59375
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) { int[] eg1 = new int[100000]; Random randNum = new Random(); for (in...
bf4a4773d1bc46c10be1cf34a127d3e0dd494130
C#
Antr0py/Yolol
/Yolol/Grammar/AST/Expressions/BaseExpression.cs
2.640625
3
using System; using Yolol.Execution; using Yolol.Grammar.AST.Expressions.Binary; namespace Yolol.Grammar.AST.Expressions { public abstract class BaseExpression { public abstract Value Evaluate(MachineState state); public static BaseExpression MakeBinary(YololBinaryOp operand, BaseExpression l...
978e2018528f0090cbe83850f1ba32f7136d51e6
C#
Scarabol/ColonyCommandsMod
/src/GiveAllCommand.cs
2.515625
3
using System; using System.Text.RegularExpressions; using Pipliz.Chatting; using ChatCommands; using Permissions; namespace ScarabolMods { [ModLoader.ModManager] public class GiveAllChatCommand : IChatCommand { [ModLoader.ModCallback (ModLoader.EModCallbackType.AfterItemTypesDefined, "scarabol.commands..reg...
550b4f9c52585e684f1b6ac8f7cf9529d6ee3d81
C#
achoraev/CSharpProgramming
/C#Part2/C#Part2Homeworks/07.ExceptionHandling/01.CalculateAndPrintSqrt/CalculateAndPrintSqrt.cs
4.375
4
using System; //Write a program that reads an integer number and calculates and prints its square root. //If the number is invalid or negative, print "Invalid number". In all cases finally print "Good bye". Use try-catch-finally. class CalculateAndPrintSqrt { static void Main() { Console.WriteLine("E...
33596dc933ed278e496acffd6a484650c0267705
C#
tomytjandra/college-coursework
/AHPApp/AHPApp/Controller/ResultController.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SQLite; namespace AHPApp { class ResultController { static MainController mainController = new MainController(); AlternativeListController alternativeListContro...
37cad19e666bc4dd54c0b3f2b0ec75b502b06d57
C#
nongsang/CPPPP_Upgrade
/019.Static_Guide.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using static System.Console; // WriteLine()이라고 줄여서 쓰고싶어 using System.IO; // TextWriter와 File을 사용하기 위해서 사용 class CWC // 정적 클래스는 가급적 쓰지 말자 { private TextWriter writer; // 내부에서만 쓰고, 인수를 적게 쓰기 위해 private 정의...
3b113e8f3aa22b10e16202edb30990c912ca6ade
C#
ccasalicchio/Algorithm-Studies
/Algorithms/Closest Points.cs
3.484375
3
//using System; //using System.Collections.Generic; //using System.IO; //using System.Linq; //using System.Text; //namespace Algorithms //{ // /// <summary> // /// page 108 // /// </summary> // public class Closest_Points // { // public static void Main() // { // new Closest_Po...
4e0cd86d053b9777020ea25e2916fa704c07505a
C#
pltknttn/CS-3
/WpfMailSenderLibrary/EmailSendService.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Mail; using System.Text; using System.Threading.Tasks; namespace WpfMailSenderLibrary { public class EmailSendService { public RunSendException SendException; public bool SendMessage(string l...
7e97ae2b02d776cf206d48cc9b82b3a37027e892
C#
usausa/Work-Net-Benchmark
/Old/NumericBenchmark/NumericBenchmark/Program.cs
2.625
3
namespace NumericBenchmark { using System.Numerics; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Diagnosers; using BenchmarkDotNet.Exporters; using BenchmarkDotNet.Jobs; using BenchmarkDotNet.Running; public static class Program { ...
62058aa22128243d8822cb16cdbd7f942cfca0b9
C#
Tastyfish/RAE
/RAE/Domain RT/Engine/Game.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.IO; using System.ComponentModel; using RAE.Game.IO; namespace RAE.Game { public abstract class RAEGame { public delegate void GlobalVerb(Verbable target, string[] line, string[] fullLine); ...
031d964b5ab2e57d405af67606049f1ee87352cf
C#
LucasRosinelli/TrainingWebStore
/TrainingWebStore.SharedKernel/Validation/AssertionConcern.cs
2.6875
3
using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using TrainingWebStore.SharedKernel; using TrainingWebStore.SharedKernel.Events; namespace TrainingWebStore.SharedKernel.Validation { public static class AssertionConcern { public static bool IsSatisfiedBy(param...
7cdac7091867e89e5cf39c6fa58a3882127b0d7f
C#
Asapin/cntk-dnn-builder
/NeuralNetwork/Layers/ResidualLayer.cs
2.515625
3
using CNTK; namespace NeuralNetwork.Layers { public class ResidualLayer : AbstractLayer { private readonly Activation.Apply _activation; public ResidualLayer(Activation.Apply activation) { _activation = activation; } public override Function Layer(ref Func...
63a558c5401cca12437f7c43789768ab7a2a1ae3
C#
alwalker/TTU
/CSC4950/PLCSimulator/ConsoleTest/Program.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PLCSimulator; namespace ConsoleTest { class Program { static void Main(string[] args) { bool testVal1, testVal2; PLC plc = new PLC("PLC.txt"); ...
a7bc212a952a58052dab5b51cca1020f5f736659
C#
sudarsanyes/parrot
/src/Parrot.Server/Controllers/PictionaryController.cs
2.8125
3
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Parrot.Server.Models; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Threading.Tasks; namespace Parrot.Server.Controllers { [ApiControl...
0d7815145709c4e42727bd2a775a11001c6bd0bc
C#
AlexDateDev/Factory-CSharp
/System/Sleep.cs
2.578125
3
using System.Diagnostics; namespace Help.Systems { public partial class HelperString { /// <summary> /// Realiza una pausa de N milisegundos /// </summary> /// <param name="MilliSeconds"></param> public static void Sleep( int MilliSeconds ) { System.Threading.Thread.Sleep( MilliSeconds ); } } }
c1677a7e2adace34a02f98de508e9dfd6b4b2a9a
C#
p-marques/WolfSheepLP1
/WolfSheepGame/Direction.cs
2.828125
3
using System; using System.Collections.Generic; using System.Text; namespace WolfSheepGameLP1 { /// <summary> /// Enum that defines all available input directions. /// </summary> public enum Direction { /// <summary> /// No direction. /// </summary> None, /...
cefee7a4f97e493ea03fdecacea2bf6a31eb1de2
C#
FCha-lab/SAproject
/프로그래밍/Assets/Script/Object_Position.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; // 드래그를 통해서 ObjectDrag가 활성화 되었을 때 스크립트가 호출되어 사용됨 public class Object_Position : MonoBehaviour { Character_State[] cs = new Character_State[4]; [SerializeField] Transform[] Center = null; // 패널 4개의 중앙 좌표를 받음 [SerializeField] Re...
c36c1e99456704e6301947d38cddc4e300762da8
C#
Juveniel/TelerikAcademy
/CSharp/08. Data Structures and Algorithms/02. LinearDSWorkshop/03. Pattern/Pattern.cs
3.875
4
using System; using System.Text; namespace _03.Pattern { public class Pattern { private static string figure = "urd"; private static void Main() { var input = int.Parse(Console.ReadLine()); PrintFigure(input - 1); } public static void PrintFigu...
69a5e227b88e6cb3526ea5334f423f3510d78de3
C#
antiorum/.net_module_task
/ScrumPokerWeb/Services/DeckService.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using DataService; using DataService.Models; using Microsoft.AspNetCore.SignalR; using ScrumPokerWeb.DTO; using ScrumPokerWeb.SignalR; namespace ScrumPokerWeb.Services { /// <summary> /// Сервис колод. /// </summary...
c2bb8f5d449019df37237e86733a3ac0659fcc47
C#
Agies/MVVMCross.Plugins.Validation
/MvvmCross.Plugin.Validation/MvvmCross.Plugin.Validation/Validators/StringLengthValidation.cs
2.984375
3
using System; namespace MvvmCross.Plugin.Validation { public class StringLengthValidation : IValidation { private readonly Func<string, bool> _predicate; private string _message; private int _maximumLength; private int _minimumLength; public StringLengthValidation(Func...
916c25fe726dcd9ccd4373bccdf3fd8f00b6fb15
C#
piotrekp9/Application
/ManagementApp.Web/Services/OrderService.cs
2.921875
3
using ManagementApp.Web.Data; using ManagementApp.Web.Data.Models; using ManagementApp.Web.Services.Interfaces; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; namespace ManagementApp.Web.Services { public class OrderService : IOrderService { pri...
fd9be1068212fa43575ac66c97bb945aa16a0543
C#
cuongngo90/Rx.Net
/MasteringReactiveExtensions/Section3/ConvertToObservable.cs
3.03125
3
using System; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Reactive.Subjects; using System.Threading; using Rx.Net.MasteringReactiveExtensions.Section2; namespace Rx.Net.MasteringReactiveExtensions.Section3 { public class Market { private float _price; public floa...
aeeb14a625f11807a8c838830897878552f77a79
C#
somenkovnikita/Patterns
/Lec6_Adapter/Lesson/06_AdapterSample/AdapterSample/HomeCats/YardCat.cs
3.25
3
using System; namespace AdapterSample.HomeCats { class YardCat : IHomeCat { public string Name { get; set; } public void Meow() { Console.WriteLine("Мяу мяу!"); } public void Scratch() { Console.WriteLine("Я царапаюсь, но не сильно"); ...
721a373fe6d6c67d9ca9335ef2643c47d3352e14
C#
StringSuzana/Patterns_Adapter
/Adapter/Program.cs
3.84375
4
using System; namespace Adapter { class Program { static void Main(string[] args) { Laptop laptop = new Laptop("Legion 5"); StandardEuSocket euTypeSocket = new StandardEuSocket(); Charger.Charge(laptop, euTypeSocket); /** * I added ...
63042de373e5bcaa049ca6ebb7bc6e1d2c80494f
C#
julsam/VineScript
/VineScript/Compiler/Helpers/CollapseManager.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VineScript.Compiler { /// <summary> /// Manage collapsing text when using the Collapse Statement (with '{' and '}'). /// </summary> internal class CollapseManager { ...
d707ec4e650ccc9bc3ca4cc75ac701dd97ec0f9e
C#
naomiceron/Pagina-Web-Heladeria
/proyectoWeb/MODELO/ServicioModelo.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MODELO { public static class ServicioModelo { public static void InsertarServicio(Servicio newServicio) { try { using (var model...
edc615b88e4f057266ffd9ccdfd32040565dbd8e
C#
Lyubo03/OOP-Algorithms
/PokemonTrainer/PokemonTrainer/Program.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; namespace PokemonTrainer { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split(' ', StringSplitOptions.RemoveEmptyEntries); Dictionary<string, Trainer> trainers = ...
60cad58936017d061ea679f014ed4089cb6640f4
C#
smclt30p/racepad2
/Racepad2/src/Racepad2/Core/Util/SettingsManager.cs
2.515625
3
/* * SettingsManager - Copyright 2017 Supremacy Software * ______ _____ ___ ______ ______ _______ __ * / __/ / / / _ \/ _ \/ __/ |/ / _ |/ ___/\ \/ / * _\ \/ /_/ / ___/ , _/ _// /|_/ / __ / /__ \ / * /___/\____/_/ /_/|_/___/_/ /_/_/ |_\___/ /_/.org * * Software Supremacy * ...
afb8672fd779c35f41fce74263d2d62440d05464
C#
NSemaX/AlertifyJSUsageSample
/App_Code/AlertCustom.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; public static class AlertCustom { /// <summary> /// Shows a client-side JavaScript alert in the browser. /// </summary> /// <param name="message">The message to appear in the alert.</param> ...
ee7ef5cd83784d3f7fdbd014eb7e8f2855515e03
C#
shendongnian/download4
/code6/1117430-29323056-86898257-4.cs
3.03125
3
public List<string> getZipCodesWithinRadius(string zipCode, string radius) { List<string> zipCodes = new List<string>(); string apiKey = @"---REMOVED FROM ANSWER---"; string apiFormat = @"radius.json"; string baseUrl = @"http://www.zipcodeapi.com/rest/"; ...
5f7bc660949805e58e84b6722b9d30495a51587e
C#
andreanicte02/cql-interpreter
/servidor/InterpreteCQL/Instrucciones/NodoCasteoExplicito.cs
2.671875
3
using System; using Irony.Parsing; using servidor.InterpreteCQL.Expresion.Primitivos; using servidor.InterpreteCQL.Instruccionesn; using servidor.InterpreteCQL.Interfaces; namespace servidor.InterpreteCQL.Instrucciones.Sentencias { public class NodoCasteoExplicito:Instruccion { private Instruccion tipo...
406c47e552eae53b1fdb243105863bfc38d72839
C#
sujankh/LearnSignalR
/MoveShape/MoveShapeHub.cs
2.578125
3
using System; using System.Threading; using Microsoft.AspNet.SignalR; using Microsoft.AspNet.SignalR.Hubs; using Newtonsoft.Json; namespace MoveShape { public class ShapeBroadCaster { private static Lazy<ShapeBroadCaster> singleton = new Lazy<ShapeBroadCaster>(() => new ShapeBroadCaster()...
732c1c9b94c8d7554444ace450dac21b1bcc9906
C#
angryermine/QA
/LFedorov.Moodle/Decoder.cs
2.640625
3
using System; using System.Collections; using System.IO; using System.Linq; using System.Text; namespace LFedorov.Moodle { internal class Decoder { private string m_Headers = ""; private string m_BoundaryID = ""; private MemoryStream m_MsgStream; private ArrayList ...
4dc32d25f9894e5fbf4dce3b261ca2fdef23bac7
C#
Stanlox/NET.S.2020.Bandaruk
/NET.S.2020.04/NET.S.2020.04.Tasks/Program.cs
2.703125
3
using NET.S._2020._04.GreatestCommonDivisor; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NET.S._2020._04 { class Program { static void Main(string[] args) { ...