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
47e9a462286037de197762c37d6aa5903dfbfc86
C#
linsuk/csharp2
/10-4 uzduotis/Program.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _10_4_uzduotis { class Program { static void Main(string[] args) { int[] skaiciai1 = {-1, 5, 6, 15, 24, 32, 69}; int[] skaiciai2 = {5, 6, 9, 1, ...
a5fecd98d5708b1dc742b1007d3be7757d03989b
C#
benjamin-bader/ExpectBetter
/ExpectBetter/Extensions.cs
3.59375
4
using System; using System.Collections.Generic; using System.Linq; namespace ExpectBetter { internal static class Extensions { /// <summary> /// Cycle the specified collection. /// </summary> /// <description> /// Creates an infinite sequence of elements from a given col...
a28a144cda86db4c7ad7fce62b0f5b9378f27c34
C#
James-Frowen/led-strip-gui
/SerialDebug/Program.cs
2.625
3
using LedStrip; using LedStripGui; using System; using System.Text; using System.Threading; namespace SerialDebug { internal class Program { [STAThread] private static void Main(string[] args) { new Thread(() => new LEDStripForm().ShowDialog()).Start(); Serial....
1180ee53914835aa4b6f99ae733b9274d65db572
C#
solomka121/2DSpaceShooterGB
/2DSpaceShooter/Assets/Scripts/Weapons/Gun.cs
2.59375
3
using UnityEngine; using System; public class Gun : MonoBehaviour , IWeapon { [SerializeField] private Transform Barrel; [SerializeField] private GameObject bulletPrefab; [SerializeField] private float fireRate; private float _nextFireTime; private bool canFire; [SerializeField] private float...
d60cdd25db4669b6a8d624b9a6a4194e972852e2
C#
chenboyi081/AspxMVC_Test
/C062CallAPI/getdata.aspx.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace C062CallAPI { public partial class getdata : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) ...
414cab302af85d9305b951983e578f523a59b7ee
C#
mcBIGcz/GpsParser
/GpsParser.cs
3.234375
3
using System; using System.Linq; using System.Xml; namespace Bakalarka { static class GpsParser { public static bool TryParseCoord(String coord, out double value) { string[] separator = new string[] { " " }; string decimalPoint = coord.Replace(',', '.'); Stri...
2308d77ba51e5d8f2f3b9ad09900221801818691
C#
HypahCode/Blueprint
/BlueprintFlow/Nodes/NodeBase.cs
2.625
3
using System.Collections.Generic; using System.Drawing; using System.Reflection; using BlueprintAddon; using TrigonometryLib.Primitives; namespace BlueprintFlow.Nodes { public class NodeBase : Primitive2D, ICustomDrawable, ICustomSelectable, ILinkable { private class NodeIOWrapper { ...
a607a43ab49203f6bb5234d215f08451458b4231
C#
ErikDAmundsen/C-sharp-projects
/Naming/Naming/Program.cs
3.734375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Naming { class Program { public static void Main(string[] args) { Persons persons = new Persons(); Employee employee = new Employee(); ...
3ef488d5535567b528b2410c79aca68f1789193b
C#
VinSonn64/Feeding_Frenzy
/Assets/Scripts/FishAttack.cs
2.890625
3
using UnityEngine; using System.Collections; public class FishAttack : HealthManager { public GameObject LeftEye; public GameObject RightEye; NavMeshAgent agent; //Give pathfinding mentality to Fish public float num = 10; //Initiates the fish with a number that won't immediately toogle the fish...
473f141163ab19ac4602d85dd6866d4de8c90725
C#
BaladaRock/JSON-OOP
/JSONClasses_Tests/RangeFacts.cs
2.875
3
using JSONClasses; using Xunit; namespace JSONClasses_Tests { public class RangeFacts { [Fact] public void CheckWord_One_Character() { var range = new Range('a', 'e'); var match = range.Match("a"); Assert.True(match.Success()); Assert.Equa...
81d6439f909fa41aa87126bc2a219976624b03a1
C#
Sidneys1/BattleBits
/Core/CircularStream.cs
3.03125
3
using System; using System.IO; namespace Core { public class CircularStream : Stream { private readonly Stream _innerStream; public CircularStream(Stream stream) { _innerStream = stream; } public override int Read(Span<byte> buffer) { int to...
b1399a7cc0fac2b4058563c35e595a280b80fc9e
C#
weedkiller/PV247-Expense-Manager
/PV247/ExpenseManager.Database/Infrastructure/UnitOfWork/ExpenseManagerUnitOfWork.cs
2.8125
3
using System; using System.Data.Entity; using System.Diagnostics; using Riganti.Utils.Infrastructure.Core; namespace ExpenseManager.Database.Infrastructure.UnitOfWork { /// <summary> /// An implementation of unit of work in Entity ramework. /// </summary> public class ExpenseManagerUnitOfWork : UnitOfW...
2bade26c577854091589324a1e6ac5a73a84020b
C#
shendongnian/download4
/code9/1701044-48869044-167220415-1.cs
3.140625
3
Sometimes there is a need to insert, update and delete records in a GridView using a single Stored Procedure instead of creating separate Stored Procedures for each operation. Suppose I have one .aspx web page in which I need a to insert, view, update and delete records. To do that, instead of creating fou...
05518089bbdfc698b1ce669f2d2250e989bd62ca
C#
tobbe880/JollyAndRogersRiverRide
/Assets/Code/BoatRelated/PickUpTrigger.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class PickUpTrigger : MonoBehaviour { public delegate void OnPickUpGold(int value); public OnPickUpGold onPickUpGold; public delegate void OnPickUpBucket(int value); public OnPickUpBucket o...
17b14bdae5d387a8bcb2f9f2686f3efb911f48c9
C#
KoMaTo3/csgl
/csgl/Material.cs
2.53125
3
using System; using System.Collections.Generic; using OpenTK.Graphics.OpenGL; /* * material = shader + textures //? + attributes */ namespace csgl { public class Material: IDisposable, IResourceEntity { public Resource resource; private bool _isValid; private string _name; private ShaderProgram _s...
69f95f7c4fd884c2b0a9aaaa138a3216596938b4
C#
vknez95/NullReferencesDemo
/Domain/Implementation/Accounts/AccountType.cs
2.890625
3
using NullReferencesDemo.Domain.Interfaces; namespace NullReferencesDemo.Domain.Implementation.Accounts { public class AccountType : IAccountType { private readonly int id; private readonly string accountName; private readonly string description; public AccountType(i...
8d8b938f7c3e42e1751a81ed4565faec4c9f4188
C#
patrick85081/CodewarsUnitTest
/CodewarsUnitTest/DecodeTheMorseCodeAadvanced/MorseCodeDecoder.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CodewarsUnitTest.DecodeTheMorseCodeAadvanced { internal partial class MorseCodeDecoder { // JAVA 解法 //https://github.com/dkrybachuk/quark-attack/blob/master/codewars/ja...
8abd5b1b6eeb8141d667c79f2265448f2dcb1526
C#
tpeplow/Projector
/src/Projector/Reflection/ReflectionExtentions.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; namespace Projector.Reflection { public static class ReflectionExtentions { public static IEnumerable<TReturn> CreateInstancesOfNestedTypes<TReturn>(this Type instance) { return instance.GetNestedTypes() ...
a69b5ebcd754268ecf6ed43b4856bf5efbe12dbd
C#
Zhantai-Nuradinovich/TrelloAutomation.API
/TrelloAutomation.API/TrelloAutomation.API.Services/AuxTrelloServices/Card/CardService.cs
2.515625
3
using Manatee.Trello; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TrelloAutomation.API.Services.AuxTrelloServices.Card.CardContract; using TrelloAutomation.API.Services.AuxTrelloServices.Card.CardStrategy; using TrelloAutomation.API.Services...
3440a71d9459e389a4722704edce9e9e79a47e2c
C#
BlueForeverI/VirtualClassroom.TeacherClient
/VirtualClassroom.TeacherClient/Windows/AddLessonWindow.xaml.cs
2.609375
3
using System; using System.IO; using System.Linq; using System.Windows; using Microsoft.Win32; using VirtualClassroom.TeacherClient.TeacherServiceReference; namespace VirtualClassroom.TeacherClient { /// <summary> /// Interaction logic for AddLessonWindow.xaml /// </summary> public partial...
5cb0b36daf0e2978c29a2b2c4ab509b7fce2f0ad
C#
ser163/Hodor
/Hodor.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; using System.IO; using System.Windows.Forms; namespace Hodor { class Hodoor { private Process exep = new(); private readonly string DavFile = @"webDav_...
27fa32fae042e1c913f1bac430348076b8140e92
C#
migrenaa/WordChainGame
/WordChainGame.Services/Services/Topics/TopicService.cs
2.640625
3
namespace WordChainGame.Services.Services { using AutoMapper; using System; using System.Collections.Generic; using System.Linq; using WordChainGame.Common.CustomExceptions; using WordChainGame.Data.Entities; using WordChainGame.DTO.Topic; using WordChainGame.DTO.Word; using WordCha...
fa6de83f9046642e2ec93431bfe1136ed62c5ba0
C#
grodg/OwlMemberCommunity
/OwlMemberList.cs
3.015625
3
///*Gavin Rodgers // * 3309 Owl Member Community project IV // * This is the OwlMemberList class that initializes the owl member list and can edit the list // * Last Edited: 12/11/18 // */ //using System; //using System.Collections.Generic; //using System.Linq; //using System.Text; //using System.Threading.Ta...
3d3176caa49e295d7780b1f75acb912c60081608
C#
MariaDinova/Programming-Fundamentals-C-
/Conditional Statements And Loops - Exercises/08.CaloriesCounter.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _08.CaloriesCounter { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); var sum = 0; ...
f29b3c7f0f7a82c6d3c786f0f392fb57fa3ea0bc
C#
kbochenina/Kraken
/Executor/Scheduler/SchedulerCommon/Resource.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Common; using System.Runtime.Serialization; namespace Common { [DataContract] public class Resource { public Resource() { Parameters = new Dictionary<string, string>(); } ...
0baf657f2fb6c34fa5443c9ae052fbca20636bfa
C#
OzlFX/HexBasedRTS
/Assets/Scripts/Units/Ship/Movement.cs
2.71875
3
using UnityEngine; public class Movement : MonoBehaviour { RaycastHit m_Hit; // Update is called once per frame void Update() { if (Input.GetMouseButtonDown(1)) { Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); //Get the mouse position from a ray i...
fcaba8205c2e095844aabf614c354ce835d43ace
C#
desarrollocorrales/Activos_v2.0_20Dic2016
/Activos/Datos/ReparacionesDatos.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Activos.Modelos; using System.Configuration; using MySql.Data.MySqlClient; namespace Activos.Datos { public class ReparacionesDatos : IReparacionesDatos { // Variable que almacena el estado de la conexión a la ...
dc8457117619770bfd51552254906c302f327f07
C#
Ekaterina1982/Cows
/UnitTestProject1/UnitTest1.cs
2.734375
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using ConsoleApplication10; namespace UnitTestProject1 { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { int n = 1; string actual = Program.CowConter(n); ...
4fd458c4444ebf6d5a5c9302e5d14b682eb2f6b8
C#
RolandMQuiros/Masque
/Assets/Masque/Scripts/Combat/CameraSpinner.cs
2.609375
3
using UnityEngine; using System.Collections; /// <summary> /// Constrains the camera object to a circular track around an axis /// </summary> [RequireComponent(typeof(Camera))] public class CameraSpinner : MonoBehaviour { [Tooltip("Target transform")] public Vector3 Target; [Tooltip("Radius of the circula...
3f76fc211b8db9cb29e23126c7bacffd52280aa9
C#
smartersolutionRepo/ComplexModel
/ComplexModelData/BaseRepository.cs
2.828125
3
namespace ComplexModelData { using ComplexModelCore.Interfaces.Repositories; using ComplexModelCore.Model; using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; /// <summary> /// An abstract baseclass handling basic CR...
79df8ee9fd6d9cf946fef8b5043207bc2a1f0dbc
C#
AlexWeinter/AutoTest
/AutoTest/Form1.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.Threading.Tasks; using System.Windows.Forms; using OpenQA.Selenium; namespace AutoTest { public partial class Form1 : Form { IWebDriv...
c8b7310157283aeabaeacf1c579a7f54328a1be4
C#
truestarecat/MlpPredictorCuda
/MlpPredictorCuda/MlpPredictor/ZedGraphExtensions.cs
2.78125
3
using System; using System.Drawing; using ZedGraph; namespace MlpPredictor { public static class ZedGraphExtensions { public static void ClearGraph(this ZedGraphControl graph) { graph.GraphPane.CurveList.Clear(); graph.Invalidate(); } public static void...
78830f3f2995a5962db42263b274f193baf901ab
C#
albertJkt/PriceCompEngine
/PriceCompEngn/AndroidLogic/UserLocation.cs
2.671875
3
using System; using Plugin.Geolocator; using Plugin.Geolocator.Abstractions; using System.Threading.Tasks; namespace AndroidLogic { public class UserLocation { public double Lat { set; get; } public double Longt { set; get; } public IGeolocator locator; public Position locatio...
64e75823540a27059251c23c576fb3ffd918af79
C#
akritikos/Splicer
/src/Expressions.Splicer/Splicer.cs
2.515625
3
namespace Nessos.Expressions.Splicer { using System.Linq; using System.Linq.Expressions; public class Splicer : ExpressionVisitor { protected override Expression VisitMethodCall(MethodCallExpression node) { var (name, method, args) = node; if (name == "Invoke" && method is LambdaExpression lambda) { ...
310a94c9467cc15afdc1d5c45123e6926a870331
C#
ciphernetic/CrawlTools
/Scraper/Win.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Crawl.Scraper { public class Win { public int Score { get; set; } public string Character { get; set; } public int Turns { get; set; } public TimeSpan Duration { get; set; } public...
3a36c8c12ccb67c05c1ae5135ec181b23e15bcc4
C#
prasannapattam/Algorithms
/Algorithms/Timus/TurnMega_1787.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Algorithms.Timus { //http://acm.timus.ru/problem.aspx?space=1&num=1787 //Finding incoming and outgoing (queue) and calculating existing items public static class TurnMega_1787 ...
2ad753c61a13e5f225ddca27a8b9827b8003d5b3
C#
shendongnian/download4
/first_version_download2/548822-51803461-179576252-2.cs
2.59375
3
[Fact] public void MyServiceMethod_Should_ChangeProp_Before_Persists() { var repository = Substitute.For<IMyRepository>(); var service = new MyService(repository); var myEntity = new MyEntity(); var namePersisted = string.Empty; reposit...
d232cd4b93d54265455f39bea5d5676c5860e348
C#
enchev-93/Telerik-Academy
/02.C Sharp part 2/08.TextFiles/ConcatenateTextFiles/ConcatenateTextFiles.cs
3.78125
4
//Problem 2. Concatenate text files //Write a program that concatenates two text files into another text file. using System; using System.IO; class ConcatenateTextFiles { static void Main() { using (StreamWriter writer = new StreamWriter(@"..\..\concatenated_files.txt", false)) { ...
e4d6b7b632d28657beedb3b4eaeabe267cf118b2
C#
JeffreyMFarley/Bailiwick
/Bailiwick/UI/PhraseNetworkViewModel.cs
2.515625
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Controls; using Esoteric.UI; using Bailiwick.Models; using QuickGraph; using QuickGraph.Collections; namespace Bailiwick.UI { public class ...
2b3fc802248f1fe5c32190ff06d3c182a1a1aa95
C#
Dilatazu/RealmPlayers
/VF_Library/VF_Library/VF_NetworkClient.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Sockets; using System.Collections.Concurrent; namespace VF { public class NetworkClient { Socket m_Socket = null; System.Threading.ManualResetEvent m_Connected = new System.Threading.ManualRe...
55b5f2c2adbd3eb1b5c30ffb1d6c56ebd9e225f9
C#
wouterdevinck/lamp
/src/dashboard/Services/DeviceService.cs
2.6875
3
using Microsoft.Azure.Devices; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace LampControl.Services { public class DeviceService { private ServiceClient _service; private RegistryManager _registry; public DeviceService(string hub, stri...
01ec52fca98864c479556543b50f5594d62d4ccf
C#
sarang7707/DemoRepo
/TestDemoApi/BAL/blRegistration.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace TestDemoApi.BAL { public class blRegistration { TestDemoEntities entity = new TestDemoEntities(); public void InsertRegistration(tblRegistration reg) { entity.tblRegistration...
0b47e33a4ac9328b3199b0c46287e988937be18a
C#
Zermlor/Common
/ArrayHelper.cs
3.375
3
using System; using System.Collections.Generic; namespace zermlor { /// <summary> /// 数组助手类 /// </summary> public static class ArrayHelper { /// <summary> /// 对象数组的升序排列,如:Enemy[] /// </summary> /// <typeparam name="T">对象数组的元素类型,如:Enemy</typeparam> ...
34e085c1b111110aa68b4955321152f6ac405be2
C#
Filirien/CSharp-Fundamentals
/C# Advanced/Functional Programming - Lab/01. Sort Even Numbers/01. Sort Even Numbers.cs
3.640625
4
namespace _01.Sort_Even_Numbers { using System; using System.Linq; public class SortEvenNumbers { public static void Main() { var input = Console.ReadLine() .Split(new string[] { ", " }, StringSplitOptions.RemoveEmptyEntries) .Select(int.Parse...
82c750d0307c4491170a27fd030754b2fe427173
C#
Luxor-Fer/TDD
/PruebasTDD/EjemploTDD2/Factorial.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EjemploTDD2 { public class Factorial { public int CalcularFactorial (int num) { int resultado = 1; if(num == 0) { re...
62bb032c0f9e30de3a36fb35aadf13f60cc7e14b
C#
Rommy72/programming-basic
/iftasks/iftask 2-1/iftask 2-1/Program.cs
3.25
3
using System; namespace iftask_2_1 { class Program { static void Main(string[] args) { // Ohjelma määrittelee lipun Hinnan alennuksineen Console.OutputEncoding = System.Text.Encoding.UTF8; double ticketPrice = 16.00; double discount = 0; Con...
d156398e589e79e5e51a10b8e3956550b973994a
C#
bariscanakdag/WebBrowser-Mvvm
/Browser/Browser/ViewModel/MainWindowViewModel.cs
2.515625
3
using Browser.Helper; using System.ComponentModel; using System.Windows.Input; using System.Windows.Forms; using HtmlAgilityPack; using System; using System.Collections.ObjectModel; using Browser.Model; using mshtml; namespace Browser.ViewModel { public class MainWindowViewModel : INotifyPropertyChanged { ...
cd015d35d8c235e6265eea6e3d3814cbf9bf5ce0
C#
Doomblaster/MetroFire
/src/MetroFire/Behaviors/CustomPasteBehavior.cs
2.625
3
using System; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Interactivity; namespace Rogue.MetroFire.UI.Behaviors { public class CustomPasteBehavior : Behavior<TextBox> { /// <summary> /// Description /// </summary> public static rea...
e6fea91adda8ac8c99f53256e20831a8c70877e4
C#
fcaumartin/AdoNet
/PatternDAOexemple/Form1.cs
2.65625
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 PatternDAOexemple { public partial class Form1 : Form { public Form1() ...
9674b64c748c57fce03df6204f33b5c44bc3b4f9
C#
FeedHedgehog/ModernUIApp1
/ModernUI.Common.Utility/Security/MachineCodeUtil.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Management; using System.Security.Cryptography; namespace ModernUI.Common.Utility.Security { public class MachineCodeUtil { public static string GetMachineCode() { MachineCodeUtil m...
978ba671aed8d56fc34f896d66118442456af024
C#
ramyothman/ifekra
/IFekra/CodeRenderer/MarkupStructure/InputReader.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace CodeRenderer.MarkupStructure { class InputReader { StreamReader reader; int ptr; string[] tokens; string[] delimeters; public InputReader(strin...
588707765afb1574ddd3bdf0097f1cfcf3c4028f
C#
TacoSodium/BingoNumberGenerator
/Menu.cs
3.390625
3
using System; using System.Text; using System.Collections.Generic; namespace bingoNumberGenerator { public class Menu { Generator Generator; List<int> CheckList; public Menu() { this.Generator = new Generator(); this.CheckList = new List<int>(); ...
19e7f6adc4c3eb645fd68b8161e531175cfe1327
C#
tqphan/EyeBind
/EyeBind/BlinkDetector.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EyeBind { public static class BlinkDetector { private static EyeSetting leftEyeSetting = new EyeSetting(); private static EyeSetting rightEyeSetting = new EyeSetting();...
f21d85917ab267797257e37138c58d7e9a237efb
C#
Jougito/sharpwow
/Video/Input/Mouse.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SlimDX.DirectInput; namespace SharpWoW.Video.Input { public class Mouse { public Mouse(DirectInput input, IntPtr wndHandle) { mMouse = new SlimDX.D...
628cbcbc2dd38b0e80438d52d8c5eaf22fc1d478
C#
MitchReed123/ContosoUniversity
/ContosoUniversity/DAL/SchoolInitializer.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; using ContosoUniversity.Models; namespace ContosoUniversity.DAL { public class SchoolInitializer : System.Data.Entity. DropCreateDatabaseIfModelChanges<SchoolContext> { protected o...
a02facc84ce7b309fcb6a8f749444fc6319eae6f
C#
DanielJanus/Projekt_MAS
/Views/SchoolingUpdateForm.xaml.cs
2.78125
3
using MAS_Implementacja.Models; using System; using System.Linq; using System.Windows; namespace MAS_Implementacja.Views { /// <summary> /// Logika interakcji dla klasy SchoolingUpdateForm.xaml /// </summary> // Formularz aktualizowania Szkolenia public partial class SchoolingUpdateForm : Window ...
8fb18b7c8ddd8eec8606b4e23ec9a9854d8cabcb
C#
shifuc1199/CSsql
/Task3/Program.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Task3 { class Program { static void Main(string[] args) { //B_Tree tree = new B_Tree(5); //tree.Insert(new Record("13", n...
3e15dbda662cf72c16c5d7b3538b347fe0be8fcf
C#
ammachado/Humanizer
/src/Humanizer.Tests/Localisation/ar/TimeSpanTests.cs
2.71875
3
using System; using Xunit; namespace Humanizer.Tests.Localisation.ar { public class TimeSpanHumanizeExtensionsTests : AmbientCulture { public TimeSpanHumanizeExtensionsTests() : base("ar") { } [Fact] public void OneWeek() { Assert.Equal("أسبوع واحد", TimeSp...
846440c373c1a3a0d38b68ae81f9f7338f82fb65
C#
101t/PhotoBrushProject
/PhotoBrushProject/Forms Builder/Filters Forms/Serialize2DimArray.cs
3.390625
3
// Image Processing Lab // // Copyright Andrew Kirillov, 2005 // andrew.kirillov@gmail.com // namespace PhotoBrushProject { using System; using System.IO; /// <summary> /// Serialize2DimArray class - 2 dimensional arrays serialization /// </summary> internal class Serialize2DimArray { // Save array to file ...
903222134745156cc5b3e687ccc0e51c870b7a01
C#
baliza/AirportsConnections
/src/AirportsConnections.Library/Queries/Query.cs
3.140625
3
using AirportsConnections.Library.Answers; using AirportsConnections.Library.Graphs; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace AirportsConnections.Library.Queries { public class Query { private readonly IList<string> _flights; private ...
d423e989d9707918765bee131a71cd0f95dca2a4
C#
mwwhited/BinaryDataDecoders
/src/BinaryDataDecoders.ExpressionCalculator/Optimizers/UnaryNumericExpressionReducer.cs
2.71875
3
using BinaryDataDecoders.ExpressionCalculator.Expressions; using System; namespace BinaryDataDecoders.ExpressionCalculator.Optimizers { public sealed class UnaryNumericExpressionReducer<T> : IExpressionOptimizer<T> where T : struct, IComparable<T>, IEquatable<T> { public ExpressionBase<T> Optimize(Exp...
713ceaab97d11e2bc3052b999f7452c9108ba927
C#
momchilovv/SoftUni
/C# Fundamentals/Methods - More Exercises/04.TribonacciSequence.cs
3.9375
4
using System; using System.Numerics; class Program { static void Main(string[] args) { BigInteger number = BigInteger.Parse(Console.ReadLine()); CalculateSequence(number); } public static void CalculateSequence(BigInteger number) { BigInteger first = 1, second = 1, third = ...
fd6a0f532c1339d3aa6045e19eda7c5769ece871
C#
shawncutter/MindMurmur.Lights
/MindMurmur.Domain/Light/LightExtensions.cs
3.234375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MindMurmur.Domain.Light { public static class LightExtensions { public static byte ApplyDimmer(this byte color, byte alpha, int dimmer) { ...
95c0a78bcccbb6041080ac5efc71c6682366f4b4
C#
xuanthulabnet/learn-cs-netcore
/CS029_Networking/3.HttpClientExampleSendAsync/Program.cs
3.03125
3
using System; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; using System.IO; using System.Text; namespace HttpClientExample { public class ViduHttpClient { HttpClient _httpClient = null; public HttpCl...
98c0f5f479cb552efc988794e88e8eacf0a69c8e
C#
ATLTU/all-three-Projects-combined
/all three Projects combined/Program.cs
3.484375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace all_three_Projects_combined { enum Colors { White, Red, Green, Blue, Black, Yellow, Blank } class Program { static void Main() { strin...
83afc8796c489b43a75833f19baad41d7ebda14f
C#
NicoLucentini/SpaceInvadersExample
/SpaceInvadersExample/Assets/Bullet.cs
2.6875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Bullet : MonoBehaviour { Vector2 direction; float speed; private void Update() { transform.position += new Vector3(direction.x, direction.y) * speed * Time.deltaTime; } public void Set(Vector...
a423024eb81c59e64a05cfa8ca5667ad8576d5bb
C#
OctoberKey/dot-imaging
/Source/Primitives2D/Rectangle/RectangleExtensions.cs
2.984375
3
#region Licence and Terms // DotImaging Framework // https://github.com/dajuric/dot-imaging // // Copyright © Darko Jurić, 2014-2018 // darko.juric2@gmail.com // // 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 cop...
ecab21e98565b28f99ec6a09f0b917dd580cc8ad
C#
mxriverlynn/cheesewiz
/src/CheeseWiz.Logging/Log4NetLogger.cs
2.765625
3
using System; using log4net; namespace CheeseWiz.Logging { public class Log4NetLogger : ILogger { private readonly ILog _underlyingLogger; public Log4NetLogger(ILog underlyingLogger) { _underlyingLogger = underlyingLogger; } public void Debug(string message, params object[] args) { _underlyingLog...
b67f78c51fe5d29006c2b58e491d66f017253ad5
C#
AFLGlobal/Community-Hub-v2-API
/Controllers/ValuesController.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using System.Security.Claims; using Microsoft.AspNetCore.Authorization; namespace Community_Hub_v2_API.Controllers { [Route("api/[controller]")] [ApiController] public class Val...
6d5d424a94e41757710e441d3e3d836f69facd91
C#
xinzodl/PastProjects
/DominoGameProject/Domino_Version_Infarto/DominoServiceTest/HandTest.cs
2.65625
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using DominoService; namespace DominoServiceTest { [TestClass] public class HandTest { [TestMethod] [ExpectedException(typeof(ExcepcionNullPiece), "Pieza es null")] public void testAddPieceHand_NullPiece() {...
803fd465835178529f614c5935fa5fec3f8e9a51
C#
shendongnian/download4
/code1/187409-3557348-7425104-2.cs
3.28125
3
public class Customer { public Customer(int customerID) { CustomerID = customerID; } public int CustomerID { get; set; } public string CustomerName { get; set; } } public class CustomerController { public ArrayList PopulateCustomer() { ...
611ffd67dd15a809717cc674caa2c986e566c7e7
C#
badcommandorfilename/wCKSharp
/wCKSharp/wCKMaster.cs
3.140625
3
using System; using System.Collections.Generic; using System.IO.Ports; using System.Linq; using System.Text; using System.Threading.Tasks; namespace wCKSharp { public class wCKMaster { SerialPort _port; public wCKMaster(SerialPort port) { _port = port; } p...
1850364300c0a509d4b1b1a09ea1b4a00e80af23
C#
iulianEduard/.NET-Course-Beginners-Lab-5
/Lab5/Lab5.ConsoleApp/Encapsulation/EmployeeWithProperties.cs
3.75
4
using System; namespace Lab5.ConsoleApp.Encapsulation { public class EmployeeWithProperties { private string empName; private int empId; private float empCurrPay; private int cnp; public string Name { get { return empName; } set ...
b0bf93f400d2b66d14ed22bddf21bf0665619a0b
C#
shendongnian/download4
/code10/1869632-55668755-195751644-2.cs
2.765625
3
public partial class FTD_PG : Form { public FTD_PG() { InitializeComponent(); } private Dictionary<PictureBox, CheckBox> differences = new Dictionary<PictureBox, CheckBox>(); private void FTD_PG_Load(object sender, EventArgs e) { for(int i ...
33d2e4e72fa90e0af3c444940cd532abbb6baee2
C#
Genjo15/Snake
/Snake/Render.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Drawing.Drawing2D; namespace Snake { class Render { /********************************************* Declaration of variables *****************...
6beb2cd5d4e32a0350c4ce9cc7921473d6a6b001
C#
sfradi/Atlas
/AtlasQuantumAPI/Repository/CachedAccountRepository.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Collections.Concurrent; using AtlasQuantumAPI.Domain; namespace AtlasQuantumAPI.Repository { public class CachedAccountRepository : IAccountRepository { private static ConcurrentDictionary<Guid, AccountEntity> ca...
b4af85e669e1586f2aa935be56c942fb438f30f3
C#
ahmetaksoy1985/KayitTarihiKontrol
/KayıtTarihiKontrolü/KayıtTarihiKontrolü/Models/Mapping/ÜyelikMap.cs
2.59375
3
using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; namespace KayıtTarihiKontrolü.Models.Mapping { public class ÜyelikMap : EntityTypeConfiguration<Üyelik> { public ÜyelikMap() { // Primary Key this.HasKey(t => t.Guid); ...
566bc3a060d3bf7028e725dcae767d7426c76aa3
C#
aljangtze/DrivingTestWindows
/GetQuestions/Question.cs
2.625
3
using System.Runtime.Serialization; namespace DrivingTest { [DataContract] internal class Question { // DataMember属性是用于反序列化站点返回的问题 /// <summary> /// 问题id /// </summary> [DataMember(EmitDefaultValue = false, IsRequired = false)] public int id { get; set; } ...
600fb1cb6267a20104bde93b54b4f985caf39d23
C#
antseitz19/Player_Card_System_CIS411
/Player_Card_System_CIS411/GolfRounds.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Player_Card_System_CIS411 { class GolfRounds { string year; int totalRounds; string packageType; decimal costPerRound; public GolfRounds() ...
ea7902e09c5ef7d55af6d0f7e8972c1fc6d86af7
C#
Sansepi0l-s/Herencia-y-Clases-Derivadas-Uso-de-interfaz-4.10
/EmpleadoAsalariado.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Guia_10_ejercicio_4 { public class EmpleadoAsalariado : Empleado { private decimal salarioSemanal; public decimal SalarioSemanal { ge...
3749007c305ac25fbcb6d2b970040dadc5d37a94
C#
LeonamAnjos/designPatternsCourse
/Project/SingletonPattern/SingletonPattern/Program.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SingletonPattern { class Program { static void Main(string[] args) { Processo01(); Processo02(); Processo03(); Console.ReadKey(); } s...
6821cc135829b7fb5cda3906568a1c384f5fd5df
C#
jmonzone/spear-dash
/Assets/Scripts/UI/CameraController.cs
2.671875
3
using System.Collections; using UnityEngine; public class CameraController : MonoBehaviour { private void Awake() { PlayerManager.OnClientPlayerSpawned += OnClientPlayerSpawned; } private void OnClientPlayerSpawned(Player player) { StartCoroutine(FollowPlayer(player.transform)); ...
cfe4f7f14f432d80e162e6f5b8ad7d9dcc8f711a
C#
elyonnelly/programming_practices
/2module/Seminar07/Примеры решённых задач/Virtual methods/Virtual methods/Fractions/Skellige.cs
3.390625
3
namespace Fractions { /// <summary> /// класс Скеллиге /// </summary> public class Skellige : Deck { /// <summary> /// Сила способности колоды /// </summary> public int DeathGloryForce { get; private set; } /// <summary> /// Количество мед...
6d734ebde5f8a6591288569bfaf1e7546c5f976a
C#
vasildimov98/softuni-tutorials
/03.C#Advanced/01.Advanced/00.Projects/6.DefiningClasses/2.Exercise/DefiningClasses22Apr2020/P05. Date Modifier/StartUp.cs
2.984375
3
using System; namespace P05._Date_Modifier { class StartUp { static void Main() { string date1 = Console .ReadLine(); string date2 = Console .ReadLine(); var dateModifier = new DateModifier(); Console.WriteLine...
9ea2b2d4ac79108337f143bf49d4b7df8c7cce86
C#
daniellu/MySqlEF
/Source/Hatfield.AnalyteManagement.GuidelineCalculation/Models/RangeGuidelineValue.cs
3.0625
3
using Hatfield.AnalyteManagement.Domain; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hatfield.AnalyteManagement.GuidelineCalculation { public class RangeGuidelineValue : AnalyteGuidelineValue { private readonl...
902a6b24216844d1e780aab7a151f3a7f3b0f1a2
C#
GordonEllis/CardVault
/server/QueueHandler/Messages/DefaultMessageHandler.cs
3
3
using Newtonsoft.Json; using System; using System.Text; namespace QueueHandler.Messages { class DefaultMessageHandler : IMessageHandler { #region - Fields - private readonly Encoding _encoding; #endregion #region - Constructors - public DefaultMessageHandler() :...
88dc55fcb71392162286b1a9042783b6107c6dcb
C#
imovila/Remax
/DAL/clsDBconnection.cs
2.796875
3
using System.Data; using System.Data.OleDb; namespace DAL { public class clsDBconnection { private OleDbConnection con; /* * !!! Important !!! * It is necessary to change the connection to DB file */ private string DBRemax = @"Provider=Microsof...
e74781c5db5847da95b41b78941bb7fa25b17b19
C#
anderson-896/desafio-.Net
/CrossCutting/Response/ResponseEnvelope.cs
2.625
3
using Core.Domain.Response; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CrossCutting.Response { public class ResponseEnvelope : IResponseEnvelope { public ValidationMessage Message { get; internal set; } public V...
db3cd120b838466e168841342f5400aa378cc060
C#
Zoetermeer/ElmDecoderGenerator
/ElmDecoderGeneratorTests/ElmCodeGeneratorTests.cs
2.796875
3
using System; using System.Collections.Generic; using System.Reflection; using ElmDecoderGenerator; using Newtonsoft.Json; using Xunit; namespace ElmDecoderGeneratorTests { public class ElmCodeGeneratorTests { [JsonObject] public class SampleObject { [JsonProperty("id")] pub...
b5daf4c26dd6695e8b61e50147a34a588e78368c
C#
HarryPaek/CodeSnippet
/CSharp/CSharp.CodeSnippet/UnicodeToAsciiEscape/Extensions/UnicodeStringExtension.cs
3.3125
3
using System.Globalization; using System.Text; using System.Text.RegularExpressions; namespace UnicodeToAsciiEscape.Extensions { public static class UnicodeStringExtension { public static string EncodeNonAsciiChars(this string unicodeText) { if (string.IsNullOrWhiteSpace(unicodeTex...
a5c2b24f1be9cf5cbd6bc8bf2bf2473f7822a2ee
C#
KIngpon/Samurai2_BasedEntitas
/Assets/Scripts/Game/Service/SkillCodeService.cs
2.59375
3
using Module; using Module.Skill; namespace Game.Service { public interface ISkillCodeService : IInitService { int GetCurrentSkillCode(InputButton button, int currentCode); } public class SkillCodeService : ISkillCodeService { private SkillCodeModule skillCode; public void...
e82b61a49507a576ac8065675d86f261dab32b3a
C#
Djeda8/Xamarin
/CrudOperations/CrudOperations/CrudOperations/ViewModels/Main/MainViewModel.cs
2.765625
3
using CrudOperations.Models; using CrudOperations.Services.Sqlite; using CrudOperations.ViewModels.Base; using System; using System.Collections.Generic; using System.Text; namespace CrudOperations.ViewModels.Main { class MainViewModel : ViewModelBase { protected readonly ISqliteService _sql...
d50734854d3caa204d94b9d5f625c5595e5a56eb
C#
RainbowMan1/SastoMitho
/SastoMithoMVC/UserStore/MVCAppIdentityRole.cs
2.625
3
using Microsoft.AspNet.Identity; using System; using System.Collections.Generic; namespace SastoMithoMVC.UserStore { public class MVCAppIdentityRole<TKey, TUserRole>: IRole<TKey> where TKey : IEquatable<TKey> where TUserRole : MVCAppUserRole<TKey> { // // Summary: // ...
97c0b814842f90d22f21335bfea7ae8b21cdc9fd
C#
ZlatinVladislav/Finance
/BackEnd/Finance.Infrastructure.Data/Repositories/TransactionTypeRepository.cs
2.53125
3
using System.Threading.Tasks; using Finance.Domain.Models; using Finance.Infrastructure.Data.Context; using Finance.Infrastructure.Data.Interfaces; using Finance.Infrastructure.Data.Repositories.Base; using Microsoft.EntityFrameworkCore; namespace Finance.Infrastructure.Data.Repositories { public class Transactio...
063c4e96b271302f99d8c4e580b944aa5663a501
C#
Gsangu/WinFormTools
/BT蚂蚁种子搜索/BT蚂蚁种子搜索/Form1.cs
2.59375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Net; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Forms; namespace BT蚂蚁种子搜索 { public partial class Fo...
99fecc0762934e04541dfa1023a36f11fd555dee
C#
HeshamMeneisi/EF.Essentials
/EF.Essentials/Encryption/SignatureKeyResolver.cs
2.703125
3
using System; using System.Collections.Generic; using System.Threading.Tasks; using EF.Essentials.Config; using EF.Essentials.KeyStore; using EF.Essentials.KeyStore.Models; using Microsoft.Extensions.Options; using KeyNotFoundException = EF.Essentials.KeyStore.KeyNotFoundException; namespace EF.Essentials.Encryption {...
7999989b2388f300f6f3cdbe82bce57e06fcf229
C#
shendongnian/download4
/first_version_download2/4039-50337746-173641097-2.cs
3.796875
4
Public Static void main(){ string text = "Test Text"; Console.Writeline(RevestString(text)) } public Static string RevestString(string text){ char[] textToChar = text.ToCharArray(); string result= string.Empty; int length = textToChar .Le...
5081b7682c2962f51f47eac0e2d327262414f73d
C#
ddcavalheiro/Ashbel
/Cavalheiro.Ashbel.WebApi/Controllers/AlunoModelsController.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Cavalheiro.Ashbel.Model; using Cavalheiro.Ashbel.Persistance; namespace Cavalheiro.Ashbel.WebApi.Controllers { ...
de50d4fd70aeefb9db5a0243258d690d7f44868d
C#
BattleRegion/ZQClient
/Assets/Scripts/Fight/Block.cs
2.828125
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Block { private Tile curTile; public Tile CurTile { get { return curTile; } set { curTile = value; if (c...
306f9921e117d1d09eb14e01c1fbafc87c60053b
C#
phuc-noob/Manage_Student
/check/Form/Course/manageCourse.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace check { public partial class manageCourse : Form { public manageCourse() ...