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
a692f5c6ed6130745d2915ff954439ac393817a4
C#
dkultasev/GamePriceChecker
/GamesPriceChecker/PsPriceClient.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; namespace GamesPriceChecker { public class PsPriceClient : IPsPriceClient { private readonly IWebBrowserOperations _browserOperations; private const string BaseUrl = "https://psprices.com/region-ua/discounts?sort=date&platform=...
3eafb5331e926282c8ba26c6942a559a4db15540
C#
Gurlox/file-manager
/DataModels/DiscElement.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataModels { public abstract class DiscElement { string path; public DiscElement(string path) { this.path = path; } ...
d5801ee008a9afa6fbd62ebe6cfd11a3fa68af51
C#
AlVSkvortsov/TestForVeeamSoftware
/TestForVeeamSoftware/Program.cs
2.890625
3
using System; using System.IO; using System.IO.Compression; using TestForVeeamSoftware.CheckInputParameters; using TestForVeeamSoftware.DataObjects; using TestForVeeamSoftware.FileProcessing; using TestForVeeamSoftware.ResultOutputManager; namespace TestForVeeamSoftware { class Program { static void M...
5519473d20dff3a99170b67449f0693af45e03a8
C#
PiotrZalfresso/SWDiSK
/Symulator/GeneticAlgorithm.cs
3.15625
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Symulator { class GeneticInstanceIComparer : IComparer { int IComparer.Compare(Object x, Object y) { Tuple<int[], long> t1 = (Tupl...
a7bb27ae665b54dfe09562ccc054eb57bdcc217f
C#
ViennaAdvantage/ERP-CMR-DMS
/ViennaAdvantageWeb/ModelLibrary/Process/NoteDelete.cs
2.515625
3
/******************************************************** * Module Name : Process * Purpose : Delere Notes (Notice) * Author : Jagmohan Bhatt * Date : 10-Nov-2009 ******************************************************/ using System; using System.Collections.Generic; using System.Linq; ...
c30bf113894647325097cb05e7c931b656164ed6
C#
moxixuan/Rediska
/Rediska/Commands/Lists/LINSERT.cs
2.5625
3
namespace Rediska.Commands.Lists { using System; using System.Collections.Generic; using System.Globalization; using Protocol; using Protocol.Visitors; public sealed class LINSERT : Command<LINSERT.Result> { private static readonly PlainBulkString name = new PlainBulkStri...
4b4f2db52953ef7b48ee2bd3df053c56331e2fe7
C#
devmsc/Catalog
/Catalog/Features/QuestionFeatures/AddQuestion/AddQuestionRequestHandler.cs
2.609375
3
using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Catalog.Models.Questions; using Catalog.Repositories.Questions; using MediatR; namespace Catalog.Features.QuestionFeatures.AddQuestion { public class AddQuestionRequestHandler : IRequestHandler<AddQues...
40136340fcde07233d7df4532aebecf33d64a5f5
C#
kimykunjun/test
/Acms.Core/Domain/EmployeeBranchRights.cs
2.609375
3
using System; namespace Acms.Core.Domain { /// <summary> /// Summary description for EmployeeBranchRights. /// </summary> public class EmployeeBranchRights { protected Branch _branch; protected Employee _employee; public EmployeeBranchRights() { // // TODO: Add constructor logic here // } p...
f13699bc77b04fbb7f7ed4fd7b99d8d230b5efdd
C#
Betclic/CodingDojo-Katas
/FRUITSHOP/y.guillin_w.delmas/CodeDojo.Model/Cashier.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CodeDojo.Model { public class Cashier { List<Product> _products; List<Promotion> _promotions; private string _countryCode; public Cashier(string country...
7a7aba837ea2453c1e9d1652b2850cd3564de1f7
C#
urpablo/ConstruccionAppsInformaticas
/Ejercicio.41/Program.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ejercicio._41 { class Program { static void Main(string[] args) { string strFecha; bool flag = false; DateTime Fecha; bo...
3e3c45fd6d0eb441f168e97f16b0f7f1cf2a86ea
C#
coolnk/AzureNet
/ProductsServer/ProductsServer/Program.cs
3.40625
3
namespace ProductsServer { using System; using System.Linq; using System.Collections.Generic; using System.ServiceModel; // Implement the IProducts interface. class ProductsService : IProducts { // Populate array of products for display on website ProductData[] products = ...
e54e54912f54ab8ad88975cb8fc12c7cf70f2aa6
C#
narojay/csharp-design-pattern
/模板方法模式/Program.cs
3.34375
3
using System; namespace 模板方法模式 { public abstract class Recipe { public void Cook() { AddOil(); AddVegatable(); AddWater(); } public void AddOil() { Console.WriteLine("add oil"); } public void AddWater() ...
71f22186338afb3a7e445f136f350398f43735d5
C#
shendongnian/download4
/code11/1928796-58226591-206559495-2.cs
2.609375
3
public static void SetFileProtection(string filePath) { NSMutableDictionary dict = new NSMutableDictionary (); var protection = new NSString("NSFileProtectionCompleteUnlessOpen"); dict.Add((new NSString("NSFileProtectionKey") as NSObject), (protection as NSObject)); NSError error; NSFileManager.Defa...
b6ce00cbe08ccc228e44210255e02f40e6baafd8
C#
Baltiyski/Terelik-Academy
/00.Exams/2013-2014/C# Exam 1/Exam 1 - 6 December 2013 Morning/03.XExpression/XExpression.cs
3.71875
4
using System; class XExpression { static void Main(string[] args) { string expression = Console.ReadLine(); decimal sum = 0; decimal bracketResult = 0; char currOperator = '+'; char bracketOperator = '+'; bool inBraket = false; foreach (var symbol in e...
4874415b95af05b4bb58eb1a611d76d50725dd5e
C#
NedSheynji13/SecretsOfLight
/Assets/Scripts/ParallaxScrolling.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ParallaxScrolling : MonoBehaviour { //empty GameObject notwendig, script wird auf dieses gelegt. beim ausrichten der Ebenen: wenn man eine Ebene näher an der Kamera platziert bewegt sie sich schneller und umgekehrt ...
a217407b85d5d8320aaa7464721735de75cc8516
C#
grofab95/ExcelUtilities
/PeselUtilities/Pesel.cs
2.65625
3
using System; namespace PeselUtilities { public class Pesel { public string InString { get; set; } public long InNumber { get; set; } public string CellLocalization { get; set; } public PeselFactors PeselFactors { get; set; } public DateTime BornDate { get; set; } ...
75f3d58fe3e00a3635590c8180d0dcbe13b8937b
C#
srsarangi/AutonomousDriving
/city/Assets/Scripts/WorldState/WorldState.cs
2.65625
3
using System.Collections.Generic; using UnityEngine; namespace CarWorld { public class WorldState: MonoBehaviour { #region Singelton public static WorldState _instance; public static WorldState Instance { get { return _instance; } } private void SetupSingelton() { ...
b2a72a685bf1d56c4fc6636fcf26505ca72c5e88
C#
shyoutarou/Exam-70-483_Gerenciar_fluxo
/Exemplos/3_Fluxo_Prog/switch statement/switch statement/Program.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace switch_statement { class Program { static void Main(string[] args) { var input = Console.ReadLine(); Check(input[0]); CheckWithSwitc...
48ee131396dc2ac3360602640b41020872b5633b
C#
basizov/Timetable
/Application/Messages/Create.cs
2.640625
3
using System; using System.Threading; using System.Threading.Tasks; using Application.Core; using Application.DTOs; using Application.Interfaces; using AutoMapper; using Domain.Entities; using MediatR; using Microsoft.EntityFrameworkCore; using Persistence; namespace Application.Messages { public class Create { ...
aae5c3151ce0a7fb84e0b2df6dd6f0e32d123a3c
C#
gabrieljakubek/Programacion_y_Laboratorio_2D_2019
/Ejercicios/Jakubek.Gabriel.2.D.Ejercicios/Ejercicio07/Program.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ejercicio07 { class Program { static int ingreso; static bool auxBool; static bool anoBisiesto = false; static int diaNacimiento; static int mes...
55ef135d0ca52bca41910b24d6e5106195f2036b
C#
ShimizuShiori/Reface.AppStarter.NPI
/src/Reface.AppStarter.NPI/Reface.AppStarter.NPI/DbConnectionContext.cs
2.8125
3
using System; using System.Data; using Reface.AppStarter.NPI.Attributes; namespace Reface.AppStarter.NPI { /// <summary> /// 数据库连接上下文 /// </summary> public class DbConnectionContext { /// <summary> /// 唯一标识 /// </summary> public Guid Id { get; private set; } ...
ec4529d0ac49dd1e937eb63c5abe0ce7a4a419ab
C#
ACMH1/CSExercises
/CSExercises/SectionC/ExC4.cs
3.6875
4
using System; namespace CSExercises { //ABC Taxi Company has the following meter charges based on the kilometres travelled. //Minimum charge: $2.40 (first 0.5 km no additional charges apply) //For the next 8.5 kms the rate is 4 cents for every 100 meters //After that: 5 cents for evey 100 meters ...
9c4d1bab2586fe7ca8b42e6c2e0b0ea67e8c7a10
C#
welshdave/SqlDocStore
/src/SqlDocStore/ChangeTracker.cs
2.59375
3
namespace SqlDocStore { using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; public class ChangeTracker { private readonly ConcurrencyModel _concurrencyModel; public ChangeTracker(ConcurrencyModel concurrencyModel) { ...
05c2945dfac96c7353a422c70fe4ae63f575409d
C#
HRAshton/SetEliteClient
/SetElite.Client/ParameterEntities/Virtual/ParameterEntity.cs
2.609375
3
using System; using MyToolkit.Command; using MyToolkit.Model; using Newtonsoft.Json; namespace SetElite.Client.ParameterEntities.Virtual { public abstract class VirtualParameterModel : ObservableObject { [JsonProperty(PropertyName = "IsEnabled")] private bool _isEnabled; /// <...
8f8e80a7b224e1fc1e6d83a17f00bfdf13c8961a
C#
RiderSet/CalculaJuros
/Calcula/Models/Calculo.cs
2.5625
3
using System.ComponentModel.DataAnnotations; namespace Calcula.Models { public class Calculo { public int Id { get; set; } public double ValorInicial{ get; set; } // public decimal ValorFinal { get; set; } public double Juros { get; set; } public int Tempo { get; set; } ...
06f970db1fb0fe96e1128e5adacadce0a91b441c
C#
SebastianSinozic/sinozicSebastianKonstruktori
/sinozicSebastianKonstruktori/sinozicSebastianKonstruktori/Program.cs
3.265625
3
using System; namespace sinozicSebastianKonstruktori { class Program { static void Main(string[] args) { Proceduralni x = new Proceduralni(); Objektni y = new Objektni(); Funkcionalni z = new Funkcionalni(); Console.WriteLine("Upišit...
bcd999a7f942ae85aa0d2c4fbe2d5673f5a9e9a1
C#
FlatFishPrincess/clientserver_second
/WEEK5(Windo forms and file IO)/Class 05 Exercises/LinqToXmlFirstLook/LinqToXmlFirstLookProgram.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; // For older DOM support. using System.Xml; // For newer LINQ to XML support. using System.Xml.Linq; namespace LinqToXmlFirstLook { class LinqToXmlFirstLookProgram { static void Main(string[] args) { ...
6b040ae500a629bafb9a511495c49992d5634c60
C#
Pavlo7/AEVIProject
/AEVIDomain/CShared.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.SqlClient; namespace AEVIDomain { public static class CShared { public static bool IsConnect(string connectionstring, out string msg) { bool ret = false; ...
aa097a8df463070b8a151cf3ea30dae3bf690fc7
C#
tnqv447/ElectronicsStoreManager
/WinformUI/Dialogs/EditItemRelationDialog.cs
2.515625
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 AppCore.Interfaces; using AppCore.Models; namespace Winform.Dialogs { public partial class Edi...
f97d266e501d590ca75790a089b0dde23184c631
C#
PRJ4-GR3-SWT-1/GameOfLife
/GameOfLife/Program.cs
3.046875
3
using System; using System.Diagnostics; namespace GameOfLife { class Program { static void Main(string[] args) { var gol = new GameOfLife(1000); var sw = new Stopwatch(); Console.WriteLine("TaskBarrier:"); sw.Restart(); var golTB = ...
6e3f08a6e8e4a80b5df12600da88cdf08bdfd161
C#
dylanlafontaine/Mission-Planner-3D
/Assets/Scripts/MoveUp.cs
2.859375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.Events; using UnityEngine.EventSystems; ///<summary> ///Commented by Dylan L. ///MoveUp -- This class handles the initial behavior of moving a waypoint either up or down. ///It adds Event Handlers to ...
949bfa54d9c29e4253121268dc545e7f31978a01
C#
shendongnian/download4
/latest_version_download2/140733-28576472-84017022-4.cs
2.6875
3
List<BudgtedData> budgetData = new List<BudgtedData>(); budgetData.Add(new BudgtedData() { BudgetedCpmDataId = 1, ForecastMonth = 12, ForecastYear = 2014 }); budgetData.Add(new BudgtedData() { BudgetedCpmDataId = 1, ForecastMonth = 1, ForecastYear = 2014 }); budgetData.Add(new BudgtedData() { Budget...
1d6f2a07c95ba5d93f822274a2800a67f408a633
C#
lampenlampen/PrivateWiki
/PrivateWiki.Dependencies/Components/NLog/NLogAdapter.cs
2.515625
3
using System; using NLog; using PrivateWiki.Services.Logger; using ILogger = PrivateWiki.Services.Logger.ILogger; namespace PrivateWiki.Dependencies.Components.NLog { public class NLogAdapter : ILogger { private readonly Logger _logger = LogManager.GetLogger("PrivateWiki"); public void Log(LogEntry entry) { ...
b7dcff4bfc11fb3db51ca1757ce9fe6a54712c52
C#
dimixar/JumpyPants-XNA
/JumpyPantsTry1/JumpyPantsTry1/ScreenManager/GameScreen.cs
2.703125
3
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input.Touch; using System.IO; namespace JumpyPants { /// <summary> /// Enum-ul descrie stările de tranziție a unui screen /// </summary> public enum ScreenState { TransitionOn, Active, TransitionOff,...
704e2adff26b12a8d0c8a4be91f42cb975d75f56
C#
jsliugang/FileHelper
/LanguageHelper/TranslateHelper.cs
3.109375
3
using System.Windows.Forms; namespace LanguageHelper { /// <summary> /// 语言翻译工具类 /// </summary> public class TranslateHelper { #region 属性 /// <summary> /// 翻译文件 /// </summary> private static string TranslateFile { get; set; } /// <summary> //...
78af468a68b050ae0c31a90462d9d78053ddb05f
C#
Lrs121/WindowsDeviceRecoveryTool_components_decompiled
/System.Spatial/System.Spatial/GeographyCollection.cs
2.65625
3
using System; using System.Collections.ObjectModel; using System.Linq; namespace System.Spatial { // Token: 0x0200001A RID: 26 public abstract class GeographyCollection : Geography { // Token: 0x060000EA RID: 234 RVA: 0x000038F0 File Offset: 0x00001AF0 protected GeographyCollection(CoordinateSystem coordinateS...
f1d34dfeff786a470988a58d22a87032c7e3a512
C#
imanavaz/CONVErT
/CONVErT/ToolBox/ItemsViewModel.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections.ObjectModel; using System.Windows; using System.Xml; using System.Windows.Media; namespace CONVErT { public class ItemsViewModel { public ObservableCollection<ToolboxItem> items = new Observa...
5b76505c8e07597698cdd102881f172525748e3c
C#
ConflictReaper/ConflictReaper
/Client/ConflictReaperClient/ConflictReaperClient/FlowMeasureDevicePool.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConflictReaperClient { class FlowMeasureDevicePool : IDisposable { private string localIP; private List<FlowMeasureDevice> devices = new List<FlowMeasureDevice>(); ...
50aee56879d3c49f4a45098e83c3dd69a2ad9472
C#
hiteshsalian/CSharp_6_Features
/String_Interpolation/String_Interpolation/Person.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace String_Interpolation { public class Performer { public string FirstName { get; set; } public string LastName { get; set; } public int Age { get; set; } ...
322cc1cd035744b341c7103e211449a98dbb7457
C#
shladdergoo/sensus-playlist
/SensusPlaylist/FileSystem.cs
3.1875
3
using System; using System.IO; namespace SensusPlaylist { public class FileSystem : IFileSystem { public bool FileExists(string filename) { if (filename == null) throw new ArgumentNullException(nameof(filename)); return File.Exists(filename); } public S...
82a01dc294e6e8077fe56d4f35e4136783a10605
C#
ZainVirani/COMP521A2ZainVirani260567997
/Assets/Scripts/windBehaviour.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class windBehaviour : MonoBehaviour { float windSpeed; public float maxSpeed = 1f; public GameObject arrow; public GameObject head; // Use this for initialization void Start () { windSpeed = 0; //ini...
5ea1071a841348a51d87c9ebe41b236cd51f538d
C#
kathiazf/TrabalhoFinalKATHIA
/Biblioteca.Apresentacao/Controls/LivroForms/LivroControl.cs
2.640625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using Biblioteca.Dominio.Repositorios; using Biblioteca.Dominio; namespace Biblioteca.Apresentacao.Controls.LivroForms { public pa...
df2a213cdf058565b9de0092b8e972f7b03ebb48
C#
andreiconoval/AlgorithmsApp
/AlgorithmsApp.API/Algorithms/Sorting/BubbleSorter.cs
3.09375
3
namespace AlgorithmsApp.API.Algorithms.Sorting { public class BubbleSorter: SortBase, ISortAlg { public long Iterative(int[] arr) { stopWatch.Start(); for (int i = 0; i < arr.Length-1; i++) { for (int j = 0; j < arr.Length-1; j++) ...
6908a4f6e9e1b4319cc3ecb9dbf346b79fb2b1ec
C#
shendongnian/download4
/latest_version_download2/24185-3625707-7629970-2.cs
2.53125
3
public void UploadXmlFile(string xmlContent, int orderNumber) { string filename = DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss") + "_" + orderNumber + ".xml"; ClientContext context = new ClientContext(absoluteHostUrl + relativeWebUrl); using (MemoryStream stream = new MemoryStream()) ...
6e9e1976e7dccb685c491da1ec5752d6fc61a5fd
C#
mbryxan/sweepstakesproject
/Sweepstakes/UserInterface.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sweepstakes { // Make this class static // Create methods to get user input for the properties on the contestant class // These methods should return a string of what the user type...
f0ef38232d3ac0948c494eeafed23f0aaed79810
C#
addixon/ErgCompetePM
/PM.BO/Location.cs
3.3125
3
using System; namespace PM.BO { public struct Location : IEquatable<Location> { public int BusNumber { get; } public int Address { get; } public Location(int busNumber, int address) { BusNumber = busNumber; Address = address; } public b...
ce58b5f424674c4c107f03b0d0f5c6277078491f
C#
shendongnian/download4
/code9/1664935-47390021-161016959-2.cs
2.796875
3
using System; using Excel = Microsoft.Office.Interop.Excel; class Startup { static void Main() { Excel.Application excelApp = new Excel.Application(); Excel.Workbook wkbReport = Open(excelApp, @"C:\Users\v.doynov\Desktop\Testing.xlsx"); Excel.Work...
57fa2e1df388e4bca3abaf2a266d8031e5219f47
C#
MobiliyaTechnologies/AMSRESTServer
/AssetMonitoring/AssetMonitoring.Services.Impl/Mappings/SensorMapping.cs
2.5625
3
namespace AssetMonitoring.Services.Impl.Mappings { using System.Collections.Generic; using System.Linq; using AssetMonitoring.Contracts; public class SensorMapping { public IQueryable<Sensor> Map(IQueryable<Entities.Sensor> source) { return from s in source ...
e222abd7a26b00c8ae5ce4712ed59a93b9f11f29
C#
equinor/procosys-preservation-api
/src/Equinor.ProCoSys.Preservation.WebApi/Behaviors/CheckAccessBehavior.cs
2.515625
3
using System; using System.Threading; using System.Threading.Tasks; using Equinor.ProCoSys.Common.Misc; using Equinor.ProCoSys.Preservation.WebApi.Misc; using Equinor.ProCoSys.Preservation.WebApi.Authorizations; using MediatR; using Microsoft.Extensions.Logging; namespace Equinor.ProCoSys.Preservation.WebApi.Behavior...
a45feccdd853f1c620ecc3ac9d7c69aa00c5b190
C#
Wojtek-Cz7/MongoFunWojtek
/BookRepository.cs
2.796875
3
using MongoDB.Bson; using MongoDB.Driver; using MongoFunWojtek.Models; using MongoFunWojtek.Reviews; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MongoFunWojtek { public class BookRepository : IBookRepository { private st...
febd0a5da978652543d7c5c382d4cd328fa94f3e
C#
knji/mvvmcross.plugins
/mapping/Pidac.MvvmCross.Plugins.Mapping/Geometries/Polygon.cs
2.609375
3
using System.Collections.ObjectModel; namespace Pidac.MvvmCross.Plugins.Mapping.Geometries { public class Polygon : Surface { public override GeometryType GeometryType { get { return GeometryType.Polygon;} } public override bool Equals(Geometry other) { ...
59e44e075aaff77a6a57c7f3a66fdd2b824c3476
C#
tscislo/sample-api-asp-dot-net
/Controllers/WeatherForecastController.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using SampleWebAPI.Model; using SampleWebAPI.Services; namespace SampleWebAPI.Controllers { [ApiController] [Route("api/[controller]"...
3d1b70c62465b27d5615350170b663cdfdcf6a91
C#
ravirai7791/DemoRepository
/GenerateSeries/UnitTestNumbers/UnitTest1.cs
2.59375
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using NumberGeneratorProcessor; using System.Collections.Generic; namespace UnitTestNumbers { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { List<int> generatedNo = new Processor().Generat...
baf3668cc5349ec972238eb0fa90d2cd07d8263d
C#
t-ujino/MediaLBAnalyzerLogViewer
/MediaLBAnalyzerLogViewerLib/AudioSampleUtils.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MediaLBAnalyzerLogViewerLib { public enum Endian { LittleEndian, BigEndian } public class AudioSampleUtils { static public double Convert16bitToDou...
8d3e06a97685a686fe4d29c8633c1919328c43a6
C#
WhiteGrouse/SimpleBNF
/src/Syntax/TagElement.cs
3.140625
3
using System; using System.Collections.Generic; namespace SimpleBNF.Syntax { public class TagElement : ISyntaxElement { public enum RepeatKind { NotRepeat, Star, Plus } public string TagName { get; } public RepeatKind Repeat { get; ...
a62de3750bd0c4af4e5d8d08b1cb0e45520e6870
C#
krnets/codewars-practice
/7kyu/Simple Equation 2/Kata.cs
2.828125
3
/*using System.Data; namespace SolveIt { public class Kata { public static int result(string stringInput) { return (int) new DataTable().Compute(stringInput, null); } } }*/ using System.Linq; using System.Text.RegularExpressions; namespace SolveIt { ...
58a94646ff23647294e825d46822c91329d0e32e
C#
MadalinPuscas/licenta
/AdventureGame2/Engine.cs/RandomGenerator.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Engine { public static class RandomGenerator { private static Random rnd = new Random(); public static int Number(int minimumValue, int maximumValue) ...
7e0b2ad7ccef7459f9ea43697a4c8d1f4202e294
C#
AlexanderOkochutin/NET.W.2016.01.Okochutin.01
/Task4.ConsoleUI/Program.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using Task4.Logic; namespace Task4.ConsoleUI { class Program { static void Main(string[] args) { do { Console.WriteLine("Enter array of int in next format -m a0,a1,a2 or -r ...
9f7b59e17b4a52bae04195407678387bb75fd9de
C#
127-0-0-l/Bouncer
/Bouncer/Form1.cs
2.84375
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 Bouncer { public partial class Form1 : Form { int mouseX; int mouseY; ...
03ffaad59db20577d91980ee582be1d5ab0fc6f3
C#
monobelisk/DFUnity-InterestingTerrains
/Scripts/ModMessageHandler.cs
2.59375
3
using UnityEngine; using System.Collections; using DaggerfallWorkshop.Game.Utility.ModSupport; namespace Monobelisk { public static class ModMessageHandler { // Requests private const string GET_TILEDATA = "getTileData"; // Responses private const string TILEDATA = "tileData"; ...
d3ae94c94ca33207f00cdc83961e1736ec9a6160
C#
cretumarius/DocScan
/server/Business/MergeService.cs
2.53125
3
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Threading.Tasks; using Business.Base; using Business.BusinessContract; using Business.Constants; using IronPdf; namespace Business { public class MergeService : IMergeService { private readonly IAzureBl...
ed41f0fb90cb80a3f45c62c6f9e708af09129aa2
C#
colgreen/sharpneat
/src/SharpNeat/Graphs/WeightedDirectedConnection.cs
2.953125
3
// This file is part of SharpNEAT; Copyright Colin D. Green. // See LICENSE.txt for details. namespace SharpNeat.Graphs; #pragma warning disable CA1036 // Override methods on comparable types /// <summary> /// Represents a connection between two nodes, combined with a connection weight. /// </summary> /// <remarks> ...
e32e881bb3efe5f6e844e98225ebaa831b8ea28f
C#
ChenFengYe/AutoSweep_CircleReconstruction
/IBrushes/MyGeometry/MyModel.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading.Tasks; using Accord.Math; using Accord.Math.Distances; using Accord.MachineLearning; using Accord.Statistics.Distributions.DensityKernels; namespace MyGeometry { public class MyDistance : IM...
241fe1d3fc3ffd7442381bf750e0e2013aeee4ec
C#
andrecarlucci/CustomVisionApp
/CustomVisionApp/StreetFighter/ExecuteAfter.cs
3.0625
3
using System; using System.Collections.Generic; using System.Threading; namespace CustomVisionApp.StreetFighter { public static class ExecuteWhen { private static string _current = ""; private static int _count = 0; private static Dictionary<string, Action> _dic = new Dictionary<string, A...
a5aba4f213bbaf365e904d3bb0d4246d7b1036df
C#
epitsin/TelerikHomeworks
/Introduction to Programming with C# Part Two/Methods/4.CountOfNumbers/CountOfNumbers.cs
4.21875
4
using System; namespace _4.CountOfNumbers { class CountOfNumbers { static int Count(int[] someArray, int number) { int count = 0; for (int i = 0; i < someArray.Length; i++) { if (someArray[i] == number) { c...
93552e0b47d516c0755c5ad818bd4d0f214d8dc9
C#
bankoViktor/sharp_node_render
/NodeRender.cs
2.875
3
using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; namespace NodeInterface { public class Node { public int NodeID; public Point Location; public Size Size; public Color BackColor; // TODO нод хранит цвет своего фона...
820f307a5d0dab084f160e6102e15d6200910e55
C#
suha1515/RoadKillZombie
/GameCamp2/Assets/Script/LKZ_StagePointManager.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class LKZ_StagePointManager : MonoBehaviour { Vector3 mousePos = new Vector3(); [SerializeField] LayerMask ExclusiveLayers; //스테이지 포인트 오브젝트의 이름을 담을 문자열 -> 이걸로 스테이지 정보를 받아오면 됨 public string SelectedStage = null; s...
bffabe443129088147166c2d038483117e21153e
C#
saikrishnaudatha/Entity-Frame-Core-and-ADO.NET
/HandsOnEFCodeFirst/Program.cs
3.265625
3
using HandsOnEFCodeFirst.Context; using HandsOnEFCodeFirst.Models; using System.Linq; using System; using System.Collections.Generic; namespace HandsOnEFCodeFirst { class Program { static void Main(string[] args) { // Console.WriteLine("Hello World!"); using(MyContext db=...
79aa1bfc38da45dc0f69961a210e9d11f21df824
C#
jsusanto/ASP.NET_MVC5_20486
/Day-3/PhotoSharingApplication_08_solution/PhotoSharingTests/RoutingTests.cs
2.671875
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Web.Routing; using System.Web.Mvc; using PhotoSharingTests.Doubles; using PhotoSharingApplication; namespace PhotoSharingTests { [TestClass] public class RoutingTests { [TestMethod] public void Test_Default_Rou...
ced45a36e0624c1104e64af8105a0bb5fa50305d
C#
vioan12/Verificarea-si-Testarea-Sistemelor-de-Calcul
/Lab1/OutputProcessing.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab1 { public class OutputProcessing { private Output _output; public OutputProcessing(Output output) { _output = output; } public v...
3ddf2eff89a99e1f858330a74828f00c71424320
C#
chandlerpl/CPLibrary
/CP.Common/Utilities/ClassLoader.cs
2.890625
3
/* * Copyright (C) Pope Games, Inc - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential * Author: Chandler Pope-Lewis <c.popelewis@gmail.com> */ using System; using System.Collections.Generic; using System.Linq; using System.Reflection; u...
676c9c64ad16ccfd057ab29e6d7d6ff8f577c365
C#
Alandeb/Csharp-19
/Nueva carpeta/Ejercicios 31-33/MisClases/MisClases/Cliente.cs
3.6875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MisClases { public class Cliente { #region ATRIBUTOS private string nombre; private int numero; #endregion #region CONSTRUCTOR publi...
4ca7b2afb6819e963a0f255dd1e452d21df55d6e
C#
slincastro/load
/GGLoader.BLL/Domain/ProcessResponse.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GGLoader.BLL.Domain { public class ProcessResponse { public ProcessResponse(List<Line> lines, string process) { Lines = lines; Id = process; ...
9eac2ea5a25440e14a2d21206465528f1a0e9331
C#
tenderpaw/Biocide
/Assets/OwlTawitTawoo/Scripts/StateManager.cs
2.640625
3
using UnityEngine; using UnityEngine.Events; #if UNITY_EDITOR using UnityEditor; #endif namespace OwlTawitTawoo { public static class StateManager { public enum State { None, // start Intro, Game, Main, End, Shop ...
1bd74e1278d4378523a6de72bfd9bbe5f78efff9
C#
PasanAvi/CommandRestAPI
/RestAPILearning/RestAPILearning/Data/MockCommanderRepo.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using RestAPILearning.Models; namespace RestAPILearning.Data { public class MockCommanderRepo : ICommanderRepo { public IEnumerable<Command> GetAllCommands() { var Commands = new List<C...
d6b581ac6ecc0333e77a54b9a4bf8f2fed438ce2
C#
valdisiljuconoks/ImageResizer.Plugins.EPiServerBlobReader
/src/ImageResizer.Plugins.EPiServerBlobReader/HtmlHelperExtensionsForPicture.cs
2.5625
3
using System; using System.Linq; using System.Text; using System.Web.Mvc; using EPiServer; using EPiServer.Core; namespace ImageResizer.Plugins.EPiServer { public static class HtmlHelperExtensionsForPicture { public static MvcHtmlString ResizePictures(this HtmlHelper helper, UrlBuilder[] urls, Picture...
196064fae92e28884a670fdf6e31600f0bb7d4ba
C#
Yaroslav8Koledin/GitForEpam
/Task 3/Task 3.1/Epam.Tasks_3.1/Epam.Task_3.1.1. WEAKEST LINK/Program.cs
3.578125
4
using System; using System.Collections.Generic; namespace Epam.Task_3._1._1._WEAKEST_LINK { internal class Program { private static void Main() { var queue = new Queue<int>(); Console.WriteLine("ВЫВОД: Введите N"); int numberOfPeople = GetNumberOfPeople(); ...
4d8d31b519dba5b1f3c767d4b25a767905d4f71e
C#
develorem/VisualProjectDependencies
/src/VisualProjectDependencies.Tests/ProjectParsingTests.cs
2.59375
3
using NUnit.Framework; using System.Linq; namespace VisualProjectDependencies.Tests { public class ProjectParsingTests { [SetUp] public void Setup() { } [Test] public void EnsureCanParseProjectFile() { var projectText = TestData.LoadSamplePr...
6aa9dc0be35a9c96f7bceafc1cc85b5cd62830be
C#
ivandobrinovv/dotNet
/UnitOfWorkSample_Completed3/UnitOfWorkSample_Completed/UnitOfWorkSample/Models/CategoryViewModel.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using DataAccess; using System.ComponentModel.DataAnnotations; namespace UnitOfWorkSample.Models { /// <summary> /// The ViewModel class for the Index.cshtml and Edit.cshtml /// Usually we have to use always 1 ViewModel c...
183e874ab029aef2bd72be0a91820ea6f582cb91
C#
ThorvaldMortele/BrackeysGameJam
/Assets/Scripts/BossSystem/Cannons/ObjectPoolBoss.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; namespace BossSystem { public class ObjectPoolBoss : MonoBehaviour { public static ObjectPoolBoss Instance; public List<GameObject> PooledObjects; publ...
66aa5b266ebf23bd67d3c93764a5cf52dbbbbf0c
C#
nataliii1245/StackGame
/StackGame/Commands/ChangeCountOfMovementsCommand.cs
2.921875
3
using StackGame.Loggers; using StackGame.Game; namespace StackGame.Commands { /// <summary> /// Команда для изменения количества ходов /// </summary> public class ChangeCountOfMovementsCommand : ICommand { #region Свойства /// <summary> /// Исходное количество ходов /// </summary> priva...
378ed9643414965ffa79c3c52225215f55abf97f
C#
VolodymyrNahornyi/Online-Concert-Ticket-Sales
/Repository/GenreRepository.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Contracts; using Entities; using Entities.Models.Concerts; using Microsoft.EntityFrameworkCore; namespace Repository { public class GenreRepository : RepositoryBase<Genre>, IGenreRepository { public ...
7db4f127c97995f93e5ceeee5d592948fb5d593e
C#
Azzariah/Personal-Projects
/C# Projects/InstaWarp2 sources/InstaWarp2 - For Dll - Copy/Core/Classes/Memory.cs
2.96875
3
 namespace Core.Classes { using System; using System.Diagnostics; using System.Runtime.InteropServices; /// <summary> /// Memory Helper Class /// /// Wraps ReadProcessMemory and WriteProcessMemory API for easier usage. /// </summary> public static class Memory { /// <...
f4725bc601fa7f9f6e4e150de4e5c03bcd40b116
C#
alexsrd/lr4graphics
/Pupil.cs
2.828125
3
using SharpGL; namespace lr4graphics { class Pupil { bool IsLeft = false; public Pupil(bool IsLeft) { this.IsLeft = IsLeft; } public void Draw(OpenGL gl) { DrawLeftPupil(gl); DrawRightPupil(gl); } private void...
68d32ae05cd9b23943d406e15590faeb0f2acb29
C#
Rzilinski77/RoomSizeCalculator
/RoomSizeGenerator/RoomSizeGenerator/Program.cs
3.5
4
using Microsoft.VisualBasic.CompilerServices; using System; using System.Reflection.Metadata; namespace RoomSizeGenerator { class Program { static void Main(string[] args) { Console.WriteLine("Welcome to the Room Size Generator!"); Console.WriteLine("-------------------...
78e777fc2d71c20f2d2d4f78f2bb6dbf7559271c
C#
RavitejaPatel/C-_CORE_PROGRAMS
/WhilePract1.cs
3.265625
3
using System; class whilePract { public static void Main() { int n=int.Parse(Console.ReadLine()); Console.Write("sum is 1"); int i=1; int sum=1; while(i<n) { i++; sum=sum+i; Console.Write("+"+i); } Console.Write("="+sum); } }
81230568ec85b20545986b1b4aa2ed0c467aa367
C#
Archaeren/HauntingMemory
/MatchGame/Form1.cs
3.3125
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 MatchGame { public partial class HauntingMemory : Form { // firstClicked poin...
3f3b294f6c2092aed1598b8e6866ffd8e5bd9b3b
C#
zadontseva/project1
/Form1.cs
2.640625
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 WindowsFormsApp1 { public partial class Form1 : Form { public Form1() ...
ce5e84820b2501639a498de93ca55e9cc8ebb6b6
C#
GregSmalter/TEWL
/Tewl/IO/IoMethods.cs
2.890625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Threading; using JetBrains.Annotations; using Tewl.Tools; namespace Tewl.IO { /// <summary> /// A collection of IO-related static methods. /// </summary> [ PublicAPI ] public static class IoMethods {...
c572bfb7408f9b513fdac44c249fe1c3f2616d05
C#
ajcampbell1333/DOFSCII
/Assets/DOFSCII/Scripts/UDP/SendKeystrokes.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Text; using System.Net; using System.Net.Sockets; using CrossplatformVRInput; using UnityEngine.UI; using System; namespace DOFSCII { public class SendKeystrokes : VRInputSubscriber { [SerializeField] ...
9ca2d0493ee36d710aca052313f40077f29e32a7
C#
solomoto-dev/MongoDBQueue
/MongoQueue.Legacy/LegacySubscriptionAgent.cs
2.546875
3
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MongoDB.Driver.Builders; using MongoQueue.Core.AgentAbstractions; using MongoQueue.Core.Entities; namespace MongoQueue.Legacy { public class LegacySubscriptionAgent : ISubscriptionAgent { private readonly LegacyMo...
4879861b31cfa628712ca965efef22fa1bc8494a
C#
canslab/ImageBasedLocalizer
/ImageLocalizer/Place.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using OpenCvSharp; namespace ImageLocalizer { class Place { public string PlaceName { get; private set; } public int Size { get; private set; } ...
e8095ce53e6dfb48ef2e20f0006180cb2e6736c5
C#
drzott/DevToolbox
/C#/Office Automatisierung/Report.Util/DateUtil.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Report.Util { public static class DateUtil { /// <summary> /// Gibt einen Datumswert zurück der direkt im Report verwendet werden kann /// </summary> pu...
24a74b587ea83b4887d89a60bd6d892248cddb74
C#
FredrikLundvall/RealtimeRaytrace
/RealtimeRaytrace/Rendering/Texture/SolidColorMap.cs
2.75
3
using System; using Microsoft.Xna.Framework; namespace RealtimeRaytrace { public class SolidColorMap : ITextureMap { protected readonly Color _color; public SolidColorMap(Color color) { _color = color; } public Color GetColorFromDirection(Vector3 direction,...
46b812592c9234b47e22e096d00e97acc49ade9c
C#
kamranAeff/WebApiSolution
/Lesson01/Binders/ColorTypeConverter.cs
3.15625
3
using Lesson01.Models; using Lesson01.Utils; using System; using System.ComponentModel; using System.Globalization; namespace Lesson01.Binders { /// <summary> /// TypeConverter bizə simple tipləri complex tiplərə çevirmək imkanı verir /// Yəni string olaraq gələn 123,12,13 tipli RGB dəyərini ColorType-a ç...
58cbb036892ac629d4d1006ab4d3f7f4e30b742c
C#
maheshkutty/crimeregistration
/civilian/reg.aspx.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Data.SqlClient; using System.Web.UI; using System.Web.UI.WebControls; namespace police_and_automation { public partial class reg : System.Web.UI.Page { protected void Page_Load(object s...
5eb62c39dd8c88575af8745a1be6eab6ba18e58f
C#
MarceloBritoWD/csharp-first-steps
/Command-Line-Project/OdontologyClinic/Program.cs
3.28125
3
using System; using System.Collections.Generic; using OdontologyClinic.Model; namespace OdontologyClinic { class MainClass { private static Clinic clinic = new Clinic(); public static void Main(string[] args) { do { Console.Clear(); ...
4485fb09e0b936d792e07da0a978eed3df2d2eba
C#
WarpedDemon/BasicAPI
/EndProject/EndProject/EndProject/Weather.cs
3.015625
3
using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Xml; namespace EndProject { public class WeatherAPI { public WeatherAPI(string city) { SetCurrentURL(city); xmlDocument = GetXML(CurrentURL); } public floa...
821cd9929affa332a369d0671ec8db292ec66a95
C#
ByteDev/ByteDev.Reflection
/src/ByteDev.Reflection/TypeIsExtensions.cs
3.140625
3
using System; using System.Reflection; namespace ByteDev.Reflection { /// <summary> /// Extension methods for <see cref="T:System.Type" />. /// </summary> public static class TypeIsExtensions { /// <summary> /// Indicates if a type is in a particular namespace hierarchy. //...
9350a0f7188a508672c6cf25aed7150ad1b0aaf8
C#
RonnyWyss/VPA_Manager
/Verwaltung/Verwaltung/ViewModels/CreateCustomerViewModel.cs
2.578125
3
using System; using System.Windows; using Prism.Commands; using Prism.Mvvm; namespace Verwaltung.ViewModels { public class CreateCustomerViewModel : BindableBase { private readonly Action _navigateBack; private string _benutzer; private DateTime _erfassungsdatum; private string...