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
3e6d3b86f6f88c54001c92b9abe47c28402bd1f1
C#
TatevG/C-Sharp-Starter
/1 Types/004_TypesSelfWork/Program.cs
3.609375
4
using System; namespace TypesSelfWork { class Program { static void Main(string[] args) { double vol = 0, sqrt = 0, r = 5, h = 8; const float pi = 3.141f; vol = pi * r * r * h; sqrt = 2 * pi * r * (r + h); Console.WriteL...
9a8ce35499c2a98d15b41454450039a3188a949c
C#
MrModest/ShikiNet
/ShikiNet/Filter/FilterDictionary.cs
3.078125
3
using System; using System.Collections.Generic; using System.Text; using System.Linq; using ShikiNet.Utils.Extensions; namespace ShikiNet.Filter { public class FilterDictionary<T> { private string name; private IDictionary<T, bool> filterDict = new Dictionary<T, bool>(); public bool Is...
6440a1f7cfad671b9e3f875cdd37b5e82d7eec42
C#
kstairley/CLI.Instagram.Return.HTML
/Parser.Instagram.Return.HTML/Utility.Tools/Utility.Tools/Export/DataTableExtensionMethods.cs
3
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; namespace TechShare.Utility.Tools.Export { public static class DataTableExtensionMethods { public static string ConvertToCSV(this DataRow row) { List<string> list = new List<string>(); ...
0f604ab0ab693d3504970cee711837ec2a2b767f
C#
LuisReyesGtz/FrmPolimorfismo
/PolimorfismoForm/Rectangulo.cs
3.046875
3
using Polimorfismo; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace PolimorfismoForm { class Rectangulo : Figura { //Métodos public override string Dibujar() { return "Dibuja...
9fcecf22252e9a7214389c1dafda19656267b521
C#
Reyam1415/JsonObjectSerializer
/JsonLib.Uwp/Json/Mapping/JsonTypeMapping.cs
3.109375
3
using System; using System.Collections.Generic; namespace JsonLib.Json.Mappings { public class JsonTypeMapping { public Type Type { get; } public bool LowerCaseStrategy { get; set; } public Dictionary<string, JsonPropertyMapping> Properties { get; } public JsonTypeMapping(Ty...
c158982a37b5d3988d81d7c80a05b240279f9fcb
C#
achhee/Gilded_rose_Csharp
/Quality/PassProduct.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using csharp.Interface; namespace csharp.Quality { class PassProduct:IProduct { public void UpdateQuality(Item item) { item.SellIn -= 1; if (item.SellIn <...
c5b766d5239aa9240f1ad8f40fe6725a47c6a5be
C#
NASOKILA/SoftUni
/2.Prgramming fundamentals/02.Data Types and Variables/Special numbers/Program.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Special_numbers { class Program { static void Main(string[] args) { // Specialno chislo e kogato sbora na chislata mnu e 5, 7 ili 11 int n = in...
394940181fab02d14f8535e707ed3a6cdbd5c09e
C#
thinhngo1798/SequenceGame
/SequenceGame/Player.cs
2.984375
3
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using SwinGameSDK; namespace MyGame { /// <summary> /// The Player represents the player who will decide which card to play and where to put the chip on the board. /// </su...
148babdfd08ec9fc170626988f158bc11c570957
C#
KQLei/UploadData
/EF.Data/UnitOfWork.cs
2.921875
3
using EF.Core; using System; using System.Collections.Concurrent; namespace EF.Data { public class UnitOfWork : IUnitOfWork { private readonly EFDbContext _context; private ConcurrentDictionary<string, object> _repositories; public UnitOfWork(EFDbContext eFDbContext) { ...
d7cd152b45ea66c4a33bfc3ccb633b6daea20b87
C#
Bulldocer/AdvancedSystems
/LinkBudgets2/LinkBudgets2/Solution Items/GSM.cs
2.625
3
using System; public class GSM { #region Properties public float A1 { get; } //Power amplifier output power public float A2 { get; } //Transmit antenna gain public float A3 { get; } //Transmitter loss public float A4 { get; } //Effective isotropic radiated power public float A5 { get; } /...
b4259490021338dc76eb0a47fcc721e26bfc2095
C#
geeman1209/old-projects
/Battleship/BattleShip.UI/GameDisplay.cs
3.203125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BattleShip.BLL.GameLogic; using BattleShip.BLL.Requests; using BattleShip.BLL.Responses; using BattleShip.BLL.Ships; namespace BattleShip.UI { public class GameDisplay { public voi...
80241bdfd013b590cd2254344ae4656bc9e3901f
C#
IntelStudios/sharepoint-downloader
/SharepointDownloader/Program.cs
2.6875
3
using System; using System.Diagnostics; using System.Threading.Tasks; using SharepointDownloader.Sharepoint; namespace SharepointDownloader { class Program { static async Task Main(string[] args) { var context = new Sharepoint365Context(new Sharepoint365Options { ...
5b9e65dc436f39bc1d00bca4b10bf92fab017063
C#
PierreAnken/HEVS_BSC_IG_S3_Projet_.NET_ValaisBooking
/ValaisBooking/BLL/ReservationManager.cs
2.78125
3
using DAL; using DTO; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BLL { public class ReservationManager { public static int SaveReservation(Reservation reservation) { return ReservationDB.SaveReservat...
b055ebdb022b08f8a31dbffadf7419ddad9960e9
C#
marcocastope/ProyectoFinal---Moanso-
/CapaAccesoDatos/datHabitacion.cs
2.5625
3
using CapaEntidad; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CapaAccesoDatos { public class datHabitacion : DatHabitacionI { SqlDataReader reader; private static...
e1d3f4003f136490b03cc5f9298677c433739cec
C#
astronautas/sharp-chat
/Server/chat_server/Router.cs
2.9375
3
using chat_server.Interfaces; using System; using chat_server.Entities; using System.Collections.Generic; using chat_server.Exceptions; namespace chat_server { class Router : IRouteUsers { private Dictionary<string, Action<User, string>> _router = new Dictionary<string, Action<User, string>>() { }; ...
21a99137e3b8ae5a01d26e2b4a4344bd921b0eb9
C#
dratuz/SoftUni-WorkoutWebsite-Project
/WorkoutWebsite/WorkoutWebsite.Services/Implementations/ExersiseService.cs
2.859375
3
namespace WorkoutWebsite.Services.Implementations { using AutoMapper.QueryableExtensions; using System.Collections.Generic; using System.Linq; using WorkoutWebsite.Data; using WorkoutWebsite.Data.Models; using WorkoutWebsite.Data.Models.Enums; using WorkoutWebsite.Services.Contracts; us...
9fa9430160e6070eb586411cb507cab169459ddb
C#
JackYumCha/Jack.DataScience
/Jack.DataScience/Jack.DataScience.ProcessControl/TemplateExtensions.cs
2.78125
3
using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace Jack.DataScience.ProcessControl { public static class TemplateExtensions { private static Regex replaceSystemKey = new Regex(@"<#@(\w+)\(([\w-\.,;#@%\$]*)\)@#>"); public static s...
19bdc3a0613578a83c01fe30e1804c5470779b45
C#
antrv/interops
/Interop/Utilities.cs
2.953125
3
using System.Runtime.InteropServices; using System.Text; namespace Antrv.Interop { internal static class Utilities { internal static unsafe string? PtrToStringUtf8(nint ptr) { if (ptr == 0) return null; nint length = GetUtf8StringLength(ptr); ...
addbb577c6903e0351b32d9b53e9789d650b7e1d
C#
20chan/CluxeBot
/CluxeBot/Bot.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Reflection; namespace CluxeBot { public class Bot { public bool IsRunning { get; set; } = true; public TextReader In; public TextWriter Out;...
bec7d9728119c01ee77b591570bb761650be7e6f
C#
DinestyFeliz/Proyecto-OnBreak
/BibliotecaControlador/DaoPersona.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BibliotecaClases; namespace BibliotecaControlador { public class DaoPersona { private static List<Persona> personas; public DaoPersona() { if (personas...
060530d2264d020d9e95a40105498909471707e3
C#
Kaylen08/MyFristApp
/Section1/BeerSong.cs
3.546875
4
using System; namespace Section1{ } class BeerSong { static void main (string[] args) { for (int song = 99; song > -1; song--) { if (song == 0) { Console.WriteLine("No more bottles of beer on the wall, no more bottles of beer."); ...
05b536f55ecee825322903a5b092c0e7605bb531
C#
nhudang105/ChuyenDe
/QuanLyBanHang/FrmLogin.cs
2.703125
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.SqlClient; using BUS; //using System.Text.RegularExpressions; namespace QuanLyBanHang ...
12959b7769c4a939fbc729e12bed092c432e17f0
C#
jasongorman/CodeCraft.FxCop
/CodeCraft.FxCop.Tests/FeatureEnvyRuleTests.cs
2.671875
3
using CodeCraft.FxCop.FeatureEnvy; using NUnit.Framework; namespace CodeCraft.FxCop.Tests { [TestFixture] public class FeatureEnvyRuleTests { [TestCase("MethodThatMakesOneCallOnOneSupplier", 0)] [TestCase("MethodThatMakesTwoCallsOnOneSupplier", 1)] [TestCase("MethodThatMakesTwoCall...
18a2247f906197b9f02621adb3a2b11d0b5ce6b1
C#
HiroHsu/Common-Utility
/Common.Utility/Common.Utility.ConvertTests/DateTests.cs
2.546875
3
using NUnit.Framework; using System; using System.Collections.Generic; using System.Text; namespace Common.Utility.ConvertTo.Tests { [TestFixture()] public class DateTests { [TestCase("65/05/08", ExpectedResult = "1976/05/08")] [TestCase("65-05-08", ExpectedResult = "1976/05/08")] ...
decf31214ac43fc46e5e9fe6d8207202ee6faff1
C#
Andrew-Pav/PPA_Task_3
/PAA_Task_03/Program.cs
3.546875
4
using System; namespace PAA_Task_03 { class Program { static void Main(string[] args) { int countOfWrongPasswords = 0; string secretLetter = "Тут ничего нет"; string password = "8688632"; string answerOfOwner; string request = "Введит...
d1c3ea20962dbcb3a726f1c02b43a1f8155e9a8f
C#
SafayatKarim/Calculator
/Form1.cs
2.859375
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 calculatorcreate { public partial class Form1 : Form { public Form1() ...
f3e5be59fe7ebb75e892f348b03c91c757734cbe
C#
sh910831/wacom-device-kit-windows
/Multi-Touch Windows .NET/SampleCode/WacomMTDN/CWacomMTClient.cs
2.734375
3
/*----------------------------------------------------------------------------s NAME CWacomMTClient.cs PURPOSE This demo shows how to use Wacom Feel Multi-Touch in a .NET application to detect finger input COPYRIGHT This file is Copyright (c) Wacom Company, Ltd. 2020 The text and information contained ...
c667bb3cd8feab305a34cd0270672e9f8a619f28
C#
sem256/first_year
/Fahrenheit/Fahrenheit/Program.cs
3.5
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Fahrenheit { class Program { static void Main(string[] args) { /* Ця програма переводить значення температурі по фар у значення температури у значення по ц...
a6962c0d3e0359cfc3e41d49ce1c726e62f5b150
C#
melnyk-a/FileExplorer
/FileExplorer/Models/Objects/CareTaker.cs
3.265625
3
using System.Collections.Generic; namespace FileExplorer.Models { internal sealed class CareTaker { private int current = -1; private readonly IList<Memento> history = new List<Memento>(); public bool HasNext { get => current < history.Count - 1; } ...
098239f61221ca3e046ecf5a93660ea111971a66
C#
Devairea/Lewis_Farmer-GU2-Final
/Lewis_Farmer GU2/Models/User.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; using System.ComponentModel....
5d69aa0673a6dba14422cbf47fe4a62f033f5750
C#
aletuan/DebugTest
/Program.cs
2.84375
3
// define own symbol #define MySymbol using System; using System.IO; using System.Threading; using System.Diagnostics; namespace DebugTest { class Program { static void Main(string[] args) { //Timer t = new Timer(TimerCallback, null, 0, 2000); //Console.ReadLine(); ...
1258033a60c658d7802426e86cc399fd6aa47e81
C#
descention/TheNoobBot
/The Noob Bot/nManager/Helpful/Forms/UserControls/TnbButton.cs
2.59375
3
using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using nManager.Properties; namespace nManager.Helpful.Forms.UserControls { public sealed class TnbButton : Label { public bool Hoovering = false; private Image _bImage; private Image _hooverIma...
f287f315d9ef53854abcbc50843dafd1d840f8c3
C#
HorigomeSota/GffGame
/Assets/Script/Input/MouseInput.cs
2.734375
3
using UnityEngine; public class MouseInput : MonoBehaviour, IInput { /// <summary> /// 1フレーム間の差分 /// </summary> private Vector3 mouseDiff = default; /// <summary> /// 最初にタッチ(左クリック)した地点の情報を入れる /// </summary> private Vector3 mousePos = default; /// <summary>trueの時、ジャンプする </summary>...
feb0800b5558ffb2f1f2640f3441ba5f1f32101e
C#
paulandrei98/MSA
/AngryBull/Assets/Scripts/CharacterStats.cs
2.8125
3
 using UnityEngine; public class CharacterStats : MonoBehaviour { public int maxHealth = 100; public static int currentHealth { get; private set; } public Stat damage; public event System.Action<int,int> OnHealthChanged; void Awake () { currentHealth = maxHealth; ...
315cc1a3a2af12a2e03ec294f229726231a802f2
C#
Endaris/OsbUtilities
/Contracts/Commands/CommandColor.cs
3.03125
3
using System; using System.Collections.Generic; using System.Text; namespace Contracts.Commands { public class CommandColor { public CommandColor() { } public CommandColor(byte r, byte g, byte b) { R = r; G = g; B = b; } public byte ...
cb661850110b8a2891b63a03d3b674ec4efdd0f6
C#
johseffer/coffee-time
/VendingMachine/VendingMachine.cs
2.578125
3
using System; using System.Drawing; using System.Windows.Forms; namespace VendingMachine { public partial class frmVendingMachine : Form { public frmVendingMachine() { InitializeComponent(); } private double totalInserido; private double totalProdutoSelecio...
a112899a74432d32065a985cbd97fed4f928795e
C#
vdonchev/ISIS
/Models/WarEffects/Jihad.cs
2.6875
3
namespace IsIs.Models.WarEffects { using Contracts; public class Jihad : WarEffectBase { private const int ConsecutiveDamageLoss = 5; public override void Execute(IGroup group) { group.Damage *= 2; } public override void ConsecutiveExecution(IGroup gro...
3cc9fe64db148b30e86ad6c00777e56dda2d5cde
C#
raifemre/bj_simulation
/blackJack_Simulation/blackJack_Simulation/HiLoBetStrategy.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BlackjackSimulation { class HiLoBetStrategy : IBetStrategy { private double[] cardAmounts; public HiLoBetStrategy(double[] cardAmounts) { this.cardAmounts = cardAmounts; ...
0a18e8410b8f0439e74abfbbd5a9743083fd6c5d
C#
MirzoevNik/University
/Programming Technologies (F# & C#)/Lab13/Lab13/Form3.cs
3.515625
4
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 Lab13 { public partial class Form3 : Form { public Form3() { ...
b578a5b754323970fdf5c870f0a364b5bfe0cfed
C#
shendongnian/download4
/latest_version_download2/164782-33997184-105274503-2.cs
2.546875
3
public class ProductsController : Controller { public ActionResult Product(int id, string view,) { Product prod = Context.GetProduct(id); if(!string.IsNullOrEmpty(view)) { switch(view.ToLower()){ case "detail": return View("De...
c3577484a249399ee13cce64e211b79930f096cc
C#
siberiangump/common
/Injection/Injection.cs
2.625
3
namespace Common.Injection { public interface Injection<Type> { void Inject(Type data); } public interface Injection<Type, Marker> { void Inject(Type data); } public interface INestedInjectionRequired { object[] InjectionLiteners(); } // TODO add layers public interface IInjector { object[] Inte...
21f3dc28e3ed807c0edc573fc592a05d8d78da7f
C#
malindasuhash/SimpleCommandPattern
/commandpattern1/GarageDoorOpenCommand.cs
3.3125
3
using System; namespace commandpattern1 { /// <summary> /// Opening the garage door command. /// </summary> public class GarageDoorOpenCommand : ICommand { private readonly Garage _garage; public GarageDoorOpenCommand(Garage garage) { _garage = garage; }...
c5437ab9fe54d60f398bf04537d5444178b93c81
C#
andreaak/cs
/DataStructuresAndAlgorithms/DataStructuresAndAlgorithms/08BinaryTree/BinaryTreeNode.cs
3.765625
4
using System; namespace DataStructuresAndAlgorithms.BinaryTree { public class BinaryTreeNode<TNode> : IComparable<TNode> where TNode : IComparable<TNode> { public BinaryTreeNode(TNode value) { Value = value; } public BinaryTreeNode<TNode> Left {...
65a40de4ba5f510d2733cc1d3bf5e454b87b531a
C#
sourav-kings/DataStructures_And_Algorithms_In_C-
/Group_Anagrams/Program.cs
3.734375
4
using System; using System.Collections.Generic; namespace Group_Anagrams { class Program { static void Main(string[] args) { string[] wordArr = //{ "eat", "tea", "tan", "ate", "nat", "bat" }; { "cat", "dog", "tac", "god", "act", "gdo" }; groupAnagrams(wordA...
a81f7a39a5902921c0a893609e2395952d4d2732
C#
PirasannaRavi/CSharpAlgorithms
/Problems/MergeTwoSortedLists.cs
3.546875
4
namespace Problems { // Definition for singly-linked list. public class ListNode { public int val; public ListNode next; public ListNode(int val = 0, ListNode next = null) { this.val = val; this.next = next; } } public c...
90627a9aeddfaa311d3006465cac0c39ee78ae25
C#
vetongacaferi/OnlineMedicine_backend
/OnlineMedicine_api/Services/FileUploadService.cs
2.890625
3
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using static System.Net.Mime.MediaTypeNames; namespace OnlineMedicine_api.Services { public interface IFileUploadService { ...
4db3943f2704b3768314317122a5a47acf5eb4e8
C#
shendongnian/download4
/first_version_download2/106471-7284326-16042632-2.cs
2.984375
3
using System; using System.ComponentModel; using System.Text; using System.Windows.Forms; using System.IO; using iTextSharp.text.pdf; using iTextSharp.text; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() ...
feec70509c9dedc024d2b7326de8485c100dee3b
C#
Dcbaas/Leetcode-Interview-Practice
/LeetCodePractice/Arrays/Array Intersection/Solution.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LeetCodePractice.Array_Intersection { class Solution { public int[] Intersect(int[] nums1, int[] nums2) { List<int> intersection = new List<int>(); ...
22a6ceef3a99c0f781966b20e2b62cc1c9ee8875
C#
idlemachinery/dotnetstandard-extensions
/IdleMachinery.Extensions/Regex/RegexPatterns.cs
2.921875
3
namespace System.Text.RegularExpressions { public static class RegexPatterns { //https://www.rhyous.com/2010/06/15/regular-expressions-in-cincluding-a-new-comprehensive-email-pattern/ /// <summary> /// A regex string pattern for identifying an email address /// </summar...
39756ae2a2e7f33d5953866ce19fc018cb098a49
C#
a-mccluskey/OverwatchPerformance
/src/StatsOverview.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PerformanceTracker { class StatsOverview { //All the stats the need to be usable via the interface. public int SR_Difference; //The Total SR change betwen the first gam...
4d21c7b259f25253032a7230538959ad859bfa87
C#
toluomoseyin/LivestockApp
/AnimalFarmsMarket/AnimalFarmsMarket.Data/Services/Implementations/RatingService.cs
2.9375
3
using AnimalFarmsMarket.Data.Models; using AnimalFarmsMarket.Data.Services.Interfaces; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AnimalFarmsMarket.Data.Services.Implementations { public class R...
0e1ba320b46127182f0730c0e3ffa943577993c4
C#
sarjarapu/learn-mongodb
/csharp/01-ConnectToMongoDB/Program.cs
3.28125
3
using MongoDB.Driver; using System; using System.Configuration; using System.Linq; namespace ConnectToMongoDB { class Program { static void Main(string[] args) { var program = new Program(); program.Run(); Console.WriteLine("Press ...
2f54c729868a611ff42694e038322fda3eeddf51
C#
michaelching/WoolworthsTechChallenge
/WoolworthsTechChallenge/Clients/TrolleyCalculatorClient.cs
2.75
3
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using System; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; using System.Web; namespace WoolworthsTechChallenge { public class TrolleyCalculato...
ccbef59c45945afb404b2e981659f431203ca8c4
C#
fvcastellanos/ReviewApp
/ReviewApp/Services/ProductService.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using LanguageExt; using Microsoft.Extensions.Logging; using ReviewApp.Data; using ReviewApp.Domain.Views; using ReviewApp.Mappers; namespace ReviewApp.Services { public class ProductService: IProductService { private readonly ILogger<P...
bef84434e0451d7d257cac2654dcdb9525f538d4
C#
DevlinZA/git_toets
/groep20_toets/groep20_toets/Class1.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace groep20_toets { class Class1 { public int[] generate(int n) { Random rnd = new Random(); int[] list = new int[n]; for (int i = 0; i ...
567290a1c6a0c383d9b8361d453920a319767191
C#
LyubenBobchev/TELERIK-ACADEMY-ALPHA
/CsharpAdvanced/ProgressAssessment/Task2/Program.cs
3.5625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Task2 { class Program { static void Main(string[] args) { int startIndex = int.Parse(Console.ReadLine()); string arrayInput = Console.ReadLine()...
d0e6bb2932d96b630b3709c3edd08428ec4d73e4
C#
tooml/ComparativeEstimation
/ComparativeEstimation/src/EClient/Converters/SelektionConverter.cs
2.78125
3
using System; using System.Globalization; using System.Windows.Data; using Contracts; namespace EClient.Converters { public class SelektionConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var param = paramet...
0f37ea90f305f63820777d0081d8eecb0f858e38
C#
randyqlee/Project-Git
/Dragonstone2/Assets/Scripts/Ability Scripts/AmeliaUnicorn/IceHorn.cs
2.625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; //Ice Horn: Attack an enemy and deal additional 80 damage with a chance to stun for 1 turn. public class IceHorn : Ability { int bonusDamage = 80; public override void UseAbility (HeroManager attacker, HeroManager defender) { ...
ced0a910fb33e0b7f9b22a61ab2d0b756310f054
C#
CheAle14/NEA-Macau
/MacauGame/MacauGame/Client/ThemeClient.cs
2.84375
3
using MacauEngine.Models; using MacauEngine.Models.Enums; 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 MacauGame.Client { // Not really...
f0f91906ae8dbd1c8dd9ed1bffb4da89084fcbdc
C#
shendongnian/download4
/first_version_download2/229423-18009427-44706434-2.cs
3
3
private void processsub() { List<String[]> lista = new List<string[]>(); lista.Add(new string[] { "text1", "text2", "text3", "text4", "text5", "text6", "text7" }); dataGridView1.AutoGenerateColumns = true; DataTable table = ConvertListtoDatTable(lista); ...
003e62992b29aa1ffdb69789dc7db3acd4373929
C#
gabrielruy/projetolp2
/Projeto LPII/model/dao/EtapaDAO.cs
2.765625
3
using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Projeto_LPII.model.dao { class EtapaDAO { private ProjetoDAO daoProj = new ProjetoDAO(); public bool Create(...
e8cef4f3dcd6b883f70e03bd721b831270ad3d29
C#
Overrided/Fb2.Document
/Fb2.Document/LoadingOptions/Fb2StreamLoadingOptions.cs
2.578125
3
namespace Fb2.Document.LoadingOptions { /// <summary> /// Specifies a set of option to use during <see cref="Fb2Document.Load(System.IO.Stream, Fb2StreamLoadingOptions?)"/> and <see cref="Fb2Document.LoadAsync(System.IO.Stream, Fb2StreamLoadingOptions?)"/> /// </summary> public class Fb2StreamLoadingOp...
156efdc21a10da2797bfae4dfe0114c838e329b4
C#
rg1989/WebApplication2
/WebApplication2/Controllers/HomeController.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using WebApplication2.Models; namespace WebApplication2.Controllers { public class HomeController : Controller { public ActionResult Index() { if(Session["fav_items"] == null)...
e010a0a7f92e1d54fec42549196f00e7362eccdf
C#
PadminiKota/Initial_Practice
/Sort1/Program.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sort1 { class Program { static void Main(string[] args) { Solution S = new Solution(); int[] input = new int[5]; input[0] =3; ...
4c5d2f42bfa3ad8160859243010f14f850bee41f
C#
joachimharms/CSharp6AndDotNetFramework
/C1_001_AssemblyAndManifest/C08_004/ThreeDCircle.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C08_004 { // ThreeDCircle supports IDraw3D. class ThreeDCircle : Circle, IDraw3D { public void Draw3D() { Console.WriteLine("Drawing Circle...
e7dc8f72e5923dff3b547969fd1d06d61b744002
C#
christopherspence/Rigzone
/Rigzone.Models/BaseModel.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Rigzone.Models { public abstract class BaseModel { #region Fields private string _name; #endregion #region Properties public Guid ID { get; ...
2594491f09581754c9d3e6fcef64399b37ff27da
C#
masonVarias/project_portfolio
/visual_studio/TicTacToe/Tree.cs
3.328125
3
using System; public class Tree { Leaf head; public Tree() { Leaf head = new Leaf(); } public class Leaf { int x; int y; int val; LinkedList<Leaf> children; public Leaf(int x, int y) { this.x = x; this.y = y; ...
5167574c3712f87e78fdfea1c522c9edaf5f4edc
C#
titoo123/HOIA
/HOIA/Erweiterungen/TreeViewHelper.cs
2.65625
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 System.Windows.Media; namespace HOIA.Erweiterungen { public class TreeViewHelper { public static vo...
834e715eef3a184c0436a37750ee1d8d61da043c
C#
csaba-dery/SInterpreter
/SInterpreter/Procedure.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SInterpreter { internal abstract class Procedure { internal Procedure(Frame environment) { Parameters = new List<string>(); } internal Procedure(Frame definitionEnv, Lis...
926c5bb98ca0f4921ea9814f3317f79a511f3448
C#
XMTei/legendary-struggle
/src/LS.Core/CharacterBehavior.cs
2.625
3
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; namespace LS.Core { public interface ICharacterBehavior { TargettedSkill Act (GameState state, ItemResolver<Character> c); } public class CharacterBehavior : ICharacterBehavior { Dictionary <string, Behavi...
b7cd057396194319f80e1dccb73eead9a09c49fe
C#
keithmg/win8-xaml-sdk
/Grid/Aggregates-DelegateAggregateDescriptor/CustomIKeyLookUp.cs
2.578125
3
using Telerik.UI.Xaml.Controls.Grid; namespace Aggregates_DelegateAggregateDescriptor { public class RegularSalaryKeyLookUp : IKeyLookup { public object GetKey(object instance) { var employee = instance as Employee; double regularSalary = employee.RegularWork...
18e9695ae554861336ddbb4c5f0037ee7736bfa9
C#
tinhtan2505/bookStory.WebBookApp
/bookStory.Data/Configurations/BookConfiguration.cs
2.75
3
using bookStory.Data.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace bookStory.Data.Configurations { public class BookConfiguration : ...
9569d7a351dbadd56522d9a01a388e10dbcd485c
C#
oliver021/deriv-dotnet-api
/OliWorkshop.Deriv/StreamHandler.cs
2.765625
3
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using OliWorkshop.Deriv.ApiResponse; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Channels; using System.Threading.Tasks; namespace OliWorkshop.Deriv { /// <summary> /// The stream handler represent a class wi...
a98b20455ae6c6b963c48048a8b2d4415c1e0a72
C#
MikeSemicolonD/GAM-350-Projects
/MidTerm/Milestone 2/Connect4Client/Assets/Scripts/BoardColumn.cs
2.703125
3
using System.Collections.Generic; using UnityEngine; public class BoardColumn : MonoBehaviour { //Assumed to be ordered from bottom to top public List<GameObject> pieces; public int columnIndexId = 0; /// <summary> /// Client side: /// When a client clicks a button to place a piece it'll ca...
bd00a682918945202f607bb505eb19a54b6785b4
C#
travisolbrich/AerialMapping
/Project/AerialMapping/MenuItem.cs
3.15625
3
//----------------------------------------------------------------------- // <copyright file="MenuItem.cs" company="CSCE 482: Aerial Mapping"> // Copyright (c) CSCE 482 Aerial Mapping Design Team // </copyright> //----------------------------------------------------------------------- namespace AerialMapping { ...
abda2388f32f2135ec6ddbd97cf8798f835ab1df
C#
MKperson/Lab_2
/AgeCalculatorV2/AgeCalculator.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace AgeCalculatorV2 { public class AgeCalculator { private int Month {get;set;} private int Day { get; set; } private int Year { get; set; } private string Result ...
eb0ac565667dee8ad99d8affe650ba795230824e
C#
QPC-database/cta
/src/CTA.Rules.Common/Extensions/StringExtensions.cs
2.859375
3
using System.Text.RegularExpressions; namespace CTA.Rules.Common.Extensions { public static class StringExtensions { public static bool WildcardEquals(this string source, string compareString) { var regexSource = new Regex( Regex.Escape(source).Replace(@"\*", ".*")....
8cdb49add2336239b0a7e8bf92addb32c09f4e2b
C#
MackYang/LogService
/SoEasy/SoEasy.DB/Join.cs
2.6875
3
using SoEasy.Common; using SoEasy.Model.BaseEntity; using System; namespace SoEasy.DB { /// <summary> /// 用于设置Join查询的类 /// </summary> public class Join { public Parent LeftModel { get; set; } /// <summary> /// 左表要显示的列,逗号分开,输入/表示不返回任何列 /// </summary> public s...
3960c2dc841a58ac59eab1d5e11626e7396142f7
C#
GitHubKnight/multi-orm-samples
/ORMSCompireSample/Service.EF4/PeopleService.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using Infrastructure.EF4; using Service.EF4.Repositories; using Domain; using Infrastructure; namespace Service.EF4 { public class PeopleService:IPeopleService { private readonly IPeopleRepository _peopleRepository; ...
1392b0f6d092e46fadfc6d812036914777425dc1
C#
brettveenstra/demo-talk_dependencyinjection-dotnet
/src/simple/class_that_doesTooMuch.cs
3.453125
3
// There should never be more than one reason for a class to change. (hence it will be only doing one thing in the overall system) class Program { Report report = new Report(); report.Print(); Console.WriteLine("Hitkey"); Console.ReadKey(); } class Report { public void Print() { GetData(); ...
c7f0fd2e842799c1fc6b4328c1bac3a8cc80d82c
C#
DanielCirry/Degree53
/Degree53.Domain/Services/Degree53service.cs
2.78125
3
using Degree53.DataLayer.Contracts; using Degree53.DataLayer.Entities; using Degree53.Domain.Contracts; using Degree53.Domain.Models; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Degree53.Domain.Services { public class Degree53Service : IDegree53Service { ...
8b37d0b35e6c14290ecb9a14e6638d9b8011fe7c
C#
DJBuro/SikuliWrapper
/SikuliWrapper/Utilities/ImageFactory.cs
2.796875
3
namespace SikuliWrapper.Utilities { using SikuliWrapper.Interfaces; using SikuliWrapper.Models; public static class ImageFactory { private const double DefaultSimilarity = 0.7; public static IImage FromFile(string path, double similarity = DefaultSimilarity) { return new FileImage(path, similarity); }...
8a298d4ff34e790ec0cdb40dad81be837de5332f
C#
Diegoferreiradev/logica_prog_csharp
/Exercicio06/Program.cs
4
4
using System; namespace Exercicio06 { class Program { static void Main(string[] args) { string[] vet = Console.ReadLine().Split(' '); int x = int.Parse(vet[0]); int y = int.Parse(vet[1]); while (x != y) { Console.WriteLine("Digit...
b81a24ed0def8ca35613dc308884a5646fe23869
C#
ZhuangyingXu/msdn-code-gallery-community-s-z
/Working with Copy to Output Directory in C# and VB.NET/[C#][VB]-Working with Copy to Output Directory in C# and VB.NET/C# and VB/WindowsFormsApplication1/Form1.cs
2.703125
3
using DataGridViewExtensionMethods; using System; using System.Data; using System.Windows.Forms; using SharedFileOperations; using WindowsFormsApplication1.Properties; namespace WindowsFormsApplication1 { public partial class Form1 : Form { private BindingSource bsCustomers = new BindingSource(); ...
d57b963a3ebaebede4b6a43b7035e67d909591b8
C#
miroslavtushev/AssemblyInterpreter
/ProgrammingAssignment/Instructions/OneConstantInstruction.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProgrammingAssignment.Instructions { class OneConstantInstruction : AbstractInstruction { protected int Op { get; set; } public OneConstantInstruction(stri...
5400aac0340f6c073abc525bccfd43c36e1fdfcd
C#
Jjagg/Bawx
/Bawx/VertexTypes/QuadData.cs
2.796875
3
using System.Runtime.InteropServices; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace Bawx.VertexTypes { [StructLayout(LayoutKind.Sequential, Pack = 1, Size = 8)] public struct QuadData : IVertexType { public byte X; public byte Y; public byte Z; ...
a0503125e8ff65986ec3e018a1239d17c5095ca0
C#
DanRuby/GameJam-2021
/Assets/Scripts/Managment Game/Week And Day System/MonthExtensionClass.cs
3.21875
3
public static class MonthExtensionClass { public static string ToRussianString(this Month month) { switch (month) { case Month.January: return "Январь"; case Month.February: return "Февраль"; case Month.March: re...
0f025875e4c3eb9ca6d81e774b6c8d0eedfabc51
C#
nhtdalat/gsDemo
/AVT.Media/RTSP/SDP/MediaDescription.cs
2.796875
3
 using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AVT.Media.RTSP.SDP { public enum TransportProtocol { UDP, RTP_AVP, RTP_SAVP, UNKNOWN, } public enu...
206d837592512ae66b69dbf93aa510ab0a9b2ba1
C#
bakasura980/Team-Project3
/Work/Work/Budget.cs
3.078125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Work { class Budget { private string data; public string Data { get { return data; } set { data = value; } } private s...
6496c906428e79671c1649173d0eabfaa96d097a
C#
chance221/TBQuestGame
/TBQuestGameS4/DataLayer/GameData.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TBQuestGame.Models; using System.Collections.ObjectModel; namespace TBQuestGame.DataLayer { public static class GameData { public static Player PlayerData() { ...
9da32d6f9c9e3548dc3a9757806837966a52e2d1
C#
bubdm/Open.Threading
/AsyncProcess.cs
2.59375
3
using Open.Disposable; using System; using System.Diagnostics.Contracts; using System.Threading; using System.Threading.Tasks; namespace Open.Threading { public class AsyncProcess<T> : DisposableBase where T : new() { protected AsyncProcess(TaskScheduler? scheduler) { Scheduler = scheduler ?? TaskSchedule...
3d9a4c1a6981d9c57beb08e70c32dd5d19cd7ddf
C#
decantr/rgu-compilers
/seventh/Triangle.Compiler/SyntaxTrees/Expressions/CharacterExpression.cs
2.53125
3
using Triangle.Compiler.SyntaxTrees.Terminals; namespace Triangle.Compiler.SyntaxTrees.Expressions { public class CharacterExpression : Expression { public CharacterExpression(CharacterLiteral characterLiteral, SourcePosition position) : base(position) { Compiler.Write...
ae1eaeff72379ece9b800e91342a67d12b726fcd
C#
Unity-Technologies/ProjectAuditor
/Editor/Location.cs
3.0625
3
using System; using UnityEngine; namespace Unity.ProjectAuditor.Editor { /// <summary> /// Location of a reported issue /// </summary> [Serializable] public class Location { [SerializeField] int m_Line; [SerializeField] string m_Path; // path relative to the project folder ...
e114eb583092726af52eff77e9931670994eedea
C#
Pvredev/StockSharp
/BusinessEntities/UnitHelper.cs
2.75
3
#region S# License /****************************************************************************************** NOTICE!!! This program and source code is owned and licensed by StockSharp, LLC, www.stocksharp.com Viewing or use of this code requires your acceptance of the license agreement found at https://github.com/St...
e6e3e73eafdaa4427f9c13d50d33521bc8ce2486
C#
jlfulmer/SageScrolls
/OldClasses/Task.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace sagescroll { /// <summary> /// This is responsible for holding all the task information and requirements. /// </summary> class Task { private static int m_nLastTask = -1; #region TaskD...
8b1058dfe3eaa321a6f6032b990ef16b5d1cc5c4
C#
maxponomarov/MicrostructureAnalysis
/project/MetalographicsProject/Filters/Forms/ExtractColorForm.cs
2.703125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace MetalographicsProject.Filters.Forms { public partial class ExtractColorForm : Form { private readonly Bitmap image; public AbstractFilter filter; public ExtractColorForm(Bitmap imag...
39e0b15d8e734fffb24c28f1b2ccda88fc3aece9
C#
RBalsera87/DAMnificus_Servidor
/ServidorConexion/Metodos/GeneradorTokens.cs
2.828125
3
using System.Security.Cryptography; using System.Text; namespace ServidorConexion.Metodos { class GeneradorTokens { public static string GenerarToken(int size) { var charSet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; var chars = charSet.ToCharAr...
7c185d35a7436ea01baf7af32f6c40cd37887641
C#
lemmit/AdventOfCode15
/AdventOfCode23/Instructions.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AdventOfCode23 { public class IncrementInstruction : IInstruction { int index; public IncrementInstruction(int index) { ...
f482e05b761eb7b2d9928845669534c493c8e506
C#
Silvana123/SoftUni
/Level 0/01. CSharp Basics (May 2014)/ExamProblems/Exam14Apr14Evening_02/StudentCables.cs
3.53125
4
using System; class StudentCables { static void Main() { int n = int.Parse(Console.ReadLine()); int lenght = 0; int count = 0; for (int i = 0; i < n; i++) { int number = int.Parse(Console.ReadLine()); string measure = Console.ReadLine(); ...
be11ea2f35cef88a49baa942fe8fc8da8613541a
C#
aerooneqq/sentenceapi
/Application/Hash/HashService.cs
2.859375
3
using System.Security.Cryptography; using System.Text; using Application.Hash.Interfaces; namespace Application.Hash { public class HashService : IHashService { public string GetHash(byte[] bytes) { using MD5 md5Hash = MD5.Create(); byte[] hash = md5Hash.ComputeHash(by...