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
0fd93702f12559e396809c1c7d2368de621c4ad8
C#
Robertofernandesrecdev/Desafios-Avande
/cardapioAereo/Program.cs
3.046875
3
using System; namespace cardapioAereo { class Program { static void Main(string[] args) { string[] entrada1 = Console.ReadLine().Split(" "); int ca = int.Parse(entrada1[0]); int ba = int.Parse(entrada1[1]); int pa = int.Parse(entrada1[2]); string[] entrada2 = Cons...
14fd609e3f1573149a3c355fb08ce300b16b934e
C#
Akshatakatre/AkshataProject2020
/runtimepolymorphism/runtimepolymorphism/Program.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace runtimepolymorphism { abstract class student { public string Sname { get; set; } public int Rollno { get; set; } public int collegeCode { get; set; } public...
2f00e302b79d7047292784eca4e56162e7abe472
C#
Abbas1546/WPF
/Grid.WPF/Samples/GridDataControl/Appearance/Conditional Formatting Demo/CS/ViewModel/ViewModel.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections.ObjectModel; using System.ComponentModel; using Syncfusion.Windows.Shared; using System.Data.SqlServerCe; using Syncfusion.Windows.Controls.Grid; namespace ConditionalFormattingDemo { class ViewModel ...
ed8007ea6cb490cce1e3d8639b5b597e1f225def
C#
dgoffredo/cuboku
/CreatingAnimation/CubeView.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Debug = System.Diagnostics.Debug; using System.Runtime.Serialization; namespace Sudokudos { class Rotations { public static readonly Matrix rhZ = new Matrix(new double[,] { { 0, 1...
1f7ae21396f7e5ca0e43ddcc5b06966216c4fe95
C#
no3g/TLMN_Client
/Form1.cs
2.609375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading; namespace Client { ...
930d7706c592dfc4358f297488aebe8b77ef6eef
C#
christianor/prinfo.net
/Prinfo.Net PICO/Source/TimeCounter.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace com.cancom.prinfo.pico { class TimeCounter { private DateTime startTime; private DateTime endTime; public void StartTimeMessure() { startTime = DateTime.No...
69eb9300d54715a4e7e63e80a56096e59e5860e5
C#
shendongnian/download4
/latest_version_download2/73777-13687173-32670481-4.cs
3.109375
3
private static readonly object myLock = new object(); public void testThread(int arg1, ConsoleColor color) { for (int i = 0; i < 1000; i++) { lock (myLock) { Console.ForegroundColor = color; Console.WriteLine("Thread " + color.ToString() + " : " + ...
de19fdd729bdb35040ddf129ea8c35db91dcba5a
C#
delil97/MyLibrary
/MyLibary/Models/RemoveFutBooks.cs
3.046875
3
using MyLibary.Models; using System; using System.Collections.Generic; using System.Text; namespace MyLibary { public class RemoveFutBooks { public void getRemoveFut() { using (var bookRem = new BookContext()) { Console.WriteLine("Type the id of the book...
48e66fdea8e7501f53ac3617609451d97d4af6de
C#
estelagonzalezsage/Commerce-Connect-StarterKit
/Sitecore.Commerce.PaymentService/Utilities/CardTypes.cs
2.671875
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="CardTypes.cs" company="Sitecore Corporation"> // Copyright (c) Sitecore Corporation 1999-2016 // </copyright> // <summary> // Defines the CardTypes class. // </summary> ...
72286a7e75c960af4c98efeefe24098accb25bec
C#
woskoboy/TutEvents
/TutEvents/YieldMy/Program.cs
3.140625
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YieldMy{ class Program{ static void Main(string[] args) { /*IEnumerable collection = (new UserCollectionY()).Power(); forea...
4c2b4031b5dcc2cfd967057d2bd03f13bdb37796
C#
dahopkin/Tetris
/TetrisTest_PieceRotate/IConstructStyle.cs
2.609375
3
/* * The IConstructStyle Interface makes a class define a method for * creating a block's visual appearance. * * This interface allows blocks to be created in different ways * (either through different sized image arrays or GDI). * * (c) Copyright 2014 Daniel Hopkins. All Rights Reserved. * E-mail: dahopkin...
dd2eb2dd8a3eaa5cdbc0055fdce233b6a2c2fd2a
C#
rherejias/allegro_gatepass
/GatePass/Extensions/ExtensionMethods.cs
2.984375
3
using System; using System.CodeDom; using System.CodeDom.Compiler; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Web; namespace GatePass.Extensions { public static class ExtensionMethods { public static strin...
f11db35644f7237df55cb67d3cd244c6c8a86bf6
C#
googleapis/gax-dotnet
/Google.Api.Gax.Testing/FakeClock.cs
3.15625
3
/* * Copyright 2016 Google Inc. All Rights Reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://developers.google.com/open-source/licenses/bsd */ using System; using System.Threading; namespace Google.Api.Gax.Testing { /// <summary> ...
dcf0bf73d18012fdc25a1cfb0ee8459f15147d42
C#
bennnym/Myob.Fma
/Myob.Fma.BookingLibrary/MembershipManagement/MembershipManager.cs
2.859375
3
using System.Collections.Generic; using System.Linq; using Myob.Fma.BookingLibrary.Constants; using Myob.Fma.BookingLibrary.Exceptions; using Myob.Fma.BookingLibrary.Memberships; namespace Myob.Fma.BookingLibrary.MembershipManagement { public class MembershipManager : IMembershipManager { private reado...
70e072f87af8b017a915e31128192d3912386e2f
C#
Metapyziks/TravellingSalesman
/LatexGraphGen/Program.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using TravellingSalesman; using System.Diagnostics; namespace LaTeXGraphGen { class Program { static void Main(string[] args) { var table = new LaTe...
97bb54ca392d234e5c6c293cdae2f42479c73b9a
C#
tanzhur/TelerikAcademy-7
/C# part 2/CS2_Exeptions_HW6/task2_ReadNumber/Program.cs
4.34375
4
using System; namespace task2_ReadNumber { class Program { static void Main(string[] args) { //Write a method ReadNumber(int start, int end) that enters an integer number in given range [start…end]. If an invalid number or non-number text is entered, the method should throw an exc...
1723ddc2a7ddc485d9555ea00a902383d9ec4058
C#
T4-1617/nikten
/BattleShip Console GIT/BattleShip Console GIT/Program.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace battleship_console { class Program { //början på daniels kod static int[,] GameMap = new int[7, 5]; //Game field //DOCUMENTING /* 0 - nothing (never sho...
ad73f24a2efac1d97e84c3f4734f7046278b565f
C#
railsonrames/DeveloperTest4MiddleWare
/Challenge.Api/Controllers/RecordsController.cs
2.890625
3
using System; using System.Collections.Generic; using System.IO; using Challenge.Api.Models; using CsvHelper; using Microsoft.AspNetCore.Mvc; namespace Challenge.Api.Controllers { [Route("api/[controller]")] [ApiController] public class RecordsController : ControllerBase { [HttpGet] [...
ff2f942e5e06685e1fa5a9265093bd978065af26
C#
aayush1010/InterviewBit
/Arrays/Max Non Negative SubArray.cs
3.46875
3
using System.Collections.Generic; namespace InterviewBit.Arrays { class Max_Non_Negative_SubArray { public List<int> maxset(List<int> A) { long maxsum = 0, cursum, currentNumberIncludedCount, numberIncludedCount = 0; int i = 0, j = 0, l = 0, r = 0; long size...
75133912fe738b4847d6721995d4f3857da9347a
C#
aresProjects/ADS-Exercicios
/Ex_ObserverPattern/Ex_ObserverPattern/Publisher.cs
3.5
4
using System.Collections.Generic; namespace ObserverPattern { public class Publisher : IPublisher { private HashSet<ISubscribe> subscribers = new HashSet<ISubscribe>(); public IPublisher AddSubscriber(ISubscribe subscriber) { subscribers.Add(subscriber); ...
e39950fc8f1da86f0fbed56b2a18718a8d19900f
C#
minskowl/MY
/Develop/Projects/Net/CodeRocket/src/DataSchema/Collections/SchemaCollection.cs
3.0625
3
using System; using System.Collections; using System.Collections.Generic; namespace Savchin.Data.Schema.Collections { /// <summary> /// SchemaCollection /// </summary> /// <typeparam name="SchemaType">The type of the chema type.</typeparam> public class SchemaCollection<SchemaType> : IDictionary<...
3008327fbe21827c4e5e3c002a3a7ecf5dc6fe64
C#
shendongnian/download4
/latest_version_download2/210007-44865288-150642653-6.cs
2.671875
3
public class CartItem { public string ProductId { get; set; } public int Quantity {get; set; } } public class Cart { public Dictionary<string, CartItem> Items { get; set; } public Cart() { Items = new Dictionary<string, CartItem>(); } ...
9ecb08f4230950fa2bdfb656f110bbb01af15121
C#
TheJongu/2021_GameJam_Robot
/2021_GameJam_Robot/Assets/Objects/Playable/Robot_Small_Movement.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Tilemaps; public class Robot_Small_Movement : MonoBehaviour { // Keycodes, defines the key for movement public KeyCode keyCode_up; public KeyCode keyCode_down; public KeyCode keyCode_left; public KeyCod...
ea7d671e909fc342a524d800b467258d404de12b
C#
RudolfJan/TimetableTool
/Squirrel-for-dot-net-core.cs
2.546875
3
async Task checkForSquirrelUpdates() { try { var (exitCode, output) = await RunSquirrel("--update https://example.org/updates"); if (exitCode != 0) { // TODO: Log update errors to Sentry this.Log().Warn($"Failed to upda...
c6ca9e28c7c61b1420995683737caa2f35c648c1
C#
philmurray/The-Big-Game
/Assets/Scripts/BlockContainer.cs
2.5625
3
using UnityEngine; using System.Collections; using Assets.Scripts.DataStructures; using System; using System.Collections.Generic; public class BlockContainer : MonoBehaviour { public GameController.Player Player; public List<Block> Blocks; public List<BlockTypeItem> BlockObjects; private Dictionary<...
353898cc66cc7512a3f9e66eacfc5c79858b7376
C#
mlunnay/minotaur
/minotaur/src/Helpers/QuantizationHelper.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Minotaur.Helpers { /// <summary> /// This class provides helper methods for Quantizing of floating point numbers into unsigned integrals. /// </summary> public static class QuantizationHelper { /// <summary> ...
09a32bf1c24e13ca2496ed88947cc723f22b57c4
C#
mhdaxif/ProWriter
/src/ProWriter.Web/Controllers/BaseController.cs
2.640625
3
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using ProWriter.Data; using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Text; using System.Threading.Tasks; namespace ProWriter.Web.Controllers { ...
fd26b6d29476f7e3bdb2bf65f88463528dd35b57
C#
dominicshaw/Ingress
/Ingress.Data/Bases/EntityFrameworkRepository.cs
2.984375
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Threading.Tasks; namespace Ingress.Data.Bases { public class EntityFrameworkRepository<TEntity, TKey> : IDisposable where TEntity : class { private readonly DbContext _context; protected EntityFrameworkRepo...
b12437ecc1143150e0a3921aad1fbb3caa5ff40f
C#
Chapre/EulerChallendge
/ChapreEuler/Problems/41/PandigitalPrime.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChapreEuler.Problems._41 { class PandigitalPrime : ITestable { public void Test() { var max = 0; for (int i = 10; i <987654321; i++) ...
c4db5972af0de6278d1e2c3315399744d9b91564
C#
shirshmx/Monocle-Record-Rssdk
/SmithersDS4.Reading/FrameRateReporter.cs
2.9375
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SmithersDS4.Reading { public class FpsChangedEventArgs : EventArgs { public double Fps { get; set; } public FpsChangedEventArgs(double fps) ...
4dc0665c9457c19a73cfa9ebdadd9f7c3485ca29
C#
BitMasher/Kaguya
/KaguyaProjectV2/KaguyaBot/Core/Commands/Administration/ChannelBlacklist.cs
2.546875
3
using Discord; using Discord.Commands; using Discord.WebSocket; using Humanizer; using KaguyaProjectV2.KaguyaBot.Core.Attributes; using KaguyaProjectV2.KaguyaBot.Core.Exceptions; using KaguyaProjectV2.KaguyaBot.Core.Extensions; using KaguyaProjectV2.KaguyaBot.Core.Global; using KaguyaProjectV2.KaguyaBot.DataStorage.Db...
9189755ef20a7db34728d6626bcb2c236fce2ef5
C#
tireptor/CleanDirectory
/CleanDirectory/StringProcess.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CleanDirectory { abstract class StringProcess { public static string escape(string sh) { sh = sh.Replace("é", "e"); sh = sh.Replace("è", "e"); ...
f37c055c287712f90ec8dda0b2b7936728da97e2
C#
shendongnian/download4
/code4/683526-58634221-208269927-2.cs
2.890625
3
public Task<string> GetToken() { string mockToken = Guid.NewGuid().ToString(); return Task.FromResult(mockToken); } # B. async and `await Task.FromResult` public async Task<string> GetToken() { string mockToken = Guid.NewGuid().ToString(); return await Task.FromResult(mockToken); } # C. `Task.Run` public stri...
4cd8d7f9b898503ab9e5f8a4ccad29918d9d0f30
C#
viceroypenguin/adventofcode
/AdventOfCode.Puzzles/2019/day16.original.cs
2.8125
3
using System.Numerics; namespace AdventOfCode.Puzzles._2019; [Puzzle(2019, 16, CodeType.Original)] public class Day_16_Original : IPuzzle { public (string, string) Solve(PuzzleInput input) { var signal = input.Bytes.Where(i => i != '\n').Select(i => i - 0x30).ToArray(); var transforms = BuildTransforms(signal...
8454fdf2ca8a351da85f8e8a5fdc06f66204c868
C#
mdamri/dragon
/proj/Mail/Dragon.Mail/Impl/DefaultFileSystem.cs
3.015625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Dragon.Mail.Interfaces; using Dragon.Mail.Utils; namespace Dragon.Mail.Impl { public class DefaultFileSystem : IFileSystem { private IFileSystemEnumerator m_fileE...
d7d5b0568f249cac1bb671f29e038d941d7089fa
C#
AndrewBenavides/Rosalind
/Core/NucleotideFrequencyMatrix.cs
3.140625
3
using System.Collections.Generic; using System.Linq; namespace Rosalind.Core { public class NucleotideFrequencyMatrix : Dictionary<Nucleotide, List<int>> { public Dictionary<Nucleotide, List<int>> Matrix { get; private set; } public List<int> MaxFrequencies { get; private set; } private N...
67946d8183902b0257cb4116d82e6a2aabe356e2
C#
cnxiaoby/ShiroNet
/src/ShiroNet.Core/Cache/AbstractCacheManager.cs
3.046875
3
using ShiroNet.Util; using System; using System.Collections.Generic; using System.Text; namespace ShiroNet.Cache { public abstract class AbstractCacheManager : ICacheManager, IDisposable { private IDictionary<string, ICache> caches; public AbstractCacheManager() { this.cach...
559c310094dde5e547c73ec315eb7e3c7fa5d954
C#
alex2e/SaladilloFitVR
/SaladilloFitVR/Assets/Scripts/PlayAnimator.cs
2.65625
3
/////////////////////////////////////////// // Práctica: SaladilloFitVR // Alumno/a: Alejandro Santillana // Curso: 2017/2018 // Fichero: PlayAnimation.cs /////////////////////////////////////////// using UnityEngine; public class PlayAnimator : MonoBehaviour { /// <summary> /// Tiempo que tardará en activar...
501e7e470e1f1d579f1e1cec3bbdcb75c5310b99
C#
wasimraza1698/MedicalRepScheduleMS
/repositories/RepScheduleRepository.cs
2.640625
3
using MedicalRepresentativeSchedule.models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MedicalRepresentativeSchedule.repositories { public class RepScheduleRepository : IRepScheduleRepository { private static List<Doctor> doctors; ...
af3acef4d6c36599b44a1b378ac24a7945071e40
C#
llimacruz/RestSimples
/RestSimples/Controllers/LivroController.cs
2.625
3
using RestSimples.Models; using System.Collections.Generic; using System.Linq; using System.Web.Http; namespace RestSimples.Controllers { [RoutePrefix("api/livros")] public class LivroController : ApiController { private static List<LivroModel> livros = new List<LivroModel>(); ...
7b8f6f3c5be9a958825fc089cc88efdb941af0e6
C#
CommunityToolkit/WindowsCommunityToolkit
/Microsoft.Toolkit.Uwp.UI.Controls.Markdown/Parsers/Markdown/Blocks/HorizontalRuleBlock.cs
3.109375
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using Microsoft.Toolkit.Parsers.Core; namespace Microsoft.Toolkit.Parsers.Markdown.Blocks { /// <...
e39d3f380e78c8fa57daec64b5b1983eddbb90bb
C#
GuidoBaldessari/Forza4
/FoRzA 4/Classi/Server.cs
2.578125
3
//Server using System; using System.Net; using System.Net.Sockets; using System.Text; namespace Forza4.Classi { public class Server : UdpBase { private IPEndPoint _listenOn; public Server() : this(new IPEndPoint(IPAddress.Any, 32123)) { } public Server(IPEndPoint endp...
2898c97a742c5d86024f32ae8c8474ec1dab47b3
C#
liupeiming600/Music-PETS
/Unity/Music-PETS/Assets/HololensPETS-Games/FlappyBird/Scripts/Scroller.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace HololensPETSGames { public class Scroller : MonoBehaviour { public float scrollSpeed = 1.0f; public float scrollSpeedMultiplier = 1.0f; public Vector3 scrollDirection = -Vector3.right; pri...
f12175eef72206f2dbf7fa357cac216ad0ee3374
C#
Henrique-Castro/SenaiLessons
/C#Console/NaoOrientado/Switch/Program.cs
3.15625
3
using System; namespace Switch { class Program { static void Main(string[] args) { string passeio = "Montanha"; switch(passeio) { case "deserto": Console.WriteLine("Leva uma água!");break; case "Praia": Console.WriteLine("Não se esqueça...
ce60a71e7e268944e167d8cb9113447347ec98e2
C#
leplastic/checkersclass
/Board.cs
3.234375
3
using System; using System.Collections.Generic; namespace Softklin.Checkers { /// <summary> /// Represents a game board for checkers game /// </summary> class Board { #region Variables private const int BOARD_SIZE = 8; private Piece[,] theBoard; priva...
456101266ad2f16ff599d85c4b7348f810b32dee
C#
cmoyates/Genetic-Evolution-Demo
/Assets/Scripts/DistanceGet.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DistanceGet : MonoBehaviour { float dist; // Start is called before the first frame update void Start() { GameObject goal = GameObject.FindGameObjectWithTag("Goal"); dist = (goal.transform.posit...
31074eb6a1e11bdb1245e0d44b4e2c65e0c91e8b
C#
theahmadzai/chat-client
/ChatClient/Client.cs
2.828125
3
using Open.Nat; using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using System.Threading.Tasks; using static ChatClient.Peer; namespace ChatClient { public class Client { private int PORT = 10101; ...
50fa83b10e91034a9df0c60e0cf912ba2e8f76b3
C#
UristMcDorf/FractalStrategyIdle
/Assets/BasicLogic/Map/MapObjectActions/Requirements/ARCountInstances.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ARCountInstances : ActionRequirement { [SerializeField] List<string> sysNameOfRequired = null; [SerializeField] int amount = 2; //by default, this can be used to prevent destroying the last instance of an impro...
5e6cc00e6e2122be641b922cdac9ff6f522b0850
C#
digiPHOTO-it/lumen
/Digiphoto.Lumen.Core.Test/src/Util/Costanti.cs
2.5625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Digiphoto.Lumen.Model; namespace Digiphoto.Lumen.Core.Test.Util { public class Costanti { /// <summary> /// Nomi delle immagini jpg u...
6fefbaac91255c11e15b4da8f968e56173c7a22f
C#
nakayecc/VendingMachine
/VendingMachine/Services/CoinService.cs
2.59375
3
using VendingMachine.Models; namespace VendingMachine.Services { public class CoinService { public CoinService() { } public Coin InsertCoinToMachine(double coin) { return coin switch { 0.01 => Coin.Cent, 0.05 => C...
a2143e202248b37f98baa8b0a5abf49a3335be66
C#
karimelghazouly/sql-query-module
/QueryModule/FileManager/XMLParser.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using QueryModule.QueryParser; using System.Xml.Serialization; using System.IO; namespace QueryModule.FileManager { public class XMLDatabase { public XMLTable[] Tables { get; set; } ...
b01e89c298710e0fd459778425960d0100a833c6
C#
mk970205/tetra-tower
/Assets/Scripts/TetrisMap/Door.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Door : MonoBehaviour { /// <summary> /// Position of this door. /// 0 for up, 1 for right, 2 for down, 3 for left. /// </summary> public int position; /// <summary> /// Entered position of the play...
812238e8dd3e4e31a03ab2b94acf18dd3c4e651e
C#
AI4E/AI4E.Utils
/test/AI4E.Utils.Test/ObjectPoolExtensionTests.cs
2.609375
3
using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.ObjectPool; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AI4E.Utils { [TestClass] public class ObjectPoolExtensionTests { [TestMethod] public void DiposingDefaultPooledObjectReturnerShallNotThro...
363a11a30768ec485916b26cca0e8aca4d80860c
C#
EvgenyZaitsev/LabEPAM
/HW_4/HW_4_4/ListOfItems.cs
3.984375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HW_4_4 { public class ListOfItems { Dictionary<string, double> listOfItems { get; set; } public ListOfItems() { listOfItems = new Dictionary<string,...
d020ba44afedee6c692a94d94a90da74f6fd9ac8
C#
WATERMELOUN3/SgtSafety
/SgtSafety/NXTEnvironment/NXTBuffer.cs
2.890625
3
using SgtSafety.NXTBluetooth; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SgtSafety.Types; namespace SgtSafety.NXTEnvironment { public class NXTBuffer : List<NXTAction> { // --------------------------------------------------...
8db245ea1031d47f9af1da85cd3a4f9ec67fb360
C#
dhedegaard/euler
/euler001.cs/Program.cs
3.015625
3
using System; using System.Linq; class Program { static void Main(string[] args) { Console.WriteLine(Enumerable.Range(1, 999).Where(e => e % 3 == 0 || e % 5 == 0).Sum()); } }
457b07ac5a95cfa81683871729dc322a277f1567
C#
tiagoknoch/Codewars
/C#/Solutions/Duplicate Encoder.cs
3.71875
4
using System.Text; using System.Linq; /* Duplicate Encoder Description: The goal of this exercise is to convert a string to a new string where each character in the new string is '(' if that character appears only once in the original string, or ')' if that character appears more than once in the original string. Ig...
12bf120853388c8953cc225c54ed4faafe1e8fd7
C#
schaserstout450/main
/Sprint 4/Assets/Script/GUI/UIScreens.cs
2.890625
3
using UnityEngine; using System.Collections; public static class UIScreens { /** * Shows the instructions gui. * param string the text to be shown on the back button. * returns true when closed. */ public static bool showInstructions(string backButtonText) { // Make a group on the center of the screen ...
6c742186e40284d7802e229514f55f57085f9d48
C#
MayGodBlessYouAMen/leetcode.com-csharp
/LeetCode.Com/Esay/No0796.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LeetCode.Com.Esay { /// <summary> /// Rotate String /// </summary> public class No0796 { public bool RotateString(string A, string B) { //如果新的字符串(A+A)中包含B的话,说明A一定能通过偏移得到B ...
1d418a8b5c4302049365908a8ac8bf1561dd4143
C#
fveloci/desafioOperacion
/DesafioOperacion/Operacion.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DesafioOperacion { static class Operacion { public static int sumar(int num1, int num2) { return (num1 + num2); } public static int restar(...
f96fc5d2a6ea76ca762188263a6f21f72718d387
C#
hvuSyslogic/IronCastle
/src/BouncyCastle.Core/asn1/x500/X500NameBuilder.cs
2.59375
3
using org.bouncycastle.asn1.x500.style; using org.bouncycastle.Port.java.util; namespace org.bouncycastle.asn1.x500 { /// <summary> /// A builder class for making X.500 Name objects. /// </summary> public class X500NameBuilder { private X500NameStyle template; private Vector rdns = new Vector(); /// <s...
2ba3dafe5013c38e79bdc41abaae7bfc07ac00f8
C#
iNeverSleeeeep/NPOI-For-Unity
/NPOI.POIFS.Common/POIFSBigBlockSize.cs
2.984375
3
namespace NPOI.POIFS.Common { /// <p>A class describing attributes of the Big Block Size</p> public class POIFSBigBlockSize { private int bigBlockSize; private short headerValue; internal POIFSBigBlockSize(int bigBlockSize, short headerValue) { this.bigBlockSize = bigBlockSize; this.headerValue = hea...
7be4947348eeeae5b6a50902118abdb0923ddd9d
C#
fluffynuts/PeanutButter
/source/SimpleServers/PeanutButter.SimpleHTTPServer/HttpConstants.cs
2.703125
3
namespace PeanutButter.SimpleHTTPServer { /// <summary> /// Provides some constants which are useful in an http context /// </summary> public static class HttpConstants { /// <summary> /// Common HTTP headers /// </summary> public static class Headers { ...
8681a82e22597527eba24485151f9aa9d1631c8c
C#
Victoralm/AspNetCore5AndVueJSFromZeroToHero
/ShoppySolution/BL/PaymentBL.cs
2.90625
3
using AutoMapper; using DAL.MySqlDbContext; using Entities; using Interfaces.BL; using Interfaces.Services; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace BL { ...
da56a9be612c60dc986efcafa0eb7fe3e8fa0b77
C#
M2m0ryZ/compactframework
/InTheHand.IO/FileSystemWatcher.cs
3.015625
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="FileSystemWatcher.cs" company="In The Hand Ltd"> // Copyright (c) 2003-14 In The Hand Ltd. All Rights Reserved. // </copyright> // <author>Peter Foot</author> // ------------------...
5c63de09d2848b1e093ba6b89b220fd2da76b012
C#
Alvtron/CSharp-MachineLearning
/AI/TrainingSamples/Character.cs
3.578125
4
using System; namespace AI.TrainingSamples { public struct Character { public char Letter { get; set; } public double MapValue => LetterToMapValue(Letter); public string Data { get; set; } public double[] Serialized => CharacterToDoubles(Data); public Character(char le...
f3ed310e36f8a1dd641f637f897309fdcbb6a89e
C#
Filjo0/PizzaProject
/PizzaProject/Enums.cs
2.8125
3
/// <summary> /// It is a special "class" that represents a group of Menu constants (unchangeable/read-only variables) /// </summary> namespace PizzaProject { public enum TypeOfFood { PizzaType, DessertType, BeverageType } public enum TypeOfPizza { M...
003de2ff9c3d4c27d6a013d0594baf4c5187a5ca
C#
MarianPogor/.NET-C_Exercices
/ServerTCP/Program.cs
2.90625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace ServerTCP { class Program { class ServerTCP { static void Main(string[] args) { ...
50cf8ff9d83dd91570d535182093b6c8ca11d9b4
C#
yoshiomori/BDD
/Utils/JsonObject.cs
3.015625
3
using System; namespace Utils { public class JsonObject { public dynamic Value { get; set; } public JsonObject(string json) { try { Value = JsonConvert.DeserializeObject<ExpandoObject>(json); } catch (System.InvalidCastEx...
375e841f58ceb430780efb22f001f5cdf0c73a41
C#
StefanT12/Test2
/LogTest/AsyncLogV2.cs
2.71875
3
using LogTest.Interfaces; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace LogTest { public class AsyncLogV2 : ILog { private ConcurrentQueue<LogLi...
a953fe753ed8662a6e9eb4de5d5d8e633b77910c
C#
krysmathis/LinqPadQueries
/Euler/Problem 004C.linq
3.59375
4
<Query Kind="Program" /> void Main() { //A palindromic number reads the same both ways.The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. //Find the largest palindrome made from the product of two 3-digit numbers. //foreach (var e in Enumerable.Range(100, 900)) // Console.WriteL...
7e102f1c50875d67288154fb645e2be7e07248c8
C#
smkgeekfreak/BrightstarDB
/src/core/BrightstarDB/Storage/Persistence/BinaryFilePageStore.cs
2.546875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using BrightstarDB.Profiling; namespace BrightstarDB.Storage.Persistence { internal class BinaryFilePageStore : IPageStore { private readonly string _filePath; /// <summary> /// This records the reque...
8d32137fabf65476de57a11d6a24beb6a7f336db
C#
kaurbanski/DesignPatterns
/Builder/Program.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Builder { public class Program { public static void Main(string[] args) { CorsaBuilder corsaBuilder = new CorsaBuilder("Korsina"); CarDirector d...
e2404b4f7573133c3ca56b44ad2ddc37f7a9cdbc
C#
bajuwa/AntLion
/Assets/Scripts/GridMaker.cs
2.625
3
using UnityEngine; using System.Collections; public class GridMaker : MonoBehaviour { private int gridSizeVertical; public int gridSizeHorizontal = 5; public float gridCellWidth = 64.0f; public float gridCellHeight = 64.0f; // Default difficulty level if none is specified private GameObject globalState; pub...
69780ccc234bcdfeff7307aa8b459cb99716bc1e
C#
austinnixholm/car-dealership
/CarDealershipAPI/Data/Repositories/ADO/ADOModelRepository.cs
2.78125
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; using CarDealershipAPI.Logic; using CarDealershipAPI.Models.Interfaces; using CarDealershipAPI.Models.VehicleModels; namespace CarDealershipAPI.Data.Repositories.ADO { public class ...
609bec6625a1bb1bde79fd91c8a593914ea857c3
C#
PlamenMI81/CSHARP
/Programming Basics/ExamPreparation3/problem1/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace problem1 {//House Painting class Program { static void Main(string[] args) { double x =double.Parse(Console.ReadLine()); double y =double.Parse(...
625cf49f3006678e042be2c03bb694750d6fe5d6
C#
fryette/leetcode
/LeetCode.Solutions/Medium/561.ArrayPartitionI.cs
3.390625
3
using System.Collections.Generic; using System.Linq; namespace LeetCode.Solutions.Medium { //https://leetcode.com/problems/array-partition-i public class ArrayPartitionISolution { public int ArrayPairSum(int[] nums) { var exist = new int[20001]; foreach (var num in n...
e1b1d9050dd2cda5f921ef974f8ae564eaf2a6ff
C#
cstojan/CSCI-473
/Assign2/Program.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; namespace a2 { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThrea...
f34279f591ad9ca6b1a130d562452410a58061b2
C#
damienbod/fido2-net-lib
/Src/Fido2.Models/Metadata/RgbPaletteEntry.cs
2.84375
3
using System; using System.Text.Json.Serialization; namespace Fido2NetLib; /// <summary> /// The rgbPaletteEntry is an RGB three-sample tuple palette entry. /// </summary> /// <remarks> /// <see href="https://fidoalliance.org/specs/fido-v2.0-rd-20180702/fido-metadata-statement-v2.0-rd-20180702.html#rgbpalet...
dcd4f0ffe461a0474cd8d00190e2f5948a331894
C#
team-cobra/ValidationShark
/ValidationShark/ValidationRules/Int/IntegerExtensions.cs
2.640625
3
namespace ValidationShark.ValidationRules.Int { public static class IntegerExtensions { public static IValidationRuleBuilderForProperty<TForModel, int> Min<TForModel>( this IValidationRuleBuilderForProperty<TForModel, int> context, int min) { context.AddRule(new MinValid...
8dbeae6fc1ab23cd3698bcd6f83f59e8ad1e8d66
C#
Chuks-Onuh/ShopsRUs
/ShopsRUs.API/Services/InvoiceService.cs
2.921875
3
using ShopsRUs.Domain.Models; using System; using System.Collections.Generic; using System.Linq; namespace ShopsRUs.API.Services { public static class InvoiceService { public static decimal GetInvoiceAmount(AppUser user, IEnumerable<Item> products, Discount discount) { var amount ...
d5d234f8ff9b1036f9ffe547658ab89583abaa58
C#
ilieviv/CSharp-Part2
/LINQ/01CalculaionProblem/Program.cs
3.734375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01CalculaionProblem { class Program { static int MeowToDec(string meow) { int result = 0; foreach (char digit in meow) { ...
2bbece20783bc8cba68efabf5d5de6089eb62ccf
C#
IhorTelepenk0/Programming-languages-HWs
/ArrayTasksSolving/ClassWithTasks.cs
3.640625
4
using System; using System.Collections.Generic; using System.Reflection.Metadata.Ecma335; using System.Text; namespace ArrayTasksSolving { class ClassWithTasks { public static float[] Diagonal1(float[,] matrix, int n) { float[] res = new float[n]; int resInd = -1; ...
44e201cfa91cdf68b384b53d62607bc491e18fb2
C#
mohui/cStudyApi
/XZMHui.Core/Jwt/Utils/JwtHelper.cs
2.515625
3
using Microsoft.IdentityModel.Tokens; using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.Text; using XZMHui.Core.Jwt.Model; using XZMHui.Utils; using XZMHui.Utils.Extensions; namespace XZMHui.Core.Jwt.Utils { public ...
e08fcf92fa27a6543533dc91e072fe20d09dde31
C#
steve-salmond/LD29
/Assets/Scripts/Props/Destructible.cs
2.671875
3
using UnityEngine; using System.Collections; public class Destructible : MonoBehaviour { public int HitPoints = 3; public GameObject HitEffect; public GameObject DieEffect; public GameObject Drop; public LayerMask HitterLayers; private int hits = 0; private void OnCollisionEnter2D(Collision2D collision) ...
d7073399ed1ec320fa8dda7b33b28ee98a2465fe
C#
raulGX/IaPso
/PSO/Rosenbrock.cs
3.109375
3
namespace PSO { public class Rosenbrock : ProblemaDeBaza { public override double Functie(double[] x) { var rez = 0.0; for (var i = 0; i < x.Length - 1; ++i) { var xi = x[i]; rez += (1 - xi) * (1 - xi) + 100 * (x[i + 1] - xi * ...
0314a10bdba97aa57f4c51197e72645201d566bf
C#
martinmihov/Programming-Fundamentals
/Methods. Debugging and Troubleshooting Code/MultiplyEvensByOdds/Program.cs
4.03125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MultiplyEvensByOdds { class Program { static void Main(string[] args) { int n = Math.Abs(int.Parse(Console.ReadLine())); int OddMultipliedByEven...
695032f63d24cbf9fc7aebed2a97f82d72df1161
C#
dimad77771/GUKV
/Import1NFReportTool/Preferences/Preferences.cs
2.53125
3
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace GUKV.DataMigration { /// <summary> /// This class reads application preferences from the INI file /// </summary> public class Preferences { #region Preferences /// <summary> /// N...
dfee2d01bd62ece1fcccff57a42ecab900e08e4a
C#
ZorPastaman/Behavior-Tree
/Runtime/Core/Leaves/Actions/SetNavMeshAgentStoppingDistance.cs
2.59375
3
// Copyright (c) 2020-2023 Vladimir Popov zor1994@gmail.com https://github.com/ZorPastaman/Behavior-Tree using System.Runtime.CompilerServices; using UnityEngine.AI; using Zor.BehaviorTree.DrawingAttributes; using Zor.SimpleBlackboard.Core; namespace Zor.BehaviorTree.Core.Leaves.Actions { /// <summary> /// <para> ...
1c10a23f6637eda875c1586f21b60072d84dfa5f
C#
dhruvp1997/Wayfarer
/Wayfarer/Wayfarer/ViewModels/FilterViewModel.cs
2.515625
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Windows.Input; using Wayfarer.Models; using Xamarin.Essentials; using Xamarin.Forms; namespace Wayfarer.ViewModels { class FilterViewModel : BaseViewModel { public IList<Country> Count...
194b0fcde0efe70110387a1f46fabfe35ca946c9
C#
CarlosPepin/Various-Basic-Algorithms
/HBR_Group/Programa_4/Program.cs
4
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Programa_04 { class Program { static void Main(string[] args) { // 4) Crear un programa que pida al usuario dos números reales. Si el segundo no es cero, mo...
5e493d023df5e005d5864414f199a01fd3e5cf39
C#
rajaghosh/InterviewPrep
/DesignPatterns/Singleton2.cs
3.875
4
using System; using System.Collections.Generic; using System.Text; namespace DesignPatterns { //Thread Safe Singleton public sealed class Singleton2 { private static int counter = 0; private Singleton2() { counter++; Console.WriteLine("Counter Value -> " +...
f1fad8c8554e8cb595ec5e31c2400c98217caa00
C#
tharinga/uJect
/Assets/Runtime/BindingDefinition.cs
2.578125
3
using System; namespace uJect { public abstract class BindingDefinition { protected BindingDefinition(Type concreteType) { _concreteType = concreteType; } protected object _instance; protected readonly Type _concreteType; public virtual void SetInst...
714522c415aa0d74bdf4ca4a5586e2ba2fb5461b
C#
giulivetere/DDS2020
/Apis Provincia/Apis Provincias/Apis Provincias/Program.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Net; using System.IO; using Newtonsoft.Json; using RestSharp; namespace Apis_Provincias { class Program { static void Main(string[...
4e2a5426ae80360eab1eb764192aab44cf9d7a0f
C#
nick02090/Krumpirko
/Assets/Scripts/Gameplay/SceneObjects/Gum.cs
2.609375
3
using Gameplay.Ailments; using Gameplay.Characters; namespace Gameplay.SceneObjects { public class Gum : SceneObject { /// <summary> /// Inflicts Happy ailment on the enemy /// </summary> public override void Interact(ICharacter character) { if (!character.I...
fc73f21324e5e121c54c45b0b36758ee69662432
C#
Anders-H/JobRunner
/JobRunner/GuiComponents/TextboxExtensions.cs
2.65625
3
using System; using System.Windows.Forms; using JobRunner.Utils; namespace JobRunner.GuiComponents { public static class TextboxExtensions { public static bool ValidateDashAndQuotes(this TextBox me, string fieldName, string formName) { if (me.Text.IndexOf("\"", StringComparison.Ord...
30f05c09454a90886255e0ab44085cb2773d2ea8
C#
Archie7viv/MyTest
/Basic OOP/BasicOOP/Subscription.cs
2.859375
3
namespace N_Ix_study_1.BasicOOP { public static class Subscription { public static int fullPrice = 1000; public static int discountPrice = 800; public static bool isDiscount; public static int GetPrice(bool isDiscount = false) { if(isDiscount) { ...
a7d14c2265705c2d7f01e75fb1eb8daf4b7aa080
C#
bonyclite/ChatOrleans
/src/Core/Extensions/ListExtensions.cs
2.828125
3
using System.Collections.Generic; namespace Core.Extensions { public static class ListExtensions { public static void RemoveAll<T>(this List<T> self) { self.RemoveAll(obj => true); } } }
bf15f26ab29d33344125c8a3c6fb1356d2268303
C#
jobfb/ShootingGame
/Assets/Scripts/PlayerController.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent (typeof(Rigidbody))] public class PlayerController : MonoBehaviour { Rigidbody myRigidbody; Vector3 velocity; void Start() { myRigidbody = GetComponent<Rigidbody>(); } public void Move(Vector3 _velocity) { veloc...
d2b04da51a612639497af128cd8ef25d2621a650
C#
vassildinev/CSharp-Part-1
/07.CSharp-1-Exam-Preparation/OTHERS/Garden/Garden/Garden.cs
3.40625
3
using System; class Garden { static void Main() { //INPUT decimal tomatoSeeds = decimal.Parse(Console.ReadLine()); decimal tomatoArea = decimal.Parse(Console.ReadLine()); decimal cucumberSeeds = decimal.Parse(Console.ReadLine()); decimal cucumberArea = decimal.Parse(Cons...