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 |
|---|---|---|---|---|---|---|
cec0b34188a552110bc258feba758601891b964a | C# | zhoulk/u3d-sanguo | /Assets/Scripts/Utils/ConvertHelper.cs | 3.09375 | 3 | using System;
using System.Text;
using System.Collections.Generic;
using UnityEngine;
public class ConvertHelper
{
public static Dictionary<int, string> numDic = new Dictionary<int, string>{
{0,"零"},
{1,"一"},
{2,"二"},
{3,"三"},
{4,"四"},
{5,"五"},
{6,"六"},
{7,"七"},
{8,"八"},
{9,"九"},
};
public sta... |
54a51858acc80390a136830f726a33a129942879 | C# | 210913-USF-NET/P0-Tenzin-Woesel | /DL/DBProductRepo.cs | 2.953125 | 3 | using System.Collections.Generic;
using Model = Models;
using Entity = DL.Entities;
using System.Linq;
using DL.Entities;
using System.Data.Common;
namespace DL
{
public class DBProductRepo : IProductRepo
{
private Entity.P0TenzinStoreContext _context;
public DBProductRepo(Entity.P0TenzinStore... |
fee4ed90f5c396af939b24ebd9cc50d7ffbc4ab5 | C# | trevisharp/dotflow | /Audio/Processing/ForSampleAudioProcessing.cs | 2.875 | 3 | using System;
namespace Flow.Audio.Processing
{
public static class ForSampleAudioProcessing
{
public static Sound ForSample(this Sound sound, Func<double, double> op)
{
foreach (var channel in sound.Channels)
{
for (int n = 0; n < channel.Length; n++)
... |
510e648a10a91c0afacde896b2737c1854e15fa3 | C# | pedr0206/AuctionHouseWCFWithElitsa | /AuctionHouseWCFWithElitsa/AuctionItem.cs | 2.515625 | 3 | using System;
using System.Runtime.Serialization;
namespace AuctionHouseWCFWithElitsa
{
[DataContract]
public class AuctionItem
{
[DataMember]
public int ItemNumber { get; set; }
[DataMember]
public string ItemDescription { get; set; }
[DataMember]
public do... |
9f7cef776346378a6aa4a059e899d5c3a3253911 | C# | Wallacefreixo/TCC | /Software/Dados/ReceituarioDados.cs | 2.59375 | 3 | using Negocio;
using System;
using System.Collections.Generic;
using System.Data.SqlServerCe;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Dados
{
public class ReceituarioDados
{
public void InserirReceituario(Receituario _receituario)
{
try
... |
fec85592f335983f4ebda87f4483ce82238e99b8 | C# | nickdurcholz/ttime | /ttime/ReportCalculator.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace ttime
{
public class ReportCalculator
{
private readonly Storage _storage;
private readonly ReportingPeriod _period;
private readonly DateTime _fromDate;
private r... |
dcf9f9e85ed809f9b46e6582c1c85607508b487e | C# | rgparkins/netcore.cms | /server/metadata/MongoMetadataStore.cs | 2.515625 | 3 | using System.Threading.Tasks;
using MongoDB.Driver;
using System.Linq;
namespace Parkwell.cms.server.metadata
{
public class MongoMetadataStore : IFetchMetadata, IStoreMetadata
{
IMongoDatabase _database;
public MongoMetadataStore(IMongoDatabase database)
{
_database = data... |
ff684db55fd3766c743d954796945c0fd4162b38 | C# | DanielaR30/evaluacion | /evaluacion/billetera.cs | 3.375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace evaluacion
{
class Billetera
{
//Es para definir todas las propiedades
#region propiedades
public Double DineroInicial { get; set; }
public Double Retir... |
237336dc87f90e3544249672805adec382158688 | C# | s455016457/study_Xamarin.Form | /XamarinForm/XamarinForm/Pages/Control/TestLabelPage.cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace XamarinForm.Pages.Control
{
public class TestLabelPage : ControlBasePage
{
public TestLabelPage() : base()
{
Title = "Label标签";
}
protected overrid... |
cedf26ad8da16c4cfe549d7f9c15c73aab0cb2f8 | C# | gunr2171/AdventOfCode2015 | /AdventOfCode.Day06.Tests/Day06Tests.cs | 2.890625 | 3 | using System;
using NUnit.Framework;
namespace AdventOfCode.Day06.Tests
{
[TestFixture]
public class Day06Tests
{
private const int TOTAL_LIGHTS = 1000000;
[TestCase("turn on 0,0 through 999,999", TOTAL_LIGHTS)]
[TestCase("toggle 0,0 through 999,0", 1000)]
public void OnOf... |
63245a1084cce4233c97269bf18d01a5ee93d057 | C# | cammpam/Lab05-Cameron | /Lab05-Cameron/MusicFest.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lab05_Cameron
{
class MusicFest : Concerts
{
public string Location()
{
return "Outdoors";
}
public override string Crowd()
{
... |
1300c4a78f9c36807779add678c78028757ceab9 | C# | Firyuza/Algorithms-101 | /MatrixMedian/Median.cs | 3.65625 | 4 | namespace MatrixMedian
{
using System.Collections.Generic;
public class Median
{
public IList<int> sortedList;
public int medianPosition;
public int GetMedian(int rows, int columns, int[][] matrix)
{
sortedList = new List<int>();
medianPosition = ... |
09d2f337d5de440f410eeb00ecf3473f7387c7f8 | C# | florinleon/ActressMas | /ActressMAS v2.1/ActressMas Source Code/ClientServer/SocketServerLib/AbstractSocketServer.cs | 2.625 | 3 | using System;
using SocketServerLib.SocketHandler;
using System.Security.Cryptography.X509Certificates;
using System.Net.Sockets;
using System.Threading;
using System.Net;
using System.Diagnostics;
using System.Net.Security;
using SocketServerLib.Message;
using System.Security.Authentication;
using SocketServerLib.Thr... |
836ee2b8cf1f6d53875cba3f33d308b7d939dceb | C# | ElcoTeam/MagnaOld | /A-MGMES_Demo_Solution10-10版本/A-MGMES_Demo_Solution10-10版本/A-MGMES_Demo_Solution10-10版本/Tools/NumericParse.cs | 3.125 | 3 | using System;
namespace Tools
{
public class NumericParse
{
// Methods
public static object IsBoolNull(bool? num)
{
if (!num.HasValue)
{
return DBNull.Value;
}
return num;
}
public static... |
4d2eaaa66aaeb808b89812477e9a504f92b29d46 | C# | x2bool/tdsharpgen | /TDLib.Api/Generator.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace TdLib
{
class Generator
{
static List<TDType> _types = new List<TDType>();
static List<TDFunc> _funcs = new List<TDFunc>();
static void Main(string[] args)
... |
00d1e6d3aa71c85e8b9e4972088467a3834c42db | C# | VladimirKanenkov/Patterns_2018 | /TemplateMethod/TemplateMethod/Templates/SecretDocumentTemplate.cs | 3.03125 | 3 | using System;
using System.Text;
namespace TemplateMethod.Templates
{
class SecretDocumentTemplate: StringTemplate
{
public override string GetFirstLine()
{
return "TOP SECRET\r\n";
}
public override string EncodeString(string text)
{
var plainT... |
ab13ee61e89b9abf410556c955c99660ab03a89e | C# | JonathanPlatner/FLOpt | /Flopt/Flopt/Analysis.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Flopt
{
class Analysis
{
private static float ParasiticDrag(Wing wing, float liftCoefficient, float velocity)
{
float reynoldsNumber = Environme... |
461fe0213341f933b4fc478cbad394efd0058959 | C# | DiegoJVD/Ejercicios_LibroCSharp | /Tarea_5/Ejercicio10_2/Program.cs | 3.234375 | 3 | using System;
using System.Collections;
namespace Ejercicio10_2
{
public class Estudiante
{
string nombre;
string apellido;
int edad;
int cantidadMaterias;
String curso;
public Estudiante(string nombre, string apellido, int edad, int cantidadMaterias, string c... |
16ce593416881767a55804106f4781474db8c3ee | C# | dkrusky/Steam-Keys-Storage | /Keys Store/KeysDAO.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.Text;
namespace Keys_Store
{
class DBConnection
{
public static string Password { get; set; } = "";
public static bool IsEncrypted
{
get { return Password != ""; }
}
pub... |
a431ec29d271e6a3f19c12998199522df69ddafa | C# | emilorjes/PrimeNumbers | /PrimeNumbers/Helpers/GlobalHelper.cs | 4.21875 | 4 | using System;
using System.Collections.Generic;
namespace PrimeNumber.Helpers
{
public static class GlobalHelper
{
/// <summary>
/// This method gets the highest number in a list with help of an for loop.
/// The built-in method Max() could have been used instead of this method, but th... |
8555c64e2ef5ed8eb5faa1c4b7e0ba269a178d86 | C# | MateusCosta/CSharp-Practice-LINQ | /Models/Account.cs | 2.78125 | 3 | using System.Threading;
namespace linq_practice.Models
{
public class Account
{
static int nextId;
public int Number { get; private set; }
public int UserId { get; private set; }
public double Balance { get; private set; }
public Account(int userId, double initialBala... |
3030e65bb65933b5af3bac25633660cdfaa52f47 | C# | Timothy-Kornish/cSharp_and_.Net | /anonymous_functions/anon_delegate_function.cs | 3.8125 | 4 | using System;
delegate void NumberChanger(int n);
namespace DelegateApplication {
class TestDelegate {
static int num = 10;
public static void AddNum(int n) {
num += n;
Console.WriteLine("AddNum Method: {0}", num);
}
public static void MultNum(int n) {
num *= n;
Console.WriteLine("MultNum Me... |
808d7aaaac63846e5dbdcb24227860746390eedc | C# | jeffbrock/Gtv | /Gtv.4/Data/GtvTripRepo.cs | 2.875 | 3 | using System.Collections.Generic;
using gtv.Models;
using NoDb;
using System.Linq;
namespace gtv.Data
{
public class GtvTripRepo
{
private const string TripsRoot = "trips";
private IBasicQueries<Trip> _queries;
private IBasicCommands<Trip> _commands;
public GtvTripRepo(IBasi... |
9fa005b86aaa5078d3731073a1b4fd7d6f09baa7 | C# | happylays/tbb2 | /Project/Study/Study/Class1 - 复制(3).cs | 2.578125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Study
{
public class Fsm : FsmBase, IFsm
{
T m_Owner;
Dictionary<string, FsmState> m_States;
Dictionary<string, Variable> m_Datas;
FsmState... |
5d16965306a06820b15b8dc49e7bcdaa1ee8c186 | C# | webvul/all | /2020项目/总项目解决方案/美团/登陆.cs | 2.625 | 3 | using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Management;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using... |
51abc18879e47e49a248b7965ce53aa6290bddc6 | C# | Baezon/Dead-Stars | /Assets/Scripts/UI/Selection.cs | 2.8125 | 3 | using UnityEngine;
using System.Collections.Generic;
using System.Collections;
using System;
public class Selection : IDictionary<Entity, Action>
{
private Dictionary<Entity, Action> selected = new Dictionary<Entity,Action>();
public ICollection<Entity> entities
{
get
{
return Keys;
}
set
{
Cle... |
b77cbbb17c2ce194f9b7fdc826b755743159937d | C# | vladimir26061984/CodeProgParse | /CodeProgParse/Form1.cs | 2.78125 | 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;
using System.IO;
namespace CodeProgParse
{
public partial class Form1 : ... |
87809d893aaa05ed1d4294160f4c68599650dfc8 | C# | StewMcc/ALostRobot | /Assets/LittleLot/AndroidExtensions/AndroidTvChecker.cs | 2.53125 | 3 | //#undef UNITY_EDITOR
#if UNITY_ANDROID && !UNITY_EDITOR // stop auto formatter removing unused using.
using UnityEngine;
#endif
// @StewMcc 21/02/2018
namespace LittleLot.Android {
/// <summary>
/// Used to retrieve if the hardware is set to AndroidTv or FireTv
/// </summary>
public static class AndroidTvCheck... |
8b3052702f09ee49638f8d67bc579f7b87678577 | C# | erichiller/ScottPlot | /src/ScottPlot5/ScottPlot5/AxisLimits.cs | 3.109375 | 3 | namespace ScottPlot;
/// <summary>
/// This object represents the rectangular visible area on a 2D coordinate system.
/// It simply stores a <see cref="CoordinateRect"/> but has axis-related methods to act upon it.
/// </summary>
public struct AxisLimits
{
public CoordinateRect Rect;
public bool XHasBeenSet =... |
dfd8810007e67e6b0408ea9d9ad22e8d85cb6862 | C# | luizzuchinali/seemus-backend | /src/Seemus.Api/Validators/Account/ChangeAccountPasswordDto.cs | 2.65625 | 3 | using FluentValidation;
using Seemus.Domain.Dtos.Account;
namespace Seemus.Api.Validators.Account
{
public class ChangeAccountPasswordValidator : AbstractValidator<ChangeAccountPasswordDto>
{
public ChangeAccountPasswordValidator()
{
RuleFor(x => x.CurrentPassword).MaximumLength(100... |
e43692934a39121f0cc8fb27c33b7b8f9d58a64d | C# | HedinRakot/Zierer | /ProfiCraftsman/ProfiCraftsman/ProfiCraftsman.API/Controllers/AutoMaterialHelper.cs | 2.625 | 3 | using ProfiCraftsman.Contracts.Entities;
using ProfiCraftsman.Contracts.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProfiCraftsman.API.Controllers
{
public static class AutoMaterialHelper
{
public static void Calc... |
c79277fc2d2e6227e7d5ae476015511086b0f9bb | C# | bertvan/FileTools | /ToolRunner.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FileTools
{
class ToolRunner
{
private string[] args;
private Dictionary<string, ToolBase> tools = new Dictionary<string, ToolBase>();
public ToolRunner(string[] args)
{
this.args = args;
}
internal void... |
4cdc1e4dd7587332a91313140a51cdcf5e0acb17 | C# | ysazak/TVMazeScraper | /src/TVMazeScraper/TVMazeHttpClient.cs | 2.625 | 3 | using Polly;
using Polly.Extensions.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace TVMazeScraper
{
public class TVMazeHttpClient
{
private const int RetryCount = 6;
private const int WaitSec = 5;
... |
7c20e790da1d5484302775ed4e2f6a83ef501c68 | C# | bubdm/sqlite3-jiaparts-csharp | /Common/Logger.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;
using System.Reflection;
[assembly: log4net.Config.XmlConfigurator()]
namespace Jiaparts.Common.Log
{
/// <summary>
/// 日志类
/// </summary>
public class Logger
{
private stati... |
a6fac0ccbdcd8e3bae9684261905bb3296a431bf | C# | GeorgeMoura/.NET-Demos | /EmployeeHerançaPolimorfismo/EmployeeHerançaPolimorfismo/Entidades/Employee.cs | 3.578125 | 4 | using System;
using System.Collections.Generic;
using System.Text;
namespace EmployeeHerançaPolimorfismo
{
class Employee
{
//esses atributos são PROPRIEDADES, implementações do C# pra facilitar gets e sets na hora de chamar esses métodos, aqui tou usando AUTO PROPERTIES
public string nome { g... |
5b67a0d4979b815f221bf49ac8a89b3a122cc082 | C# | harikrishna43/FinalProject | /FinalProject/Migrations/Configuration.cs | 2.625 | 3 | namespace FinalProject.Migrations
{
using EX5.Models;
using Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfiguration<FinalProject.Dal.General... |
bc4b93aaec7e808ac20ac8968238c0df12862f54 | C# | skojima-ii-kyoto-u/KyotoOpen | /RoundSF1/Logic/Rule.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PointViewerUtility;
namespace RoundSF1.Logic
{
public class Rule : RuleBase
{
private const int addPoint = 2;
private const int doubleBonus = 1;
public bool IsDire... |
1608cc1dbb2adc08ab297525682a814c3248d192 | C# | scsewell/UnityFramework | /Scripts/IO/Compression.cs | 3.53125 | 4 | using System.IO;
using System.IO.Compression;
namespace Framework.IO
{
/// <summary>
/// A class containing data compression utilities.
/// </summary>
public static class Compression
{
/// <summary>
/// Compresses data using the Deflate algorithm.
/// </summary>
///... |
1e2f74059d6cea9390b0409f40bfc2cb38325484 | C# | skt90u/skt90u-framework-dotnet | /Backup/JUtil/ResourceManagement/ResourcesLoader.cs | 2.796875 | 3 | using System;
using System.Collections;
using System.IO;
using System.Reflection;
namespace JUtil.ResourceManagement
{
public sealed class ResourcesLoader
{
private Hashtable resources = new Hashtable();
private readonly string fileName;
public ResourcesLoader(string fil... |
5b7e17e11447d0dedd703587ff190e75eab32046 | C# | 635449705/AaronJi | /student sample/Chap07/Partially Filled Array/Partially Filled Array/Form1.cs | 3.703125 | 4 | 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;
using System.IO;
namespace Partially_Filled_Array
{
public partial class Form1 : Form
{
public Form1()
{
... |
5eedefd7f938004f3d4d16bc30e97d68e144d845 | C# | theoners/C-sharp-Advanced-January-2019 | /Multidimensional Arrays - Exercise/7. Knight Game/KnightGame.cs | 3.734375 | 4 | namespace _7._Knight_Game
{
using System;
public class KnightGame
{
public static void Main()
{
int matrixSize = int.Parse(Console.ReadLine());
var matrix = new char[matrixSize][];
GetMatrix(matrix);
var removeKnights = 0;
while ... |
7d04e400ecbbde68068fae10baa3c14da4423ed9 | C# | npsavin/Excelerator | /Excelerator/Excelerator.ClosedXml/Export/ClosedXmlExcelGenerator.cs | 2.515625 | 3 | using ClosedXML.Excel;
using Excelerator.ClosedXml.Export.Mappings;
using Excelerator.Export;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Excelerator.ClosedXml.Export
{
public class ClosedXmlExcelGenerator<TModel> : IExcelGenerator<TModel>
where TModel : class
{
... |
247ada3caa9d168085fd65eb71408e32100acd55 | C# | ZapDragon/DreadBot | /source/Logger.cs | 2.546875 | 3 | #region License
//MIT License
//Copyright(c) [2019]
//[Xylex Sirrush Rayne]
//
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//... |
62f6385b7846fd9d7e9c316f2532dbbe30e52fe5 | C# | marcoaurelioit-zz/marco-clean-architecture-webapi | /src/Marco.CleanArchitecture.Domain/Products/Product.cs | 2.984375 | 3 | using Marco.CleanArchitecture.Domain.ValueObjects;
using System;
namespace Marco.CleanArchitecture.Domain.Products
{
public class Product : IEntity, IAggregateRoot
{
public Guid Id { get; private set; }
public Name Name { get; private set; }
public string Description { get; privat... |
35358722c61833d03e6c37c3b03aa2a997b6c4f1 | C# | grathad/GBlason | /Grammar.PluginBase/Token/TokenResultBase.cs | 2.625 | 3 | using Grammar.PluginBase.Token.Contracts;
namespace Grammar.PluginBase.Token
{
/// <inheritdoc />
/// <summary>
/// Models that represents the result after consumming a token in the origin
/// This include the token and the new position in the origin after consumption
/// </summary>
public abs... |
547bb325f831a3d868b4becf656b31151ef53190 | C# | shendongnian/download4 | /first_version_download2/58762-3571968-7456819-2.cs | 3.234375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UnicodeDecodeConsoleApplication
{
class Program
{
static void Main(string[] args)
{
char c = '\u73a9';
char[] chars = {c};
... |
88311b58aa41551ab11c31d51d571ad45e156c56 | C# | matiii/solidry | /src/Solidry/Extensions/Order.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using Solidry.Results;
namespace Solidry.Extensions
{
public static class Order
{
public static T First<T>(this IReadOnlyList<T> collection)
{
if (collection.IsNullOrEmpty())
{
throw new ArgumentOutOfRangeE... |
d398cd4935f0d6711d128f3e084a191af39a3e4a | C# | TwoFX/Ten | /Ten/Ten/RandomBot.cs | 2.75 | 3 | /*
* RandomBot.cs
* Copyright (c) 2016 Markus Himmel
* This file is distributed under the terms of the MIT license.
*/
using System;
namespace Ten
{
[SelectorName("Random Bot")]
class RandomBot : IMoveProvider
{
private Random rng = new Random();
private int fieldSizeX, fieldSizeY;
public RandomBot(Gam... |
aae26006af5e5329bd65e70477a2ab247f34defc | C# | NameInikita/Snake | /Snake/Snake/Program.cs | 3.140625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Snake
{
class Program
{
static void Main(string[] args)
{
Console.SetBufferSize(80, 25);
HorizontalLines hl = new Horiz... |
3ac3edbd0dbf51fe90e510a6a21818ba71619b95 | C# | madskristensen/MarkdownEditor | /src/MarkdownEditor.Shared/Helpers/Extensions.cs | 2.6875 | 3 | using System.Globalization;
using System.IO;
using System.Text.RegularExpressions;
using Markdig.Syntax;
using Microsoft.VisualStudio.Text;
namespace MarkdownEditor
{
public static class Extensions
{
public static Span ToSimpleSpan(this MarkdownObject block)
{
return new Span(block.... |
7e454c14fcdaf5f079e3a822533d3cbdc05ad9a5 | C# | osucubs/ApiBoilerPlate | /ApiBoilerPlate/DTO/Request/CreatePersonRequest.cs | 2.5625 | 3 | using FluentValidation;
using System;
namespace ApiBoilerPlate.DTO.Request
{
public class CreatePersonRequest
{
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime DateOfBirth { get; set; }
}
public class CreatePersonRequestValidator : Ab... |
8f0ec5959a69dd74ff722e1abd7831ed5de86073 | C# | saludnqn/laboratorio | /Business/Data/Laboratorio/Mensaje.cs | 2.546875 | 3 |
using System;
using System.Collections;
namespace Business.Data.Laboratorio
{
/// <summary>
/// Generated by MyGeneration using the NHibernate Object Mapping template
/// </summary>
[Serializable]
public sealed class MensajeInterno: Business.BaseDataAccess
{
#region Private Members
private ... |
cee20ade28dcc65b59a2877762bfc04809caf622 | C# | Gilbert-Azevedo/2020_POO | /Lista12/Exercicio07/Program.cs | 3.640625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exercicio07
{
class Program
{
static void Main(string[] args)
{
// Referência para o objeto
Data x;
// Dados do objeto
... |
1685d1b1493ae3e01ccf98560d82b8ef2ec78069 | C# | zonex5/Hardware-Parts | /HardwareParts/AddCaming.cs | 2.65625 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.Common;
using System.Data.SQLite;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace HardwareParts
{
public partial class AddCaming : Form
{
... |
668060df2ca258364337cbeff15166f23c59fad7 | C# | JonP-Personal/ShortcutLister | /ShortcutLister/Log.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShortcutLister
{
public class Log
{
public static void Out(String sLine)
{
// Add logic to write to file later if desired
System.Diagnostics.Deb... |
4a1fc8c6ff6904b651a460e7c71e77a937131a1a | C# | AhmetSaitCalisir/Ucuza-Git | /UcuzaGit/UcuzaGit/Entities/Tur.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
namespace UcuzaGit.Entities
{
public class Tur
{
public Tur(int ID)
{
SqlConnection bag = new SqlConnection(@"Data... |
7ddf8f4b967a86b4649ab4e083a3ebc730130d81 | C# | vladimir-koloski/C-Homeworks | /Homework01/SEDC.VideoRental/SEDC.VideoRental.Services/Services/AdminService.cs | 2.671875 | 3 | using SEDC.VideoRental.Data.DataBase;
using SEDC.VideoRental.Data.Models;
using SEDC.VideoRental.Services.Helpers;
using SEDC.VideoRental.Services.Loaders;
using SEDC.VideoRental.Services.Menus;
using System;
using System.Collections.Generic;
using System.Text;
namespace SEDC.VideoRental.Services.Services
{
publi... |
08fb23446d8e8075c3062d2e6eee43a0b087a3cd | C# | PayneKang/ProjectEulerResolves | /Problem088/Program.cs | 3.078125 | 3 | using Kang.Algorithm.BaseLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Problem088
{
class Program
{
static int maxk = 12001;
static int[] n = new int[maxk];
static void getPsn(int num, int sump, int product, int start)
... |
286d823727498ae2ede96465ad5e2b41b41919a1 | C# | morvader/TDD | /KatasTDD/KatasTDD/ListaUltimoUsado/NUnitListaUltimoUsadoTest.cs | 3.203125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace KatasTDD.ListaUltimoUsado
{
[TestFixture]
public class NUnitListaUltimoUsadoTest
{
[TestFixtureSetUp]
public void SetupMethods()
{
}
[TestFixtureTe... |
07742eeec1adc0ee21dd2ce8e64c70bf6ad88c0c | C# | jayendralucky/taazaatrainingassignment | /Assignment 7/selfanalyse/Program.cs | 2.8125 | 3 | using System;
using selfanalyse.Computer;
namespace selfanalyse
{
class Program
{
static void Main(string[] args)
{
var vicky =new Lucky(101,2.0);
var rohan =new Lucky(102,3.0);
var cmp = vicky.ComputerName();
Console.WriteLine(cmp);
... |
423a20ec5ffb4e3b1c72ee79f7d87adb43cfc2c7 | C# | jjnguy/PublicFun | /Image Manipulation/Image Manipulation/UI.cs | 3.125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Threading;
using System.IO;
namespace Image_Manipulation
{
class UI
{
static void Main(string[] args)
{
Convolution[] convolutions;
try
{
convolutions = GetConvo... |
812ecae38a89269e835faf703b1b945a2bd5b45c | C# | ismailucel/Vitamin_Deposu | /VitaminDeposu/VitaminDeposu/Çilek.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace VitaminDeposu
{
class Cilek : Meyve //meyve sınıfından kalıtım alan çilek sınıfı
{
public Cilek(int miktar, int verim, Image image) //yapıcı meto... |
16f4f676e575bd0f00e16141acc234cc62d6bb86 | C# | TorrinoDev/SimpleRESTService | /ModelLib/model/Item.cs | 2.953125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ModelLib.model
{
public class Item
{
public int Id { get; set; }
public string Name { get; set; }
public string ItemQuality { get; set; }
public double AmountQuantity { get; set; }
... |
f4e2ccfe2d0267ce7679db5d0b2d03e9f050cf8c | C# | lorenzodonini/monopoly | /Monopoli/Monopoli/View/DefaultCellsFactory.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace Monopoli.View
{
class DefaultCellsFactory : ICellsFactory
{
public enum Position { BOTTOM = 0, LEFT = 1, TOP = 2, RIGHT = 3 };
private int _rectCellWidth;
... |
e12f15a3dcf475785a2d16ce3b2d8ac68f74e069 | C# | MaxZuber/BakingApp | /Banking.DataAccess/Repositories/Impl/UserRepository.cs | 2.796875 | 3 | using System.Collections.Generic;
using System.Linq;
using Banking.DataAccess.DataContext;
using Banking.Models;
namespace Banking.DataAccess.Repositories.Impl
{
public class UserRepository : BaseRepository<Account>, IUserRepository
{
public UserRepository(DataAccsessContext context): base(context)
... |
c5d8b2140cb83206e568d0d9c12b7ac9fbd27792 | C# | vishalpachori25/Algorithm | /AlgoPracticce/Sorting/MergeSort.cs | 4.09375 | 4 | using System;
namespace AlgoPracticce
{
/// <summary>
/// Devide and conquer method for Merge sort.
/// </summary>
class MergeSort
{
MergeSort()
{
int[] array = { 4, 2, 34, 12, 456, 32, 25, 4, 54, 5 };
Console.Write("!Merge Sort ! Given Array is :");
... |
78a4f6d37ac07e71f1316e28467e09b8b58b2229 | C# | evaldosilva/Array-Sort | /ArraySort/Program.cs | 3.921875 | 4 | using System;
namespace ArraySort
{
class Program
{
static void Main(string[] args)
{
int[] arrayA = new int[] { 1, 3, 5, 7, 9 };
int[] arrayB = new int[] { 2, 4, 6, 8, 10 };
int[] sortedArray = MergeSortedArrays(arrayA, arrayB);
Console.WriteLi... |
d49d73055ed2bbd49d84251133762a394d4b1f40 | C# | YurkoUA/ViberScraper | /ViberScraper/ViberScraper/OptionsHelper.cs | 2.59375 | 3 | using System;
using System.IO;
using Newtonsoft.Json;
using ViberScraper.Models;
namespace ViberScraper
{
public static class OptionsHelper
{
const string FILE_NAME = "scrapper-options.json";
public static ScrapperOptions GetOptions()
{
var path = $"{Environment.CurrentDir... |
418e4c7924b2e7b65a659cfccd897a397c653255 | C# | luoyikun/NirvanaToLua | /Assets/Game/Scripts/UI/TextInputLimitChar.cs | 2.640625 | 3 | using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
[RequireComponent(typeof(InputField))]
public sealed class TextInputLimitChar : MonoBehaviour
{
public int maxCharacters = 6;
private InputField textInput;
private void Awake()
{
this.textInput = this.Get... |
157afe96bdc1483ccfca6b41e75259706b74ab58 | C# | bpatra/sandbox | /algorithms/algorithmsTests/BubbleSortTests.cs | 2.953125 | 3 | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using algorithms;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace algorithmsTests
{
/// <summary>
/// Summary description for BubbleSortTests
/// </summary>
[TestClass]
public class BubbleSortTests
... |
f56140a211ebbfe819052d30a638e823fb92bdce | C# | xShadowArmy/digital-commissioning-tool | /Software/Quellen/DigitalCommissioningTool/Assets/ApplicationFacade/Warehouse/Objects/WindowData.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ProjectComponents.Abstraction;
using SystemFacade;
using UnityEngine;
using ApplicationFacade.Application;
namespace ApplicationFacade.Warehouse
{
/// <summary>
/// Stellt ein Fenster in d... |
f6dc051e116c43f22f9d5d5a5c202afc5e402e3f | C# | LilitKarayan/Neutrack | /NeutrackAPI/NeutrackAPI/Helpers/PasswordHelper.cs | 2.953125 | 3 | /**
* Reference:
* Source: https://stackoverflow.com/questions/57110603/verify-sha512-hashed-password-in-c-sharp
* Author: Prochu1991
* Date: 07/19/2019
* Accessed: 06/21/2021
*/
using System.Security.Cryptography;
using System.Text;
using System;
namespace NeutrackAPI.Helpers
{
public static class PasswordH... |
4e97eab87f7e59dd682e0c449f8719d7b416b598 | C# | aceakle/algorithms | /hw9/ConsoleApp1/Program.cs | 3.140625 | 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)
{
string[] testingData = new string[] { "3", "0", "350", "450", "825" };
int[] d... |
bc093c75dd35127789959c90a6236ccc848fd459 | C# | RobertEichenseer/IoT_HardeningIoTSecurity | /Sec_DeviceEmulator/Program.cs | 2.859375 | 3 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace Sec_DeviceEmulator
{
class Program
{
static void Main(string[] args)
{
//Device Id - IoTHub... |
7adf745de1c3b9911f612f4fd6c11eaed2b2cd1c | C# | Jeongwonseok/191023_ABHDGame_UnityVR | /Assets/Scripts/Manager/LevelChanger.cs | 2.65625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class LevelChanger : MonoBehaviour
{
public Animator animator;
// 최종적으로 바꿀 씬 인덱스 저장 변수
private int levelToLoad;
// Start is called before the first frame upd... |
c025cf6b33095ea003276d17069df47c53caa36d | C# | punit1027/Program1 | /Program1/Form1.cs | 3.125 | 3 | // Punit Naran
// CIS 199-01
// Program 1
// Description: This program will allow you to calculate the amount of paint and cost associated with
// labor and paint. It will use the user input to generate the proper calculations.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System... |
79da6ffefd2b8c7ea78dfbe605b867ce0d6fa00e | C# | JerryMN/CZS_LaVictoria | /CZS_LaVictoria_Library/Models/MaterialModel.cs | 2.53125 | 3 | namespace CZS_LaVictoria_Library.Models
{
public class MaterialModel
{
public MaterialModel()
{
}
public MaterialModel(string nombre, string area, string categoría, string cantidadDisponible)
{
Nombre = nombre;
Área = area;
Categoría ... |
407f72ab5e4a0b457e8dd8e16b3ad377a34ec30d | C# | ghw-wingsdk/demo-unity-android | /Assets/Scripts/WASdk/model/WAPlayerLevel.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace WASdkAPI
{
public class WAPlayerLevel
{
public int levelNumber
{
get;
set;
}
public long maxXp
{
get;
set;
... |
9bc678958adc240e56ef2970a462312facf87bdc | C# | jesumarquez/lt | /Logictracker/BackEnd/Codecs/UnexV1/Posicion.cs | 2.6875 | 3 | #region Usings
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Logictracker.AVL.Messages;
using Logictracker.Model;
using Logictracker.Utils;
#endregion
namespace Logictracker.Unetel.v1
{
internal class Posicion
{
private enum GIRO_TROMPO
{
Derecha,
Izquierda,
Reposo
... |
2f1b59c35ed9fb957d418f6e90119f3eb0c5862c | C# | manuelvalenzuela/codingproblems | /src/CodingProblemsTests/BinaryTreeLevelOrderTraversalProblemTests.cs | 2.734375 | 3 | using CodingProblems;
using FluentAssertions;
using System.Collections.Generic;
using Xunit;
using static CodingProblems.BinaryTreeLevelOrderTraversalProblem;
namespace CodingProblemsTests
{
public class BinaryTreeLevelOrderTraversalProblemTests
{
[Fact]
public void LevelOrder_Example1()
... |
6bcc93604c3fce0893e16803d6622ad9bbc90cd3 | C# | DannyBerova/Exercises-Programming-Fundamentals-Extended-May-2017 | /StringsAndTextProcessing-Exercises/04.SentenceSplit/06.SentenceSplit.cs | 3.359375 | 3 |
namespace _06.SentenceSplit
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
public class Program
{
public static void Main()
{
string sentence = Console.ReadLine();
string delimiter = Console.Re... |
09900740ad7e7034fe9aa1e2c213d5886e65263d | C# | abpprkonsalting/Test-Pumpkin-Trading | /pumpkin_trade/Dal/Implementations/OrdersRepository.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using PumpkinTrade.Model;
using PumpkinTrade.Infrastructure.Enums;
namespace PumpkinTrade.Dal.Implementations
{
public class OrdersRepository
{
private List<Order> Orders;
private readonly object OrdersLock = new object();
... |
ade5b1f2793186791f80c67ec40686e6c85b4deb | C# | KostyaMoonlight/KBVchat_PC | /BusinessLogic/Service/GroupService.cs | 2.671875 | 3 | using BusinessLogic.Service.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Domain.Entities;
using DataAccess.Repositories.Base;
using BusinessLogic.DTO.User;
using BusinessLogic.DTO.Group;
using AutoMapper;
namespace BusinessLogic.Servic... |
7058aefabbd0564359202a353125573d0749cea1 | C# | green-fox-academy/pontiac1-1 | /week-02/day-3/PrimesUnderTwoMill.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp67
{
class Program
{
static void Main(string[] args)
{
double sum = 18;
for (int i = 8; i <=2000000; i++)
{
... |
086403a9d1709b86c8d2e4779bd31d422fe3895c | C# | KalongaM/WebApiAngular | /WebAPI/WebAPI/Controllers/NurseController.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Description;
using WebAPI.Models;
namespace WebAPI.Controllers
{
public cla... |
bb768a976bf74376e2aa6ea520c4ec5b6b00d256 | C# | e-X-plorer/ExpressionSimplifier | /CalculatorSimplifier/SequenceProcessor.cs | 3.171875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace CalculatorSimplifier
{
public class SequenceProcessor
{
private readonly string _numberPattern;
private readonly string _openingBracketSequence;
private readonly string ... |
78a870fcbb16e3012dc2a43276aa1b4483bb7047 | C# | radtek/CopyMachineCounterService | /MetCounterService/Copyinfo/Security/Encrypting.cs | 2.9375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Security.Cryptography;
namespace Copyinfo.Security
{
class Encrypting
{
public static string PasswordToDecrypt = "***REMOVED***";
private const ... |
4ec1308bdeffeaf8da289236f25c0a462ef97625 | C# | dcruzp/Redes3ro | /ProyecotdeRedes/Instruccion.cs | 3.234375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace ProyecotdeRedes
{
public class Instruccion
{
/// <summary>
/// El tiempo en el que le toca ejecutarse la instrucion
/// </summary>
uint time;
/// <summary>
/// Esta es el strin... |
964288181766d98d0a1f1385c5111ca382f0a019 | C# | locceed/cal_core | /calculate_core/Cal.cs | 2.84375 | 3 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace calculate_core
{
class Cal
{
static public string docal(string input)
{
return other.bracket1(other.abs2(inp... |
0cea0041d588c3379baae5f042d79d945e70435a | C# | ardalis/SmartEnum | /src/SmartEnum.Dapper/DapperRegistration.cs | 2.75 | 3 | namespace Ardalis.SmartEnum.Dapper
{
using global::Dapper;
using System;
/// <summary>
/// A static class responsible for ensuring that the SmartEnum type handler specified by
/// <typeparamref name="TSmartEnumTypeHandler"/> has been added to <see cref="SqlMapper"/>
/// for the SmartEnum type s... |
0eefdad52653ab1f7378657e92d1f6dd4ef3ec1b | C# | DrabbyPage/Production2Ferals | /Production2Game/Assets/Scripts/AI Scripts/AIWanderingScript.cs | 2.671875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AIWanderingScript : MonoBehaviour
{
Vector3 wanderPoint;
[SerializeField]
float randomXRange;
[SerializeField]
float randomZRange;
[SerializeField]
float minXRange;
[SerializeField]
flo... |
e3132c3dd6a4f9eba8f1d83a444e970add5bb992 | C# | Siraman25/school-csharp-projects | /Uebung03_VolumenOberflaeche/Uebung09_NotenInWorten/Program.cs | 3.375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Uebung09_NotenInWorten
{
class Program
{
static void Main(string[] args)
{
int noteZahl;
Console.Write("Gebe die Note in eine Zahl von 4-10 ein: ");... |
8d5c944066c9bbde794e58df4fc412743925b7e1 | C# | jovanastevovic/SHES | /CommonTests/EVehicleTest.cs | 2.546875 | 3 | using Common.Model;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CommonTests
{
[TestFixture]
public class EVehicleTest
{
private EVehicle ev;
[OneTimeSetUp]
public void SetUp()
... |
de95060105d588703a89775e54ce508a8e1cd1cf | C# | KillenNolan/CSharpPractise | /CSharpLesson_3/Lesson_1_class/Program.cs | 3.859375 | 4 | using System;
namespace Lesson_1_class
{
class Person
{
public string name;
public int age;
/// <summary>
/// 类的属性可以设置默认值
/// </summary>
public string country = "China";
/// <summary>
/// 可以声明无参构造函数,结构体不可以
/// </summary>
public P... |
bc00beca24aa518e18eadc49d1a4d1eb29ccd972 | C# | erisonliang/RystemV2 | /Rystem.Utility/Thread/Lock/Locks.cs | 2.5625 | 3 | using Rystem.Background;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Rystem.Concurrency
{
internal sealed class Locks
{
private readonly Dictionary<string, LockExecutor> LockConditions = new();
private Locks()
... |
4e6f55edc19b1030a39610e14f1dbcd024655969 | C# | abishjha/CS-GUI-Prime-Number-Calculator | /Form1.cs | 3.25 | 3 | using System;
using System.Windows.Forms;
using System.Threading;
namespace ajha_lab13
{
public partial class Form1 : Form
{
static int endPoint = 2;
static Thread thread;
public Form1()
{
InitializeComponent();
}
p... |
e6dc7bd8548734eddb366fd8e041bb1c1b303ef1 | C# | nbernardo-hp/TextSlangSearch | /frmPhraseList.cs | 2.875 | 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 TextSlangSearch
{
public partial class frmPhraseList : Form
{
//... |
60d38f77107bd63b12a4d996dc5712bed7a6051d | C# | Trbuhozborac/Nedeljni_III_Milos_Peric | /Nedeljni_III_Milos_Peric/Nedeljni_III_Milos_Peric/DatabaseService.cs | 3 | 3 | using Nedeljni_III_Milos_Peric.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nedeljni_III_Milos_Peric
{
class DatabaseService
{
internal tblUser AddUser(tblUser user)
{
try
{
... |
e7b2dbfb18295d1b32bd06e98315f064b0bf7f64 | C# | JoabRodrigues/AulaCSharp | /Viagens/Program.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Viagens
{
class Program
{
static void Main(string[] args)
{
ModelViagens context = new ModelViagens();
Aviao a = new Aviao();
a.Nom... |
6757c68f8208ce4d4a75b302d5c2c929a9e7aba7 | C# | johnathanbeal/Portfolio-8-Craigslist-Scraper | /src/CraigslistScraper/Craigslist/ApartmentListingService.cs | 2.734375 | 3 | using HtmlAgilityPack;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
using System;
namespace CraigslistScraper.Craigslist
{
public class ApartmentListingService
{
public async Task<List<string>> SearchApartmentsAsync(string city = "Arlington", stri... |