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
80a6408c9f529e9b4bf9cfc05545fc4745e09eaa
C#
csjwhat/CSharpOpenXMLSample
/AccessPowerPointFIle/AccessPowerPointFIle/Program.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AccessPowerPointFIle.PowerPointAccessSamle; namespace AccessPowerPointFIle { class Program { static void Main(string[] args) { // ファイル読み込みサンプル // h...
eca7d2eb34353f50994e4187919287f0dbeae672
C#
EvilCalf/Personal-property-management-system
/common.cs
2.671875
3
using System; using System.Security.Cryptography; namespace 个人财产管理系统 { class Common { Database db = new Database ( ); //生成md5加密后的字符串 public string Md5 ( string pwd ) { string returnPwd = ""; MD5 md5 = MD5.Create ( ); byte [] bytes = System.Te...
3d204547409044244b6245f5e814dc805a8899aa
C#
FlyingNarwhalInteractive/JeevesMajor
/Assets/Scripts/BaronFindTasksTaggedisBaron.cs
2.703125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BaronFindTasksTaggedisBaron : MonoBehaviour { public Task currentTask = null; NotTheRealAI ai; // Use this for initialization void Start () { ai = GetComponent<NotTheRealAI>(); } // Update is called on...
531b82f58c2e03997c6b981f99a4dbc2210cf254
C#
dragobaltov/Programming-Basics-And-Fundamentals
/IncreasingCrisis/IncreasingCrisis/Program.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IncreasingCrisis { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); List<int> resultList = new List<int>...
f29aa662e605169cb799b5d5ce3d0c32ae3d119a
C#
102-rvb/essentials
/Login.cs
2.609375
3
using System; using System.Diagnostics; 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 API = _102_Essentials.API; namespace _102_Essentials { public partia...
9fa9280bba7147c8b4a3b85cb6b2df4ff20da10f
C#
shookt/CS_Chapter2
/CS_Chapter2/DoubleDecimalTest/Program.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DoubleDecimalTest { class Program { static void Main(string[] args) { double someMoney = 5.25; Console.WriteLine("The money is ${0}", someMoney); decimal someDeci...
73e69202df14d37f1727d8d43deb80333e1a6abc
C#
Nastusya-max/Chernyavskaya-ITI-31-programming-graphics-and-sound-coursework
/GameEngine/Graphics/Camera.cs
2.671875
3
using SharpDX; namespace GameEngine.Graphics { public class Camera : Game3DObject { protected float _fovY; public float FOVY { get => _fovY; set => _fovY = value; } protected float _aspect; public float Aspect { get => _aspect; set => _aspect = value; } protected floa...
5e816b97770094d026232f1582bfd7bc5eeef5dc
C#
DuongThan/Exercise-C-
/FlapyBird/FlapyBird/OngNuoc.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace FlapyBird { class OngNuoc { private Point CurrentOngNuoc; private int roll; private List<Point> list_toadoOn; private Point curr...
3bf276c5871b401b3805fdf15d310ac1043ca3bb
C#
Sasuda/HideAndSeek
/Brendan's Scripts/Flashlight.cs
2.5625
3
using UnityEngine; using System.Collections; /// MouseLook rotates the transform based on the mouse delta. /// Minimum and Maximum values can be used to constrain the possible rotation /// To make an FPS style character: /// - Create a capsule. /// - Add the MouseLook script to the capsule. /// -> Set the mouse l...
c6a8aced7734130e6a1e62e0e94701837c986d18
C#
lyukgong/MLAPI.Cryptography
/MLAPI.Cryptography/EllipticCurves/CurvePoint.cs
2.71875
3
using MLAPI.Cryptography.Math; namespace MLAPI.Cryptography.EllipticCurves { public class CurvePoint { public static readonly CurvePoint POINT_AT_INFINITY = new CurvePoint(); public BigInteger X { get; private set; } public BigInteger Y { get; private set; } private readonly bo...
a34f62273ff738ae9a9419ab79c2716a5d7bc4c5
C#
frederickfrigieri/projeto-base
/Service/PessoaFisica/PessoaFisicaService.cs
2.828125
3
using System.Linq; using Service.PessoaFisica.Dtos; using Shared; using Shared.Persistence; namespace Service.PessoaFisica { public interface IPessoaFisicaService { ResponseApi Cadastrar(CadastrandoPessoaFisicaDto dto); ListandoPessoaFisicaDto[] ObterLista(); ResponseApi Atualizar(Edit...
7e022c782be9063bf0cc45592b1efc2c2b109fcd
C#
vtp4139/PTUD_QUANLYQUAYTHUOC_CSHARP
/DOAN_PTUD_DRUGSTORE_MANAGER_NHOM9/DOAN_PTUD_DRUGSTORE_MANAGER_NHOM9/Entities/eEmployeeType.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entities { public class eEmployeeType { string employeeTypeID, employeeTypeName; public eEmployeeType() { EmployeeTypeID = ""; Employee...
cfb95cf573c3722c80bd8c091d343e28ad4a482a
C#
szymonpiechaczek/sudoku-rest-api
/SudokuSolverService/Services/SudokuSolver.cs
2.90625
3
using Flurl.Http; using Newtonsoft.Json; using SudokuDBModel; using SudokuSolverService.Services.Interfaces; using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.W...
ddf6cd4bf06ccf7098f11ac384929d0be25db72d
C#
leechuckfon/AdventOfCode2020
/Day2/Solutions/Solution.cs
2.671875
3
using AOC.Base; using AOC.Base.Helpers; using AOC.Base.Models; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text.RegularExpressions; namespace Day2.Solutions { class Solution : Excercise<long> { List<Policy> policies = new List<Policy>(); ...
057714b13d05ed36d36be97e529a81f91d9dfd07
C#
arrebagrove/MasterDetailsComposition
/Particles2D/Models/Particle.cs
2.5625
3
using Microsoft.Graphics.Canvas; using Microsoft.Graphics.Canvas.Effects; using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; using Windows.Foundation; namespace Particles2D.Models { public class Particle { private ...
9e0173eda792967744721456b1aa37187af28a1f
C#
youngsunkr/LoggingPerformance
/EncodingPerformance/Program.cs
2.5625
3
using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using EncodingPerformance.Encoders; using LoggingPerformance.Octopus; using LoggingPerformance.TestHarness; namespace EncodingPerformance { class Program { static void Main(string[] args) { ...
b57faf5eb681821810904f8ce73c56543cd8e8a9
C#
aleksgorbach/WordLoader
/WordBaseDownloader/Program.cs
2.75
3
namespace WordBaseDownloader { using System; internal class Program { public static void Main(string[] args) { var app = new App(new WordHelpLoader()); var result = app.Start(args[0]); foreach (var word in result) { Console.WriteLine($"{word.Word}:"); foreach (var w in word.WordSet) { Consol...
dc4328ef4d51c7b37c63adc5a2ee9d82f0cca243
C#
Axovera/kalsharp
/KalSharp/Log.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace KalSharp { class Log { private TextWriter writer; public Log(string FileName) { Stream stream = new FileStream(FileName, FileMode.OpenOrCreate); ...
af7a889b39965701b1dc7a1a36e57a6f96df9871
C#
dotnetknight/DesignPatterns
/SOLID.Open-Closed/Program.cs
3.1875
3
using SOLID.Open_Closed.DEMO2; using System; using System.Collections.Generic; namespace SOLID.Open_Closed { class Program { static void Main(string[] args) { //demo1 var devCalculations = new List<BaseSalaryCalculator> { new SeniorDevSalaryCalculato...
54ca254df28ba3efb87d67835c3a94604097a7d2
C#
pleasantdevon/IT1050-DevonPleasant
/Lab03/Lab03/Lab03Question4.cs
2.875
3
using System; namespace Lab03_4 { class Program { static void Main(string[] args) { int isTrue = 522; if (isTrue <= 50) { Console.WriteLine("It is True!"); } else { Console.WriteLine("It is False...
1cd0f13e1105087d06736383b87e748aef050d53
C#
AlphaTangoIndia/excel2earth
/excel2earth/CoordinateFormat/MilitaryGridReferenceSystem.cs
2.59375
3
// CLASSIFICATION: UNCLASSIFIED using MSP.CCS; using System; using System.Runtime.InteropServices; using System.Text.RegularExpressions; namespace excel2earth { /// <summary> /// Military Grid Reference System coordinate format. /// </summary> [ClassInterface(ClassInterfaceType.AutoDual)]...
3f9c23c4568cbe017e0f5f69cd140b1627203d2f
C#
tufduck/dtj2016-08
/DungeonCrawler/Source/Code/CorePlugin/Direction.cs
3.234375
3
using System; using System.Collections.Generic; using System.Linq; using Duality; namespace DungeonCrawler { public enum Direction { None, Up, Right, Down, Left } public static class ExtMethodsDirection { public static Point2 ToPoint(this Direction direction, Point2 basePos = default(Point2)) { ...
4fdc89bfe4be078813bc74991209d79976934fe8
C#
butanfire/Advanced-Csharp
/Homework/02. ArraysSetsDictionaries/Problem 4.SequenceInMatrix/Problem04.SequenceInMatrix.cs
3.65625
4
using System.Collections.Generic; namespace Problem04.SequenceInMatrix { using System; public class SequenceInMatrix { public static void Main(string[] args) { string[,] inputMatrixExample1 = new string[3, 4] { {"ha", "fifi", "ho", "hi"}, ...
9d9878fe9ccbcc4176435955c572c9328893f8bb
C#
QuentinRmx/ITTW
/ITTW/ViewModels/MainWindowViewModel.cs
2.9375
3
using System; using System.Windows.Threading; using Prism.Commands; using Prism.Mvvm; namespace ITTW.ViewModels { /// <summary> /// View model of the main window. It manages the timer and all the features the main window has. /// </summary> public class MainWindowViewModel : BindableBase { ...
e46a0dc71630fc97abd57247ff0e3bf839fc7256
C#
TheMatiaz0/This-Game-Is-Broken
/GameJamGame/Assets/CyberExt2/CollectionManager/CollectionActionArgs.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cyberevolver { /// <summary> /// <see cref="CollectionManager{TLimit}"/> using this in events. /// </summary> /// <typeparam name="T"></typeparam> public class CollectionA...
bf9efaa484eecfc073c8ce7d547c6eb9f476a3f0
C#
l11ul1/Alex-And-Vlad-Arcade-Game
/GroupProjectAlexVlad/ShipDeck/GameLogic/MatchingManager.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml.Media.Imaging; using GroupProjectAlexVlad.MenuLogic; using Windows.UI.Xaml.Controls; namespace GroupProjectAlexVlad.ShipDeck.GameLogic { class MatchingManager { Pic...
0caa9b957023ea4c5f185ea91c078458a2086f89
C#
himanshu1365/BootcampSep2019
/Himanshu/API using ASP .NET/Flipkart/Flipkart/Controllers/OrdersController.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Flipkart.CustomModels; using Flipkart.Models; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace Flipkart.Controllers { [Produces("application/json")] [Route("api/Orders")] public...
bdbde4e610eaa34db1fc4b76f49a786b3fd05ea5
C#
gnzandrs/AWSExplorer
/AWSExplorer/Objects/Profile.cs
2.734375
3
using Amazon; using Amazon.Runtime.CredentialManagement; using System; using System.IO; namespace AWSS3Explorer.Objects { public class Profile { private string profileName; private string accessKey; private string secretKey; private string windowsUserPath; public Profi...
d701c16c2a7c55fa6ed84b6c6b8cc806c9efcfa1
C#
FanapSoft/pod-fundamental-services-csharp
/POD_Base_Service/Model/ValueObject/AddTagTreeCategoryVo.cs
2.640625
3
using System.ComponentModel.DataAnnotations; using System.Linq; using POD_Base_Service.Base; using POD_Base_Service.Exception; namespace POD_Base_Service.Model.ValueObject { public class AddTagTreeCategoryVo { public static Builder ConcreteBuilder => new Builder(); public string Name { get; } ...
031df0646f71dbba3550b55c45145fa01c44ea03
C#
ShellyPamela1607/api_empleados_puestos
/Controllers/PuestosController.cs
2.890625
3
using Microsoft.AspNetCore.Mvc; using System.Linq; using System.Threading.Tasks; using web_api_empresa.Models; namespace web_api_empresa.Controllers{ [Route("api/[controller]")] public class PuestosController : Controller { private Conexion dbConexion; public PuestosController(){ dbConexion = Conect...
ff92bd06bad6d862847afb0b351449dab46c156a
C#
rcabot/uzuutil
/Source/Container/SmartList.cs
3.359375
3
using UnityEngine; using System.Collections.Generic; namespace Uzu { /// <summary> /// This improved version of the System.Collections.Generic.List that doesn't release the buffer on Clear(), /// resulting in better performance and less garbage collection. /// </summary> public class SmartList<T> ...
61e54891987ae0e6301e64493273c527af5448f8
C#
Mark-Cooper-Janssen-Vooles/csharp-exercism
/rotational-cipher/RotationalCipher.cs
3.578125
4
using System; using System.Collections.Generic; public static class RotationalCipher { public static string Rotate(string text, int shiftKey) { // text = text.ToLower(); var returnList = new List<string>(); System.Console.WriteLine(text); var alphabet = new List<char>() { ...
f2af3b34d577229c6a561d54111904c9ec477157
C#
giosue2812/Api.Movie.Fan
/DAL_Movie/Repositories/MovieRepositry.cs
2.75
3
using DAL_Movie.Entities; using DAL_Movie.Mappers; using DAL_Movie.ModelView.Movie; using DAL_Movie.Repositories.Interfaces; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using Tool.Connection.DB; namespace DAL_Movie.Repositories...
4f5b3c5dbd09bae0f9bf4008595307cc91e2e290
C#
R0bari/LearnBenchmark
/BenchmarkEnumToString.cs
2.78125
3
using BenchmarkDotNet.Attributes; namespace LearnBenchmark { [MemoryDiagnoser] public class BenchmarkEnumToString { [Benchmark] public string NativeEnumToString() { return DaysOfWeek.Monday.ToString(); } [Benchmark] public string FastEnumToStrin...
2308fba8ac87968ce8952a664c154228fe1abc82
C#
watsug/JcShellFormat
/JcShellFormat/Nodes/BerLengthNode.cs
2.921875
3
namespace Watsug.JcShellFormat.Nodes { public class BerLengthNode : LengthBaseNode { public BerLengthNode(IExpressionNode parent) : base(parent) { } protected override string LengthToString(int length) { if (length <= 0x7f) { retu...
4a59536b91453c96f447336d696a618e226fd621
C#
fsuskate/ProgrammerTest
/CustomerDemoIOC/PersistToXMLFile.cs
3.1875
3
using System; using System.IO; using System.Reflection; using System.Xml; using System.Xml.Serialization; namespace CustomerDemoIOC { public class PersistToXMLFile : IPersistData { /// <summary> /// Save to a xml files with name constructed from the Id. /// </summary> public vo...
9c3b46060e19804fe692c1529c52c02693c6d05d
C#
qinfangge/Gift
/Utils/HtmlHelper.cs
2.515625
3
using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Web.UI.WebControls; namespace tk.tingyuxuan.utils { public class HtmlHelper { /// <summary> /// 根据图片路径生成img 标签 /// </summary> /// <param name="imagePath">图片路径</...
fcdfcec4bcac2f0a88ed9ca74d843a6a5b061fd2
C#
todoOverflow/csharp-nine-cookbook
/CSharp9Cookbook/Chapter07/Section-07-06/Program.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; namespace Section_07_06 { class Program { static void Main() { string poJson = new PurchaseOrderService() .Get(poID: 123); JsonElem...
27789ae90ccc8fe42448a803bb10641c3c735638
C#
nrspring/calculator
/Calculator.Test/Services/ExpressionProcessor.cs
2.8125
3
using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Calculator.Test.Services { [TestClass] public class ExpressionProcessor { [TestMethod] public void DoesTheProcessorReturnCorrectValuesForIsValid() { var items =...
5ad279c2c7a99510c5b6d3bd2cd9eb08c296cedd
C#
altima/windows-phone
/OwnCloud/OwnCloud/Data/Calendar/Parsing/ParserNodeToken.cs
2.875
3
using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; using System.Linq; using OwnCloud.Data.Exceptions; namespace OwnCloud.Data.Calendar.Parsing { class ParserNodeToken { private const string TokenBegin = "BEGIN"; private const string TokenEnd = "END"; ...
862678ef5c87caeca0e4967445d18f59ed7198d6
C#
kmukul123/SystemSleeep
/SystemSleeep/IdleTimer.cs
2.765625
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Timers; namespace SystemSleeep { // A delegate type for hooking up Idle notifications. public delegate void IdleTimeReachedEventHandler(object ...
6d8c743002a334cc918902082e5044d35c0b8df2
C#
gromorth/InternetowyFizzBuzz
/Models/FizzBuzz.cs
3.0625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using InternetowyFizzBuzz.Models; namespace InternetowyFizzBuzz.Models { public class FizzBuzz { [Display(Name = " ")] [Range(1, 1000),] public...
17d75c7260559c2861bcceba681fcd12a1946cfd
C#
dragonrossa/GroceryStore
/TaxMEF/Program.cs
2.53125
3
using System; using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; using TaxMEF.Models; namespace TaxMEF { class Program { private CompositionContainer _container; [Import(typeof(IRepository))] private IRepository helloWorld; private Prog...
64c1ceb105b4dd6d9b5a7305a62098f377ea0edb
C#
laxmithapavu/APTA
/Data/DbInitializer.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using APTA.Data; using APTA.Models; namespace APTA.Data { public class DbInitializer { public static void Initialize(ConferenceContext context) { context.Database.EnsureCreated(); ...
74f892a921b5a4ed7bab37e36f0cb8af202d8c9d
C#
mehtarit/LeetCode
/problems/candy_crush/solution.cs
3.40625
3
public static class Extensions { public static void Add(this HashSet<Tuple<int, int>> set, List<Tuple<int, int>> listOfPairs){ foreach(var pair in listOfPairs){ if(!set.Contains(pair)) set.Add(pair); } } } public class Solution { public void CrushCandies(int[][] board, Hash...
b557cebc694595b8428f7c7923feabd909b18330
C#
kreca95/aspDotnetAPI
/authAPI/Controllers/TestController.cs
2.65625
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Security.Claims; using System.Web.Http; namespace authAPI.Controllers { public class TestController : ApiController { // GET: api/Test [AllowAnonymous] [HttpGet] ...
4d0d137901cb57790d86b5fd4815e4577a25013d
C#
dominikmik195/FraudPianist
/Projekt/MainMenu.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace piano { /// <summary> /// Klasa (user control) koja predstavlja glavni izbornik igre. ...
c38ac1343a40f47c578309f48d9c9f38b04b9fef
C#
carlosflorencio/PC_ISEL
/Serie3/ServidorAPM/LoggerThread.cs
3.234375
3
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Threading; namespace ServidorAPM { internal class LoggerThread { // Thread safe ConcurrentQueue with blocking functionality private BlockingCollection<string> _queue; privat...
ac68e722f778b70242772cbf61d832d212bdef4c
C#
ArdaCemBilecan/MVC-And-CSharp
/OperatorOverLoading/KarmasikSayi.cs
3.34375
3
using System; using System.Collections.Generic; using System.Text; namespace OperatorOverLoading { class KarmasikSayi { private double mGercek; private double mSanal; public double Gercek { get { return mGercek; } set { mGercek = value; } } ...
b4e55af37568548388f7dd626103ab149abe71c4
C#
syed-afzal/Owin-OAuth2-SelfHosting
/testingOwin/PeopleController.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.Http; namespace testingOwin { [Authorize] public class PeopleController : ApiController { private readonly List<Person> _people; public PeopleController() ...
e782ffb1491724ac4ff15ee768a6b6561fe62118
C#
heshko/Mvc-IdentityUser-Roles-and-Claims--c-sharp
/IdentityWithAhmadRabie/Helpers/ModelNameValidation.cs
2.859375
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace IdentityWithAhmadRabie.Helpers { public class ModelNameValidation :ValidationAttribute { private string _modelName; public ModelNameValidatio...
e7d27717af95d436da30ae85a422e847e42d949f
C#
bcgov/PIMS
/backend/core/Extensions/QueryableExtensions.cs
3.0625
3
using System; using System.Linq; using System.Linq.Expressions; using System.Reflection; namespace Pims.Core.Extensions { /// <summary> /// QueryableExtensions static class, provides extension methods for IQueryable. /// </summary> public static class QueryableExtensions { #region Variables...
6f656d8976018b9c7af03c2278eb0cff2315f5dc
C#
cshung/ProjectEuler
/old/Euler/Problem080/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Numerics; using Common; namespace Problem080 { class Program { static void Main(string[] args) { var squares = new HashSet<int>(Enumerable.Range(1, 10).Select(t => t * t)); ...
52840c779cf92d958269b3d9539a21d014c4bf83
C#
mehmetutkuk/BlackjackImplementation
/BlackjackImplementation/Game.cs
3.21875
3
using System; using System.Collections.Generic; namespace BlackjackImplementation { public class Game { public int CuttentPlayerCount = 0; public int RoundCount = 0; public Player WinnerPlayer; public List<GenericCards> GameCards = new List<GenericCards>(); public List<...
340f9a6312fd2408636d893e634d8d083c094766
C#
catahoc/ClimatePicking
/srv/ClimatePicking.DataRetriever/LoadClimatesScript.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using ClimatePicking.Domain; namespace ClimatePicking.DataRetriever { public class LoadClimatesScript { public static void Do() { using (var context = new ClimateContext()) ...
fb936f2b8d4c1058b8f5468e3d1f7ebede78fcd3
C#
shendongnian/download4
/latest_version_download2/121197-23933427-66187403-2.cs
3.46875
3
using System.IO; using System.Text; public void WriteToTextFile (DataGridView dgv) { String file_name = "D:\\test1.txt"; using (StreamWriter objWriter = new StreamWriter(file_name)) { for (Int32 row = 0; row < dgv.Rows.Count - 1; row++) { StringBuilder sb = new...
d380a12d602f08ee2d7da9ad60f8e84cb25e68b7
C#
tweakch/PdcFramework
/Pdc.System/Component/Connector/ChannelCollectionSelector.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; namespace Pdc.System.Component.Connector { /// <summary> /// Passive component /// </summary> internal class ChannelCollectionSelector : DefaultChannelsSelector { public ChannelCollectionSelector(IChannelsCollection chan...
82e41df7da02f6c736f161f07e9a07a2669240e4
C#
unzreham/Builder
/DP_Project1/DP_Project1/Program.cs
3.53125
4
/*using System; namespace DP_Project1 { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); } } }*/ using System; using System.Collections.Generic; namespace DP_Project1 { public interface PizzaBuilder { void Reset()...
ba2ad4f47d6fb9bef4a1968c0e3417357af93f8d
C#
Fowindy/EssentialCSharp_7.0
/Src/Chapter02.数据类型.Test/Listing02_13.用字符反斜杠n插入换行符.Test.cs
2.546875
3
/* ============================================================================== * 功能描述(Description): * * 作者(Author):Fowindy * * 日期(Create Date):2020年7月24日 星期五 01:15:17 * * 修改记录(Revision History): * R1: * 修改作者:Fowindy * 修改日期:2020年7月24日 星期五 01:15:17 * 修改理由:创建文档 * ========...
db281d28aa5cf79a820f7c238e186d1d17b46535
C#
Azure/azure-sdk-for-net
/sdk/eventhub/Azure.Messaging.EventHubs/src/Primitives/EventProcessorOptions.cs
2.609375
3
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.ComponentModel; using Azure.Core; using Azure.Messaging.EventHubs.Consumer; using Azure.Messaging.EventHubs.Core; using Azure.Messaging.EventHubs.Processor; namespace Azure.Messaging.EventHubs.P...
399e75230ebdf5d45d9e5ebe264b379c190563df
C#
itzikya/.NET-Course--Ex1-Basics
/B18_Ex01_05/Program.cs
3.953125
4
using System; namespace B18_Ex01_05 { public class Program { public static void Main() { RunB18_Ex01_05(); } public static void RunB18_Ex01_05() { Console.WriteLine("Please insert 6 digits natural number, and than press enter"); stri...
fc03498065341fcd1c88f5d4927cc67b6a644a82
C#
studiofowl/cyclical_game
/Assets/Scripts/Background Graphics/BackgroundShapesLogic.cs
2.75
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BackgroundShapesLogic : MonoBehaviour { // this is clearly the most important factor for performance and should not be too high for now public int numOfGraphics = 200; // decides if for the "sketchy" effect if the...
8a9f2a21e5090fcd75d2fc50cd23e711dfa8e151
C#
kkoding92/UnitySimpleAsset
/Assets/3.Drag&Drop/TableView/ShopItemTableViewController.cs
2.578125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; [RequireComponent(typeof(ScrollRect))] public class ShopItemTableViewController : TableViewController<ShopItemData> // TableViewController<T>클래스를 상속 { // 리스트 항목의 데이터를 읽어 들이는 메서드 private void LoadData() { ...
04c8293365c11e2cebd07e4c8519851d5aedcef0
C#
johnmalbert/training-algos
/oop_practice/Horse.cs
3.796875
4
using System; namespace oop_practice { class Horse : IRideable { // a horse can have its own unique attributes public string Name; public double Endurance; // implementing DistanceTraveled a bit differently from a Car, // only requirement here, is that it has a prope...
2905a653fe2d586bfb9e8d3c9c4631c981b018b4
C#
zealand2019e/ticketsystem-LvMatt
/TestTicketProject/UnitTest1.cs
2.703125
3
using Microsoft.VisualStudio.TestTools.UnitTesting; using ClassLibrary; namespace TestTicketProject { [TestClass] public class UnitTest1 { Car car = new Car(); MC mc = new MC(); [TestMethod] public void TestCarPrice() { // Arrange // Act ...
522bf299185381052504c4f6ef9e0eb138dab632
C#
KolomoietsKostiantyn/Task2_AnalysisEnvelopes
/Task2_ AnalysisOfEnvelopesV2/Task2_AnalysisOfEnvelopes.Test/BL/EnvelopeCreatorTest.cs
2.9375
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Task2_AnalysisOfEnvelopes.BL; namespace Task2_AnalysisOfEnvelopes.Test.BL { [TestClass] public class EnvelopeCreatorTest { [TestMethod] public void CreateEnvelope_MinusValue_Null() { double side1 =...
45712ecdbe9ddcde32fcb9e7e7db18545db2b9d8
C#
mallickhruday/MicroElements
/src/MicroElements.DependencyInjection/AssemblyLoader.cs
2.8125
3
// Copyright (c) MicroElements. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.IO; using System.Linq; using System.Reflection; using System.Text.RegularExpressions; namespace MicroElements.DependencyInjection { /// <summary> ...
8cc340a2a652fcc0e21d090bbb697ea2ba129390
C#
AntiTcb/DiscordBots
/src/BCL/Modules/Admin/AdminModule.cs
2.59375
3
namespace BCL.Modules.Admin { using System.Threading.Tasks; using Discord; using Discord.Commands; [Name("Admin")] [RequireUserPermission(GuildPermission.ManageGuild, Group = "Permissions"), RequireOwner(Group = "Permissions")] [RequireContext(ContextType.Guild)] public class AdminModule ...
6b671c1c6cfa726bd12156355b139b88aba94c97
C#
ziaddalaa/Contacts
/Contacts/Contact.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Contacts { class Contact { private string firstName; private string lastName; private string phone; public string FirstName { get {...
4f978d1c546477ace63f8f14a396b6ad34bf552f
C#
dlydianov/SoftwareUniversity
/Object-Oriented-Programming/Labs/Defining Classes/Defining Classes/DefiningClasses.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Defining_Classes { class Program { static void Main() { Console.Write("Ime na kucheto: "); string dogName = Console.Read...
132a88230d2705f4aedfeeb52be872b7b8360033
C#
shendongnian/download4
/code2/254265-5096879-124766523-2.cs
3.15625
3
// verify that IP consists of 4 parts if (value.Split(new char[] { '.' }, StringSplitOptions.RemoveEmptyEntries).Length == 4) { IPAddress ipAddr; if (IPAddress.TryParse(value, out ipAddr)) { // IP is valid } else // invalid IP } else ...
85e51049c70a3dc058e73e756bb1557adffd8294
C#
VisualAcademy/DotNet
/DotNet/DotNet/24_Class/01_ClassNote/ClassNote.cs
3.28125
3
// <예제> 클래스 레벨의 메서드 호출: ClassNote.cs using System; class ClassNote { static void Run() { Console.WriteLine("ClassNote 클래스의 Run 메서드"); } static void Main() { Run(); //[1] 메서드 레벨: 같은 클래스의 메서드 호출 ClassNote.Run(); //[2] 클래스 레벨: 클래스.메서드() 형태로 호출 } }
8563ae56cefb0eabce1978f1372e5ec67d0600f7
C#
UoY-Tur1ng/Project-Desktop
/Assets/Scripts/BaseCollider.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class BaseCollider : MonoBehaviour { public int BaseHP; public Text HPText; public Text GameOverText; private void Start() { SetHPText(); GameOverText.text = ""; } ...
03b7f9125fb6ffc2b5d28fa184ad3b243b6ea43c
C#
play3577/omegaGo.Core
/LiveGame/GameBase.cs
2.828125
3
using OmegaGo.Core.Game; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OmegaGo.Core.Modes.LiveGame { /// <summary> /// Base abstract class for a game /// </summary> public abstract class GameBase<TGameInfo, TGameController...
ddddc5457b496360cc138878fc8405f017a37029
C#
xamarin/monodroid-samples
/android-n/DirectBoot/Alarms/AlarmStorage.cs
2.859375
3
using System; using System.Collections.Generic; using Android.Content; using Android.OS; using Android.Util; namespace DirectBoot { /** * Class responsible for saving/retrieving alarms. This class uses SharedPreferences as storage. */ public class AlarmStorage { static readonly string TAG = typeof(AlarmStora...
a50f40048e21813b0d157d84edb56f251ec8ae6e
C#
luzianz/LZ
/LZ.Security.Cryptography/KeyedHashAlgorithm.cs
2.90625
3
using System; using C = System.Security.Cryptography; namespace LZ.Security.Cryptography { public class KeyedHashAlgorithm : IDisposable { private readonly C.KeyedHashAlgorithm alg; public KeyedHashAlgorithm(HashAlgorithmNames algorithm) { switch (algorithm) { case HashAlgorithmNames.Sha1: alg = n...
cb5a4a83f1bccfa47cfb8fd9994fdcc8f855085c
C#
giuroperto/dotnet-practice
/Aluno.cs
2.625
3
namespace Revisao { //ideal que aluno fosse uma class, mas como é um exemplo muito simples, será uma struct public struct Aluno { //cria linha de uma propriedade para a struct/classe //propriedade se caracteriza pelo get/set e podemos alterar a implementação desses para fazer tratativas no m...
c47c6887f09b06207477185e5cc6f0fb0b693866
C#
matrix0123456789/Syntezator-Krawczyka
/Syntezator Krawczyka/SkładoweHarmoniczne.cs
2.625
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Xml; namespace Syntezator_Krawczyka { public class SkładoweHarmoniczne : FalaNiestandardowa { public List<int> gpgpu { get { ...
113f49d72dbf0355eb064e639315fc7c9383eb1b
C#
garnhold/CrunchyBox
/CrunchyDough/AttachedObjectField/AttachedObjectField.cs
2.796875
3
using System; using System.Collections; using System.Collections.Generic; namespace Crunchy.Dough { public class AttachedObjectField<DECLARING_TYPE, FIELD_TYPE> where DECLARING_TYPE : class { private ObjectTable<DECLARING_TYPE, FIELD_TYPE> table; private Operation<FIELD_TYPE, DECLARING_TYPE> op...
9e07a8f3921d81f9a02f2777fda05deaed048abf
C#
295665210/500LineEveryDay
/DotNetFoundation/CodeFrame/CSharpTutorialUtilityEdition/Chapter1/F10403StrucType.cs
3.4375
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace FConsoleMain.CSharpTutorialUtilityEdition.Chapter1 { /* *CSharpTutorialUtilityEdition C#教程实用版 * 1.4.3 结构类型 */ ...
e731a57e385494d8f6b7b50060d90fef4e07b6d2
C#
willoftw/AOC
/AOC8.Tests/UnitTest1.cs
2.8125
3
using System.Reflection; using System; using Xunit; using AOC8; using System.IO; using System.Collections.Generic; using System.Linq; namespace AOC8.Tests { public class UnitTest1 { public List<string> ParseInput(string filename) { List<string> ret = new List<string>...
3d4190a8de001013882635b2378faf2e396f8065
C#
AvaloniaUI/Avalonia
/src/Avalonia.Controls/Utils/CollectionUtils.cs
2.78125
3
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Avalonia.Controls.Utils { internal static class CollectionUtils { public ...
a420b331e775520f42db3030839bd5a09ee7e6ca
C#
Nadializcano/FriendLetter
/FriendLetter/Controllers/HomeController.cs
3.1875
3
using Microsoft.AspNetCore.Mvc; using FriendLetter.Models; namespace FriendLetter.Controllers { //By adding : Controller to our HomeController class, we tell .NET that HomeController should inherit or extend functionality from ASP.NET Core's built-in Controller class public class HomeController : Controller { ...
fe4de2186b714a3df21ccec7e97e0cddce2f97ec
C#
Dreammaster13/User-SignupMVC
/src/UserSignup/Controllers/UserController.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using UserSignup.Models; // For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 namespace UserSignup.Controllers { public class...
ac9cba43196ad794c01c31ea51a33bd6178818bb
C#
damiangrzegocki/DevicesDotNetApi
/JobInterviewTask/Controllers/DevicesController.cs
2.671875
3
using JobInterviewTask.Domain.Models; using JobInterviewTask.Domain.Services; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Threading.Tasks; using JobInterviewTask.Extensions; using System; namespace JobInterviewTask.Controllers { [Route("/api/[controller]")] public class Devi...
7c66a22b33f5723dc17b926f9f1898db0c62ea3d
C#
fabulousElena/CsharpCodeSpace
/Csharp/TestDemo/restaurantManager/restaurantManager/MySQLHelper.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using MySql.Data.MySqlClient; using System.Data; namespace restaurantManager { public static class MySQLHelper { //从配置文件中读取链接字符串 private static string...
8830319f0fd0a85cd1821112846deb4e93a9825b
C#
Lucashss/Projetos_C_Sharp
/Projetos/Volume Livre.cs
3.359375
3
double r, a, volume; Console.WriteLine("Volume Livre"); Console.WriteLine("Digite o valor do raio: "); r = double.Parse(Console.ReadLine()); Console.WriteLine("Digite o valor da aresta: "); a = double.Parse(Console.ReadLine()); volume = ((a * a * a) ...
e2dfdfde1a9f586b6f6865bb41dbd8c91e6e6d64
C#
alexhebert90/MusicSharp
/MusicSharp.Tests/NoteNames.cs
2.90625
3
using Xunit; namespace MusicSharp.Tests { public class NoteNamesTests { [Fact] public void VerifyNoteNames() { // As basic as this test is, it is here to make sure I don't make any incredibly dumb mistakes in the future. Assert.Equal("A", NoteNames.A); ...
c1e507300a1508966a9833d5c9fb47665f86c53e
C#
krzysz33/KOMPLETACJA
/SzybkaKompletacja/Common/DataCoding.cs
2.875
3
using System; using System.Collections.Generic; using System.Text; namespace Global.Common { public class DataCoding { #region 字 段 #endregion #region 属 性 #endregion #region 构造函数 #endregion #region 基本方法 /// <summary> /// ...
9831942fe7c9c3be273b302aaf87f95646bb4ecb
C#
Jonathan-Asencio/JobSearchAPI
/putavettoworkAPI/Repository/JobSearchRepository.cs
2.765625
3
using putavettoworkAPI.Data; using putavettoworkAPI.Models; using putavettoworkAPI.Repository.iRepository; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace putavettoworkAPI.Repository { public class JobSearchRepository : iJobSearchRepository { ...
a4ee382c29e2dafa9ae620f385b61630c0599661
C#
murat-inal/MuratInal_Kodluyoruz_Yemeksepeti_Bootcamp_Homeworks
/MuratInal_BackEnd_Homework4/Homework_4_Q3/NonsenseExpressions/Program.cs
3.828125
4
using System; namespace NonsenseExpressions { class Program { static void Main(string[] args) { Console.WriteLine("Enter your age"); int age = Convert.ToInt32(Console.ReadLine()); /* --------- Wrong Usage ----------------- if (age > 65) ...
4e1a407cf53848b5aa20ead29811286ac53f027e
C#
KurzaevAndrey/-
/практики ЯП/Практика 9/WindowsFormsAppPract9/WindowsFormsAppPract9/Form1.cs
2.71875
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 WindowsFormsAppPract9 { public partial class Form1 : Form { Random _rnd ...
4bf59934fd239e639f09031488e9e583ddee3d2d
C#
mikk5851/Informationssystemer-Kvalitet
/Kvalitet/Domain/SalesOrderLine.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Domain { public class SaleOrderLine { public Status status; public Product Product; public int Quantity; public double Price; private int index;...
5b5eb4281b3f584a158c8937f9bc512381d8b8f2
C#
achmurali/PracticeCodes
/Leetcode/Trees/SameTree.cs
3.375
3
//https://leetcode.com/problems/same-tree/ public class Solution { public bool IsSameTree(TreeNode p, TreeNode q) { return TraverseTrees(p,q); } private bool TraverseTrees(TreeNode p, TreeNode q){ if(p == null && q != null || p != null && q == null) return false; el...
ad08ffaa8f5cafd32f536b222d40a4fe675b87eb
C#
jingshui127/MqttBrokerWithDashboard
/HostConfig.cs
2.578125
3
using System.IO; using Newtonsoft.Json; namespace MqttBrokerWithDashboard { public class HostConfig { public static string Filename = $"{nameof(HostConfig)}.json"; public bool HideConfigPanel = false; public int TcpPort = 1883; public int HttpPort = 5000; public stat...
78771a7413202ca16cc790997dbe64a68a5f5974
C#
AlexanderOttenhoff/TronGame
/Assets/Minigames/GameController.cs
2.734375
3
using UnityEngine; using System.Collections; public static class GameController { public enum GameType { None, DiscArena, Duelism, KingOfTheHill } public static GameType currentGame { get { return _currentGame; } private set { _currentGame = value; } } private static GameType _currentGame = Game...
afffead9b627b30645a228d3fa7ca797ea2a15b3
C#
firebase/firebase-admin-dotnet
/FirebaseAdmin/FirebaseAdmin/Messaging/ErrorInfo.cs
2.734375
3
using System.Collections.Generic; namespace FirebaseAdmin.Messaging { /// <summary> /// A topic management error. /// </summary> public sealed class ErrorInfo { private static readonly string UnknownError = "unknown-error"; // Server error codes as defined in https://developers.go...
a6af17c457c377e0740b5203704d8194b929e800
C#
tjddbs4060/NyamNyang
/XMLManager.cs
2.625
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using System.IO; using System.Xml; using System.Xml.Serialization; public static class XMLManager<T> { public static List<T> Load(string path) { List<T> xml = new List<T>(); if (path.E...
c4350c2d9f4333791dc5716c6af65ba079ccdc29
C#
vnjohnezequote/Estimate
/DrawingModule/Helper/KeepSelectionBehavior.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using Microsoft.Xaml.Behaviors; namespace DrawingModule.Helper { public class KeepSelectionBehavior: AttachableForSty...
9191a5f92b09f80fe7c7cb83adf42298ac4c9564
C#
tparviainen/oscilloscope
/SCPI/Extensions/ValueTypeExtensions.cs
3.703125
4
using System.Globalization; namespace SCPI.Extensions { public static class ValueTypeExtensions { /// <summary> /// Checks that the value is within specified range /// </summary> /// <param name="value">Value to check</param> /// <param name="minValue">The inclusive low...