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
547e740142795e93e8130b7f656eb9d5f8231edd
C#
gtggeorgiev/CSharp-part-one
/CSharp (part one)/4. Console Input-Output/02. Print_Company_Information/Program.cs
3.890625
4
//Problem 2. Print Company Information //A company has name, address, phone number, fax number, web site and manager. The manager has first name, last name, //age and a phone number. //Write a program that reads the information about a company and its manager and prints it back on the console. using System; ...
e31a7ee1678e060d33d21066cc3bf192630d4e2a
C#
AndreiMuntea/gRPC-Client-ServerApp
/ServerCSharp/ServerCSharp/Repository/DBRepository/DBConnection/QueryBuilder.cs
2.96875
3
using System; using System.Collections.Generic; using System.Data; namespace ServerCSharp.Repository.DBRepository.DBConnection { public class QueryBuilder { private static QueryBuilder _instance = null; private QueryBuilder() { } public static QueryBuilder GetInstance() { ...
c7ae39817477442e619f1c043ce5e1aeac08cc81
C#
ciprianx87/basiccashbook
/TaxCalculator/TaxCalculator/TaxCalculator.Controls/Converters/RowTypeToVisibilityConverter.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Data; using TaxCalculator.Data.Model; using System.Windows; namespace TaxCalculator.Controls.Converters { public class RowTypeToVisibilityConverter : IValueConverter { public object C...
275481a3c3bd056057fc8250a21f125219c781dd
C#
sawas/SQLiteKei
/SQLiteKei.DataAccess/Database/ViewHandler.cs
3.046875
3
using SQLiteKei.DataAccess.Models; using SQLiteKei.DataAccess.QueryBuilders; using System.Data; using System.Data.Common; using System.Linq; namespace SQLiteKei.DataAccess.Database { /// <summary> /// A class that handles database interactions related to views on the specified database. /// </summary> ...
a3fb78189b46d9822f0cf246127bed7f605485ba
C#
KenshiK/TyranQuest
/Assets/Script/Survivor/Survivor.cs
2.65625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Survivor { const int maxResource = 100; const int minResource = 0; private string firstName; private string lastName; private int mentalHealth; private int physicalHealth; public int mentalChange = ...
3ce290a625d32f46c3199fa07209fa01f050faf2
C#
alspok/PiCalculation
/Shuffle.cs
3.109375
3
using System; using System.Collections.Generic; using System.Text; namespace PiCalculation { static class ShufflePi { public static string ShuffleListPi() { List<string> shufflePiList = new List<string>(); string shufflePiString = string.Empty; Random rando...
3413ef7b5ceceaa2320b80a94bcba77328556e28
C#
vboyz2knight/WcfGardenService
/GardenDAO/GardenDAO.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using GardenEntities; using System.Data; using System.Data.SqlServerCe; using System.IO; /*this project get the datas for the calls not sure how to handle errors*/ namespace GardenDAL { public class GardenDAO { //...
2f0539ad2d56ff6a96af98d064faf388b5255fe2
C#
ixi150/falling-down
/Assets/Code/ScaleAnimator.cs
2.53125
3
using UnityEngine; using System.Collections; using System.Linq; public class ScaleAnimator : MonoBehaviour { [SerializeField] bool useFixedUpdate; [SerializeField] bool loopAnimationOnStart; [SerializeField] AnimationCurve shrinkCurve; [SerializeField] AnimationCurve bumpCurve; [SerializeField] An...
6098f5e9f3d4fd7058a760143d98204bd5c20c8e
C#
shendongnian/download4
/code2/256388-5146658-10962043-2.cs
3.25
3
public static class ConsoleHelper { public static void EnvironmentSafeWrite(string s) { s = Environment.NewLine == "\n" ? s : s.Replace("\n", Environment.NewLine); Console.Write(s); } }
c17e870fcd7633311bad72f672d5fbe3e0aef65a
C#
justinhachemeister/Suckless.Assert
/Suckless.Asserts.Tests/ExtensionMethods/CountLessTest.Enumerable.cs
2.796875
3
using System; using System.Linq; using System.Collections.Generic; using NUnit.Framework; using Suckless.Asserts.Tests.Base; namespace Suckless.Asserts.Tests.ExtensionMethods { internal partial class CountLessTest : AssertBaseTest<ArgumentOutOfRangeException> { private IEnumerable<int> value = Enumerab...
ba77c1effc1b0bc9e4b89d8c555e9c4452e74dab
C#
dthomso1/CubeSatSeniorDesign
/Source/CubeSatCommSim/Model/PriorityQueue.cs
3.21875
3
using System; using System.Collections; namespace CubeSatCommSim.Model { //Modified from https://github.com/justcoding121/Advanced-Algorithms/blob/master/src/Advanced.Algorithms/DataStructures/Queues/PriorityQueue.cs public class PriorityQueue<T> : IEnumerable where T : IComparable { private readon...
ccac55c1ee6b59a47033f7ff7a586659ebecd5ce
C#
1whywhy1/OceanGame
/OceanGame/Assets/Scripts/Spawner.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Spawner : MonoBehaviour { #region Variables [SerializeField] float _range = 3.0f; [SerializeField] float _frequency = 2.0f; [SerializeField] GameObject _objectToSpawn; private Vector3 pos; //private fl...
2ee50e11b11d6fe11146bfb0ada41069a7a3cfb8
C#
ABDELLAH-Hallou/gestion_du_magasin
/gestion magasin/magasin/magasin/DeleteClientForm.cs
2.578125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using MySql.Data.MySqlClient; namespace magasin { public partial class DeleteClientForm : Form { ...
07a7b74b873392ae7c1c56bef5a137dd2c67853b
C#
AlexTruba/BpmBot
/BpmBot/DB/Repository/CitationRepository.cs
2.625
3
using BpmBot.DB.Model; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BpmBot.DB.Repository { class CitationRepository { private readonly BotContext _context; public CitationRepository() { ...
48af242aacf69fe68d78b3bff7d2b1012e83d369
C#
Nyyman/Global-Game-Jame-2014
/UnityProject/Assets/_scripts/ScoreScript1.cs
2.65625
3
using UnityEngine; using System.Collections; public class ScoreScript1 : MonoBehaviour { public static ScoreScript1 instance; private GameObject m_GUI; public int m_Score; void Awake() { instance = this; } // Use this for initialization void Start () { m_GUI = GameObj...
961c8489423f9e1a3df26634f8fd71498d700b30
C#
Tilps/TwistNTurn
/TwistNTurnBridge/UndoTree.cs
2.84375
3
using System; using System.Collections.Generic; using System.Text; namespace TwistNTurn { public interface IAction : IEquatable<IAction> { string Name { get; } /// <summary> /// Usually true after perform is called if it returns true, but not gauranteed. ...
11e1a9529af57d491e87f94b69046022e8d65604
C#
tsimafei-markhel/Fireworks.NET
/src/FireworksNet/Mutation/AttractRepulseSparkMutator.cs
2.953125
3
using System; using System.Diagnostics; using FireworksNet.Generation; using FireworksNet.Model; namespace FireworksNet.Mutation { /// <summary> /// Wrapper for <see cref="AttractRepulseSparkGenerator"/>, as described in 2013 GPU paper. /// </summary> public class AttractRepulseSparkMutator : IFirewor...
ecdf3028aeb4de8d761ab821521429bbc455bae0
C#
schwarzwaldsvd/quiz-backend
/quiz-backend/Models/QuizRepository.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; namespace quiz_backend.Models { public class QuizRepository : IQuizRepository { private readonly AppDbContext _appDbContext; public QuizRepository(AppDbContext...
e69b233e5b1cd18eef58b46870e435e726d7475f
C#
NoudH/DierenAsiel
/DierenAsiel.Database/DatabaseController.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DierenAsiel; using System.Data.SqlClient; using System.Configuration; namespace DierenAsiel.Database { public class DatabaseController : IAnimalDatabase, ICaretakingDatabase, IEmployeeDatabase...
5524ab612a9617720c4be7d8ba3d8406e15346d4
C#
palori/ex_ciutats
/cs/Program.cs
3.609375
4
using System; namespace cs { class Program { static void Main(string[] args) { /*fase1(); fase2(); fase3();*/ fase4(); // incluye todos los anteriores } private static void title(string title) { Console.WriteL...
9d313e34eb69a33fc61e264bc680bac3ca364ffa
C#
trdwll/ResponseV
/src/ResponseVLib/Logger.cs
2.796875
3
using System; namespace ResponseVLib { public class Logger { public enum ELogLevel { LL_INFO, LL_WARNING, LL_ERROR, LL_TRACE } private readonly string m_LogFile = $"{System.Windows.Forms.Application.StartupPath}\\Plugins\\LSPDFR\...
40a0e66252acc84261bc5ef38c79856f8d8f6fb7
C#
Dividebyzer0Team/RePair
/RePair/Assets/Code/Tests/BreedingTest.cs
2.546875
3
using UnityEngine; public class BreedingTest : MonoBehaviour { public GameObject animalPrefab; private float m_animalSpawnRadius; void Start() { m_animalSpawnRadius = GetComponent<RectTransform>().rect.height / 2 * 0.7f; } public void RandomBreed() { // spawning new child object var child = GameObject...
496d4c0ecdc3cd68f4840ea732e33dd172d21ed5
C#
sirjust/codewars-practice
/8kyu_stringRepeat/8kyu_stringRepeat/Kata.cs
3.15625
3
using System; using System.Collections.Generic; using System.Text; namespace _8kyu_stringRepeat { public class Kata { public static string repeatStr(int n, string s) { string newString = s; while (n > 1) { newString = newString + s; ...
f6843e75cf86e265f7e61b542083aa29dfd0ef11
C#
JamesDodd1/TheWitcherGame
/TheWitcher/TheWitcher/GameMenu/CustomiseMenu.cs
2.734375
3
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Travel.GameMenu.Components; namespace Travel.GameMenu { /// <summary> Generates the Customise Menu </summary> public class CustomiseMenu ...
04b1dab9094a7127c20db4934ce12fd84add7303
C#
shendongnian/download4
/first_version_download2/269521-21602273-57387228-2.cs
2.828125
3
[HttpPost] public ActionResult Index(MyViewModel model) { if (!ModelState.IsValid) { // some validation error occurred => redisplay the same form so that the user // can fix his errors return View(model); } // at this stage we know that the...
81439674b90a888f3b2cb456f6da2eff80feaf7b
C#
epitsin/TelerikHomeworks
/Introduction to Programming with C# Part One/Primitive Data Types And Variables/12.ASCIItable/ASCIItable.cs
2.890625
3
using System; namespace _12.ASCIItable { class ASCIItable { static void Main() { for (int i = 0; i < 127; i++) { char c = (char)i; Console.WriteLine(c); } } } }
7b44c0c5ba16b0264e5dc696948bfc1a8a472971
C#
3arlN3t/simple-fleet-management-backend
/FleetManagementAPI/Controllers/ChassisController.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FleetManagementAPI.Models; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace FleetManagementAPI.Controllers { [Route("api/[controller]")] [ApiCon...
13d6491aa880e7cbe1ca98b264b555dc697c882e
C#
NextLight/PokeBattle_Client
/PokeBattle_Client/PokeBattle_Client/Server.cs
2.625
3
using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; using System.Web.Script.Serialization; namespace PokeBattle_Client { class Server { TcpClient _client; NetworkStream _stre...
9dfaf86ed4e6f3df2a149180a1677a6da2470e82
C#
pawelgorszczak/lerning
/WpfMVVM/ViewModels/CustomerViewModel.cs
2.921875
3
 using WpfMVVM.Views; namespace WpfMVVM.ViewModels { using WpfMVVM.Models; using System; using System.Diagnostics; using System.Windows.Input; using Commands; internal class CustomerViewModel { private Customer _customer; private CustomerInfoViewModel _childViewModel; ...
0b8f850ed224d120fe4032c8dc873336c6f7765b
C#
Gerardo098/FGO_TacticalRPGFanGame
/Assets/Player Actions/AttackAction.cs
3.125
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// AttackAction is an abstract class that all units' own attack action scripts are based off of. /// </summary> public abstract class AttackAction : MonoBehaviour { public CharacterManager charMan; // Unit ...
691e64f657bfead861502c04420ff4faf15680dd
C#
mohithsrao/SuDoKu
/MSR.Component.Validators/Implementations/GridValidator.cs
2.671875
3
using System.Linq; using System.Collections.Generic; using MSR.SuDoKu.Interfaces; namespace MSR.Component.Validators { public class GridValidator : IValidator { public IValidationResult ConsolidateValidations(IEnumerable<IValidationResult> resultList) { var hasRepetingValue = resul...
450d3890ebe16c6470627ad31c7879de605408fc
C#
Misir8/Web_Api
/Application/Products/Create.cs
3
3
using System; using System.Threading; using System.Threading.Tasks; using Domain; using FluentValidation; using MediatR; using Persistence; namespace Application.Products { public class Create { public class Command: IRequest { public string Name { get; set; } public st...
a724b8c5910f0b46a600bd45be2989baba8801e1
C#
Trishen/DGSappSemFinal
/DGSappSem2Final/DGSappSem2Final/Models/Grade/Grades.cs
2.5625
3
using DGSappSem2Final.Validators; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace DGSappSem2Final.Models.Grade { public class Grades { [Key] [Database...
820f07be1e8ba9540988d44769539f0731696461
C#
ninjasync/NinjaTasks
/NinjaTools/NinjaTools.Connectivity.ViewModels/ThirdParty/SmartGattLib/Helper/EndianessAwareBitConverter.cs
3.265625
3
// Adapted by Olaf from http://snipplr.com/view/15179 using System; using System.Linq; namespace Utils { /// <summary> /// Converts base data types to an array of bytes, and an array of bytes to base /// data types. /// All info taken from the meta data of System.BitConverter. T...
bc6ab5662d38a50eda3646bceff7fa2eddd31126
C#
valuta777/RTSGame
/rts/Assets/Scripts/ItemStats.cs
2.625
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using System; [System.Serializable] public class ItemStats : Stats { public ItemStats():base() { } public ItemStats(bool isDefault, int health = 0, int mana = 0, int physicalResistance = 0, int magicalResistance = 0, ...
ea2af463e0ae5595b2b7c5e7c59a7a44c2ec9c86
C#
kranthitatoju/dotnetprojects2017
/BackEndProject/BackEndProject/Controllers/MessagesController.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace BackEndProject.Controllers { [Produces("application/json")] [Route("api/Messages")] public class MessagesController : Controller { ...
5a2011501ccd3978cfd9e149c1e175dadae58a13
C#
ricardoalbarracin/JupiterOld
/ApplicationCore/Utils/Interfaces/IDapperAdapter.cs
2.78125
3
using System.Data; using ApplicationCore.Utils.Models; namespace ApplicationCore.Utils.Interfaces { /// <summary> /// Interfaz que define el comportamiento del servicio de acceso a datos. /// </summary> public interface IDapperAdapter { /// <summary> /// Obtiene una IDbConnection. /// </summ...
0e41fb6841dd68508b4e0f83aa33c23f8f3ff70e
C#
dementeddevil/Zen.Trunk
/src/Zen.Trunk.VirtualMemory/AdvancedStreamExtensions.cs
2.75
3
using System.Threading.Tasks; namespace Zen.Trunk.VirtualMemory { /// <summary> /// /// </summary> public static class AdvancedStreamExtensions { /// <summary> /// Writes the specified buffers to the associated stream using scatter/gather I/O. /// </summary> /// <para...
61bd378dcd129ec3357c0783cb9e7c5d937853c8
C#
naskobarsa/Programming-Fundamentals-2017
/01.Short Fundamentals/12.DATA TYPES AND VARIABLES - MORE EXERCISES/14. Boat Simulator/Program.cs
3.640625
4
using System; class Program { static void Main() { char first = char.Parse(Console.ReadLine()); char secound = char.Parse(Console.ReadLine()); int counter = int.Parse(Console.ReadLine()); int firstCountMoves = 0; int secoundCountMoves = 0; for (int i = ...
ed42b5f4ba623c5ef20dcf85c559d309874fe462
C#
ItsUpToYou/HackBulgaria-Csharp101
/Week08/02-PandaSocialNetwork/PandaNetwork/Panda.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PandaNetwork { public enum GenderType { Male, Female } public class Panda { public string Name { get; set; } public string Email { get; set; } ...
311c367efe9314d7ead0d61f22f73dbef7a13a21
C#
StefanMihaylov/TelerikAcademy
/06 High-Quality Code/02b Naming-Identifiers-Homework/Minesweeper/Minesweeper.cs
3.328125
3
namespace MinesweeperGame { using System; using System.Collections.Generic; public class Minesweeper { private const int GameBoardRows = 5; private const int GameBoardColumns = 10; private const int NumberOfMinesOnBoard = 15; private const int MaxHighScoreRecords = 5; ...
05c795e6a0f620a7a02982029dd31ee1f488fbb2
C#
khalidabuhakmeh/blacksmith
/Blacksmith.Core/BlacksmithExtensionMethods.cs
3.1875
3
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using Blacksmith.Core.Attributes; namespace Blacksmith.Core { public static class BlacksmithExtensionMethods { /// <summary> /// Convenience method around foreach /// </...
d718a6681d9a549f45df3aa63c396c281524772f
C#
Ankz29/MVC-C-Practice-Programs
/ListMethods/ListMethods/Program.cs
3.703125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ListMethods { class ListMethods { public static void Main(string[] args) { List<String > lst = new List<string >(); lst.Add("ankita"); ...
2f07a0c4e42f5770c74ea8549b7abb47cebd728f
C#
nokatsu/Learn
/Learn/Learn/Language/参照渡しと値渡し.cs
3.359375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Learn.Language { class 参照渡しと値渡し { // https://ufcpp.net/study/csharp/sp_ref.html public 参照渡しと値渡し() { #region 参照渡しと値渡し Console.WriteLine...
c6262ea82e8c49a21d67983b32be1b2bf1782240
C#
Pondidum/SemVeyor
/src/SemVeyor.Tests/Builder/CtorDetailsBuilder.cs
2.59375
3
using System.Linq; using SemVeyor.Domain; namespace SemVeyor.Tests.Builder { public class CtorDetailsBuilder { private readonly CtorDetails _ctor; public CtorDetailsBuilder() { _ctor = new CtorDetails { Name = "ctor", Parameters = Enumerable.Empty<ParameterDetails>() }; } public CtorDeta...
7e826cd58995688d6e8184cca40ebfe469ffc024
C#
langley228/LangleyLib
/src/LangleyLib.MailServerLib/Configuration/SmtpSettingCollection.cs
2.546875
3
using System; using System.Collections.Generic; using System.Configuration; using System.Text; namespace LangleyLib.MailServerLib.Configuration { public class SmtpSettingCollection : ConfigurationElementCollection { public new SmtpSetting this[string key] { get { return (SmtpSet...
bd0faa04459bca9b69dc3e6f8f5ac6feecbea6ee
C#
JamesAdey/RacingBattleRoyale
/Assets/Server/PlayerHUD.cs
2.59375
3
using UnityEngine; using UnityEngine.UI; public class PlayerHUD : MonoBehaviour { [SerializeField] private Text placeText; [SerializeField] private Text timerText; public void SetInfo(int place, int placesLeft, float timeLeft) { placeText.text = "Place:"+place.ToString(); int ...
c6df95712a2f582faa5e7866536f2f2d1b4922e6
C#
katia526/WPFoefening5
/WPFoefening5/MainWindow.xaml.cs
2.625
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.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
ffc71a143ace655b9871e1cf9f2a370483790f7d
C#
shendongnian/download4
/code2/283541-5830756-12568805-6.cs
2.6875
3
public ActionResult CheckExtension(string file) { var extension = Path.GetExtension(file ?? string.Empty); var validExtensions = new[] { ".xls", ".xlsx" }; var isValid = validExtensions.Contains(extension, StringComparer.OrdinalIgnoreCase); return Json(isValid, JsonRequestBehavio...
34577ba3f7d1e9a4a349726a144874293447c3ac
C#
kalabakas1/MPE
/MPE.Library/RSS/RssService.cs
2.640625
3
using System; using System.Collections.Generic; using System.IO; using System.ServiceModel.Syndication; using System.Text; using System.Xml; namespace MPE.Library.RSS { public class RssService { private const string FeedGeneratorName = "MPE RSS Feed Generator v1.0"; private const string FeedCo...
0f6f55051ca59e97ca14b400a39ae217cb150d18
C#
KirillOsenkov/CodeCleanupTools
/Time/Time.cs
2.953125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace Time { public class Time { static int Main(string[] args) { if (args.Length == 0) { PrintHelp(); return...
2464d4aa24bf107d232ea1ad1df08c88756112d7
C#
rahul-sinha1908/rugby
/Unity/Assets/Scripts/Game/Autres/LogFile.cs
2.96875
3
using UnityEngine; using System.Collections; using System.IO; public class LogFile { string nameFile; StreamWriter writer; long length; public LogFile() { nameFile = ""; writer = null; } public void SetName(string sName) { if (sName != "") nameFile = sName; } public string GetName() { return ...
1186bd375aa85ae340faf712cf2abf3a09619700
C#
LinnSystems/LinnworksNetSDK
/Linnworks/src/netcore/LinnworksAPI/ClassBase/PurchaseOrderAdditionalCostType.cs
2.578125
3
using System.Collections.Generic; using System.Text; using System; namespace LinnworksAPI { /// <summary> /// Purchase order additional cost type. /// </summary> public class PurchaseOrderAdditionalCostType : LinnObject { /// <summary> /// Additional Cost type id /// </summa...
18b1d4901e833e8b2b8654763b45b7ea41f9037f
C#
haydenmc/TunrScratch
/Tunr/Services/TagLibTagReaderService.cs
2.640625
3
using System; using System.IO; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Tunr.Models; using static TagLib.File; namespace Tunr.Services { public class TagLibTagReaderService : ITagReaderService { #pragma warning disable CS1998 public async Task<TrackTags> GetTa...
09d706596e803d64fc4b90fccf432e795e723d90
C#
XingXing2019/LeetCode
/Array/LeetCode 1936 - AddMinimumNumberOfRungs/AddMinimumNumberOfRungs/AddMinimumNumberOfRungs/Program.cs
3.71875
4
using System; namespace AddMinimumNumberOfRungs { class Program { static void Main(string[] args) { int[] runng = {1, 3, 5, 10}; int dist = 2; Console.WriteLine(AddRungs(runng, dist)); } public static int AddRungs(int[] rungs, int dist) { int res = 0; for (int i = 0; i < rungs.Length; i++) ...
3bf5b469c6ea823f92d5c89065322b81f90aadb2
C#
ArseniBarsegyan/Reminder
/Reminder/ReminderXamarin/ViewModels/ToDoPageViewModel.cs
2.515625
3
using System.Collections.ObjectModel; using System.Linq; using System.Windows.Input; using ReminderXamarin.Extensions; using ReminderXamarin.Helpers; using ReminderXamarin.Models; using Xamarin.Forms; namespace ReminderXamarin.ViewModels { public class ToDoPageViewModel : BaseViewModel { public ToDoPa...
945b7c2c3ce2c2dd712dda29e700f70b79b7c615
C#
cofoundry-cms/cofoundry
/src/Cofoundry.Core/Web/Utilities/UriResolvers/ConfigBasedSiteUrlResolver.cs
2.9375
3
namespace Cofoundry.Core.Web.Internal; /// <summary> /// A Url resolver that relies on a configuration setting to construstr a url. /// </summary> public class ConfigBasedSiteUrlResolver : SiteUrlResolverBase { private readonly SiteUrlResolverSettings _siteUrlResolverSettings; public ConfigBasedSiteUrlResolv...
495b4a258ecac80475118016de984efc3259d209
C#
jonajgs/inference-machine
/source_csharp/MemoriaTrabajo.cs
3.046875
3
/* * MemoriaTrabajo * * Clase esencial de este entorno genrico para sistemas * expertos. Responsable de contener los datos concretos * del caso de la realidad que actualmente procesa este * sistema experto. * * En particular, cuando el sistema experto est verificando * diferentes hechos de la realid...
1a30713c96aa9b24e1f1b122cbce153b9f2b6214
C#
Cendus/MMXLegacy
/Legacy.Framework/Legacy/HelperExtensions.cs
2.59375
3
using System; using System.Collections.Generic; using System.Text; using UnityEngine; namespace Legacy { public static class HelperExtensions { public static Int32 GetSliderStep(this UISlider slider) { if (slider.numberOfSteps == 0) { return 0; } return (Int32)(slider.sliderValue * (slider.numbe...
fd4662d4ac2c53abc7e458eb1b76a6459cc3edb6
C#
LuGeorgiev/CSharpSelfLearning
/ObjectsAndClasses/ObjectsAndClasses/Chapter11/Chapter11.Example/CatCat.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Chapter11.Chapter11.Example { public class CatCat { private string name; private string color; private byte age; private byte lives; public ...
5d5a11fd9985939ccb6c6d5a91cf7b26c2c514e9
C#
animeshrs/MyPersonalTutorial-WorkingBranch-master
/MyPersonalTutorial/Models/EmployeeViewModel.cs
2.734375
3
using DatabaseLayer; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace MyPersonalTutorial.Models { public class EmployeeViewModel { public int EmployeeId { get; set; } public string Name { get; set; } public string Title { get; set; } ...
e62c41081ddb89d63a8c8591af8b3063945d4754
C#
inishchith/DeepSpeech
/swig/Examples/test-suite/csharp/multiple_inheritance_abstract_runme.cs
3.0625
3
using System; using multiple_inheritance_abstractNamespace; public class multiple_inheritance_abstract_runme { //Test base class as a parameter in C# int jcbase1b(CBase1 cb1){ return cb1.cbase1y(); } int jabase1(ABase1 ab1){ return ab1.abase1(); } int jcbase2(CBase2 cb2){ return cb2.cbase2(); ...
0c91e45ad2e70dfd5c582660a5c85c5355a01d6a
C#
marcellpaganini/nTierLanguageCourses
/Project/LanguageCourses/LanguageCourses/frmMain.cs
2.765625
3
using Model; using Model.Lookups; using Service; 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 Types; namespace LanguageCourses { public par...
5b4638eec402753ddd2103776cd40ba0b3dab17c
C#
Rob1SD/ddd
/RecrutementTest/CreneauTest.cs
2.71875
3
using System; using System.Collections.Generic; using NUnit.Framework; using Recrutement.Models; using Recrutement.Models.Actors; namespace RecrutementTest { public class CreneauTest { private Creneau _creneau1; private Creneau _creneau2; [SetUp] public void Setup() { ...
19566e4905f542ee280d677fa47fe2249e488cbe
C#
Underwater008/Xiao-Platformer
/Assets/Arts/Sprite Shaders Ultimate/Scripts/Interactive/WindManager.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace SpriteShadersUltimate { public class WindManager : MonoBehaviour { [Header("Settings:")] [Tooltip("Smaller values will result in more frequent changes in wind.")] public float windNoiseScale = 0.1...
4f1dcc97a6b02a1919854ef25384f759cdc51dd9
C#
zaneronaldtalbot/team9_fishpunch
/FishPunch Project/TrickyTracks/Assets/TrickyTracks/Scripts/Player Scripts/KartController.cs
2.640625
3
using UnityEngine; using System.Collections.Generic; /// <summary> /// The Kart Controller. Handles all the dynamics for the kart and also implements some helper functions for /// things like speed boosts/penalties, and making the kart spin/wiggle/jump. /// Edited By Angus Secomb /// Last edited 18/11/17 /// ...
33799a53797245828ae96d782e614e4ec3b8303b
C#
Jarinfarhad58/School-Management-System-Asp.net-Core-
/Controllers/StudentController.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Rotativa.AspNetCore; using School_Management_System_Practicum.Models; namespace School_Management_System__Practic...
4e6a798bf8ca77273fc62310647d2cb68865ba8f
C#
koiralakiran0/EmployeeClockIn
/EmployeeClockIn/AddEmployee.cs
2.5625
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; using System.Threading.Tasks; using System.Windows.Forms; namespace EmployeeClockIn { public partial class AddEmployee : Form { ...
3b4fcdecce84b73a41c6634a2312750c78c10ac3
C#
Whitchurch/funkycodingforAmazoninterviewetcetc
/AmazonPrer/Program.cs
3.21875
3
using System; using AmazonPrer.DataStructures; using AmazonPrer.Recursion; namespace AmazonPrer { class Program { static void Main(string[] args) { Console.WriteLine("Scratch Pad to test my Data Sctuctures"); Node tracker; int caseswitch = 9; ...
cd0e4f67089c977b5d6b3a78eac9661eddeea013
C#
Lacryael/Monogame-Fighting
/PoniFei/Controls/Background.cs
2.609375
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PoniFei.Controls { class Background : Component { #region Fields ...
3fcf8d24f83bc3b1b7d6d13de335e8e92f8da8a2
C#
HuanVo/QLQCF
/QuanLiQuanCafe/DAO/BillDAO.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Data; using DTO; namespace DAO { public class BillDAO { private static BillDAO instance; public static BillDAO Instance { get { if (instance == null) instance = n...
dd08e124f9c49ffb5b78831e9b21de5266bb11c5
C#
ddfreiling/DownloadTicket
/Program.cs
2.75
3
using System; using System.Security.Cryptography; using System.Text; namespace DownloadTicket { class Program { static readonly string SignatureSigningSecret = "some-shared-secret"; static void Main(string[] args) { // Validate an example URL with download ticket. var exampleUrl =...
c52cea10bbf82efdacde01b204e003f352d3b7e7
C#
SGushchin/LavaProjectTestGame
/Assets/Scripts/Helpers/EventBus/BusEvent.cs
3
3
using System; namespace Helpers.EventBus { public class BusEvent { protected Action _handlers; public virtual void Subscribe(Action handler) { _handlers += handler; } public virtual void Desubscribe(Action handler) { _handlers -= handle...
75b0eee834157f4c9088f4cb6b6482b545d64377
C#
Benjamin-Arrazate/Mapaches
/Program.cs
3.328125
3
using System; namespace Animals { class Program { // En POO, las funciones y procedimientos se llaman métodos // En todo programa, se debe incluir un punto inicial // El nombre estándar para el método que inicia un programa // es "main": static void Main // ...
b0ef92740bd3603f3a1b557b98afd36712ae6836
C#
jvmusin/GamePractice
/Battleship/Implementations/GameController.cs
2.8125
3
using System; using System.Linq; using Battleship.Base; using Battleship.Interfaces; namespace Battleship.Implementations { public class GameController : IGameController { public GameRules Rules { get; } public IPlayer FirstPlayer { get; } public IPlayer SecondPlayer { get; } ...
65d1537bb0efb9fb773cccd0ce105598b292da26
C#
StefanLazea/paw
/Proiect/1043_Lazea_Stefan/1043_Lazea_Stefan/Clienti.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.OleDb; namespace _1043_Lazea_Stefan { class Clienti { private int id; private string nume; private string prenume; private string adresa; ...
5e6b70b824f987af26cfa13a00b7710fddbe9cb8
C#
kittipongmawan/Test
/BoatRentProgram/BoatRentProgram/Program.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BoatRentProgram { class Program { static void Main(string[] args) { string val; Console.Write("Enter integer: "); val = Console.Read...
9818f50622e11c7a9e842f6b440532688baa8fad
C#
simonrouse9461/CSE_3902_Mario
/SuperMarioGame/SuperMarioGame/Kernels/StateControllerKernel.cs
2.8125
3
using System; namespace SuperMario { public abstract class StateControllerKernel<TSpriteState, TMotionState> : IStateController where TSpriteState : ISpriteState, new() where TMotionState : IMotionState, new() { public TSpriteState SpriteState { get; set; } public TMotionState ...
c1cb949003041f470a775d9e2499ea0ca45fb630
C#
q4283385/LearningDatabase
/CSharp/概念学习Demo/InheritanceTest/Demo/Dog.cs
3.265625
3
using System; namespace Demo { class Dog { public string Name { get; set; } public string Color { get; set; } public string Favorite { get; set; } public void Introduce() { Console.WriteLine(string.Format("大家好,我是{0},我的颜色是{1},我喜欢{2}!", Name, Color, Favorite)...
4b655f478cc17821b494c7c87ce7729c1ceb9e6e
C#
ksitarek/Accountant
/Accountant.Authorization/Middleware/Jwt/AuthorizationMiddleware.cs
2.59375
3
using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Threading.Tasks; using Accountant.Authorization.Token.Jwt; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Http; using Microsoft.IdentityModel.Tokens; namespace A...
40f10c30f738547d75692fb49daaeaeb1a699a34
C#
vietphan90vn/FreeDriveTest
/Assets/TrackGen/DemoScenes/PreGeneratedTrack/PreGeneratedTrack.cs
2.765625
3
using UnityEngine; using System.Collections; using TrackGen; /** * Script responsible for generating a complete track at once. */ public class PreGeneratedTrack : MonoBehaviour { void Start () { //Generates track TrackPiece track_piece = null; for(int block = 0; block < this.blocks_count;...
ae130b28aa0f1d6452d905b0fee159ad110a323a
C#
shendongnian/download4
/code2/340693-7263326-15990834-2.cs
2.578125
3
protected void Application_Start() { string[] languages = HttpContext.Current.Request.UserLanguages; if (languages != null && languages.Length > 0) { string language = languages[0].ToLowerInvariant().Trim(); CultureInfo currentCulture =...
9588f63f5d173b35e23b5b5ad68cf6c24d30332a
C#
Akimayo/ucl-csp-MeetingCentreService
/MeetingCentreService/ViewModels/MeetingsViewModel.cs
2.53125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; using MeetingCentreService.Models.Entities; namespace MeetingCentreService.ViewModels { public class MeetingsViewModel : INotifyPropertyChanged { private static MeetingsViewModel _context; /// <summ...
2bed88bf64caf703a9125b3a613b66330743b39f
C#
hnjm/MoneyFox
/Src/MoneyFox.ServiceLayer/QueryObject/CategoryQueries.cs
3.109375
3
using System; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using MoneyFox.ServiceLayer.ViewModels; namespace MoneyFox.ServiceLayer.QueryObject { /// <summary> /// Query Objects for account queries. /// </summary> public static class CategoryQueries ...
8f1de207844c578917c942f609a370f293d07189
C#
fbreuneval/TD1ere_annee
/POO/ecosysteme/insecte.cs
3.15625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ecosysteme { class Insecte { protected int _faim; // indique à partir de cbien de tours l'insecte aura faim protected int _dernierRepas; // indique le nombre de tours effectués depuis le dernier rep...
0b75bae9788939444c92388f47bfd4772ed311a1
C#
omerlichter/ImageService
/ImageServiceWeb/Client/TCPClient.cs
2.890625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using ImageService.Infrastructure.Communication; using ImageService.Infrastructure.Enums; namespace ImageServiceWeb.Cl...
d220a351412c1004bd905f6420b3c5c56ccc57d5
C#
wayne9999/CroweHW
/CroweHellowWorld/Controllers/ValuesController.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using HWDomain; namespace CroweHellowWorld.Controllers { public class ValuesController : ApiController { // GET api/values //public IEnumerable<string> Get() ...
3558f142432bbb85a991368acaef5b11efffe079
C#
MBJuggernaut/ChocolateStoreAspNetCore
/ChocolateStoreClassLibrary/Models/Item.cs
3.3125
3
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace ChocolateStoreClassLibrary.Models { public class Item { [Key] public int Id { get; set; } [Required(ErrorMessage = "Поле названия не должно оставаться пустым. Название товара может содержать от 1 ...
a7508e622ac1b1772e0e3f9b6165fd5bb23a948f
C#
VladKorniienko/CWorkWPF
/MainViewModel.cs
2.734375
3
using CWork.Entities.Input; using CWork.Solvers; using OxyPlot; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace CWork { public class MainViewModel { public MainViewModel() { this.timeResultsBaB1000 = new List<DataPoint>(); ...
93b26ede8c863e5a921fc76a14b6ed335bd6cec5
C#
Jasmin91/Tui_My_Child
/Assets/scripts/Startspiel/Talk.cs
2.75
3
//Author: Jasmin Profus using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// Diese Klasse steuert ein Sprechblasen-Objekt /// </summary> public class Talk : MonoBehaviour { /// <summary> /// Instanz der Manager-Klasse ...
281922f76be95a31cecb506549cf2ca962ae5c43
C#
edwardt/MySpace-Data-Relay
/Core/Shared/IO/IPrimitiveWriter.cs
3.34375
3
using System; using System.Collections.Generic; namespace MySpace.Common.IO { public interface IPrimitiveWriter { /// <summary> /// Disposeable... if you dont know, dont use it :) /// </summary> void Dispose(); System.IO.Stream BaseStream { get; } /// <summary> /// Creates a Region that enables older ...
0546e510e4e930dcdb13cf976ce63658d0b4ad90
C#
robie01/BallPanicGame
/Assets/Scripts/ArrowScript.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ArrowScript : MonoBehaviour { private float arrowSpeed = 2.0f; private bool canShootStickyArrow; [SerializeField] private AudioClip stickyClip; // Use this for initialization void Start () { canSho...
e05171306199abd5ecedc1a34a2a00182a6287fb
C#
jodyunter/TeamGame
/TeamGame.Test.Domain/Seasons/SeasonDivisionTests.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using TeamGame.Domain.Seasons; using Xunit; namespace TeamGame.Test.Domain.Seasons { public class SeasonDivisionTests { [Fact] public void ShouldGetTeamsWhenChildrenNullAndNoTeams() { var division = new Seaso...
2b0510b529ef9272c92b962f6cde1256816896cc
C#
AlexDonisthorpe/RPG-Sandbox
/Assets/Scripts/Audio/RandomAudio.cs
2.859375
3
using UnityEngine; namespace RPG.Audio { public class RandomAudio : MonoBehaviour { [SerializeField] AudioClip[] clips = null; [SerializeField] float lowerPitchRange = 0.25f; [SerializeField] float higherPitchRange = 0.8f; AudioSource source; private void Awake() ...
9e04531042cf3f4dc54b378eb52c1109b61fd1f8
C#
PeterPL/InzRepo
/MainApp/Result.xaml.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; namespace MainApp { public partial class Result { private string _lowe...
7d146b32623514c45517c55a2d5a7118132e555f
C#
HimmaTong/dotnet-core-iot-demo
/src/Adxl345/samples/Program.cs
2.71875
3
// This repository is licensed under the MIT License © Zhang Yuexin // https://github.com/ZhangGaoxing/dotnet-core-iot-demo/blob/master/LICENSE using System; using System.Numerics; using System.Threading; using System.Device.Spi; using Iot.Device.Adxl345; namespace Adxl345.Samples { class Program { s...
5449d7eee7418c456c2c6608e72963d61677d42d
C#
mappy999/TwinTail
/Twintail Project/ch2Solution/twinie/Utilities/TreeViewUtility.cs
2.6875
3
// TreeViewUtility.cs namespace Twin.Forms { using System; using System.Drawing; using System.Windows.Forms; /// <summary> /// c[r[Ɋւ郆[eBeBQ /// </summary> public class TreeViewUtility { // O`悵`̈ꎞϐ private static Rectangle drawnRect = Rectangle.Empty; // O̕`ʒu private static DropPosition position; ...
70595ba0f00b9481cc83a4bebd0835466867811f
C#
darkholds/mcs_pams
/MCS_PAS2/AccountingMgt/frmStudent.cs
2.671875
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 AccountingMgt { public partial class frmStudent : Form { bool updateStudent = ...
61355e7a38e101b5f64faf5cd8ec1eccfd8e4d48
C#
aring97/Roommates
/Roommates/Repositories/ChoreRepository.cs
2.921875
3
using System; using System.Collections.Generic; using System.Text; using Microsoft.Data.SqlClient; using Roommates.Models; namespace Roommates.Repositories { public class ChoreRepository: BaseRepository { public ChoreRepository(string connectionString) : base(connectionString) { } public List<...
e6ea19552bb345fce42f80f4d644f98d5ed06694
C#
ArtyomZhukov/WatcherProject
/WatcherProject/PeopleData.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WatcherProject { public class PeopleData { public List<string> Name { get; set; } = new List<string>(); public List<string> Face { get; set; } = new List<string>(); ...