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 |
|---|---|---|---|---|---|---|
8681efb109eafd00e530e7fa94d7b113e8cff078 | C# | DarknessSwitch/clinic_db | /clinic_db/UI_Controls/PatientList.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace clinic_db
{
public partial class PatientList : UserControl
{
public PatientLis... |
3aab89c753d02d0eabecc7a746040561bbcf2fe3 | C# | uvbs/backlog-agile | /B_SOURCE/Agile/Generated Code/Agile.Data/Bases/ReleaseProviderBase.generatedCore.cs | 2.515625 | 3 | #region Using directives
using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using Agile.Entities;
using Agile.Data;
#endregion
namespace Agile.Data.Bases
{
///<summary>
/// This class is the base class for any <see cref="Release... |
985d5e56c909fb48abdb28a3da93b5a18faba7d8 | C# | RatiRajanPanikar/C-_TDD_BDD | /UnitTestProject1/ServiceCodeUnitTests.cs | 2.8125 | 3 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OOP_Project;
namespace Tests
{
[TestClass]
public class ServiceCodeUnitTests
{
[TestMethod]
public void positiveServiceCode()
{
//Arrange
var servCode = new ServiceCodes();
s... |
db1a0e58a6f58ec9aa36e1ea36d712d12c959a30 | C# | Batshaw/Tournament-Tracker | /TrackerUI/TournamentCreatorForm.cs | 2.625 | 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 TrackerLibrary;
using TrackerLibrary.Models;
namespace TrackerUI
{
public partial class Tourna... |
b99af5b1d2fc6917fd3ca34ccf14b999a6acf49c | C# | Aravind5559797/Rocky | /Controllers/ApplicationController.cs | 2.859375 | 3 | using Microsoft.AspNetCore.Mvc;
using Rocky.Data;
using Rocky.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Rocky.Controllers
{
public class ApplicationController : Controller
{
private readonly ApplicationDbContext _db;
... |
3d7058e00e4dc99e2c117c1aacd767ac0387b85f | C# | Dharmesh1979/design-patterns-in-csharp | /Mediator/Mediator/Program.cs | 3.15625 | 3 | using System;
namespace Mediator
{
/*
Mediator paterni aralarında iletişim kuracak nesnelerin(colleague) birbirlerini
bilmeksizin merkezi bir(mediator) nesne üzerinden haberleşmesini öngürür.
Örnek olarak havaalanı modellemesini ele alalım:
Üçakların pist kullanımı için birbirleriyle haberleşm... |
c06296752f96ed73cb9cb40c99d513a1c21ad105 | C# | sergbas/MyGrammar | /MyGrammar/Parser/Rule.cs | 2.71875 | 3 | using System;
namespace MyGrammar.Parser
{
public class Rule
{
private LogicalExpression condition;
private Conclusion conclusion;
public Rule()
{
}
public Rule(LogicalExpression condition, Conclusion conclusion)
{
this.condition = conditi... |
37e10a771f23a2edd17d6f702d462c5477c9cafe | C# | fluce/aoc19 | /Day16/Program.cs | 3.078125 | 3 | using System;
using System.Linq;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Day16
{
public class FFT
{
public FFT()
{
}
public static Action<string> Log {get;set;}
public string Apply(string input, int phaseCount)... |
ecd90a641e364eef2b791500c88dd49b874fbff2 | C# | shendongnian/download4 | /first_version_download2/332931-28405246-83362367-2.cs | 2.765625 | 3 | /// <summary>
/// Updates the data.
/// </summary>
protected internal override void UpdateData()
{
if (this.ItemsSource == null)
{
return;
}
this.items.Clear();
// Use the mapping to generate the points
if (this.Mapping != null)
{
... |
fc4bcf09f0036afb6581218f05f8e05d3a27241a | C# | 1905-may06-dotnet/El_Fanneri_Sami_Project1 | /PizzaBoxWebApp/PizzaBox.Domain/Users.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace PizzaBox.Domain
{
public class Users
{
public int Id { get; set; }
private string firstName;
private string lastName;
private string street;
private string city;
private st... |
a6a970921fe16fe31e46a535492b196a1f55c076 | C# | edison9813123/DeberJuego | /PersistenciaTres/Persistencia3.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using Entidades;
using Interfaces;
namespace PersistenciaTres
{
public class Persistencia3 : IPersistenciaTres
{
public new bool Grabar(Avatar avatar)
{
File.AppendAllLines("Avatar.txt", new List<string> { avatar.Nomb... |
7ffad1086e8c16cda2e39089401b7df0b9dbb6b8 | C# | BrandonGriffin/GameOfLifeKata | /GameOfLifeTests/GameOfLifeTests.cs | 3.171875 | 3 | using System;
using NUnit.Framework;
namespace GameOfLifeKata.Tests
{
[TestFixture]
public class GameOfLifeTests
{
[Test]
public void TopRightCellWithExactly3NeightborsComesToLife()
{
var grid = new Int32[,]
{
{ 0, 1, 0 },
{... |
15bd28bfea297220e6c97e9e18f8bc6b05ccc2f8 | C# | CaioPontalti/Curso-Asp.Net-Core-2.2-BaltaStore-WebAPI | /src/BaltaStore.Domain/StoreContext/Commands/OrderCommands/CreateOrderCommand.cs | 2.515625 | 3 | using BaltaStore.Domain.StoreContext.Entities;
using BaltaStore.Shared.Commands;
using FluentValidator;
using FluentValidator.Validation;
using System;
using System.Collections.Generic;
using System.Text;
namespace BaltaStore.Domain.StoreContext.Commands.OrderCommands
{
public class CreateOrderCommand : Notifiabl... |
04a2442c2321302e8dff503e7f90a168060b22e5 | C# | ndrwrbgs/FastLinq | /src/Library/List/StayInList/Reverse.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace System.Linq
{
using System.Collections;
public static partial class FastLinq
{
/// <summary>
/// May actually have some improvements due to avoiding double-copying... |
c0e1d158141a433236184f3d879c56ca894e5a60 | C# | themeldingwars/Be.HexEditor | /Be.HexEditor/Util.cs | 3.046875 | 3 | using System.Collections.Generic;
using System.Globalization;
namespace Be.HexEditor
{
static class Util
{
/// <summary>
/// Contains true, if we are in design mode of Visual Studio
/// </summary>
private static bool _designMode;
/// <summary>
/// Initializes a... |
9fd9928df1b6bd38991c879e4adf2214c5afb570 | C# | updateak47/accountSecure | /Biometric.Device/ImageConverter.cs | 2.78125 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Windows.Forms;
namespace Biometric.Tasks
{
public class ImageConverter
{
public static byte[] ToImageByte(string imagefil... |
b78068f118aa3800fd60804dd6490511edc363ba | C# | lostm1nd/TelerikAcademy | /02CSharpAdvanced/StringTextProcessing/CountLetters/CountLetters.cs | 4.15625 | 4 | //Write a program that reads a string from
//the console and prints all different letters
//in the string along with information how many times each letter is found.
using System;
using System.Collections.Generic;
using System.Linq;
class CountLetters
{
static void Main()
{
Console.WriteLine("Counti... |
27e5ab4e8c2deee4b3c860adb6c95d759d4b5c68 | C# | jonashammerschmidt/rAPI | /rAPICore/Models/DataTransferObjects/Comment.cs | 2.609375 | 3 | using rAPI.Answers;
using System.Collections.Generic;
namespace rAPI.DTO
{
public class Comment : DataAnswer
{
public Comment(int commentId, string text, string user, int upvotes, int downvotes)
{
this.commentId = commentId;
this.text = text;
this.user = us... |
67616d5ae0881862b4870a0e79424766196527d0 | C# | bonsai-rx/bonsai | /Bonsai.Vision/Crop.cs | 2.921875 | 3 | using System;
using System.Linq;
using System.Reactive.Linq;
using OpenCV.Net;
using System.ComponentModel;
namespace Bonsai.Vision
{
/// <summary>
/// Represents an operator that crops a rectangular subregion of each image
/// in the sequence, without copying.
/// </summary>
[DefaultProperty(name... |
1f1b4c41ac4d80126fc5dd876c9be83d7430c9e5 | C# | BlazorHub/CS50G | /src/Games/BreakoutGame/ScoreData.cs | 2.578125 | 3 | namespace BreakoutGame
{
public class ScoreData
{
public string Name { get; }
public int Score { get; }
public ScoreData(string name, int score)
{
Name = name;
Score = score;
}
}
}
|
73a1676b620454524214f6678d1688bd4a48f0c9 | C# | TheRealMichaelWang/MinimIDE | /MinimIDE/Syntax/Values.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MinimIDE.Syntax
{
public partial class NumericalNode : HighlightNode
{
public double Double
{
get;priva... |
ee6761bbc18026f3f9abf692b7341c9b8081a6ea | C# | SubinChitrakar/ExpenseManagement | /ExpenseManagement/Repository/RecurringTransactionRepository.cs | 2.59375 | 3 | using ExpenseManagement.Model;
using ExpenseManagement.Utilities;
using NLog;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExpenseManagement.Repository
{
class RecurringTransactionRepos... |
e50d49dcabdf78bca10b683ef751261f3da35b1d | C# | kubapalasz/Challanger | /NancySelfHosting/Answers/SqueareCubeAnswer.cs | 3.1875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace NancySelfHosting.Answers
{
public class SqueareQubeAnswer
{
private int[] _parameters;
public SqueareQubeAnswer(string parameters)
{
_parameters = JsonCon... |
b4c3ee53c5db903f4aec52748acb15fb2411a421 | C# | mbarzowska/UG-zajecia-uczelniane | /dotNET/XAMARIN.FORMS-app/FoodParty.Tests/CompareViewModelTests.cs | 2.75 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using FoodParty.Validators;
using Xunit;
namespace FoodParty.Tests
{
public class CompareViewModelTests
{
[Fact]
public void PriceValidator_GivenValidPrice_ReturnsTrue() {
// Arrange
decimal validPrice =... |
c510433924d4900371d67387422b19c57d9b59ae | C# | angoudjou/lab4 | /Program.cs | 3.890625 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lab4
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Program Factorial of a number");
bool run = true;
wh... |
7cfc267b21d8cc8891972d4dd5aca118365062ba | C# | luismedel/sixthcircle | /SixthCircle/DataViewer.cs | 2.8125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SixthCircle
{
public unsafe class DataViewer
{
byte[] _data;
public DataViewer (byte[] data)
{
_data = data;
}
public Int16 AsInt1... |
418bb3c656a516cf291a76a72e1afeb2b8531a25 | C# | radtek/Gradual | /Gradual.OMS-II/Gradual.OMS.STM/Gradual.OMS.ConectorSTM/ProcessadorMensagens.cs | 2.59375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.espertech.esper.client;
using Gradual.OMS.ConectorSTM.Eventos;
using log4net;
using System.Threading;
namespace Gradual.OMS.ConectorSTM
{
public class ProcessadorMensagens: StatementAwareUpdateListener
{
pr... |
2e0cc5045248f5c45f3d820af8f767143414f75f | C# | matthewd673/FrogGame | /FrogGame/PhysicsEntity.cs | 2.796875 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace FrogGame
{
public class PhysicsEntity : Entity
{
public float mass = 1;
public Acceleration a = new Acceleration(0, 0);
public Velocity v... |
98ecb119e54598171082b1c6a214df33f90f5265 | C# | vladomelchenko/AngleSharp.Js | /src/AngleSharp.Js/Extensions/ReflectionExtensions.cs | 2.546875 | 3 | namespace AngleSharp.Js
{
using AngleSharp.Attributes;
using AngleSharp.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
static class ReflectionExtensions
{
public static String[] GetParameterNam... |
0175a51be48be8e9f1ceeaed64e1a460be9d7b6f | C# | pmdevers/iRacingOverlay | /src/iRacingSDK/DataFeed/Telementry/CarSectorIdx.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace iRacingSDK
{
public partial class Telemetry : Dictionary<string, object>
{
LapSector[] carSectorIdx;
public LapSector[] CarSectorIdx //0 -> Start/Finish, 1 -> 33%, 2-> 66%
{
get
{
if (carSectorIdx != null)
... |
7d52cbaa0886b04200fbd01ad101f3f61b9bc49d | C# | thundernova/niceshot888.github.com | /NiceShot/NiceShot.Core/Helper/JsonHelper.cs | 2.84375 | 3 | //using System.IO;
//using System.Runtime.Serialization;
//using System.Runtime.Serialization.Json;
//using System.Text;
//namespace NiceShot.Core.Helper
//{
// public class JsonHelper
// {
// public static string JsonSerializer<T>(T t)
// {
// string jsonString;
// using (v... |
6cabade8d79eca859deb97919876e787ce19e955 | C# | macrobela/SP726 | /ConsoleApplication29/ConsoleApplication29/Program.cs | 2.828125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication29
{
class Program
{
static void Main(string[] args)
{
int[] dizi2 = { 1, 2, 3, 4, 5, 6 };
foreach (int a in ... |
d03138b08dbe01d2993c7e3f45216bfcaa8101bc | C# | mavrovski/SoftUni | /Programing Fundametals September2017/Arrays - Lab/04TripleSum.cs | 4 | 4 | using System;
using System.Linq;
namespace _04TripleSum
{
public class _04TripleSum
{
public static void Main(string[] args)
{
long[] numbers = Console.ReadLine().Split(' ')
.Select(long.Parse)
.ToArray();
bool match = false;
... |
2c279659127ad8f0ffd618f603421f107c13c31f | C# | Vitormdias/csharp-design-patterns | /Estudo/DesignPatterns/CalculadorDeImpostos.cs | 2.65625 | 3 | using System;
namespace CursoDesignPatterns.StrategyPattern
{
public class CalculadorDeImpostos
{
public void RealizaCalculo(Orcamento orcamento, IImposto imposto)
{
double result = imposto.Calcula(orcamento);
Console.WriteLine(result);
}
}
}
|
27eab323380da4d3654059c1fb54a9e11655195f | C# | Magdalen36/RPG | /RPG/Equipements/Armure.cs | 2.703125 | 3 | using RPG.Interfaces;
using System;
using System.Collections.Generic;
using System.Text;
namespace RPG.Equipements
{
public class Armure : Equipement
{
public int ProtectionArmure { get; set; }
public Armure() { }
public Armure(string n, int cuir, int fer, int or, int protect, int rar... |
d22659b588771229fb0a5de79a55d2771b56b0a9 | C# | vchirilov/USM | /Documents/C09-ASP.NET MVC/C02-Controllers/C01.BaseController.cs | 2.5625 | 3 | /****************************************************************************
Every request that comes to your application is handled by a controller.
Controllers are responsible for processing incoming requests, performing operations on the domain model, and selecting views to render to the user.
*********************... |
2f5ce3bb826950ea7cf105a9c57d1662815c00f8 | C# | QuinntyneBrown/ngrx-getting-started | /NgrxGettingStarted/Services/DoctorService.cs | 2.671875 | 3 | using System;
using System.Collections.Generic;
using NgrxGettingStarted.Dtos;
using NgrxGettingStarted.Data;
using System.Linq;
namespace NgrxGettingStarted.Services
{
public class DoctorService : IDoctorService
{
public DoctorService(IUow uow, ICacheProvider cacheProvider)
{
_uow ... |
2246034446b184d1f9f51a9489f86958734a1ba6 | C# | garnhold/CrunchyBox | /CrunchyDough/Extensions/Float/FloatExtensions_Angle_CardinalOrdinalDirection.cs | 2.84375 | 3 | using System;
namespace Crunchy.Dough
{
static public class FloatExtensions_Angle_CardinalOrdinalDirection
{
static public CardinalOrdinalDirection GetAngleClosestCardinalOrdinalDirection(this float item, float period)
{
float sixteenth = period / 16.0f;
item = ite... |
cc76525fb80797e5f9003d59fa56f6d7cc998124 | C# | raspbe2ry/Atomac | /Atomac/Atomac.EFDataLayer/DTO/DTOMove.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AutoMapper;
using Atomac.EFDataLayer.Models;
namespace Atomac.EFDataLayer.DTO
{
[Serializable]
public class DTOMove
{
private ApplicationDbContext db = new ApplicationDbContext();
publ... |
cba38e88ba60ae1acc07c8e26d25b4a510be24cd | C# | disulfiram/CSharpPart1 | /6. Loops mk2/6. N! ; X^N/Program.cs | 3.671875 | 4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
class Program
{
static void Main()
{
Console.Title = "N!/K^N";
int N;
int K;
while (true)
{
Console.Write("N = ");
... |
4ca179a6aa252c1d6e2e1a5796afc136b730e0d0 | C# | yapi-net/YandexDirect | /Yandex.Direct/Connectivity/JsonYandexApiClient.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using Yandex.Direct.Authentication;
using Yandex.Direct.Configuration;
using Yandex.Direct.Serialization;
namespace Yandex.Direct.Connectivity
{
public class JsonYandexApiClient : IYandexApiClie... |
64dde7eba187d13ad4e50801055ad3550b717393 | C# | tobbissimo/Klinik_WPF | /KlinikApp/ViewModel/VMPatientEdit.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlinikApp.ViewModel
{
class VMPatientEdit : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public bool... |
a2e9e90267694e3874753e6b2b2f83ab9f8248f3 | C# | Group-Pug/Loverwatch | /Assets/Scripts/BaseClasses/Hero.cs | 2.765625 | 3 | public class Hero : Character {
private string fullName;
private float relationship; //relationship meter towards player (0-9)
public string GetFullName ()
{
return fullName;
}
public void SetFullName (string val)
{
fullName = val;
}
public float GetRelationShipSt... |
50123f935de6fee2f13ce10097205bef330ed915 | C# | szymonklo/Industry-WPF | /ModelLibrary1/Models/Facility.cs | 3.25 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ModelLibrary.Models
{
public abstract class Facility
{
protected string _name;
public string Name
{
get
{
return _name;
}
set... |
3dc4e000a4cba7c625027a40c6bc5f28b66db346 | C# | lithnet/ssh-managementagent | /src/Lithnet.SshMA/Rules/RuleKeyedCollection.cs | 2.515625 | 3 | // -----------------------------------------------------------------------
// <copyright file="RuleKeyedCollection.cs" company="Lithnet">
// The Microsoft Public License (Ms-PL) governs use of the accompanying software.
// If you use the software, you accept this license.
// If you do not accept the license, do not ... |
1bcb7edf4b1ad16c2139f8a0aa7e068981ceeeb9 | C# | woodfor/IA-Project | /IAproject/Controllers/HomeController.cs | 2.765625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using IAproject.Models;
namespace IAproject.Controllers
{
public class HomeController : Controller
{
public ActionResult Index([Bind(Include = "Age,PersonalGender,Height,Weight,Activity,CalResult"... |
85e38ee43eb8bb693735c2815134cc32f4e61ad3 | C# | LvJinliang1216/FolkLibrary | /trunk/FolkLibrary.Application/LeaveWordService.cs | 2.546875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;
using FolkLibrary.Application.Interface;
using FolkLibrary.DataTransferObject;
using FolkLibrary.DataTransferObject.QueryModels;
using FolkLibrary.Domain.Entities;
using FolkLibrary.Inf... |
12426159d098eee1ab7ca002de7d21b852cbec2f | C# | shendongnian/download4 | /code6/1142667-30114833-89976234-2.cs | 3.4375 | 3 | public static bool EmptyFolderTransactionaly(string folder)
{
var directoryInfo = new DirectoryInfo(folder);
var tmpDir = Directory.CreateDirectory(Path.Combine(folder, Path.GetTempFileName()));
try
{
foreach (var e in directoryInfo.EnumerateFiles(folder))
{
e.MoveTo(tmpDir.FullName);
}
foreac... |
34be5571732ee175746e3027065166d697e25c17 | C# | zoe-nk/Terrain | /Test/Visualiser/Containers/SystemConfiguration.cs | 2.546875 | 3 | using System.Reflection;
using System.Windows.Forms;
namespace Visualiser.Containers
{
public class SystemConfiguration
{
public string Title { get; set; }
public Dimension Size { get; set; }
public static bool FullScreen { get; private set; }
public static bool VerticalSyncEnabled { get; private set; }
... |
10ec09b97d2a977a7dfa84368101dc4fb14fbbd1 | C# | tfwcn/CnnDemo | /CnnDemo/CNN/Cnn.cs | 2.859375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CnnDemo.CNN
{
[Serializable]
public class Cnn
{
/// <summary>
/// 卷积层+池化层
/// </summary>
public List<CnnConvolutionLayer> CnnConvolutionLayerList { get; set; }
/// <summa... |
9895bde1baf7b6b323c5956fa4bbe79f5fd186db | C# | niklinchuan/docker_test | /Program.cs | 3.5625 | 4 | using System;
using System.Collections.Generic;
namespace DOTNET
{
class Program
{
static void Main(string[] args)
{
foreach (var number in GenerateWithYield())
{
Console.WriteLine(number);
}
}
public static IE... |
101f01ad802cee41a9a2d3fb3d57d2ee0628eac7 | C# | taylorchasewhite/TayFinitiv | /TayFinitiv/Shared/TellerMachine.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace TayFinitiv.Shared
{
public class TellerMachine
{
#region Properties
[NotMapped]
[JsonIgnore]
... |
835befeceb5cdc257960076913b28ced1a5193fa | C# | plamen-parvanov/SoftUni | /02. Tech module/01. Programming Fundamentals/prere6avaneNaZada4i/03. A Miner Task/03. A Miner Task.cs | 3.59375 | 4 | namespace _03.A_Miner_Task
{
using System;
using System.Collections.Generic;
public class Dictionaries
{
public static void Main()
{
var colectedResourse = CollectAllResourcesInputed();
PrintColectedResourse(colectedResourse);
}
public sta... |
375a464f9443654271428ba5308d7ba1dd825930 | C# | fangulo29/snake-multiplayer-csharp | /Snake_v0.5/Snake_v2/AnalyzeDataServer.cs | 3.046875 | 3 | using System;
using System.Collections.Generic;
using System.Drawing;
namespace Snake_v2
{
class AnalyzeDataServer
{
List<Point> wallList = new List<Point>();
Point foodPoint;
public void Matriz(string data)
{
}
public List<Point> Wall(string ... |
e3d64f272fc173ac9dd46340e3b2f65994063d25 | C# | matyasf/Perlin | /Src/Display/Stage.cs | 2.765625 | 3 | using System;
using System.Numerics;
using SixLabors.ImageSharp.PixelFormats;
using Veldrid;
using Point = Perlin.Geom.Point;
namespace Perlin.Display
{
/// <summary>
/// Stage is the root of the display tree. If you want to show something you have to add it to the Stage
/// (via <code>AddChild()</code> or... |
1299d1d61ee9b79464c0e514791271a715b05885 | C# | MrBacon/GroupedUserReport | /GroupedUserReport.ConsoleApp/Program.cs | 2.5625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GroupedUserReport.ConsoleApp
{
class Program
{
static void Main(string[] args)
{
var tools = new Common.ReportTools(
System.Web.Security.Membership.Providers["AspNetSqlMe... |
8f3763aafe4be86f21633ceb79545f68702f2275 | C# | won983212/UMPL | /Implementation/Renderer/IRenderContext.cs | 3 | 3 | using System;
using System.Collections.Generic;
using System.Text;
namespace ExprCore.Renderer
{
public struct Size
{
public double Width;
public double Height;
public Size(double w, double h)
{
Width = w;
Height = h;
}
}
public interfa... |
8b843a02f21f997b7a07d8aae5796ac559be2931 | C# | inaabadjieva/SoftUni-CSharp | /CSharpFundamentals/10 Middle_Exam_SoftUni/2/TransportPrice.cs | 3.40625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _2
{
class Program
{
static void Main(string[] args)
{
var distance = double.Parse(Console.ReadLine());
var dayOrNight = Console.ReadLine().ToLo... |
8bff63476880068c9e6c72c0d8b3e190404020d2 | C# | IagoAntunes/C-sharp-_Learning | /BotcampDio/C#/Criando uma aplicação de transferências bancárias com .NET/Conta.cs | 3.21875 | 3 | using System;
namespace Criandu
{
public class Conta
{
private TipoConta TipoConta {get; set;}
private double Saldo {get; set;}
private double Credito {get; set;}
public string Nome {get; set;}
public Conta(TipoConta tipoConta,double saldo,double credito,string nome){
... |
80088f7287c14cb96241b887f243f3be7a5c0b23 | C# | nguyentanphu/CoolShopping | /CoolShopping.Application/Entities/Product.cs | 2.953125 | 3 | using System.Collections.Generic;
using CoolShopping.Application.Exceptions;
namespace CoolShopping.Application.Entities
{
public class Product
{
public Product()
{
}
public Product(int productId, string productName, int unitsInStock, decimal buyPrice, decimal sellPrice, Category category, Supplier supplie... |
b8c55f13886eae0d68c3f6185063beb585b6c7e5 | C# | antoops/track-task-time | /TrackTaskTime/TrackTaskTime/Program.cs | 2.8125 | 3 | using ClosedXML.Excel;
using NLog;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Windows.Forms;
using System.Linq;
namespace TrackTaskTime
{
class Program
{
private static readonly Logger ... |
b4d43968da5eff4a99182ef2682a9bee3dbddbe6 | C# | pailinglo/HelloCoreApp | /HelloCoreApp/Models/Employee.cs | 3.21875 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
namespace HelloCoreApp.Models
{
public class Employee
{
public int Id { get; set; }
[NotMapped]
... |
fe4204939938054feeea705d298f76d06b8cfdfa | C# | Drawaes/dotnetXperiments | /Crusher2/Crusher2/Strike2/Compare/CompareMethod.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Text;
using Mono.Cecil;
namespace Crusher2.Strike2.Compare
{
public class CompareMethod : IEqualityComparer<MethodDefinition>
{
private ModuleRebuilder _builder;
private CompareParameter _compareParameter;
private ... |
8ff5bc771c9a6f529ab3027b92e50bb2745de0d3 | C# | matthew-r-richards/continuous-deployment | /apps/Server/WebApplication.tests/Repositories/TimesheetRepositoryFacts.cs | 2.96875 | 3 | using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using WebApplication.DatabaseContext;
using WebApplication.Models;
using WebApplication.Repositories;
using Xunit;
namespace Repositories
{
public class TimesheetRepositoryFacts
{
public class Constructor
{
/// <summary>
/// Checks that... |
accb9365e5220a4c7974e05ec1429f4035c11a77 | C# | ToanDao2612/Sholo.HomeAssistant | /Source/Sholo.HomeAssistant.Common/Utilities/IdentifierValidator.cs | 2.90625 | 3 | using System;
using System.Linq;
using JetBrains.Annotations;
namespace Sholo.HomeAssistant.Utilities
{
[PublicAPI]
public static class IdentifierValidator
{
private static readonly char[] CapitalLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray();
private static readonly char[] LowercaseL... |
3615c24a8138ff5ef6c8f68b89aa1b3621a641bc | C# | RaulPampliegaMayoral/coding-test-ranking-dotnet | /coding-test-ranking/infrastructure/persistence/repositories/AdsRepository.cs | 2.734375 | 3 | using coding_test_ranking.infrastructure.persistence.models;
using System.Collections.Generic;
using System.Linq;
namespace coding_test_ranking.infrastructure.persistence.repositories
{
public class AdsRepository : IAdsRepository
{
IRepository<AdVO> _repository;
public AdsRepository(IReposito... |
ba2738c3756fa6069ba1b82d8bd4eb6fb64d5823 | C# | fizik26/football-manager-backend | /WebApi/ViewModels/PlayerViewModel.cs | 2.578125 | 3 | using DomainModels.Models.PlayerEntities;
namespace WebApi.ViewModels
{
public class PlayerViewModel
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Country { get; set; }
public int Age { get; set; }
public int Talent { get... |
4fb712fc6e1b5fb4359fc540092a9464523572d2 | C# | CannonStealth/Notes | /Systems/C#/Input.cs | 4.09375 | 4 | using System;
//Program to input a number and find sum of its digits
namespace Learning
{
class InputAndSum
{ //start of class
static void Main(string[] args)
{ //start of function
Console.WriteLine("Enter a number");
int number = Convert.ToInt32(Cons... |
082f607189bf6cd759ec215f7aaa41484efeabfb | C# | GDCASU/ProjectAndroid | /Project Android/Assets/Scripts/CameraController.cs | 2.890625 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraController : MonoBehaviour {
/*
Programmer: Pablo Camacho
Date: 06/05/17
Description:
I had made this script to abstract rotating camera and translating camera for other scripts such as OrientationWatcher.
*/
p... |
913bda651fff882dcb537363ef1932359acf59ee | C# | lxysdtc1231/SurvivalDay | /Assets/Scripts/Item/CombineFormula.cs | 2.515625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets.Scripts.Item
{
/// <summary>
/// 合成配方
/// </summary>
public class CombineFormula
{
//合成公式ID
public int FormulaID;
//合成类型
public enum MaterialNeed
{
... |
ebb833b7622a488be6e11cbee4ecf1a97ccf8def | C# | DoniaSheriff/IR-windowsForm | /Form3.cs | 2.609375 | 3 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Text.RegularExpressions;
namespace IR_milestone
{
public part... |
5a7c6d87e942f7bca0ccd42f67ca6afd17e4ca62 | C# | ercananlama/JQDotNet | /source/JQDotNet/Extensions/Conversion.cs | 3.28125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace JQDotNet.Extensions
{
public static class Conversion
{
private static double? ConvertToDouble(this object valueToConvert)
{
if (valueToConvert == null)
... |
d1db981cad1c8bcad93653b46343e7d421ace78f | C# | Ylambers/ITIL_practise_tool | /Exam/Exam2/Utilities/EmbeddedResourceUtility.cs | 3.203125 | 3 | using System.IO;
using System.Reflection;
namespace Exam2.Utilities
{
/// <summary>
/// Defines a class that provides utilities for working with embedded resources
/// </summary>
public static class EmbeddedResourceUtility
{
/// <summary>
/// Get a <see cref="Stream"/> containing a... |
424c4fc888e2e5f45d1e03cfabeff02e85adcacc | C# | nirmal1031/daredevil | /PlayerCollectCoins.cs | 2.671875 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class PlayerCollectCoins : MonoBehaviour // class is declared
{ // class opened
public int points = 0; ... |
25ee003e88377b7f16e91c54ee9e480a61a1efee | C# | s-innovations/S-Innovations.ServiceFabric | /src/S-Innovations.ServiceFabric.CoreCLR.Tools.FabUtil/Program.cs | 2.734375 | 3 | using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
namespace SInnovations.ServiceFabric.CoreCLR.Tools.FabUtil
{
public class Program
{
[MTAThread]
public static void Main(string[] args)
{
var basePath = strin... |
11f7fc807010c3347d5efc2a7c2bbcafada4a75c | C# | Iowa20/The-Tech-Academy-Basic-C-sharp-Projects | /BooleanLogicDrill/BooleanLogicDrill/Program.cs | 3.34375 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BooleanLogicDrill
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("What is your age?");
int x;
... |
bace66cb8aaae1e17a10268b9ae16a52ac5389fa | C# | JTOne123/JsonRpc.Standard | /JsonRpc.Streams/MessageReader.cs | 2.90625 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using JsonRpc.Messages;
namespace JsonRpc.Streams
{
/// <summary>
/// Represents a JSON RPC message reader.
/// </summary>
public abstract class MessageReader : I... |
b815d8f6cf928da17f1d7244814b694b5c77beaf | C# | maddemon/SparrowCMS | /SparrowCMS/Attributes/NameAttribute.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SparrowCMS
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class NameAttribute : Attribute
{
public string Name { get; private set; }
public NameAttribute(string name)
... |
0291121bf66f26ef2ddc73028622f8fe7fdf2c2a | C# | samasder/unityProject_RogueTactics | /RogueTactics/Assets/Scripts/Exceptions/MultValueModifier.cs | 2.6875 | 3 | public class MultValueModifier : ValueModifier
{
private readonly float _toMultiply;
public MultValueModifier (int sortOrder, float toMultiply) : base (sortOrder)
{
_toMultiply = toMultiply;
}
public override float Modify (float fromValue, float toValue)
{
return toVal... |
9483de26d0983e5ecc50938c5024a4a426607691 | C# | ReVoLt112/ConsoleSnake | /ConsoleSnake/Program.cs | 3.078125 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Diagnostics;
namespace ConsoleSnake
{
public static class GlobaleVariablen
{
public static bool eaten { get; set; }
public static int player { get; set; }
}
class ... |
5a3d110aa943e5cebc8283d6d355cb208661f02e | C# | bright-sparks/MyToolkit | /src/Shared/Converters/TruncateConverter.cs | 2.796875 | 3 | using System;
using MyToolkit.Utilities;
#if !WINRT
using System.Windows.Data;
#else
using Windows.UI.Xaml.Data;
#endif
namespace MyToolkit.Converters
{
public class TruncateConverter : IValueConverter
{
#if !WINRT
public object Convert(object value, Type targetType, object parameter, System.Globaliz... |
4619f63ee63a7989b8cc1ae6bd93bfbf68e5a644 | C# | vararucristian/.Net-Project | /microservices/Messages-MS/Messages-MS/Controllers/MessagesController.cs | 2.59375 | 3 | using System;
using System.Text.Json;
using System.Threading.Tasks;
using MediatR;
using Messages_MS.DTO;
using Microsoft.AspNetCore.Mvc;
namespace Messages_MS.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class MessagesController : ControllerBase
{
private readonly IMediato... |
a880ee774e5ee206c381a3911eb6282562abecd3 | C# | xeon2007/WSProf | /Components/Sourcecode/NewSynergy/WSOfficeAddin/OfficeAddinRegistrar/RegistrarApp.cs | 2.859375 | 3 | using System;
namespace Workshare.Registrar
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class RegistrarApp
{
/// <summary>
/// The main entry point for the application.
///
/// @params - 1st string = register/unregister, 2nd string = path
/// </summary>
private static void Prin... |
5b8b4468785a7bea9497241f40b94a0d7bd99d50 | C# | Avatarchik/TypeTreeGenerator | /TypeTreeGenerator/Type/BaseType.cs | 2.734375 | 3 | using System;
namespace TypeTreeGenerator
{
public enum BaseType
{
@bool,
UInt8,
SInt16,
UInt16,
@int,
unsignedint,
SInt64,
UInt64,
@float,
}
public static class BaseTypeExtensions
{
public static string ToExportType(this BaseType _this)
{
switch(_this)
{
case BaseType.@bool:
... |
b10a52d614e2e79dbdeab00a23f632e3e30be0a9 | C# | Fransmohsen/BroadcastChat.cs | /BroadcastChat.cs/Program.cs | 3.296875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using System.Net.Sockets;
using System.Net;
namespace BroadcastChat.cs
{
class Program
{
private const int ListenPort = 11000;
static void Main(string[] a... |
73041a499d91c41f834ecfd09f962f75e48c1280 | C# | WestsideBG/Software-University | /C# FUNDAMENTALS/02. C# OOP BASIC/04. Inheritance/Inheritance-LAB/LAB/RandomListProject/RandomList.cs | 3.4375 | 3 | using System;
using System.Collections.Generic;
namespace CustomRandomList
{
public class RandomList : List<string>
{
public Random Random { get; set; }
public RandomList()
{
Random = new Random();
}
public string GetRandomString()
{
va... |
ad7edd1933ac5ebb1b3af051b801be7b3fa368ec | C# | Bronz57/bronzetti.christian.4h.saverecord | /Program.cs | 3.078125 | 3 | using System;
using bronzetti.christian._4h.SaveRecord.Models;
namespace bronzetti.christian._4h.SaveRecord
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("SaveRecord - 2021 - christian bronzetti");
//leggere file cvs voi comuni e trasformarlo in ... |
e13100b9e6287e03729876866097a935656b7981 | C# | nss-copper-dragonflies/BangazonAPI | /BangazonAPI/Controllers/DepartmentController.cs | 2.734375 | 3 | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Threading.Tasks;
using BangazonAPI.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
//JORDAN ROSAS: Controller for the Get, Get single, put and ... |
a0a0a73fa6291fba30a9cbf6b4ef98d27d3f8d44 | C# | shendongnian/download4 | /first_version_download2/9781-522245-868151-1.cs | 2.859375 | 3 | // In Your Program.cs Convert This
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
// To This
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompa... |
a2c6feade955bdc292f40e7b03f87c22d4d83048 | C# | oshustov/tg-periodical-jobs-bot | /TelegramReminder/Model/CommandArgs.cs | 2.828125 | 3 | using System.Collections.Generic;
using Telegram.Bot.Types;
namespace TelegramReminder.Model
{
public class Context
{
public Update Update { get; }
public string Tag { get; set; }
public Context(string tag, Update update)
{
Tag = tag;
Update = update;
... |
9a312303ea40d42abe62e4c43a65d1741149fc39 | C# | Woldelig/Vurderingssystem | /VMS/VMS/fagside.aspx.cs | 2.6875 | 3 | using System;
using System.Data;
using System.Linq;
using MySql.Data.MySqlClient;
using System.Web.UI.DataVisualization.Charting;
using System.Drawing;
namespace VMS
{
public partial class Fagside : System.Web.UI.Page
{
private Database db = new Database();
private String sidensFagkode = "obj2... |
3f135481055b2d0eab7af9ec41555333cbdbd284 | C# | cesar9401/PracticaCorta | /Practica/MainWindow.cs | 2.53125 | 3 | using System;
using System.Collections.Generic;
using Gtk;
using Practica;
public partial class MainWindow : Gtk.Window
{
public MainWindow() : base(Gtk.WindowType.Toplevel)
{
Build();
}
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
Application.Quit();
a... |
434749d5937f06b4b32cf732b98ebb6cc1940752 | C# | JDR-Ninja/CIV | /CIV/Mail/MailTagFormater.cs | 2.921875 | 3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using Videotron;
using CIV.Common;
using System.Collections;
namespace CIV.Mail
{
/// <summary>
/// Parcours du texte pour convertir les tags rencontrés avec les valeurs du compte associ... |
7ab8d43fe586ef1429f0b95d55787ecb24198b06 | C# | MaevaValls/ProyectoM13 | /Assets/Scripts/Models/Cards/Abilities/Target Selectors/RandomTarget.cs | 2.8125 | 3 | using System.Collections.Generic;
using Atonement.AspectContainer;
using Atonement.Extensions;
//Selector que aplicará la habilidad a uno o más objetivos aleatorios
public class RandomTarget : Aspect, ITargetSelector {
public Mark mark;
public int count = 1;
public List<Card> SelectTargets (IContainer game) {
v... |
4b46d93d6f1e92c8fc9a9fc6255ec9586ff6eadf | C# | dant02/snippets | /dotnet/app.console/PalallelTest.cs | 3.296875 | 3 | using System;
namespace app.console
{
internal class PalallelTest
{
private void Calculate()
{
var r5 = SimulateCalculation.Calculate(5);
var r6 = SimulateCalculation.Calculate(6);
var r7 = SimulateCalculation.Calculate(7);
Console.WriteLine(r5 ... |
5ac05a43375293312023e7c1b0bbd8eb80e582ff | C# | FeFi7/CarrierTracking | /Software/CarrierTracking/Assets/Scripts/VisualStations/LinkedStationList.cs | 3.25 | 3 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LinkedStationList
{
private readonly List<Station> stations;
private int number = 1;
private Station start = null;
private Station end = null;
private Station selected = null;
public LinkedStationList... |
9ce49c75b0d210e85272191618fa324b3371ba8e | C# | kritsadadechawantana/hackathon01-url-mapper | /UrlMapper.Tests/UnitTest1.cs | 2.6875 | 3 | using System;
using System.Collections.Generic;
using Xunit;
namespace UrlMapper.Tests
{
public class UnitTest1
{
//[Fact]
//public void Test_Matching()
//{
// var strBuilder = new SimpleStringParameterBuilder();
// var strParam = strBuilder.Parse("http://google.co... |
a28c12c487bb9abb8bb02f502fca1fa25d59e227 | C# | pavelangelov/CSharp-OOP-Homework | /02.DefiningClasses-Part2/5-7.GenericClass/Models/GenericList.cs | 3.875 | 4 | namespace _5_7.GenericClass.Models
{
using System;
using System.Text;
public class GenericList<T> where T : IComparable
{
private T[] list;
private uint index;
public GenericList(uint capacity)
{
if (capacity < 1)
{
throw new Argu... |
48571a7a48875687e493cbe15139f14ff61210d3 | C# | Franciscoscp/zft | /Zip.cs | 2.75 | 3 | using Microsoft.AspNetCore.SignalR;
using System;
using System.Collections.Generic;
using System.IO.Compression;
using System.Linq;
using System.Threading.Tasks;
namespace zft
{
public class Zip
{
public int id { get; set; }
public string name { get; set; }
public Uri zipUri { get; se... |
1862dd59e42ab475c43220650957dc588a86e6fe | C# | AndreasBieber/TypedRest-DotNet | /TypedRest.Wpf/ViewModels/PollingViewModel.cs | 2.65625 | 3 | using System;
using System.Threading.Tasks;
using Caliburn.Micro;
namespace TypedRest.Wpf.ViewModels
{
/// <summary>
/// View model for tracking the state of an entity represented by a <see cref="IPollingEndpoint{TEntity}"/>.
/// </summary>
/// <typeparam name="TEntity">The type of entity to represent... |