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
2160631bea4d4bbfb196dec7185673bbd6f1c6b8
C#
mkbiltek2019/HelperTools
/HelperTools.XML/SerializerHelper.cs
3.03125
3
using HelperTools.IO; using System; using System.IO; using System.Xml; using System.Xml.Serialization; namespace HelperTools.XML { public static class SerializerHelper { public static string SerializeXml<T>(T value) { if (value == null) throw new ArgumentNullException(nameof(value)); var xmlseri...
ce97394e13f60db8058a21e0d75bf77691a20f9d
C#
oriches/Simple.Rest.For.Windows.Store
/Simple.Rest/RestResponse.Generic.cs
2.625
3
using System; using System.Net; namespace Simple.Rest { public class RestResponse<T> : RestResponse, IRestResponse<T> where T : class { public RestResponse(HttpWebResponse response, object resource) : this(response, null, resource) { } public RestRespons...
056110c1cb9a40473413a2ad955ba415d93355b7
C#
Stirli/avia
/SimpleAirline/Input.cs
3.890625
4
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; namespace SimpleAirline { class Input { /* * Выводит сообщение и читает строку. Если ввод был отменен - бросает исключение ApplicationException * message - сообщение ...
8b83df0fa0f63590400f2ad5b36085afe9b873ab
C#
NHTrang02/findprimenumber
/Program.cs
3.71875
4
using System; using System.Threading.Tasks; using System.Collections.Generic; using System.Diagnostics; namespace New_folder { class Program { static async Task Main(string[] args) { var sw = new Stopwatch(); sw.Start(); int min = 0, max = 100; i...
ca42f5ca2a11ff49ba16cefd898f69ce62925046
C#
LeassTaTT/zscreen
/ZScreenTester/ZScreenTesterGUI/MyConsole.cs
3.09375
3
using System; using System.IO; namespace ZScreenTesterGUI { public class MyConsole : StringWriter { public delegate void ConsoleEventHandler(string value); public event ConsoleEventHandler ConsoleWriteLine; public override void Write(string value) { t...
d7f75ef6c1812cab6faaef4be0c1a46f54f38fed
C#
littleChoppe/VCE
/7 Go Fish/7 Go Fish/Player.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace _7_Go_Fish { class Player { private string name; public string Name { get { return name; } } private Random random; private Deck cards; private Te...
86995602b30c4ae00426a8828fdf581a7c6603a4
C#
Shakartoon/BOUNCE_BACK
/Assets/_Codes/funnymovement.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class funnymovement : MonoBehaviour { public Transform from; public Transform to; public float speed = 0.1F; void Start () { } // Update is called once per frame void Update () { Vector3 randompoint = new Ve...
ce820511b2432453d3684b2cf3a0e1be28b43521
C#
tihilv/Pat
/Pat.DataSource.Csv/CsvDataSource.cs
2.984375
3
using System; using System.Collections.Generic; using System.IO; using Pat.Api.Model; using Pat.Api.Modules; namespace Pat.DataSource.Csv { public class CsvDataSource: IDataSourceModule { public string Name => "CSV Importer"; public string Description => "Loads source surface from CSV file."; ...
49da80f1059b88b3bed073895ef0c2306ab9c3da
C#
Blagovest-Todorov/NeedForSpeed
/Program.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; namespace NeedForSpeed { class Program { static void Main(string[] args) { Dictionary<string, double> mileageByCar = new Dictionary<string, double>(); Dictionary<string, double> fuelByCar = new Dictiona...
b5de74badbec9a60437e9415b67dececa49a5aec
C#
sakapon/Codeforces-Contests
/CSharp/Contests2020/CFR618/A.cs
3.203125
3
using System; using System.Linq; class A { static int[] Read() => Console.ReadLine().Split().Select(int.Parse).ToArray(); static void Main() => Console.WriteLine(string.Join("\n", new int[int.Parse(Console.ReadLine())].Select(_ => Solve()))); static long Solve() { var n = int.Parse(Console.ReadLine()...
833e0d5f1d78b8901b8df65a1c855ec6bc7caeaf
C#
emancipatedMind/CSharpToolkit
/CSharpToolkit/DataAccess/Abstractions/IXDocumentProducer.cs
2.953125
3
namespace CSharpToolkit.DataAccess.Abstractions { /// <summary> /// Adorned by class who produces XDocument from an argument. /// </summary> /// <typeparam name="TArgument">The type that is accepted to produce the document.</typeparam> public interface IXDocumentProducer<TArgument> { /// <s...
9ddd1f74f2e3e921417b49f0646117061f9a6c63
C#
dbanks86/OnlineStore
/OnlineStoreServices/DTOs/UpdateShippingOptionDTO.cs
2.703125
3
namespace OnlineStoreServices.DTOs { /// <summary> /// Used in AJAX Requests to methods. /// Populates JSON objects with string properties. /// String properties are used to populate HTML element in UI /// </summary> public class UpdateShippingOptionDTO { /// <summary> /// S...
40c25007b11a7c021776e800ebba3b57f499350a
C#
crico-japan/DigRun
/Assets/Crico/Scripts/UISliderTextSetter.cs
2.59375
3
using TMPro; using UnityEngine; using UnityEngine.Assertions; using UnityEngine.UI; namespace Crico { [RequireComponent(typeof(Slider))] public class UISliderTextSetter : MonoBehaviour { [SerializeField] TextMeshProUGUI textToSet = null; [SerializeField] string format = "{0}"; priv...
355e9a0d74af4abd79b261d7a28989b2dad26cde
C#
StefanMihaylov/MihaylovWeb
/Mihaylov.Data/Repositories/Site/PersonsRepository.cs
2.65625
3
using System.Collections.Generic; using System.Linq; using Mihaylov.Common.Database; using Mihaylov.Common.Mapping; using Mihaylov.Data.Interfaces.Site; using Mihaylov.Data.Models.Site; using Mihaylov.Database.Interfaces; using DAL = Mihaylov.Database.Site; namespace Mihaylov.Data.Repositories.Site { public class...
d9d1cc047df30ae2a304f362b97545e0fde810a9
C#
balazspekar/csharp-yet-another-practice-of-collections
/SortingList/Car.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SortingList { class Car : IComparable<Car> { public string Name { get; set; } public int Speed { get; set; } public string Color { get; set; } public ...
c000361192ed82b688e62e117d39908248aa3de7
C#
TomasLimpinho/Shoot-a-Galaga-like-game
/Scenes/Acel.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Acel : MonoBehaviour { public float SPEED = 1; private Rigidbody2D rb2D; void Awake() { rb2D = gameObject.GetComponent<Rigidbody2D>(); } void Update() { if (I...
5b0cda4ae3e9738b2ca99548fa1a13f4ca783252
C#
Ususucsus/hw
/Task23/Task23.Test/StackTests.cs
3.078125
3
using System; using System.Collections.Generic; using NUnit.Framework; namespace Task23.Test { public class StackTests { [SetUp] public void Setup() { } private static IEnumerable<TestCaseData> Stacks => new TestCaseData[] { new T...
da23a54da89f3015168143e1a0c2bdcd0ec1e667
C#
rkonecny/Foresthlon
/Assets/assets/Scripts/Environment/ShootingRange/LineController.cs
2.765625
3
using System; using System.Collections.Generic; using UnityEngine; namespace Assets.assets.Scripts.Environment.ShootingRange { /** * <summary> Sends notification to GameController that player has reached the shooting range </summary> **/ public class LineController : MonoBehaviour { ...
3fdd225b6cf2ebead6c3c64c19ff7079470a6b96
C#
mutavdzitch/BestBuyApp
/Application/Exceptions/EntityAlreadyExsistException.cs
2.578125
3
using System; using System.Collections.Generic; using System.Text; namespace Application.Exceptions { public class EntityAlreadyExistsException : Exception { public EntityAlreadyExistsException(int id, Type type) : base($"Entity of type {type.Name} with an id of {id} already exists.") ...
6a16c28998f032d18a225b75bfe3f76fe7a3df63
C#
ethanrweber/ProjectEuler
/ProjectEuler/HelperMethods.cs
3.59375
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace ProjectEuler { class HelperMethods { public static bool IsPrime(int num) => IsPrime((long) num); public static bool IsPrime(long num) { if ...
ee52e15d9dcbdb263eb51ccc7d308a2df2b7fae1
C#
mitev-web/csharp-fundamentals
/Homeworks/17. DefiningClasses/GenericList/GenericList.cs
3.703125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GenericList { class GenericList<T> { public List<T> list { get; set; } public GenericList(int capacity) { list.Capacity = capacity; } publi...
3eb46885df0926fbd56e53a89bea38b69e1e57a5
C#
maddxyz/ZZ2_WEBProject
/DAL & API/WebApplicationThrones/Controllers/FightController.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Net.Http; using System.Net.Http.Headers; using Newtonsoft.Json; using System.Threading.Tasks; using WebApplicationThrones.Models; using System.Collections.Specialized; namespace WebApplicationThrones...
da708640ad26fc75b7952ee589952e1e9c142470
C#
sarii96/MathQuiz
/MathQuiz/Form1.cs
3.09375
3
using System; using System.Globalization; using System.Drawing; using System.Media; using System.Windows.Forms; namespace MathQuiz { public partial class Form1 : Form { Random randomizer = new Random(); //sum int addend1; int addend2; //difference int subtrac...
cf62fe595e9818e6d2ecf7aa841c86de26e1b49a
C#
EMREEEE/.Net-Core-Project
/ConsoleUI/Program.cs
2.984375
3
using Business.Concrete; using DataAccess.Concrete.EntityFramework; using DataAccess.Concrete.InMemory; using System; using System.Collections.Generic; using System.Linq; namespace ConsoleUI { class Program { static void Main(string[] args) { var animals = new List<string>() { "bir...
a6b226a14613d4b212c42354e64f24769825f805
C#
Senmou/pr0ball-remake
/Assets/Scripts/Misc/AimingLine.cs
2.53125
3
using UnityEngine; public class AimingLine : MonoBehaviour { [SerializeField] private Transform cannon; [SerializeField] private float reflectionLength; [SerializeField] private ContactFilter2D contactFilter; private LineRenderer line; private float maxDistance = 100f; private void Awake() ...
3e0c55fa6d8e616ae1be98a08c0d930450780787
C#
shendongnian/download4
/code6/1138252-29985780-89470927-6.cs
3.53125
4
/// <summary> /// An HashSet&lt;T;gt; that, thorough a clever use of an internal /// comparer, can have a AddOrGet and a TryGet /// </summary> /// <typeparam name="T"></typeparam> public class HashSetEx<T> : HashSet<T> where T : class { public HashSetEx() : base(new Cachi...
a53f1024be382c66e779b99037afd23ae522283c
C#
catolicasc-jlle-bsi/wpf-db4o-api-imdb-locadora
/AppLocadora/Helper/LoggerLocadora.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace AppLocadora.Helper { /* using NLog; using NLog.Targets; public class LoggerLocadora { private static readonly LoggerLocadora instancia; private Logger logger; ...
4deab465b42364b23cf5b380a220e9ad39a8470e
C#
Captain-Coder/PiGameSharp
/Dispmanx/ModeInfo.cs
2.671875
3
using System.Runtime.InteropServices; namespace PiGameSharp.Dispmanx { /// <summary> /// Mode information for a dispmanx display /// </summary> [StructLayout(LayoutKind.Explicit)] public struct ModeInfo { /// <summary> /// The width and height of the display /// </summary> [FieldOffset(0)] public Vect...
eabc1efa32d120256abe047f072e11e008c4a984
C#
mathpaquette/IQFeed.CSharpApiClient
/src/IQFeed.CSharpApiClient/Extensions/NullableExtensions.cs
3.078125
3
using System; using System.Globalization; namespace IQFeed.CSharpApiClient.Extensions { public static class NullableExtensions { public static string ToInvariantString(this DateTime? date, string format) { return date.HasValue ? date.Value.ToString(format, CultureInfo.InvariantCult...
f251f4c32cf12f4807fd58b39f4b270ca8a781c7
C#
adventurer19/Exercises
/C# Fundamentals/Programming Fundamentals Final Exam/02. Fancy Barcodes.cs
3.09375
3
using System; using System.Linq; using System.Collections.Generic; using System.Linq.Expressions; using System.Numerics; using System.Text; using System.Text.RegularExpressions; namespace Classes { class Program { static void Main(string[] args) { int number = int.Parse(Console.Re...
e20d420e68aba7e5e29d09ba6d67aa4185727b50
C#
markhammond88/sportspro
/SportsPro/Admin/ContactDisplay.aspx.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class ContactDisplay : System.Web.UI.Page { private CustomerList contacts; protected void Page_Load(object sender, EventArgs e) { contacts = Cu...
5dfab749b92601261340b7cd9075110d45c1ca4f
C#
joshua-scott/measurements-diary
/MeasurementsDiary/ReadWriteDialog.cs
2.828125
3
using System; using Microsoft.Win32; using System.Windows; using System.Collections.Generic; using System.Collections.ObjectModel; namespace MeasurementsDiary { class ReadWriteDialog { public string ReadFile(out string fileName, out List<string[]> csvContents) { // Initialise out p...
f41d8e106be6c9fe025ed37b137d907e20f153a3
C#
rngonzalez2566/Diploma1
/DAL/Acceso.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Data.SqlClient; namespace DAL { public class Acceso { private string _error; public string Error { get { return _error; } ...
40f794d2a0ad5972e33f7189ccce1c0f0d536c7f
C#
Aye1/BuildAnew2D
/Assets/Scripts/Manager/ResourcesManager.cs
2.53125
3
using System.Collections.Generic; using UnityEngine; using System.Linq; // Dependecies to other managers: // None public enum ResourceType { None, Wood, Stone, Eponium, Energy } public class ResourcesManager : Manager { public static ResourcesManager Instance { get; private set; } public int EnergyTotal { ...
5e3fd12f8eed19c3e6e0db3b2524cec63835f514
C#
maxkorytko/TripPoint
/TripPoint.WindowsPhone/Navigation/INavigator.cs
3.1875
3
namespace TripPoint.WindowsPhone.Navigation { /// <summary> /// Navigation facade for the application /// </summary> public interface INavigator { /// <summary> /// Navigates to a given URI /// </summary> /// <param name="uri">URI to navigate to</param> /// <...
fee3fbc894b602490758e1c8be3b8bcc5993fcc3
C#
hyulin/Athena
/Athena/ClanFunction/Vote/CVoteItem.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Athena { class CVoteItem { string item_ = ""; List<string> voter_ = new List<string>(); // 투표 항목 public void AddItem(string item) { ...
a6984f89bf865f3d8f4ec280a39120a5c3f79922
C#
maromo71/3eminfo
/FrmImagem/FrmImagem/Form1.cs
2.59375
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 FrmImagem { public partial class Form1 : Form { public Form1() { ...
8cbca2e474de0928f9526acbc011bbf8708b2379
C#
wnvko/TelerikAcademy
/CSharp/OOP/03. ExtensionMethodsDelegatesLambdaLINQ/DivisibleBysevenAndThree/Test.cs
4
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DivisibleBysevenAndThree { public class Test { private static Random random = new Random(); public static void Main(string[] args) { List<int> numbers = new List<int>(); ...
d810607c337e8e20398b1bfb0f336fe35755e514
C#
DocDonkeys/AI_Handouts
/AI_Handout_1_Kinematic/Assets/Kinematic/KinematicWander.cs
2.515625
3
using UnityEngine; using System.Collections; public class KinematicWander : MonoBehaviour { public float max_angle = 0.5f; public float secToChange = 0.5f; private float checkpoint; public float chanceEscalation = 5; private short way = 1; private float chanceToSway = 0; Move move; ...
5e668fc05fe7f43e6db333bff850f590257a42b1
C#
marcieleadivincula/entra21
/Aula13/ExerciciosOOpt401Exerc06/Program.cs
3.640625
4
using System; namespace ExerciciosOOpt401Exerc06 { class Program { static void Main(string[] args) { Console.WriteLine("Lista de exercícios de OOpt - 401"); //6) Crie uma subClasse chamado Pessoa com nome, idade, dopamina, dinheiro no bolso e herda Comportamente.Peça pa...
a32e8afcaed2cd05fb4940bb07c11d7d455ea8da
C#
rda83/IntegrationService
/IntegrationService.PropertyCheckerService/PropertyCheckerService.cs
3.078125
3
using System; namespace IntegrationService.PropertyCheckerService { public class PropertyCheckerService : IPropertyCheckerService { public bool TypeHasProperties<T>(string fieldsNames) { bool result = true; if (String.IsNullOrEmpty(fieldsNames)) { ...
c0586148f8a56eecd6afcff1ab49c7451647fcd4
C#
danmaq/nineball
/_old/tags/xna0.0.1.10/Nineball/Nineball/core/raw/CInput.cs
2.546875
3
//////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // // danmaq Nineball-Library // Copyright (c) 2008-2009 danmaq all rights reserved. // // ──入力制御・管理クラス // ////////////////////////////////////////...
1b360966563827b0557e909b6213845f6bc21723
C#
mrd9483/Clicker
/Clicker.Tests/AutomatorCollectionTest.cs
2.703125
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using Clicker.Library.Services; namespace Clicker.Tests { [TestClass] public class AutomatorCollectionTest { private AutomatorCollection _ac; [TestInitialize] public void Setup() { _ac = new AutomatorCollectio...
47cb74cbb071519254dc42fce4fa91829e9959c2
C#
odaibert/Service-Fabric-Self-Scale-Service
/MailboxService/DocumentDBRepository/MessageRepository.cs
2.640625
3
using Repository; using Models; using System; using Microsoft.Azure.Documents.Client; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Azure.Documents.Linq; using System.Linq; using System.Linq.Expressions; namespace DocumentDBRepository { public class MessageRepository<T> : IReposi...
9c564978581d896b3b29f0190007e49203a6dff9
C#
Guillesilvaf/OBLIGATORIOULTIMAVERSION
/Categoria.cs
2.546875
3
using System; using System.Collections.Generic; using System.Text; namespace ObligatorioP2Dominio { class Categoria { private string nombre; private string descripcion; public string Nombre // property { get { return this.nombre; } } ...
45c7fc8e56824159c12afdec089840171b2ba945
C#
Simportant/Handicapper
/Handicapper/Classes/Players.cs
3.328125
3
using System; using System.Linq; using System.ComponentModel; using System.Collections.Generic; namespace Handicapper { public class Players { public Players() { PlayersList = new BindingList<Player>(); } public BindingList<Player> PlayersList { get; private set; ...
0c36459003c487de1c8247e0b39b82b16430e725
C#
tzamora/CatsSeeCats
/Prefabs/cats/FollowEnemyController.cs
2.859375
3
using UnityEngine; using System.Collections; public class FollowEnemyController : EnemyController { public Transform ShootPoint; void Start () { StartCoroutine(PrepareShooting()); } IEnumerator PrepareShooting() { while(true) { Shoot(); yield return new WaitForSeconds(ShootDelay); } } void S...
a9d803c8d824e9b8b391a0beecc1e3c52d589100
C#
Tom-Grassmann/TTB-Manager
/TTB-Manager/Types/Shift_Template.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace TTB_Manager { class Shift_Template { public String name = ""; public String startTime; public double duration = -1; public int id_wo...
c3df8e83cf101f9d8f0e5bf4e11faffcb3bf7ec4
C#
praslar/My-road-to-become-a-Web-Dev
/Back-end/ASP.net/SmartDLU - Project 2018/DataAccess/QLThuVienSystem/QuanLyThuVien/QL_MonHoc.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataAccess { public class QL_MonHoc:MonHocMethods { MonHocMethods objMonHoc = new MonHocMethods(); /// <summary> /// Lấy tất cả môn học có trong csdl ...
5e7f69385fe510d83788fb4ebbb840d32afa345d
C#
VB6Hobbyst7/Svg.Skia
/src/Svg.Picture/Paint/ColorF.cs
2.640625
3
 namespace Svg.Picture { public readonly struct ColorF { public float Red { get; } public float Green { get; } public float Blue { get; } public float Alpha { get; } public static readonly ColorF Empty = default; public ColorF(float red, float green, float blue...
acf1dd15982b961dc71c4895c203454fa5c63c49
C#
hxzbg/Labrys
/Assets/Labrys/Generation/GridSectionCache.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Labrys.Generation { /// <summary> /// A cache used for the /// </summary> public class GridSectionCache { private Dictionary<Vector2Int, Section> hashCache; private CacheElement[] cach...
b8e8064859820dfa058b74cdc1d2ab73e58e7a90
C#
mdirienzo/CandyJam
/Assets/Scripts/RandomWalkLevelBuilder.cs
2.546875
3
using System.Collections.Generic; using UnityEngine; public class RandomWalkLevelBuilder : LevelBuilder { private int extraWalks; private int numTraps; private BoundedTiles tiles; private List<TileLocation> spawnRegion; private List<TileLocation> _trapLocations; public override List<TileLocatio...
20d0f85dc597fbbc11f9fe0873fb0af705278f16
C#
fastndead/XT-2018Q4
/TASK4/TASK4.DynamicArray/Program.cs
3.703125
4
using System; using System.Collections.Generic; namespace TASK4.DynamicArray { class Program { static void Main(string[] args) { var a = new DynamicArray<int>(new int[]{1,2,3,4,5,6,7}); a.AddRange(new int[]{ 8,9,10}); a.Add(10000); a.Insert(0, 8)...
3e62aa65b1b92071a352ad34fd7a6be651e5430c
C#
blakeohare/pajama
/src/Pajama/Node/OpTree.cs
2.671875
3
using System; using System.Collections.Generic; namespace Pajama.Node { internal class OpTree : Expression { public override void ResolveTypes(TypeResolver typeResolver, Class scope, List<Dictionary<string, ZType>> typesByVariableUsage) { // OpTree is resolved upon creation. } public enum Op...
68c8e89cfcd1065b00833030e551da143645c299
C#
broots/Auctions
/SoftInc.Auctions.Business/Managers/DataManager.cs
2.734375
3
using SoftInc.Auctions.Business.Ef; using SoftInc.Auctions.Business.Helpers; using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Migrations; using System.Data.Entity.Validation; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Ta...
a07e6a8de64cf919223f18cfda794f32455120dc
C#
wwohlschlaeger/Cities
/src/Cities/Program.cs
3.515625
4
using System; using System.Collections.Generic; using Cities.Comparers; namespace Cities { public class Program { public static void Main(string[] args) { List<City> cities = CityDataImporter.LoadData(); IComparer<City> comparerName = new NameComparer(); IComparer<City> comparerState = new State...
ee4811938c4c1bf05761b01b3bb6e5b0f62b9ba4
C#
dimkk/armada.gsmo
/SAMRT/SAMRT.Model/Program.cs
3.203125
3
using System; using System.Configuration; namespace SAMRT.Model { class Program { protected static string GetConfigValue(string key) { string value = ConfigurationManager.AppSettings[key]; if (string.IsNullOrEmpty(value)) throw new ArgumentNullException(...
d967088dff98d6463bf46f2ef4f9c6f09f079b67
C#
mjwsteenbergen/ApiLibs
/ApiLibs/General/ObjectSearcher.cs
3.015625
3
using System; using System.Collections; using System.Collections.Generic; using Newtonsoft.Json; namespace ApiLibs.General { public abstract class ObjectSearcher { [JsonIgnore] internal Service _service { get; set; } public void Search(Service inputService) { _serv...
8929a8b4bcef863b7243ed6351339d3dea18013a
C#
brianpowers27/ASPNetMultiTenant
/WebApp/Models/Utils.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Web; namespace WebApp.Models { public class Utils { internal static int SlugLength = 75; public string GenerateSlug(string phrase) { str...
024977f1f79570e74a7440f7167605e0b5f72ec3
C#
dapplo/Dapplo.Windows
/src/Dapplo.Windows.Gdi32/GdiExtensions.cs
2.625
3
// Copyright (c) Dapplo and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Drawing; using Dapplo.Windows.Common.Structs; using Dapplo.Windows.Gdi32.SafeHandles; namespace Dapplo.Windows.Gdi32; /// <summary> /// ...
e58d920da2b66dd5ccf5b0552169bbe9d427be99
C#
redbluegames/unity-stylecop-ignoreutility
/Assets/RedBlueGames/StyleCopIgnoreUtility/Editor/StyleCopIgnoreUtilityFileTreeView.cs
3.28125
3
namespace RedBlueGames.StyleCopIgnoreUtility { using System.Collections.Generic; /// <summary> /// Represents an entire file tree with the most root directory. /// </summary> internal class FileTreeView { //// ============================================================================...
50e0fd70b06fcdcd692589cfafa196ad622ad547
C#
rioslazo6/Hangman
/Hangman/Hangman/Program.cs
3.640625
4
using System; using System.Collections.Generic; namespace Hangman { class Program { static void Main() { // Defining list of words List<string> wordsList = new List<string> { "CABBAGE", "TOMORROW", "CEILING", "HAMSTER", "DIME", "UNIQUE", "TRIGGER", "HORIZONTAL...
a9d3ecee018fa4f384984da41feff0ade7f9c5d5
C#
ptownsend1984/SampleApplications
/MEFDemo/MEFDemo/Programs/MultiProgram.cs
2.765625
3
//#define IncludeThis #if IncludeThis using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; using MEFContracts; namespace MEFDemo { /// <summary> /// This program demonstrates the usage o...
87dd18c85556dcc2bd9e8a4d0643c85c0dc05752
C#
eddiebrowne/vendor-backend
/vendor-backend/Infrastructure/Repositories/ProductRepository.cs
2.84375
3
using System.Collections.Generic; using System.Data; using System.IO; using Domain; using Microsoft.Data.Sqlite; namespace Infrastructure.Repositories { public class ProductRepository : RepositoryBase, IProductRepository { public ProductRepository(DatabaseSettings settings) : base(settings) { } p...
6c371228d78df2029ee2056d7cda7a2f1a5d20ae
C#
luci2797/DotNetTraining
/DotNetTraining/models/Product.cs
3.71875
4
using System; using System.Collections.Generic; using System.Text; namespace DotNetTraining.models { class Product { private string name; private float price; private List<string> colors; public Product(string prodName, float prodPrice) { this.name = prodName; ...
a18d37f5a1b6a657e725abc56ef7e7e5280aa4f3
C#
yappel/BEP_meta1
/IRescue/UserLocalisation/Particle/Algos/NoiseGenerators/RandomNoiseGenerator.cs
3
3
// <copyright file="RandomNoiseGenerator.cs" company="Delft University of Technology"> // Copyright (c) Delft University of Technology. All rights reserved. // </copyright> namespace IRescue.UserLocalisation.Particle.Algos.NoiseGenerators { using System; using System.Linq; using MathNet.Numerics.Distribut...
c19534591f9d8e726e22e91d28d22c520fc4ddb6
C#
jingxieguankong/jingxie
/cn.tdr.policeequipment.data.repository/EntityFrameworkRepository.cs
2.640625
3
namespace cn.tdr.policeequipment.data.repository { using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Linq.Expressions; using interfaces; public abstract class EntityFrameworkRepository : IRepository, IUnitWork, IDisposable { ...
f71a7804a5285881e25858058b20d3c40040ee93
C#
onero/CustomerApp
/CustomerAppDAL/UOW/UnitOfWorkMem.cs
2.765625
3
using CustomerAppDAL.Context; using CustomerAppDAL.Entities; using CustomerAppDAL.Interfaces; using CustomerAppDAL.Repositories; namespace CustomerAppDAL.UOW { internal class UnitOfWorkMem : IUnitOfWork { private readonly InMemoryContext _context; public UnitOfWorkMem() { ...
59dc23234684cb335ac13a20c8db5ee0c3506b19
C#
mostafamohamed213/NewTrenDiver
/Layers/SourceCode/Layers.Data.DataAccess/Repository/WriteReposatory.cs
2.546875
3
using Layers.Data.Contracts.Contracts; using Layers.Base.Contracts; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Linq.Expressions; using System.Data.Entity; using System.Data.Entity.Infrastructure; using Layers.Utilities.Extensions; us...
b1c35f3f5c4358f8ca2bd1bc4aeb599309730e15
C#
YoannKersulec/ProjetX
/Assets/Scripts/Debuffs/PermafrostDebuff.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine.UI; namespace Assets.Scripts.Debuffs { class PermafrostDebuff : Debuff { public float MySpeedReduction { get; set; } public override string Name => "Permafrost...
ec39b811ffd9b3692736cc4c94c76e1ceda8deb9
C#
TeeLink/IntroToMVC
/IntroToMVC/Controllers/ClassmatesController.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using IntroToMVC.Models; namespace IntroToMVC.Controllers { public class ClassmatesController : Controller { // GET: Classmates public ActionResult Index() { List<Clas...
dea8e8eed012670f7279df2f2e65852a2bf0d507
C#
ifagarasan/Kata
/Coding/SocialNetwork/SocialNetwork/Action/Command/Post.cs
2.703125
3
using SocialNetwork.Model.Command; using SocialNetwork.Model.User; using IPostRepository = SocialNetwork.Model.Post.IPostRepository; namespace SocialNetwork.Action.Command { public class Post : ICommand { private readonly IPostRepository _repository; private readonly IUserRepository _userRepos...
e16a5b12134acbaa8c8ecb277b13a4dacd9b7f08
C#
rakeshkumartiwari/ChipotleOnlineRestaurant
/Services/Pricing/Chipotle.Pricing/Models/OrderTotalCalculator.cs
2.546875
3
using Chipotle.Pricing.Infrastructure; namespace Chipotle.Pricing.Models { //1.Identify Dependancy //2.All dependancy should be visible. //3.Dependacy Always shoud be Interface. public class OrderTotalCalculator : ICalculateOrderTotal { private readonly IOrderRepository _repository; ...
2774bbbf4df543be26f189cbe5ab68e32ae7b6c3
C#
lmzhanHub/Swashbuckle.Extensions
/Swashbuckle.Core/Swagger/XmlComments/XmlCommentsIdHelper.cs
2.859375
3
using System; using System.Reflection; using System.Text; namespace Swashbuckle.Swagger.XmlComments { public class XmlCommentsIdHelper { public static string GetCommentIdForMethod(MethodInfo methodInfo) { var builder = new StringBuilder("M:"); AppendFullTypeName(methodI...
e3fbcec5e8f3c14b02c88000cf3f058c51520618
C#
imnikhilkumar78/Kanini-Training
/Weekend2assignments/maximumelement/Program.cs
3.546875
4
using System; using System.Collections.Generic; using System.IO; class Solution { static void Main(String[] args) { Console.WriteLine("Enter the input"); int n = Int32.Parse(Console.ReadLine()); Stack<int> stack = new Stack<int>(); Stack<int> max = new Stack<int>(); ...
c2ce0874c1acbb0083394a03d63ec1d517b7b41d
C#
Ark-kun/Ark.Pipes
/Ark.Pipes/Ark.Wpf.Pipes.Testing/TypeConversionTesting.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; namespace Ark.Pipes.Wpf.Testing { [TypeConverter(typeof(TestClassConverter))] public class TestClass { public int IntProperty { get; set; } public string StringProperty ...
cc261e52de65a0bc6ef9eb24b946a450c8a258ab
C#
otav-o/Estrutura-de-dados
/ExerciciosRevisao/IgualdadeListasEncadeadas/Resposta/Program.cs
3.453125
3
using System; namespace Resposta { class Program { static void Main(string[] args) { var lista1 = new ListaEncadeada(); var lista2 = new ListaEncadeada(); lista1.AdicionarNoInicio(10); lista1.AdicionarNoFinal(20); lista1.AdicionarNoI...
09b34cb646fb2280b98776414affd7320281d5c1
C#
nss-evening-cohort-9/QuantamLeap_KimberlyHart
/KimberlyHart/Classes/Leapers/Leaper.cs
2.75
3
using KimberlyHart.Classes.Events; using KimberlyHart.Classes.Hosts; using System; using System.Collections.Generic; using System.Text; namespace KimberlyHart.Classes.Leapers { public class Leaper { public string Name { get; set; } public Event CurrentEvent { get; set; } public int Wa...
00cbe1443e380b3ca78ba810e1bf8343b87c0159
C#
dev8546/Algo-SPOJ
/AMZSEQ.cs
3.1875
3
using System; using System.Collections.Generic; using System.Text; namespace AlgoSolution { class AMZSEQ { static void Main() { Run(); } static void Run() { int N = int.Parse(Console.ReadLine()); long totalCount = 0; if (N...
f9de6e623d3c63d30f4cf2b35d8b6d8f8c2597cc
C#
D-Mensio/Ashto
/Assets/Scripts/Pieces/RotatePiece.cs
2.875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; //Component managing the rotation of a piece. Requires a PieceColor component public class RotatePiece : MonoBehaviour { private Quaternion target; public int phase { get; private set; } //current phase of the piece. Each piece has...
c1db5f109ba03a3b7f1f35922209974186959d72
C#
Assumeru/INFSEN01-1
/INFSEN01-1 C/INFSEN01-1 C/Game.cs
2.953125
3
extern alias Func; using System; using System.Threading; namespace INFSEN01_1 { class GameWrapper { private const int SLEEP = 2000; private Func::Game.State state; private Thread thread; public GameWrapper(string file, string monsterNamesFile, string monsterPre...
dd7223d3e6597030d1fcde5afcc8c278937a3c4f
C#
MogreBindings/MogreAddons
/MParticleUniverse/MParticleUniverse/ParticleBehaviour.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace MParticleUniverse { public enum ParticleBehaviourType { SlaveBehaviour }; /// <summary> /// Defines the behaviour of a particle. /// <re...
8dafe940a6d52143c7fe27ef5faa43154126234c
C#
weijietuzi/18S103123
/Lab_18S103123/src/Chess/ChessGame.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Game.Chess { class ChessGame : Game { public ChessGame(string name1,string name2) { board = new ChessBoard(9); click = false; ...
61be2266720b90f9060da15a80db3e352d10d471
C#
kumar-ayush-7/Leetcode-Problems
/110. Balanced Binary Tree/Program.cs
3.734375
4
//110. Balanced Binary Tree using System; namespace _110._Balanced_Binary_Tree { class Program { public class TreeNode { public int val; public TreeNode left; public TreeNode right; public TreeNode(int val = 0, TreeNode left = null, TreeNode righ...
7c1bcd7c9cd577b27cd75d1d8af0928f69227498
C#
GabrielCSTR/AcademyDota2Lobby
/AcademyDota2Lobby/D2LBOT/Class/Client.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace D2LBOT.Class { public class Client { private int LobbyBotNum = -1; private int LobbyTeam = -1; public void ClearLobbyData() { LobbyTeam ...
50526f4b7b7b88cc2a881bd985d8a2c47c36ff5a
C#
dpetrishin/FontAwesomeConstantsGenerator
/FontAwesomeParser.Terminal/CssParser.cs
3.0625
3
using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.CSharp.RuntimeBinder; namespace FontAwesomeParser.Terminal { public class CssParser { private string content; private List<CssClass> result; private ISet<string> uniqueNameSet; publi...
55738722b941fd1aceed2ac5ebb74035af9accf2
C#
nick0124/CopsAndRobbers
/Assets/Scripts/GameManager.cs
2.953125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class GameManager : MonoBehaviour { //количество очков public int score; //текст в UI для отображения счета public Text scoreTxt; //название следующего ур...
3a9b04f5e4038ac1007179d274ba607e9610bd55
C#
airesdiegom66/csharp-asyncAwait-master
/src/01Threads/Program.cs
3.8125
4
using System; using System.Collections.Generic; using System.Threading; namespace _01Threads { class Program { const int Max = int.MaxValue / 2; static void Main() { Console.WriteLine("Main program thread {0}.", Thread.CurrentThread.ManagedThreadId); ...
30091bdeace9acb4bee0ce7de7bf908e99b9ed7a
C#
NordsidaSoftware/GraveyardShift
/GraveyardShift/States/InGameMenu/ViewActorsMenu.cs
2.546875
3
using Microsoft.Xna.Framework.Input; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using VAC; namespace GraveyardShift { public class ViewActorsMenu : State { int hilite = 3; VirtualConsole menu; IngameMenu ingameMen...
a790354328127b01e06bdf1642937bf8222c0490
C#
kevinkirkl3y/PackerTracker.Solution
/PackerTracker/Controllers/KitsController.cs
2.53125
3
using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using PackerTracker.Models; namespace PackerTracker.Controllers { public class KitsController : Controller { [HttpGet("/kits")] public ActionResult Index() { List<Kit> allKits = Kit.GetAll(); return View(allKits); ...
b79bf07c4bc5ae9c40b3c2546dd0478a5ce95e81
C#
swordlegend/MCGD---Game-AI-Programming---CapRiders
/Assets/3GoGames/TuesdayNights/Scripts/Audio/MusicPlaylist.cs
2.578125
3
using UnityEngine; using System.Collections; public class MusicPlaylist : ScriptableObject { [SerializeField] private AudioClip[] m_Tracks = null; public int tracksCount { get { if (m_Tracks == null) { return 0; } return m_Tracks.Length; } } ...
05cd87404c9160db2a0386a6f6ff2a911a5e2b00
C#
Clarity-Croatia/university-outreach-workshops
/ExampleWinApp/ExampleWinApp/AddUserViewModel.cs
2.59375
3
using ExampleWinApp.Base; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TodoList.Entities; namespace ExampleWinApp { public class AddUserViewModel : BaseViewModel { private string _firstName; public string FirstName ...
fa216e86f4f938cc2b1d4acc15edd0c38c3b61c4
C#
jodedeck/SportsStore
/Api.Data/Concrete/CardRepository.cs
2.859375
3
using Api.Data.Abstract; using Api.Data.DataContext; using Api.Data.Entities; using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Api.Data.Concrete { public class CardRepository : ICardRepository { private readonly ApiDbContext db; public CardRepositor...
909332168bd201363bc98db9315c8dc068fc6395
C#
subhadippal66/Space_Shooter_APK
/Space_Shooter_APK/Assets/Script/EnemyPathing.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyPathing : MonoBehaviour { [SerializeField] List<Transform> wayPoints; int wayPointIndex = 0; [SerializeField] float moveSpeed; // Start is called before the first frame update void Start() { ...
ed49240e60ed7d05c7050d766b360105f5dca219
C#
VKorelin/MajesticAnalyzer
/MajesticAnalyzer/Html/HtmlLoader.cs
2.75
3
using System; namespace MajesticAnalyzer.Html { public class HtmlLoader : IHtmlLoader, IDisposable { private readonly IHtmlWrapperFactory _htmlFactory; private readonly IWebClientWrapper _webClient; public HtmlLoader(IHtmlWrapperFactory htmlFactory, IWebClientWrapper webClient) ...
f4c49b5c020ebbed83c9aa936c001135ec475141
C#
flaviogf/courses
/pluralsight/themvcrequestlifecycle/Section3/BuildingCustomHttpHandler/Handlers/SampleHttpHandler.cs
2.515625
3
using System.Web; namespace BuildingCustomHttpHandler.Handlers { public class SampleHttpHandler : IHttpHandler { public bool IsReusable => false; public void ProcessRequest(HttpContext context) { context.Response.Write($"This message was generated by {nameof(SampleHttpHand...
9925ed22fc6e63b18ecd9f9da1e5ab1c3a57e6b6
C#
albert-t25/calibre-reading-lists
/source/Opds4Net/Opds4Net/Server/ItemGeneratedEventArgs.cs
2.78125
3
using System; using System.ServiceModel.Syndication; namespace Opds4Net.Server { /// <summary> /// The event arguments for the ItemGenerated event in IOpdsItemConverter. /// </summary> public class ItemGeneratedEventArgs : EventArgs { /// <summary> /// Default constructor of ItemGe...
f41763779a5e039f2a6cc604099aa07239f0948c
C#
liubomyrmishchykha/server-project
/OurSolution/DatabaseOperations/DataAccessLayer/DataModels/InstanceWithUserInfo.cs
2.609375
3
using System; namespace DataAccessLayer.DataModels { public class InstanceWithUserInfo { public int Id { get; set; } public string HostName { get; set; } public string InstanceName { get; set; } public int Status { get; set; } public string Version { get; set; } ...
40b9782977e465e6360d054887d365e7f88b2b9e
C#
sjuniorbrasil/PizzariaUDS
/PizzariaUDS/Controllers/TamanhoPizzaController.cs
2.59375
3
using System.Collections.Generic; using System.Linq; using PizzariaUDS.Models; using System.Web.Mvc; namespace PizzariaUDS.Controllers { public class TamanhoPizzaController : Controller { TamanhoPizza tamanhoPizza = new TamanhoPizza(); // GET: api/TamanhoPizza [HttpGet] ...
eeb07b0978d2d5a95f6e0efd705e876eaef2061d
C#
DustinMalin/Enhancing-Class-Date
/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Malind_Assignment_10_6 { class Program { static void Main(string[] args) { Date newDate = new Date(1, 1, 1); for(int i = 0; i <30; i++) ...