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
a77a015cf7c42b9e4d79e2f4b9d07fbee4e90f39
C#
stevenwhatever123/CSC384-Assignment
/Assets/Scripts/Data/SaveSystem.cs
2.71875
3
using UnityEngine; using System.IO; using System.Runtime.Serialization.Formatters.Binary; public static class SaveSystem { public static void SavePlayer(PlayerStateManager player, int score) { BinaryFormatter formatter = new BinaryFormatter(); PlayerInformation data = new PlayerInforma...
fb3412afe62ac57b7b0454ec19625d8f35b5b500
C#
UltramarineDev/PadawansTasks
/PadawansTask2/ArithmeticSequence.cs
3.296875
3
using System; namespace PadawansTask2 { public static class ArithmeticSequence { public static int Calculate(int number, int add, int count) { // put your code here // throw new NotImplementedException(); if (count <= 0) { throw n...
b34f2c85b6dfd528843346904ad02551a733a9e6
C#
locus84/ENetCore
/ENetCore/Callbacks.cs
2.515625
3
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; namespace ENetCore { public delegate byte[] MallocDelegate(int size); public delegate void FreeDelegate(byte[] buffer); public delegate void NoMemoryDelegate(); public struct ENetCallbacks { ...
9e02c4378a49eb54d76f46064b094c8a7d41dd39
C#
dn1rscn/T34pp_Dec
/Assets/0-Pruebas/Dani/SwipeMobile/SwipeManager.cs
3
3
using UnityEngine; using System.Collections; public enum SwipeDirection { None = 0, Left = 1, Right = 2, Up = 4, Down = 8, } public class SwipeManager : MonoBehaviour { private static SwipeManager instance; public static SwipeManager Instance{get{return instance;}} public SwipeDirection Direction{set;get;}...
b9d7e67fdf423803b1c686ae6f3b48b170fe8abd
C#
chrhodes/vnclegacy
/Explore/WPF/PetzoldCodeAndMarkup/Chapter 01/SayHello/SayHello.cs
3.140625
3
//----------------------------------------- // SayHello.cs (c) 2006 by Charles Petzold //----------------------------------------- using System; using System.Windows; namespace Petzold.SayHello { class SayHello { [STAThread] public static void Main() { Window win = new Windo...
804156fc08102b0706dd63110cfbff52bd547614
C#
zyhong/practical-dapr
/src/WebUI/CoolStore.WebUI/Pages/Products/CreateProductModel.cs
2.515625
3
using System.ComponentModel.DataAnnotations; namespace CoolStore.WebUI.Models { public class CreateProductModel { [Required] [StringLength(10, ErrorMessage = "Name is too long.")] public string Name { get; set; } [Required] public string CategoryId { get; set; } public...
2da0c77922c0d7538dd5b07cf082582f2b0a0e71
C#
apiad/SciSharp
/Source/SciSharp/Language/Grammars/BottomUp/ShiftReduceParser.cs
2.875
3
using System; using System.Collections.Generic; namespace SciSharp.Language.Grammars.BottomUp { [Serializable] public class ShiftReduceParser<T> : IParser<T> where T : Node, new() { private readonly Grammar<T> grammar; private readonly Stack<T> nodes; private readonly Stack...
090e0033737e87a7a373ec5ebccb0cd6354103c4
C#
shendongnian/download4
/code6/1096330-51879880-179886112-6.cs
2.96875
3
[Given(@"entered (.*) and (.*)")] public void GivenEnteredAnd(string username, string password) { var signin = new LoginPage(driver); signin.login(username, password); } [When(@"I press signin button")] public void WhenIPressSigninButton() { var submit = new LoginP...
02dcf0d16379a1771f7357ce1630510a2da0ef1d
C#
uvbs/FullSource
/Source/Source/Tools/GameDesignerEditor/Controls/ArgumentsEditor/ArgumentsEditor/EditForm.cs
2.65625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace ArgumentsEditor { public partial class EditForm : Form { private SqlConnection conn; // ݿ p...
c19135fe65a902af67fe521ad095040b5456689b
C#
toadums/SharpDX
/Source/Toolkit/SharpDX.Toolkit.Input/MouseState.cs
2.53125
3
// Copyright (c) 2010-2013 SharpDX - Alexandre Mutel // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modi...
53689cdfd4fc3ce9426e00b4818f5c3d6d0c2fe5
C#
GoncaloDomingues/PC_1415V
/Serie-1-PC/Serie-PC/FutureHolderTest.cs
2.96875
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading; namespace Ex1 { [TestClass] public class FutureHolderTest { [TestMethod] public void FutureHolderInvalidOperationExceptionTest() { FutureHolder<string> h = new FutureHolder<string>(); ...
8d9c75622751be8852e95ab2636cf405bbc895f4
C#
dominickrandazzo/MusicPlaylistAnalyzer
/Program.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MusicPlaylistAnalyzer { class Program { static void Main(string[] args) { if (args.Length != 2) { Console.WriteLin...
8f9fa926e3be5787a2d9f41e75a1a1c03648f474
C#
falissefrancois/TUI_Assessment_Exercice3
/FileClient/Program.cs
3.078125
3
using System; using System.IO; using FileReadingLibrary; using Newtonsoft.Json; namespace FileReaderClient { class Program { static void Main(string[] args) { var textfilepath = Path.Combine(Directory.GetCurrentDirectory(), "SampleTextFile.txt"); var xmlfilepath = Path....
c6953d7d71c5c64671fd39accaefae074d387f4a
C#
moorey777/JCU-CS-CMS
/CMSNewsReleaseSystem/Web/LeftMenu.cs
2.703125
3
using System; using System.Collections.Generic; using System.Web; using System.Xml; namespace Maticsoft.Web { public class LeftMenu { private string title; private string code; private List<MenuLink> links = new List<MenuLink>(); public string Title { ge...
51adab804fdc40d474190fdb5b54f58b2c1d35da
C#
szsun/myob-challenge
/PaySlip/PaySlipConsole/Model/PaySlipBase.cs
3.015625
3
using System; using System.Collections.Generic; using System.Text; namespace PaySlipConsole.Model { /** * base class for payslip that provides the common attributes and logics. */ public class PaySlipBase : IPaySlip { IEmployee _employee; public PaySlipBase(IEmployee...
003ddd942d9327ca41469af2cc037d0cb87a4797
C#
iggi131/.NET-DesignPatterns
/Source Code/DotNet_Design_Patterns/Chapter1/SOLID/LSP.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DotNet_Design_Patterns.Chapter1.SOLID { //public class FileManager //{ // public virtual void Read() => Console.WriteLine("Reading from file..."); // public virtual void ...
77b791a27c24963f34de4754130a9275fadf10a8
C#
borrrden/Fido2Net
/Fido2Net/API/FidoDeviceInfo.cs
2.828125
3
using Fido2Net.Interop; using Fido2Net.Util; using System; using System.Collections; using System.Collections.Generic; namespace Fido2Net { /// <summary> /// A class representing external info about a particular FIDO capable /// device /// </summary> public sealed class FidoDeviceInfo { ...
717e45afe038c8a9b70394b97a48f136c1d28146
C#
frenche6/HackerNews
/HackerNews/Extensions.cs
3.40625
3
using System; using System.ComponentModel; using HackerNews.Models; namespace HackerNews { public static class Extensions { /// <summary> /// Used example on stack overflow as reference /// https://stackoverflow.com/questions/630803/associating-enums-with-strings-in-c-sharp ///...
c953271fb417576ad6fb9ca585efb2b090d075d9
C#
MinhTranCA/FarNet
/FarNet/FarNet/FormsEvents.cs
2.671875
3
// FarNet plugin for Far Manager // Copyright (c) Roman Kuzmin using System; namespace FarNet.Forms { /// <summary> /// Base class of dialog and control event arguments. /// </summary> public class AnyEventArgs : EventArgs { /// <param name="control">Control involved into this event or null.</par...
f2ab8942e87aa7f0140751cf1106ada8453fac21
C#
DesignerdriP/Ozrk-RDR-GTA-DISSAMBLY
/mscorlib/System/Diagnostics/SymbolStore/SymbolToken.cs
2.734375
3
using System; using System.Runtime.InteropServices; namespace System.Diagnostics.SymbolStore { /// <summary>The <see cref="T:System.Diagnostics.SymbolStore.SymbolToken" /> structure is an object representation of a token that represents symbolic information.</summary> // Token: 0x020003DC RID: 988 [ComVisible(true...
a5eee17b33bf62b9143a03c81c5159ba6ce5eb8f
C#
CloudDevStudios/Questopia
/GameEngineProgrammingIProject/Assets/Scripts/UI/blink.cs
2.5625
3
using UnityEngine; using System.Collections; public class blink : MonoBehaviour { [SerializeField] #pragma warning disable 649 private float speed; #pragma warning restore 649 private float timer; // Update is called once per frame private void Update() { timer += Time.deltaTime * s...
5b95ef253422415f805393572aadede7de2331ed
C#
HunterCarlson/SimpleMath
/SimpleMath/SimpleMath.cs
4.375
4
namespace SimpleMath { public static class SimpleMath { /// <summary> /// Add 2 integers /// </summary> /// <param name="a"></param> /// <param name="b"></param> /// <returns></returns> public static int Add(int a, int b) { int res...
c25cf8406345f2d23c883e6d4aaff12cbb027596
C#
barsae/Lisp
/Lisp.Test/TestReader.cs
2.796875
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.IO; namespace Lisp.Test { [TestClass] public class TestReader { [TestMethod] public void ReadSymbol_Works() { TestRead("symbol"); } [TestMethod] public void ReadQuote_Symbol_Work...
e5917509b48fa592ea38ee50efc2a0ba59cc1c3f
C#
psydok/BRTree_3
/Program.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms.DataVisualization.Charting; using System.Windows.Forms; using System.Drawing; using Black_Red_tree.Common; namespace Black_Red_tree { class Program { static vo...
8f9b57757c9292fdcecac0c654fdb0faa8056a77
C#
FoxGriVer/architecture-IS
/AIS_lab2(Client-Server)/programClient/Program.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net.Sockets; using System.Net; namespace programClient { class Program { static void Main(string[] args) { Menu ourMenu = new Menu(...
d9ba1ea84568efaa0f698b14ff574ddbc554dbe2
C#
mrlvr/robocup-2014
/MRLUtilities/Communication/Tools/Packet.cs
2.75
3
using System; using System.IO; using MRL.Communication.Internal_Objects; using System.Collections.Generic; using MRL.Utils; namespace MRL.Communication.Tools { public class Hop : ICloneable { public string RobotName; public int Signal; public object Clone() { retur...
adae0bd36277e94ffc4a305ae92a35c2eaa7d0a2
C#
Messaadi-ichrak/Catalogue
/Catalogue/GestionProduit/Metier/CategorieRepository.cs
2.671875
3
using Catalogue.GestionProduit.NewFolder.DAO; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Catalogue.GestionProduit.Metier { public class CategorieRepository : ICategorieRepository { readonly CatalogueDbContext catalogue; public Ca...
97ca8e79aa12d1d0224561111960223b5214aa44
C#
wangyougui/appbox.clr
/appbox.Reporting/ExprParser/TokenList.cs
2.890625
3
using System; using System.Collections; using System.Collections.Generic; namespace appbox.Reporting.RDL { /// <summary> /// Represents a list of the tokens. /// </summary> internal class TokenList : IEnumerable { private List<Token> tokens = null; internal TokenList() { tokens = new List<Token>(); }...
e1fd09d14795262c4bd144a1b8856a2caece8340
C#
AleHenestroza/tp_laboratorio_2
/TP 3/Entidades/Productos/Componentes/Rueda.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entidades.Productos.Componentes { /// <summary> /// Clase Rueda, componente de Bicicleta /// </summary> [Serializable] public class Rueda { private double preci...
ab9622eba339176143fb6e3555e1fbcdf2ab6e8e
C#
AnnaSava/MetanitPatterns
/MetanitPatterns/BehavioralPatterns/CommandPatternMulti.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MetanitPatterns.BehavioralPatterns { static class CommandPatternMulti { public static void Display() { TV tv = new TV(); Volume volume = new Vol...
75a631c9c6c3a7f071fba40e4d94cb3c6d225d63
C#
alekseytsekov/DreamCar
/DreamCar.Core/Managers/DealerManager.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Remoting.Metadata.W3cXsd2001; using System.Text; using System.Threading.Tasks; using DreamCar.Data.Repositories; using DreamCar.Models.Common; using DreamCar.Models.Domain; using DreamCar.Models.Dto.Dealer; namespace Dr...
efd210d721ac3c95241543b0105fdefb1cc0d238
C#
RadicalFx/Radical.Windows
/src/Radical.Windows/WeakEvent Managers/LoadedWeakEventManager.cs
2.6875
3
using System.Windows; namespace Radical.Windows { public sealed class LoadedWeakEventManager : WeakEventManager { static LoadedWeakEventManager GetCurrentManager() { var mt = typeof(LoadedWeakEventManager); var manager = (LoadedWeakEventManager)GetCurrentManager(mt); ...
7d4bf161d387607dc160f4c06beb189527a352e3
C#
srht/NasaRovers
/Models/Rover.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NasaRovers.Models { public class Rover { public char Heading { get; set; } public int X { get; set; } public int Y { get; set; } public Rover(char headi...
c812e593a7b8878c366205bb96c81e5a234b5c7d
C#
xavierdelacruz/LeetCodeProblemsSolved
/7 - Reverse Integer.cs
3.46875
3
public class Solution { public int Reverse(int x) { if (x == 0 || x <= Int32.MinValue || x >= Int32.MaxValue) { return 0; } var isNegative = x < 0 ? true : false; x = isNegative ? x * -1 : x; StringBuilder sb = new StringBuilder(); ...
648f335e1782423a068e0547b5c8d742d98da953
C#
VladyslavBiletskyi/Music-Library
/Course/Forms/Administration/Deleting/Genre.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; using System.Data.SqlClient; namespace Course.Forms.Administration.Deleting { public partial class G...
b518d4b0f7fc03260f3f08f02aeeb370e7e86cf3
C#
JTOne123/commanddotnet
/CommandDotNet.TestTools/TestConsole.cs
2.578125
3
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // copied & adapted from System.CommandLine using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.T...
15679e5573431b88fa8e008bd87ebd80f22d2870
C#
jonweaver/Osnowa
/Assets/Osnowa/Libraries/PathPlannersLib/PathPlanners.SearchAlgorithm.cs
2.8125
3
namespace Libraries.PathPlannersLib { using System; using System.Collections.Generic; public abstract class SearchAlgorithm { protected bool[,] _UnpassableNodes; protected bool[,] inOpenset, inClosedset; protected Point[,] parents; protected Point start, goal; protected ...
427601925f68e1d55623496c8db9aaf0d3da6835
C#
Grimnak/LoZGame
/LoZGame/controller/Commands/ConfirmationCommands/ResetCommandNo.cs
2.578125
3
namespace LoZClone { /// <summary> /// Command that denies the resetting of the game. /// </summary> public class ResetCommandNo : ICommand { /// <summary> /// Initializes a new instance of the <see cref="ResetCommandNo"/> class. /// </summary> public ResetCommandNo(...
4359615f8d334fd8df4e45e2cdc678dce1c9aa1a
C#
VeniaminVigovsky/Spinning-hazards
/Assets/platformSound.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class platformSound : MonoBehaviour { AudioSource[] audioSources; [SerializeField] AudioClip click_1, click_2, click_3; void Start() { audioSources = GetComponentsInChildren<AudioSource>(); } publi...
7a6e6a0c79c6729780f4514c5ecee92561d8b704
C#
jaejase/Xamarin-Project-Picolo
/Picolo/Picolo/ViewModels/QuestionPageViewModel.cs
2.515625
3
using System; using System.Collections.Generic; using System.Text; using Picolo.Views; using Xamarin.Forms; using Picolo.Models; using MvvmHelpers; //using System.Security.Cryptography.X509Certificates; //using System.Linq; using System.Threading.Tasks; namespace Picolo.ViewModels { [QueryProperty("QuestionNum", ...
eb75de43e8245542e762c3b0eb55a4c8227b5af0
C#
Colapso/AVEworks
/MapperReflect/MappingTypes/Mapping.cs
2.515625
3
using System; using System.Reflection; namespace MapperReflect { public abstract class Mapping { public static Mapping Properties = new MappingPropreties(); public static Mapping Fields = new MappingFields(); public Type srcType { get; set; } public Type dstType { get; set; }...
65f478b9ea8af1f6a4a17f443382c105851b6957
C#
kenanglol/k-means
/Program.cs
3.46875
3
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; namespace K_means { //We develop this class for produce random number in close times. And we add double randomize option. class rastgele { private static readonly Random rando...
0a2ef4789f5a1ebbe1d296d027bf2fd7b8eb73e3
C#
Aaronzhou/Forms9Patch
/Forms9Patch/Forms9Patch.Source/Clipboard/ClipboardEntry.cs
2.75
3
using System; using System.Security.Cryptography.X509Certificates; using System.Runtime.Serialization; using System.Collections.Generic; using System.Collections; using System.Reflection; using Xamarin.Forms.Internals; using P42.Utils; namespace Forms9Patch { #region Clipboard Entry /// <summary> /// Base ...
d1c80f97b83c7f85cc866b4d9d7c8736321c89b9
C#
angelofgrace/holbertonschool-csharp
/0x03-csharp-hashset_stack_queue_linkedlist/11-linkedlist_sum/11-linkedlist_sum.cs
3.140625
3
using System; using System.Collections.Generic; class LList { public static int Sum(LinkedList<int> myLList) { int total = 0; foreach (int node in myLList) { total = total + node; } return (total); } }
994c45a8efdf81cccc1b508beb2a8d3ce8812f41
C#
mkmirchev/Fundamentals-C-Sharp-2021
/LongerLine/Program.cs
3.640625
4
using System; namespace LongerLine { class Program { static void Main(string[] args) { double xA = double.Parse(Console.ReadLine()); double yA = double.Parse(Console.ReadLine()); double xB = double.Parse(Console.ReadLine()); double yB = double.Pa...
d9ad46da0cf12eaafd660cb0e2b53f6ecd8c1ebc
C#
DrDoak/LittleDeity
/Assets/Scripts/Characters/SentimentHolder.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SentimentHolder : MonoBehaviour { public int Sentiment = 0; public int VisualSentiment = 0; public float m_visualSentiment; public const float MONEY_ADD_SPEED = 0.5f; void Start() { if (GetComponent<PersistentItem> () ...
7af55d4c86d3c163b177e7db43d6c24c2d98bee6
C#
rgammad/EchoGun
/EchoGun/EchoGun/Assets/Scripts/Utility/Stats/AdditiveIntStat.cs
2.8125
3
using UnityEngine; using UnityEngine.Assertions; using System.Collections; using System.Collections.Generic; [System.Serializable] public class AdditiveIntStat : Stat<int> { public AdditiveIntStat(int baseValue) : base(baseValue) { } protected override int Recalculate() { int result = baseValue;...
8c356b37a9d5e4bfab01c5b9c0fa1c20c96aa8cf
C#
ThiagoDAraujoS/Adventurers-Needed
/Assets/PlayerPlate.cs
2.6875
3
using UnityEngine; using System.Collections; using Hell; public class PlayerPlate : MonoBehaviour { public Socket myPlayer; public string character; public PlayerPlate(Socket mySocket) { print("Constructing player plate.."); myPlayer = mySocket; } public void Update() ...
9ac5cc197c71307f2838919347f88e05f75cca7c
C#
eduardo-marmolejo/POO
/UNIDAD 6/CatálogoProgramas/PROGRAMAS/Operaciones/Operaciones/Form1.cs
2.609375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Operaciones { public partial class frmOperacion : Form { ClassOperación objOpe...
a402630b000c79acc104eba121bd1c767b348152
C#
treehopper-electronics/treehopper-sdk
/NET/Demos/Libraries/Sensors/Temperature/Program.cs
3.265625
3
using System; using System.Threading.Tasks; using Treehopper; using Treehopper.Libraries.Sensors.Temperature; namespace TemperatureDemo { /// <summary> /// This demo prints current temperature data every second. /// </summary> class Program { static void Main(string[] args) { ...
84068293925f3a7a385fa2ba2a5c803aff6246f9
C#
visualmerc/Bravovets
/ProfSite.Tests/Infrastructure/ReflectionUtils.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace ProfSite.Tests.Infrastructure { public static class ReflectionUtils { public static T GetAttribute<T>(MethodInfo methodInfo) where T : Attribute { // trying...
ef183a871fb4f294ea232b3a04fa3fecc44aefbf
C#
CaikyJunio/sinqia_caiky
/Modulo03 ADO.NET/Projeto1_CadastroEventos/Projeto02_AcessoDados/DAL/ConvidadosDao.cs
2.609375
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 Projeto02_AcessoDados; using Projeto02_AcessoDados.Models; namespace Projeto02_AcessoDados.DAL { public class ConvidadosDao : Dao<Convidado, string...
2b6701d44f0b99c0c4b43b8555e529483d92de80
C#
itfranck-SpaceEngineers/RichHudFramework.Client
/Shared/UI/HUD/HudElements/ClickableHudElements/SliderBar.cs
2.828125
3
using VRageMath; using System; namespace RichHudFramework.UI { using Client; using Server; /// <summary> /// Generic clickable slider bar. Can be oriented vertically or horizontally. Current value /// automatically clamped between min and max. /// </summary> public class SliderBar : HudEl...
091fc0309c7a21e167a0b9246a82cb960940059a
C#
me-jamshidi/InfluxDB.Client
/src/Vibrant.InfluxDB.Client/InfluxSeries.cs
2.84375
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Threading.Tasks; namespace Vibrant.InfluxDB.Client { /// <summary> /// An InfluxSeries is a single series returned by InfluxDB. A single query may /// return multiple series due to ...
ab634b8c1551b9aff73ee693f1ea7bcd16931b2e
C#
apflu/DungeonBot
/Native.Csharp/App/Util/Dice.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Native.Csharp.App.Util { public class Dice { public byte Quantity { get; set; } public byte Size { get; protected set; } public const byte MaxQuantity = 10; ...
6f010d29eaae582e64c1e6086f52e00a8933ee2d
C#
YHZX2013/exchange_diff
/Microsoft.Exchange.Net/Microsoft/Exchange/Net/DownloadCompleteEventArgs.cs
2.59375
3
using System; namespace Microsoft.Exchange.Net { internal sealed class DownloadCompleteEventArgs : EventArgs { public DownloadCompleteEventArgs(long bytesDownloaded) : this(bytesDownloaded, 0L) { } public DownloadCompleteEventArgs(long bytesDownloaded, long bytesUploaded) { this.bytesDownl...
6dbfd2c54bdc7fda70f465cf5480cb86152ec294
C#
t9mike/Mitten
/src/Mitten.Server.Tests.Unit/DateTimeConverterTests.cs
2.6875
3
using System; using System.Globalization; using FluentAssertions; using Mitten.Server.Extensions; using NUnit.Framework; namespace Mitten.Server.Tests.Unit { [TestFixture] public class DateTimeConverterTests { [Test] public void ConvertFromUnixSecondsTest() { const int t...
d0c7302365d302ce24a2b6e64d3a0ffb1bd1a5c7
C#
AndroVova/OOP
/ConsoleApp1/ConsoleApp1/DataReader.cs
3.15625
3
using System.IO; using Newtonsoft.Json; using System.Collections.Generic; using System; using System.Linq; namespace ConsoleApp1 { class DataReader { private readonly string path = "GameResult.json"; public List<GameResults> ReadJSON() { if (!File.Exists(path)) ...
88e8cac44ed629839713ab5e0d384afc24c870a9
C#
jumpslash01/Programming
/ArrayList_Tasks/list3/Program.cs
3.4375
3
using System; using System.Collections.Generic; namespace list3 { class Program { static void Main(string[] args) { //INITIALIZE string input = Console.ReadLine(); List<string> stringList = new List<string>(); //READ INPUTS ...
869a3fe6edfe3f5d234ae17527848fdace0819fc
C#
thesauri/ImageGlass
/Source/Components/ImageGlass.Core/Img.cs
3
3
/* * imaeg - generic image utility in C# * Copyright (C) 2010 ed <tripflag@gmail.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License v2 * (version 2) as published by the Free Software Foundation. * * This program is distributed i...
489ee16118d308c598597f39ca0ee1268f9c323c
C#
enisslkglu/OOPHomeworkSoftUni
/HomeworkException/02.EnterNumbers/EnterNumbers.cs
4
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _02.EnterNumbers { class EnterNumbers { static void Main() { List<int> nums = new List<int>(); while (nums.Count < 10) ...
9d7bb47903a306003404b1a1a14a6a39b71efab3
C#
tasszz2k/F5_Source-code-PRN292-Csharp
/LAB10_1/CustomerModel.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace LAB10_1 { class CustomerModel { private int id; private string name; private DateTime dob; private bool gender; priv...
0ed64cc43a373b85f260718e95afe7142e3adb6a
C#
KetlenCamille/CSharp
/Aulas/Aula1005_Console/Program.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Aula1005_Console { class Program { static void Main(string[] args) { Cliente cliente = new Cliente(); cliente.Nome = "Godofredo"; //Set ...
1a6f261271fbc0df2d2326651bafaaccf5bb8708
C#
MrGottham/OSDevGrp.OSIntranet.DataAccess
/OSDevGrp.OSIntranet.DataAccess.Infrastructure.Interfaces/IObjectMapper.cs
2.671875
3
namespace OSDevGrp.OSIntranet.DataAccess.Infrastructure.Interfaces { /// <summary> /// Interface til mapning af objekter fra en type til /// en andentype, som typisk bruges ved konvertering /// af objekter i domænemodellen til objekter i /// viewmodellen. /// </summary> public interface IO...
38a0c5dbb622a34b7b6aad35a49ae24b774ad2af
C#
danielacraciun/TL_CSharp
/ToyLanguage/src/Domain/Statement/WhileStmt.cs
2.75
3
using System; namespace ToyLanguage { [Serializable] public class WhileStmt: IStmt { private Exp exp; private IStmt stmt; public WhileStmt(Exp e, IStmt stmt) { this.exp = e; this.stmt = stmt; } public Exp getExp() { return exp; } public IStmt getStmt() { return stmt; } public ove...
c07cb3fab57f2161380b06d8c08dcfd43cc46388
C#
esolCrusador/ResxGenerator
/src/ResourcesAutogenerate/DTEProjectExtensions.cs
2.71875
3
using System.Collections.Generic; using System.Linq; using EnvDTE; namespace ResourcesAutogenerate { public static class DTEProjectExtensions { public static IEnumerable<ProjectItem> GetAllItems(this Project project) { return project.ProjectItems==null ? Enumerable.Empty<ProjectIte...
335e22724caec80987ea1f24d6e52f4655ce8a8f
C#
Nikolay9812/Fundamentals
/Fundamentals - Solutions/Methods - Lab/07. Repeat String/Program.cs
3.6875
4
using System; namespace _07._Repeat_String { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int multipler = int.Parse(Console.ReadLine()); Console.Write(Body(multipler,input)); } private static string B...
81e9be0e910f0d3bd53c7f2740184b25a173f926
C#
ricardoasinr/.NET-projects-college
/Medicina/Medicina/Models/Hospital.cs
2.59375
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Medicina.Models { public enum EspecialidadType { Pediatria = 0, Ginecologia = 1, } public class Hospital {...
0442cdab611a789c761a27d1632dfc890583b74d
C#
shibox/JShibo.Serialization
/JShibo.Serialization.Research/Entitiy/JsonResult.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace JShibo.Serialization.BenchMark.Entitiy { [Serializable] public class JsonResult { private int _returncode; public int returncode { get { return _returncode; } set { _returncode = value; } } ...
51bc25482262da7298b984cee0786cf0e6a3d420
C#
maxmind/minfraud-api-dotnet
/MaxMind.MinFraud.UnitTest/Response/IPAddressTest.cs
2.734375
3
using MaxMind.MinFraud.Response; using System.Text.Json; using Xunit; namespace MaxMind.MinFraud.UnitTest.Response { public class IPAddressTest { [Fact] public void TestIPAddress() { var time = "2015-04-19T12:59:23-01:00"; var address = JsonSerializer.Deseriali...
862cafa4f1ef896b776b4d49894a6f9444aee455
C#
lo-b/PACPortfolio
/BattleSim/BattleSim/Player.cs
3.375
3
using System; namespace BattleSim { public class Player { private static readonly Random _rng = new Random(); public Player(string name, int hitpoints = 100) { Alive = true; Name = name; Hitpoints = hitpoints; } public string Name ...
f253789ba92a517f4aa45fb10ad64554ab47515e
C#
vernerpereira/estudo_ddd_tdd
/EstudoDDDTDD.Helpers.Tests/TextoHelperTests.cs
2.9375
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EstudoDDDTDD.Helpers.Tests { [TestClass] public class TextoHelperTests { [TestMethod] public void TextoHelper_Re...
7506438a1314f392dda0f0f67882d720f4b6dcf9
C#
basteg/XO
/CrossZero/CrossZero.Lesson1/LogicGame.cs
2.828125
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CrossZero.Lesson1 { public class LogicGame { public StateGame State { get; private set; } public FieldGame[] Fields { get; private set; } ...
1dcf25755d807d1e70b30ae6d672bbaf3532665d
C#
aspnet/samples
/samples/aspnet/WebApi/WebApiAttributeRoutingSample/WebApiAttributeRoutingSample/Areas/HelpPage/SampleGeneration/ImageSample.cs
3.125
3
using System; namespace WebApiAttributeRoutingSample.Areas.HelpPage { /// <summary> /// This represents an image sample on the help page. There's a display template named ImageSample associated with this class. /// </summary> public class ImageSample { /// <summary> /// Initializes ...
8e75e2f4c0e60ad9cfffb95fe0b70c8cd5b600a8
C#
fourtf/chatterino
/Chatterino.Common/ChatClearedEventArgs.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Chatterino.Common { public class ChatClearedEventArgs : EventArgs { public string Channel { get; private set; } public string User { get; private set; } public ...
50ca3db355f37b56455bb6f4d9ee3e704a210162
C#
jziancheng/CapyCSS
/CapybaraVS/Script/CbByte.cs
2.828125
3
using System; namespace CapybaraVS.Script { /// <summary> /// byte 型 /// </summary> public class CbByte : BaseCbValueClass<byte> , ICbValueClass<byte> { public override Type MyType => typeof(CbByte); public CbByte(byte n = 0, string name = "") { ...
3e303049ea862c5ccb1cb782d5dc646a10cca58e
C#
henningst/AppHealth
/DucksboardClient/Client.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using RestSharp; namespace DucksboardClient { public class Client { public string Push(string widget, object values) { var client = new RestClient()...
21e84c6c9eef02dbd5cea2c214e1cb6fb35a60ac
C#
huuhai0211/vienduongshop
/Shop.Service/ContributorService.cs
2.921875
3
using Shop.Data.Infrastructure; using Shop.Data.Repositories; using Shop.Model.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Shop.Service { public interface IContributorService { Contributor Add(Contributor contrib...
d79587ad9b8f7cf6f56d533fcc01f2a3345c423a
C#
tzAcee/photonized
/photoniced/common/ImpInterpreter.cs
2.875
3
using photoniced.essentials.ConsoleUnitWrapper; using System; using System.Collections.Generic; using System.Text; namespace photoniced.common { public class UserInput : IContext { public IDictionary<string, object> Result { get; } = new Dictionary<string, object>(); public IList<string> Err...
dbb0cf6cc058c214039fa6674d44f743a41f0cf4
C#
DavidZhang309/CoreFramework
/Net/Event/Events.cs
2.515625
3
using System; using System.Collections.Generic; using CoreFramework.Net.Types; namespace CoreFramework.Net.Events { public class NetTypeEventArgs : EventArgs { public NetTypeEventArgs(byte id, INetMessageType handler, object data) { Handler = handler; FormattedData = da...
8ef0c77c75bbd50f88918f010937b08d8cc9b25b
C#
nimaef/SD1_2020
/Scripten_4/Week_1.5_ArrayRoulettePlus/Program.cs
3.4375
3
using System; namespace Week_1._5_ArrayRoulettePlus { class Program { static void Main(string[] args) { // array met bools, een stukje Russian Roulette Random rnd = new Random(); bool[] revolver = new bool[6]; bool alive = true; bool ...
47d79964f0033714578d8e57952ea65366ce49c3
C#
FlorianRappl/YAMP
/YAMP.Core/Errors/YAMPIfArgumentsMissing.cs
2.78125
3
namespace YAMP.Errors { using System; /// <summary> /// The if argument missing error. /// </summary> public class YAMPIfArgumentsMissing : YAMPParseError { internal YAMPIfArgumentsMissing(Int32 line, Int32 column) : base(line, column, "The if keyword requires one (1) argum...
08624c1e909128be30f49b08549d30792e52f831
C#
MhmtErsy/TelephoneDirectory
/TelephoneDirectorySolution/TelephoneDirectory.Entities/Employee.cs
2.59375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TelephoneDirectory.Entities { [Table("Employees")] ...
bc11a30306b6e63bf104c42d8f5c2281b02dd026
C#
wcox87/The-Tech-Academy-Basic-C-Sharp-Projects
/packageExpress/Program.cs
3.40625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace packageExpress { class Program { static void Main(string[] args) { Console.WriteLine("Welcome to Package Express. Please follow the instructions below."); ...
8bd37defb770e41130bf71dd681e34cb3aabc1d6
C#
hfrances/qckdev
/qckdev/Linq/Expressions/ExpressionHelper.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; using System.Text.RegularExpressions; namespace qckdev.Linq.Expressions { /// <summary> /// Provides helpful methods for Linq expressions. This class cannot be inherit...
d6e62695b4a06c29e7e93186518d34a1a5bb1190
C#
maurick/4Events
/4Events/Logic/Beheer.cs
2.890625
3
using System.Collections.Generic; using _4Events.Model; using _4Events.Database; using System.IO; using System; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; namespace _4Events.Logic { /// <summary> /// Het beheersysteem. /// </summary> public class Beheer ...
c8705848625aa2d4a1f5d05ceb950e0485a7240c
C#
webdude21/Homework
/C# part one/Loops/CardDeck/CardDeck.cs
4.28125
4
using System; class CardDeck { static void Main() { // Write a program that prints all possible cards from a standard deck of 52 cards (without jokers). // The cards should be printed with their English names. Use nested for loops and switch-case. string[] cardNames = { "Two", "Thre...
5ba35fb91b1b67e893f4c54143c51db7b4ae8ddf
C#
shendongnian/download4
/code10/1711100-49310692-169128937-2.cs
2.890625
3
public T GetItem<T>(string key, Func<T> loadItemFromDb) { object cachedItem = memoryCache.Get(key); if (cachedItem is T) return (T)cachedItem; T item = loadItemFromDb(); memoryCache.Add(key, item, somePolicy); return item; }
d7293f7da44f6e8dd81686ec364d257be095b118
C#
Katsuyuu/Library
/Library/Windows/AdminWindows/Adders/AdminAddBook.cs
2.828125
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 Library.Windows.AdminWindows.Adders { public partial class AdminAddBook : Form { ...
a29c85ae0971499e2e5b5d1680643c96594e4713
C#
vidstige/NRasterizer
/NOpenType/Tables/MaxProfile.cs
2.5625
3
using System.Collections.Generic; using System.IO; namespace NRasterizer.Tables { public class MaxProfile { private ushort _gylphCount; private MaxProfile(BinaryReader input) { var version = input.ReadUInt32(); // 0x00010000 == 1.0 _gylphCount = input.ReadUInt1...
6c7428aa34bead3a552690bbc9047a9cf4707bf6
C#
reathh/OOP
/07.Inheritance-and-Abstraction/Company Hierarchy/Sale.cs
3.625
4
using System; class Sale { private string productName; private string saleDate; private decimal price; public Sale(string productName, string saleDate, decimal price) { this.ProductName = productName; this.SaleDate = saleDate; this.Price = price; } public string P...
51d76a9862fda882ad779e667d5f192e33b15889
C#
sapiens/cavemantools
/src/CavemanTools/Model/Persistence/UniqueStore/UniqueStoreDeleteItem.cs
2.65625
3
using System; namespace CavemanTools.Model.Persistence.UniqueStore { public class UniqueStoreDeleteItem { /// <summary> /// /// </summary> /// <param name="entityId"></param> /// <param name="aspect">aspect of the data the value refers to. Eg: name, email</param> ...
7ffdb6a61ad9cc648f12aab0fcda52548363a5dc
C#
dmf463/LookingBack
/LookingBack/Assets/Scripts/TimedGazeTrigger.cs
2.953125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; //you need this to talk to UI elements, like images using UnityEngine.Events; public class TimedGazeTrigger : MonoBehaviour { //serializing exposes private vars to the inspector [SerializeField] float timeLook...
45018fae86775d265a33248263191c0c64ef0d25
C#
hathordevelopment/TutorialMyDebugApp
/MyDbgApp/Pages/About.cshtml.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.RazorPages; /// <summary> /// Application apprentissage debogage Visual Studio | Link => https://docs.microsoft.com/fr-fr/visualstudio/debugger/quickstart-debug-aspnet /// </summary> ...
9188633ec82a1d3776257ee1265dea5914364a84
C#
ncosentino/DevLeader
/RefactoringCompositionDITesting/RefactoringCompositionDITesting.UrlParsingUnitTests/UrlParsingUnitTests.cs
2.6875
3
using Xunit; namespace RefactoringCompositionDITesting.UrlParsingUnitTests { public sealed class UrlParsingUnitTests { private readonly HtmlUrlExtractor _htmlUrlExtractor; public UrlParsingUnitTests() { _htmlUrlExtractor = new HtmlUrlExtractor(); } [Fact]...
e4d8add595930b8f63776b59c3e07c1ac6764bab
C#
13LD/KPI-Study
/Labs_Sem3/OOP_LAB1/OOp/Logger.cs
3.046875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OOp { public class Logger { static FileStream log; static StreamWriter writer; private Logger() { } public static void Init() ...
f02b7b02ef688b880381465cef4630f2bbd8b998
C#
xeonye/MissionskyOA
/MissionskyOA.Services/BookBorrowService.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MissionskyOA.Core.Enum; using MissionskyOA.Data; using MissionskyOA.Models; namespace MissionskyOA.Services { /// <summary> /// 图书借阅处理类 /// </summary> public class BookBorrowServic...
89670c478755d7d6efc4a57d66de2dc4bd41251a
C#
mdryden/JsonApi.Net
/src/mdryden.JsonApi/IMetaExtensions.cs
2.671875
3
namespace mdryden.JsonApi { public static class IMetaExtensions { public static void AddMeta(this IMeta target, string key, object value) { if (target.Meta == null) { target.Meta = new MetaCollection(); } target.Meta.Add(key, value); } public static void AddMeta(this IMeta target, MetaColle...
d264b5e19c182b35867910569167865313ca019d
C#
stephaniacc93/ReactiveAgent
/ReactiveAgent/ReactiveAgent/FabricaDeAcciones.cs
2.671875
3
using System; using System.Collections.Generic; using System.Data.SqlTypes; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReactiveAgent { public static class FabricaDeAcciones { private static State State { get; set; } public static Operation CrearUnaAccion(Sta...
2c5468d08db123c10f50f457883c2a063002bf62
C#
veso266/WolfBot-DiscordMusicBot
/WolfBot/ext/project/DSharpPlus.VoiceNext/DiscordClientExtensions.cs
2.546875
3
using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading.Tasks; using DSharpPlus.Entities; namespace DSharpPlus.VoiceNext { // Token: 0x02000003 RID: 3 public static class DiscordClientExtensions { /// <summary> /// Creates a new VoiceNext client with defaul...