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
765df23af7097c05c4d53e8c8c5d8b4b9f125c0a
C#
sems-imuaythai/imuaythai-api
/IMuaythai.Services/MessageServices.cs
2.65625
3
using System; using System.Net; using System.Threading.Tasks; using MailKit.Net.Smtp; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using MimeKit; using SendGrid; using SendGrid.Helpers.Mail; namespace IMuaythai.Services { public class AuthMessageSender : IEmailSender, ISmsSender { ...
a23d5fde5159b4ccc648ea1cbc5bd0376c4c156e
C#
batbuild/duality
/Duality/Drawing/ColorFormat/IColorData.cs
3.40625
3
using System; namespace Duality.Drawing { /// <summary> /// A general interface for different types of color data. /// </summary> public interface IColorData { /// <summary> /// Converts the color to a <see cref="System.UInt32"/>-Rgba value. /// </summary> /// <returns></returns> int ToIntRgba(); ///...
bdfbfd18a5502fd0ff6625150b36237151a30487
C#
albert18/Pure-C--2019
/1-Begin/cSharp/cSharp/Program.cs
3.84375
4
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace cSharp { #region DataType and Questions //DataTypes //int, float, double, string, bool, //What is a Datatype? - A datatype specifies what type of Va...
f9c1f0cb07842dccc08d3624318d1e5788a4d817
C#
ananttheant/AdvancedMovementGeneticAlgorithm
/AdvancedMovementGeneticAlgo/Assets/Scripts/Brain.cs
2.609375
3
#define UseEthan using System.Collections; using System.Collections.Generic; using UnityEngine; public class Brain : MonoBehaviour { /// <summary> /// Why Two? /// Needs to make two decisions /// 1. What to do when i see the ground /// 2. What to do when i dont see the ground /// </summary> ...
32a4d28cf36ef2aec06e24cfa162303a4c5cde54
C#
loganrios/cs3280-group-proj
/Items/clsItemsSQL.cs
2.8125
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows; namespace group_proj.Items { class clsItemsSQL { /// <summary> /// Method returns a string to be used in the ite...
06343099bbead8fbee526ebb6838f443ec55e40a
C#
bligem/C-sharp
/klasy 2/klasy 2/Program.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace klasy_2 { public class Person { public string Name; public void Introduce(string to) { Console.WriteLine("Hi {0}, I am {1}", to, Name);...
25ad8a1ba8c1bbefa5871b948ba1cfde4ed81763
C#
iisfaq/tile-map-service-net5
/Src/TileMapService/Tms/CapabilitiesDocumentBuilder.cs
2.5625
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Xml; namespace TileMapService.Tms { /// <summary> /// Contains methods for creating XML documents, describing TMS resources. /// </summary> /// <see href="https://wiki.osgeo.org/wiki/Tile_Map_Se...
959c3607f55598b1abd0cf4661465f0b594c912f
C#
Pixel-Noon/An-innocent-s-curse
/Assets/Scripts/People.cs
2.578125
3
using UnityEngine; using System.Collections; public class People : MonoBehaviour{ private const double EPS = 1e-9; private bool canJump = true; private bool isGrounded; protected bool isDead = false; protected Rigidbody2D rb; protected bool isLeft = true; protected bool isCursed; protected SpriteRenderer sr...
5e338f05aade008abeac8ed8f0b46fe50a1e2721
C#
corefan/Mvc
/src/Microsoft.AspNet.Mvc.TagHelpers/TagHelperOutputExtensions.cs
2.53125
3
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNet.Mvc.Rendering; using Microsoft.AspNet.Razor.TagHelpers; names...
482144fb02077d1873025b069f2247cfaa70156e
C#
Jadugarr/LudumDare35
/Scripts/Components/NottaReeskinTextVO.cs
2.703125
3
using System; using System.Collections.Generic; namespace AssemblyCSharp { public class NottaReeskinTextVO : IMonsterTextVO { private List<string> standardLines; private string defeatLine; public NottaReeskinTextVO () { this.standardLines = new List<string> () { "I will avenge my brother!", "He ...
65217900209ca76ed517a41882e79485b0278010
C#
shijing422/bleakwind-buffet
/Data/Sides/Side.cs
2.546875
3
using System; using System.Collections.Generic; using System.Text; using BleakwindBuffet.Data.Enums; namespace BleakwindBuffet.Data.Sides { public abstract class Side { /// <value> /// the size of the side /// </value> public virtual Size Size { get; set; } /// <value> ...
ebd23b3afa8f3cdf5fccef6a78913299e3947bdf
C#
AhmedKamalAK/CS-Tasks
/Compilers Theory/Compilers_Task1/Compilers_Task1/Form1.cs
2.765625
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 Scanner; namespace Compilers_Task1 { public partial class Form1 : Form { public Fo...
529cf69bd1ef29b47dd3bd36629c095af7cd18e0
C#
Lwachira/Year-2015-Dev-Journey
/Student-Journey/Asp.Net/Andrew/Web_Controls/Web_Controls/WebForm2.aspx.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Web_Controls { public partial class WebForm2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } pr...
442782fe0605bb6e822b0017c7e834c427f8bdaf
C#
rtyamawon/ScriptTest
/Assets/Test.cs
2.96875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Boss { private int hp = 100; private int mp = 53; private int power = 25; public void Attack() { Debug.Log( this.power + "のダメージを与えた" ); } public void Magic( int takemp ) { if ( takemp < mp){ this.mp -= takem...
54d3b856974ac8d7d0d510c4eabdb2c09466fc21
C#
emilppetrov/SoftUni-Courses
/Programming Basics with C#/F07. Nested loops/1. Lab/Nested-loops-Lab/L07.CinemaTickets/Startup.cs
3.5
4
using System; namespace L07.CinemaTickets { class Program { static void Main(string[] args) { string command = ""; int totalStudent = 0; int totalStandard = 0; int totalKid = 0; int totalTiket = 0; while (comm...
00c2385fe8276e14c5eda896f5adb3f15acd739a
C#
zhonglin94/Accounts
/Accounts/Form1.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; using AccountsLibrary; using AccountsLibrary.Extensions; namespace AccountsUI { public partial class...
e7508dfc5a33b2951d6952ddbf960e1433c74476
C#
dpmm99/Omlenet
/FoodGroup.cs
2.953125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using static Omlenet.USDAFormat; namespace Omlenet { public class FoodGroup { public ushort id; public string name; public static FoodGroup FromStream(S...
0e38719b0ac9ee8b928dcd05d5486da9d0f25a77
C#
DonteWilson/Physics
/Cloth/Assets/Scripts/Mouse.cs
2.90625
3
using UnityEngine; ////Need to fix some portions of code, so that I can grab the game object correctly. ////Currently having issues public class Mouse : MonoBehaviour { /// <summary> /// Sets current game object to null /// </summary> private GameObject current = null; /// <summary> /// Gam...
59323851d662f260d74e745d21de29fb622a32b7
C#
joseherrera7/mini-java-compiler
/mini-java-compiler/Utilidades/IntegerList.cs
3.328125
3
using System; using System.Collections; using System.Text; namespace mini_java_compiler.Utilidades { public class IntegerList { private ArrayList list; public IntegerList() { list = new ArrayList(); } public int Add(int value) { return...
3d84314938fde5240639c9da45230fd20e83bc0d
C#
fyzkc/HotelReceptionApp
/HotelResepsiyon/HotelResepsiyon/RezervasyonGirisi.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SqlClient; namespace HotelResepsiyon { public partial class Rezervasy...
0090d2c69ae62508a0397b3a92181add917c7d45
C#
daenetCorporation/Daenet.Common.Logging
/Daenet.Common.Logging/Enums.cs
2.890625
3
using System; namespace Daenet.Common.Logging { /// <summary> /// Describes the who which stacktrace is shown. /// </summary> public enum StackTraceLevel { /// <summary> /// Show no Stacktrace. /// </summary> None, /// <summary> /// Shows methodnames ...
9405e426e8bf3059471f8171ee9cd314dab20096
C#
AGETOTON/RPG
/RPG/GameName1/GameClasses/Soldier.cs
2.546875
3
using System; using Microsoft.Xna.Framework.Graphics; using AgetotonRPG.GameEnums; using AgetotonRPG.GameConstants; using AgetotonRPG.GameInterfaces; using Microsoft.Xna.Framework; using System.Threading; namespace AgetotonRPG.GameClasses { public class Soldier : Creature, IJump, IShootable { priva...
32645598728c5160db56603868246bb93feb2b16
C#
jojo-WJ/SsitEngine
/Assets/SsitFramework/SsitEngine.Unity/Thirdl3/JxDebug/Scripts/EntryGroup.cs
2.8125
3
using System.Collections.Generic; using UnityEngine; namespace JxDebug { public class EntryGroup { public GUIContent content; private readonly List<Entry> entryList = new List<Entry>(); public EntryGroup( Entry entry ) { content = new GUIContent(); Add(...
a3f910d7b5cbdaefc9aab183dcb1313dfdd6fd62
C#
svrtas/AdventOfCode2020
/AdventOfCode-Day05/Program.cs
3.296875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AdventOfCode_Day05 { internal class Program { public static void Part1() { List<string> listOfBoardPasses = File.ReadAllLines("../../input.txt").ToList(); int seat_id_max = 0;...
70c0e5066e571d93b01aa756dd5e8712f2d83c89
C#
Jedycode/TextProcessing
/TextProcessing/TextItems/Text.cs
3.109375
3
using System; using System.Collections.Generic; using System.Text; using TextProcessing.Interfaces; using System.Linq; using System.IO; using System.Runtime.Serialization; using System.Xml; namespace TextProcessing.TextItems { public class Text: IText { private ICollection<ISentence> _sentences = new ...
86e2bdcf0d85ef80fb245fbe35ed213fe89f7c05
C#
gmpatel/exercise-dot-net-landsberry-and-james
/PersonalCodingStyle/AnnualLeave/Repositories/DefaultRepository.cs
2.890625
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using AnnualLeave.Core; namespace AnnualLeave.Repositories { public class DefaultRepository : IRepository { // This class will allow supporting exisitng appl...
414c4707b4b1412117ff1487cddd5a04da33706c
C#
mihail-antonov/coliseum-gamestore
/Data/EntityTypeConfiguration/GameDetailConfiguration.cs
2.546875
3
namespace Data.EntityTypeConfiguration { using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Models; public class GameDetailConfiguration : IEntityTypeConfiguration<GameDetail> { public void Configure(EntityTypeBuilder<GameDetail> builder) ...
a13956dec8ef83a72a8a985c1bdb39ca01cb1e8d
C#
zontak/CSharpHomeworks
/Homework-zontak-Вход и изход от конзолата/NumberComparer/NumberComparer.cs
2.84375
3
using System; class NumberComparer { static void Main() { int a = int.Parse(Console.ReadLine()); int b = int.Parse(Console.ReadLine()); int c = Math.Max(a, b); Console.WriteLine(c); } }
dcffdaaebd2fceb4020e76dad34669594c0d9d3b
C#
hrimar/Primeri.CSharp.Miniproject01
/MP01/Calculations/Calculations.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Calculations { public class Calculations { // Дефиниции public Formula01 F01=new Formula01(); public Formula02 F02 = new Formula02(); public Formula03 F...
30fbc9a08fa035bbe9d68cd83d7696006259e208
C#
abdul15821/C-Projects
/CSharpIronNinja/Food.cs
3.140625
3
using System; using System.Collections.Generic; namespace Hungry_Ninja { class Food : IConsumable { public string Name{get;set;} public int Calories{get;set;} public bool IsSpicy{get;set;} public bool IsSweet{get;set;} public string GetInfo() { ...
515e78c8f88c3983f6687eb0dc142a2bc467b2c3
C#
BongaDev/SerapisPatient
/SerapisPatient/SerapisPatient/Services/Data/AuthenticationService.cs
2.625
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Net.Http; using System.Text; using SerapisPatient.Models; using System.Threading.Tasks; using System.Diagnostics; using Plugin.GoogleClient.Shared; using SerapisPatient.Models.Patient; using SerapisPatient.Helpers; using SerapisPatient...
2a8f84a13569292a16a1fdbd17eb4646c0c5af28
C#
hacsonchen/wuyiju
/Wuyiju.Data/Wuyiju.DAL/CouponsDAL.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Wuyiju.Model; using Wuyiju.Core; using Wuyiju.IDAL; using Dapper; namespace Wuyiju.DAL { //ec_coupons public class CouponsDAL: BaseDAL,ICouponsDAL { public CouponsDAL(DataContext db) :...
95ce10b2bc78f6ac63f98566e2469159e3b3b41a
C#
naskobarsa/Programming-Fundamentals-2017
/02.Extented Fundamentals/18.ARRAY AND LIST ALGORITHMS - EXERCISES/05.01 Decode Radio Frequencies/Program.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() // 100/100 { List<int> radioFreqs = Console.ReadLine().Split(new char[] { ' ', '.' }).Select(int.Parse).ToList(); List<int> leftDigits = new List<int>(); List<int> rightDigits = new Li...
51e279ee11ed934351838c2e0ec82fa096ecf157
C#
philipsdoctor/opdict
/ODDictionaryTests/ODDictionaryEnumeratorTests.cs
2.9375
3
using System; using NUnit.Framework; using ODDictionary; using System.Linq; using System.Reflection; using System.Collections.Generic; namespace ODDictionaryTests { class ODDictionaryEnumeratorTests { List<KeyValuePair<String, String>> innerList; ODDictionaryEnumerator<String, String> enumerat...
454d94c935802f0b387ef08a796a654d274528dd
C#
bschwind/Graph-App
/GraphApp1/gui/SelectionFilter.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GraphApp.src.gui { public class SelectionFilter { public Type Type; public SelectionFilter(Type type) { this.Type = type; } public override bool Equals(object o...
b4ffda435d87f4e0f56dfe1569192b0f7e43ed13
C#
alexpeev9/.Net-Exercises-Computer-Science-3rd-Course
/CarsProject2021/CarsProject2021/CarExtras.cs
2.609375
3
namespace CarsProject2021 { using Models; using Repositories.CarExtraRepository; using Repositories.CarRepository; using Repositories.ExtraRepository; using System; using System.Linq; using System.Windows.Forms; public partial class CarExtras : Form { private readonly ICarEx...
1007f23c6757b5a1e3dae940a7861f32da053a39
C#
mr-krustev/Telerik-Academy-Course
/C# OOP/ExtensionMethodsDelegatesLambdaLINQ/FirstBeforeLast/Start.cs
4.15625
4
/* Problem 3. First before last Write a method that from a given array of students finds all students whose first name is before its last name alphabetically. Use LINQ query operators. ---------------------------------------- Problem 4. Age range Write a LINQ query that finds the first name and last name of all stud...
e6e39fcb4529c7358a0b77b53b1b5fd977c69649
C#
SoftwareDevWHAAM/observer
/observer/Observer/IDisplay.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //Group 7 namespace Observer { //Interface so different classes can be made in the future for displaying. interface IDisplay { void Display(float totalStockValue, Dictionary<Concret...
6a42d1b18415c287e72c81f45d31366880499164
C#
PetrovJurij/WebAppRepo
/WebAppNUnitTestClass/CompaniesServiceTestClass.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; using Moq; using Entities; using DataAccess; using VotingServices; namespace DomainNUnitTests { public class CompaniesServiceTestClass { [Test] public voi...
e4c7b73f3fa830e626dfe8324abfc71f8910738f
C#
thadius856/factorio-computer
/Statement/While.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NLua; namespace compiler { public class While:Statement { public Branch branch; public Block body; public override string ToString() { return string.Format("[While Branch={0} [{1}]]", branch, body.Count); } pu...
34cd164c4a310094a111d0875316628451c8b4ee
C#
BenasP/RowComparisonApp
/RowComparisonApp/RowComparisonApp/Form1.cs
2.921875
3
using System; using System.Collections; using System.IO; using System.Windows.Forms; namespace RowComparisonApp { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void SearchButton_Click(object sender, EventArgs e) { ...
9a1807fcecd87b02c1cc9ac5dc1debe357ca0a05
C#
AlekBro/SimpleBookList
/SimpleBookList/SimpleBookList.WcfService/Service.svc.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; using SimpleBookList.BLL.Interfaces; using SimpleBookList.Models; using SimpleBookList.Models.DataTableModels; using SimpleBookList.Models....
ccc8eeacd1c9430250e88835fd55fba15e1b49e7
C#
Ringobot/ringo
/src/Ringo.Bot.Net/Models/UserState.cs
2.6875
3
using System; namespace RingoBotNet.Models { /// <summary> /// Stores state values for Users /// </summary> public class UserState : TableEntity { public UserState() { } public UserState(string userId, string state) { PartitionKey = state; RowKey = ...
8209d7e7234a42d24caba0c4312485388d70b266
C#
McFeod/dotNetLab
/CinemaLibrary/Serialization/PlaylistXmlSerializer.cs
3.171875
3
using System.IO; using System.Xml.Serialization; using CinemaLibrary.Artifacts; using CinemaLibrary.Collections; namespace CinemaLibrary.Serialization { /// <summary> /// Сериализатор коллекции фильмов, использующий XML формат /// </summary> public class PlaylistXmlSerializer: IPlaylistSerializer<Film...
ee320513247a3db9b25bb52796d464bd5cbb2a15
C#
AutoCSer/AutoCSer
/AutoCSer/Reflection/InvokeMethodReturn.cs
2.875
3
using System; using System.Reflection; namespace AutoCSer.Reflection { /// <summary> /// 反射调用函数 /// </summary> /// <typeparam name="valueType"></typeparam> /// <typeparam name="returnType"></typeparam> internal sealed class InvokeMethodReturn<valueType, returnType> { /// <summary> ...
b9f1abf78c1211d5bca9e58f643832b7cea5615e
C#
LenHristova/SoftUni
/C# Fundamentals/OOP Basics/Defining Classes - Exercises/P05_DateModifier/DateModifier.cs
3.875
4
namespace P05_DateModifier { using System; using System.Linq; public class DateModifier { private DateTime _startDate; private DateTime _endDate; public int CalcDifference(string firstDateString, string secondDateString) { _startDate = ConvertStringToDate(f...
5bd558edc284318756963e9a4010a9ed5a10cd08
C#
malinoffx/Homework-C-Sharp-Programming
/Глава 3 - Задача 12/Program.cs
2.765625
3
using System; namespace Глава_3___Задача_12 { class Program { static void Main(string[] args) { int v = 5; int p = 1; int i = 1; int mask = i << p; if (mask == 1) { bool a = true; ...
1d1a2870664ba29b6523282574bdbdc57c804f07
C#
dotnet/wpf
/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/HandoffBehavior.cs
2.609375
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using MS.Internal.PresentationCore; // FriendAccessAllowed namespace System.Windows.Media.Animation { /// ...
212b23229e504e4065ab65892cfd306b1b3ccd60
C#
jbogard/fixie
/src/Fixie/Internal/Behaviors/InvokeMethod.cs
2.765625
3
using System; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace Fixie.Internal.Behaviors { public class InvokeMethod : CaseBehavior { public void Execute(Case @case, Action next) { try { var method = @case.Method; ...
7233d7eaee3e052e48a5c67f1503e2acd1b4a5aa
C#
Bombearo/School-Management-System
/School Management/App/Views.cs
3.359375
3
 using System; using School_Management.Utilities; namespace School_Management.App { public static partial class Views { private static void ViewStuff() { const string options = "Which kind of object do you want to add?"; const string option1 = "1. Pupil"; ...
33ba1899b1b47fd39ba89d965183f024c67bd9e5
C#
kacobp/WebApp
/WebApp.Transversal/Extensions/ExceptionExtensions.cs
3.234375
3
using WebApp.Transversales.Exceptions; using System; using System.Collections.ObjectModel; using System.Linq; using System.Text; namespace WebApp.Transversales.Extensions { /// <summary> /// Class to group the extension methods for the Exception class. /// </summary> public static class ExceptionExte...
82822b4c02aebab272e4e8ca00af06ceb7458921
C#
lulzzz/BaggyBot-2
/baggybot/src/MessagingInterface/ChatChannel.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BaggyBot.MessagingInterface { public class ChatChannel { public string Identifier { get; } public string Name { get; } public bool IsPrivateMessage { get; } public List<ChatUser> Us...
7ea98600001ef81524f4dce14d469c3a4ca529ce
C#
Shin-Yong-Jae/CodingTest_cs
/이상한문자만들기.cs
3.46875
3
public class Solution { public string solution(string s) { char[] temp = s.ToCharArray(); int checker =0; for(int i=0; i<temp.Length; i++) { if(temp[i]==' ') { checker =0; continue; } else if(checker%2==0...
c7ecfdcc17a715c48ff3c677053384f37f504dc8
C#
shendongnian/download4
/first_version_download2/75367-42687164-140196294-2.cs
2.515625
3
//test excel file Microsoft.Office.Interop.Excel.Application excel = new Microsoft.Office.Interop.Excel.Application(); Workbook workbook = excel.Workbooks.Open(System.Windows.Forms.Application.StartupPath + "/TrainedFaces/AttendanceLog.xlsx", ReadOnly: false, Editable: true); Works...
bb07ba1a1b3f5a467d3ddd35b2d73774ae1415f7
C#
AlexanderKononenko210b/NET.S.2018.Kononenko.BankAccount
/MvcPL/Controllers/ValidationController.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Web; using System.Web.Mvc; using MvcPL.Properties; namespace MvcPL.Controllers { public class ValidationController : Controller { #region Controllers /// <summary> ///...
485c410d6162195b20a4025b21c5e0abe27197b3
C#
anarslez/repo1
/C#/viewmodel/Controllers/ModelController.cs
3.046875
3
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using viewmodel.Models; namespace viewmodel.Controllers //be sure to use your own project's namespace! { public class ModelController : Controller //remember inheritance?? { //for each route this controller is to handle: [Htt...
e6c0ac6222f4cfc1ac5db34d201a11020f99d869
C#
ecyberx/vctest
/Solution1/ConsoleApp1/Program.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using System.Drawing.Printing; using System.Reflection; using System.Runtime.InteropServices; namespace ConsoleTestApp { ...
2af3aa26401bd507f1494fe730fefde18a406b0e
C#
Augogry/Dicegame
/DiceGame/SparForm.cs
2.75
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 DiceGame { public partial class SparForm : Form { private int playerRoll, enem...
abd10ef029415d9b8678c06027e0fe6b5cfcbe2e
C#
DaniilSokolyuk/SimpleRpc
/src/SimpleRpc/Reflection/Extensions/Services/Probing/TypeConverter.cs
2.734375
3
#region License // Copyright 2010 Buu Nguyen, Morten Mertner // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless require...
7238a2734df3aab68b2a874993e5921eb12abbfa
C#
luoyifengyin/LostHeart
/Assets/Scripts/Item/Inventory/Inventory.cs
2.8125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace MyGameApplication.Item.Inventory { public class Inventory : IInventory { private Dictionary<ItemType, Dictionary<int, int>> m_AllItems = new Dictionary<ItemType, Dictionary<int, int>>(); public Dictionary<int...
13a6914de7c8e46845140171be82218cb3d9a1b3
C#
Deank71/Crown_Data_Systems
/Question2/Form1.cs
2.53125
3
using Question2.Library; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Question2 { public partial ...
376c875ccc58d4f1186fe8318f8132647535b8b8
C#
svetlai/TelerikAcademy
/Programming-with-C#/High-Quality-Code/08-Defensive-Programming/02-ExceptionsHandling/SimpleMathExam.cs
3.765625
4
namespace DefensiveProgramming { using System; using DefensiveProgramming.Contracts; public class SimpleMathExam : IExam { private const int MinSolvedProblems = 0; private const int MaxSolvedProblems = 2; private int problemsSolved; public SimpleMathExam(int problems...
a7465e99c6f648d9b670270dafea854b67e31bc8
C#
EEHiatte/Lone-Vacation
/Assets/Scripts/TextBoxManager.cs
2.625
3
using UnityEngine; using System.Collections; using System.Collections.Generic; public class TextBoxManager : MonoBehaviour { public Texture Rarrow; public Texture Exit; public GUIStyle buttonStyle; public GUIStyle textStyle; public bool textBox = true; public bool start = true; public i...
11349b816353f645427ce45f6def34d9c25ad427
C#
WebsterSweden/C_Sharp
/Object5/Object5/Office.cs
3.359375
3
using System; using System.Collections.Generic; using System.Text; namespace Object5 { class Office { public Person Employee { get; set; } public Person Boss { get; set; } public Office(Person employeeParameter, Person bossParameter) { Employee = employeeParameter;...
f001970a36d1e6d2567c69037f0e1ca42acb1c35
C#
huanbv/shipper-management
/Repositories/MockInterFaces/MockConsigneeRepo.cs
3.015625
3
using System; using System.Collections.Generic; using System.Linq; using App.Repositories.DbContexts; namespace App.Models { public class MockConsigneeRepo : IConsigneeRepo { private AppDbContext dbContext; public MockConsigneeRepo(AppDbContext dbContext) { this.dbContext ...
6efae2a53499e2f1ac3fa6d8f0ad809cd8bd6b9c
C#
TwennyDev/tune-electrix-blazor
/TuneLabProject/Client/Utilities/HttpClientExtensions.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Text.Json; using System.Threading.Tasks; namespace TuneLabProject.Client.Utilities { public static class HttpClientExtensions { //SS 01/04 I rewrote ...
c1f53c20907fc21cb056320ac8ab22cbaad00a84
C#
jase10/RadioApp
/ClassesExercises/ClassesApp/Radio.cs
3.234375
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; namespace ClassesApp { public class Radio { private int _channel = 1; private bool _on = false; private int _volume = 0; string path = @"C:\Users\TECH-W96birm\Documents\RadioApp\ClassesExerc...
5b55d4650f41d4db8879c135a5f75c1a0486b719
C#
IftekharUddin/BlueTeam
/PasswordPlatformerGame/Assets/CustomScripts/BadPlatform.cs
2.703125
3
using UnityEngine; /// <summary> /// This class controls what happens when you jump on a bad password (text turn "bad" color, password evaluation falls). /// </summary> public class BadPlatform : MonoBehaviour { // the empty game object holding the password public GameObject passwordHolder; priva...
370645be9903b0dc0de74b486f4176a2ef8c2465
C#
lucassilva996/Curso_CSharp-Basico
/Estruturas05/Program.cs
3.984375
4
using System; namespace Estruturas05 { class Program { //Construtores são métodos especiais, usados para instanciar uma classe.Um construtor nunca pode retornar nada, //e é por isso que você não precisa definir um tipo de retorno para ele.Um método normal é definido assim: //public st...
dabf9a1b1b7303e7f9292343701e1192f2c05cdb
C#
WangyuHello/Harbor2
/Harbor.Common/Cli/VersionResolver.cs
2.609375
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace Harbor.Common.Cli { /// <summary> /// Represents a version resolver. /// </summary> public interface IVersionResolver { ...
1ac9564e843edcb21de91b3d0b9a73abe0c8ec88
C#
Horacio45/ExcercisesGitHub
/CodeAbbey/Problem8/Program.cs
3.25
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Problem8 { class Program { static void Main(string[] args) { var amount = int.Parse(Console.ReadLine()); int[] ans = new int[amount]; ...
8c166d4490f73c6d70dde336c1b77506df172d4e
C#
alfianAH/dilo-challange
/Assets/Scripts/Player/ScoreManager.cs
3.078125
3
using UnityEngine; namespace Player { public class ScoreManager : SingletonBaseClass<ScoreManager> { private const string HIGH_SCORE = "high_score"; private int score; private int highScore; public int Score => score; public int HighScore => highScore; ...
c779a88e422bd31bab21370e7c88107738c1249a
C#
lucaslovato/jellyfish
/src/DataLakeModels/Models/AdWords/Reports/AdPerformance.cs
2.546875
3
using System; namespace DataLakeModels.Models.AdWords.Reports { public class AdPerformance : IValidityRange, IEquatable<AdPerformance> { public DateTime ValidityStart { get; set; } public DateTime ValidityEnd { get; set; } public string CampaignId { get; set; } public string AdGr...
8420f7af2ddfc4931784fd4a0300983a60dcbde3
C#
hadynz/ImageResizer.Plugins.AdaptiveImages
/src/AdaptiveImage.cs
2.625
3
using System; using System.Web; using ImageResizer.Configuration; namespace ImageResizer.Plugins.AdaptiveImages { public class AdaptiveImage : IPlugin { private const string ResolutionCookieKey = "resolution"; private const string UserAgentMobileSubstring = "mobile"; private readonly...
dff59304b0089a966197889784f0eebd0b0bee3b
C#
SRICHARANSIRPA/ThinkBridge
/src/ShopBridge/Services/Inventory/Inventory.Application/Features/InventoryItems/Commands/AddItem/AddItemCommandHandler.cs
2.640625
3
using AutoMapper; using Inventory.Application.Contracts.Persistance; using Inventory.Domain.Entities; using MediatR; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Inventory.Appli...
2642857d66cea3b8494b87cc7484f206f2b2f507
C#
dotnet-bot/corefx
/src/System.IO.FileSystem/src/System/IO/PathHelpers.Windows.cs
2.984375
3
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Diagnostics; namespace System.IO { internal static partial class PathHelpers { // Trim...
17232b7e74555a870537b91603b1373d3cce2ee3
C#
BhimSen2021/CSRPulse
/CSRPulse.Model/Maintenance.cs
2.71875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace CSRPulse.Model { public class Maintenance { [Key] public int MaintenanceId { get; set; } [Display(Name = "Under Maintenance")] public bool IsMaintenance { g...
b768d2f16cb6a2b74b8bf359d13a482f328f898c
C#
danxLabsAndProjects/study_c-
/Regex/Regex/Program.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace RegexTestProgram { class Program { static void Main(string[] args) { //\b \b - word; //^$ - line; ...
80bb1419bdc185b08378346af60f9275516cf186
C#
ImL1s/YS_UnityServer
/NetFrame/NetFrame/ABS/AbsHandlerCenter.cs
2.578125
3
namespace NetFrame.ABS { /// <summary> /// 此類為抽象類,會由外部傳入的類繼承,之後將傳輸層的資料傳入. /// </summary> public abstract class AbsHandlerCenter { /// <summary> /// 通知客戶端連接 /// </summary> /// <param name="token">客戶端連接對象</param> public abstract void ClientConnect(UserToken tok...
5aee44b2fba9c853362b430dce566fb78d089395
C#
jorgemrDev/million-and-up-backend
/MillionAndUp/MilionAndUp.Api.Property/Repository/Interfaces/IPropertyRepository.cs
2.59375
3
using MilionAndUp.Models; using MillionAndUp.Models.Dtos; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MillionAndUp.Repository.Interfaces { public interface IPropertyRepository { /// <summary> /// Create a Propert...
a653752081825a8dd609d80f236af8a0aa219e05
C#
bradparks/Unity-Serializer
/Assets/Serializer/BuiltinSerializers/System.MonoType.cs
2.8125
3
using System.IO; using System.Collections; namespace cloudsoft { public class System_MonoType_Serializer : Serializer { public System_MonoType_Serializer() { System.Type t = typeof(int);//System.MonoType is not accessable, I access it by trick SerializerOf = t.GetType(); ManualChange = true; CanHasSu...
32031a8e2240c8faf4f1e733689994a2cc7a0b88
C#
Ludomancer/Beetle
/Assets/Scripts/Beetle.cs
2.734375
3
using System; using UnityEngine; using System.Collections.Generic; using System.Runtime.InteropServices; public class Beetle { #region Enumerations public enum Part { Leg = 1, Head = 2, Body = 3, Antenna = 4, Eye = 5, Wing = 6 } #endregion #reg...
8a112f18f94ff2314528f1a86a112fe477bff3e6
C#
kblc/Personnel
/Personnel.Repository/Model/VacationLevel.cs
2.578125
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; using Personnel.Repository.Additional; using System.ComponentModel; using Helpers.Linq; using System.Data....
1ac0fe41c87d1631d4cc4f538f26e9122816dc8e
C#
mattmiller85/WeatherLogger
/WeatherLoggerApi/FileSystemWeatherDataRepo.cs
2.84375
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; using WeatherLoggerApi.Models; namespace WeatherLoggerApi { public class FileSystemWeatherDataRepo : IWeatherDataRepo { string _dataPath = HttpContext.Current.Server.MapPath("~/...
f77df2365ea72019a239b985b312e5432de29086
C#
alvaroroyo/URC
/URC_SERVER/Model/Configuraciones/Mando.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Windows.Media.Imaging; namespace URC_Server.Model.Configuraciones { public class Mando { public Mando() { groups = new Dictio...
cd88a3acc0374ed04fad02935b2d65d6d1feab4d
C#
lampadovnikita/OneLoneGame
/OneLoneGame Project/Assets/Scripts/Items/Item.cs
3.125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; // Класс-контейнер для хранения свойств предмета public class Item { public Item(Item item) { Name = item.Name; Description = item.Description; MaxInInvintoryCell = item.MaxInInvintor...
e6f533bf911804ac76bb3f5c2e6c199716728ab6
C#
ShiroKatake/capstone-project-2020-P.O.D
/Assets/Scripts/ExtensionMethods/Color_ExtensionMethods.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; public static class Color_ExtensionMethods { public static bool isEqual(this Color col, Color otherCol, float threshold) { if (Mathf.Abs(col.r - otherCol.r) > threshold)...
6a306f692f68a765b09fc97c92d19732cc3abc3f
C#
StefanGulas/VermessungsBueroApp
/VermessungsBüroApp/MainViewModel.cs
2.796875
3
using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; namespace VermessungsBüroApp { public class MainViewModel { private string _selectedItem; private IEnumerable<string> _menuItems; public MainViewModel() { _menuIte...
f4fe3a1086aec21431518bef07f38cf8abb36ba6
C#
mfagerlund/LD33
/Assets/Scripts/Beehive/BehaviorTrees/Misc.cs
2.5625
3
using System; using Beehive.Lisp; namespace Beehive.BehaviorTrees { public class Counter<TBb> : Decorator<TBb> where TBb : IBehaviourTreeBlackboard { public Counter(TreeTask<TBb> decoratedTask) : base(decoratedTask) { } public int ExecuteCount { get; set; } ...
cf4d0b3ee2d7ffac1e01dd8f7143f8ee4ae9d6da
C#
senkaavdagic/csharpcore
/NorthwindService/Controllers/ProductsController.cs
2.78125
3
using Microsoft.AspNetCore.Mvc; using Library; using System.Collections.Generic; using System.Linq; namespace NorthwindService.Controllers { [Route("api/[controller]")] [ApiController] public class ProductsController:ControllerBase { private readonly Northwind db; public ProductsController...
520427b3a198d14056fe9033609c633125e01973
C#
mickaj/cl_taskman
/ConsoleUI/Commands/ShowTaskCommand.cs
3.109375
3
using DataModel.Abstractions; using System; using System.Collections.Generic; using System.Text; namespace ConsoleUI.Commands { public class ShowTaskCommand : UiCommandBase, IUiCommand { private readonly ITaskManager _taskManager; public string Name { get; } = "show"; public string He...
26e4ace9e25ee594c49a0570629523ead7aab243
C#
benjohns1/procedural-landmass-generation
/Assets/Scripts/LoadingScreen.cs
2.5625
3
using UnityEngine; using WorldGenerator; using UnityEngine.UI; public class LoadingScreen : MonoBehaviour { [SerializeField] private TerrainGenerator terrainGenerator; [SerializeField] private Image Background; [SerializeField] private Text Text; private bool loaded = false; private...
eb5ee9c873583c6daa4d6a9a02f403ef934f5198
C#
TandXiaoDong/MyRepositoryTemp
/AddFlow/GDI流程图控件c#源码/GDIDrawFlow/GetTypeCursor.cs
2.609375
3
using System; using System.Windows.Forms; namespace GDIDrawFlow { /// <summary> /// GetTypeCursor ժҪ˵ /// </summary> public class GetTypeCursor { Cursor Begin_Cursor; Cursor General_Cursor; Cursor SpecificallyOperation_Cursor; Cursor Gradation_Cursor; Cursor Synchronization_Cursor; Cursor Asunder_Curs...
dbec5315c3914c08bbbd71cf7d34b82dbade8d3e
C#
ismazhiluk/DesignPatterns
/DesignPatterns/Visitor/Figures/Rectangle.cs
3.46875
3
using Visitor.Visitors; namespace Visitor.Figures { public class Rectangle : FigureBase { public override string Name => nameof(Rectangle); public readonly double Height; public readonly double Width; public Rectangle(double height, double width) { Height ...
4e819e0bb7ba138fae22f1fe6a60859f4a73b547
C#
Ferid-Memmedli/PragmatechCsharpProject
/ConsoleTasks/Week11.01.Task/Compare.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { /* * ele bir class dizayn etmelisiz ki , daxilindeki method 3 parametr qebul edecek * ilk ikisi int tipinde ededler olacaq , classin ucuncu parametri ise qarsilash...
1ece8f986767006ffbae5b981693b2bf6123da0c
C#
urosjovanovic/MceController
/Add-In/Commands/UnavailableCmd.cs
2.578125
3
/* * This module is build on top of on J.Bradshaw's vmcController * Allows some commands to not be available (e.g. the Vista EPG commands on Windows 7) * In theory this should never be used... * * Copyright (c) 2009 Anthony Jones * * Portions copyright (c) 2007 Jonathan Bradshaw * * This software code mo...
bf883d89b7238837d0b68d4c6c1989cdf6a1e072
C#
Artikid/Test
/Database/DAO/CoursesDAO.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Dapper; using Database.Models; namespace Database.DAO { public class CoursesDAO:BaseDAO { public static List<Courses> GetAll(string title = null) { StringBuilde...
89c638389a31f4605ad8c81892de0e1dd2eed50c
C#
YorkCodeDojo/Sudoku
/DavidBetteridge_CSharp/Sudoku/Column.cs
3.4375
3
using System; using System.Collections.Generic; using System.Linq; namespace Sudoku { public class Column { public int ColumnNumber { get; } private readonly char[] _rows = new char[9]; public Column(int columnNumber, char row0, char row1, char row2, char row3, char row4, char row5, c...
75286a5ade70a13c8cad247b3126f4af036028c9
C#
RUDepure/KanyeREST
/KanyeREST/Program.cs
3.109375
3
using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace KanyeREST { class Program { static void Main(string[] args) { //Clear quotations string strin...
2f8807ded4c665ddaaccc93a3d1495dbb95526b0
C#
Stefoajc/RealEstate
/RealEstate.Services/Extentions/IEnumerableExtentions.cs
2.875
3
using System.Collections.Generic; using System.Linq; namespace RealEstate.Services.Extentions { public static class IEnumerableExtentions { public static IEnumerable<T> Paging<T>(this IEnumerable<T> query, int pageNumber, int pageSize ) where T : class { ...