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
5216a6f55ab2449ed50852ba84e477827ee13127
C#
johnkocer/EFCore3xSource
/03 - Code First/CodeFirst/CodeFirstOne2One/DataContext.cs
2.90625
3
using Microsoft.EntityFrameworkCore; namespace CodeFirstOne2One { public class DataContext : DbContext { public DataContext(DbContextOptions<DataContext> options) : base(options) { } public DbSet<Employee> Employee { get; set; } public DbSet<Address> Address { get; set; } protected override void...
83a797d02ec99db5b281c961d24ef13bffa56add
C#
MatteoCuria/IUT
/LP-PROG/UE 6 - Conception et programmation avancée/Garcia/TP1/TP1_online.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TP1 { interface IMachine : IPrint, IStaple, IScan, IFax, IPhotocopy { bool Print(List<Item> item); bool Staple(List<Item> item); bool Scan(List<Item> item); bool Fax(List<Ite...
5760f8bc3cc3969e7fa0514ed9cba122c5d57047
C#
cwhetham/DKC2-RPG
/Assets/Scripts/Characters(Battle)/PlayerParty.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public static class PlayerParty { [SerializeField] static List<Character> characters; [SerializeField] static List<Item> items; [SerializeField] static int bananas, maxBp, bp; [SerializeField] static List<Armor> armorInven...
a98137ac57a1386250f3fb56d98d65a217c57c82
C#
carsendecker/Reap-Air
/Assets/Scripts/DecorManager.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DecorManager : MonoBehaviour { //List of possible objects to spawn public List<GameObject> GrowableObjects = new List<GameObject>(); public List<GameObject> RemovableObjects = new List<GameObject>(); //Lis...
e49b19099ce3217983beceea181933868acee4cd
C#
BoykoNeov/SoftUni---Programming-fundamentals-May-2017
/ExamPreparation/EP III - Exam Oct 2016/RageQuit/RageQuit.cs
3.78125
4
/// <summary> /// Chochko is a gamer, and a bad one at that. He asks for your help; he wants to be the most annoying kid in his team, so when he rage-quits he wants something truly spectacular. He’ll give you a series of strings followed by non-negative numbers, e.g. "a3"; you need to print on the console each string ...
374d0772427a27de0a4b932e1a5e0096040ecaca
C#
SugoiDev/JustAssembly
/Core/JustAssembly.Core/Comparers/MethodComparer.cs
2.5625
3
using System; using JustAssembly.Core.DiffItems; using JustAssembly.Core.Extensions; using JustAssembly.Core.DiffItems.Methods; using Mono.Cecil; using System.Collections.Generic; using System.Linq; using JustAssembly.Core.DiffItems.Common; namespace JustAssembly.Core.Comparers { class MethodComparer : BaseDiffCo...
33b6de6153244182ce25f7c27c5c100f458555ee
C#
ambocclusion/the-bee-menace-unity-5
/6 hour game jam/Assets/Assets/Scripts/PowerupManager.cs
2.53125
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public enum Powerups{ Speed, SuperCharge } public class PowerupManager : MonoBehaviour { public static PowerupManager Instance {get; private set;} public CharacterControl Character; public Dictionary<Powerups, float> ActivePower...
659ac27e0b96bfa2d4398176666e5d30cfcefff7
C#
StrykeDev/package-bixel-suite
/sw-wpf-cs-bixel-prism/Prism/Converters/ToHex.cs
2.9375
3
using System; using System.Globalization; using System.Windows.Data; using System.Drawing; namespace Prism.Converters { class ToHex : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { Color col = (Color)value; ...
fcfe64c884ed6f1a610468202f12d05a6a26a9fc
C#
JuliaPetkova/2017-SoftUni-ProgBasic
/HW-2/3-Task-Greeting/3-Task-Greeting.cs
2.734375
3
using System; namespace _3_Task_Greeting { class Program { static void Main(string[] args) { //Console.Write("Enter your name: "); var a = Console.ReadLine(); Console.WriteLine("Hello, {0}!", a); } } }
216fb0c61e8352eb7165873c151863ea39288a43
C#
gonroach/ACHWeb
/IUnidadDeTrabajo.cs
2.640625
3
using System; namespace Dominio.Core { public interface IUnidadDeTrabajo : IDisposable { /// <summary> /// Confirma todos los cambios existentes en el contenedor (Commit) /// </summary> ///<remarks> /// Commit sobre la base de datos /// Si la entidad ...
ee08d52f5d1a7c0ce8e3a36187ccd5d69ac655a4
C#
Tenyo-tech/Interviews
/MentorMate/GreenVsRed/GreenVsRed/Cells/Cell.cs
2.765625
3
using GreenVsRed.Cells.Contracts; using GreenVsRed.Comon; using System; using System.Collections.Generic; using System.Text; namespace GreenVsRed.Cells { public class Cell : ICell , ICloneable { public Cell(CellColor color, Position position) { this.Color = color; this....
84475f2e9b44732683faaf35b17dda02ae781c7a
C#
yaoyel/Finework
/dotnet/main/FineWork.Core/Settings/SettingManager.cs
2.890625
3
using System; using FineWork.Settings.Repos; namespace FineWork.Settings { public class SettingManager : ISettingManager { public SettingManager(ISettingRepository settingRepository) { if (settingRepository == null) throw new ArgumentNullException("settingRepository"); ...
3df19fe185bfebf5bbc9f2b9c04746053a663e24
C#
Pliner/uLearn
/src/uLearn.Web/IdeoneSubmitAllSlide_Test.cs
2.515625
3
using System.Collections.Generic; using System.Linq; using NUnit.Framework; using uLearn.Web.Ideone; using uLearn.Web.Models; namespace uLearn.Web { [TestFixture] public class IdeoneSubmitAllSlide_Test { private static string NormalizeString(string s) { return s.LineEndingsToUnixStyle().Trim(); } [Expl...
57707e22d64f3ed090ea3615e86460ff6d0d275a
C#
bubdm/Alauda
/src/Alauda/Selector/MultiSelectorAttach.cs
2.59375
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; namespace Alauda { public class MultiSelectorAttach : DependencyObject { ...
7570cb8de36575eb83a3ff93318405e1505f6091
C#
obraia/listas-poo
/lab-02/Examples/Date3/Date3_s217.cs
3.59375
4
using System; namespace Date3 { class Date3 { private int dia, mes, ano ; // tres atributos inteiros public Date3( ) { // construtor default sem parmetros inicializados com valores validos dia = 1 ; mes = 1 ; ano = 1900; } public Date3(int d, int m, int a) {// construtor com parmetros passados por valo...
46b7492885ec06c05030636df9b2170ee6d2f3b6
C#
ToniMilicevic06101994/Stranka
/Stranka/Services/Implementations/ExecutorService.cs
2.96875
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using Stranka.Services.Interfaces; namespace Stranka.Services.Implementations { public class ExecutorService: IExecutorService { private SqlConnection _connection; private SqlTransaction _transacti...
c01850f9881bab8d610f50fd5dfee5cd2cb3433a
C#
LeahMenat/Big-data-algorithms-Day_2
/Sorts/Program.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sorts { public static class PrintArray { public static void Print(this int[] arr) { string str = ""; for (int i = 0; i < arr.Length; i++) ...
88b487193f57124b5995513276c06ea55cd8610f
C#
dcomartin/FluentSiren
/FluentSiren/Builders/EmbeddedLinkBuilder.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using FluentSiren.Models; namespace FluentSiren.Builders { public class EmbeddedLinkBuilder : EmbeddedLinkBuilder<EmbeddedLinkBuilder, Entity>, ISubEntityBuilder { } public class EmbeddedLinkBuilder<TBuilder, TEntity> : Builder<TBuild...
74c466491d0f8acc10c5a8d3c821c55670d7d371
C#
GlenDC/L10n.cs
/src/utils/DictionaryRef.cs
3.03125
3
// Glen De Cauwsemaecker licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; namespace L20nCore { namespace Utils { /// <summary> /// DictionaryRef stores a reference to a dictionary. /// Its purpose...
ed84dfd5f55d64e40a30287ca0ad0d0ea3f7f4ed
C#
cren1230/HackerRank
/Algorithms/Implementation/Migratory Birds/MigratoryBirds.cs
3.5
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static int migratoryBirds(int n, int[] ar) { // Complete this function int [] t = new int[5]; for(int i = 0; i < ar.Length; i++) { t[ar[i] - 1]++; } int count = t[...
e18315ba2f7c26900db6af7afca05838e9221708
C#
YitshakS/Space
/Assets/Scripts/1-movers/KeyboardMover.cs
3.015625
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; /** * This component moves its object when the player clicks the arrow keys. */ public class KeyboardMover: MonoBehaviour { [Tooltip("Speed of movement, in meters per second")] [SerializeField] float speed = 1f; ...
5d415e842b0b83fa28ccda903f45405fb5e955b2
C#
vaspahomov/fluent-api
/ObjectPrinting/PropertyPrintingConfig.cs
2.984375
3
using System; using System.Linq.Expressions; namespace ObjectPrinting { public class PropertyPrintingConfig<TOwner, TPropType> : IPropertyPrintingConfig<TOwner, TPropType> { private readonly PrintingConfig<TOwner> printingConfig; private readonly string memberName; public PropertyPrin...
8849b4c87e4049b16b69c0e85cc13d388c7a1b19
C#
trucby1306/Nguyen-Thi-Truc
/FormTinhTong.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; namespace BT1_chương_4_part1 { public partial class FormTinhTong : Form { ...
27adfee8f26e0d4c0c1693cc63d6653e13737d94
C#
mmanela/chutzpah
/Chutzpah/IFileProbe.cs
2.71875
3
using System.Collections.Generic; using Chutzpah.Models; namespace Chutzpah { public interface IFileProbe { /// <summary> /// The directory where built in dependencies can be found /// </summary> string BuiltInDependencyDirectory { get; } /// <summary...
d4bd44f72a0cd7a29bf3d480830f61f55658e33a
C#
zizhGuo/Catcart-Invasion
/Assets/Scripts/NoAddedSpeed/PlayerNonInteraction/NASPlayerPistolBulletBehavior.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class NASPlayerPistolBulletBehavior : MonoBehaviour { /// <summary> /// The bullet will just travel as if the kart is not moving at all /// </summary> public float initialMoveSpeed; // The move speed of the pistol b...
e54f42c8ea80b777f501141cb74286a19d8473dd
C#
CSharpFundamentals/CSharp-OOP-Advanced_July2017
/09.Unit Testing - Exercise/Twitter/Models/Tweet.cs
2.53125
3
namespace Models { using Interfaces; class Tweet : IMessage { public Tweet(string messageContent) { this.Content = messageContent; } public string Content { get; private set; } } }
0e85087c1aad8d0c62e3371be86912e8769fbfc4
C#
todorm85/telerik-academy-2015
/Courses/Programming/Object-Orineted Programming/04. OOP Principles I/01. School classes/Human.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace _01.School_classes { public abstract class Human : SchoolObject { private string name; public string Name { get { return name; } set { name = value; } } ...
4f7ccc9791438139c1edaedb64b5da20c11be37e
C#
votrongdao/cloudera-connector
/Rob Dump/qlikview-cloudera-connector/DotNet/MojoNamedPipes/Program.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.IO.Pipes; namespace MojoNamedPipes { class Program { static void Main(string[] args) { while (true) { //Create pipe instance ...
ccb2772fe439719f44f939d8bf078f17d8dcc7e9
C#
dhmhtrhsd/Stellar
/Stellar/Assets/Scripts/Cards/CardViz.cs
2.6875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; //MonoBehaviour script to load a card. It has an array of game objects, each game object connects to a UI propety. // This script loads the card properties of one of our cards to the blank card we have i...
d6634bc9edcaf10525cbbffca864da7f27e2dd70
C#
erik-stenbacka-sigma/utvecklingsmetodik-koddesign
/design-patterns/ProxyDemo/ProxyDemo/CachingProxy.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProxyDemo { class CachingProxy : IAPI { private API realService; private Dictionary<String, String> cache = new Dictionary<String, String>(); publ...
59f84076767299bf1673865940f36af3db4160b5
C#
1417758/UniProjSolution
/WebJobUniUtils/RandomGenerator.cs
3.328125
3
using System; using System.Security.Cryptography; //------------------------------------------------------------------------------------------------------ // <copyright file="RandomNumberGenerator.vb" company=""> // Copyright (c) Rachie Holdings Ltd. All rights reserved. // </copyright> //----------------------------...
f634154d08f07452a3115b4b1daf0a69cd650e2a
C#
Maxman88/SysTechTest
/NUnitTestCode/dal/PaySystemsTests.cs
2.71875
3
using System; using NUnit.Framework; using SysTechTest.PaySystems; using SysTechTest.dal; using System.Collections.Generic; using SysTechTest; namespace NUnitTestCode.dal { class PaySystemsTests { private DateTime DatеFromStr(string d) => DateTimeUtils.DateFromStr(d+" 0:00:00").Date; /// <summ...
36e5a071e08b87fd093d4d5a80f0f85b24e91300
C#
jamclaub/Factory-Pattern
/FactPattern/Program.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FactPattern { class Program { class car { public string company { get; set; } public string Model { get; set; } public int Speed { g...
60d63ae4bfa15648981e0738a8eb80029876002b
C#
willemkokke/MayaLauncher
/MayaLauncher/NamedPipeManager.cs
2.78125
3
#region License /* ************************************************************** * Author: Rick Strahl * © West Wind Technologies, 2016 * http://www.west-wind.com/ * * Created: 04/28/2016 * * The above copyright notice and this permission notice shall be * included in all copies or subs...
e3749ddd223389cd85890789116cb4b52a323fdb
C#
American-University-ACM/shuttle-tracker-server
/Bus.cs
2.71875
3
using System; using System.Xml; using System.Xml.Serialization; using System.Collections.Generic; namespace Tracker { public class Bus { //================================================= //=== Constants === //================================================= public st...
cf8178ced39c962f9ab319b6e6bc1e0329db11e7
C#
srbeider/nkServer
/ArtistsService/ArtistsService/Models/ArtistsRepository.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ArtistsService.Models { public class ArtistsRepository : IArtistsRepository { private List<Artist> artists = new List<Artist>(); private int _nextId = 1; public ArtistsRepository...
697dcb584899aaa419c63c8d42fd6f5b68a2f23e
C#
WangDooo/C-SHAPE
/C#-软件项目开发基础-苏前敏/Learning/委托和事件/DelegateAndEvent/DelegateAndEvent/Program.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Delegate { class Program { public delegate void DelegateFun(int x, int y); static void Main(string[] args) { DelegateFun fun; int x = 4; ...
8e6565d34e25e7054e9209f4a08d3e33b0a8973b
C#
nexusasx10/TargemTest
/Test/Calculator/Lexeme.cs
3.015625
3
namespace Calculator { public struct Lexeme { public int StartIndex { get; } public int Length { get; } public TokenType TokenType { get; } public Lexeme(int startIndex, int length, TokenType tokenType) { StartIndex = startIndex; Length = length;...
a75598796035925dbf30ab89f480768b36722d4a
C#
deviserplatform/deviserplatform
/src/Deviser.Core/Deviser.Core.Data/Repositories/AbstractRepository.cs
3.046875
3
using System; using System.Collections.Concurrent; namespace Deviser.Core.Data.Repositories { public abstract class AbstractRepository { protected static ConcurrentDictionary<string, Object> repoCache = new ConcurrentDictionary<string, object>(); protected T GetResultFromCache<T>(string cache...
246bf806ba00033a6aa21223fde0fc4c1244aee7
C#
aoeaman/BankApplication
/BankTask/BankTask.Services/BankServices.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BankTask { public class BankServices :IBankServices { public Bank Create(Bank bank,string bankName) { bank.ID = bankName.Substring(0, 3) + DateT...
4b8bdf10c78f8417a250b9cf2cefc2e82cb37adb
C#
zhCNLiang/xframework
/Assets/Scripts/Framework/AssetBundle/Update/Downloader.cs
2.6875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Downloader { public double progress { get { return totalSize > 0 ? (double)downSize / totalSize : 0f; } } public long totalSize { get; private set; } public long downSize { get; private set; } public lo...
e6a66062c52dabaecaa9e7fe3594187b2b0fd43f
C#
Hengle/RoguelikeSouls
/RoguelikeSouls/Installation/Equipment/WeaponGenerator.cs
2.546875
3
using SoulsFormats; using SoulsFormatsMod.PARAMS; using System; using System.Collections.Generic; using System.Linq; using SoulsFormatsMod; using RoguelikeSouls.Extensions; namespace RoguelikeSouls.Installation { enum Upgrade { Normal = 0, // Default. No special effects. Crystal = 100, // St...
96378058f201e13d3e7ff410a912f8a0a1f1aa10
C#
iPersia/Total
/Algorithm/Nzl.Algorithm.OrderStatistics/Selection.cs
3.484375
3
namespace Nzl.Algorithm.OrderStatistic { using System; using Nzl.Algorithm; /// <summary> /// The selection class based on quick sort. /// </summary> public class Selection<T> : OrderStatistic<T> where T : IComparable<T> { /// <summary> /// /// </summary> ...
65a598259c75c992f6a3c115706188e6d4386d0f
C#
Vanaheimr/Styx
/Styx/Illias/Geometry/Interfaces/2D/ILine2D.cs
2.703125
3
/* * Copyright (c) 2010-2023 GraphDefined GmbH <achim.friedland@graphdefined.com> * This file is part of Illias <https://www.github.com/Vanaheimr/Illias> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy ...
bc81f7357ae71fa876a00786ddf602d9f658c648
C#
imrayya/ChessCsharp
/Chess/Player/Human.cs
3.171875
3
using System; using Chess.Basic; using Chess.Player.AI; namespace Chess.Player { public class Human : PlayerAbstract { private readonly RandomAI _randomAi; public Human(Board board, Color color) : base(board, color, "Human " + color) { _randomAi = new RandomAI(board, color...
ac36b496c492a9762925469bd3c6d95ee0f02ec8
C#
andrewchaa/SanPellgrino
/src/Extensions/DateTimeExtensions.cs
3.296875
3
using System; using System.Globalization; namespace SanPellgrino { public static class DateTimeExtensions { public static string ToIsoMicroseconds(this DateTime dateTime) { return dateTime.ToString("yyyy-MM-dd HH:mm:ss.ffffff", CultureInfo.InvariantCulture); } publi...
44491231947ba852e13933348f510f0544935986
C#
RasVandoros/Drawing
/Drawing/Utils.cs
3.53125
4
using System; using System.Drawing; using System.Drawing.Drawing2D; namespace Drawing { public static class Utils { /// <summary> /// Gets distance between two points /// </summary> /// <param name="point1"></param> /// <param name="point2"></param> /// <returns...
e357dcacf02aa92888eda245007a9cdb2134b527
C#
initialsam/Yame.Tools
/SmartEnumNote/Program.cs
2.890625
3
using System; using System.Linq; using Ardalis.SmartEnum.JsonNet; using Newtonsoft.Json; namespace SmartEnumNote { class Program { static void Main(string[] args) { // Original Console.WriteLine(CryptoEnum.Bitcoin.GetShortName()); Console.WriteLine(CryptoE...
5027b7735d5631ba8c17a0b6f556519405a4c284
C#
LordMajo/MunktellSciencePark
/Assets/PlayWay Water/Scripts/Utilities/Heap.cs
3.421875
3
using System; using System.Collections.Generic; namespace PlayWay.Water { /// <summary> /// Max-heap /// </summary> /// <typeparam name="T"></typeparam> sealed public class Heap<T> : IEnumerable<T> where T : IComparable<T> { private T[] elements; private int numElements; public Heap() : this(8) { } ...
df130cf907e3cdf05017c03f8c2b7448d978790c
C#
GabrielStancu/SharkDelivery
/Shark Delivery/UserProfile.xaml.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
93f84f93eb9ef7da514f549a1eac67f817acd941
C#
Buraburaite/UntitledGame
/ElementCard.cs
2.96875
3
using System; public class ElementCard : Card { #region ELEMENTCARD:FIELDS //Note: All fields have properties, and vice-versa. Field names end with an F. private int idf; private int powerf; private Element elementf; #endregion #region ELEMENTCARD:PROPERTIES public Element element { get { ret...
693e930900a0c832bef12e9828042fc2620974f4
C#
KumoKyaku/Megumin.Explosion
/Megumin.UnityPackage/Packages/megumin.explosion4unity/Runtime/Scripts/NewClass/DataTimeOffsetTest/DateTimeOffsetTest.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using UnityEngine.Events; using UnityEngine.UI; namespace Megumin.Test { /// <summary> /// 测试两个未同步的设备DateTimeOffset.UtcNow的误差. /// </summary> /// <remarks> /// 结论:<para/> /// 同一台设备两个不同程序取得utc时间居然也不同,差2...
788c0d18e03e98715a24edb5f5f382dc6f97191f
C#
chancie86/AdventOfCode
/2020/Day 1/Day1/Part2Task.cs
3.578125
4
using System; using System.Collections.Generic; namespace Day1 { public class Part2Task { private int? _result; public Part2Task(IList<int> data) { Data = data ?? throw new ArgumentNullException(nameof(data)); } public IList<int> Data { get; } pub...
c91a15f868e58846e687e936e4b4f95ed10d29fc
C#
nowaksmini/KTL
/KTL/KTL/Form2.cs
2.625
3
using System; using System.Linq; using System.Drawing; using System.Drawing.Text; using System.Windows.Forms; namespace KTL { public partial class Form2 : Form { private Game game; private Color _actualColor; private bool? victory; public Form2() { ...
cae4090fc85a1d9cc34983f646e073c1a2228a67
C#
RezaAshena/XamarinMobileApp
/Tms_WebApp/Models/Notification.cs
2.609375
3
using System; using System.ComponentModel.DataAnnotations; namespace Tms_WebApp.Models { public class Notification { public string Id { get; set; } public DateTime DateTime { get; set; } public NotificationType Type { get; set; } public DateTime? OriginalDateTime { get; set; ...
fd00174beccbcd847795a1eb6c060581abc7bc5e
C#
AzherAleem/HackerRank
/ComparetheTriplets.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HankerRank { class CompareTheTriplets { // Complete the compareTriplets function below. static List<int> compareTriplets(List<int> a, List<int> b) { List<int> lstScore = ...
57cddb587fa7b63c4d1de7083cfc3377c0bdf847
C#
Solomon13/SharpCourses
/TestApp/DependencyInjection/BusinesLogic/User.cs
2.921875
3
using Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BusinesLogic { public class User : IUser { private string _name; private INotificationService _notificationService; public User(string userNa...
18411d87ce05e6c21c3bbb7286c444caa9cb8a33
C#
jwnichls/puc
/csharp/PhoneControls/TimeEditor.cs
2.609375
3
using System; using System.Drawing; using System.Windows.Forms; using PocketPCControls; namespace PhoneControls { /// <summary> /// Summary description for TimeEditor. /// </summary> public class TimeEditor : Control { /* * Constants */ private const int DEFAULT_HEIGHT = 22; private ...
3dd54299418d52dc5029458cfae52cdaa6bb32cd
C#
Flonx55/CSharpBasics
/0926 the first day/程序调试/Program.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 程序调试 { class Program { static void Main(string[] args) { //写完一段程序后,想看一下这个程序的执行过程 //当你写完这段程序后,发现,程序并没有按照你想象的样子去执行 //调试方法 ...
c0f87a617b734f26d702b667ec21dfc3a5df3c94
C#
bownie/Brazil
/ProjectBrazil/ProjectBrazil/Xyglo.Brazil.Xna/XygloXnaDrawable.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; namespace Xyglo.Brazil.Xna { /// <summary> /// An abstract base class that we can use to hold the thing...
fb798509c674402cf5f3775da6012ecf9463cafb
C#
AnaKostadinova/Programming-Fundamentals-C-Sharp-Exercises
/Lists/StuckZipper/StuckZipper.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; public class Program { static void Main(string[] args) { List<int> a = Console.ReadLine().Split().Select(int.Parse).ToList(); List<int> b = Console.ReadLine().Split().Select(int.Parse).ToList(); ...
a2e436346a11324b9b833982971a4f8d28dc507f
C#
NEU-mathe/CreateLATotalPaper
/CreateLATotalPaper/Program.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MSWord = Microsoft.Office.Interop.Word; using System.IO; using System.Reflection; namespace CreateLATotalPaper { class one { public static void once() { } ...
b55fd5fff28641c7f323a4dd24d16c26d0d592e9
C#
reddtsai/coreEventMessage
/test/eventMessage.UnitTests/PushPullTests.cs
2.71875
3
using System.Text; using System.Threading; using Xunit; namespace eventMessage.UnitTests { public class PushPullTests : IClassFixture<PullFixture> { PullFixture _fixture; public PushPullTests(PullFixture fixture) { _fixture = fixture; } [Fact] ...
91712a92fdb1d9480550c1c2bf7512d27a7f1851
C#
eduardomb90/Automacao_Esaj
/RoboEsaj.Domain/Helpers/DriverDoChrome.cs
2.578125
3
using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using System; using System.IO; using System.Reflection; using System.Windows.Forms; namespace RoboEsaj.Domain.Helpers { // Factory Method public static class DriverDoChrome { public static string GetChromeFolder() => Path.GetDirectoryName(Assem...
569b1cea0b64394c29aeada9ab14a5b7c59b0466
C#
legimenes/roteirizador
/src/Roteirizador/Domain/Core/Notifications/Notificator.cs
2.640625
3
using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Roteirizador.Domain.Core.Notifications { public class Notificator : INotificator { private List<Notification> _notifications; public Notificator() { _notific...
4451ea36d4394a0b1d9137f1d83f91bb86ddbd0d
C#
hoangviet-dev/XepLichThi
/XepLichThi/Models/LichThi.cs
2.59375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace XepLichThi.Models { class LichThi { public LichThi(string maLichThi, string maLopHocPhan, DateTime ngayThi, int thoiGian, string maPhong...
74d7ebdedb6913316eda132f6982d0c75bdfa3cb
C#
vivekkumarm/GPS
/JeevanGPS.API/Controllers/PersonController.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web; using System.Web.Http; using JeevanGPS.BO; using JeevanGPS.BL; using FluentValidation; using FluentValidation.Mvc; using FluentValidation.Attributes; using FluentValidation.Validators; using Fl...
d7750f3819d946cf2d1ad02485408ebe4deafa04
C#
klambe/C-Sharp-Labs
/Ca12016/Ca12016/ElectricalItem.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ca12016 { public class ElectricalItem : ICartable { public string ProductCode { get; set; } public string ProductDescription { get; set; } public double Prod...
6cd5ea04c6493f5572828b53977f07c83b4f5662
C#
matajoh/aoc_2020
/day15/Program.cs
3.671875
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace day15 { class Program { static long GetIndex(long[] prefix, long index) { Dictionary<long, long> lookup = new(); long spoken = -1; for(int i=0; i<prefix.Length; ++i...
3361280efef3297120d3b8a2cb842c28220d3f84
C#
strizzwald/Strizzwald.Amqp
/Amqp.Types.Tests/AmqpStr32UTF8Tests.cs
2.546875
3
using System.Text; using NUnit.Framework; namespace Amqp.Types.Tests { [TestFixture] public class AmqpStr32UTF8Tests { [Test] public void AmqpStr32UTF8_ReturnsBytes() { var helloWorld = "Hello world"; var helloWorldBytes = Encoding.UTF8.GetBytes(helloWorld)...
9497e6c451ee7f6fdc503da72c829839019bab1b
C#
dimitargeorgiev1990/Telerik-Academy
/Programing C# - 1/BGCoderTasks/BGCoderSubmisionsAndHW/Saddy Kopper/Program.cs
3.25
3
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace Saddy_Kopper { class Program { static void Main(string[] args) { BigInteger publicNumber = BigInteger.Parse(Console.ReadLine()); string pubN...
a28bea2373244a3f4b75ed72d367df4323cdb6e5
C#
Juanmaramon/VerticalShooter
/Assets/_Scripts/Enemies/ColumnEnemy.cs
2.671875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using Core; /// <summary> /// Column enemy. This enemy will start at the top screen bound and go down in a diagonal direction /// until it changes movement direction /// </summary> public class ColumnEnemy : EnemyBase { #region Publi...
289b29a5808ec27e8a64e9dd6e06ab5be7f6163a
C#
iseebi/MvvmCrossPlayground
/MvxImageViewBindingSample/MvxImageViewBindingSample.Core/ViewModels/FirstViewModel.cs
2.71875
3
using Cirrious.MvvmCross.ViewModels; using System; namespace MvxImageViewBindingSample.Core.ViewModels { public class FirstViewModel : MvxViewModel { const string BaseUrlString = "http://half-done.net/misc/delayimage.php?delay={0:#}&text={1}"; public FirstViewModel() { Del...
8c194a73c90e490715d89b5873aa903ceb2a97a6
C#
jascou/OpenPanzerBlitz
/Model/Chat/AddChatMessageAction.cs
2.765625
3
using Cardamom.Serialization; namespace PanzerBlitz { public class AddChatMessageAction : ChatAction { public readonly ChatMessage Message; public Player Player { get { return Message.Player; } } public AddChatMessageAction(ChatMessage Message) { this.Message = Messag...
f379655cac17407f44432caac751d80348e0b011
C#
sgonzavar/toolDev
/view/see_Date.cs
2.609375
3
using System; using System.Collections; 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 exampleo01 { public partial class see_Date : Form { ...
14017f5258b83825940e452c4b2ba011ec44188d
C#
caseygoodhew/disposable
/code/Disposable.MessagePipe.Test/MessengerTest.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using Disposable.Common.Extensions; using Disposable.Test.Extensions; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Disposable.MessagePipe.Test { [TestClass] public class MessengerTest { private enum TestEnum ...
65507fc98ba59961d15b0560ed77f321df404063
C#
gurfinkel/leetCode
/problems/Maximum Vacation Days/maxVacationDays.cs
2.890625
3
public class Solution { public int MaxVacationDays(int[][] flights, int[][] days) { var memo = new int[flights.Length, days[0].Length]; for (int i = 0; i < memo.GetLength(0); i++) { for (int j = 0; j < memo.GetLength(1); j++) { memo[i, j] = Int32.MinV...
366673f71540cfe60b63190c71c1bc912f2fcd80
C#
karayakar/AngleSharp
/AngleSharp/Dom/Css/Properties/Flow/CssDisplayProperty.cs
2.765625
3
namespace AngleSharp.Dom.Css { using AngleSharp.Css; using AngleSharp.Extensions; using System; /// <summary> /// Information can be found on MDN: /// https://developer.mozilla.org/en-US/docs/Web/CSS/display /// Gets the value of the display mode. /// </summary> sealed class CssDis...
4f3a4d0b1708c5e37e69bb36854992559ec91240
C#
CXuesong/Juniper
/MAGIK/Academic/Contract/Entity.cs
2.640625
3
using System.Collections.Generic; using System.Globalization; using Newtonsoft.Json; namespace Microsoft.Contests.Bop.Participants.Magik.Academic.Contract { /// <summary> /// 表示 Evauation 返回的的一个实体。 /// </summary> public class Entity { [JsonProperty("logprob")] public float Logarith...
9dd98f56236de5fd1a6ee86b4c122560e4ebbc17
C#
tarmizi/GPSTrackingApp_UpgradeAutisme
/Models/MarkerModel.cs
2.703125
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Web.Http; namespace TrackingInfo.Models { public class MarkerModel { public int ID { get; set; } ...
0b2f5f945bc17f522d51eb142a5dd1265ec0d232
C#
philcleveland/card-game-framework
/Game.OFCP/TableEvents/PlayerReadyEvent.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Game.OFCP.Events { public class PlayerReadyEvent : Event { public readonly string TableId; public readonly string PlayerId; public readonly string PlayerName; ...
dcea86f31ec5d4fda21e34c6a24e845752cc63ac
C#
n2ziasm/yura.kosyak.homeworks
/Week1/Task 3/TextFormat.cs
3.53125
4
using System; using System.IO; using System.Text; using System.Text.RegularExpressions; namespace Task_3 { internal class TextFormat { public void Text() { var text = File.ReadAllText(@"../../altex_soft_31.txt"); var pattern = @"-?[0-9]+(,|.)[0-9]+"; Console.WriteLine(Display(text)); ...
ca5af1a4dddde5203c1f007cd32f23da328688e5
C#
csritter/MaxMath
/Runtime/Functions/float8 To Optimize.cs
2.765625
3
using System.Runtime.CompilerServices; using Unity.Mathematics; using Unity.Burst.Intrinsics; using static Unity.Burst.Intrinsics.X86; namespace MaxMath { unsafe public static partial class maxmath { /// <summary> Returns the componentwise floating point remainder of x/y. </summary> ...
ef99f867c27266c3f0e5dfdb790265b41332a7bf
C#
VyacheslavTretyak/04_ADO_Linq
/Linq2/Program.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Linq2 { class Employee { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public int Age { get; set; } public int DepId { get;...
e6889d586f2e928c34cd41b81baa0dea34c3f15e
C#
liamht/Api-Giraffe
/APIGiraffe.ApplicationServices/Headers/Commands/DeleteHeader/DeleteHeaderCommand.cs
2.546875
3
using System; using APIGiraffe.Data.UnitOfWork; namespace APIGiraffe.ApplicationServices.Headers.Commands.DeleteHeader { public class DeleteHeaderCommand : IDeleteHeaderCommand { private readonly IUnitOfWork _uow; public DeleteHeaderCommand(IUnitOfWork uow) { _uow = uow; ...
b00620bf8913efe1fd3ef7773254641b1c5aac5e
C#
pierosdk/SportsStore
/SportsStore/Models/EFProductRepository.cs
2.71875
3
namespace SportsStore.Models { using System.Linq; /// <summary> /// Defines the <see cref="EFProductRepository" /> /// </summary> public class EFProductRepository : IProductRepository { private ApplicationDbContext context; public EFProductRepository(ApplicationDbContext ct...
edfaee81ab0a8d86d01d8da53e330ec56f02dd58
C#
vizzada1/PercorsoCircolare
/PercorsoCircolare.BL/BookingManager.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using PercorsoCircolare.Common; using PercorsoCircolare.DAL; using PercorsoCircolare.Entities; namespace PercorsoCircolare.BL { public class BookingManager { private readonly BookingRepo repo = new BookingRepo(); /// <summary>...
c77ad91ea2f67c02d8bf4031ce49e419b7d773ec
C#
FadiChamas/C-sharp
/ChamasF_LoopEx04/ChamasF_LoopEx04/Program.cs
4.09375
4
/************************************************************ PROGRAMME : Console Ex04 OUTLINE : This programme prompts the user to enter in a number, and will display all the numbers either even, odd or divisible by 9. PROGRAMMER : Fadi Chamas DAT...
7132aadc7373e47645623599f76df0bb19286080
C#
sergiorykov/SantaHo
/Source/SantaHo.Core/Configuration/SettingsConverter.cs
2.53125
3
using System; namespace SantaHo.Core.Configuration { public abstract class SettingsConverter<TOriginalSettings, TCurrentSettings> { public bool PreserveOriginal { get; protected set; } public TCurrentSettings Convert(TOriginalSettings originalSettings) { return ConvertCore...
ea28a698d3f571f2eb54c4a3e750dc847573f573
C#
dsp56001/iPhone
/WebApplicationPhone/WebApplicationPhone/App_Code/PotsPhone.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplicationPhoneNoInterface { public class PotsPhone : TelePhone { protected bool hasDialTone; public bool HasDialTone { get { return this.hasDialTone; } } public override bool Dial(...
6cd785d106aef57c0ab5eeba53bd316cdae3b432
C#
Vladimirtsarev/CSharp2
/Lesson2/Form1.cs
2.984375
3
/*1. * Построить три класса (базовый и 2 потомка), описывающих некоторых работников с почасовой оплатой (один из потомков) * и фиксированной оплатой (второй потомок). а) Описать в базовом классе абстрактный метод для расчёта среднемесячной заработной платы. Для «повременщиков» формула для расчета такова: «среднемес...
b9e00172f79896ab5a0b1d84eff491be3b28e942
C#
YJzhou0908/HomeworkCode
/Computer Networks/Gobang/Gobang/SendMessage.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Gobang { class SendMessage { #region old //StatusEnum status; //string strMsg; //public SendMessage(int a) //{ // this...
2571d06916c64fbae9ec6fc89f6eaa064def2b79
C#
nojronatron/HomeSalesTrackerExample
/HomeSalesTrackerApp/HomeSalesTrackerApp/DisplayModels/OwnerModel.cs
2.78125
3
using System.Text; using System.Collections.Generic; namespace HomeSalesTrackerApp.DisplayModels { public class OwnerModel : PersonModel { private string _personType = "Owner"; public int OwnerID { get; set; } public string PreferredLender { get; set; } = "Not identified."; pub...
dc9a78b3505ce29a7ab238be1f2bfc35be1e7f9a
C#
DarthFener/AppWPF-Csharp-Test
/AppWPF Csharp Test/ViewModel/MainViewModel.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; using Microsoft.Identity.Client; namespace AppWPF_Csharp_Test.ViewModel { public class MainViewModel : ViewModelBase { private string textVal = "Cambiami"; ...
84ec0f9f32061e1864ad147565f7d917074af2d5
C#
khristinademida/libraryE
/Autorisation/Authors.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.Odbc; using System.Data.SqlClient; namespace Autorisation { class Authors { //public static List<string> OutTeacher_Colums() //{ // List<string> coun...
f2fa82bc413aef4ed61e10d91984003918effbf3
C#
graczu0x0x0x0x0/SyncthingWeb
/src/Syncthing.Integration/Configuration/SyncthingApiEndpoint.cs
2.671875
3
using System; using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Syncthing.Integration.Exceptions; using Syncthing.Integration.Helpers; namespace Syncthing.Integration.Configuration { public class SyncthingApiEndpoint { public SyncthingApiEndp...
44096d620b4d95046103da0f3fe9f38a188c2862
C#
Dmitriy-Nox/CcharpForBeginers
/TestGitHub/Shop/Shop.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using Shop.Controls; using Shop.Model.Menu; using Shop.View; namespace Shop { public class Shop { public ShopControl ShopController; public MenuControl MainMenu; private IView ...
0718a602533404b16ac1324c1b720596bc93d153
C#
MarioDanov/3Dsquare
/WebCam/NMJ.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Newton_method { public class NMJ { public static double Epsilon = 1e-6; public static double[] Solve(FuncN[] funcs, double[] p) { for (int cnt = 0;...
aebcb6a16be70f913f05e6d5529732d911e3dd3d
C#
SnailPresident/KoenigCole_P02B
/Assets/Scripts/FireWeapon.cs
2.90625
3
using UnityEngine; public class FireWeapon : MonoBehaviour { [SerializeField] Camera cameraController; [SerializeField] Transform rayOrigin; [SerializeField] float shootDistance = 10f; RaycastHit objectHit; //store info about the raycast hit // Start is called before the first frame up...
fc65ce5f51672fc914d38d7f4dac622400f10799
C#
Antoineabel/UniversalTournament
/Assets/Scripts/Game Manager/GameManager.cs
2.734375
3
using UnityEngine; using UnityEngine.UI; using System.Collections; public class GameManager : MonoBehaviour { private int m_iNumberOfEnnemies; private int m_iNumberOfAllies; private bool m_bIsLost; private bool m_bIsWin; public Text m_txtLifeText; public Text m_txtBouclierText; public Text m_txtScoreTex...