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
a924503502d324d6ee31c5202637754c155386b4
C#
SergeAlekseev/PUBGEXACT
/BotForm/BotForm/Program.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Forms; namespace BotForm { static class Program { /// <summary> /// Главная точка входа для приложения. /// </summary> [STAThread] static void Main(St...
1f5fa415cde53fa1f6e4ffdb9675fc99c8442a5f
C#
svalentinaxoxo/ASP.NET-4.5-in-C-project
/Pages/dbStoredProcedure.aspx.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Web.Configuration; namespace Project.Pages { public partial class dbStoredProcedure : System.Web.UI.Page { ...
6c27168132b9c63405c7ef05ddc86371be5d4ca8
C#
Washi1337/AsmResolver
/tools/AsmResolver.PE.Exports.OrdinalMapper/Program.cs
2.796875
3
using System; using System.IO; namespace AsmResolver.PE.Exports.OrdinalMapper { internal static class Program { private static void Main(string[] args) { if (args.Length == 0) { Console.WriteLine("Usage: AsmResolver.PE.Exports.OrdinalMapper.exe <path> [<...
0b9ed49f60c476aca7b97da85ea953feb35eafc5
C#
tonkatawe/SoftUni-Advanced
/OOP/Interfaces and Abstraction - Exercise/MilitaryElite/Models/SpecialisedSoldier.cs
2.859375
3
using System; using System.Collections.Generic; using System.Text; namespace MilitaryElite { public class SpecialisedSoldier : Private, ISpecialisedSoldier { private string typeCorps; public SpecialisedSoldier(string firstName, string lastName, int id, decimal salary, string typeCorps) ...
1a56be3977b7954030262d9360fef18eaf8b9b59
C#
rob2244/kudu-client-net
/src/Knet.Kudu.Client/Util/DecimalUtil.cs
2.640625
3
using System; using System.Runtime.InteropServices; namespace Knet.Kudu.Client.Util { public static class DecimalUtil { public const int MaxDecimal32Precision = 9; public const int MaxUnscaledDecimal32 = 999999999; public const int MinUnscaledDecimal32 = -MaxUnscaledDecimal32; p...
30c3d6dd35d8d7c0f0582cb61e1206d14ba59cf1
C#
bycEEE/CrabGame-Cheat
/CrabGame Cheat/JNNJMods Cheat Essentials/ClickGUI/Elements/ElementInfo.cs
2.765625
3
using JNNJMods.Utils; using UnityEngine; namespace JNNJMods.UI.Elements { public class ElementInfo { #region Variables /// <summary> /// Defines if this Element can be bound to a Key /// </summary> public bool KeyBindable; /// <summary> /// Current KeyB...
28cb86020c099767651bb03fbad8dfa8fd745b76
C#
flaviu1/juniormind
/List/List/List.Tests.cs
3.28125
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace List { [TestClass] public class UnitTest1 { [TestMethod] public void QuickSort() { var x = new List<int>(); int[] numbers= new int[] { 6, 2, 4, 9, 1, 7, 3, 5, 8 }; var...
9e762d10696e5d4347ddab2bd25a9b2b0ffd87f6
C#
frijey/DisciplineTracker
/QuickTicket/Utilitarios/Controles Personalizados/CheckBox/CheckBoxEstado.cs
2.53125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Discipline_Tracker { class CheckBoxEstado : CheckBox { //Propiedades del Control public bool Obligatorio { get; set; }...
aa702478c0a0fa90f42efaec5d7b1e18b053705c
C#
wi15b149/syk_boch
/TrainingsManagement/WorkoutServiceHost/ViewModel/MainViewModel.cs
2.515625
3
using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.CommandWpf; using ServiceProvider; using Shared; using System.Collections.ObjectModel; using System.ServiceModel; using TrainingsDataRepository; namespace WorkoutServiceHost.ViewModel { public class MainViewModel : ViewModelBase { private bool isSe...
dd44abbf87c0562a6242f768c8b8afd4c6a5369a
C#
mysheng8/Minor
/Assets/script/Game/Movement/FreeMovement.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public interface MovementInterface { void UpdateTransform(); Vector3 GetPosition(); Quaternion GetRotation(); Vector2 GetHeading(); } public class FreeMovement : MovementInterface { Vector2 m_Heading = Vector2.zero; ...
c6d61d8df447ff575eec12ad55729d40341bd4f1
C#
evad1n/TBoS
/Tile.cs
3.15625
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace The_Bond_of_Stone { /// <summary> /// A tile in the world. /// /// By Dom Liotti /// </summary> ...
f64280aa3789c5b41f484142600b1d91fec8bcdb
C#
antoinedelia/Minesweeper
/Minesweeper/Board.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Minesweeper { class Board { public int Row { get; set; } public int Col { get; set; } public int NumberOfBombs { get; set; } public Case[][] Cases { ge...
80f32700f7048cb9c2dd02550be666e59d3d69da
C#
uttamsingh1984/AzureAndRepositoryWithUnitOfWork
/AzureAndRepositoryWithUnitOfWork/Repository/EmployeeRepository.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using AzureAndRepositoryWithUnitOfWork.Repository.Entities; namespace AzureAndRepositoryWithUnitOfWork.Repository { public interface IEmployeeRepository : IRepository<Employee> { ...
b6d50deb1582b7845374864c2434cec4f357e117
C#
repinvv/RcsGen
/RcsGen/SyntaxTree/States/AtStates/AtState.cs
2.625
3
namespace RcsGen.SyntaxTree.States.AtStates { using System; using System.Collections.Generic; internal class AtState : IState { private readonly IState previous; private readonly AtActions actions; private readonly Dictionary<string, Action<string>> actionsDict; public...
6484bd9cbc499b3ad12bc62af6db5a83bb64b0fd
C#
CPLN/enigmos
/Enigmas/LettreHaute.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; namespace Cpln.Enigmos.Enigmas { public class LettreHaute : EnigmaPanel { public LettreH...
f4c2837c0a6590d04ab915ce1bfd44c266885da8
C#
AleksandarBorisov/TelerikAcademy
/C# Basics/6. Loops/21.IrreducableFraction/Program.cs
3.09375
3
using System; namespace _21.IrreducableFraction { class Program {//Задача от judge.telerikacademy static void Main() { string[] line = Console.ReadLine().Split(); int a = int.Parse(line[0]); int b = int.Parse(line[1]); int firstNumber = a; ...
2d4c584191f756e0adf02e7338c63b0df384f0b2
C#
1-800-Battery/BigCommerceSharp
/BigCommerceSharp/Model/RefundRequest1.cs
2.8125
3
using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.Text; using Newtonsoft.Json; namespace BigCommerceSharp.Model { /// <summary> /// Request body for refund requests /// </summary> [DataContract] public class RefundRequest1 { /// <summary> /// Order id a...
f9c10501064ff341f1f8c352f671debb191ea636
C#
Lite5h4dow/Raytracer
/Rendering/Primitives/Cube.cs
2.796875
3
using System; using Raytracer.MathTypes; using Raytracer.Rendering.Core; namespace Raytracer.Rendering.Primitives { class Cube : ObjectSpacePrimitive { private const double HalfWidth = 0.5; // plane distance for unit cube private const int AXIS_X = 0; private const int AXIS_Y = 1; ...
9dfe42e05e7debdc8d01c6a5283dfc83ace82e89
C#
michaelringholm/crypto-service
/dotnet.core/crypto-service/SimpleCrypto.cs
2.71875
3
using System; using System.IdentityModel.Tokens.Jwt; using crypto.symmetric; using crypto_service; using Microsoft.IdentityModel.Tokens; namespace com.opusmagus.encryption { public enum AlgorithmEnum { RSA256 } public class SimpleCrypto { private IJWTService JWTService {get;set;} private A...
3c9390fe2f567b63f74b0b8e553f6d86b0cf4d48
C#
LadissonLai/ModelsOfDesign
/004-观察者模式3-解耦订阅/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _004_观察者模式3_解耦订阅 { class Program { static void Main(string[] args) { NBAObserver tongshi1 = new NBAObserver("金城武"); NBAObserver tongshi2 = new N...
7410cd6b959c9937eb429eaad0e26bdc478620fb
C#
MarcinKonradCeglarek/Repetytorium-Tester2018
/ZEgzamin/PracticalExam/PracticalExam/Excercise2/Ex2.cs
2.953125
3
using System; using System.Collections.Generic; using System.IO; using Newtonsoft.Json; using NUnit.Framework; namespace PracticalExam { /* * Praktykant ze stanów zjednoczonych źle wyeksportował plik testwoy (AccountingData.json) * Daty w tym pliku są w złym formacie (amerykańskim a nie europejskim). Po...
8ea3fde61d941ee97e08d26245a89846c12443aa
C#
jinglikeblue/Zero
/Assets/Zero/Scripts/Utils/CryptoUtility.cs
3.28125
3
using System; using System.Collections.Generic; using System.IO; using System.Security.Cryptography; using System.Text; namespace Zero { /// <summary> /// 加解密工具类 /// </summary> public class CryptoUtility { /// <summary> /// 得到32位字符串的MD5值 /// </summary> /// <param na...
7d73b4e2bf94f8b7a60509a219601c94ed33a7de
C#
johnalx/Koyo.Geometry
/Koyo.Geometry.Tests/Geometry/PointTests.cs
2.703125
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using JA.Geometry; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace JA.Geometry.Tests { [TestClass()] public class PointTests { priv...
d14deb835ecdb2c9ca39ccf95f2e354f7cf83e32
C#
roblans/ZWave4Net
/Source/ZWave/CommandClasses/MeterReport.cs
2.8125
3
using System; using System.Linq; using System.Collections.Generic; using System.Threading.Tasks; using ZWave.Channel; using ZWave.Channel.Protocol; namespace ZWave.CommandClasses { public class MeterReport : NodeReport { public readonly MeterType Type; public readonly float Value; publ...
768242e43eda9a526bea327ca8a992c796afb8c0
C#
codeflood/chel
/tests/Chel.Abstractions.UnitTests/Parsing/CommandInputTests.cs
2.71875
3
using System; using Chel.Abstractions.Parsing; using Chel.Abstractions.Types; using Xunit; namespace Chel.Abstractions.UnitTests.Parsing { public class CommandInputTests { private readonly SourceLocation SourceLocation = new SourceLocation(2, 42); [Fact] public void Equals_ObjectIsNull...
dba61233d70c34fbd910a57e3999657c8aa30206
C#
JolitaArnau/SoftUni-ProgrammingFundamentals
/Lists/Pr05ArrayManipulator.cs
3.734375
4
namespace Pr05ArrayManipulator { using System; using System.Collections.Generic; using System.Linq; class Pr05ArrayManipulator { static void Main() { var sequence = Console .ReadLine() .Split() .Select(int.Parse) ...
ebb5d8a71c8e027d9b3538735da2aef5b715431e
C#
daxingyou/Game-1
/Assets/Script/UI/Item/ItemBase.cs
2.53125
3
using UnityEngine; namespace Game.UI { public abstract class ItemBase : MonoBehaviour { protected virtual void SetPosition(Vector3 position) { if (transform is RectTransform rect) { rect.anchoredPosition = position; } else ...
8c0e3033208d64c76078f275fd8fa332a5dc06a1
C#
Michalynn/cpsc1517-A03
/CSNet/WebApp/SamplePages/SqlQuery.aspx.cs
2.828125
3
using NorthwindSystem.BLL; using NorthwindSystem.Data; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApp.SamplePages { public partial class SqlQuery : System.Web.UI.Page { protected void Page_Load...
f0f8ddeb480061c044e509c8a29f6c998a9bdb67
C#
xvarukx/AppPineapple
/Pruebas/Program.cs
2.75
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Net.Mail; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Pruebas { class Program { static void Main(string[] args) { Thread.Sleep(1000); ...
d3d6a525c18cf238f52e9bb0d3238cc8cbedb235
C#
milesibastos/Sharp-Architecture
/Solutions/SharpArch.NHibernate/NHibernateConfigurationFileCache.cs
2.90625
3
namespace SharpArch.NHibernate { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using global::NHibernate.Cfg; using SharpArch.Domain; /// <summary> /// File cache implementation of INHibernateConfigurationCache. Saves...
7048f26539acb1b74a5e8a2dde72c92e3760e775
C#
creepylava/RotmgTool
/RotmgTool/Program.cs
2.671875
3
using System; using System.IO; using System.Windows.Forms; namespace RotmgTool { internal static class Program { [STAThread] private static void Main() { AppDomain.CurrentDomain.UnhandledException += (sender, e) => OnUnhandledException(e.ExceptionObject as Exception); Application.ThreadException += (sen...
7d965231051bc5ff3f02b2e113ff8dbbe6889fe0
C#
fchauvel/heat
/heat/Circuit.cs
3.109375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using YamlDotNet.RepresentationModel; namespace Heat { public class Circuit { public static Circuit fromYAML(TextReader input) { var document = read...
b3a7df904de4239481ba64205fa0bbbedb47de36
C#
Boyan81/Homeworks
/Programming Fundamentals/Objectsand Classes Exercises/04. Average Grades/Program.cs
3.859375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _04.Average_Grades { class Student { public string Name { get; set; } public List<double> Greyds { get; set; } public double Average { get { ...
daabf2c4d4979f66188bb7e7b947ba7133b245ab
C#
hristodobrev/Work
/01. Managing Program Flow/1.5. Thread Static Attribute/Program.cs
3.4375
3
using System; using System.Threading; class Program { [ThreadStatic] // All threads have their own local field public static int field; public static void Main() { new Thread(() => { for (int i = 0; i < 10; i++) { field += 2; Con...
0a9766767fddcbd06bc8796f3215a06b37541c9b
C#
esim7/someaplCQRS
/Domain.Models/SomeContext.cs
2.703125
3
using Domain.Models.Entities; using Microsoft.EntityFrameworkCore; namespace Domain.Models { public class SomeContext : DbContext { public DbSet<Student> Students { get; set; } public DbSet<Course> Courses { get; set; } public SomeContext(DbContextOptions<SomeContext> options) : base(o...
b28746470edb6381cc4dd22c60f6dec961d5bed8
C#
flagbug/AngleSharp
/src/AngleSharp/Extensions/ParentNodeExtensions.cs
2.96875
3
namespace AngleSharp.Extensions { using AngleSharp.Dom; using System.Diagnostics; /// <summary> /// Useful methods for parent node objects. /// </summary> [DebuggerStepThrough] static class ParentNodeExtensions { /// <summary> /// Runs the mutation macro as defined in 5...
88eb5667a5f38e25dd6dd8039727eb73d842e907
C#
untaljohanperez/TDD
/BizzBuzzer/FizzBuzzer.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FizzBuzzer.Library { public class FizzBuzzer { public static string getNumber(int input) { string respuesta = string.Empty; if (input % 3 == 0)...
88ea961be202625ff2d454f11784f9aa386b884e
C#
airien/Systemutviklerskolen_patterns
/Factory/C#/Logistics/Factory/LogisticsFactory.cs
3.15625
3
namespace Factory { public class LogisticsFactory { private static readonly RoadLogistics Road = new RoadLogistics(); private static readonly SeaLogistics Sea = new SeaLogistics(); private static readonly AirLogistics Air = new AirLogistics(); public static Transport CreateTran...
62295fcc43963230a813618740b70c253761f2bb
C#
trigrass2/DeviceInterface
/Memories/DeviceMemory.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using LabNation.DeviceInterface.Hardware; using LabNation.Common; namespace LabNation.DeviceInterface.Memories { #if DEBUG public #else internal #endif abstract class DeviceMemory { protected Dictiona...
f7fc3f8923de7e4cec6386e751942a643e4d5ae9
C#
Juveniel/TelerikAcademy
/CSharp/02. CSharp - Advanced/ExamPracticePartTwo/01. EveningExam2016/06. EvenDifferenced/EvenDifferenced.cs
3.90625
4
using System; namespace _06.EvenDifferenced { class EvenDifferenced { static void Main(string[] args) { string[] inputNumbers = Console.ReadLine().Split(' '); Console.WriteLine(FindAbsolutenUmbersSum(inputNumbers)); } static long FindAbsolutenUmbersSum...
f35be5df3a522f4f60a1e62365f5d0cee0ee6f79
C#
amrue/cinequest-wp8
/XMLTest/XMLTest/Class1.cs
2.75
3
using System; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.Collections; using System.Col...
f8a2c082f337ec30d2d09c76bf54de6dd04bc199
C#
uday89kumar/KnowYourUniversity
/FinalWebApplication/DateTime.ascx.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace FinalWebApplication { public partial class DateTimeUserControl : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) ...
f1dfe6c52d89c0e48d22d567a7a12dba09e1ecad
C#
mguzdial3/MineMLP
/Assets/EnvironmentLibrary/Environment/SubmarineGenerator.cs
2.71875
3
namespace Environment{ public class SubmarineGenerator { private Map map; private const int floorBlock = 0; private const int wallBlock1 = 2; private const int wallBlock2 = 2; private const int radioactive = 4; private const int radioactivity = 5; private int radioactiveRadius = 2; public SubmarineGenerator...
2421610cfc8253b4e8df84952e7f967ba721eac7
C#
best-fan/musicplayer
/Lrc/Program.cs
3.03125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Lrc { class Program { public static Dictionary<string, string> lrcDictionary = new Dictionary<string, string>(); ...
ee6d5d46d7bb82a770e828bd90cb036e9c3cd4b7
C#
yevhenii-sir/CSharp
/OOP/Methods_and_classes/Recursion/RevStrDemo/RevStr.cs
3.265625
3
using System; namespace BasicLearnCSharp { public class RevStr { public void DisplayRev(string str) { if (str.Length > 0) { DisplayRev(str.Substring(1, str.Length - 1)); } else return; Cons...
0defc4179ea936b66fb469eeff9b702b7811cc8b
C#
GameVeryBerry/Meet-escape
/Assets/PlayerMove/Script/PlayerState.cs
3.09375
3
using UnityEngine; using System.Collections; //キューブオブジェクトのステート namespace PlyerState { //ステートの実行を管理するクラス public class StateProcessor { //ステート本体 private PlyerState _State; public PlyerState State { set { _State = value; } get { return _...
7e8752c8f268c4e5ae61f293907aac945b99e2d7
C#
EzeScan/dust
/Wiki.Machinery/Http/Response.cs
2.8125
3
using System.IO; using System.Net; namespace Wiki.Machinery.Http { internal class Response { private readonly HttpWebResponse _inner; private readonly string _body; internal Response(HttpWebResponse inner) { _inner = inner; using (var rdr = new StreamR...
4385d3c39c12af13f3753ff78e33b4bb0edcb148
C#
hopefullamp/SR
/Assets/Script/TempoChanger.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TempoChanger : MonoBehaviour { public Record record; float speed = -800.0f; //how fast the object should rotate private bool switched = false; Vector3 rotation; void Update(){ if (Input.GetMouseButton(0)) { R...
9574f38e9c530a44f88e81a5c8e34789f099b74f
C#
kokosda/GzipStreamExtensions
/GzipStreamExtensions.GZipTest/Threads/ThreadState.cs
3.171875
3
using System; using System.Threading; namespace GzipStreamExtensions.GZipTest.Threads { public class ThreadState<T> { private volatile bool isBusy; public Thread Thread { get; private set; } public bool IsBusy { get { return isBusy; } private set { isBu...
7b543c26804108110da8b72436315faa56b00638
C#
Mattlekim/AdvancedWheelInput
/RiddlersoftLib/Core/Disk/FileFormat.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Runtime.Serialization; namespace Riddlersoft.Core.Disk { /// <summary> /// the file format that we will use to save the data /// </summary> [DataContract] ...
068235ad4cc9483aa4f270260deb562274a6ed5a
C#
arcnotch/Web_Application_CS_Course
/AppProject/Controllers/AccountController.cs
2.609375
3
using AppProject.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; namespace AppProject.Controllers { public class AccountController : Controller { //Session["UserID"] != null is a session check = user is logged in ...
91bf48f09e0514cef9384f3dccf23bec2e0bd370
C#
LauwiMeara/MeleeVsMagic
/MeleeVsMagic/Characters/Character.cs
3.046875
3
using MeleeVsMagic.Characters.Enums; using MeleeVsMagic.Characters.Interfaces; using MeleeVsMagic.Equipment.Armors; using MeleeVsMagic.Equipment.Weapons; using System; namespace MeleeVsMagic.Characters { public abstract class Character : IAttack, IDefend { protected const int DefaultLevel = 1; ...
b0f8feab016fbcea8c5e949d9fd5d587a2f81f59
C#
a-27m/TripServiceKata
/c#/TripServiceKata/TripServiceKata.Tests/TripServiceTest.cs
2.75
3
using System.Collections.Generic; using NSubstitute; using NUnit.Framework; using TripServiceKata.Model; namespace TripServiceKata.Tests { [TestFixture] public class TripServiceTest { private TripService _service; private ITripDAO _mockTripDao; private Trip _aTrip = new Trip(); ...
a5cc3d2c0fd5a4d037095d0fa7bb72ca437b491d
C#
Coudnet/edss-wifi-monitor
/Wi-Fi Monitor/Models/Network.cs
2.625
3
using NativeWifi; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace Wi_Fi_Monitor.Models { public class Network : INotifyPropertyChanged { private string prof...
604118429ac1b64a9878649de0d35c84206851c8
C#
arif-74/University-Management-System
/UniversityManagementSystemApp/UniversityManagementSystemApp/Gateway/DayGateway.cs
2.984375
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Web.Configuration; using UniversityManagementSystemApp.Models; namespace UniversityManagementSystemApp.Gateway { public class DayGateway { private string conString = WebConfig...
3591910e5724de6f050ec6d8b5a48fa905915f38
C#
PuautHS/Homework3Natthawat118
/Homework3(Natthawat118)/CC/CC/Form3.cs
2.578125
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 CC { public partial class Form3 : Form { public Form3() { InitializeCompo...
55f429b38aceadc1f2ce7d02697f331630c1903e
C#
EmilseBilse/TDDExercises
/SortedBagTest/BagTest.cs
3.140625
3
using SortedBag; using Xunit; namespace SortedBagTest { public class BagTest { [Theory] [InlineData(24)] [InlineData(10)] [InlineData(99)] public void AddTesting(int x) { //Arrange IBag b = new Bag(); //Act ...
edfcae9f10fc443314b20bf6fb6ce32c25f71794
C#
LapadatGabriel99/GabbetoApp
/Gabbeto.Word.Core/ViewModel/Chat/ChatList/Design/ChatListDesignModel.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Fasseto.Word.Core { /// <summary> /// The desing time data for a <see cref="ChatListViewModel"/> /// </summary> public class ChatListDesignModel : ChatListViewModel { ...
d2a8806e5093cc7f2b8b5e4846ac8a6195d1f5b4
C#
Zurek96/Csharp
/EloPointsCalculator/EloPointsCalculator/MainWindow.xaml.cs
2.8125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System...
3061d0784534728706f983c70863d104f18902c7
C#
JeremyJacobson/GameOfLifeConsole
/GameOfLifeConsole/GameOfLife.cs
3.015625
3
using System; using System.Collections.Generic; using System.IO; using System.Threading; namespace GameOfLifeConsole { public class GameOfLife { private static Thread gridLoop = new Thread(new ThreadStart(Tick)); private static Thread menu = new Thread(new ThreadStart(MenuControl)); pr...
9b701827790a80532b3b4f14854187916a4c5518
C#
shendongnian/download4
/code8/1361652-36806508-116414931-2.cs
2.546875
3
namespace DoubleForms { public partial class Form2 : Form { public event EventHandler Updated; // define an event handler public Form2() { InitializeComponent(); } private void button1_Click(object sen...
cb2edb6b5a62b755142cc67f23c74c22e619ad54
C#
zungybungy/Codility
/L7_Fish.cs
3.015625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; public class Solution { public static void Main(string[] args) { Console.WriteLine(solution(new[] { 4, 3, 2, 1, 5 }, new[] { 1, 0, 0, 0, 1 })); } public static int solution(int[...
2c9cee6a1dadb6facee2c0c1b982fde23c258a11
C#
antoniobentosela/TP3
/Bentosela.Antonio.2A.TP3/Clases Instanciables/Universidad.cs
2.8125
3
using Archivos; using Excepciones; using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace Clases_Instanciables { ...
927e422004dcd3a050d29151cec5b3e87908cd47
C#
alex-dev/TP2_AnimateurWPF_AP
/ViewModels/AnimatorsViewModel.cs
3.03125
3
using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Linq; using TP2_AnimateursWPF_AP.Models; namespace TP2_AnimateursWPF_AP.ViewModels { /// <summary>Vue modèle gérant un ensemble d'animateurs via <see cref="AnimatorViewModel"/>.</summary> public class AnimatorsVie...
711d3d5411ed4b32b8cab42d0ee943301001866a
C#
Horusiath/SocketAsyncEventArgsSample
/SocketAsyncClient/Program.cs
3.015625
3
using System; using System.Diagnostics; using System.Net; using System.Threading.Tasks; namespace SocketAsyncClient { static class Program { public static int _receivedMessageCount = 0; //for testing public static Stopwatch _watch; //for testing static void Main(string[] args) ...
b0f6aad66a5c84dc9f6b9503a169f74ac9ba3d14
C#
ThiagoMSArrais/Eventos
/src/TMSA.Eventos.Domain/Services/EventoService.cs
2.5625
3
using System; using System.Collections.Generic; using TMSA.Eventos.Domain.Eventos; using TMSA.Eventos.Domain.Eventos.Interfaces; using TMSA.Eventos.Domain.Interfaces.service; namespace TMSA.Eventos.Domain.Services { public class EventoService : IEventoService { private readonly IEventoRepository _eve...
764b872b6d2095b0b449ad02df513cd468787647
C#
kring/grisu.net
/ThirdParty/NUnit-2.5.10.11092/samples/csharp/money/Money.cs
3.109375
3
// **************************************************************** // This is free software licensed under the NUnit license. You // may obtain a copy of the license as well as information regarding // copyright ownership at http://nunit.org/?p=license&r=2.4. // ********************************************************...
3d725cdcb0ee8532f5d3c9fe5ccd450221fdaade
C#
Shuttle/Shuttle.Core.Data
/Shuttle.Core.Data/ActiveDatabaseContext.cs
2.640625
3
using System; using Shuttle.Core.Contract; namespace Shuttle.Core.Data { public class ActiveDatabaseContext : IDisposable { private readonly IDatabaseContextCache _databaseContextCache; private readonly IDatabaseContext _current; public ActiveDatabaseContext(IDatabaseContextCache data...
43a2ff7cd4d8c10925b781eb619d62587dfeda57
C#
NikolayFenichev/TestTaskFenichev
/TestTask.DAL/Repositories/UnitOfWork.cs
2.796875
3
using System; namespace TestTask.DAL.Repositories { public class UnitOfWork: IUnitOfWork { private RestaurantManagementContext _db; private ICityRepository _cityRepository; private IRestaurantRepository _restaurantRepository; private bool disposed = false; public ICit...
54f0316a90e806926fa3217b60e91420396e5049
C#
LCC-CIT/CS235AM-Demos
/RpsLayoutDemo/RpsDemo-LinearLayouts/MainActivity.cs
2.703125
3
using Android.App; using Android.Widget; using Android.OS; namespace RpsDemo { [Activity (Label = "Rock, Paper, Scissors", MainLauncher = true, Icon = "@drawable/icon")] public class MainActivity : Activity { GameLogic game = new GameLogic (); protected override void OnCreate (Bundle bundle) { base.OnCre...
c52bde82e280f7e13f3dbf0ac45f2a62cb8ce7c8
C#
hikso/evo-complete
/CodigoFuente/EVO-test/EVO-DataAccess/Entities/EFDetalleProduccionDiaria.cs
2.515625
3
using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace EVO_DataAccess.Entities { /// <summary> /// Autor : Andrés Holguín Osorio /// Fecha de creación : 25-Sep/2020 /// </summary> ...
f888a2afb2bdfad0a859edb4b6fd084e2a580d7d
C#
aviyagoldfarb/ImageService
/ImageService/Commands/LogCommand.cs
2.734375
3
using ImageService.Commands; using ImageService.Infrastructure.Enums; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections; using System.Collections.Generic; using System.Configuration; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; n...
d1308a71ee196c395a1ad8e0472f5224261f1685
C#
cbalakus/C-Includes-Organizer
/Edit 61850 Includes/Program.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Text.RegularExpressions; namespace Edit_61850_Includes { class Program { static void Main(string[] args) { string startPath = @"C:\Users...
41c60c8539ab1f5880bb58f913ed2b43901288a8
C#
davidbti/Babble
/Bti.Babble.Traffic/Parser/WkrnLineParser.cs
2.640625
3
using System; using Bti.Babble.Traffic; using Bti.Babble.Traffic.Model; namespace Bti.Babble.Traffic.Parser { class WkrnLineParser : ILineParser { private TimeSpanColumn Time = new TimeSpanColumn() {StartPos = 10, Length = 6}; private TimeSpanColumn Length = new TimeSpanColumn() {StartPos = 23...
66aba693e7f6fd8bf97d1ed5f32be50e78d8ae98
C#
bonifacechacha/C-Sharp-Training
/SoftNetTraining/Lecture4/LearningLINQ.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using SoftNetTraining.Banking; using SoftNetTraining.Payroll; namespace SoftNetTraining.Lecture4 { public class LearningLINQ { public static void Run() { //List<int> values = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8,...
0618666aa42ce265c0e6f0d91926d7dd1e766d08
C#
dosalod/flappywaow
/prov/prov/Character.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace prov { class Character { //deklarerar variabler int strenght; int spirit; int level; int mana; public List<string> SpellHistory = new List<s...
8d0cef1a9a04969c7ab97657097ae90339ac0be5
C#
shendongnian/download4
/first_version_download2/72959-4634682-9799517-5.cs
2.90625
3
[Serializable] private class Clipdata { public Image Image { get; set; } public string Name { get; set; } } private void CopyButton_Click(object sender, EventArgs e) { var data = new Clipdata { Image = pictureBox1.Image, Name = textBox1.Text }; ...
0b6854de6800abf822f47dcb0cae72e3370b076f
C#
Srujana-Jami/SingleLinkedList
/SingleLinkedList/Demo.cs
3.65625
4
using System; using System.Collections.Generic; using System.Security.Cryptography.X509Certificates; using System.Text; namespace SingleLinkedList { class Demo { static void Main(string[] args) { int choice,data,x; SingleLinkedList list = new SingleLinkedList(); ...
efbc94d36845fc76475d9ac099190bb25a62685f
C#
tothmesi/SurfaceMoisture
/SurfaceMoistureLib/Palettes/CategoryType.cs
2.53125
3
using System.ComponentModel; namespace SurfaceMoistureLib { public enum CategoryType { [Description("Nincs érték")] NoValue = 0, [Description("Száraz")] Dry = 1, [Description("Enyhén nedves")] SoftWet = 2, [Description("Nedves")] Wet =...
da1e82b0211d52e37448beb39f842bd95d453939
C#
gubenkoved/nr-tower-defense
/src/Common/NotFreezedMonsterSelectionStrategy.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NRTowerDefense { class NotFreezedMonsterSelectionStrategy : MonsterSelectionStrategy { public override Monster Select(List<Monster> monsters) { Monster result = null; double ...
ed25579a2d997e93cb441d8c1b9e1b9456c24dc9
C#
shendongnian/download4
/first_version_download2/460116-41029145-133352435-2.cs
2.875
3
using System.Configuration; namespace ConfigSectionSample { internal class MyConfigurationSection : ConfigurationSection { public static MyConfigurationSection Current { get { return (MyConfigurationSection)Configura...
26a592637df3ac4832a357ad1e69e8d0af501fa2
C#
vasildimov98/softuni-tutorials
/03.C#Advanced/02.OOP/00.Projects/12.Exams/RetakeExam19Dec2019/01. Structure_Skeleton/SantaWorkshop/Models/Workshops/Workshop.cs
2.734375
3
namespace SantaWorkshop.Models.Workshops { using System; using System.Linq; using Contracts; using Dwarfs.Contracts; using Presents.Contracts; public class Workshop : IWorkshop { public Workshop() { } public void Craft(IPresent present, IDwarf dwarf) ...
d4ed35832f6a265259c439bc0bfb532d00c8d210
C#
merkelbe/UnityGame
/Assets/Scripts/OutpostController.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class OutpostController : MonoBehaviour { // Outpost can be charged up by the player simply being there. // Charging rewards currently is building turrets at the four corners of the outpost. Afterward...
1f3fd53c69a3c831107faeef3e9a0cc641aa267f
C#
abcweizhuo/Test3
/Protocol/Arc.cs
2.734375
3
using System; using System.Globalization; namespace SysCAD.Protocol { /// <summary> /// Summary description for ArcTemplate. /// </summary> [Serializable] public class Arc : Element { public Double a; public Double h; public Double s; public Double w; public Double ...
9b3bd4f8052180c17e3a8e920a454bcde558ff08
C#
GregoryMiola/URSALGamesCO
/API/Controllers/GameResultController.cs
2.515625
3
using Domain.DTOs; using Domain.Interfaces; using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; namespace API.Controllers { /// <summary> /// Controller of game results /// </summary> [Route("~/api/gameResult")] [EnableCors("URSALGamesCO")] [ApiCo...
712eb2de4ef0eb1757714cd20d1a19d14ee6bc2f
C#
LogicAndTrick/thor
/thor/OpenTK/DisplayMode.cs
2.671875
3
#region --- License --- /* Licensed under the MIT/X11 license. * Copyright (c) 2006-2008 the OpenTK Team. * This notice may not be removed from any source distribution. * See license.txt for licensing detailed licensing details. */ #endregion #region --- Using directives --- using System; using System.Drawing; u...
4b137f1d91920381b637eea8591cf280cec5d863
C#
JonathanWelch/Debugging
/Breakpoints/OrdersPrinter.cs
3.265625
3
using System; namespace Breakpoints { public class OrdersPrinter { private readonly IOrders _orders; public OrdersPrinter(IOrders orders) { _orders = orders; } public void PrintAll() { var orders = _orders.GetOrders(); fore...
ac5f65f609e3dd1fecb2334db3b07b01651b2b6d
C#
jacobpolden/ddd-planner-exercise
/planner/UserService.cs
2.71875
3
using System; using Planner; namespace planner { public class UserService { private readonly UserDao userDao; public UserService(UserDao userDao) { this.userDao = userDao; } public void ChangeName(string userUsername, string firstName, string lastName) ...
679a48ab73ad6e9e8663eb537dce525a988c9a66
C#
stermic2/FizzBuzz
/FizzBuzz/CompressionExtensions.cs
3.296875
3
using System; using System.Collections.Generic; namespace FizzBuzz { public static class CompressionExtensions { public static string modThree { get; set; } = "Fizz"; public static string modFive { get; set; } = "Buzz"; public static ulong Shift4BitsThenAdd(this ref ulong input, char ch...
76c70dac85878452fa1219e353b0f00420bc9b7c
C#
sofijailic/RVAprojekat
/RVAprojekat/Client/Command/IzmeniPodatkeCommand.cs
2.625
3
using Client.ViewModel; using Common; using Common.Data; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace Client.Command { public class IzmeniPodatkeCommand : ClientCommand { public IzmeniPodatkeViewMod...
afec98475f168ad084bb9f7a69d1c6f6e77100d5
C#
Felgiks/RCS
/Day17_SampleSQL/Day17_SampleSQL/Connection.cs
3.140625
3
using System; using System.Collections.Generic; using System.Text; using MySql.Data.MySqlClient; namespace Day17_SampleSQL { class Connection { private MySqlConnection connection; private string server; private string database; private string uid; private string passwor...
5ee10f0872446c5c875d53d593db7d3c34fe09b1
C#
yilmazkorkmaz/NLogProjectTest
/Controllers/TodoItemsController.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using NLogProjectTest.Models; using Microsoft.Extensions.Logging; namespace NLogProjectTest.Controllers { [Route("api/[controller]")] ...
29e1990f3dbc163c0e11cd471258799b1446c24b
C#
dangdinhsi/CSharp
/sidang03121993/Baitap2/Program.cs
2.75
3
using System; namespace Baitap2 { class Program { static void Main(string[] args) { Console.Write("Nhap vao ten cua ban:"); string name = Console.ReadLine(); Console.Write("Ma SV:"); string mssv = Console.ReadLine(); Console.Write("Di...
d785f3f2504bbc93c829828d1cad193f0816a038
C#
cjyoung/keep-dns-in-sync-with-ip
/DNS_IP_Sync_Service.cs
2.609375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.ServiceProcess; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; na...
24ff1cbf173235025623951f60a93c92f44ccf59
C#
BluSoft/F1Optimizer
/project/f1optimizer/LapData.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace f1optimizer { class LapData { #region Fields public int LapNumber { get; set; } public double TyreWear { get; set; } public double LapTime { get; set;...
8acf733ac49507409cbc26f723063f6bde4a253d
C#
bojais/Adv_Project
/CollegeBusinessObjects/Student.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CollegeBusinessObjects { public class Student: Item { private string lastName; private string firstName; private string enrollmentDate; private string p...
ac3da8c77633546df778d82a991deb45b9238c23
C#
Respawnsive/shiny
/samples/Sample.Maui/Notifications/MyNotificationDelegate.cs
2.765625
3
using System; using System.Threading.Tasks; using Shiny; using Shiny.Notifications; namespace Sample.Notifications; public class MyNotificationDelegate : INotificationDelegate { readonly SampleSqliteConnection conn; readonly INotificationManager notifications; public MyNotificationDelegate(SampleSqlit...
ff26285e70d7dddbd404a6694ace9bded284ab59
C#
jquintus/spikes
/XamarinSpikes/ShoppingCart/ShoppingCart/ShoppingCart/Spike.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace ShoppingCart { class Spike { private void Foo() { ImageCell cell = new ImageCell { ImageSource = null, ...
d377c9b7a0687b4dd4a148302f98b6272e94c86b
C#
kgorecki/codewars
/6kyu/simple_fun_46:_cipher26.cs
3.71875
4
// Simple Fun #46: Cipher26 6th kyu kata namespace myjinxin { using System; public class Kata { private const string alpha = "abcdefghijklmnopqrstuvwxyz"; public string Cipher26(string message) { Console.WriteLine(message); int pos = 0; string result = String.Empty; ...
0cc554e4cd43ee9ff75c65d8d502942c48b90c40
C#
nmskm240/AdvSweeper
/Assets/Scripts/UI/Sliders/SliderParameter.cs
2.6875
3
using UnityEngine; using UnityEngine.UI; using TMPro; using DG.Tweening; namespace UI.Sliders { public class SliderParameter : MonoBehaviour { [SerializeField] private SliderParameterOptions _options = SliderParameterOptions.ValueNone; [SerializeField] private TextMeshProUGUI _t...