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
5f20c61ffca2186343ed1c66be93bfcca381a0dc
C#
MGoldobin/Related-Controls-postgresql
/лаба4 БД/Form1.cs
2.53125
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 Npgsql; namespace лаба4_БД { public partial class Form1 : Form { pu...
4b12910d6d722fa541670f9e5d6d4f616ee17b5c
C#
Sapfiryt/Hero_Fights
/Hero_Fights/Hero.cs
2.921875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media; namespace HeroFight { public abstract class Hero:IHero { protected int x; protected int hp; protected int maxHp; ...
7e49e9d389f56b5d109c96adea1eba3ae76f3621
C#
tazik047/NixSolution
/Lection3/Task/Task/Being.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Task { /// <summary> /// Живое существо /// </summary> public abstract class Being { /// <summary> /// Идентификатор существа, который доступен для чтения, ...
82d7d529df42e50a3388bf8d6be29fbebf40bb51
C#
Nurillan/C-Sharp-Lab
/C-Sharp Lab/SelectForm.cs
2.90625
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 C_Sharp_Lab { public partial class SelectForm : Form { public byte Age { get; ...
bc00047d1f90b60501840f0af1646af55f8544e2
C#
scorpcodes/Practice-Junk
/Data Transmission/SimpleWeatherTest/SimpleWeatherTest/Form1.cs
3.046875
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 Weather; using Conversions; namespace SimpleWeatherTest { public partial class WeatherWindow ...
782cdb640a9a4e0d2681996b300ceff8e0ba66b4
C#
Vikramjeet30014464/methods-exercise
/methods/methods/Program.cs
3.71875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace methods { class Program { static void Main(string[] args) { Console.WriteLine("***********Question2*********"); Console.Write("Please enter a di...
2a2046ffcb83e6fb1af69a53c53adf19a2574863
C#
BunyodUz/SpssLibCore
/SpssLibCore/FileParser/Records/EncodingExtensions.cs
3.265625
3
using System; using System.Text; namespace SpssLibCore.FileParser.Records { /// <summary> /// Extentions for encoding methods to help with string writing/reading in spss formats /// </summary> internal static class EncodingExtensions { /// <summary> /// Gets a decoded string, with ...
6a041930e105084b3432ff572fbccc6a385049ca
C#
Mantheous/TimeGuy
/Time Guy/Assets/Scripts/DroneSpawner.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DroneSpawner : MonoBehaviour { public float spawnRate; public GameObject dronePrefab; public float pushoutForce; float timer = 0; bool active; void Update() { if(active) { ...
46ff498a5715d6368230ba50062ace2f2c054ea5
C#
jn84/FOS-SaveEditor
/FOS-SaveEditor/GameData/Outfit.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CsvHelper; using CsvHelper.Configuration; // ReSharper disable InconsistentNaming namespace FOS_SaveEditor.GameData { public sealed class OutfitMap : CsvClassMap<Outfit> { public O...
9a3dfdb2df9a620370fd9c13fcb7a9af4ba6ce2d
C#
SShope/Softuni-Fundamentals-Exercises
/4-Data-Types-Variables-Exercise/1_11/Program.cs
3.265625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _1_11 { class Program { static void Main(string[] args) { int distance = int.Parse(Console.ReadLine()); byte hours = byte.Parse(Console.ReadLine...
fca20bc47004f72d404658b506e0f9c2c5460879
C#
alipay/alipay-easysdk
/kernel/csharp/EasySDKKernel/Kernel/Util/AntCertificationUtil.cs
2.640625
3
using System.Collections.Generic; using System; using Org.BouncyCastle.X509; using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Crypto; using System.Security.Cryptography; using System.Text; using System.Linq; namespace Alipay.EasySDK.Kernel.Util { /// <summary> /// 证书相关工具类 /// </summary> public...
bf3a1e82d308e7920555940aa5a452314a409406
C#
HughP/keymapper
/website/App_Code/CommonMethods.cs
3.34375
3
namespace KMBlog { using System; using System.Text.RegularExpressions; public class CommonMethods { public static string GetSlug(string seed) { // Rewrite spaces and full stops as hyphens, strip out everything else non-alpha // and remove consecutive h...
1e91f06bce5e772732ae855716a9cded8f987ec4
C#
Hekku2/task-randomizer-web-backend
/DataStorage/DataObjects/Events/PlayerLeftEvent.cs
2.578125
3
using Newtonsoft.Json.Linq; using System; namespace DataStorage.DataObjects.Events { public class PlayerLeftEvent : Event { public PlayerLeftEvent(Guid sessionId, string playerName) : base(sessionId, EventType.PlayerLeft, $"Player {playerName} left", $"Player {playerName} left the session.") {...
b59a48140882dc871121b65945fd1d64f42a2545
C#
troy-riblett/CST-465
/MainProject/Lab1/Code/Repositories/CategoryDBRepository.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Data.SqlClient; using System.Configuration; namespace CST465 { public class CategoryDBRepository : IDataEntityRepository<CategoryData> { public CategoryData Get(int id) { ...
8a5df499faf6ab4d5e842e1402b5b58725c7040c
C#
turpija11/TpsParser
/src/TpsParser/Tps/Record/MemoRecord.cs
2.65625
3
using System; using System.Collections.Generic; using System.Text; using TpsParser.Binary; using TpsParser.Tps.Header; using TpsParser.Tps.Type; namespace TpsParser.Tps.Record { public sealed class MemoRecord { public MemoHeader Header { get; } private RandomAccess Data { get; } publi...
ddb52e0492a4fc120ea597e38d49c21944b6cccf
C#
shendongnian/download4
/code9/1693037-48540285-165844068-2.cs
2.71875
3
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "application/json"; DateTime start = new DateTime(1970, 1, 1); DateTime end = new DateTime(1970, 1, 1); start = Convert.ToDateTime(context.Request.QueryString["start"]); end = Convert.ToDateT...
f874e9f8e88a7ab4d09f5ea1cf5a2c2ecff7aa53
C#
josef3113/MatrixCheckers
/MatrixCheckers/CheckersLogic.cs
2.96875
3
using System; using System.Collections.Generic; using System.Text; namespace MatrixCheckers { class CheckersLogic { private byte[,] m_Mat; private byte m_Size; private bool m_GameOn; private const bool k_Player1 = true; private bool m_NowPlaying; short playerOne...
f5108550c180ef38129a84f65cdeb3cf3769cce7
C#
APatleeva/1-Csharp-Homeworks
/4-ConsoleInOutput/01-Sumof3Numbers/SumNumbers.cs
3.828125
4
using System; using System.Threading; using System.Globalization; /*Problem 1. Sum of 3 Numbers Write a program that reads 3 real numbers from the console and prints their sum. Examples: a b c sum 3 4 11 18 -2 0 3 1 5.5 4.5 20.1 30.1 */ class SumNumbers { static void Main() { Threa...
b0503f50878996f7319ebebb28a44546dd4a14e6
C#
noobsmuc/Extension
/Extension.Test/DateTimeExtension.UnitTest.cs
3.09375
3
using System; using System.Collections; using NUnit.Framework; namespace NoobsMuc.Extension { [TestFixture] public class DateTimeExtension { [SetUp] public void Setup() { } [Test, TestCaseSource(typeof(TestData), "StartOfWeek")] public DateTime StartOfWeek...
8fb2f7bc2c6dd6b5a8189e4e7a9d94ec17b363df
C#
birajbhow/poq-test-api
/PoqTestApi/PoqTestApi/Services/IProductFilter.cs
2.8125
3
using PoqTestApi.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace PoqTestApi.Services { /// <summary> /// A product filter service encapsulating filtering logic /// </summary> public interface IProductFilter { /// <summary>...
bff6994e22dbd8d0e1b253da078bbd59ce7202cd
C#
revo16pl/Time-TimePeriod
/TimeTimePeriodLib/Time.cs
3.765625
4
using System; using System.Linq; namespace TimeTimePeriod.Lib { public struct Time : IComparable<Time>, IEquatable<Time> { #region Parameters public byte Hours { get; set; } public byte Minutes { get; set; } public byte Seconds { get; set; } #endregion #regio...
b1217187250deb4d6210206b54c2b3d8f535a6e2
C#
YensiDLuna/ProyectoFinalYensi
/PROJECTO FINAL YENSI/BLL/HabitacionBLL.cs
2.84375
3
using Microsoft.EntityFrameworkCore; using PROJECTO_FINAL_YENSI.DAL; using PROJECTO_FINAL_YENSI.Entidades; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace PROJECTO_FINAL_YENSI.BLL { public class HabitacionBLL { public static bool...
5c431447aea69a414ddefcdc8a59e35f82cb4601
C#
RnbwTrip/ooh_calc
/ooh_calc/TwoArgument/CalculatorFactory.cs
3.0625
3
using System; namespace ooh_calc.TwoArgument { public static class CalculatorFactory { public static ICalculator CreateCalculator(string name) { switch (name) { case "buttonPlus": return new Add(); case "buttonMinus...
b3eb17c8a26f4201a515a8f5936680fdbff7d9f1
C#
orichisonic/gmtoolsServerJW2HK
/Server/COMMON/DataInfo/GMUserModule.cs
2.609375
3
using System; using System.Data; using System.Data.SqlClient; using Common.Logic; namespace Common.DataInfo { /// <summary> /// GMUserModule ժҪ˵ /// </summary> public class GMUserModule { /// <summary> /// ûID /// </summary> private int userID = 0; /// <summary> /// ģб /// </summary> private string...
8c7ebf52e1f9bd154a5c8fce3f0c5b6cc0f01e00
C#
xutingjie168/CamToolsNet
/FileParsers/Block.cs
2.78125
3
/** * Copied from the SimpleGcodeParser file * Copyright (c) David-John Miller AKA Anoyomouse 2014 * Modified by perivar@nerseth.com **/ using System; using System.Drawing; using System.Collections.Generic; using System.Globalization; using System.Text; using CoordinateUtils; namespace GCode { public struct Line...
2d81d9068b6fbe88ada1811895de5b77305c82a9
C#
CarbonEternity/Notepad
/FindForm.cs
2.96875
3
using System; using System.Windows.Forms; namespace Lab1_part4_Notepad { public partial class FindForm : Form { public FindForm() { InitializeComponent(); } private void FindForm_Load(object sender, EventArgs e) { } // Создаем перечисление...
519c4dd2ee009a379e4f918d8266834b1a0ec1e2
C#
kdavidmitchell/A-Challenger-Approaches
/Assets/Alpha/Character Creation/ChangingColor.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ChangingColor : MonoBehaviour { public GameObject panel; public SpriteRenderer head; public Image squareHeadDisplay; public Color[] colors; public int colorIndex = 1; void Update() { squareH...
5d8aa9092a6870fcf5edd7f998e199658e2f639e
C#
geejay101/dcomms
/Dcomms.Core/DRP/Firewall.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; namespace Dcomms.DRP { public class Firewall { public class SenderInfo { public IPAddress IpAddress { get; set; } public DateTime FirstPacketTimeUtc { get; set; } ...
47623c65981da63fd0b2852e94e1e65b44539291
C#
goatsmasher/GapInsurance
/Factories/ProductFactory.cs
2.828125
3
using System.Collections.Generic; using System.Data; using System.Linq; using Dapper; using Microsoft.Extensions.Options; using MySql.Data.MySqlClient; using stupid.Models; using stupid.ViewModels; namespace stupid.Factory { public class ProductFactory : IFactory<Product> { private readonly IOptions<My...
79a9064aa3ed1bacdcfd29552e0e44bcf4548d97
C#
anudeep-mj/SomeCSharpPrograms
/morseCodeTranslator.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DPSolns { class morseCodeTranslator { static void Main(string[] args) { Dictionary<char, string> codeTable = new Dictionary<char, string>(); Dictionary<string, char> reversed...
9f6597d15b727a848fcd4e65bf43c54e43dcb054
C#
head-first-csharp/fourth-edition
/Code/MVVM_WPF/Stopwatch_part_3/Stopwatch/ViewModel/StopwatchViewModel.cs
2.765625
3
using System; using System.Collections.Generic; using System.Text; namespace Stopwatch.ViewModel { using Model; class StopwatchViewModel { private readonly StopwatchModel _model = new StopwatchModel(); public void StartStop() => _model.Running = !_model.Running; pu...
5166ced0a642feb6409fe8d8c29e5c804f538fda
C#
Mister1SI/ConsoleGame
/main.cs
3.671875
4
using System; using System.IO; public class ConsoleApp { public static void Main() { bool isAlive = true; int score; if (isAlive) { string ReadName; Console.WriteLine("Welcome\n==========\nWould you like to select a new name?(y or n)"); string newName = Console.ReadLine(); if (newN...
55bc0194f81bf4fd6e3fa2551198dcf8c8daec02
C#
newchild/ModPE-Sandbox
/JavaScript EnDecoder/Console.cs
2.84375
3
using System; using System.Linq; using System.Windows.Forms; namespace JavaScript_EnDecoder { public partial class Console : Form { public Console() { InitializeComponent(); } private void Console_LostFocus(object sender, EventArgs e) { this.SendToBack(); } pu...
7a4a74b6f36992808d18fc93ca1bfc6e4dbece69
C#
valeferaudo/TP2-Net-master2
/Business.Logic/UsuarioLogic.cs
2.75
3
using Business.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Business.Logic { public class UsuarioLogic : BusinessLogic { private Data.Database.UsuarioAdapter _UsuarioData; public Data.Database.UsuarioAd...
22ff3944f56321698aabed7b660ebb3d9a69b992
C#
artfuldev/LinqAn.Google
/src/LinqAn.Google/Metrics/Metric81.cs
2.59375
3
using System.ComponentModel; namespace LinqAn.Google.Metrics { /// <summary> /// The name of the requested custom metric, where 81 refers the number/index of the custom metric. Note that the data type of ga:metric81 can be INTEGER, CURRENCY or TIME. /// </summary> [Description("The name of the requested custom me...
5b899c3aaf2fd71f76b111fe9669b07c903147ed
C#
pirvandrei/Rawdataproj2
/Rawdataproj2/DataService/Dto/PagingInfo.cs
2.53125
3
using System; using System.Collections.Generic; using System.Text; namespace DataService { public class PagingInfo { const int MaxPageSize = 25; private int _pageSize = 10; private int _page = 1; public int Page { get { return _page; } set { _page = value; } } public i...
e13c044be10f31c61d4554b8e497b84fb655ce04
C#
JarneStaalPXL/CSHARP
/Semester 2/ExamenOefenen/ExamenOefenen/Deel 1/FileClass.xaml.cs
2.828125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; using System.Threading; 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.Wind...
20db3e6ea2a2e2926fb3d8ccd86aa9904ad4d1bd
C#
michelseb/lordoftwippies
/Twippies/Twippies/Assets/Scripts/Objects/Twippies/TwippieStats/Memory.cs
3.296875
3
using System; using System.Collections.Generic; public enum MemoryType { People, Places } public class Memory { public List<Guid> Data { get; set; } public MemoryType Type { get; set; } public int Capacity { get; private set; } public Memory(MemoryType memoryType) { Type = memory...
db5abdb31e7d9ceea8c64b0783399a34f07ef5b7
C#
skukucka98/Ticket-System
/Online Ticket System/Online Ticket System/CSharpCode/Users.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Online_Ticket_System.CSharpCode { class Users { public int ID { get; set; } public string Username { get; set; } public string Password { get; set; } public string Email { get; set; ...
fc382f7166ec2b929215782e8cbc149824f60cfd
C#
PikataGitHub/CSharp-Part-One
/Loops/12.DecimalToBinary/DecimalToBinary.cs
3.40625
3
using System; class DecimalToBinary { static void Main() { long enteredN = long.Parse(Console.ReadLine()); long[] symbols = new long[64]; int counter = 0; if (enteredN==0) { Console.WriteLine(enteredN); return; } if (enteredN==1) { ...
034be7efa902efb83dbbe34536e4362b1b0dcda4
C#
PothuluruMahesh/TaskParallel-Library
/Thread6.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace TaskParallelLibrary1 { class Thread6 { static int Count=0; static int Count1=500; static void Test1() { while(true) { ...
54364a237cd6e9697442d9308eedf7565cd457d8
C#
johnculviner/FluentKnockoutHelpers
/src/FluentKnockoutHelpers.Core/Builders/EnumerableBuilder.cs
2.609375
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Web; using System.Web.WebPages; using FluentKnockoutHelpers.Core.NodeBuilding; using FluentKnoc...
360fb32fe25999a8cfe8f45e3f215b6bbb8ea4f5
C#
stoiveyp/NottinghamTechMeets
/NottTechMeet_Skill/Handlers/Fallback.cs
2.53125
3
using System; using System.Xml.Serialization; using Alexa.NET; using Alexa.NET.Request.Type; using Alexa.NET.RequestHandlers; using Alexa.NET.RequestHandlers.Handlers; using Alexa.NET.Response; using Amazon.Runtime; namespace NottTechMeet_Skill.Handlers { public class Fallback:IntentNameSynchronousRequestHandler ...
898e2d5dbd77ea83e2955e621e628253e267008c
C#
adambenovic/unity-bc
/Assets/UMSAGL/Scripts/FileInfo.cs
2.71875
3
public struct FileInfo { public string filePath; public int lineFrom; public int lineTo; public FileInfo(string filePath, int lineFrom, int lineTo) { this.filePath = filePath; this.lineFrom = lineFrom; this.lineTo = lineTo; } }
a275c163afc86af378471badcf3f4765e7c32c9e
C#
alexhackbai/geometry3Sharp
/core/MemoryPool.cs
3.28125
3
using System; using System.Collections.Generic; namespace g3 { /// <summary> /// Very basic object pool class. /// </summary> public class MemoryPool<T> where T : class, new() { List<T> Allocated; List<T> Free; public MemoryPool(int nEstCapacity = 64) { Allocated = new List<T>(nEstCapacity); Free...
1f20051c3003793a85dcfb3777f7ffc4568d7e26
C#
travipati/Senior_Design
/MazeAndBlue/MazeAndBlue/MazeAndBlue/Beta/Code/Ball.cs
2.8125
3
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace MazeAndBlue { public class Ball : Sprite { public int playerId { get; set; } public bool mouseSelected { get; set; } int prevId; Color color; public Ball(Point pos, Color c) { ...
865f971904001b98d1b7ea14476826373a306fda
C#
dotnet/dotnet-api-docs
/snippets/csharp/System.Globalization/CultureInfo/DisplayName/getcultures.cs
3.234375
3
// The following code example displays several properties of the neutral cultures. // <snippet1> using System; using System.Globalization; public class SamplesCultureInfo { public static void Main() { // Displays several properties of the neutral cultures. Console.WriteLine("CULTURE ISO ISO WIN D...
5e95841a9c3f85f75ce981e99abd5026cbd85eb2
C#
ivakis1/Programming-Fundamentals-C-Sharp
/04. Methods and Debugging - Lab/p08_Multiply Evens by Odds/MultiplyEvensByOdds.cs
4.15625
4
 namespace p08_Multiply_Evens_by_Odds { using System; class MultiplyEvensByOdds { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int sumEven = GetSumOfEvenDigits(n); int sumOdd = GetSumOfOddDigits(n); int result = s...
5c2cb18003905258937fef767c9250bf78475c5c
C#
Dataset-Eric/cs8dotnetcore3-eric
/Chapitre03/Ex3.3/Program.cs
3.578125
4
using System; namespace Ex3._3 { class Program { //parcourir tous les chiffres de 1 à 100 //Fizz pour chiffre div par 3 //Buzz pour chiffre div par 5 //FizzBuzz pour chiffre div par 3 et par 5 static void Main(string[] args) { const int min = 1; ...
ad2c6b4ffe33952e1f9b7382bd7628aa603433cc
C#
adamk33n3r/LD49
/Assets/Scripts/ScriptableObjects/Variables/IntegerVariable.cs
2.765625
3
using UnityEngine; [CreateAssetMenu(menuName = "Variables/Integer")] public class IntegerVariable : BaseVariable<int> { public static bool operator ==(IntegerVariable a, IntegerVariable b) { return a.Value == b.Value; } public static bool operator !=(IntegerVariable a, IntegerVariable b) ...
3488f056604aad1bb46d8bdb3e0d4bfc22303834
C#
Suhestvitelnoe/SocialNetwork
/SocialNetwork.Core/Models/Repos/UserRoleRepository.cs
2.953125
3
#region using System; using System.Linq; using SocialNetwork.Core.Models.Abstract; #endregion namespace SocialNetwork.Core.Models.Repos { public class UserRoleRepository : RepositoryBase, IUserRoleRepository { /// <summary> /// Добавление роли к пользователю /// </s...
e1bf508582e599102aaf5342dd23724a22f1e4af
C#
jonasbay/MicroserviceExample
/Domain/InformationService/InformationService.cs
2.84375
3
using System.Threading.Tasks; using Persistence.Repositories.Information; namespace Domain.InformationService { public class InformationService { private readonly IInformationRepository _repository; public InformationService() { _repository = new InformationRepository(); ...
085e5c45b2afedb83b93f770d09c53c4c95f4dbf
C#
SKhorozian/TCG
/TCG/Assets/_Scripts/Deck/DeckCard.cs
2.96875
3
using UnityEngine; [System.Serializable] public class DeckCard { [SerializeField] Card card; [SerializeField] int copies; DeckCard (Card card) { this.card = card; this.copies = 1; } public void IncrementCopy () { copies++; copies = Mathf.Clamp (copies, 0, 3); ...
b61ce35dc62e01c8c8daf82a7c7ea7585a23f4a4
C#
key-moon/atcoder
/bitflyer2018-final-open/bitflyer2018_final_a/4349476.cs
2.734375
3
// detail: https://atcoder.jp/contests/bitflyer2018-final-open/submissions/4349476 using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Numerics; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threadin...
3f6425de6cb493b11ef8c8c9b84c0614d92c8a02
C#
ZanoniCintia/laboratorio_2
/Entidades_36 - copia/Entidades_30/AutoF1.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entidades_30 { public class AutoF1: VehiculoDeCarrera { private short caballosDeFuerza; public short CaballosDeFuerza { get { return cabal...
a92787a029fb376842b68bf6098e74f6dcbb0657
C#
shendongnian/download4
/code1/185412-3537694-7380893-4.cs
3.390625
3
public static class EnumeratorExtensions { public static IEnumerable<T> ToEnumerable<T>(this IEnumerator<T> enumerator) { while(enumerator.MoveNext()) yield return enumerator.Current; } }
ebac96967fa9cdce99251b4ade7ed88e48574080
C#
Jose-Pech88/EjemploBuilder
/Builder/Builder/Services/Builder/CarBuilder.cs
2.796875
3
using Builder.Services.Builder.Interface; using Builder.Services.Interfaces; namespace Builder.Services.Builder { public class CarBuilder : IBuilder { private Car Vehiculo = new Car(); public CarBuilder() { this.Reset(); } public void Reset() { ...
a69d304e378f0a67f708364cda27cb5b35036f8f
C#
head-first-csharp/fourth-edition
/Code/Events_and_Delegates/BaseballSimulator/BaseballSimulator/Fan.cs
3.109375
3
using System; using System.Collections.Generic; using System.Text; namespace BaseballSimulator { class Fan { private int pitchNumber = 0; public Fan(Ball ball) => ball.BallInPlay += BallInPlayEventHandler; void BallInPlayEventHandler(object sender, EventArgs e) {...
e3958aa8b9a59392ca4c7c92189fc94000e674be
C#
marcelopaglione/PasswordManager
/PasswordManager.Globals/DatabaseConnection.cs
3.0625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PasswordManager.Globals { public class DatabaseConnection { private static DatabaseConnection _instance; protected DatabaseConnection() { } ...
896ac80d1989e216ac99a3cff89797ff4d971f8b
C#
CatmanIta/FuzzyTactics
/Assets/Units/Factories/UnitCategoryFactory.cs
2.78125
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using MiniJSON; // Generates category instances public class UnitCategoryFactory : MonoBehaviour { //List<List<UnitCategoryType>> categories; Dictionary<string,UnitCategoryType> unitCategories; void Awake () { unitCategories = ...
1eccb0a3e6cc813b2c04e94f056f17c459005368
C#
elephanted/Todd
/Todd.Test/RepositoryTests/CalendarEventRepositoryTest.cs
2.765625
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Todd.Data.Models; using System.Linq; using Todd.Domain; namespace Todd.Test { [TestClass] public class CalendarEventRepositoryTest { private CalendarEventAccessor accessor; public CalendarEventRepositoryTest() ...
cc31c645273440db2a5d690ae2642222055999c2
C#
LibVega/Vega
/Vega/Render/Camera/PerspectiveProjection.cs
2.859375
3
/* * Microsoft Public License (Ms-PL) - Copyright (c) 2020-2021 Sean Moss * This file is subject to the terms and conditions of the Microsoft Public License, the text of which can be found in * the 'LICENSE' file at the root of this repository, or online at <https://opensource.org/licenses/MS-PL>. */ using System...
3218abbfb23b905a010c2aa4d9d40c260f3ee6dd
C#
hungkunfu/Module4
/EmployeeMangement/EmployeeMangement/Services/SqpEmployeeSevices.cs
2.765625
3
using EmployeeMangement.Dbcontexts; using EmployeeMangement.Entities; using EmployeeMangement.Models.Employee; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace EmployeeMangement.Services { public class SqpEmployeeSevice...
5640c99e0f7f19e4a8827d073c11de72883bc3ba
C#
sataoko/DeviceTester
/DeviceTester/Tools/frmHTTPTester.cs
2.671875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net.Sockets; using System.Net; namespace DeviceTester { public partial class frmHTTPTester : Form { TcpClient _tcpClient; ...
b6ed1587a15713a9f56aa9e7184989060cc0d105
C#
LucasAlesterio/POO
/POO_FINAL/POO_FINAL/Grade.cs
2.65625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace POO_FINAL { public partial class Grade : Form { public Grade() { ...
18a7df6d1201552199774db6d75e9ab4c114bf53
C#
khaled-oueslati/coffeeMachine.backend
/CoffeMachineDAL/Managers/OrderTypeManager.cs
2.59375
3
using CoffeMachineDAL.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CoffeMachineDAL.Managers { public class OrderTypeManager { private ICoffeeContext _coffeMachineContext; public OrderTypeManager() ...
cdc60e3902d88c5e6eedb5c66d78767c2443198b
C#
semihyagcioglu/increment-the-app
/web-app/Library/Database.cs
3.0625
3
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; namespace increment_the_app.Library { public class DataBase { //private static string cnnStr = null; ///// <summary> ///// ...
b4a6d8c3f866cf865f1b40d5d374f60357d1ae67
C#
piscoTech/uniboIs2017
/Flotta/ClientSide/View/DispositivoPermessoListItem.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Flotta.ClientSide.View { public interface IDispositivoPermessoListItem { bool InUse { get; set; } string Type { get; } string AllegatoPath { get; set; } } class Disposi...
f23b5824dd9c08ad41b473dd54dcfe8bea3f3872
C#
Cryru/Emotion
/Emotion/Game/Animation2D/Animation2DHelpers.cs
2.953125
3
namespace Emotion.Game.Animation2D { public static class Animation2DHelpers { /// <summary> /// Returns the bounds of a frame within a spritesheet texture. /// </summary> /// <param name="textureSize">The size of the spritesheet texture.</param> /// <param name="frameSize">The size of individual frames.</p...
b2eb73c0869e252fe2daba6a3fbacc2845ef04a7
C#
AleksandrDolinskyi/Sharp
/Приведение типов.cs
3.3125
3
using System; namespase first_program { class Program { public static void Main(string[] args) { int i = -10; // целые числа которые меньше чем ноль uint u = 10; // целые числа которые больше чем ноль float f = 1.23f; // приблизительные числа bool b = false; // логическое значение string s = ...
3f3ed9ecaec906e419c157a41a78187b09c352cd
C#
Dalecrypt/meincrypt
/Meincrypt1/StartMe/UserChoice.cs
2.71875
3
using System; using Meincrypt.Encrypting; using Meincrypt.Terminal; namespace Meincrypt.StartMe { public class UserChoice { public static void Init(string x = "1", string y = "2", string z = "3", string inputFile = "", string outputFile = "") { string selec = Console.Read...
853d579b1be023f592be011a1768f10ff434ab86
C#
BerkshireT/InnovationShowdown2019
/InnovationShowdown/MainWindow.xaml.cs
2.6875
3
using System; using System.IO; using System.Media; using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Threading; using Amazon.SQS; using Amazon.SQS.Model; namespace InnovationShowdown { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> ...
c417dc650dbd834cf3a00a91276bcf00db876524
C#
Vick-edit/RailwayClient
/RailwayClient/DataAccess/Queries/QueryAllReportRow.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using RailwayClient.DataAccess.Entities; using RailwayClient.DTO; namespace RailwayClient.DataAccess.Queries { /// <summary> /// Получить список данных, представляющих строки из отчёта /// </summary> public class QueryAllReportRow ...
7d682a266f797d3f3a5993f0b5e0ff266803ac71
C#
schikin/nflac
/Nflac.Lib/Flac/Util/StreamReader.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Org.Nflac.Flac.Exceptions; namespace Org.Nflac.Flac.Util { class StreamReader { public static ushort ReadUShort(Stream stream) { ushort ret = 0; ushort buff =...
16070512518bb1f4508345b59cd5a8a32563c8b7
C#
purkhusid/MvcCoreBoilerplate
/src/MvcCoreBoilerplate/Middleware/CorrelationTokenMiddleware.cs
2.609375
3
using Microsoft.AspNetCore.Http; using Serilog.Context; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MvcCoreBoilerplate.Middleware { public class CorrelationTokenMiddleware { private readonly RequestDelegate next; public Correlatio...
9a13ca456fb02465e7d7fb090b5353392673f1a3
C#
duypr3/Angular2DotNetCore
/DAL/BaseRepository.cs
3
3
using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; namespace DAL { public class BaseRepository<T> : IBaseRepository<T> where T : class { #region Init ...
a7e5f2f823bb2be2740e5b62ff645359ea63e94b
C#
sebastiandymel/CrossAndCircleGame
/src/CircleAndCross.UI.Wpf/PositionCommand.cs
3.03125
3
using System; using System.ComponentModel; using System.Windows.Input; namespace CircleAndCross.UI.Wpf { public class PositionCommand : ICommand, INotifyPropertyChanged { private PositionType _occupation; private bool _winningPosition; public PositionCommand(Func<UserPlayer> currentPl...
b5006d154b6891fce6ef172e0de6e5a28aeebf00
C#
Alfredo-Antuna/Amazin
/test/WebStoreTests/DTOTests/MessageDtoTests.cs
2.53125
3
using System; using Xunit; using WebStore; using FluentAssertions; namespace test { public class MessageDtoTest { [Fact] public void ShouldCreateMessageDto() { User user1 = new User(); user1.Username = "Bruce Lee"; User user2 = new User(); ...
785fa58898265f85255b8c9b93d14e0bc9024ccc
C#
aegyss/HeadFIrstCSharp8
/HeadFirstCSharp8_5/Program.cs
3.21875
3
using System; using System.Collections.Generic; namespace HeadFirstCSharp8_5 { class Program { static void Main(string[] args) { Dictionary<int, RetiredPlayer> retiredYankees = new Dictionary<int, RetiredPlayer>() { { 3, new RetiredPlayer("Babe Ruth" , 19...
6a5fabb3cdfef6761086019c382fee6b1df89576
C#
FabioFaustino/Prestar_CMS
/Prestar/Models/TermsAndConditionsSection.cs
2.796875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace Prestar.Models { /// <summary> /// This class allows you to create a section template for the Terms and Co...
410736fb1a9bb4acca68606a5f959e0f545089bb
C#
blackpanther99/InnovatorAdmin
/InnovatorAdmin/Editor/VisualLineLinkText.cs
2.8125
3
using ICSharpCode.AvalonEdit.Rendering; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media.TextFormatting; namespace InnovatorAdmin.Editor { /...
100af3d426cb5b6a36fee0a4d2ebf2d7767eb25e
C#
Radiofisik/ExpressionParser
/ExpressionParser/ExpressionParser/Expression/VariableExpression.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExpressionParser.Expression { public class VariableExpression : BaseExpression { public string Name { get; } public VariableExpression(string name) { Name = n...
745e9016fbe66b0598d33ccc4a67af1f90a8d707
C#
sheikhimtiaz/playground-dotnet
/Playground/Greeter/Controllers/GreeterController.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using Confluent.Kafka; using Greeter.DTOs; using Greeter.Constants; using Greeter.Models; using Greeter.Producers; using Microsoft.AspNetCore.Http.Headers; using Microsoft.AspNetCore.Mvc; using Microsoft.E...
3532cb3feb1b6b63e068a3521cc57fc6d9b5cfaf
C#
jparimaa/sw-render
/sw-render/Point.cs
3.453125
3
using System.Numerics; class Point { public int X { get; set; } public int Y { get; set; } public Point(int x, int y) { X = x; Y = y; } public Point(float x, float y) { X = (int)x; Y = (int)y; } public Point(Vector2 v) { X = (int)v.X; ...
24b342594d647870f0c50c00831bb2e23a626c49
C#
SergiuVoloc/Project_Manager_Backend
/Evidenta/UnitTestProject1/UnitTest1.cs
3.109375
3
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace UnitTestProject1 { [TestClass] public class UnitTest1 { double m_balance; public void Withdraw(double amount) { if (m_balance >= amount) { m_b...
7e02e7a742e9d29ca2d28fb7c47b4493a2587078
C#
zd08513/MyBlog
/Tools/DESEncrypt.cs
2.71875
3
/// <summary> /// ˵Assistant /// ˣշ /// ϵʽ361983679 /// վ[url=http://www.cckan.net/thread-655-1-1.html]http://www.cckan.net/thread-655-1-1.html[/url] /// </summary> using System; using System.Configuration; using System.IO; using System.Security.Cryptography; using System.Text; namespace Tools { /// <su...
cddcf3bd0c371fc0c13a3f35f49cbe755bbe1d43
C#
smbc-digital/form-builder
/tests/unit-tests/UnitTests/Validators/MinMaxValidatorTests.cs
2.78125
3
using form_builder.Builders; using form_builder.Validators; using Xunit; namespace form_builder_tests.UnitTests.Validators { public class MinMaxValidatorTests { private readonly MinMaxValidator _validator = new MinMaxValidator(); [Fact] public void Validate_ShouldReturn_False_Validatio...
491e0d0f4ed2056b90e7e340569cea96547e7e9f
C#
markheath/musicrater
/MusicRater/MvvmUtils/UpdateSourceOnTextChangedBehaviour.cs
2.625
3
using System.Windows.Controls; using System.Windows.Data; using System.Windows.Interactivity; namespace MusicRater { /// <summary> /// this behaviour from http://jacob4u2.posterous.com/silverlight-4-textbox-update-source-on-text-c /// </summary> public class UpdateSourceOnTextChanged : Behavi...
d04c85b103c81dfe6fe9f621a7bd1281330d2b1d
C#
rickyvelis/MarioXNA
/SuperMarioWorldXna/SuperMarioWorldXna/LevelScreen.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Audio; namespace SuperMarioWorldXna...
593833349c75432941029f3c238932d1e14ae5b2
C#
taufikdev/theNewBoston-Beginner-Tutorial-C-sharp
/theNewBoston Beginner Tutorial C sharp/myNamespace.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // added L20 using myNamespace; // L19 renamed from theNewBoston_Beginner_Tutorial_C_sharp namespace myNamespace { class myClass { // L32 create public keyword event, delegate to retu...
972baefc314516c6360d3d064bf9a69254489424
C#
gianpaolosinatra/ITS_ICT_wform-geometric
/geometric18_06_2019/SinatraGianpaolo18_06_2019/tests/UnitTestPentagono.cs
2.59375
3
using NUnit.Framework; using SinatraGianpaolo18_06_2019.classes; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SinatraGianpaolo18_06_2019.tests { [TestFixture] class UnitTestPentagono { [TestCase] public void...
39fccda8639deb22598839899054d56fb4f67c8d
C#
Guttulsrud/web-dev-exam
/ASP.NETCoreWebApplication/Services/CharactersService.cs
3.09375
3
using MongoDB.Driver; using ASP.NETCoreWebApplication.Models; using System.Collections.Generic; namespace ASP.NETCoreWebApplication.Services { public class CharactersService { private readonly IMongoCollection<Character> _characters; public CharactersService(DatabaseSettings settings) { ...
cb76dbf2276f3c72a54df43bbce9659b78da748f
C#
Tsvetomir96/Projects
/Stacks and Queues - Exercise/03 Maximum and Minimum Element/Program.cs
3.84375
4
using System; using System.Collections.Generic; using System.Linq; namespace _03_Maximum_and_Minimum_Element { class Program { static void Main(string[] args) { var numbers = new Stack<int>(); int operationsCount = int.Parse(Console.ReadLine()); for (int i...
aa08579a9bc0c63c2f365de6816e33fc19fea004
C#
mrsalmon1976/Stateless.WorkflowEngine
/source/Stateless.WorkflowEngine.WebConsole.Common/Diagnostics/ProcessWrapper.cs
2.703125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Stateless.WorkflowEngine.WebConsole.Common.Diagnostics { public interface IProcessWrapper : IDisposable { ProcessStartInfo StartInfo { get; set; } ...
e5996bcdb4ffb84181f6e62510c3ba9d5f50dfd9
C#
kuibono/TalkingRobotSolution
/Wisdom/Context/UserIdentification.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using Wisdom.Struct; namespace Wisdom.Context { public class UserIdentification { public bool GetUserNameFromWords(TalkingContext context) { Match m = new Reg...
221b00dba383519973075a4529911d0db5fff3dd
C#
ElleSowulewski/MouseAdventure
/S5/MouseAdventure/PresentationLayer/Win2.xaml.cs
2.53125
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.Med...
1468c46b4a0b3e1593d26420546c24b789dc72d4
C#
marcelooliveira/certificacao-csharp-pt7-roteiro
/certificacao-csharp-pt7-roteiro/01/01.02/depois/Program.cs
3.03125
3
using System; using System.Collections.Generic; using System.Reflection; namespace _01_02 { class Program { //static void CampainhaTocou1() //{ // Console.WriteLine("A campainha tocou."); //} //static void CampainhaTocou2() //{ // Console.WriteLin...
ed79804763159e1aa61fb2b9bb364cddceedbcaf
C#
Vitor-Dias-matr/Blog161
/Blog161/WebApplication1/ViewModel/LoginViewModel.cs
2.546875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Blog161.ViewModel { public class LoginViewModel { [Display(Name = "Nome")] [Required(ErrorMessage = "Por Favor entre com seu nome.")] ...
4dff2bb1f164058081bbcd1b3f49e4cb18203243
C#
HughTyson/Lagoon-DES310-ProfessionalProject
/Lagoon/Assets/Resources/MyLibrary [Tomas]/MyLibraries [Tomas]/ActionTimer.cs
2.78125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ActionTimer { class ActionWrapper { public System.Action action; public float time; } float current_time; List<ActionWrapper> totalActions = new List<ActionWrapper>(); List<ActionWra...
60a307868f82e4d68a642c2cfe3f00266ac08083
C#
DragonRuth/GameOfLife
/Assets/Classes/Game/AreasManager.cs
2.609375
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using Classes.GameClasses.PointSpace; using Classes.Game.GenerationsPropertiesTableSpace; [System.Serializable] public class AreasManager { //Переменные private Point[][] points; private List<Point>[][] virtualPoints; privat...