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
7f0bb798f16359cdb6e64d23f02a57ce7c08f507
C#
210628-UTA-NET/iram-olivares-P0
/SADL/CustomerRepo.cs
2.9375
3
using System; using System.Collections.Generic; using Entity = SADL.Entities; using System.Linq; using SAModels; namespace SADL { public class CustomerRepo : ICustomerRepo { private Entity.ieoDemoDBContext _context; public CustomerRepo(Entity.ieoDemoDBContext p_context) { _c...
32f74990089543b70e29fd2349599126c9f76850
C#
MichaelKhaykin/SolvedLeetCodeProblems
/135.candy.474833496.ac.cs
3.515625
4
public class Solution { public int Candy(int[] ratings) { int[] candies = new int[ratings.Length]; Array.Fill(candies, 1); bool anyChanges; do { anyChanges = false; for(int i = 0; i < candies.Length; i++) { ...
7413354d0855a4607ed2672fb86d80bd6b108b0a
C#
halitak/004_Image_Processing_2
/004_Image_Processing_2/Zoom.cs
3.1875
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _004_Image_Processing_2 { class Zoom { Zoom() { } public static Bitmap setZoomIn(Bitmap bmap) { Bitmap copy ...
00914bb5f80ad632771c508f2b5e991bcf48978c
C#
troqta/KursovaPS
/Kursova/Kursova/MainWindow.xaml.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Threading; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imagin...
bc527c22d290681d2af245882be2ed0a2d00f2da
C#
DuongXuanBinh/Baitap
/C#/Session 2/Snippet 12/Program.cs
3.5
4
using System; namespace Snippet_12 { class Program { static void Main(string[] args) { int number, result; number = 5; result = 100 * number; Console.WriteLine("Result is {0} is multiplied by {1}", result, number); result = 150 / numb...
d47e875eaea1701fa26a4325d7bc14861cbc5d3c
C#
AuroraDysis/UstbBox.old
/UstbBox.Models/Images/ImageObject.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UstbBox.Models.Images { public class ImageObject { public ImageObject() { } public ImageObject(string name, string uri) { this.Name...
b5e8d528c34c669e009c74c6b03f789e3fb0989e
C#
GeorgDangl/XmlTools
/src/XmlTools/GroupFlattener/Flattener.cs
2.984375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml.Linq; namespace XmlTools.GroupFlattener { public class Flattener { public Flattener(Stream xsdSchemaStream) { _xsdSchemaStream = xsdSchemaStream ?? throw new ArgumentNullException(n...
e77dd52c185814a34511108e0c22a4db2066b48a
C#
GlynLeine/ProceduralArt
/ProceduralBuildingsSV/Assets/Scripts/ExampleGrammars/Stack/StackEditor.cs
2.6875
3
using UnityEngine; using System.Collections; using UnityEditor; namespace Demo { /// <summary> /// This editor script adds two buttons to the inspector of the Stack component, /// which can be used to call generate and destroy methods. /// </summary> [CustomEditor(typeof(Stack))] public class StackEditor : Edi...
cd512f97deae82dd27bc7ee8201730526d3c3283
C#
alvarogar777/ProyectoFinalBackendC-
/ProyectoFinalBackend/Model/DetalleCompraModel.cs
2.578125
3
using MahApps.Metro.Controls.Dialogs; using ProyectoFinalBackend.Entity; using ProyectoFinalBackend.View; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProyectoFinalBackend.M...
c28cc5d2454dd44882462bc2c21046c1542c5304
C#
Grumpstrel/Class2
/CarRentalApp1/CarRentalApp/Program.cs
3.03125
3
using System; namespace CarRentalApp { class Program { private static string option; static void Main(string[] args) { while (true) { PrintMainBanner(); PrintMainMenu(); var option = Console.ReadLine(); ...
32c1052bf0bb053d1096cd3fd49a2a567664b165
C#
dknipper/ExcelDocumentProcessor
/ExcelDocumentProcessor.Web/ApplicationLogic/Security/SecurityModel.cs
2.5625
3
using System; using ExcelDocumentProcessor.Web.ApplicationLogic.AppConfig; using ExcelDocumentProcessor.Web.ApplicationLogic.Proxies.DataService; namespace ExcelDocumentProcessor.Web.ApplicationLogic.Security { public class SecurityModel { #region Security Functions /// <summary> /// C...
9a48a41aa78ecfa6d9768087040423dc190dc0fa
C#
Kros-sk/Kros.Libs
/Kros.Utils/src/Kros.Utils.MsAccess/Data/MsAccessIdGeneratorFactory.cs
2.703125
3
using Kros.Utils; using System.Data.OleDb; namespace Kros.Data.MsAccess { /// <summary> /// Creates an instances of <see cref="MsAccessIdGenerator"/> for specified database. /// </summary> /// <seealso cref="MsAccessIdGenerator"/> /// <seealso cref="IdGeneratorFactories"/> /// <example> //...
8b058a7ea0d7298bf95985d1839ce186878c580c
C#
longnvit9x/FoodyDelivery
/Foody/Models/GioHang.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Foody.Models { public class GioHang { FoodDeliveryEntities db = new FoodDeliveryEntities(); public string StoreID { get; set; } public string FoodID { get; set; } public string FoodNam...
5851ef0bfff591043de64a46d6eeab74ca7278ef
C#
JanCGu/nexus
/Core/Interfaces/IChipCardSetter.cs
2.65625
3
using Domain; using System.Collections.Generic; using System.Threading.Tasks; namespace Core.Interfaces { public interface IChipCardSetter { /// <summary> /// Inserts (Creates or Updates) the HashSet of chipcards. /// </summary> /// <param name="toUpdate"></param> /// <retu...
0e1b60e35f49f450893bf1dfe7e8ec04af5d0cf6
C#
JimmehG/PerfectHair
/Assets/Scripts/DynamicSoundtrack.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DynamicSoundtrack : MonoBehaviour { [Header("Soundtrack Stages")] [SerializeField] AudioSource[] audioSources; [Header("Current State")] [ReadOnlyAttribute] [SerializeField] int currentStage; void Start() { curr...
23d7725aa28dff368f1b944f77fe9da72faa18d4
C#
Gunner92/amazon
/AWSSDK/ThirdParty/Mono/ConfigurationManager.cs
2.546875
3
#region File Description //----------------------------------------------------------------------------- // GameScreen.cs // // Microsoft XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- using System....
08258c478246a970b396197d52ab22a9e37d4c27
C#
nickworonekin/puyotools
/src/PuyoTools.Core/Core/BinaryReaderExtensions.cs
3.140625
3
using System; using System.Buffers.Binary; using System.Collections.Generic; using System.IO; using System.Text; namespace PuyoTools.Core { public static class BinaryReaderExtensions { /// <summary> /// Invokes <paramref name="func"/> with the position of the stream set to the given value. ...
33ac39981e8bdfc111395836c849ecc132dac8ae
C#
tddold/Telerik-Academy
/Programming with C#/5. Data-Structures-and-Algorithms/06. Data-Structure-Efficiency/DataStructuresEffic/01.Student Record/Solve.cs
3.625
4
namespace DataStructuresEfficiency { /* A text file students.txt holds information about students and their courses in the following format: Using SortedDictionary<K,T> print the courses in alphabetical order and for each of them prints the students ordered by family and then by name: Kiril | ...
ecbbd8572c99f8aee6c0cba9808eab9d725db8d9
C#
clemgaut/ProjetPoo
/SourceProject/Files.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; public class Files { private const string PATH = @"Saves"; public static List<String...
034ac892618153de9a21db1752889dc16f51140c
C#
elshiekh5/SakeenaTravel
/CMS-FullWebFormsVersion/Version 4.0/DCCMSNameSpace/App_Code/App_Code/Modules/ItemsOrders/ItemsOrdersDetailsFactor.cs
2.625
3
using System; using System.Collections; using System.Collections.Generic; using System.Data; namespace DCCMSNameSpace { /// <summary> /// The factory class of ItemsOrdersDetailsModel. /// </summary> public class ItemsOrdersDetailsFactor { #region --------------Create-------------- ...
4680d7e7adc19a929599365211da2a3f4bb9ef1b
C#
kasik1/PlaywrightSharp
/CustomerHelperUtility/FindElementByXpath.cs
2.921875
3
using OpenQA.Selenium; using OpenQA.Selenium.Support.UI; using System; using System.Collections.Generic; namespace CustomerHelperUtility { public class FindElementByXpath : IFindElement { private IWebDriver _WebDriver; public void IntiateDriver(IWebDriver driver) { _WebDriv...
c87e3210b079773bf63bdda8e555085c989673e9
C#
patel-nikhil/UnofficialCrusaderPatch
/UnofficialCrusaderPatch/Extensions.cs
3.15625
3
using System; using System.Text; using System.Windows; namespace UCP { static class Extensions { public static double MeasureHeight(this FrameworkElement element) { element.Arrange(new Rect()); return element.ActualHeight; } public static int FindIndex(...
fc79ad4d0104e14f7fdf4b4707f04666b271f8f4
C#
ayonchev/Software-University
/Open-Courses/Data-Structures/Exercises-and-Labs/Basic-Trees/Solutions/Trees/Trees/BinaryTree.cs
3.71875
4
using System; public class BinaryTree<T> { public BinaryTree(T value, BinaryTree<T> leftChild = null, BinaryTree<T> rightChild = null) { this.Value = value; this.LeftChild = leftChild; this.RightChild = rightChild; } public T Value { get; private set; } public BinaryTree<T...
593127e211bafa49f29e625765865dba00859d17
C#
saxx/Saxx.Storyblok
/src/Saxx.Storyblok/StoryblokMappings.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using Saxx.Storyblok.Attributes; namespace Saxx.Storyblok { public static class StoryblokMappings { private static IDictionary<string, Mapping>? _mappingsCache; // make static, because it should be "valid" for as long as the app is run...
29ed63450a7f5b001e7a4cf68b8c669ec3d7edf6
C#
FelixFan1122/LeetCode
/KthAncestorOfATreeNode/KthAncestorOfATreeNode.cs
3.484375
3
namespace LeetCode.KthAncestorOfATreeNode { public class TreeAncestor { private readonly int[] parent; public TreeAncestor(int n, int[] parent) { this.parent = parent; } public int GetKthAncestor(int node, int k) { while (k > 0 && node != ...
d4a5b0e3743102bac28e3b734620b5be2fc727b6
C#
thinkaboutcsharp/FriendlySample
/FriendlyMySample/FriendlyMySample/InputForm.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; namespace FriendlyMySample { public partial class InputForm : Form { inter...
9252534950323ae8a74bcf21488423c887c33b0a
C#
tylerwh/OlympicGames
/Models/OlympicSession.cs
2.8125
3
using Microsoft.AspNetCore.Http; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace OlympicGames.Models { public class OlympicSession { private const string TeamsKey = "myteams"; private const string CountKey = "teamcount"; privat...
e97bf7def482a669a942acab0c85c03619f2631e
C#
PawelHaracz/MsGraphExample
/GraphExample/Program.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using Microsoft.Graph; using Microsoft.IdentityModel.Clients.ActiveDirectory; using Polly; using Microsoft.Identity.Client; namespace GraphExample { class Program ...
589299e40de2300067092fe43eb91cbf2985d4d0
C#
moneer-alasmar/dojo_csharp
/puzzles/Program.cs
4.0625
4
using System; namespace ConsoleApplication { public class Program { // Create a function called RandomArray() that returns an integer array // Place 10 random integer values between 5-25 into the array // Print the min and max values of the array // Print the sum of all the va...
e1cb42386cc35f3b8c267ac2e0123fc339671583
C#
hdgardner/ECF
/BusinessLayer/CommerceLib/Engine/Caching/CacheHelper.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Caching; using System.Collections; using System.Text.RegularExpressions; using System.Web; using System.Threading; namespace Mediachase.Commerce.Engine.Caching { public class CacheHelper { ...
5081d4ca8eb228241df9ffb06363bf812a1de44d
C#
CostyVoronianu/Obligatiune
/src/BondAnalytics/BondAnalytics/Calculations/ZeroRate.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BondAnalytics.Calculations { class ZeroRate { /// <summary> /// Implementing linear interpolation with 2 given points with the respective coordinates /// and ...
314290c7d4f338d6f46d04e53960360802c86d3f
C#
alexcpendleton/Pendletron.Tfs.FolderDiffGet
/Pendletron.Tfs.FolderDiffGet.Core/FolderDiffCmdParsing/OutputParser.cs
2.984375
3
using System; using System.Collections.Generic; namespace Pendletron.Tfs.FolderDiffGet.Core.FolderDiffCmdParsing { public class OutputParser { public OutputParser(string src, string target) { SourcePath = src; TargetPath = target; HeaderOutlineText = "====="...
a736b3b40af5c27974962947512b51b6053dee5c
C#
sidby/Sklad1
/SidBy.Sklad.DataAccess/Mappings/UsersMap.cs
2.5625
3
using SidBy.Sklad.Domain; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; namespace SidBy.Sklad.DataAccess.Mappings { public class UsersMap : EntityTypeConfiguration<UserProfile> { public UsersMap() { // Primary key this....
07724cebc9a5086643e0473e4d949173f1abca74
C#
LadaOndris/FIT_VUT
/IVS/proj2/src/GUICalculator/ViewModel/Expressions/Power.cs
2.640625
3
using GUICalculator.ViewModel.Expressions.Base; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Controls; namespace GUICalculator.ViewModel.Expressions { /// <summary> /...
bd2ca209b954c4cb2cc0506ca312ce9d37575980
C#
Ujinjinjin/dingo
/Src/Cliff/Extensions/ServiceProviderExtensions.cs
2.8125
3
using Microsoft.Extensions.DependencyInjection; using System; namespace Cliff.Extensions { /// <summary> Collection of extensions for <see cref="IServiceProvider"/></summary> public static class ServiceProviderExtensions { /// <summary> Invoke <see cref="CliController.Register"/> method for every controller in s...
61da6a1eb551ab9b2622cd7a49e37cf8f5521cda
C#
Discaulit/4INFO_SmallWorld
/CS_SmallWorld/UnitTestSmallWorld/UnitTest1.cs
2.71875
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using CS_SmallWorld; using wrapperLibSmallWorld; using System.Collections.Generic; namespace UnitTestSmallWorld { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethodPlateau() { int ta...
77ae95fb76e41a6dd3d76058b6f5f396de66f88e
C#
kdeng00/DotnetAndCPP
/Program.cs
2.90625
3
using System; using System.Runtime.InteropServices; namespace DotnetAndCPP { class Program { static void Main(string[] args) { var a = 54; var b = 23; var result = add(a, b); Console.WriteLine($"a: {a} + b: {b} = {result}"); } [DllImport("libTes...
96822bcd94b31d86369900a87d61fb70a604c1e6
C#
sweep3r/Myra
/src/Myra/Graphics2D/Text/TextLine.cs
2.734375
3
using Myra.Utility; using System; #if !XENKO using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; #else using Xenko.Core.Mathematics; using Xenko.Graphics; #endif namespace Myra.Graphics2D.Text { public class TextLine { protected string _text; protected readonly SpriteFont _spriteFont; prot...
6b43ad46313c111be9d5085c73e88b93c76e63b7
C#
rcody720/JohnForteLibraryBackEnd
/JohnForteLibrary.Domain/ValueObjects/PhoneNumber.cs
3.390625
3
using CSharpFunctionalExtensions; using System; using System.Collections.Generic; using System.Text; namespace JohnForteLibrary.Domain.ValueObjects { public class PhoneNumber : SimpleValueObject<string> { private PhoneNumber(string value) : base(value) { } public static Result<PhoneNumber> Cr...
2660b387f1f7e363b90c95be5f3f396c6cbad068
C#
ischool-desktop/ischedulePreprocess
/dylan/分割設定/frmAssignSplitSpec.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.Windows.Forms; using FISCA.Presentation.Controls; namespace Sunset.NewCourse { public partial class frmAssignSplitSpec : FISCA.Presentation.Contr...
a4fc453a824c549e42f4f5e7ab352ce50b7ebe30
C#
bubdm/StructLinq
/src/StructLinq.Benchmark/ToArrayOnArraySelect.cs
2.8125
3
using System.Linq; using BenchmarkDotNet.Attributes; namespace StructLinq.Benchmark { [DisassemblyDiagnoser(4), MemoryDiagnoser] public class ToArrayOnArraySelect { private const int Count = 10000; private readonly int[] array; public ToArrayOnArraySelect() { a...
285d07c830318a8ff53269b3dee07f1b04a20de1
C#
teodory/SoftUni-Homeworks
/[HomeworK] OOP CS/HomeworkEncapsulationAndPolymorphism/_03_GameEngine/Items/Injection.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _03_GameEngine.Items { class Injection : Bonus { //Injection – Bonus item with HealthEffect of 200 for 3 turns. //If a character's health points fall under 1 after the...
dcd4eb112ec40dc9a06a66e2244f42a10daade16
C#
isaac109/mainframe-tbs-engine
/CSharp/FeldmansGame/FeldmansGame/Core/GridSpace.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Mainframe.Core.Units; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; using Mainframe.Constants; using Mainframe.Animations; using Mainframe.Core.Combat; using Mainframe.Animations.Environment; ...
8af50b90040aa24e8510346479819e41b213079c
C#
mxprshn/NumMethods
/NumericMethods/NumAn/Objects/Matrix.cs
3.34375
3
using System; using System.Collections; using System.Collections.Generic; using System.Text; namespace NumAn { /// <summary> /// 2D matrix with real elements /// </summary> public class Matrix { private double[,] elements; /// <summary> /// Number of rows in the matrix ...
8d560ed4c086e8f31a6ee6b1a8bcba594bd2de67
C#
CrazyPandaLimited/assets-system
/Runtime/Manifests/AssetBundles/GameAssetType.cs
2.75
3
namespace CrazyPanda.UnityCore.AssetsSystem { /// <summary> /// Game asset type discryptor /// </summary> public class GameAssetType { /// <summary> /// Gets or sets the tag. /// </summary> /// <value> /// The tag. /// </value> public string T...
717002b2387f3adf3213dfba742f9935026e9061
C#
Kintaro/Art
/Art.Core/Interfaces/ISampler.cs
2.875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using Art.Core.Geometry; namespace Art.Core.Interfaces { /// <summary> /// /// </summary> public abstract class ISampler { /// <summary> /// /// </summary> publi...
5dd1a2671d2d9ac2fdabcae64e95220b5e25c21d
C#
SparkDevNetwork/Rock
/Rock/Financial/FinancialGivingAnalyticsFrequencyLabel.cs
2.578125
3
// <copyright> // Copyright by the Spark Development Network // // Licensed under the Rock Community License (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.rockrms.com/license // // Unless required by applicable law or ag...
10e391571ea265ccda4e630ae84a21e9b68c59f3
C#
iwhitmor/tic-tac-toe
/Lab04_TicTacToe/Lab04_TicTacToe/Program.cs
3.875
4
using System; using Lab04_TicTacToe.Classes; namespace Lab04_TicTacToe { class Program { static void Main(string[] args) { Board board = new Board(); StartGame(); } static void StartGame() { // TODO: Setup your game. Create a new me...
79037b0d3b497b11e69212b14c6622cac85a382a
C#
killingerr/Rosella
/4.12.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Assignment { class Invoice { static void Main(string[] args) { int quantity = 0; double price = 0; // Invoice class ob...
0588f241a340a60fbf12bb10adae9724885bad4f
C#
lostm1nd/TelerikAcademy
/10DataStructuresAndAlgorithms/HOMEWORK/10DynamicProgramming/Tribonnaci/Program.cs
3.796875
4
namespace Tribonnaci { using System; using System.Collections.Generic; class Program { static void Main() { string[] input = Console.ReadLine().Split(' '); int count = int.Parse(input[3]); LinkedList<decimal> tribonnaci = new LinkedList<decimal>(); ...
e9494a75c1e91fa2febd6e13799a627fd1d67347
C#
kaiclemente/ShopTest
/ShopBackEnd.Repository/Base/Repository.cs
3.03125
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace ShopBackEnd.Repository { public abstract class Repository<TEntity> : IRepository<TEntity> where TEntity : class { priva...
f3af6cbc0de379d1f557e2ed022773b2c307701d
C#
anasem007/QA-Automation-Lab-iTechArt
/ArraysAndCollections/ArraysAndCollections/Sorting/MergeSort.cs
3.734375
4
using System.Collections.Generic; using System.Linq; namespace ArraysAndCollections.Sorting { public static class MergeSort { public static int[] MSort(int[] array) { if (array.Length == 1) return array; var middleIndex = array.Length / 2; ...
f0834c42f311bde683b6c7375975d39727092ee8
C#
V-Uzunov/Soft-Uni-Education
/05.DatabasesAdvancedEntityFramework/05.EFRelation/02.Photographer/Data/DBSeed.cs
2.515625
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _02.Photographer.Data { class DBSeed { class DbInitializerPhotographerContext : DropCreateDatabaseAlways<PhotographerContext> { ...
b8e5684bffed33dae750ac8cd4f145d906616938
C#
bickeylam/ps-selenium
/MyTester.Test/Tests/NonBrowserBasedTest.cs
2.578125
3
namespace MyTester.Test.Tests { using System; using System.Diagnostics; using System.IO; using System.Reflection; using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; [TestClass] public class NonBrowserBasedTest { publi...
97adee36ed7371c12dfde97301f5ef9abaeb23c5
C#
xiaoningning/dotnet-algorithm-2020
/FindMaxLength/Program.cs
3.8125
4
using System; using System.Collections.Generic; namespace FindMaxLength { class Program { static void Main(string[] args) { Console.WriteLine("0/1 array: {0}", args[0]); int[] nums = Array.ConvertAll(args[0].Split(','), s => int.Parse(s)); ...
8db180346dab15af432100c26508bf5fbf204946
C#
jamesconsultingllc/AspectCentral.Abstractions
/AspectCentral.Abstractions/Configuration/AspectConfigurationEntry.cs
2.71875
3
// ---------------------------------------------------------------------------------------------------------------------- // <copyright file="AspectConfigurationEntry.cs" company="James Consulting LLC"> // Copyright (c) 2019 All Rights Reserved // </copyright> // <author>Rudy James</author> // <summary> // //...
185d6b108d101c548f084cf297b0287100f69dc5
C#
chefache/OOP
/Polymorphism/Exercise/Vehicles/Models/Truck.cs
3.140625
3
namespace Vehicles.Models { public class Truck : Vehicle { private const double aditionalFuelConsumption = 1.6; public Truck(double fuelQuantity, double fuelConsumption) : base(fuelQuantity, fuelConsumption) { // this.FuelConsumption += aditionalFuelCon...
b04f855cf4640a39967722c50020019aeaca7f71
C#
dlebansais/SolutionControls
/SolutionPresenter/Presenter/Events/DocumentSelected/DocumentSelectedEventArgs.cs
2.546875
3
namespace SolutionPresenter { using System.Collections.Generic; using System.Windows; using SolutionControls; /// <summary> /// Represents the event data for a document selected event. /// </summary> public class DocumentSelectedEventArgs : SolutionPresenterEventArgs<DocumentSelectedEventA...
576aea9c1e5881898ca3ba1d95c2e3cce618e2c7
C#
Redz111/CalculoM-diaAluno
/CalculoMédiaAluno/TelaEntradaDados.cs
2.75
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 CalculoMédiaAluno { public partial class TelaEntradaDados : Form { public Tela...
77197a59f68b24b9943d50dde17dbfda7c381c22
C#
lar3811/Echo
/Echo/src/InitializationStrategies/Initialize4x2D.cs
3.015625
3
using Echo.Abstract; using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace Echo.InitializationStrategies { /// <summary> /// Creates 4 waves (all aligned with either X or Y axis) at every provided location. /// ...
e91dd6a0d4f47ec949d6bf51b6fb8301af20f1d6
C#
nowen3/Backup2
/Backup 2/SyncFiles.cs
2.515625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Windows.Forms; namespace Backup_2 { public delegate void OnSyncLoggerEvent(string msg); public delegate void OnSyncListfilesEvent(string fname,string destname); class SyncFiles ...
42e89edca0493ea729a4f3f1fd5736b58bd4b1c0
C#
ebuna/Dice.API
/Controllers/DiceRollController.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System.Net; namespace Dice.API.Controllers { [ApiController] [Route("[controller]")] public class DiceRollController : ControllerBase ...
6b115b00509b5f92b6a475267305748a21ffdc99
C#
mikevh/Units
/Units.Data/UnitOfWork.cs
2.796875
3
using System; using System.Data.Entity; using Units.Data.Models; namespace Units.Data { public interface IUnitOfWork : IDisposable { IStudentRepository Students { get; } ICourseRepository Courses { get; } IGradeRepository Grades { get; } ITododRepository Todos { get; } ...
bb45a6fecb2993844ada3779c1508fb5153bb04a
C#
punio/PurchaseSample
/PurchaseSample/MainPage.xaml.cs
2.671875
3
using System; using System.Collections.ObjectModel; using System.Linq; using System.Threading.Tasks; using Windows.ApplicationModel; using Windows.ApplicationModel.Store; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace PurchaseSample { public sealed partial class MainPage : Page { public MainPage...
fbfa7ae2d32db42954cf26d562cc7255b3182718
C#
skinnydoo/RaceTrackSimulator
/Racetrack Simulator/Bet.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Racetrack_Simulator { public class Bet { public int Amount; // the amount of cash that was bet public int Dog; // the number of the dog the bet is on publi...
d7779258e807b62eb005e36c4ba4cd2daa318886
C#
correianet/dantas-framework
/Dantas.Support/MailUtil.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Text; using System.Threading.Tasks; namespace Dantas.Support { /// <summary> /// Help send email using system.net configuration /// </summary> public static class MailUtil { /// <summary>...
334bdc4af1dfa5518a1faeba840bb70871c98018
C#
rutkowskii/learn-xamarin
/learn-xamarin/learn_xamarin/Utils/AsyncOp.cs
3.03125
3
using System; using System.Threading.Tasks; namespace learn_xamarin.Utils { public static class AsyncOp { public static AsyncOp<T> Get<T>(Func<Task<T>> asyncOp, Action<T> onSuccess, Action<Exception> onFailure, Action onCancel) { return new AsyncOp<T>(asyncOp, onSuccess, on...
c886d707e31db9bacd4cafb55525f1a74551c78b
C#
jgreywolf/mark
/websitegen/Utils/HtmlGenerator.cs
2.84375
3
using Markdig; using Markdig.Renderers; using Markdig.Syntax; using Markdig.Syntax.Inlines; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace websitegen.Utils { class HtmlGenerator { private static rea...
0965dd15b5f70b1e05bc4b92e3cf8922ec252a98
C#
MySqlBackupNET/MySqlBackup.Net
/source code/MySqlBackup(MySql.Data)/Methods/CryptoExpress.cs
2.953125
3
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Security.Cryptography; namespace System.Security.Cryptography { public class CryptoExpress { public static string ConvertByteArrayToHexString(byte[] ba) { if (ba == null || ba.Length ==...
6e98c9f44243f4fe40c8068c37b27ac388833e36
C#
frostblooded/TelerikHomework
/C# Part 2/Arrays/PrimeNumbersToTenMillion/Program.cs
3.28125
3
using System; class Program { static void Main() { bool[] numbers = new bool[10000000]; for (int i = 2; i < numbers.Length; i++) { if (!numbers[i]) { Console.WriteLine(i); numbers[i] = true; int j = 2; ...
262474dedf22be21366da3dab0970b880a7dcc88
C#
tomicabo/work-order-and-invoicing-system
/ViewModels/NarocilniceViewModel.cs
2.6875
3
using MySql.Data.MySqlClient; using POSSavkovic.Models; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace POSSavkovic.ViewModels { class NarocilniceViewModel ...
ac76eabf1167df7bcf0c67f8c1a55652b894c2f8
C#
Lch3181/PickupSticks
/PickupSticks/Form1.cs
3.109375
3
using System; using System.Windows.Forms; namespace PickupSticks { public partial class Main : Form { //Game parameters int TotalNumberOfPlayers; int MaxNumberOfSticks; int PlayerPickupRange; //Game status bool GameHasStarted; int CurrentPlayerTurn; ...
ef61dd282fc4e4baebd341308e40c4f1b9131fa1
C#
Vasil-Kostov/Technology-Fundamentals---September-2018
/Arrays - Lab/08. Condense Array to Number/Program.cs
3.796875
4
namespace _08.Condense_Array_to_Number { using System; using System.Linq; class Program { static void Main() { int[] numbers = Console.ReadLine().Split().Select(int.Parse).ToArray(); while (numbers.Length > 1) { int[] conensed = new ...
ce646fc0fb8f80eaab608307709776ffe9c3cc6c
C#
superowner/Yzmeir.NamedPipes
/src/NamedPipesClient/Program.cs
3
3
using System; using System.Collections.Generic; using System.Text; using Yzmeir.InterProcessComm; using Yzmeir.NamedPipes; namespace NamedPipesClient { class Program { static void Main(string[] args) { string key = ""; while ((key = Console.ReadLine()) != "exit") ...
6341bab4d17b45d448b04751a8dd357a5c9e78a2
C#
JoseDuDev/ManyToMany
/ManyToMany/Repository/UnitOfWorkRepository.cs
2.6875
3
using ManyToMany.Data; using ManyToMany.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ManyToMany.Repository { public class UnitOfWorkRepository : IUnitOfWork { private readonly ManyToManyContext _context; private IPost _i...
2d5c8c1ccf138519df63d482e3b00282021b80be
C#
seyedmoeinsaadati/TMirrorT
/Assets/Packages/TMirrorT/Scripts/PointMirror.cs
2.515625
3
using UnityEngine; namespace SMSPackages.TMirrorT { public class PointMirror : Point, IMirror { [Header("Mirror Properties")] public float factor = 1f; [Tooltip("Lock axis with set 0 for locking axis. Use only 0 or 1 value for this feild.")] public Vector3 beAxis = Vector3.one;...
4b6e59933286a4542bed81b93231118b765ac0c6
C#
nikolay-spasov/TelerikAcademy_OOP_Homeworks
/OOP_HW_1_DefiningClasses/1_MobilePhone/GSMCallHistoryTest.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; public class GSMCallHistoryTest { private const decimal PRICE_PER_MINUTE = 0.37m; private static GSM gsm = new GSM("k700i", "Sony-Ericsson"); public static void Test() { Console.WriteLine("Testing Calls"); Console.Wri...
a95a53105f3b60e701bcc0437ca18c50979f732b
C#
jmslagle/twxp
/Source/TWX30/Library-old/Database/XmlBase.cs
2.59375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Xml; using System.Xml.Serialization; namespace TWXP.Database { public class XmlBase { protected string xsd = ""; public st...
20f167cfcbfa4c9e45d98d5d74e624580423b870
C#
michaela03/AverageGrade
/Form1.cs
2.8125
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.IO; namespace SREDEN_USPEH { public partial class Form1 : Form { public For...
cdfd7b0879bcc2e5d2966f55290fce443264f87f
C#
kate512/kurs_pt
/KindergardenV2/Classes/Reward.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KindergardenV2.Classes { enum who { Educator, Child } class Reward { public string Name;// { get; } public DateTime Data { get; } pu...
4b8d4337fe0d566cfb92a61d3da35f38200ae704
C#
namanmittal1/SmartShare
/SmartShare/Behaviours/LoadUnloadBehaviour.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace SmartShare { public static class LoadUnloadBehaviour { public static readonly DependencyProperty LoadUnloadProperty = DependencyPropert...
75ea88e5c374c099d9e90bb3320267c5315d2c99
C#
akmsprhns-edu/BakD-GomokuTrainer
/GomokuLib/GameState.cs
3.390625
3
using GomokuLib.Exceptions; using System; using System.Collections.Generic; using System.Linq; namespace GomokuLib { public class GameState : IEquatable<GameState> { private BoardState Board; public static int BoardSize { get => Consts.BOARD_SIZE; } public PlayerColor PlayerTurn { get ...
ea9e5b3a7cc1f143d59ec21855c21653df111a64
C#
jscstc007/MoTa
/Assets/Scripts/Test.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public struct SkillTreeData { public string Name; public SkillTreeData(string name) { Name = name; } public override string ToString() { return string.Format("SkillTreeData:{0}", Name); } } pu...
833d7744b44c03bb72c38afd2a6073b3aaa2b201
C#
almasry2011/DrinkStore
/DrinkStore/Data/Repositories/OrderRepo.cs
2.765625
3
using DrinkStore.Data.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Http; namespace DrinkStore.Data.Repositories { public class OrderRepo : IOrderRepo { private readonly DrinksDbC...
e70ef45da09d4afcc371ed78f22e8c112de45c00
C#
DianaKoba/FacebookApp
/FacebookApp/PlaceRecommendations.cs
2.515625
3
using System; using System.Text; using System.Windows.Forms; using System.Collections.Generic; using System.Linq; using System.Threading; using Facebook; using FacebookWrapper; using FacebookWrapper.ObjectModel; namespace A18_Ex03_Vladi_308921915_Diana_323643932 { public class PlaceRecommendations ...
24c961d6a31fdf6cd6022398fb143f14453189a9
C#
jesfisher/gitstudy
/SW插件-ZQ/ZQCODE/frmMaterialClass.cs
2.515625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace ZQCode { public partial class frmMaterialClass : Form { private MaterialService objMaterialService = new Mat...
633a153c7a47422479317e6bf99ff6fec5ffaf19
C#
Manasa987/contact-page
/BankApplication/BankApplication/BankApplication/Lowest.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BankApplication { class Lowest:IAction { public void DoAction() { Console.Clear(); Console.WriteLine("List of users having lower balances"); ...
95fc89dbe1f6cecef9e89996ab8fb3694e47408b
C#
sillyatom/ProjectMaze
/ProjectRogue/Assets/Scripts/Utility/MessageManager.cs
2.53125
3
using UnityEngine; using UnityEngine.UI; using System.Collections; using System.Collections.Generic; public class MessageVO { public float displayTime; public string message; public float scale; public bool showBlocker; public MessageVO(string message, float displayTime, float scale, bool showBlo...
5e8b7ed6000557e5e99c94b566bc32bfc36528d0
C#
JSystemsTech/DBFacade.Net
/DbFacadeShared/DataLayer/Models/Validators/Rules/ValidationRuleResult.cs
2.890625
3
using System.Threading.Tasks; namespace DbFacade.DataLayer.Models.Validators.Rules { /// <summary> /// /// </summary> public enum ValidationStatus { /// <summary> /// The pass /// </summary> PASS, /// <summary> /// The fail /// </summary> ...
aeb116dbb2778e34424d2781fef89dee3175a623
C#
DeveloperIlnaz/VirtualFitnessTrainer
/VirtualFitnessTrainer.MVC/Controllers/SerializableDataManager.cs
3.1875
3
using System.IO; using System.Collections.Generic; using System.Runtime.Serialization.Formatters.Binary; namespace VirtualFitnessTrainer.MVC.Controllers { /// <summary> /// Serializable менеджер данных. /// </summary> public class SerializableDataManager : IDataManager { #region Methods ...
13fc8436fff5e53c2b530d36389d2421c35ac60f
C#
nixelt/E-Shop
/E-Shop/E-Shop.Service/ProductFilters/ProductDeletedFilter.cs
2.5625
3
namespace E_Shop.Service.ProductFilters { using System.Collections.Generic; using System.Linq; using Model; public class ProductDeletedFilter : IProductFilter { private readonly bool _deleted; public ProductDeletedFilter(bool deleted) { _deleted = deleted; ...
c3dca94b010db056e4f179e22fb706d83a7a9282
C#
sean-m/mre
/Model/Condition/ConditionNotMatch.cs
2.640625
3
namespace Granfeldt { using Microsoft.MetadirectoryServices; using System.Text.RegularExpressions; public class ConditionNotMatch : ConditionBase { public string MVAttribute; public string Pattern; public override bool Met(MVEntry mventry, CSEntry csentry) { ...
c41289b1350b14647e60c194f080894a650fd683
C#
Bodzounet/XYZ
/Assets/Scripts/AI/EnemyHealthManager.cs
2.578125
3
using UnityEngine; using System.Collections; using System; public class EnemyHealthManager : HealthManager { public delegate void Die(); public event Die OnDie; public override void TakeDamages(int damages) { Life -= damages; } void Update() { if (Input.GetKeyDown(KeyCode...
647de3918399a6b8498eabae8295bb4a11f2ce0e
C#
anemeu/ble
/DemoXamarinBLE/DemoXamarinBLE/VistaModelo/VistaModeloBLE.cs
2.59375
3
using DemoXamarinBLE.Modelo; using Plugin.BLE; using Plugin.BLE.Abstractions.Contracts; using Plugin.BLE.Abstractions.EventArgs; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading; using Xamarin.Forms; nam...
1d2b01e2cb7469dd48278629afc3a9c654272f23
C#
shendongnian/download4
/code2/361660-59877740-213520077-2.cs
3.9375
4
static void Main(string[] args) { GetCombination(new List<int> { 1, 2, 3 }); } private static void GetCombination(List<int> list) { var bitwiseList = new List<int>(list.Count); for (int i = 0; i < list.Count; i++) { ...
92a22da3737e7694074bcc61f84201c690f1bbde
C#
DanielBMann9000/SpecFlow-Examples
/EulerPoker54/EulerPoker54.Tests.Unit/When_Creating_A_Poker_Card.cs
3.03125
3
using EulerPoker54.Core.Model; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace EulerPoker54.Tests.Unit { [TestClass] public class When_Creating_A_Poker_Card { [TestMethod] public void Can_Create_A_Poker_Card() { var card = new Card(Value.Ten, Suit.Hearts);...
c7b8a11ef638d381524013bffe67324b55a3d261
C#
nadya02/It-kariera
/02. Programming/4. Arrays and lists/Lists/SquareNumbers.cs
3.640625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SquareNumbers { class SquareNumbers { static void Main(string[] args) { List<int> nums = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); ...
ddee90b817ec12ea04e2c3ef436317373cf4ce38
C#
EmrullahKarakoc/cs_sakarya
/1.SINIF/2.Yarıyıl/Nesneye Dayalı Programlama/C# Örnekler/C#/NamespaceClass/NamespaceClass/Program.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NamespaceClass { class temel_sinif { protected void method1() { Console.WriteLine("ben temel sınıf methoduyum"); } } class tureyen_sinif:tem...
b216358010ad5c024337e6d804fece0e9ba4d662
C#
Yotsev/CSharpAdvanced
/01.StacksAndQueues/StacksAndQueuesLabExercise/12.CupsAndBottles/Program.cs
3.6875
4
using System; using System.Linq; using System.Collections.Generic; namespace _12.CupsAndBottles { class Program { static void Main(string[] args) { int[] cupCapacity = Console.ReadLine() .Split(" ", StringSplitOptions.RemoveEmptyEntries) .Select(int....
b37004f9a8371c6778f3b13136b33d0f43b5ce85
C#
damp-xx/Damp
/DampGUIv2/DampGUI/Models/EventSubscriber.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Xml; using CommunicationLibrary; namespace DampGUI { internal class EventSubscriber : IEventSubscribe { public static Dictionary<string, ChatView> ChatIdentyfier = new Dictionary<string, ChatView>(); ...