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
77d7f59a1a8bd6514635f9b0f50224617a287d6f
C#
ZhipengZeng/Lottery-Simulator-with-CSharp
/Ex4-Lottery/Ex4-Lottery/SpecialNumberList.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ex4_Lottery { class SpecialNumberList : NumberList { private static readonly Random random = new Random(); private static readonly object syncLock = new object(); ...
3e84fe488b6328a20bda5438d13f8f94ef178d19
C#
davidaturner/CoderForLife-WozU
/FSWO104-CS/VSC/L11/DynamicProgramming/Fibonacci/Program.cs
3.546875
4
using System; namespace Fibonacci { class Program { /* Write a function that takes a int arg and returing the n-th value on fibonacci sequence. Example: n: 1 2 3 4 5 6 7 8 fib(n): 1 1 2 3 5 8 13 21 */ static void Main(...
791f4f29780a184175b62d40238a231d5a08b064
C#
nikitapond/ProceduralRPG
/Assets/Scripts/World/WorldDateTime.cs
2.9375
3
using UnityEngine; using UnityEditor; /// <summary> /// Keeps track of the current date and time in the world /// </summary> public class WorldDateTime { //1 game hour is 60 seconds public const float HOUR = 6; public const float DAY = HOUR * 24; private float TotalTime; private float CurrentDa...
838a61b3842fbf1460015d394abc41bcd144cec4
C#
Emudofus/Aldos
/Network/Messages/game/friend/FriendDeleteResultMessage.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Aldos.Network.Messages.game.friend { class FriendDeleteResultMessage : Utils.Objects.Packet { public string Target { get; set; } public bool Success { get; set; } public FriendD...
4c4350bbb1d2bbc9ebd72e85d6ef9787cefdc848
C#
Aquaryus01/MPP
/Laborator7/Persistance/repository/SampleRepository.cs
2.734375
3
using Domain.domain; using log4net; using Persistance.connectionUtils; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Persistance.repository { public class SampleRepository : ISampleRepository { public ...
1bf9360d75b8803a37994f7f4929e1ced1010bd3
C#
stefanlynka/BrokenParts
/Assets/Scripts/LevelEntities.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class LevelEntities : MonoBehaviour { public List<Entity> Entities = new List<Entity>(); public GameObject acorn_prefab; public GameObject enter_prefab; public GameObject exit_prefab; int entity_count; publi...
69480724997a4a765ebe8fd79a571d97fbf539c9
C#
iliangogov/Data-Structures-and-Algorithms
/Workshop2016/WorkshopDsaSortSerachGreedy/Quicksort/Program.cs
3.84375
4
using System; using System.Linq; namespace Quicksort { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); var list = Console.ReadLine().Split(' ').ToArray(); Quicksort(list, 0, list.Length...
9d31b7d792ae0ba97ce905e8774304619bf4a6c5
C#
r0lan2/TodoWebApi
/Web.App.Core/Services/TodoRepository.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using Web.App.Core.Entities; using Web.App.Core.Models; namespace Web.App.Core.Services { public class TodoRepository : ITodoRepository { private TodoContext _context; public TodoRepository(TodoContext context) { ...
83dba7dde02c75944fea4fa96cd50c3945722dc4
C#
otavio-azevedo/Alura.Loja
/Alura.Loja.Testes.ConsoleApp/ProdutoDAOEntity.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; namespace Alura.Loja.Testes.ConsoleApp { internal class ProdutoDAOEntity : IDisposable, IProdutoDAO { private readonly LojaContext context; public ProdutoDAOEntity() { context = new LojaContext(); }...
e321354bca7f0ae21a63bbd838edc6546a596b3c
C#
pp8323127/MotionRecognition
/MotionRecognition/RecordingClass.xaml.cs
2.9375
3
using System; using System.IO; using System.Windows; namespace MotionRecognition { /// <summary> /// RecodeWindows.xaml 的互動邏輯 /// </summary> public partial class RecordingClass : Window { private string filePath = System.IO.Directory.GetCurrentDirectory() + "\\"; public RecordingC...
860d9fae7690b3f4c67ec61f1ea9de22d8a0c371
C#
xiandev/todoXF
/ToDo/ToDo/Repositories/TodoItemRepository.cs
3.125
3
using SQLite; using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; using ToDo.Models; namespace ToDo.Repositories { public class TodoItemRepository : ITodoItemRepository { #region " Variables " private SQLiteAsyncConnection _connec...
cd0e1bf9ee1d2cc85f3420cc5f58643b160ec49d
C#
emilia98/PBasics_Gabrovo_2018
/03. Conditional Statements/Lab/07.EqualWords/EqualWords.cs
3.640625
4
using System; namespace _07.EqualWords { class EqualWords { static void Main() { string wordA = Console.ReadLine(); string wordB = Console.ReadLine(); wordA = wordA.ToLower(); wordB = wordB.ToLower(); if (wordA.Equals(wordB)) ...
81e4f8a3b47538648162c2250dd0146d663126e7
C#
mouadh9/Object-Oriented-Programming
/Exercises_Encapsulation/ShoppingSpree/Program.cs
3.296875
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Remoting.Messaging; using System.Text; using System.Threading.Tasks; namespace ShoppingSpree { class Program { static void Main(string[] args) { List<Person> people = new List<Person>(); ...
6bd8a1184f430700e2c67fd5fa2d87e5e5a644fa
C#
Bobotsov/CSharp-1
/IntroductionToProgramming/CurrentDateAndTime/CurrentDateAndTime.cs
3.484375
3
using System; namespace CurrentDateAndTime { class CurrentDateAndTime { static void Main(string[] args) { DateTime now = DateTime.Now; string date = now.GetDateTimeFormats('d')[0]; string time = now.GetDateTimeFormats('t')[0]; Console.WriteLine("...
6b3b66742338af74a8a2e7491663bac7205928da
C#
mfpgod/ServiceFabric-Logging
/Shared.Logging/ILoggerExtensions.cs
2.671875
3
namespace Shared.Logging { using System.Diagnostics; using Microsoft.Extensions.Logging; public static class ILoggerExtensions { public static void LogRequest(this ILogger logger, RequestLog request, Activity activity = null) { if (activity != null) { ...
b62ae5964c6e7294ed1a1a8f1a3b232ff7dcee91
C#
math323n/EntityFrameworkS3
/EntityFrameworkS3/Program.cs
2.515625
3
using Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Internal; using Microsoft.IdentityModel.Tokens; using System; using System.Collections.Generic; using System.Linq; using System.Reflection.PortableExecutable; namespace EntityFrameworkS3 { class Program { // Cr...
af1314ac9c078547eb4517edc84b35483bd993b3
C#
CarlosVV/sic
/Infrastructure/Infrastructure.Core/Extensions/EnumExtensions.cs
3.203125
3
namespace Nagnoi.SiC.Infrastructure.Core.Helpers { #region Imports using System; using System.ComponentModel; using System.Linq; #endregion /// <summary> /// Enumeration extension methods. /// </summary> public static class EnumExtensions { /// <summary> /// G...
2c40ca3df169b7eaa66fb36e0c2565779810305a
C#
sachdevahimanshu111/SecretManagement
/AzureKeyVault/Program.cs
2.890625
3
using Microsoft.Azure.KeyVault; using Microsoft.IdentityModel.Clients.ActiveDirectory; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace AzureKeyVault.App { class Program { static async Task Main(string[...
cd2c9faa632abbdbf9574b6c705e399164f709fa
C#
aliozgur/VenturaSQL
/VenturaSQL.NETStandard/Frames/FrameReaderBase.cs
2.65625
3
using System; using System.Reflection; using System.Text; namespace VenturaSQL { public abstract class FrameReaderBase { /// <summary> /// The Buffer. /// </summary> protected byte[] _buffer; /// <summary> /// The position in the buffer. /// </summary> ...
a4a4d8921d87d08f5bad01f7387b91cc4485b07d
C#
HarisCesir/ScreenAds
/Database/Klase/TipoviObjektaDB.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Database.Klase { public class TipoviObjektaDB { public static void DodajTip(string naziv) { connection.db.DodajTipObjekta(naziv); } public st...
3b10ad0bbc397c39413bf8cf691f1ea162fb7f57
C#
us5nar/CourcesP1
/Lesson_04/04_Stack/04_Stack/Program.cs
3.734375
4
using System; using System.Collections.Generic; using System.Text; namespace _04_Stack { class Program { static void Main(string[] args) { Console.WriteLine("Stack demonstration"); int[] arrayForSteck = new int[6] { 10, 20, 30, 40, 50, 60 }; // MyStack intSta...
a9d0204d91bde3e50740b90e745ec271ea33f089
C#
astambi/Databases-Advanced
/12-TeamBuilder/TeamBuilder.App/Core/Commands/RegisterUserCommand.cs
3.15625
3
namespace TeamBuilder.App.Core.Commands { using Data; using Models; using System; using System.Linq; using Utilites; class RegisterUserCommand { // RegisterUser <username> <password> <repeat-password> <firstName> <lastName> <age> <gender> public string Execute(string[] inpu...
b57ecde8a1eb982586dfe8d701ae38d1dc2da849
C#
FeatheredUp/word-game
/src/Words.API/ViewModels/SquareResult.cs
2.65625
3
namespace Words.API.ViewModels { public class SquareResult { public string Letter { get; set; } public int Height { get; set; } public SquareTypeResult SquareType {get; set;} public SquareResult(string letter, int height, SquareTypeResult squareType) { Lette...
b449a14ba66415610e6202a1c7005899fa6297cf
C#
umbraco/Umbraco-CMS
/src/Umbraco.Core/Models/Membership/EntityPermission.cs
2.609375
3
namespace Umbraco.Cms.Core.Models.Membership; /// <summary> /// Represents an entity permission (defined on the user group and derived to retrieve permissions for a given user) /// </summary> public class EntityPermission : IEquatable<EntityPermission> { public EntityPermission(int groupId, int entityId, strin...
57cdccf2f68c8f9ea3fa34dc9fc794fb39c09349
C#
backlune/CodeGround
/CodeGround.Base/CSharpVersions/Nine.cs
2.671875
3
using System; using System.Collections.Generic; using System.Text; namespace GodeGround.Base.CSharpVersions { public record Person2 { public string FirstName { get; init; } public string LastName { get; init; } } public record Person(string FirstName, string LastName); internal c...
93b8cedcbe3eb5a21d08b04d6716191efe69025a
C#
u8989332/Design-Patterns-Practices
/AbstractFactoryPattern/HumanBuilder/MaleBlackHuman.cs
2.609375
3
using System; namespace HumanBuilder { class MaleBlackHuman : AbstractBlackHuman { public override void GetSex() { Console.WriteLine("Black male"); } } }
8d241effdede1988f195ae820b826e127e074d48
C#
l3itkg/ExperementalDataProcessing
/lab2/lab2/Form1.cs
2.875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Windows.Forms; namespace lab2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); chartAbs.ChartAreas[0].AxisX.LabelStyle.Format = "{0:N2}"; ...
6dae8a0b7899280025570d54ea9df2f74aaa773d
C#
michailgm/Misho.Cloud.MegaNz
/Sources/ProgressionStream.cs
2.71875
3
using System.IO; using System; namespace Misho.Cloud.MegaNz { internal class ProgressionStream : Stream { private readonly Stream baseStream; private readonly IProgress<double> progress; private readonly long reportProgressChunkSize; private long chunkSize; public Prog...
252ae1302f2487d2a78068cb3e5dc0640486f5d9
C#
RadicalFx/Radical.Windows
/src/Radical.Windows/Validation/DataAnnotationValidationService.cs
3.078125
3
using Radical.Linq; using Radical.Validation; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using DataAnnotations = System.ComponentModel.DataAnnotations; namespace Radical.Windows.Validation { /// <summary> /// DataAnnotationValidationService factory. /...
e66203db23faa6edd392e5ad3f236ec590c13830
C#
zmiles17/pizza-delivery
/PizzaDelivery/Models/Item.cs
2.671875
3
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; namespace PizzaDelivery.Models { public class Item { public int Id { get; set; } [MaxLength(100)] [Required] public string Name { get; set; } [Required] ...
88b40ad4a2e6fc437710407c9278a415dfb84a9e
C#
Meigston/xamarin-test-themoviedb
/AppXamarinTestThemoviedb/AppXamarinTestThemoviedb.Shared/Models/Movie.cs
2.578125
3
namespace AppXamarinTestThemoviedb.Shared.Models { using System; using AppXamarinTestThemoviedb.Extensions; using AppXamarinTestThemoviedb.Models; using AppXamarinTestThemoviedb.Shared.Resources.Values; using Newtonsoft.Json; public class Movie { [JsonProperty("id")] public int Id { get; set; } [Json...
851341f667af2882087ed3850b5fad1a1b381106
C#
futuredaico/FD_Contract_NEO
/N_ORG_NEO/MathVerify/Program.cs
3.703125
4
using System; using System.Collections.Generic; namespace MathVerify { class Program { private static Dictionary<string, Func<bool>> methods = new Dictionary<string, Func<bool>>(); static void Main(string[] args) { InitMethods(); ShowMethods(); whil...
7da693599e9a8b8319f5ef01f4b101bb0ca12451
C#
JVazquez38/Rutas
/Base.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Rutas { class Base { private string _nombre { get; } private DateTime _minutos { get; } public Base siguiente; public Base(string nombre, D...
d963cf09f991e872e4bf062720790fad4ebe2f38
C#
Scepheo/GitMan
/src/GitMan/Providers/GitHubProvider.cs
2.625
3
using GitMan.Config; using System; using System.Net.Http; using System.Net.Http.Headers; using System.Reflection; using System.Text; using System.Text.Json; namespace GitMan.Providers { internal class GitHubProvider : RemoteProvider { private readonly string _username; private readonly string ...
1339de4c6428a7d6d0f0eaa1103a8e814f9124a6
C#
immm007/Teflon
/SDK/Core/Logger.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MDCS; namespace Teflon.SDK.Core { public interface ILocalLogger { void AddVariable(string var_name, string value_string); void Log(string log_path); void PrintAllVariables(string path); } ...
6fadf773246673708eb48e1484c2adc562c321b2
C#
SweKing/InheritanceFoodExercise
/Assets/scripts/Usability.cs
3.15625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Usability : Item { public float uses; public float maxUses; public void OnMouseUpAsButton() { if (uses >= 1) { Debug.Log(UseText()); //baaaaals lmao Use(); } ...
361f0a11af93095a3157f4e5ea91c7c960bda012
C#
BorisLechev/Programming-Basics
/Documents/Github/Programming-Fundamentals/5. Arrays/6. Arrays - More Exercises/4.GrabAndGo/Program.cs
3.75
4
namespace _4.GrabAndGo { using System; using System.Linq; public class Program { public static void Main() { int[] arrOfNums = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int stopNumber = int.Parse(Console.ReadLine()); bool isStopNumb...
c1d9a1ba1ccf75028a7ec2699c1214e7f82be9ea
C#
wmr049/intermeccontrols
/DPAG7/Hasci.TestApp.And_Controls/IntermecControls/Hasci.TestApp.IntermecBarcodescanControl6/RandomClass.cs
2.578125
3
using System; using System.Linq; using System.Collections.Generic; using System.Text; namespace Hasci.TestApp.IntermecBarcodeScanControls6 { class RandomClass { int _iSeed; // double dRnd; Random _random; double _treshold = 0.3; public RandomClass() ...
da805128a7865ae3df87c2cf4afefe326b7288da
C#
lobertski/E-Magazine
/E-MagazineSystem/LogIn.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SqlClient; using System.IO; namespace E_MagazineSystem { public partial class LogI...
6b52c8fffb48a8b8e53c28269763127fd3f82931
C#
idtitkov/epam-dotnet-tasks
/NET.W.2019.Titkov.08/Bank/BankStorage.cs
3.296875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NET.W._2019.Titkov._08 { public class BankStorage { private readonly string filePath = @"D:\Downloads\accounts.dat"; private List<BankAccou...
c5dad46da80405f347a643ee38cbdc2f3fbac638
C#
PureWeen/DevDays_20171116
/Xamarin/DevDays/Services/UserService.cs
2.671875
3
using DevDays.ViewModels; using System; using System.Collections.Generic; using System.Reactive; using System.Reactive.Linq; using System.Text; using DynamicData; using System.Reactive.Concurrency; using DevDays.Models; using System.Text.RegularExpressions; namespace DevDays.Services { public class UserService : ...
f79e0070e4b93ab8f2c680832c996071ef1f76c8
C#
vika98z/PathFinder
/Assets/Scripts/AI/MovementProperties.cs
2.765625
3
using System; namespace BaseAI { /// <summary> /// Параметры движения агента - как может поворачивать, какие шаги делать /// </summary> [Serializable] public class MovementProperties { /// <summary> /// Максимальная скорость движения агента /// </summary> public...
eba9055932c10c6ab545871454c99ab85ead04b2
C#
bartoszpanek1/cvrp-problem
/MSI2/Algorithms/GreedySolver.cs
2.859375
3
using MSI2.Graphs; using System; using System.Collections.Generic; using System.Linq; namespace MSI2.Algorithms { public class GreedySolver : ICVRPSolver { private static readonly (List<List<Node>> VisitedNodes, int TotalDistance) NO_RESULT = (null, -1); public (List<List<Node>> VisitedNodes,...
ac3d39339cb2fa6ef0658d7aeaad41b4d42e6264
C#
almiskov/it-nordic-cs
/12/ClassWork/Inheritance/Passport.cs
2.78125
3
using System; namespace Inheritance { class Passport : BaseDocument { public string PersonName { get; set; } public string Country { get; set; } public Passport(string docNumber, DateTimeOffset issueDate, string personName, string country) : base("Passport", docNumber, issueDate) { PersonName = perso...
6da2572ce4015ddd657bdcfad16ec057d04da094
C#
great-communication/sprint-cv
/WebSite3/App_Code/ExperienceHandler.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using WebMatrix.Data; /// Experience = Job / Employment /// public class ExperienceHandler { private CurrentUser user; public ExperienceHandler(CurrentUser user) { this.user = user; } public List<Expe...
b17c65674b28419f97ff823b17700b802cec0231
C#
MyresearchEdu/Sample-Code
/src/WCF-Load-Test/Library/Utility.cs
2.875
3
//--------------------------------------------------------------------- // <copyright file="Utility.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING ...
721b1c350f58e20b65387df1889a44b741a9cd5a
C#
MeuLee/Casino
/Casino/CasinoUI/Views/Map/Tiles/Tiles.cs
2.8125
3
using CasinoUI.Utils; using System; using System.Drawing; using System.Windows.Media.Imaging; namespace CasinoUI.Views.Map.Tiles { internal static class Tiles { public enum TileType { RedFloor, BlackFloor, SlotMachine, BarTile } ...
2dea3336d36a88b0741086be51f5cab1f77a19cb
C#
kkabala/RepositoryAndUnitOfWorkPattern
/src/RepositoryAndUnitOfWorkPattern/SecondSolution/UseClass.cs
2.828125
3
using RepositoryAndUnitOfWorkPattern.SecondSolution.Interfaces; namespace RepositoryAndUnitOfWorkPattern.SecondSolution { public class UseClass { private readonly IUnitOfWorkFactory unitOfWorkFactory; public UseClass(IUnitOfWorkFactory unitOfWorkFactory) { this.unitOfWorkF...
643c494cd13c4a35bed195ec7e0d0e721e33f925
C#
phillip2468/TixGurus-WPF
/Ssample/ViewModel/Dashboard/MyAccountViewModel.cs
2.625
3
using SimpleWPF.Input; using SimpleWPF.ViewModels; using System.Windows.Input; namespace Ssample.ViewModel.Dashboard { /// <summary> /// A class which shows a user who has been logged in. /// Shows all the events as logged in. /// </summary> public class MyAccountViewModel : NavigationViewModelBas...
fd5f7f357dea40aaedee171925be65fe927a7bfc
C#
ilkerBuguner/CSharp-OOP
/02-Inheritance/Lab/04-Random-List/StartUp.cs
2.875
3
using System; namespace CustomRandomList { public class StartUp { static void Main(string[] args) { RandomList randomList = new RandomList(); for (int i = 0; i < 100; i++) { randomList.Add(i.ToString()); } for (int i ...
b7ba316a79b75571580cc755c390e56a3381942e
C#
Gallio/mbunit-v2
/src/mbunit/MbUnit.Framework/TestCase.cs
2.703125
3
using System; using System.Text; using System.Collections; using System.Reflection; using MbUnit.Core.Invokers; using MbUnit.Core.Framework; using MbUnit.Core.Runs; namespace MbUnit.Framework { /// <summary> /// A single test case of a <see cref="TestSuite"/>. /// </summary> public class ...
676107c741ae1f58747f7bd43072a21f3bfa5eb0
C#
EcutMaodunXu/EcutReEngineering
/Product1/Utility/XmlUtility.cs
2.515625
3
using EcutController; using System; using System.IO; using System.Linq; using System.Xml.Linq; namespace Utility { public class XmlUtility { //TODO: 可以简化 public static void SetConfig(ControllerConfigurationStruct controllerConfiguration) { var element = XElement.Parse(File....
340e6f1ddfb1862cc1da05ad8269aaee3fec40b4
C#
arfontai/AzureDigitalTwinsBackend
/DigitalTwinsBackend/Helpers/IoTHubHelper.cs
2.59375
3
using DigitalTwinsBackend.Models; using Microsoft.Azure.Devices.Client; using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Runtime.Serialization.Json; using System.Text; using System.Threading.Tasks; namespace DigitalTwinsBackend.Hel...
e4d588a82ab1be0e71771d9771c8a3d744c0c0e8
C#
RinaAi/DataBase
/DataBase/Program.cs
3.4375
3
using System; using System.Collections.Generic; using Dapper; using Npgsql; namespace DataBase { class Program { static void Main(string[] args) { PrepareDatabase(); using (var conn = CreateConnection("cats")) { Process(conn); } ...
436ea3b44eae9327b9433131d2d686929362baff
C#
Lincoln007/EntityFrameworkCore
/src/EFCore.Specification.Tests/TestUtilities/GeometryComparer.cs
2.546875
3
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using GeoAPI.Geometries; namespace Microsoft.EntityFrameworkCore.TestUtilities { public class Geom...
c43bd653a84911dea5397714cb832634cf4c09ed
C#
Desken-van/Weather
/Models/CallBacks/CallBack1.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Telegram.Bot; using Telegram.Bot.Types; using Telegram.Bot.Types.Enums; using Telegram.Bot.Types.ReplyMarkups; namespace TG.Models.CallBacks { public class CallBack1 { public static async Task Execut...
24de1fb961b71e2ea3db45ba637e618b89ccad3f
C#
vaster/Telerik.vasko
/homeworks/C#/OOP/OOPPrinciples/3.AnimalKingdom/Animal.cs
4.03125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _3.AnimalKingdom { public abstract class Animal { private int age; private string name; private string sex; //properties protected int Age ...
88965e5283b0643149eac46a650c630676ed4401
C#
Aomwi/Deploy
/TicTacToe_NewComplete/Form1.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.Windows.Forms; namespace TicTacToe { public partial class Form1 : Form { public int count = 0, numX = 0, numO = 0, posX = 0, posY = 0...
8b1a10f4f5248b67e43ec1581f69520b0d95fa5f
C#
ppy/osu-elastic-indexer
/osu.ElasticIndexer/Commands/Index/DeleteIndexCommand.cs
2.640625
3
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Linq; using System.Threading; using McMaster.Extensions.CommandLineUtils; namespace osu.ElasticIndexer.Commands.Index { [Command("delete",...
1113c9911800c50fc2c74a94c825442e72a581e7
C#
kellyburke300/ETL-Repo-KB
/FarmSystem.Test1/Model/Animal.cs
3.328125
3
using System; namespace FarmSystem.Test1.Model { public abstract class Animal { public Animal(int NoOfLegs = 4) { this.Id = Guid.NewGuid().ToString(); this.NoOfLegs = NoOfLegs; } public Animal(string Id, int NoOfLegs = 4) { this.Id =...
c9fb770866da0722ada410c35deb5d5da6bd68d5
C#
doodersrage/CSharp-test-files
/CIS214_Student_Data_Files/Chapter.11/DebuggingExercises/DebugEleven4/Backup/FixedDebugEleven4/Form1.cs
2.6875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace FixedDebugEleven4 { public partial class Form1 : Form { decimal price = 210000; const int BRICK = 5000; const in...
7efcf0a6cbf67bfe5c834bcf3d67a0153e6141d8
C#
Sicryption/Old-Programming-Projects
/Troubleshooter/Troubleshooter/Form1.cs
2.578125
3
using System; using System.IO; 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 XRPCLib; using JRPC_Client; namespace Troubleshooter { public partial class F...
a73fbd7294537711dd08da4be48416b7f19565e3
C#
longydpl/FoodShopOnline
/Models/EF/Order.cs
2.640625
3
namespace FoodShopOnline.Models.EF { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; [Table("Order")] public partial class Order { [System.Diagnost...
c2ee0697daacb0297497d19fcbe6d2914fc82d48
C#
kartike1998/Racetrack-Simulator
/Racetrack Simulator/Race.cs
2.796875
3
using System; using System.Windows.Forms; namespace Racetrack_Simulator { public class Race { public int tracklength = 519, startingPosition; public int[] location = new int[4]; public Random random = new Random(); public Dog winner; public Dog[] dogs; public v...
e7789cebd030a69a025710155c9b6835fd1f0cbd
C#
Salisbury-Software-Engineering-Team/GhostFacers
/Assets/Cards/Scripts/Effects/ModifyAttackDiceEffect.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(menuName = "Effects/ModifyAttackDice")] public class ModifyAttackDiceEffect : Effect { public int numAttackDiceIncrease = 0; public CharacterStat SpecialCharacter; // If held by bobby, gets better increase. pub...
8d49c4e124159d50c49565a722e068ac6268b026
C#
Xillith/Scripting_1600
/1600 Labs/Assets/Enumerations.cs
2.765625
3
using UnityEngine; using System.Collections; public class Enumerations : MonoBehaviour { enum Directions {North, South, East, Dude}; // Use this for initialization void Start () { Directions thisIsAVar = Directions.North; Debug.Log(thisIsAVar); thisIsAVar =aFunctrion(thisIsAVar); ...
9061d1e9791a895aa63f904a622854811b5651ed
C#
Eligioo/PRJ04
/XamarinForms/XamarinForms/XamarinForms/Calendar/Calendar.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Project4.GeoLocation; using Java.Util; namespace Project4.Calendar { public class Calendar : ContentPage { readonly Picker picker; readonly DatePicker ...
b2ef5d4d7d353de6364751b3422d65e83e793717
C#
Andreyfjrd/JacksTest
/Jacks1.1/main.aspx.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Jacks1._1 { public partial class main : System.Web.UI.Page { //Este Objeto se inicializa global para que pueda ser utilizado por las demas clases. ...
402ce870deed5d7199e2da45ec34fc1d80bc2dac
C#
samandmattea/projects
/CapstoneV2.Tests/MapTests.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CapstoneV2.BLL; using CapstoneV2.Models.Data; using NUnit.Framework; namespace CapstoneV2.Tests { [TestFixture] public class MapTests { [Test] public void ConvertAddres...
e74265f63b794a3b0a1b0964c92c876d0dc94330
C#
HickeyK/SpellCheck
/SpellCheck/Migrations/Configuration.cs
2.796875
3
namespace SpellCheck.Migrations { using Entities; using System.Data.Entity.Migrations; internal sealed class Configuration : DbMigrationsConfiguration<SpellCheck.SpellCheckContext> { public Configuration() { AutomaticMigrationsEnabled = false; } protected ov...
3e790438a7bb3be7c3c9a15ad816877d6c8b7e97
C#
RicardoMelo2357/DDDProjetoExemplo
/Infra/Persistencia/Contexto.cs
2.5625
3
using Dominio.Entidades.Usuario; using System; using System.Data.Entity; using System.Data.Entity.ModelConfiguration.Conventions; namespace Infra.Persistencia { public class Contexto : DbContext { public Contexto() : base("ProjetoExemplo") { Configuration.ProxyCreationEnabled = fal...
b24c5b0f4d3427ac037d6db9ad6488172656157f
C#
wancheez/VKAggregator
/VKAggregator/OrientDB.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Orient; using Orient.Client; namespace VKAggregator { class OrientDB { const string databaseAlias = "VK"; public OrientDB() { OClient.CreateDatabasePool...
ad7b22c262bcfdfff1b55425d952a64c7e411bb2
C#
seifipour/PlayGround
/test/TreeTest/BinaryTreeLowestCommonAncestorTest.cs
3.203125
3
using CrackingCode.src.Tree; using CrackingCode.src.Tree.lib; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace CrackingCode.test.TreeTest { [TestClass] public class BinaryTreeLowestCommonAncestorTest { /* 50 * / \ * 30 60 * /...
660db8aeec85509fe96bc24f219d47f17c20d34c
C#
Kristina-A/RecommenderSystem
/RecommendationEngine/CosineComparer.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using RecommendationEngine.Interfaces; namespace RecommendationEngine { public class CosineComparer : IComparer { public double CompareVectors(double[] vectorOne, double[] vectorTwo) ...
3177e8c3c7f75a025b0d802f815f9d47b4e17c97
C#
shendongnian/download4
/first_version_download2/102090-6932193-15188487-2.cs
2.640625
3
public class WellFile { DateTime FileDate { get; set; } String WellName { get; set; } String OriginalFile {get; set; } public WellFile(String FileName) { var fileHeader = FileName.Split(@' ').ToList(); wellName = fileHeader.First(); FileDate = Dat...
da3607d6fdb4cb436e7add5c08c37676ab3ee5fb
C#
google-code/asp-dot-net-training-project
/MokinIlya/Lab1Aiport/Lab1Airport/DataAccess/Reis.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Lab1Airport.Entities; namespace Lab1Airport { public class AccessToReis : IRepository<Reis> { private int _lastId; public AccessToReis() { _lastId = 0; } ...
ebc18846adfebff0c64b794add006bcca23d8566
C#
ophilbinbriscoe/unity-ui-boldtween
/Assertions.cs
2.734375
3
using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; namespace BoldTween { public enum AssertionBehaviour { AlwaysTrue, Supress, LogError, Exception } public static class Assertions { public static AssertionBehaviour behaviour; public static class Assert { ...
07f75a8138f0666c146abe03910f523d04ae998f
C#
SpurdoSpardeBenis/Pindogram
/pindogramApp/Model/SeedData.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace pindogramApp.Model { public static class SeedData { public static void SetData(this PindogramDataContext context) { if (context.Groups.Any()) { ret...
05cf53f9743f6366e92ca7279a3c815dfca12ad3
C#
nterrell4264/RIT-GDAPS-II
/Dijkstrategy/Dijkstrategy/Graph.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Dijkstrategy { class Graph { public Dictionary<string, Vertex> vertices; List<string> vertexIndices; int[][] weights; public Graph() { ...
a34a341769ebb187343da565a13ff9efd134fa8d
C#
coduery/EquipCheck
/EquipCheck/App_Code/Domain/EquipmentItem.cs
3.65625
4
using System; using System.Text; using System.Collections.Generic; namespace EquipCheck.Domain { /// <summary> /// Class for creating a new Equipment Item. /// Design Pattern: Value Object - an object which contains field values, /// the state of the field values, and methods for analyzing or compari...
0d92f903119ec8baf2f321c8a46f446b4c5f4b52
C#
RyanChomistek/stratagyv2
/strategyv2/Assets/Scripts/Modifiers/IModifier.cs
2.921875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public interface IModifier { //modifies the object and returns the current state of the modifier, //for example a low supply modifier might see that the supply on the object has risen sifficiently to change the modifier to be come...
013287be0100059e9b8e49b98c305497e347b875
C#
orphench/Ejercicios
/Ejercicio42/Ejercicio42/Cliente.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ejercicio42 { class Cliente { private string _apellido; private int _cuentaBancaria; private double _cuit; private int _edad; private string _no...
63c152288bd472aa8c947a1cd497f00a03d55bd0
C#
dsyk/FPS
/Assets/Scripts/TargetController.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TargetController : MonoBehaviour { Animator anim; [SerializeField] int maxlife; public int life; [SerializeField] int recoverytime; bool isBroken = false; public bool isRecovered = true; // Use this for initializa...
86b35579b319ba7c4557eb1f10c725bc0928f290
C#
clayne/mod-analyzer
/ModAnalyzer/Analysis/Services/AssetArchiveAnalyzer.cs
2.796875
3
using BA2Lib; using libbsa; using ModAnalyzer.Utils; using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; namespace ModAnalyzer.Analysis.Services { internal class AssetArchiveAnalyzer { private readonly BackgroundWorker _backgroundWorker; ...
06169cf01aa082cbb84ba86a1f3a42ee27565f0e
C#
ivan816/linq2db
/Source/LinqToDB/SqlQuery/QueryHelper.cs
2.53125
3
using System; namespace LinqToDB.SqlQuery { using System.Collections.Generic; using System.Linq; public static class QueryHelper { public static void CollectDependencies(IQueryElement root, IEnumerable<ISqlTableSource> sources, HashSet<ISqlExpression> found, IEnumerable<IQueryElement> ignore = null) { var ...
ef64cada7a55e0c0c0bc6405c39419f23a911838
C#
twcrews/extensions
/Formatting/Numbers.cs
3.53125
4
using System; using System.Collections.Generic; namespace Crews.Extensions.Formatting { /// <summary> /// Contains extension functions for numeric values. /// </summary> public static class Numbers { private static readonly Dictionary<int, string> TextNumbers = new Dictionary<int, string>() { {90, "ninety"...
74ee3032c1533b928309f59048ae64dd9427b02c
C#
arostaky/creatic
/Unity/Assets/Scripts/ForceModeExample.cs
2.828125
3
using UnityEngine; public class ForceModeExample : MonoBehaviour { //Use to switch between Force Modes enum ModeSwitching { Start, Impulse, Acceleration, Force, VelocityChange }; ModeSwitching m_ModeSwitching; Vector3 m_StartPos, m_StartForce; Vector3 m_NewForce; Rigidbody m_Rigidbody; s...
4383ea2024a6c90045ff818cbfb80a0fcad50ca4
C#
KaloyanDanev/CSharp-OOP-Basic
/Inheritance/02. Book Shop/ValidateData.cs
3.296875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class ValidateData { protected void ValidateAuthor(string name) { if (name.Split(' ').Length == 2) { var lastName = name.Split(' ').ToList()[1]; var firstChar = lastName[0]; ...
7b235100caaa84a10e7d746ab4114f7f559b7096
C#
luozhiping1987/FuManchu
/src/FuManchu/Parser/SyntaxTree/SpanBuilder.cs
2.828125
3
namespace FuManchu.Parser.SyntaxTree { using System.Collections.Generic; using System.Collections.ObjectModel; using FuManchu.Text; using FuManchu.Tokenizer; /// <summary> /// Builds span instances. /// </summary> public class SpanBuilder { private IList<ISymbol> _symbols = new List<ISymbol>(); private S...
e5ff1defd8e0f96086d07fe431246d2694cde0dd
C#
williamjingjiefeng/ChainableSearch
/ChainableSearch.Services/ChainableService.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using ChainableSearch.Model; namespace ChainableSearch.Services { public class ChainableService { public string ApiName { get; set; } public object SearchId { get; set; } public object Sea...
20163fd0350a7469924049d81d3d4b515647504d
C#
haakonkh/vikingsAnonymous
/YWWACP_Core/YWWACP.Core/Models/Meal.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using YWWACP.Core.Interfaces; namespace YWWACP.Core.Models { public class Meal { private IDatabase database; public string MealId { get; set; } public string MealTitle { ...
380c09622ea25b165c2090016cc3369d8c52ada8
C#
terrymaguire/EventSourcing
/EventSourcing/AggregateRootStorage.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EventSourcing { class AggregateRootStorage<TId> : IAggregateRootStorage<TId> { private readonly Dictionary<TId, List<object>> store = new Dictionary<TId, List<ob...
aee4c5d2b62f35baf9d81a2b887cce6a18d95dad
C#
HEskandari/OxiteMigrator
/OxiteMigrator/Workers/WorkersImpl/CategoryReferenceWorker.cs
2.625
3
using BlogML.Xml; using OxiteMigrator.DataAccess; using log4net; namespace OxiteMigrator.Workers { public class CategoryReferenceWorker : IPostWorker { private static readonly ILog Log = LogManager.GetLogger(typeof(CategoryReferenceWorker)); public void Process(BlogMLPost postml) { ...
58a27374750ea8b6031836f8c886d4b92fe759f6
C#
leodavesne/Triathlon-Checklist-For-Windows-Phone
/TriathlonChecklist.ViewModel/Base/ViewModelBase.cs
2.65625
3
// <copyright file="ViewModelBase.cs" company="cematinlà.com"> // Ce matin là. All rights reserved. // </copyright> // <author>Léo Davesne</author> namespace TriathlonChecklist.ViewModel { #region Usings using System; using System.Collections.Generic; using System.ComponentModel; #endregion ...
6568f504247843651829813612337fdf314a71f2
C#
Sambhav-Patni/AutoInternationalize
/AutoInternationalize/AutoInternationalize/Program.cs
2.78125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace AutoInternationalize { //enum StrategyKeyWord //{ // _text = "Text=", // _title = "Title=", // ...
f2c53025998e335729f5b22f0c4b5e6a3b04a2dc
C#
lusionx/lusionkit
/DotNet/File.cs/GenericEqualityComparer.cs
3.15625
3
namespace System { public class GenericEqualityComparer<T> : IEqualityComparer<T> { private Func<T, T, Boolean> _comparer; private Func<T, int> _hashCodeEvaluator; public GenericEqualityComparer(Func<T, T, Boolean> comparer) { _comparer = comparer; } ...
aa0900b8dd572d8f587aeeea2e76db832e5d8ee0
C#
ProbaFirma10/Proba
/PatientWebApplication/HealthClinic.DAL/Adapters/FeedbackAdapter.cs
2.875
3
using HealthClinic.CL.Dtos; using HealthClinic.CL.Model.Patient; using System; using System.Collections.Generic; namespace HealthClinic.CL.Adapters { public class FeedbackAdapter { /// <summary>This method creates <c>Feedback</c> from provided <paramref name="dto"/> and <paramref name="patient"/>.</su...
9aed8e223c8fc2c585b7000213fab2e7129c8757
C#
haliltayfuroglu/AutoFilterer
/src/AutoFilterer/Extensions/QueryExtensions.cs
2.84375
3
using AutoFilterer.Abstractions; using AutoFilterer.Types; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AutoFilterer.Extensions { public static class QueryExtensions { public static IQueryable<T> ToPaged<T>(this IOrderedQ...
2a54b86d736ed8c9135a1d3a047989fabe6d7442
C#
PhilShishov/Software-University
/Databases Advanced - Entity Framework/Homeworks/07.Advanced-Querying_Exercise/BookShop/StartUp.cs
3.1875
3
namespace BookShop { using BookShop.Models; using BookShop.Models.Enums; using Data; using Initializer; using Microsoft.EntityFrameworkCore; using System; using System.Globalization; using System.Linq; using System.Text; public class StartUp { public static void Mai...
7c3c4c448b2d7228f69a7d92d43895a7b6aadf3a
C#
danielgerlag/conductor
/src/Conductor/Controllers/StepController.cs
2.546875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Conductor.Auth; using Conductor.Domain.Interfaces; using Conductor.Domain.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetC...