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
34d6d96881f22ece392fa8de0a1d632b0028109f
C#
s16061/APBDcw11
/APBDcw11/Services/SqlServerDoctorDbService.cs
2.53125
3
using APBDcw11.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace APBDcw11.Services { public class SqlServerDoctorDbService : IDoctorDbService { private readonly DoctorDbContext _context; public SqlServerDoctorDbService(DoctorDbCo...
b5d1ec753d6173108f8d91f161ec299dc3ccdb7f
C#
computer0316/windows
/三轮可选/WindowsFormsApp1/WindowsFormsApp1/Form1.cs
2.71875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Collections; using System.Drawing; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; namespace WindowsFormsApp1 { publ...
faf8f9d825528a564e84b68a5fdc3d6776859d11
C#
ashikns/Gru
/Importers/GLTFImporter.cs
2.5625
3
using Gru.Helpers; using Gru.Loaders; using Gru.MaterialMaps; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using UnityEngine; using GLTFExtension = Gru.GLTF.Schema.GLTFExtension; using GLTFRoot = Gru.GLTF.Schema.GLTFRoot; namespace Gru.Importers...
078135e26a08b7effe910efdb373853b69b45898
C#
g4idrijs/DIPS
/src/ViewModel/UserInterfaceVM/JobTracking/LoadedHandler.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DIPS.ViewModel.UserInterfaceVM.JobTracking { /// <summary> /// Represents an <see cref="IJobResultsHandler"/> loaded t...
40752746c5ffc1aad10b9ebba2307819ffe04830
C#
pitarlbq/shenghuacode
/platform/DataAccess/Generated.HolidayLog.cs
2.5625
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Diagnostics; using System.Web.Script.Serialization; using Foresight.DataAccess.Framework; namespace Foresight.DataAccess { /// <summary> //...
feaefe42eb859ce20a7c26e1253ecb07d5c762f6
C#
bizboz1981/TheObjectOfYourAffection
/Program.cs
2.921875
3
using System; namespace DatingProfile { class Program { static void Main(string[] args) { Profile sam = new Profile("Sam Drakkila", 30, "New York", "USA", "he/him"); string[] samsHobbies = new string[] {"hobbyx", "hobbyy", "hobbyz"}; sam.SetHobbies(samsHobbies); var test = sam.ViewP...
fb50d665c7cc96960ed21e84b8e8fb6e5b29b389
C#
AylesburyCollege/CO453_ConsoleApp
/CO453_ConsoleApp/Unit4/TestDistanceConverter.cs
3.515625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CO453_ConsoleApp.Unit4 { /// <summary> /// /// </summary> class TestDistanceConverter { private static double miles; private static double feet; p...
66d819fc285e0af9bf55f273170a5995ad936ff3
C#
v-bessonov/Algorithms-NET
/Algorithms.Core/Searching/LookupCSV.cs
3.421875
3
using System; namespace Algorithms.Core.Searching { /// <summary> /// The <tt>LookupCSV</tt> class provides a data-driven client for reading in a /// key-value pairs from a file; then, printing the values corresponding to the /// keys found on standard input. Both keys and values are strings. /// ...
ec26036c4af177647ef94e4f0e4fb0c274ffce4f
C#
DudaOleksandr/TG-GameBot
/TelegramBot/Commands/TestCommand.cs
2.65625
3
using System.Threading.Tasks; using Telegram.Bot; using Telegram.Bot.Types; namespace TelegramBot.Commands { public class TestCommand : Command { protected virtual string Name => "/hello"; public override async Task Execute(Message message, ITelegramBotClient client) { var...
c9c955415e6b2f8fcebcfb3a77a65f465122858f
C#
zomblzum/Geometry
/AreaCalculator/Calculators/AreaCalculator.cs
2.546875
3
using GeometryLibrary.Shapes; namespace GeometryLibrary.Calculators { /// <summary> /// Калькулятор площади фигур /// </summary> public class AreaCalculator: Calculator { public override double Calculate(Shape shape) { return shape.Area(); } } }
5e403e24a7438a570718edd7be453b4e9a6b94e6
C#
Hluzi/Address-book
/Ksiazka_telefoniczna/Ksiazka_telefoniczna/Person.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ksiazka_telefoniczna { public class Person { private int N; private int ID; private string first_name; private string last_name; ...
26d598206289ad4e52820da8e441fdc33f1e707a
C#
JZN-37/DotNet-Training
/Class.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class ArrayDemo { public void Trial() { int[] array1 = { 1, 2, 4, 6, 8, 9, 11, 14, 15 }; var a = from i in array1 w...
d51a30c77deffc1e8e08d6a6f48741a024734356
C#
lssxfy123/CSharp-study
/exception_test4/ExceptionTest.cs
3.3125
3
// Copyright 2016.刘珅珅 // author:刘珅珅 // 派生异常类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace exception_test4 { class ExceptionTest { class RangeArrayException : Exception { public RangeArrayException() : ...
2cdcf0ca31a71bc7c9df027b64e0a794d773a722
C#
SachinD2/DotNetCoreAssignment
/Delegate/Employee.cs
3.09375
3
using System; using System.Collections.Generic; using System.Text; namespace CSAssign { class Employee { public int empId { get; set; } public string empName { get; set; } public int deptno { get; set; } public string dname { get; set; } public int salary { get; set; } ...
649db074ed9eaa5d00418f5014ac0c05617a6930
C#
Vasil-Kostov/Technology-Fundamentals---September-2018
/Lists - More Exercise/04. Mixed up Lists/Program.cs
3.875
4
namespace _04._Mixed_up_Lists { using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { List<string> firstList = Console.ReadLine() .Split() .ToList...
bdbb6c4f2cd71b4d3c60df6a12bd01ab52ce45ea
C#
DotNetRussell/MotionDetector
/MotionDetector/MotionDetector/ViewModels/SoundSetupViewModel.cs
2.546875
3
using BasecodeLibrary.Utilities; using Models.MotionDetector; using MotionDetector.Utilities; using System.Collections.ObjectModel; using System.Windows.Input; namespace MotionDetector.ViewModels { public class SoundSetupViewModel : ViewModelBase { private string _selectedSound; pri...
23f714e4b859892a58e904c4c5102ae7f54c7bad
C#
elvisfelipedev/central-erro-api
/src/CentralErros.Business/Models/Validations/LogValidation.cs
2.609375
3
using FluentValidation; namespace CentralErros.Business.Models.Validations { public class LogValidation : AbstractValidator<Log> { public LogValidation() { RuleFor(l => l.Origem) .NotEmpty().WithMessage("O campo {PropertyName} precisa ser informado."); ...
70cfd01a366cc147f37c1f71e8a7447b26e34cad
C#
fduartej/prog1-20182-noche
/Worker.cs
3.015625
3
using System; namespace helloworld { class Worker : Employee{ public Worker(int id, string firstName, string lastName, int age, int tarifaHora) : base(id, firstName, lastName, age, tarifaHora) { } public override void CalcularSalario() ...
d3c79b02b4220e70aa29d772e58a040366164663
C#
Cbanks4667/Npuzzle
/CbanksAssignment3/Tile.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace CbanksAssignment3 { public class Tile : Button { private bool isEmptySpace = false; private int startingIndex = 0; private int destin...
2cb1b881b166ea4615add321812d997c1dad5f5c
C#
barskey/Dungeons
/Assets/Scripts/DungeonGenerator.cs
2.984375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; // SB:"Ported" from https://github.com/munificent/hauberk -> dungeon.dart /// The random dungeon generator. /// /// Starting with a stage of solid walls, it works like so: /// /// 1. Place a number of randomly sized an...
87caee93625250eb0f834309b1b698f5b139a634
C#
shakuu/Homework
/DSA/02Recursion/Recursion/02CombinationsDuplicates/CombinationsDuplicates.cs
3.609375
4
using System; using System.Linq; namespace _02CombinationsDuplicates { public class CombinationsDuplicates { public static void Main() { var loopsCount = int.Parse(Console.ReadLine()); var combinationLength = int.Parse(Console.ReadLine()); var numbers = Enu...
88b167ee699479870185878506cb3fc6873a94c8
C#
Vladislav-Shtefyrtsa/UnityGame
/Test/Assets/Scripts/Moving2D.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Moving2D : MonoBehaviour { public float speed; float halfWidth; Vector3 startPos,currentPos; public Transform leftMarigne, rightMargine; void Start() { halfWidth = Camera.main.aspect * Camer...
a16e95220ea28edd0c6630fd6256f66ef2a3c8e2
C#
betulaslan94/Did-you-mean-
/Did you mean/Did you mean/Class1.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Did_you_mean { class Class1 { } static class ExtensionMethods { public static string Soundex(this string exp) { string deger = String.Empty; ...
8e4dd1a8b3608dd47a038ea538a3b7b0fc3e608e
C#
mcjt/PdfPig
/src/UglyToad.PdfPig/Writer/PdfStreamWriter.cs
2.859375
3
namespace UglyToad.PdfPig.Writer { using System; using System.Collections.Generic; using System.IO; using Core; using Graphics.Operations; using Tokens; /// <summary> /// This class would lazily flush all token. Allowing us to make changes to references without need to rewrite the ...
649b4b0e8e1f41809a957a908a17a34da79b582e
C#
Sudipta2002/UEMK-CSE-RESOURCES
/Advanced Algorithms/PalindromeChecker/PalindromeChecker.cs
3.796875
4
using System; class PalindromeChecker { static void Main(string[] args) { Console.WriteLine("Enter a string (spaces will be removed):"); string rawInput = Console.ReadLine(); string input = rawInput.ToLowerInvariant().Replace(" ", string.Empty); int length = input.Length; int half = length / 2; bool is...
e7a1e76040b3c6fb1310539bfedcaf947db20896
C#
Crocodile7/CalculatorV2
/AirPort/AirPort/FlightPanel.cs
3.53125
4
using System.Collections.Generic; namespace AirPort { class FlightPanel { private List<FlightItem> _flights; public bool IsArrival { get; } //Property to indicate if the panel is the 'Arrivals' public bool IsIndexValid(int index) { return !((index >= C...
d8a6eb1678e3f24825cc925131d30acce56c5f0c
C#
Evilsmevil/PacBomb
/Assets/Scripts/GameManager/LayoutStrategy.cs
2.65625
3
using UnityEngine; using System.Collections.Generic; ///Layout strategies are ways that dictate how //to lay bombs public abstract class LayoutStrategy : MonoBehaviour { public HashSet<NewBomb> bombsInPlay; public OccupancyGridView occupancyGrid; public StrategyView strategyView; public virtual void OnBombDes...
6982ca0cce3556bf85a7160e7d5ea450a43a8f40
C#
yousuke-kobayashi/GoForwardUnityChan
/Assets/Scripts/UIController.cs
2.640625
3
using System.Collections; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; public class UIController : MonoBehaviour { GameObject gameOverText; GameObject runLengthText; float len = 0; //走った距離 float speed = 0.03f; //走る速度 bool isGameOver = false; //ゲームオーバーの判定 void ...
c06f067472990f6d2277968bc6468f9c7e66017c
C#
lukesUbuntu/c-sharp-monopoly-game-console-
/Game.cs
3.46875
3
using System; using System.Collections.Generic; using System.Text; namespace MolopolyGame { /// <summary> /// Implements the game interface /// </summary> public abstract class Game: GameInterface { private int playersCount; public abstract void initializeGame(); publ...
45c9815272e7218863c24c0f86fd139925866cde
C#
LucasGSLima1/Estudy
/switchcaseexemplos-master/ConsoleApp7/Program.cs
3.390625
3
using System; namespace ConsoleApp7 { class Program { static void Main(string[] args) { Console.WriteLine("Digite o exercício"); string exercicio = Console.ReadLine(); switch (exercicio) { case "1": Exercicio1...
551f4478b209134d1865a806d72edea1afb13c07
C#
valthern/ProbadorSubprocesos
/ProbadorSubprocesos/ImpresoraMensajes.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ProbadorSubprocesos { class ImpresoraMensajes { #region Campos Privados private int tiempoInactividad; private static Random aleatorio =...
abe0984cfc8567198adee264c1e0d08573239c56
C#
vegalin/Skin
/Client/Assets/Editor/PSD/Editor/Common/PsdRectExtension.cs
2.5625
3
using UnityEngine; using System.Collections; namespace Com.Lucky.PhotoShop { public static class PsdRectExtension { public static Rect Encapsulate(Rect r,Rect rect) { //Debug.Log("start: " + r); float xMin = Mathf.Min(r.xMin, rect.xMin); float xM...
654f29bbf339b97af3c7f77307b37e3f7b67254f
C#
jjg0519/MyBlog.NetCore
/MyBlog.Core/Commands/Admin/CheckPostsCommand.cs
2.796875
3
namespace MyBlog.Core.Commands.Admin { /// <summary> /// 检查博文命令 /// 若存在异常博文将清理 /// </summary> public class CheckPostsCommand { public CheckPostsCommand() { this.Take = 20; this.PageNum = 1; } /// <summary> /// 每页取得数量 /// <...
6f2a47fffc4e09d4763071c066560bfb0f8eacb6
C#
steffenhorlbeck/CSV-Remapper
/CSV-Remapper/common/ConfigurationObject.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSV_Remapper.common { using System.IO; using System.Windows.Forms; using System.Windows.Forms.VisualStyles; using System.Xml.Serialization; public class Confi...
20d3de7cef5a86c44aee5c180e83da7e2d5b6d3a
C#
schererja/DotNetTaskManager
/src/Manager.Services.InteractiveConsoleService.Logger/LogToInteractiveConsole.cs
2.59375
3
using System; using Manager.LIBS.Pipe; using Manager.Services.InteractiveConsoleService.DrawScreen; using NLog; using NLog.Config; using NLog.Targets; namespace Manager.Services.InteractiveConsoleService.Logger { /// <inheritdoc /> /// <summary> /// Class abstraction of Interactive CLI Logger for the ...
4eedd778a59b7232cd3f515e0c34fd686e7e476a
C#
shorti1996/SOlab
/SO04/SO03/Driver.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SO04 { class Driver { public static void CopyStream(List<int> x, out List<int> y) { y = new List<int>(); foreach (int req in x) { ...
9d8a765c9f3f6fd88fc92c63692276d667d857a6
C#
bnathyuw/Calliope
/Calliope.Gestalt.Tests/Given_an_empty_basket/When_various_items_are_added.cs
2.65625
3
using System.Collections.Generic; using System.Linq; using Calliope.Gestalt.Tests.Model; using Calliope.WebSupport; using NUnit.Framework; namespace Calliope.Gestalt.Tests.Given_an_empty_basket { [TestFixture] public class When_various_items_are_added { private const string ApplicationRoot = "http://l...
6903f3516a7d7a50ed06aeb7c89b4a269b61153f
C#
ZeshengC/SSRSReportDemo
/SSRSReportDemo/ReportSource.cs
2.578125
3
using Microsoft.SqlServer.Types; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SSRSReportDemo { public class ReportSource { public string ReportName { get; set; } public string CreatedBy { get; set; } publi...
8bf516ac880440924f3572ad74d9f627ffbc0ca3
C#
realm/realm-dotnet
/Realm/Realm/Native/Arena.cs
2.65625
3
//////////////////////////////////////////////////////////////////////////// // // Copyright 2023 Realm Inc. // // 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/li...
c837ae8f53a7254b6ff5471510ae97f16627eb6c
C#
shendongnian/download4
/code3/402871-8887525-20076764-2.cs
3.15625
3
var request = WebRequest.Create(...); ... using (var response = request.GetResponse()) using (var stream = response.GetStream()) { var doc = XDocument.Load(stream); if (int.TryParse(doc.Root.Value, out value)) { // the parsing was successful => you co...
e7915bb2134c04e0cdf9e32342b6a2e16a3e9c7f
C#
Gilbert-Azevedo/2020_POO
/Lista06/Exercicio19/Program.cs
3.578125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Exercicio19 { class Program { static void Main(string[] args) { // Nesse exemplo, é necessário uma repetição para o primeiro elemento for (int x...
e43f59612ac6a92d5865af9171bd604055d2b6de
C#
trippntechnology/tnt.sandbox
/DataGrid/DataGridForm.cs
2.84375
3
using System; using System.Windows.Forms; namespace DataGrid { public partial class DataGridForm : Form { public DataGridForm() { InitializeComponent(); } /// <summary> /// Sets the SelectedIndexChanged event on the ComboBox /// </summary> private void dataGridView1_EditingControlSh...
0f9379e9b2350292b463d2bad1c060e26fa31ee5
C#
hieule1997/QuanlySinhVienCSharp
/BUS/DangNhap_Bus.cs
2.953125
3
using DAL; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BUS { public class DangNhap_Bus { Data da = new Data(); // đếm xem có bao nhiêu tài khoản có chuỗi đưa vào public int Soacc(stri...
e17e95cfac39b435d244d0fa023ce033d722216d
C#
wufenglu/BusinessManageSystem
/Web/YK.Common/TxtFileHelper.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Web; namespace YK.Common { /// <summary> /// 文本处理类 /// </summary> public class TxtFileHelper { private static object lockobj = new object(); /// <summary> //...
8ccbb031f0d9145224aea18554611101747fdfc4
C#
xuanthulabnet/learn-cs-netcore
/CS006_Method/CS006.cs
3.78125
4
using System; namespace MyLib { public class CS006 { static public void XinChao() { Console.WriteLine("Xin chào C# \n"); } // Khai báo hàm có 2 tham số kiểu int, trả trà số kiểu in public static int SoLon(int num1, int num2) { int max = ...
f423ea59ff17f9edc0b097c7cb5d3a2095e8e64d
C#
markjulmar/mvvmhelpers
/MvvmHelpers.Portable/JulMar.Core/Concurrency/ReaderWriterLockSlimExtensions.cs
2.921875
3
using System; using System.Diagnostics; using System.Threading; namespace JulMar.Concurrency { /// <summary> /// A set of extensions applied over ReaderWriterLockSlim to ensure the /// lock is properly released through the use of delegates/anonymous methods. /// </summary> public static ...
c62e3fab4dbc579d24b8203fc2fd2b844c680879
C#
shendongnian/download4
/code9/1610368-55225139-193882931-2.cs
2.734375
3
public static class SyntaxHelpers { public static T GenerateClassNode<T>(string decl) where T : CSharpSyntaxNode { var declaration = SyntaxFactory.ParseCompilationUnit( " public class FSM { \r\n" + $"{decl}\r\n" + " }} \r\n"); ...
56ec58e2592a06b97d01944383579d2193c84bcc
C#
BigMach/Fonts
/src/UnicodeTrieGenerator/Generator.cs
2.625
3
// Copyright (c) Six Labors. // Licensed under the Apache License, Version 2.0. using System; using System.Globalization; using System.IO; using System.Linq; using System.Text.RegularExpressions; using SixLabors.Fonts.Unicode; namespace UnicodeTrieGenerator { /// <summary> /// Provides methods to generate Uni...
41400005890d31e92be1204d605c152f3d6091bc
C#
sayedsaad07/WPF-MVVM-Demo
/WPFMVVMv_NET4_5.Test/MainViewModelTest.cs
2.546875
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using WPFMVVMApplcation.ViewModel; using WPFMVVMApplcation.Model; namespace WPFMVVMApplcation.TEST { [TestClass] public class MainViewModelTest { private IModelView _mainViewModel; public MainViewModelTest() { ...
d08b4b1e7f691aebdf97560c7951e2b38d2215b6
C#
LuisBorromeo/basicDataStructureExamples
/ClassLibrary1/SimpleTests.cs
3.453125
3
using System; using System.CodeDom.Compiler; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using BinaryTreeLib; using NUnit.Framework; namespace Tests { /// <summary> /// typically used to explore the entire graph. /// BSF is o...
f3657f0dfc2f48e6ab9e009ab67f234621f6be75
C#
Nepherus/Tower
/Assets/Scripts/Spawner/Line.cs
3.109375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Line { public List<Vector3> NodesPosition => _nodesPosition; private int _length; private Vector3 _startPosition; private Vector3 _endPosition; private Vector3 _direction; private float _nodeSize; ...
88a6e60bce689360fd3576b4e69684667e3bcb47
C#
erindubuc/TDDpracticeCsharp
/BillPay/BillPay_Tests/HolidayService.cs
2.65625
3
using BillPaying; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BillPay_Tests { public class HolidayService : IHolidayService { public List<DateTime> listOfHolidays; public void AddHolidayToList(DateTime holidayDa...
4e84b4ae6f4173935902a89e25dd9841f133f70f
C#
Engin-Boot/vitals-simplification-cs-ajay300898
/checker.cs
3.34375
3
using System; using System.Collections.Generic; using System.Diagnostics; namespace VitalsSimplification { public abstract class Alert { public abstract void RaiseAlert(string alertMsg); } public class AlertInSMS : Alert { public override void RaiseAlert(string alertMsg) ...
3818294e134b6a61b5f797ecec707a11cb7e729d
C#
bharat1996gupta/Library-Management
/LibraryManagement/Book.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LibraryManagement { class Book : Media { public int PageCount { get; set; } public Book(string title, string mediaType, int serialNumber, int NumberOfTimes...
05fb6f703b65ef90df590846b07761f0e567b609
C#
dimOk00/ECommerce
/ECommerce.API.Products/Services/ProductService.cs
2.640625
3
using AutoMapper; using ECommerce.API.Products.DB; using ECommerce.API.Products.Interfaces; using ECommerce.API.Products.Models; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ECommerce...
90ff9cca19cc363c5b4bd46f6a22c8e9e2b9e0f2
C#
LuisAP/Artex
/Artex/Models/DAL/DAO/EmpresaDAO.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Artex.DB; using System.Data.Entity; namespace Artex.Models.DAL.DAO { public class EmpresaDAO { public List<empresa> GetAlls(ArtexConnection dbContext = null) { List<empresa> list = null; ...
bd268c4f4ca34943d18c851d0ae0c4a271ccc684
C#
Acii/CSharp-OOP
/MusicShapManager/Models/MusicShopBase.cs
3.125
3
using MusicShopManager.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MusicShop.Models { public class MusicShopBase : IMusicShop { private string name; private IList<IArticle> articles; ...
ebb4919f19c64a9a1fadc3a47657a3df4f41afb1
C#
edbrunton/ModelUN
/MUNApp/CompleteCommittee.cs
2.546875
3
using System; using System.Collections.Generic; // The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409 namespace MUNApp { public class CompleteCommittee { private List<Country> countryList; private List<CommitteeSession> committeeSession; ...
370869fa612c7ea3d86d225c8697dd66f95bb75b
C#
Arthuralk/Aerolitos
/Assets/Scripts/TextHiScores.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TextHiScores : MonoBehaviour { // Use this for initialization string decode(double _value) { //decode and return the three hide letters in the number if ((_value + "").Length < 6) { return "???"; } var val = _...
a728eedb6bc966baa958720f7447525de8e3ef76
C#
elton999/space_invaders_clone_3d
/UI.cs
2.546875
3
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace space_inveders_clone_3d { public class UI { public SpriteFont Font; private Effect SpriteEffect; public UI(GraphicsDevice graphics) { this.SpriteEffect = Game1....
c2f34579de6e26e248a2d72168502a96abe2462f
C#
brycezou/YbzRoadInfo
/RoadInfoTable/MainForm_BdmapRelated.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using MySql.Data.MySqlClient; namespace RoadInfoTable { partial class MainForm { //////////////////////////////////////////////////////////////////////////**********20141014 //加载并...
79dab7ecb3a72bcf8efef55a018fe4b481d0cca0
C#
ozgeyurt/GameProject
/GameProject/GamerValidationManager.cs
2.703125
3
using System; using System.Collections.Generic; using System.Text; namespace GameProject { class GamerValidationManager : IGamerValidationService { public void Validate(Gamer gamer) { if (gamer.IdentityNumber==1245967896 && gamer.FirstName== "ÖZGE" && gamer.LastName=="İNAN" && game...
4ce34e7ef9d7970826922e53ca2c24d284674149
C#
oliverbooth/X10D
/X10D.Tests/src/Drawing/PolyhedronTests.cs
2.671875
3
using System.Numerics; using NUnit.Framework; using X10D.Drawing; namespace X10D.Tests.Drawing; [TestFixture] public class PolyhedronTests { [Test] public void AddVertices_ShouldAddVertices() { var polyhedron = Polyhedron.Empty; polyhedron.AddVertices(new[] {new Vector3(1, 2, 3), new Vect...
7600cc3b13c808676c4bf83fe432533a02c32fe9
C#
han6man/Google_Translate
/Translator/Language.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MDH.Strings.Translation { /// <summary> /// /// </summary> public class Language { /// <summary> /// Google Language Code /// </summary> pu...
98b376cecd7501823213706dcd501c3cb65ca6f1
C#
GwenaelWest/ICT-404-GWT
/Machine à calculer/Machine à calculer/Form1.cs
2.78125
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 Machine_à_calculer { public partial class Form1 : Form { public Form1() ...
f06e46d95e3f9f6b8aac08daa22394519ac1842d
C#
Ers28203006/Practical_tasks_for_module_4
/Practical_Work_4/Program.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Practical_Work_4 { class Program { static void Main(string[] args) { double nominalBanknotes; int amountBanknotes; Console.Write("В...
9ac8dbf056754c00e9309e0507d127a02da598df
C#
MrHidee/basketball
/Assets/Scripts/LevelManager.cs
2.578125
3
 using UnityEngine; using System.Collections; using UnityEngine.UI; public class LevelManager : MonoBehaviour { public static LevelManager instance; public int scoreCount; public Text scoreText; public Text highText; public AudioSource scoreSound; public AudioSource gameMusic; ...
17d6dc8334257c0f2acedfbbdddbf39e3fd15358
C#
benjaminhate/RGB
/src/RGB Unity/Assets/Scripts/AudioScript.cs
2.53125
3
using UnityEngine; public class AudioScript : MonoBehaviour { private AudioSource _source; private static GameObject _instance; private void Awake() { _source = GetComponent<AudioSource>(); if(_instance != null && _instance != this) { Destroy(gameObject); ...
49d8daafdd9d99e5e15c30f2c154ac3db1937bbb
C#
charlescoufal/CIDMAssignments
/InClasss/Assignment3/Classes/create_student.cs
2.8125
3
using System; namespace Assignment3 { class Student { static void Main(string[] args) { using(var db = new AppDbContext()) { Student s = new Student() { FirstName = " ", LastName = " ", ...
9d0e2f6da2ed7bac42a600124ac8a8dae63d59ae
C#
Vladoffz/New-web
/FootballManager.Bl.Impl/TeamPlayerService.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FootballManager.Bl.Abstract; using FootballManager.Config; using FootballManager.DAL.Abstract; using FootballManager.Entities; using FootballManager.Models; using Microsoft.Extensions.Options; namespace FootballManager.Bl.Impl...
14af7feef32ea2ffeb1eec10bc83a2f398f0789f
C#
grossB/MasterAutomationFramework
/MasterAutomationFramework.Common/Extension/ReflectionExtensions.cs
3.421875
3
using MasterAutomationFramework.Common.ConfigLoader; using System; using System.Reflection; namespace MasterAutomationFramework.Common.Extension { public static class ReflectionExtensions { /// <summary> /// Determines whether the specified member has the specified attribute /// </summ...
d7c9614221ad5f32dccf0be5c8a9f9d9c6ad54e6
C#
shendongnian/download4
/code3/459014-22659081-61333310-2.cs
2.578125
3
public class A { protected internal int x; } public class B { public static A CreateClassA() { A x = new A(); x.x = 5; // hurray return x; } }
753d5aaea4e54c5d8153808084d1becd99691716
C#
switzer40/DismantleFilmDB
/Dismantle/Dismantle.Infrastructure/Repositories/PersonRepository.cs
2.703125
3
using Dismantle.Core.Entities; using Dismantle.Core.Interfaces.Repositories; using Dismantle.Core.Specifications; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Dismantle.Infrastructure.Repositories { public class PersonReposito...
54cb93726b6dde2fcec1f6a134155ddba417e3cc
C#
SrdjanPaunovic/NMMS
/Outsourcing Company/Client/ViewModel/TeamDialogViewModel.cs
2.515625
3
using Common; using Common.Entities; using ServiceContract; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; namespace Client.ViewModel { public class TeamDial...
52dfef7c8b9bb2b2d05660277e00034585ec89ea
C#
EssoFesso/Muck-Cheat
/Muck Cheat/Utils/PlayerUtils.cs
2.890625
3
using System.Collections.Generic; public class PlayerUtils { public static PlayerManager GetLocalPlayer() { foreach(KeyValuePair<int, PlayerManager> entry in GameManager.players) { if (entry.Value.id == LocalClient.instance.myId) return entry.Value; } return null; ...
75f61d4943566ee45a9d8fc01fe89de51821655f
C#
Divyansh123a/C-Sharp-Projects
/Program.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProgFundamentals4 //DO NOT CHANGE the name of namespace { public class Program //DO NOT CHANGE the name of class 'Program' { public static void Main...
a7d9a2c4d00364e0ea2a4f5ad68a9db96a762a95
C#
dentia/High-Quality-Code
/Teamwork/Labyrinth/Labyrinth-1/Program.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Labyrinth { enum Direction { Blank = -1, Left, Up, Right, Down }; class Message { public void invalid() { Console.WriteLine("* Invalid move!"); } pub...
f90041f270633b28532a404652a7ede3fc132579
C#
TheMatiaz0/BluePlayer
/BluePlayer/Settings.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BluePlayer { public class Settings { public double Volume { get; set; } public bool IsRandomized { get; set; } public bool IsLooped { get; set; } public Settings () { } publ...
5fe1cb64e12a1494911d988127f0d923786e34c8
C#
776221961/THREEJS-ECHART-ARGIS-DEMO
/WebForm1.aspx.cs
2.59375
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Sample1_1 { public partial class WebForm1 : System.Web.UI.Page { public int count = 0; public List<float> jd = new List<float...
a6697b115abf17e3844ef8af638149eae4eaeb3d
C#
josholadele/coreapp
/CBA.Data/TerminalConfigDAO.cs
2.671875
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using CBA.Core; namespace CBA.Data { public class TerminalConfigDAO:BaseDAO<TerminalConfig> { public TerminalConfig GetConfig(int ID) ...
afafca8490f2bf8227d4d0013af6de30fb14b81d
C#
AliFiratKardas/Cinema-App-with-NET-CORE
/Service/Concrete/BaseRepository.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DataAccess.Context; using DataAccess.Entity; using Microsoft.EntityFrameworkCore; using Service.Interface; namespace Service.Concrete { public class BaseRepository<T> : IRepository<T> where T ...
16ca6152a10cb5ee1c1a78c662c6aeb693433fc0
C#
KhaledSamir/LeetCodeGraphProblems
/LeetcodeProblems/261-GraphValidTree.cs
3.3125
3
 namespace GraphProblems { public class GraphValidTree { public bool ValidTree(int n, int[][] edges) { PathCompressionByRank uf = new PathCompressionByRank(n); int count = n; foreach (var edge in edges) { if (!uf.Connected(edge[0],...
e5af771f209db0bb774b59c66aca93b84a4868cc
C#
erikpaperik/AbstractFactory
/AbstractFactory/Implementations/Homebus/HomebusShutterActor.cs
2.984375
3
using System; using AbstractFactory.Base; namespace AbstractFactory.Implementations.Homebus { public class HomebusShutterActor : ShutterActor { public override void up(float value) { float convertedValue = ToHomebusValue(value); base.up(convertedValue); } ...
18d71979f70dc16f14a38b2e390ce7601ab35257
C#
TroydonAnabolic/TroydonFitness
/DockerVersion/TroydonFitnessWebsite/TroydonFitnessWebsite/Models/Products/ViewModels/SupplementVM.cs
2.546875
3
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace TroydonFitnessWebsite.Models.Products.ViewModels { public class SupplementVM { public int SupplementID { get; set; } // Foreign Key [Required] public int ProductID { get; set; } pu...
6941fb4f92cd8887cf59d1065b7ca4d5e155ecac
C#
jarek991992/WPFBasicClassLibrary
/BasicClassLibrary/Commands/DelegateAsyncCommand.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace BasicClassLibrary.Commands { public class DelegateAsyncCommand : AsyncCommandBase { /// <summary> /// Token to cancel async command. ///...
14056e905ca484417e2c2759f54f808a416f0728
C#
Jeschyk/EGUI-Lab2
/MainWindow.xaml.cs
2.578125
3
using System; using System.IO; using System.Data; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using...
0497a5d576e5317685b6985cc2f20a2973c41ddc
C#
ZaphireSA/old-unity-projects
/Survival-of-the-Hobo-Zombies/Assets/Scripts/Framework/GameData.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.IO; using System.Runtime.Serialization.Formatters.Binary; public class GameData : MonoBehaviour { public static GameData instance; public PlayerData playerData = new PlayerData(); public event System.Action<int> ...
33e33ca1fca2eba2c4978b7bcabffeb6bb834d41
C#
Gentlemanshaco/MedicalTrack2020-2021-TTAP
/MedicalOps/co2/Form_brancardiers.cs
2.59375
3
using System; using System.Text; using System.Threading; using System.Data; using System.Windows.Forms; using System.IO.Ports; namespace co2 { public partial class Form_brancardiers : Form { SerialPort my_serie; string baudrate = "9600"; public Form_brancardiers(...
c5f78af636d22a5fd31046f1808459e2c3319a36
C#
Eaglenait/projetDAD
/dechifr_client/Form1.cs
2.59375
3
using MySql.Data.MySqlClient; 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 dechifr_client { public partial class Form1 : Form { ...
479104b10fa77d105c140fd3160f87b53f1b55d8
C#
AlanWills/WindowsGame
/2DEngine/Screens/Menus/MenuScreen.cs
2.96875
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; using System; namespace _2DEngine { /// <summary> /// A fairly basic class that fixes the camera and sets up transitioning between menus. /// </summary> public class MenuScreen : BaseScreen { #region Properties and Fields ...
69de049e034af93f226888e89453a0b2c5477042
C#
15831944/HealthManagement
/0-TmoCommon/SyncDeviceEnums.cs
2.546875
3
 namespace TmoCommon { /// <summary> /// 设备状态 /// </summary> public enum SyncDeviceState { /// <summary> /// 默认值 状态未知 /// </summary> [Description("未知状态")] Unknown, /// <summary> /// 已经监测到设备 /// </summary> [Description("正在识别......
1a719cda0f19643aae04b1ed127c2b947339469c
C#
helgihaf/Alpha
/Library/Knightrunner.Library.Database.Schema/IndentedStreamWriter.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Knightrunner.Library.Database.Schema { public class IndentedStreamWriter : StreamWriter { int indent = 0; bool needsIndent = true; public IndentedStreamWriter(Stream stream...
4837beff2a997f5ad35b39b43551dcf1d513b047
C#
ManuelVassallo/Game_Engines_II_GEMMA
/Assets/Scripts/Spawner.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Spawner : MonoBehaviour { [SerializeField] private GameObject[] needs; //setting arrays for the needs and wants (sprites) private BoxCollider2D col; //collider object float x1, x2; //setting the far left and ...
d9b31ac680588efbb387d1e57d50bdcb433b8506
C#
eamachine/design-patterns
/BeverageMachine/BeverageMachine/Business/State/CleaningMachineState.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BeverageMachine.Business.State { public class CleaningMachineState : BeverageMachineState { BeverageMachine _beverageMachine; public CleaningMachineState(BeverageMachine beverageMachine) ...
0c99cea936c048ce6db8dec428407f22e2f5083f
C#
DefinitelyNotAShark/Tiny_Planet_Game
/Assets/Scripts/GameManager.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; //Tutorial for spawning random point //https://answers.unity.com/questions/475066/how-to-get-a-random-point-on-navmesh.html public class GameManager : MonoBehaviour { [HideInInspector] public int EnemiesOnScreen { get; private se...
7c3681ac9e6c3e5464f31239e7b94a4e5d80b317
C#
dplewis/ravendb
/test/SlowTests/MailingList/Wallace.cs
2.5625
3
// ----------------------------------------------------------------------- // <copyright file="Wallace.cs" company="Hibernating Rhinos LTD"> // Copyright (c) Hibernating Rhinos LTD. All rights reserved. // </copyright> // ----------------------------------------------------------------------- using System; usin...
4376c6ed0ee40b6dc19ec83948ffe0173fdcb66f
C#
mHarvey98/TBQuestGame
/TBQuestGame.S3/Models/Map.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.ObjectModel; // Allows the use of Observable Collection namespace WageSlave.Models { public class Map { // Fields private Location _currentLocation; ...
6e6e687fc9f348b41fb3dc6e13cfba40d5b0c60f
C#
joyzhq125/wxshop
/Chenduo.Bll/business/customer.cs
2.515625
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using Chenduo; namespace Chenduo.BLL { public class customer { private readonly DAL.customer dal = new DAL.customer(); //private readonly DAL.sf_user_info udal = new DAL.sf_user_info(); ...
0a34fed84a0c36706066d63643b697e99fe72d43
C#
jtlai0921/AEL013700
/範例程式 (1)/C#範例程式/Arrays/ArrayGetLength.aspx.cs
3.359375
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 ArrayGetLength : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Response.Write("<H2>計算陣列維度之長度</H2>"); //取...
665ce6bac31fe10f50421eb1d37aa0fc43885a5f
C#
tvecera/vsfs
/B_UPG/cviceni-8/priklad-8-3/Program.cs
3.078125
3
// Tento zdrojovy kod jsem vypracoval zcela samostatne bez cizi pomoci // Neokopiroval jsem ani neopsal jsem cizi zdrojove kody // Nikdo me pri vypracovani neradil // Pokud nektery radek porusuje toto pravidlo, je oznacen komentarem // NENI MOJE TVORBA // Poruseni techto pravidel se povazuje za podvod, ktery lze potre...