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
a878ad63b895ec4fb91526b1425ded55a68fe541
C#
Someone999/InfoReader
/InfoReader/NewExpressionParser/Nodes/OperatorExpressionNode.cs
3.296875
3
using System; using System.ComponentModel; using System.Linq; namespace InfoReaderPlugin.NewExpressionParser.Nodes { public class OperatorExpressionNode : ExpressionNode { void CheckValueNode(params ValueExpressionNode[] nodes) { if (nodes.Any(node => node is null || node.Value is ...
025334fe849074b2a49cfe337e55f60c3e849dcf
C#
catSirup/TheLantern
/Assets/Scripts/Object/Switch.cs
2.609375
3
using UnityEngine; using System.Collections; public class Switch : MonoBehaviour { public Sprite s_SwitchOff; public Sprite s_SwitchOn; private bool curState; private SpriteRenderer spriteRenderer; public void Init() { curState = false; spriteRenderer = gameObject.GetComponen...
cbf6891a4ed372bcc505f447b1637d5b3e1b97c0
C#
PengChen01/CodeAnalyseProject
/ColorProcess.cs
3.296875
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; namespace Product { class ColorProcess { /// <summary> /// 返回指定深浅的一种随机颜色 /// </summary> /// <param name="index">颜色的中心值</param> /// <param name="radi...
facdd350e745ed06072959cbf601619193f6ca17
C#
lucasgmagalhaes/Windows-Forms
/PUC/3º período/Leitor_Base_TI/Leitor_Base_TI/Form1.cs
2.53125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Windows.Forms; namespace Leitor_Base_TI { public partial class Form1 : Form { public Form1() { I...
224c834c303e58a027614b0864985f42efa8710a
C#
xexuxjy/xexuxjy-xna-games
/GladiusUnity2021/ModelImporter/Assets/Editor/BlockEncoder.cs
2.546875
3
// https://github.com/Nominom/BCnEncoder.NET/blob/master/BCnEnc.Net/Encoder/Bc1BlockEncoder.cs using BCnEncoder.Encoder; using BCnEncoder.Shared; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace ...
5f5c8293792c17d84289b0853f360ada2a22815d
C#
KimHuiEun/E-BookSystem
/EBook.Data/Entities/Rent.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EBook.Data { public partial class Rent { public override string ToString() { return $"{RentId} / {RentDate} / {CustomerId} / {BookId} / {ReturnedDate}"; ...
ee98303409de32f8e00a3ce26ec91dfb825b27d5
C#
ktj007/simpleRPG
/SimpleRPG/Assets/_SimpleRPG/Scripts/Characters/Special Abilities/Magic Missile/MagicMissileBehaviour.cs
2.546875
3
using UnityEngine; using RPG.Weapons; namespace RPG.Characters { public class MagicMissileBehaviour : AbilityBehaviour { const float MISSILE_SPEED = 10f; public override void Use(GameObject target, bool useTargetPosition) { base.Use(target, useTargetPosition);...
35a4b4d8dee8aa14af33e9f314680cef940c4714
C#
SofiaMalmsten/ComputationalFloorplans
/PlotPlanning/PlotPlanning/Components/Evaluate/NumberOfHouses.cs
2.828125
3
using System; using System.Collections.Generic; using Grasshopper.Kernel; // In order to load the result of this wizard, you will also need to // add the output bin/ folder of this project to the list of loaded // folder in Grasshopper. // You can use the _GrasshopperDeveloperSettings Rhino command for that. namespa...
ad4248340edc1c93626054f714bd2d3ca7937d3b
C#
Azure/azure-functions-host
/test/WebJobs.Script.Tests.Integration/TestScripts/CSharp/MobileTableOut/run.csx
2.96875
3
public static async Task<Item> Run(string input, TraceWriter log) { var item = new Item { Id = input, Text = "Hello from C#!" }; log.Info($"Inserting item {item.Id}"); // artificially making this function async to test // async return values await Task.Delay(500); ret...
9529672935779265ff67fc13471e54074e399840
C#
gulyash/cs-dotnet
/dotnetlab1/dotnetlab1/Factories/PuffBaker.cs
3.765625
4
using dotnetlab1.Baking; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace dotnetlab1 { /// <summary> /// This class describes a bakery worker that is a professional with puff pastry /// </summary> class PuffBaker : IBaker ...
697f1db0904ef7979898125c19907d78727d41be
C#
x-stars/DotNetExtensions
/XNetEx.ObjectModel/ObservableDataObject.cs
2.8125
3
using System; using System.Collections.Concurrent; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; namespace XNetEx.ComponentModel; /// <summary> /// 提供属性更改通知类型 <see cref="INotifyPropertyChanged"/> 的抽象基类。 /// </summary> [Serializable] public abstract class O...
6d0ce2feadc3deccec9af774aacfc105b6f125ab
C#
danielflower/MusicCollectionCompleter
/MusicCollectionCompleterTests/Services/AlbumIgonoranceDbTest.cs
2.703125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using MusicCollectionCompleter.Desktop.Services; using NUnit.Framework; namespace MusicCollectionCompleter.MusicCollectionCompleterTests.Services { public class AlbumIgonoranceDbTes...
3bd253f7bd541490a96b63e3d4de851fb0909f2f
C#
1994wjdwodbs/StudyCSharp21
/chap10/Chap10App/ArrayListApp/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace ArrayListApp { class Program { static void Main(string[] args) { System.Collections.ArrayList array = new ArrayList(); ...
a4b776259c13e23a8d31b98876b93c2d6af0f6dd
C#
ermirbeqiraj/oop-encapsulation-abstraction
/OOP.EA/Bank.Logic/Implementations/ConvertionRates.cs
2.734375
3
using Bank.Logic.Interfaces; namespace Bank.Logic.Implementations { public class ConvertionRates : IConvertionRates { public decimal Convert(decimal amountToConvert, Currency amountToConvertCurrency, Currency baseCurrency) { var rates = 1.12m; // suppose we got this from some remot...
1e33ed8d7be850cf0f087a5344367f1de34f5c36
C#
newhand2017/CS280-Lecture6-Examples
/PokemonLibrary/Gym.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PokemonLibrary { public class Gym { public Pokemon[] pokemons; private Random random; //Build Gym with initial value public Gym(string[] ...
57f08cd7c51bfe3246a28c91a7ff12847f8600b7
C#
darakeon/dk-lib
/Source/Util/Exceptions/ComposedResult.cs
2.59375
3
namespace Keon.Util.Exceptions { /// <summary> /// Class to return an object composed by the return error and the success return /// </summary> /// <typeparam name="S">Success return Type</typeparam> /// <typeparam name="E">Error return Type</typeparam> public class ComposedResult<S, E> where S : new() where ...
ae75d65038dcf34fc79f2ac2ad742f00e5a07c9e
C#
sprz/Advent-Of-Code
/2017/day16/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; namespace day16 { class Program { static void Main(string[] args) { var orders = File.ReadAllText("data.txt").Split(',').Select(x=> Dance.CreateNew(x)).T...
3a50a65cce5df38f5a57bb93b27c85dd2345e50c
C#
shendongnian/download4
/code3/449280-10128061-23213005-8.cs
3
3
class B { protected int x; } class D : B { void M() { { x = 123; // meaning this.x inherited from B } if (whatever) { int x = 10;
3422b7ae9f28722e2ba1647a67041e20cfc47b14
C#
TheDamTeam/Homefit
/Homefit/Homefit/Services/Constants.cs
2.59375
3
using SQLite; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Homefit.Services { public static class Constants { public const string DataBaseFilename = "Homefit.db3"; public const SQLiteOpenFlags Flags = SQLiteOpenFlags.ReadWrite | ...
72795a7d501c1ed70a93914c601474c0b392d515
C#
mkbiltek/TelerikAcademy-4
/WebServices/WS-3-ArhitectureWebApi-Homework/TicTacToe.Tests/GameResultValidatorTests.cs
2.515625
3
namespace TicTacToe.Tests { using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using TicTacToe.GameLogic; [TestClass] public class GameResultValidatorTests { private static GameResultValidator validator; [TestInitialize] public void InitializeObjects() ...
fdcaa49a9536caf1f13fb0837a6a126fecd1f462
C#
ondryaso/GrillBot
/Grillbot/Modules/WebAdminModule.cs
2.5625
3
using Discord.Commands; using Discord.WebSocket; using Grillbot.Attributes; using Grillbot.Extensions.Discord; using Grillbot.Services.Permissions.Preconditions; using Grillbot.Services.UserManagement; using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading.Tasks; namespace Gril...
c6ae3f71939f972d0a4d913ef83e61ca3fb16307
C#
Something226/Slutprojekt
/Slutprojekt/Program.cs
3.90625
4
using System; using System.Collections.Generic; namespace Slutprojekt { class Program { static void Main(string[] args) { //Variables and lists/arrays List<string> shopItemstrings = new List<string>() { "dagger", "potion", "sword", "armor" }; // List<int> ...
b5e6f03baf0371d659131180a0c4a40520164435
C#
Opiumtm/Imageboard10
/Imageboard10/Imageboard10.Core.Models/Serialization/ObjectSerializationService.cs
2.625
3
using System; using System.Collections.Generic; using Imageboard10.Core.ModelInterface; using Imageboard10.Core.Modules; namespace Imageboard10.Core.Models.Serialization { /// <summary> /// Сервис сериализации (общая реализация). /// </summary> public sealed class ObjectSerializationService : ModuleBa...
7a426d972b9eb38c7df413c37d1ea4c6a76c75d7
C#
Leonov-Artem/InformationTheoryCoursework
/Algorithms/CRC/CyclicalRedundancyCheck.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Algorithms.CRC { public class CyclicalRedundancyCheck { string _bitString; public string BinaryText { get; private set; } public int GeneratingPolynomDegree {...
45a732a669afb53826dfdf3a6efca6d50e4074c2
C#
SergeyRazin/Tasks-EPAM-
/Task9/MyClassLibraryCAPTCHA/Test_MyClassLibrary/Test_Accessors/Test_Accessor_XML.cs
2.84375
3
using System.Collections.Generic; using MyClassLibrary.Accessors; using MyClassLibrary.Interfaces; using NUnit.Framework; using MyClassLibrary.DataClasses; namespace Test_MyClassLibrary.Test_Accessors { //ПОДДЕЛКА для XPath public class FakeXPath:MyXPath { //получить месторождение со ск...
e5ab11e62b7a8a3d11ac23c5570a118ce1f0b475
C#
Dream-Scaper/AABBRaylib
/ConsoleApp1/MyShape.cs
2.90625
3
using System.Collections.Generic; using Raylib; using Collision; namespace ConsoleApp1 { class MyShape { public Vector2 position = new Vector2(); public List<Vector2> MyPoints = new List<Vector2>(); public Color color = Color.BLACK; public AABB collisionBox = new AABB(); ...
9285e0f055926ed658237a267484b6ceed6b4e5f
C#
vijayprasad23/SupportClass2_Area
/SupportClass2_Area/Program.cs
3.96875
4
using System; namespace SupportClass2_Area { class Program { static void Main(string[] args) { //Variable Declarations double length, width, radius, height, base1, area; const double PI = 3.1415962; Console.WriteLine("This program will calculate ...
0cb0d5189cb7d83e3feeea267707cce057289d55
C#
dozray/deep
/deep.tool/Logger.cs
2.890625
3
using log4net; using System; using System.IO; using System.Text; public class Logger { private static readonly string LOG_DIR = (AppDomain.CurrentDomain.BaseDirectory + "logs"); private static readonly string FILE_PATH = (LOG_DIR + @"\" + DateTime.Now.ToString("yy-M-d") + ".log"); private static ...
6aebdcab592ac4ced8acc887ce6e2cdadc68e5e1
C#
graphql-dotnet/parser
/src/GraphQLParser/Visitors/ASTVisitor.cs
2.59375
3
using GraphQLParser.AST; namespace GraphQLParser.Visitors; /// <summary> /// Visitor which methods are called when traversing AST. /// <typeparam name="TContext">Type of the context object passed into all VisitXXX methods.</typeparam> /// </summary> public class ASTVisitor<TContext> where TContext : IASTVisitorContex...
e3272ecbf81dcf903c3ecb02bd11b663cff8d6b7
C#
mehradae/cs204
/MaxFreeTcbs.cs
2.625
3
using System; using Microsoft.Win32; namespace CS204 { public class MaxFreeTcbs { String path = "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters"; public void Add() { using (RegistryKey key = Registry.LocalMachine.OpenSubKey(path, true)) { /...
162d94bfc8175a18798a3744705e4b6616c4f48a
C#
LawrenceHan/Hearthstone-decompile
/IlSpyDecompile/Assembly-CSharp-firstpass/PegasusShared/RewardChestDbRecord.cs
2.734375
3
using System.Collections.Generic; using System.IO; namespace PegasusShared { public class RewardChestDbRecord : IProtoBuf { public bool HasShowToReturningPlayer; private bool _ShowToReturningPlayer; private List<LocalizedString> _Strings = new List<LocalizedString>(); public int Id { get; set; } public...
9cb4bc9ae1a486bf08abad605eaf5a9f9d1d5040
C#
LKempton/ConversionProgram
/Program.cs
3.890625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace SOFT153AlgorithmCoursework { // SOFT153 Assignment for algorithms! // Lee Kempton // Note: There is a filename variable in the ReadValues method, this has to be ch...
4089aee366f849f1125f657790ac8b13e100ea2e
C#
GreedyCoding/CodingChallenges.Net
/CodingChallenges/SortingAlgorithms/SelectionSort.cs
3.984375
4
using System; using System.Collections.Generic; using System.Text; using CodingChallenges.Utilities; namespace CodingChallenges.SortingAlgorithms { class SelectionSort { public static int[] SortArray(int[] toSort, bool ascending) { int[] _result = toSort; //Det...
5728f0b5d1356ce57aca416a5576fedd073b2d7c
C#
floasu/csharp3
/TemaHotel/TemaHotel/ViewModel/UserUtils.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using TemaHotel.DataAccess; using TemaHotel.Model; namespace TemaHotel.ViewModel { public class UserUtils : INotifyPropertyChanged { Us...
605552f55446de6d859467755537e4a3b4dd4962
C#
Taktloss/AGS_TranslationEditor
/TranslationApi/GoogleTranslate.cs
2.84375
3
using System; using System.Linq; using System.Net; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace TranslationApi { public class GoogleTranslator : ITranslateAPI { public string Translate(string text, string from, string to) { var originalText = WebUtility.UrlEncode(te...
bf6f9ca5b6e0f52a2eccd863117cc4dc858a9d20
C#
YJammak/YUI
/YUI/YProperties/YCheckProperties.cs
2.640625
3
using System.Windows; using System.Windows.Media; namespace YUI.WPF.YProperties { public static partial class YAttachProperty { #region YCheckedForegroundProperty 被选中前景色 /// <summary> /// 鼠标悬浮前景色附加属性 /// </summary> public static readonly DependencyProperty YCheckedForeg...
e630eddf9b99b5a43708e0ddebaf55e98809fd34
C#
hikerclimb/Udemy-Intermediate-Course
/Course Material/Lecture11/4-ComboListBoxes/2-Switch Example/Backup/Switch Example/Form1.cs
2.9375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Switch_Example { public partial class Form1 : Form { public Form1() { InitializeComponent(); } ...
c5ce8711a100d9340838838a06cfcde41501ea49
C#
generateui/YouTown
/YouTown/IChit.cs
3.296875
3
namespace YouTown { /// <summary> /// A number on a hexagon tile /// </summary> /// Represented as simple type exposing some convenience getters. Has a /// <see cref="RandomChit"/> implementation to represent a chit to be /// replaced at board setup. public interface IChit : IGame...
820158f1e6e0f56ea945461a39bf2889a5f7537b
C#
Mellodica/Udemy1
/Servicos/DepartamentoServico.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Udemy1.Models; using Microsoft.EntityFrameworkCore; namespace Udemy1.Servicos { public class DepartamentoServico { private readonly TudoContext _context; public DepartamentoServico(TudoConte...
c5e0c1729e8610b19a89ccc63c0e8e2bf4ec4dae
C#
slagusev/Rhovlyn
/Rhovlyn.Engine/Managers/TextureManager.cs
2.828125
3
using System; using System.Collections.Generic; using Microsoft.Xna.Framework.Graphics; using System.IO; using Rhovlyn.Engine.Graphics; using Microsoft.Xna.Framework; using Rhovlyn.Engine.Util; namespace Rhovlyn.Engine.Managers { public class TextureManager { private static GraphicsDevice Graphics; private Dicti...
bd68f7ecb9daa1da9d9fe7d946c814969ea1f6b8
C#
vyagi/ProgrammingTechniques
/DesignPatterns/Pizzeria/Pizzeria/ItalianCapriciosa.cs
3
3
namespace Pizzeria { public class ItalianCapriciosa : Pizza { public ItalianCapriciosa() { Name = "Italian Style Capriciosa"; Dough = "Thin Crust Dough"; Sauce = "Tomato Sauce"; Toppings.Add("Shredded Mozzarella Cheese"); Toppings.Add...
f9ff1436af949d8e8d9fff7197f9ef59762f6b90
C#
wermajew/DesignPatterns
/01Singleton/Students/2017/MajewskaWeronika/ConsoleApp1/SingletonThreads/SingletonThreadingSafe.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SingletonThreadSafe { class SingletonThreadingSafe { private static SingletonThreadingSafe _instance = null; private static object syncObject = new object(); pu...
9319b079e5d691b827c5c285977d699fb722403e
C#
shendongnian/download4
/first_version_download2/69690-4382522-9242311-2.cs
2.859375
3
private DelegateCommand UpdateData1Command { get; set; } public MyViewModel() { this.UpdateData1Command = new DelegateCommand(_ => this.GetData1(), _ => this.IsGraph1Visible); } private bool isGraph1Visible; public bool IsGraph1Visible { get { ...
92fc515bc354f0e3db79f55598aa78aa3732b7fa
C#
shendongnian/download4
/code1/167043-23393827-64103995-2.cs
3.140625
3
public static K CopyMost<T, K>(this IEnumerable<T> records, Func<T, K> propertySelector, Func<K, bool> tieBreaker) { var grouped = records.GroupBy(x => propertySelector(x)).Select(x => new { Group = x, Count = x.Count() }); var maxCount = grouped.Max(x => x.Count); var subGroup = grouped...
28b61500fba8aa7ff5750e64248d5017f9301b9d
C#
K-Viera/Lenguajes-y-Compiladores
/AnalizadorLexico/AnalizadorLexico/TablaSimbolos.cs
2.90625
3
using System; using System.Collections.Generic; using System.Net.NetworkInformation; using System.Runtime.CompilerServices; using System.Text; namespace AnalizadorLexico { static class TablaSimbolos { public static List<string> simbolos=new List<string>(); public static List<List<string>> tipo...
02f6ba511f54e39e98baecbd630d6cb05bc8a81f
C#
delokman/DevInd_1
/twschart-1-/archive/TWSLibrary/UserControls/uctlAlertCreator.cs
2.640625
3
///////REVISION HISTORY///////////////////////////////////////////////////////////////////////////////////////////////////// //DATE INITIALS DESCRIPTION //02/01/2012 VP 1.Added naming conventions comment to properties and methods //02/02/2012 VP 1.Commenting of the code ///////////////////////////////////...
98a0b4db3f21a293a34d512c481a1bfba8b06202
C#
manuelarriolag/MockDbConnections
/MockDbConnections/Program.cs
3.1875
3
using MockDbConnections.Mocks; using NSubstitute; using System.Collections.Generic; using System.Data; using System.Diagnostics; using System.Text.RegularExpressions; using System.Linq; /// <summary> /// Example program demonstrating use of NSubstitute with abstract classes to mock /// a database. /// </summ...
400fafcdb50512284123fbb2910ed540a3e8f39d
C#
farjadhabib/SendEmail
/SendEmail/EmailUtiity.cs
2.875
3
using System; using System.Net; using System.Net.Mail; namespace SendEmail { public class EmailUtiity { SmtpClient smtp; public EmailUtiity(string mailServer, int? port, string username, string password) { smtp = (port != null && port > 0) ? new SmtpClient(mailServer, port.Value) : new SmtpClient(ma...
b17c08ce6f8ac6f69c122e46b1f417a25c06bfde
C#
BenjaminGroseclose/Banking-Application
/Bank Application/Bank/Bank/Database/DataConnection.cs
2.8125
3
using System; using System.Data.SqlClient; using System.Windows; namespace Bank.Database { public class DataConnection { public SqlConnectionStringBuilder SqlConnection() { try { SqlConnectionStringBuilder connectionString = new SqlConnectionStringBuild...
3813b4f0cb3b851e26c728126a2f95db860a5e0c
C#
adenial/TemplateCore
/src/TemplateCore/Services/AuthMessageSender.cs
2.734375
3
//----------------------------------------------------------------------- // <copyright file="AuthMessageSender.cs" company="Without name"> // Company copyright tag. // </copyright> //----------------------------------------------------------------------- namespace TemplateCore.Services { using System.Threading....
e0891a10cd6f748825496c380941d823b4d39906
C#
t4rn/ParallelWsTester
/ParallelWsTester/Program.cs
2.578125
3
using Newtonsoft.Json; using ParallelWsTester.SoapFruitLoops; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.ServiceModel; using System.Threading.Tasks; namespace ParallelWsTester { class Program { private static Dictionary<int, string> addresse...
8ab9cb9eca02feee8d427e3781505d503c536f2d
C#
zebenman/DECO3801-Synergistics
/Synergystics/Assets/Scripts/Utilities.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using TMPro; using UnityEngine; using UnityEngine.UI; public static class Utilities { // A nice dark grey colour public static readonly Color DarkGrey = new Color(66f / 255f, 66f / 255f, 66f / 255f); // Some map sources public static ...
4151369a236dcaea58080fa3ae6f1853512577c1
C#
razuk-78/DotNetExamples
/MVC/UnitTest/TestEntity.cs
2.640625
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System.Web.Mvc; using System.Reflection; using MVC.Models; using System.Data.Entity; using System.Linq; using System.Collections.Generic; using TestingDemo; namespace MVC.UnitTest { // https://docs.microsoft.com/en-us/ef/ef6/fundam...
d61127709d647c012766ca81426d0ac80d33396f
C#
noahmpauls/advent-of-code-2020
/days/Day16.cs
2.890625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace days { public class Day16 { //###################################################################### // Part 1 + 2 Solutions //########...
be0ecb5964ec2a87f669705575225b0643ea75eb
C#
erbelair/HashtagSearch
/TwitterClientLibrary/Services/SearchService.cs
3.15625
3
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace TwitterClientLibrary.Services { /// <summary> /// Service to search tweets. /// </summary> public class SearchService : BaseTwitterService, ISearchService { /// <summa...
0ca478b5e1d220313cdf67d1ef6b736cec4d7c3d
C#
ddmryrk/DesignPatternPractices
/02-FactoryMethod/Factorymethod.cs
3.53125
4
using _02_FactoryMethod.Interfaces; using System; namespace _02_FactoryMethod { class Factorymethod { /// Bu pattern ile loglamayı yönetecek fabrikalar yaratıyoruz. /// Sınıflar çıplak olmamalıdır. Interfacelerden türetilip soyutlanması gerekir. /// Fabrikaları da interfaceler ile soyu...
f5b860b3d8bca6de5218d9cc1ee9ed6a6c8899ce
C#
GreysonWright/Date-Checker
/Date Check Tool/Date Check Tool/DataBaseTools.cs
3.03125
3
//Very wow such great efficiency using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Data; using System.Data.OleDb; using System.Windows; namespace Date_Check_Tool { public delegate void ProgressUpdated(object sender, DBToolsProgressUpdatedEventArgs e); ...
6b5fa3e9d9b012ea07924cfe4659d5e79525fe59
C#
krasiIvanov/SoftUni
/Projects/OOPDefiningClasses/CompanyRoster/Program.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CompanyRoster { class Employee { public string name; public decimal salary; public string position; public string department; public string emai...
a07882ae705ee77729642a546d4b6743fdda0e81
C#
Mikegrann/DragonTD
/DragonTD/Sprite.cs
3.03125
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; namespace DragonTD { class Sprite { public Texture2D Texture; public Color Color; public Sprite(Texture2D texture, Color color) { Texture = texture; Color = color; ...
8a0fbffb76d0a8691a27d5d30144cf9778128632
C#
Uncle-Uee/jellyfish-lite
/Assets/JellyFish-Lite/Scripts/Runtime/Internal/Monitoring/ScreenSize/ScreenSizeMonitor.cs
2.6875
3
/** * Created By: Ubaidullah Effendi-Emjedi * LinkedIn : https://www.linkedin.com/in/ubaidullah-effendi-emjedi-202494183/ */ using System; using System.Collections; using JellyFish.Internal.Utilities; using UnityEngine; // ReSharper disable once CheckNamespace namespace JellyFish.Monitor.ScreenSize { public c...
430091752fc925fcff7c4ae9a2911c411ac6dae7
C#
yifan86226/HRManageSystem
/CO_IA.Data.Portable/WorkLog/WorkLogQueryCondition.cs
2.53125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; namespace CO_IA.Data { public class WorkLogQueryCondition : INotifyPropertyChanged { public WorkLogQueryCondition() { int date = DateTime.Today.Day; WorkDa...
83c791768a6392c7e3076317b8315a34f6a8841c
C#
samuilll/Softuni_ProgrammingFundamentals
/PrgrammingFundametnalsFast/03_DataTypesAndVariables/Task19TheaThePhotographer/Task19TheaThePhotographer.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Task19TheThePhotographer { class Task19TheThePhotographer { static void Main(string[] args) { long numberOfPictures = long.Parse(Console.ReadLine()); ...
904c63effd3cf79176d9f236824db03f302f4ed8
C#
yassine68/FirstProjectWith.NET5
/MyMusic.Services/Services/MusicService.cs
2.703125
3
using MyMusic.Core; using MyMusic.Core.Models; using MyMusic.Core.Services; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace MyMusic.Services.Services { public class MusicService : IMusicService { private readonly IUnitOfWork _unitOfWork; // In...
d24dad4bd65e70b02ded5a2271982c472a4a8e6f
C#
MarioBankov/SoftUni-Homeworks-
/C# Advanced/Exercises Multidimensional Arrays/2. 2x2 Squares in Matrix/Program.cs
3.765625
4
using System; using System.Collections.Generic; using System.Linq; namespace _2._2x2_Squares_in_Matrix { class Program { static void Main(string[] args) { int[] size = Console.ReadLine().Split(" ",StringSplitOptions.RemoveEmptyEntries).Select(int.Parse).ToArray(); ...
5d3be21fb2b227feba97eba80538fdd23c986014
C#
FinnMcLaughlin/Untitled-RogueLike
/Assets/Scripts/Player Scripts/spawnCharacter.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class spawnCharacter : MonoBehaviour { private bool bossSpawned; private bool playerSpawned; private bool playerRespawned = false; private GameObject spawnPoint; public GameObject player; // Find the spawnPoint within the ga...
5c2b42c9054bf7438acdda5ee06becc2d82e4c5c
C#
goldennoodles/AOERemake
/Assets/Scripts/Managers/GuiManager/GuiSections/GuiSection.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GuiSection :MonoBehaviour { #region Variables [SerializeField] private string _guiName; [SerializeField] private bool _isEnabled; #endregion #region Getters and Setters public string GuiName...
eaf3597319c5a0b7912a43c674895f1b8ff8c2e0
C#
eyalkapah/YahooFinanceApp
/AutoTrader.Models/Models/SectorProfit.cs
2.625
3
using System.Collections.Generic; namespace AutoTrader.Models.Models { public class SectorProfit { public double TotalProfit { get; set; } public double AverageProfit => TotalProfit / Symbols.Count; public List<string> Symbols { get; set; } public string Sector { get; set; }...
156be4157f336cf6b48fa7aa51e478a0d9354823
C#
yyoda/tail
/Tail/Command.cs
3
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; namespace Tail { public class Command { private const int Interval = 100; private sta...
10c1d4832ac97bb242b8be87f46f9790b9d8fc76
C#
Miroko/UnityRoguelike
/Assets/Scripts/Core/Direction.cs
2.90625
3
using UnityEngine; using System.Collections; public class Direction { public static Vector2 Up = new Vector2 (0, 1); public static Vector2 Down = new Vector2 (0, -1); public static Vector2 Left = new Vector2 (-1, 0); public static Vector2 Right = new Vector2 (1, 0); public static Vector2[] Directions = new Vecto...
789c4fe644e680ceca6da96af3d9b315686b8762
C#
Dpineda89/Clase-de-Animales
/Loro.cs
2.984375
3
using System; public class Loro: Aves // <- Herencia { public bool EsDomestico { get; set; } public string Plumaje { get; set; } public Loro() // <- Polimorfismo { EsDomestico = true; } public Loro(bool esDomestico) // <- Polimorfismo { EsDomestico = esDomestico; } ...
6f308e4b3f8091f53295c4fcf5dad89bd483e7e3
C#
shendongnian/download4
/first_version_download2/457582-40757747-132213070-2.cs
2.90625
3
foreach (GridViewRow gvRow in gvProxyEntry.Rows) { List<object> emptyControls = new List<object>(); foreach (TableCell cell in gvRow.Cells) { foreach(Control c in cell.Controls)//newly added foreach loop { Type controlType = c.GetType(); if (controlType == typeof(CheckBox))...
e071715acccce4378b028c8e461d60a51daaae5f
C#
soerenraeuchle/HiWiBoerse
/Login/Models/DBManager.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; using System.Data.SqlClient; namespace Login.Models { public class DBManager { private DBManager() { } private static DBManager instance = null; //private static string Conn...
d43a235290154f45e832e94bf1ddcb70e181e1a1
C#
rdumont/changey
/Changey/LabelExtensions.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using Octokit; namespace Changey { public static class LabelExtensions { public static bool MatchesAny(this Label @this, IEnumerable<string> labels) { return labels.Any(label => string.Equals(@this.Name, label, Stri...
ab10eb0c2171cb76bf6da82c42018e834ecadbfe
C#
flitbit/fbcore
/FlitBit.Core/WeakReferenceExtensions.cs
3.171875
3
#region COPYRIGHT© 2009-2014 Phillip Clark. All rights reserved. // For licensing information see License.txt (MIT style licensing). #endregion using System; namespace FlitBit.Core { /// <summary> /// Extends the weak reference type. /// </summary> public static class WeakReferenceExtensions { /// <s...
e8f06b5761f6b32e0b0321950ba713fdb08018ac
C#
Sckorn/vercanoid
/Assets/Standard Assets/Scripts/back/GridCell.cs
2.734375
3
using UnityEngine; using System.Collections; using System; public class GridCell { private bool hasBrick = false; private GameObject realObjRef; private GridCellCoords cellCoords; public bool HasBrick { get { return this.hasBrick; } set { this.hasBrick = value; } } public...
f4f8a2cd4e4fac7f8cc738ab68a83ef1f9f7b870
C#
shendongnian/download4
/code2/276770-5662111-12170497-2.cs
3.15625
3
using System; using System.Diagnostics; using System.Linq; using System.Linq.Expressions; class Person { public int Id { get; set; } public FullName FullName { get; set; } } class FullName { public string FirstName { get; set; } public string LastName ...
25dcd7fe34616b8f16a2eaecd2385f6cbae2c831
C#
h2n0/HashCode
/Drone.cs
2.984375
3
using System; using hashCode; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace hashCode { struct Drone { public static int[] ItemWeights { get; set; } Pos Location { get; set; } int TurnsTillTarget { get; set; } int...
9d4db3f82dc9ce1b65f70a28913d32279c61e9b5
C#
stefaanvermassen/service-fabric-cosmos-db-reverse-proxy
/AuditingService/Core/Guard.cs
3.28125
3
using CommonBase.CustomExceptions; using CommonBase.Models; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace AuditingService.Core { /// <summary> /// A static helper class that includes various parameter checking routines. ...
2802bebdba45461dd7bd37ab154076d852c0faaf
C#
MichaelDessureault/Battle-System-2.0
/Assets/Scripts/MonoBehaviours/00 General/IndexData.cs
2.78125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; // This script is used to have easy access with updating indexs by being able to search it's reference within a scene // It contains information on which index of a selection window was clicked, the information is reterived when it's pass...
ccc1a5218f2d70271402ddf92a7603885578f469
C#
SulfuricSulfur/UGWCodeProj
/Enemy.cs
2.953125
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; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; using Microsoft.Xna.Framework.GamerServices; n...
332786ad48205372dc20eeb68337bcf18c45f827
C#
armaniR812/FileTrim
/MainForm.cs
2.609375
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 FileTrim { public partial class MainForm : Form { public MainFor...
90e8bf1568c9df4b31b92a6b9c5b5a2f94a56bf2
C#
LilDavtyan/Myprojects
/Controllers/StudentController.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Les8.Models; namespace Les8.Controllers { public class StudentController : Controller { public ActionResult StudentList() { StudentContext studentlist = new StudentConte...
5949a34c7fd96ec6b9cd7d56afac7dade719cfac
C#
AndrewSherstyuk/CsharpCourse
/Lesson3_Homework/Task8/Program.cs
3.71875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Task8 { class Program { static void Main(string[] args) { Start: Console.WriteLine("\n\nPlease enter any integer within the followi...
dad940a5c539a71742d1a6d21bf67ed0de242681
C#
tinaxiu/Leetcode
/ConsoleApp1/MinimumCosttoMergeStones.cs
3.390625
3
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp1 { class MinimumCosttoMergeStones { public int RunMergeStone() { int[] Stones = new int[4]; Stones[0] = 3; Stones[1] = 2; Stones[2] = 4; Stones[3]...
4394f97361fed71f9919ee7d45c55937364a18fb
C#
KevinvdBurg/StartKicker
/Kickstarter_web/classes/DBLogin.cs
2.859375
3
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="DBLogin.cs" company="StartKicker"> // // </copyright> // <summary> // All the DB connections that are needed to login someone in and to get all the relative infromation for a...
72eff83203bc1c0f3a9be642baf99de7d85407ce
C#
samasder/unityProject_RogueTactics
/RogueTactics/Assets/Scripts/ViewModelComponent/Actor/Alliance.cs
2.5625
3
using UnityEngine; public class Alliance : MonoBehaviour { public Alliances type; public bool confused; public bool IsMatch(Alliance other, Targets targets) { bool isMatch = false; switch (targets) { case Targets.Self: isMatch = other == this; ...
3b24717da701c5cc4097cfff4b1bad7ad19f2fb2
C#
fdeluna/.net-SeleniumTest
/VibboQA/PageObject/SearchResultGridPO.cs
2.875
3
using System; using OpenQA.Selenium; using System.Collections.Generic; namespace VibboQA.PageObject { /// <summary> /// Page Object To interact with search result grid /// </summary> public class SearchResultGridPO : BasePageObject { private IWebElement _searchResultGrid; private L...
716998efed8cfb09ace17f7add59314e54d69ab4
C#
Creysys/MinecraftClone3
/MinecraftClone3API/Util/AxisAlignedBoundingBox.cs
2.84375
3
using MinecraftClone3API.Blocks; using OpenTK; namespace MinecraftClone3API.Util { public class AxisAlignedBoundingBox { public Vector3 Min; public Vector3 Max; public Vector3 Translation => Min + (Max - Min) * 0.5f; public Vector3 Scale => Max - Min; public AxisAlign...
d0f327cd08fcfbfd62aa14207909e3e02d3a51d6
C#
landorphan/service-location
/source/Landorphan.Ioc.ServiceLocation/ServiceLocation/Exceptions/LandorphanIocServiceExcepions/AbstractAssemblyRegistrarException.cs
2.609375
3
namespace Landorphan.Ioc.ServiceLocation.Exceptions { using System; using System.Globalization; using System.Runtime.Serialization; using System.Security; using Landorphan.Common; using Landorphan.Ioc.Resources; using Landorphan.Ioc.ServiceLocation.Interfaces; /// <summary> ...
ba6ce12ce0f99347bb690abdcb78741c34bf69b4
C#
radoman1996/DSaturProject
/DSaturProject/DrawGraph.cs
2.703125
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 DSaturProject { public partial class DrawGraph : Form { #region PODACI ...
b9107cbfb8f231e3ad1f2b2f228c3bc52928c9b7
C#
HristoShabanakov/CSharp-ADVANCED-January2019
/C# Advanced/02.Stacks And Queues - Exercise/06.AutoRepairAndService/06.AutoRepairAndService.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { string[] cars = Console.ReadLine().Split(); string input; Queue<string> vehicles = new Queue<string>(cars); Stack<string> servedVehicles = new Stack<string>(); whi...
b8a6423d95925fa9b4a7efa16f700a5218e47965
C#
erangeljr/DesignPatterns
/BridgePattern/Pharmacy.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BridgePattern { public class Pharmacy : Referral { public int PharmacyReferralId { get; set; } public string Member { get; set; } public Dictionary<string, str...
17a0d96c1879907ca29a70bccbb002a23017339c
C#
lattic/VRSimulator
/Src/ProjectCars/MikeyTT-pcars-api-demo-5eb320b60b20/pCarsAPI-Demo/MainWindow.xaml.cs
2.5625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using Syst...
30623b1b973217959009405ba7820b389999c38c
C#
ggpo1/foodstorage_backend
/Services/RoomService/RoomService.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FoodStorage_Backend.Models; using FoodStorage_Backend.Models.DataBase; namespace FoodStorage_Backend.Services.RoomService { public class RoomService : IRoomService { public Task<Room> AddRoom(Room ro...
db41abaa084dd04a74ab74335e2e3bd0c213e4b6
C#
borko-rajkovic/LinqPractice
/013 Java (Read only)/007 Lambda/Lambda.linq
3.359375
3
<Query Kind="Program"> <Reference>&lt;RuntimeDirectory&gt;\System.Threading.dll</Reference> <Reference>&lt;RuntimeDirectory&gt;\System.Threading.Tasks.dll</Reference> </Query> class Program { public class Country { private String name; private int size; private String continent; ...
6a18ce6a0e199f3e478923f4fa6d3cdada89c769
C#
VAllens/qMISPlat
/Library/Common/NVelocity/Runtime/Directive/VMProxyArg.cs
2.953125
3
// Copyright 2004-2010 Castle Project - http://www.castleproject.org/ // // 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 of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless ...
faf6611f03b77e11817d4ec427b43509fa89f801
C#
M1rceaDogaru/black-and-white-console
/MapLoader.cs
3.015625
3
using Push.Models; using System; using System.IO; namespace Push { public class MapLoader { private readonly TileManager _tileManager; private readonly BoxManager _boxManager; public MapLoader(TileManager tileManager, BoxManager boxManager) { _tileManager = tileMan...
e3349ff73fd30311c793a71ee03f33b00d634c78
C#
bat-here/Unimoved
/HeapMedian.cs
3.546875
4
using System; using System.Collections.Generic; using System.IO; using System.Linq; class HeapMedian { /* Create two heaps, one min heap to hold numbers higher than the current median and one max heap to hold numbers lower than the current median. For each new number, if it is greater than the current m...
314a3cdaf974b000c629c2c27aa3b2f0fd55b8de
C#
LeChatNoir666/renamerNG
/Renamer.cs
2.90625
3
using System; using System.Windows.Forms; namespace RenamerNG { /// <summary> /// Summary description for Renamer. /// </summary> public class Renamer { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main(string[] args) { if (args...
d6846f8ac7ea67418777379d633f5cd4fe7dd3a9
C#
ThePriestt/Chapter6
/03Task/Program.cs
3.765625
4
using System; // Напишете програма, която чете от конзолата поредица от цели числа и отпечатва най-малкото и най-голямото от тях. class Program { static void Main() { Console.WriteLine("Моля въведете броя на числата n"); int n = int.Parse(Console.ReadLine()); int currentNumber; ...