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
da05d1e681f34e102941d39bb8e39e700104c464
C#
mariuszhermansdorfer/SandWorm
/SandWorm/Analytics/WaterLevel.cs
2.578125
3
using System.Collections.Generic; using Rhino.Geometry; namespace SandWorm.Analytics { public static class WaterLevel { public static void GetGeometryForAnalysis(ref List<GeometryBase> outputGeometry, double waterLevel, Mesh terrainMesh) { List<Point3d> waterCorners = new List<Poin...
935489ce395fb022260b3a0d10e126b47a54f904
C#
kingime90/NKingimeV2.0
/src/NKingime.Utility/PagedResultUtil.cs
2.734375
3
using System; using System.Collections.Generic; using NKingime.Utility.General; namespace NKingime.Utility { /// <summary> /// 分页结果应用。 /// </summary> public static class PagedResultUtil { /// <summary> /// 构建分页结果。 /// </summary> /// <typeparam name="T"></typeparam>...
85c50c9c0e6dbd979a1bc6c1509cb4988b1a4d91
C#
hircjusz/codecheef
/TestProject/FrogJumpTest.cs
2.65625
3
using System; using System.Text; using System.Collections.Generic; using System.Linq; using CodeCheef.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace TestProject { [TestClass] public class FrogJumpTest { /* A[0] = 1 A[1] = 3 A[2] = ...
86e95b2785afa9f2d7495fe40eac624c27891874
C#
RedAWM/GDNet
/GameDesigner/Serialize/Newtonsoft.Json/MemberSerialization.cs
2.734375
3
using System; namespace Newtonsoft_X.Json { /// <summary> /// Specifies the member serialization options for the <see cref="T:Newtonsoft.Json.JsonSerializer" />. /// </summary> public enum MemberSerialization { /// <summary> /// All public members are serialized by default. Members...
4b0e675e58d4329974227a55eb3f77fe1906ac88
C#
RobertCPhillips/CourseraAlgorithms
/DynamicAlgorithms/TspPathBitArrayGenerator.cs
3.234375
3
using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace DynamicAlgorithms { public class TspPathBitArrayGenerator { public int[] Generate(int n, int m) { var pathCount = GetBinCoeff(n - 1, m - 1); var bitPaths = ...
c7118b3422d6400c9a0207565001625157d37a0e
C#
ReeceGordon/Online-Booking-Reservation-.Net
/Lotus/Lotus/Shared/HexEngine.cs
3.296875
3
using System; using System.Collections.Generic; using System.Text; namespace Lotus.Shared { /// <summary> /// converts the string to hex /// </summary> /// <param name="str">the string to be hexed</param> /// <returns>hexed string</returns> public class HexEngine { public static st...
3a426040b5a2e008fe63287389edf82c119fe180
C#
o1exandr/windows_form
/windows_form/MainWindow.cs
2.5625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace windows_form { public partial class MainWindow : Form { public MainWindow() ...
9012d20e62ac9cd05c80bd24852b0d5fd5830788
C#
hypersnow/Project-Infinity
/Project Infinity/ResourceManager.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; namespace Infinity { class ResourceManager { ...
6ff4d1c2f07c71818349506dd202067f29a4fc6e
C#
transformania/tt-game
/src/TT.Domain/Messages/Queries/GetMessageModerator.cs
2.5625
3
using System.Linq; using Highway.Data; using TT.Domain.Exceptions; using TT.Domain.Messages.DTOs; using TT.Domain.Messages.Entities; namespace TT.Domain.Messages.Queries { public class GetMessageModerator : DomainQuerySingle<MessageDetail> { public int MessageId { get; set; } public int OwnerI...
5663fa7851f6a9d6812225f7bc132c205c17900e
C#
xuxiaowei007/Yarp
/Yarp/Yarp/AlarmActor.cs
2.671875
3
using System; using System.Collections.Concurrent; using System.Linq; using System.Threading; using System.Threading.Tasks; using Yarp.Messages; namespace Yarp { public class AlarmActor : IActor { private ConcurrentDictionary<Guid, Action<object>> _alarmHandlers = new ConcurrentDictionary<...
6121254d304920b2dcb2caf48b4ade93071c2ee2
C#
HRuivo/XNAParticles
/XNAParticles/XNAParticles/Particle.cs
2.515625
3
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; public class Particle { private VertexPositionColorTexture[] vertices; private short[] indices; private Vector3 startPosition; private Vector3 startVelocity; public Vector3 Position; public Vector3 OldPosit...
76942c7c2e85d1c798d8b7a4ddfc34dd0ada47c8
C#
abt31/Dodge-Bomb
/Assets/Scripts/Gameplay/Bomb.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// A bomb object /// </summary> public class Bomb : MonoBehaviour { #region Fields // Movement support Rigidbody2D rb2d; Timer moveTimer; // Speedup support Timer speedupTimer; float currentSpeed...
d0e60db7df60bb1da4d572ff0c2e8e0375f6a03d
C#
HPInc/More
/Test/BuildersTest.cs
2.5625
3
// © Copyright 2016 HP Development Company, L.P. // SPDX-License-Identifier: MIT using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace More { /// <summary> /// Summary description for BuildersTest /// </summary> ...
ec0860810d951c46918b012618ff71ce838b051f
C#
IslamKarakulov/Islam_Karakulov_11-709
/PS1/Часть2-задача12.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp16 { class Program { static void Main(string[] args) { Console.Write("Введите первое число: "); int first = Convert.ToInt32(Console.R...
5451574e40ce2640765ddf8340a7a7e0eae4e13d
C#
Kobe-24/amortizationCalculation
/FinanceCalculator/FinanceCalculator/ViewModel/PaymentsViewModel.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using CalculationLib; using OxyPlot; using OxyPlot.Axes; namespace FinanceCalculator.ViewModel { public class PaymentsViewModel : INotifyPropertyChanged, IDataErrorInfo ...
0d3ca647ce715ae7eea78ce855eeb41cdfbb007d
C#
DevilsTear/SmartEE.WeatherForecastService
/SmartEE.WeatherForecast.Service/Controllers/WeatherForecastController.cs
2.53125
3
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.Logging; using SmartEE.WeatherForecast.Service.Hubs; using SmartEE.WeatherForecast.Service.Services; using Swashbuckle.AspNetCore.Annotations; using System; using System.Diagnostics; using System.Threading.Tasks; namespace ...
ce0b6c861ebdac9f9416d97864fe21343647d79c
C#
StJohnSchruben/MageKnight
/MKModel/UserData.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MKModel { public class UserData { private string userName = string.Empty; private string password = string.Empty; private Guid id; private int rebellion...
6954e2f5914d63148f649fb0a6c0a72639182790
C#
kurumsaleyup/StackUp-Game
/Assets/Scripts/TileMovement.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TileMovement : MonoBehaviour { private const float BOUNDS_SIZE = 3.5f; private float tileTransition = 0.0f; private float tileSpeed = 2.5f; public void MoveTile(bool isMovingX, GameObject tile, int scoreCount, ...
0dd8fe0a5be583b1050f59f36b48f535871b81fe
C#
ojaisnielsen/dtu-2010-robust-programming
/RailwayProject/Node.cs
3
3
using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics.Contracts; namespace Model { public class Node { protected String id; protected List<Track> tracks; protected List<EndTrack> endTracks; protected NodeList<Node> reachableNodes; protected...
23245b27fac6109764ced87c96d0e20769f0bcb5
C#
stephwrites/MusicViewer
/MusicViewer/MusicViewer/Commands/RemoveAlbumCommand.cs
3.0625
3
using MusicViewer.Models; using System; using System.Windows; using System.Windows.Input; namespace MusicViewer.Commands { /// <summary> /// Removes selected album. /// </summary> /// <seealso cref="System.Windows.Input.ICommand" /> public class RemoveAlbumCommand : ICommand { /// <su...
f1ead003a2d48886fee7a944490977d19b2193c4
C#
wIksS/SoftuniExcersises
/CSharpFundamentalsMay2021/05.ObjectsAndClassesExcersise/ObjectsAndClassesExcersise/RandomGenerator.cs
3.0625
3
using System; using System.Collections.Generic; using System.Text; namespace ObjectsAndClassesExcersise { //class RandomGenerator //{ // public RandomGenerator(List<string> phrases) // { // Phrases = phrases; // } // public List<string> Phrases { get; set; } // ...
076975c936645ed15a26b3f9fe3c38ebcb66e9cc
C#
poojapawar142/ASP.Net-Core-and-Angular-Vehicle-Project
/Core/Models/Make.cs
2.734375
3
using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.DataAnnotations; namespace WebApplicationWithCore.Models { public class Make { public int Id {get;set;} [Required] [StringLength(255)] public string Name {get; set;} publ...
e4f42184efca61a530a21aba6e873a821cc27676
C#
aminvincent/SampleLoginUsingGlobalVariable
/SampleLoginUsingGlobalVariable/fmLogin.cs
2.703125
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 SampleLoginUsingGlobalVariable { public partial class fmLogin : Form { public fmLogin() { ...
fc1dd1c9d4ff841bccbd0174e80fe22c153d98f3
C#
kurema/RhinoArchitecturalLibrary
/BuildingHelper/BuildingObject.cs
2.734375
3
using Rhino; using Rhino.Geometry; using Rhino.DocObjects; using Rhino.Collections; using System; using System.IO; using System.Xml; using System.Xml.Linq; using System.Linq; using System.Data; using System.Drawing; using System.Reflection; using System.Collections; using System.Windows.Forms; using System.Collection...
e344c3d2b75719bb0ecae4226ca807c47bfeb6fa
C#
Kemuro/SelectionStatementsExercise
/SelectionStatementsExcercise/Program.cs
3.78125
4
using System; namespace SelectionStatementsExcercise { class Program { static void Main(string[] args) { int favoriteNumber = 11; Console.WriteLine(); Console.WriteLine("Welcome contestant, enter your name to begin."); Console.Write("Name: "); ...
8c88c595676159a8b95ce98d56755f52a7d2d41f
C#
vasylynka/CustomerInquiry
/CustomerInquiry.EntityFramework/Extensions/LinqDataExtension.cs
2.734375
3
using System; using System.Data.Entity; using System.Linq; using System.Linq.Expressions; namespace CustomerInquiry.EntityFramework.Extensions { internal static class LinqDataExtension { public static IQueryable<TEntity> Include<TEntity>( this IQueryable<TEntity> query, params ...
cd5c9093a59611a49dc862667ceb0a3cb073d7e0
C#
mhsts/BBS
/BBS.Core/Model/Monthly Report/PersonReport.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BBS { public class PersonReport { private Person innerPerson; private Decimal deposited; private Decimal spend; public PersonReport(Person p) { in...
44338862a2cb3a6e82e9d5241edc09a4c2bd7016
C#
hwqklove/RTD-Project
/Scripts/WayPoint/WayPointsGroup.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace WayPointsFamily { /// <summary> /// Setup the Waypoint routes /// It should connect start & and points /// </summary> public class WayPointsGroup : MonoBehaviour { public PositionConstr...
2b53f2b68405bfca1bbbef65918afdae1b7797c6
C#
nnaabbcc/exercise
/windows/pw6e.official/CSharp/Chapter12/ApplicationStateSave/ApplicationStateSave/SaveStatePage.cs
2.78125
3
using System; using System.Collections.Generic; using Windows.ApplicationModel; using Windows.Storage; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace ApplicationStateSave { public class SaveStatePage : Page { protected Dictionary<string, ...
4f1fb5c3baf35f42e51aa15dca6d2f4a4166a0dd
C#
hourgs/FCFDFE
/FCFDFE/Content/GridViewTemplate.cs
2.671875
3
using System; using System.Web.UI; using System.Web.UI.WebControls; namespace FCFDFE.Content { public class GridViewTemplate : ITemplate { //半成品 private DataControlRowType templateType; //定義 DataControlRowType 變數 private string columnName; //定義 columnName 變數 private object control; //定...
e5315b9cebae8d9cd3045d6d2b867781187abaeb
C#
kevinwall1992/PetriDish
/Assets/Math.cs
2.984375
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public static class MathUtility { public static int RandomIndex(int count) { return (int)(Random.value* 0.999999f* count); } public static T RandomElement<T>(IEnumerable<T> enumerable) { List<T> list = ...
ba73911fed7a67cc60b87f3569660d6aedd7bb9a
C#
shendongnian/download4
/latest_version_download2/42072-7094296-15804410-4.cs
2.53125
3
public override DbDataAdapter CreateDataAdapter() { return tail.CreateDataAdapter(); } Now the problem isn't exactly with this code but the fact that when Microsoft.Practices.EnterpriseLibrary.Data.Database class calls an intance of DbDataAdapter (tail in our case is SqlClientFac...
f53840307c56a0ff1937be2ffce18f2e7be6b3b7
C#
Kuoste/ShapefileSharp
/ShapefileSharp/Spec/BoundingBox2dField.cs
2.6875
3
using System; using System.IO; namespace ShapefileSharp.Spec { internal sealed class BoundingBox2dField : FixedField<IBoundingBox<IPoint>> { public BoundingBox2dField(WordCount offset) : base(offset) { Min = new PointField(offset); Max = new PointField(Min.Offset + Min....
aa1ffc99745cbeae8960f7700537b9eea1d41b3f
C#
RiceAndBeanz/Glimpse
/glimpse-master/Glimpse.Core/Services/General/Cryptography.cs
3.046875
3
using System.Text; using PCLCrypto; using System.Security.Cryptography; using System; namespace Glimpse.Core.Services.General { public static class Cryptography { //minimum recommended size of salt is 8 private const int saltSize = 8; //minimum recommended number of iterations is 100...
8aa93547e4599fae8a3b79cfcbf03d3f6a8f09f9
C#
SeppPenner/orleans
/samples/ShoppingCart/Silo/Extensions/ProductDetailsExtensions.cs
2.59375
3
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT License. namespace Orleans.ShoppingCart.Silo.Extensions; internal static class ProductDetailsExtensions { internal static Faker<ProductDetails> GetBogusFaker(this ProductDetails productDetails) => new Faker<ProductDetails>() ...
449240322669da9ff95e4c2fbc7ee4380d19832a
C#
Nachev/Telerik
/OOP/HomeWork/Object-Oriented-Programming-Principles-Part-II/Bank/Loan.cs
3.40625
3
namespace Bank { using System; public class LoanAccount : BankAccountBase { private const decimal NO_INTEREST = 0.0M; private const int COMPANY_NO_INTEREST_PERIOD = 2; private const int INDIVIDUAL_NO_INTEREST_PERIOD = 3; public LoanAccount(Customer customer, decimal balanc...
4c2a39a25252495d84bc96e620f865d43cacfb3a
C#
jp17paulo/api-desafio21dias-pais
/Controllers/PaisController.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using api_desafio21dias.Models; using api_desafio21dias.Servicos; using MongoDB.Bson; namespace api_desafio21dias.Controllers { [ApiController] public class PaisController : Controll...
7399fa46ec7746b7c2ff55ffcf77a157c15c5c7f
C#
MiloslavDamyanov/TelerikCSharpPartTwo
/MultidimensionalArraysTesting/MDATesting/ArrayReversTest/Program.cs
3.1875
3
using System; class Program { static void Main() { int[] arr = new int[16]; for (int i = 0; i < arr.Length; i++) { arr[i] = i + 1; } Array.Reverse(arr, 4, 4); Array.Reverse(arr, 12, 4); for (int i = 0; i < arr.Length; i++) { ...
4457ae551f505e135e81ae9d4c76458050928b44
C#
TheSkyEye1/labs
/ConsoleApp1/ConsoleApp3/Program.cs
3.609375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp3 { class Program { static void stest(int a) { int j = 0; for(int i=1;i<(a/2);i++) { if(a%i==0) ...
68497b51f265b20f1f66784a13c10d0a93f03db9
C#
ancient-lunatic/backend
/eleven/Models/contactInformation.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace eleven.Models { public class contactInformation { public string primary { get; set; } public string secondary { get; set; } public contactInformation(string val) ...
fd00b0c96b99f8359659258f029b065c1f958d89
C#
KameliqAleksandrova/STACKS-AND-QUEUES
/ReverseStrings/Program.cs
3.4375
3
using System; using System.Collections; namespace ReverseStrings { class Program { static void Main(string[] args) { string input = Console.ReadLine(); Stack stack = new Stack(); for (int i = 0; i < input.Length; i++) { char ch = ...
d17c1454bcd2bda79d2bb1ba7ac48926dd1f85bc
C#
elcinsevim/CarRentalProject
/DataAccess/Concrete/InMemory/InMemoryCarDal.cs
2.8125
3
using DataAccess.Abstract; using Entities.Concrete; using Entities.DTOs; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace DataAccess.Concrete.InMemory { public class InMemoryCarDal : ICarDal { // private List<Car> _c...
b4f13f41688d03d72681d8b334217ca976d7247a
C#
chk1226/MyRender
/MyRender/Source/MyEngine/Plane.cs
2.515625
3
using OpenTK; using OpenTK.Graphics.OpenGL; using OpenTK.Graphics; using System; namespace MyRender.MyEngine { class Plane : Node { protected Vector2 rect; protected int sliceX; protected int sliceY; public Plane(float width, float height, uint sliceX, uint sliceY, string id =...
d4a39744961e90dd3865184870742017ad3ddc3b
C#
Naviam/Home-Accounting-Old
/Naviam.DAL/DAL/AccountTypesDataAdapter.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Naviam.Data; using System.Data.SqlClient; namespace Naviam.DAL { public class AccountTypesDataAdapter { public static List<AccountType> GetAccountTypes() { return GetAccountTypes(false); } public stati...
ad31a679808dd955d81f62eb81aa1d595e377cf1
C#
toolgood/ToolGood.Bedrock
/ToolGood.Bedrock/Utils/SevenZip/SevenZipBase.cs
2.890625
3
namespace SevenZip { using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; using System.Threading; /// <summary> /// SevenZip Extractor/Compressor base class. Implements Password string, ReportErrors flag. /// </summary> p...
f6a3a3a263424f567d11207b539f539c2bad5b2f
C#
GuardianShell/SteamInviteHelper-ASF
/SteamInviteHelper-ASF/Action.cs
2.75
3
using System; namespace SteamInviteHelper_ASF { class Action : IEquatable<Action> { public string action { get; set; } public string reason { get; set; } public Action(string action, string reason) { this.action = action; this.reason = reason; }...
6ef3bc6b2c709343990497f9292f38a181de3b3b
C#
Waclaw-Nietzsche/DotNetFirstTask
/LinkedList/Program.cs
3.796875
4
using System; namespace LinkedList { public class Node { public string data; public Node next; public Node previous; public Node(string data) { this.data = data; next = null; previous = null; } } public class List ...
2d6a492540b6b150c7341878956cd5f71c838164
C#
enaukkarinen/BasCal
/BasCal_WCF_Host/BasCal_WCF_Host/DTO_Models/UpcomingEventDTO.cs
2.515625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace BasCal_WCF_Host.DTO_Models { public class UpcomingEventDTO : INotifyPropertyChanged ...
bf777851b324dac7cccbbcc6b2246bf798b73b9d
C#
kraigb/Altostratus
/Backend/Altostratus.Data/Conversation.cs
2.6875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; // You must manually fix the initial migrations and set the PK to non-clustered // .PrimaryKey(t => t.Co...
4b804f71cb34ea9587896acab5c999767d05ac18
C#
labradford/lab2-generics-and-idisposable
/Student.cs
3.59375
4
using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace Lab2 { public class Student : IDisposable { #region fields private bool _Disposed = false; public string FirstName { get; set; } public string LastName { get; set; } pu...
ea46a02c17416f9d554ccfd3c290913bfa4d49af
C#
tyburam/cs-data-structures
/cs-data-structures/DataStructures.Tests/DynamicArrayTests.cs
3.453125
3
using System; using FluentAssertions; using Xunit; namespace DataStructures.Tests { public class DynamicArrayTests { [Fact] public void Constructor_ForGoodParameter_CreatesDynamicAray() { //arrange + act const int length = 10; var da = new DynamicArra...
f2d48792b2cba90a082a35eae2d7fd5053d624a5
C#
Shkyrockett/engine
/Engine.Mathematics/Operations/Operations.Queries.cs
2.984375
3
// <copyright file="Operations.Queries.cs" company="Shkyrockett" > // Copyright © 2005 - 2020 Shkyrockett. All rights reserved. // </copyright> // <author id="shkyrockett">Shkyrockett</author> // <license> // Licensed under the MIT License. See LICENSE file in the project root for full license information. // </...
da8f1e513a06c4c1ed5ff93b2eedd3cc98ae0960
C#
pablofrommars/GGNet
/samples/GGNet.Demo/Pages/Covid19.razor.cs
2.53125
3
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using NodaTime; using NodaTime.Text; using GGNet.NaturalEarth; namespace Demo.Pages { public partial class Covid19 : ComponentBase { private static readonly LocalDatePattern pa...
14a14fd07b7bc02509afcb635d5b501cee4ee127
C#
JayBrewster/Junior-year-coding-class
/Semester 1/Archive 11-2-18/B.Brewster_Caesar Cipher/B.Brewster_Caesar Cipher/Program.cs
3.71875
4
using System; namespace ConsoleApp4 { class Program { static void Main(string[] args) { Console.WriteLine("press 1 to cipher"); Console.WriteLine("Press 2 to decipher"); int num = int.Parse(Console.ReadLine()); char[] alpha = "ABCDEFGHIJKLMNOPQRS...
8b56360e78eebc8c77bb6a629824621a88852a65
C#
oscarureta7/CafetoTest
/CafetoTest/JobLogger.cs
2.703125
3
using CafetoTest.Exceptions; using System; using System.Configuration; using System.IO; using System.Collections.Generic; namespace CafetoTest { public class JobLogger : IJobLogger { // Traditional singleton implementation, not used to enable dependency injection #region Singleton Implementati...
a6695337cb4754c475dd4ed4b0f4fb456eb5591d
C#
llenroc/twitter-stream-1
/src/Server/Throttle.cs
3.28125
3
using System; using System.Threading; using System.Threading.Tasks; namespace Server { public class Throttle { private readonly TimeSpan waitTime; private readonly SemaphoreSlim throttleActions; private readonly SemaphoreSlim throttlePeriods; private volatile int pending; ...
c0ca8f9a72565f19f610edb1740da1f77a7da901
C#
katyaRak/my_lab
/RES_lab_1/TestingCalc/Class1.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using RES_lab_1; namespace TestingCalc { public class Class1 { [Test] public void TestSum() { Calc calcTest = new Calc(); Assert.AreEqual(6, calcT...
cc4f2dc4fe479cadf6fd3f3944c1a9fc4aa36e62
C#
hasher116/Array
/Array/Program.cs
3.828125
4
using System; namespace Array { class Program { static void Main(string[] args) { task1(); Console.WriteLine(); task2(); Console.WriteLine(); task3(); Console.WriteLine(); Console.WriteLine(); task4...
f7ab76e22fce76dd771ff6e157db043cc1f0ddab
C#
Cuyler36/OcarinaTracker
/OcarinaTracker.Core/GraphicsUtilities.cs
2.859375
3
using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.Windows; using System.Windows.Media; using System.Windows.Media.Imaging; using Color = System.Drawing.Color; using FontStyle = System.Drawing.FontStyle; using Pen = System.Drawing.Pen; using PixelFormat = System.Drawing.Im...
3a7eca3ece0133dd65feb69389f61ee69c5b96b2
C#
gavin24/BusinessApp
/BusinessApp/BusinessApp/Services/QuotesService.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BusinessApp.Contracts.Repositories; using BusinessApp.Contracts.Services; using BusinessApp.Models; namespace BusinessApp.Services { public class QuotesService:IQuotesService { priv...
fcc2a2601ab8a86959c3784bc08f25d89813b9ac
C#
jackshea/leetcode
/LeetCodeTests/Problems/Medium/P0179_LargestNumberTests.cs
2.6875
3
using NUnit.Framework; namespace LeetCode.Problems.Medium.Tests; [TestFixture] public class P0179_LargestNumberTests { [Test] public void LargestNumberTest() { var test = new P0179_LargestNumber(); Assert.AreEqual("9534330", test.LargestNumber(new[] { 3, 30, 34, 5, 9 })); } }
a270a942b5db80484384647e752a161deb8f71c7
C#
nanococo/ProyectoNonogram
/Assets/Scripts/Backtracking.cs
2.546875
3
using System; using System.Collections.Generic; using System.Diagnostics; using Debug = UnityEngine.Debug; /// <summary> /// The Backtracking class is the main handler for all /// backtracking code solving the nonogram /// </summary> public class Backtracking { private readonly Matrix _matrix; private readon...
3c65254d9a895e31418fe61ed0c6c2e6af79dfcc
C#
oa4ajp/Belatrix_Clean_Code
/CleanCode/08 SwitchStatements/MonthlyStatement.cs
3.09375
3
using CleanCode.SwitchStatements; using System; namespace CleanCode._08_SwitchStatements { public class MonthlyStatement { private IMonthlyStatementService MonthlyStatementService { get; set; } public float CallCost { get; set; } public float SmsCost { get; set; } public float ...
29cdd1fdb13d0687ca9dbe451d2e0053e38cac3f
C#
RadoslawTaborski/PolishDiacriticMarksRestorer
/PolishDiacriticMarksRestorer/NgramAnalyzerTests.Unit/StringExtenderTests.cs
2.8125
3
using NgramAnalyzer.Common; using Xunit; namespace NgramAnalyzerTests.Unit { public class StringExtenderTests { [Theory] [InlineData(1, 3)] [InlineData(2, 4)] [InlineData(3, -1)] public void NthIndexOfTests(int n, int result) { const string str = "sm...
67d6a1c7a9cdb37a7bb2bbeb8cced1d9562a8504
C#
Hogfeldt/dungeon-crawler
/ServerApp/ServerApp/TurnExec/MoveValidator.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Castle.DynamicProxy.Generators.Emitters.SimpleAST; using ServerApp.GameState; namespace ServerApp.TurnExec { public class MoveValidator : IMoveValidator { public bool Validate(IPosition position, Dir...
d85f5665c73dbefdadaff56fcb41c8c8659452bd
C#
m12e/AccountStatistics
/AccountStatistics.Infrastructure/Exceptions/AuthorizationException.cs
2.640625
3
using System; namespace AccountStatistics.Infrastructure.Exceptions { /// <summary> /// Исключение, которое создается при ошибке авторизации /// </summary> public class AuthorizationException : AccountStatisticsException { private const string EXCEPTION_MESSAGE = "Ошибка авторизации по логину учетной ...
93ed734692c4e295a73a0c8f1c13d671449a8bd5
C#
godBu/TT-Project
/mvc-app/Controllers/HelloController.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; // For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 namespace mvc_app.Controllers { public class HelloController : Controll...
7052cb47a877bd49a655e343d16231c268f47f16
C#
rossoneroooo/-
/22. Умната Лили/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _22.Умната_Лили { class Program { static void Main(string[] args) { var age = int.Parse(Console.ReadLine()); var washingMashinePrice = double.Pa...
c8f3e54362d5723fbd212deef42cbdb99965a1ae
C#
traviswhatley/Guess-That-Number
/GuessThatNumber/Program.cs
4
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GuessThatNumber { class Program { static void Main(string[] args) { Console.WriteLine("I want to play a game human..."); GuessThatNumber(); ...
9ee2b063056a5be58cab99e27cd93debd323a3eb
C#
kolia854/winforms-university
/WindowsForms Lab2/Builder.cs
3
3
using System; namespace WindowsForms_Lab2 { class Builder { public Student BuildStudent() { var student = new Student(); return student; } public Student BuildStudentWAdress(AdressClass adress) { var student = new Stude...
f3589aaf63b287052249659ef732038ef0df5b37
C#
TBroedsgaard/SmartShopping
/src/SmartShoppingLibrary/Order.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.Serialization; namespace SmartShoppingLibrary { public enum OrderState { UnderConstruction, Placed, Packaged, Delivered } [Serializ...
5d34dbc32f1f32d982701e159d46d2c58471c25d
C#
jerryhwg/C-Sharp-Projects
/Task_5/task5_codes.cs
2.578125
3
### Views/Login.cshtml <input type="button" class="login-button clockInOutBtn" value="Clock In" onclick="VerifyUserForClock()"> <input type="submit" class="login-button" value="Log In"> //serialized login form function VerifyUserForClock() { /** * check both fields are filled in before submitting clockin/cloc...
f9d9a125337824a8f7d3859f8752e5b5f6a27783
C#
Webalap/W-ALAP
/Common/Paging/PagingResult.cs
2.734375
3
using System; using System.Diagnostics.Contracts; namespace Common.Paging { public sealed class PagingResult : IEquatable<PagingResult> { public static PagingResult Create( PagingParams pagingParams, int recordCount, int totalRecordCount ) { Contract.Requires( recordCount >= 0 ); ...
9a0037dfb944f7d1517a12cabe0fcb1f52cdf0da
C#
vfabing/simple-aspnetcore-react-shared-validation
/src/Services/ValidationDescriptorService.cs
2.5625
3
using FluentValidation; using FluentValidation.Internal; using FluentValidation.Resources; using FluentValidation.Validators; using Microsoft.Extensions.DependencyInjection; using simple_aspnetcore_react_shared_validation.Dtos; using simple_aspnetcore_react_shared_validation.Extensions; using System; using System.Coll...
390f963f8dd0ebe4abbd2a9c788939b58eaa6ce0
C#
blaskoa/TvDbScraper
/TvDbScraper/TvDbScraper/HtmlRepresentations/SeriesFields/SeriesStatusRepresentation.cs
2.65625
3
using System.Linq; using HtmlAgilityPack; using TvDbScraper.Model; namespace TvDbScraper.HtmlRepresentations.SeriesFields { public class SeriesStatusRepresentation : BaseHtmlFieldRepresentation<Series> { private const string SelectElementName = "select"; private const string SelectedAttributeName = ...
7f211c6e8d4866cfb604cbaf62cf2f85eaa09757
C#
blakeohare/pajama
/src/Pajama/Pair.cs
2.828125
3
namespace Pajama { internal class Pair<A, B> { public A First { get; private set; } public B Second { get; private set; } public Pair(A a, B b) { this.First = a; this.Second = b; } } }
efef1b346805c97c158812fa204dc57e52c777a7
C#
ComiKoma/ASPProjekat
/ASPProjekat/ASPProjekat.Implementation/Validators/CreateUserUseCaseValidator.cs
2.6875
3
using ASPProjekat.Application.DataTransfer; using ASPProjekat.EFDataAccess; using FluentValidation; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ASPProjekat.Implementation.Validators { public class CreateUserUseCaseValidator : AbstractValidator<CreateUserUseCaseD...
8c31aad4086ee75106988d4e87d62fc29225c683
C#
askguanyu/CodePlexDevLib
/main/product/Codes/DevLib.Expressions/PropertyEvaluator.cs
3.140625
3
//----------------------------------------------------------------------- // <copyright file="PropertyEvaluator.cs" company="YuGuan Corporation"> // Copyright (c) YuGuan Corporation. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace DevLib...
147f65666a038998de69ae3d68979cf995c58a7e
C#
robert-fekete/blog-sample-code
/Visitor-pattern/Visitor pattern/EmployeeSample/EmployeeReportGeneratingVisitor.cs
2.75
3
namespace EmployeeSample { internal class EmployeeReportGeneratingVisitor : IEmployeeVisitor { private int developers = 0; private int managers = 0; public float Ratio => ((float) managers) / developers; public void Visit(Developer developer) { developers+...
a0522bd61e09eae6ee2d92bdad082445dd1ef7ce
C#
IceTrooper/unity-base-2d-angry-birds-clone
/Assets/_Project/Scripts/Addons/DOTween/TMPTextExtensions.cs
2.546875
3
using DG.Tweening.Core; using DG.Tweening.Plugins.Options; using TMPro; namespace DG.Tweening { public static class TMPTextExtensions { public static TweenerCore<int, int, NoOptions> DOCounter( this TMP_Text target, int fromValue, int endValue, float duration ) { ...
dd851431f4e1e486642eaa7fdb94341ea860c3f4
C#
salma10/Problem-Solutions
/0076-minimum-window-substring/0076-minimum-window-substring.cs
3.515625
4
public class Solution { public string MinWindow(string s, string t) { Dictionary<char,int> dic = new Dictionary<char,int>(); foreach(char c in t) { if(dic.ContainsKey(c)) dic[c]++; else dic.Add(c, 1); } int left...
642cfb8fa3d01abdf806af5802c5d8cdaf015b3c
C#
SimoSdeAccount/detlillepengeinstitut
/DetLillePengeInstitut/Selector.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DetLillePengeInstitut { class Selector { List<Kunde> Kunder = new List<Kunde>(); private int thisKundeValg = 0; public Selector(List<Kunde> inKunder) { ...
04dde3c3fbcc18cd9d39b6057993d118d761013f
C#
stevenandrewcarter/exercism
/csharp/wordy/WordProblem.cs
3.9375
4
public enum Operation { plus, minus, multiple, divide } public class WordNode { public virtual int Calculate() { if (root == null) throw new System.ArgumentException(); return root.Calculate(); } public void Add(string aWords) { var words = aWords.Split(' '); for (var i = 0; i < wor...
cfa44fe643b542872969eb297998d8bc19f13531
C#
Kaike23/CoarsePessimisticLock
/Model/Base/EntityBase.cs
2.578125
3
using System; namespace Model.Base { using Infrastructure.Domain; using Session; public abstract class EntityBase : IEntity { private VersionLock _versionLock; public EntityBase(Guid id, Guid versionId) { Id = id; VersionId = versionId; } ...
5e4b279fdd89adc190343b40a0d49965f1bc6c65
C#
tgolla/ASP.NETCoreIdentityUnitTestingDemo
/WebApplication.Identity.Initialize/Program.cs
2.609375
3
using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using System; using System.IO; using System.Linq; using System.Threading.Tasks; using WebApplication.Identity; namespa...
cf0dc2410a69a6a2c657117099bbdd667a246161
C#
VB6Hobbyst7/Experiments
/022.StrCompare/StrCompare/Program.cs
3.796875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StrCompare { class Program { public static double CompareStr(string s1,string s2) { int c1 = 0;string s;string s3; s = (s1.Length >...
b15a219067de561b87ebd89357cac29840a7dffa
C#
stanac/EasyCrypto
/src/EasyCrypto/Internal/RsaKeyEncoder.cs
2.890625
3
namespace EasyCrypto.Internal; internal static class RsaKeyEncoder { public static RSAParameters Decode(string p) { var parts = p.Split('.'); string version = parts[0]; if (version != "00") { throw new ArgumentException("Version is not supported"); } ...
c7216a89409d90b37829ea316aa4d277e7330955
C#
tdownes57/ComputerScience_SortingEtc
/ComputerScience_Sorting_Lib/Big-O is N-Squared/SortingByBubbleSort.cs
2.546875
3
using System; namespace ComputerScience_Sorting_Lib { public class SortingByBubbleSort : ParentAbstractClass // : ISortingByTypeOfSort { public void TestSorting_TimesToComplete() { // // Added 3/1/2020 thomas downes // Double ms_ForArrayLengthN_...
ba5b32d7887d92bf902cb96682185670d865f0da
C#
jimon/adventofcode2019
/day19/Program.cs
2.9375
3
using System; using System.IO; using System.Linq; namespace day19 { [Flags] public enum Flags { Halt = 0b_0001, Error = 0b_0010, HaltWithError = Halt | Error }; class CPU { public static Int64[] LoadRom(string filename) { return File.ReadAl...
d71775d0b095fbfa354452b77860c9d86a915007
C#
anatolitrifonov/BestFor
/BestFor/BestFor.UnitTests/Domain/Entities/AnswerDescriptionFlagTests.cs
2.703125
3
using BestFor.Domain; using BestFor.Domain.Entities; using BestFor.Domain.Interfaces; using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using Xunit; namespace BestFor.UnitTests.Domain.Entities { [ExcludeFromCodeCoverage] public class AnswerDescriptionFla...
6077e7fbc091c48dd06f0f277ecb1e1192d7133d
C#
sshnet/SSH.NET
/src/Renci.SshNet/Messages/Connection/ChannelRequest/EndOfWriteRequestInfo.cs
2.609375
3
namespace Renci.SshNet.Messages.Connection { /// <summary> /// Represents "eow@openssh.com" type channel request information /// </summary> public class EndOfWriteRequestInfo : RequestInfo { /// <summary> /// Channel request name /// </summary> public const string Na...
c5f37f6b38aef87bb14892ddf33a0e523a361b20
C#
Linnea4453/Datalagring_Inl-mningsuppgift2
/ClassLibrary/Models/Comment.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using SQLitePCL; namespace ClassLibrary.Models { public class Comment { public Comment() { } public Comment(long id, long ...
6b83aace1a5f3d3af6fe198392d5cc6cabbc05aa
C#
cjdinger/SasDatasetToDataStep
/src/DS2Datalines.cs
2.515625
3
using System; using System.Collections.Generic; using System.Text; using SAS.Tasks.Toolkit; using SAS.Shared.AddIns; using System.IO; using System.Xml; using System.Data.OleDb; using System.Windows.Forms; namespace SASPress.CustomTasks.DS2Datalines { /// <summary> /// Class: DS2Datalines /// This class im...
2bb87942d7b5b35654f819e5f9ef666415d8e0de
C#
bubdm/Dnc.Core
/src/Dnc.WPF/ViewModels/RelayParameterizedCmd.cs
2.609375
3
using System; using System.Collections.Generic; using System.Text; using System.Windows.Input; namespace Dnc.WPF.ViewModels { public class RelayParameterizedCmd : ICommand { #region Public event. public event EventHandler CanExecuteChanged = (sender, e) => { }; #endregion ...
f69dc6881653e4a198fb652a7cf222f0bcf92602
C#
HilariousCow/OneOneOneTwoThree
/Assets/Scripts/Utils/MeshUtils/RibbonizeMesh.cs
2.625
3
using System.Collections.Generic; using UnityEngine; using System.Collections; public class RibbonizeMesh { public static Mesh RibbonizeLineMesh(Mesh inMesh) { if (inMesh.GetTopology(0) != MeshTopology.LineStrip) { Debug.LogError("Sorry, wrong topology"); } //rep...
2fab3c7283663b5175df3e2047464312cad47a94
C#
Ataides/Estudo
/TISelvagemCurso/UIConsole/ProdutoAplicacao.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UIConsole { public class ProdutoAplicacao { public DbSelvagem db { get; set; } public ProdutoAplicacao() { db = new DbSelvagem(); } ...
222964b2c35a5bf901521ca5aad14124d7f3818f
C#
kekewong/sitecore
/SingleSignOn/SingleSignOn.Core/Services/IUserRepository.cs
2.765625
3
using System; using System.Data; using System.Data.SqlClient; using NLog; using SingleSignOn.Core.Domain; using SingleSignOn.Core.DTOs; using SingleSignOn.Core.Mediators.Messages; namespace SingleSignOn.Core.Services { public interface IUserRepository { User Get(string username, string password); ...
cbca030cf18cbf7e3a9306c4844adc89a579dfaa
C#
dotnet/runtime
/src/coreclr/tools/Common/TypeSystem/Canon/TypeSystemContext.Canon.cs
2.671875
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using Interlocked = System.Threading.Interlocked; using Debug = System.Diagnostics.Debug; namespace Internal.TypeSystem { // Includes canonicalization objects loc...
adbbe405eeb354621bf9acdfb315409be4c3c0ea
C#
cpneale/Challenges
/Ogi.InterviewChallenges.Tests/NetDev/StaticTestMethodsTests.cs
3.03125
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Text; using System.Collections.Generic; namespace Ogi.InterviewChallenges.NetDev.Tests { [TestClass()] public class StaticTestMethodsTests { [TestInitialize()] public void Setup() { } [TestMethod()] ...
c1e9c3d3e97b12d8a948ea7a54647422edd02429
C#
Steffkn/SoftUni
/03.CSharpDev/02.OOP_Basics/02.DefiningClasses-Exercise/09.RectangleIntersection/Rectangle.cs
3.375
3
public class Rectangle { public string Id { get; set; } public double Width { get; set; } public double Height { get; set; } public Point TopLeftPoint { get; set; } public Point BottomRightPoint { get; set; } public Rectangle(string id, double width, double height, Point topLeftPoint) ...