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
91ab3ca332268ea120419122bb0a025e9473f8a2
C#
melan335993/ConsoleTetris
/Tetris_NetFramework/Game.cs
2.703125
3
using System; using System.Threading; namespace Tetris_NetFramework { class Game { public int size_x; public int size_y; public const int gameSpeedConst = 500; public const int sizeGlobalMap_X = 29; public const int sizeGlobalMap_Y = 30; public const int sizeGam...
cfc14f3718cb1293182ce50067b54bfdd1337b61
C#
DannyBerova/Exercises-Programming-Fundamentals-Extended-May-2017
/ArraysMoreExerciseExtended/06.PowerPlants/06.PowerPlants.cs
3.609375
4
 namespace _06.PowerPlants { using System; using System.Linq; public class Program { public static void Main() { int[] plants = Console.ReadLine(). Split(). Select(int.Parse). ToArray(); int seasonCount = 0; ...
462153974b590efda25cb9d55db93fa697a2ca6e
C#
intrueder/BuildTreeQuest
/BuildTreeQuestConsole/Program.cs
2.8125
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Attributes.Jobs; using BenchmarkDotNet.Running; namespace BuildTreeQuestConsole { [ClrJob] public class Program { ...
94b8d4b1b20e3e744cff91b6f39185fc9a7e1098
C#
LawrenceHan/Hearthstone-decompile
/IlSpyDecompile/Assembly-CSharp/Blizzard/Telemetry/WTCG/Client/Product.cs
2.734375
3
using System.IO; using System.Text; namespace Blizzard.Telemetry.WTCG.Client { public class Product : IProtoBuf { public bool HasProductId; private long _ProductId; public bool HasHsProductType; private string _HsProductType; public bool HasHsProductId; private int _HsProductId; public long Produ...
f144197568e8f7040195e8293ca2773ae12a9b11
C#
gitReeQx/WebStore
/Common/WebStore.Domain/ViewModels/EmployeesViewModel.cs
2.9375
3
using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace WebStore.Domain.ViewModels { public class EmployeesViewModel { [HiddenInput(DisplayValue = false)] public int ...
46acb29d7b1ec964ffa90f1a66d0f0976a1218cb
C#
LarkLib/TestSolutionE430C
/LarkLab.DemoClass.Libray/SerializableFig.cs
2.78125
3
using LarkLab.DemoClass.Interface; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; nam...
771d1679f3d72d2b743c3bf71385a8e333557c26
C#
oysterouy/oyster.core
/Core/Cache/CacheEntry.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Oyster.Core.Cache { public class CacheEntry : IDisposable { protected object _value; protected ICache _engine; public string Key; public object Value { get ...
ae702b1e48a4f4bf7635ac5ccd21018e103212a6
C#
irimescu-maria/Problem-Solving-in-Data-Structures-Algorithms-using-C-
/Chapter 6 Sorting/InsertionSort/InsertionSort/InsertionSort.cs
3.734375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InsertionSort { public class InsertionSort { private int[] arr; public InsertionSort(int[] array) { arr = array; } public bool mor...
ae0de1500576a2eda2434f5999c8cf8b853b5378
C#
theplacefordev/CircularReferenceFinder
/src/CircularReferenceFinder/CircularReferenceFinder.cs
2.984375
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; namespace CircularReferenceFinder { public static class CircularReferenceFinder { private static readonly HashSet<Type> _IgnoredTypes = new Hash...
41b5789f7c45aeda499c6a13bdb39bd515e8c27b
C#
abelenstrahn/db_hl7_export_gnu
/EstomedApp/src/NetUtil.cs
2.625
3
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net; using System.Net.NetworkInformation; using System.Net.Sockets; using System.Text; using System.Text.RegularExpressions; using System.Windows; namespace EstomedApp { ...
97855a54b975cf714d72254d8ea09d4d41ada259
C#
JMauricio-source/WordLadder
/WordLadder/TmpProcessingService.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using WordLadder.Models; using System.Text.RegularExpressions; using System.IO; namespace WordLadder { public class TmpProcessingService { //private List<string> _wordList; //private string _startWord; ...
c024be4e03a3715b951c2ecb6431216697dfe45d
C#
izmaxss22/Work
/Assets/ApiSetup.cs
2.8125
3
namespace Extension { public struct ApiSetup<T> { } class Api { public ApiSetup<T> For<T>(T obj) { return new ApiSetup<T>(); } } interface ISomeInterfaceA { } interface ISomeInterfaceB { } public class ObjectA : ISomeInterfaceA { } publ...
c63dddca5ee8fbb4a35bccc3a89d7c189d57cc56
C#
sykvel/Reinforced.Stroke
/Reinforced.Stroke.Demo/Program.cs
2.640625
3
using System; using Reinforced.SqlStroke.Demo.Data; using Reinforced.Stroke; namespace Reinforced.SqlStroke.Demo { class Program { static void Main(string[] args) { using (var dc = new MyDbContext()) { //---------- //dc.Stroke<Order>(x =...
8debff5502085e97054b02e086780a3ee20f7616
C#
HermesPasser/ironpascal
/Lex/Lexer.cs
3.171875
3
using System; using System.Collections.Generic; using System.Globalization; namespace IronPascal.Lex { public class Lexer { public string Text; private int Position = 0; private char? CurrentChar; private Dictionary<string, Token> ReservedKeywords = new Dictionary<s...
ff23db7836d7deacafd2d8d64a6f900f27256106
C#
steve-salmond/LD33
/Assets/Scripts/Combat/Detonate/DetonateBehavior.cs
2.53125
3
using UnityEngine; using System.Collections; public class DetonateBehavior : MonoBehaviour { // Properties // ---------------------------------------------------------------------------- /** Detonation mask. */ public LayerMask DetonateMask; /** Destruction effect. */ public GameObject DetonateEffect; ...
0e5f554cd6aaaf794994ff07ac9ac0ffeaed93a7
C#
hjgode/RAC_switch
/sdf_src/Samples/CSharp/PingSample/Program.cs
2.71875
3
using System; using System.Collections.Generic; using System.Text; using OpenNETCF.Net.NetworkInformation; using System.Net; using System.Diagnostics; namespace PingSample { class Program { static void Main(string[] args) { IPHostEntry hostEnt = Dns.GetHostEntry("www.opennetcf.com"); IPAddres...
f302f1f072b26a0962ab1d3eb90b855dd82a4090
C#
JohnKarnel/StudentProgress
/StudentLogic/Teacher.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.Serialization; using MyDataBaseFramework; using System.Data; namespace StudentLogic { [DataContract] public class Teacher : Base<Teacher> { [DataMember] ...
fcaec6d6f6cf038985941ddcb0cab4ce5e852e2a
C#
diogolmenezes/OracleSessionEr
/Monitorador.cs
2.890625
3
using Framework.Log; using Oracle.DataAccess.Client; using System.Configuration; using System.Threading; namespace SessionEr { /// <summary> /// Monitora o numero de sessões do ORACLE /// </summary> public class Monitorador { public void Monitorar(string usuario, int intervalo, int vezes, ...
b877ccd98399ca2dfa9517865f215b30f6f3b9d6
C#
D-bugging/CSharp-Repository
/JogoDaNova/Program.cs
3.296875
3
using System; namespace JogoDaNova { class Program { static void Show(char[,] velha) { for (int i = 0; i < 3; i++) { Console.WriteLine(velha[i, 0] + "|" + velha[i, 1] + "|" + velha[i, 2]); if (i < 2) Console.WriteLine("...
0559e097896adeef11a54b79908ac0b8fe6ba063
C#
chesterhartin/BridgePattern
/BridgePattern/Abstraction.cs
2.703125
3
namespace BridgePattern { /// <summary> /// The 'Abstraction' class /// </summary> public class Abstraction { protected Implementor _implementor; // Property public Implementor Implementor { set { _implementor = value; } } ...
ae923256eafe0c649e6b8a0c9c0b915c42cb63ba
C#
KanashinDmitry/spbu-se2019-autumn
/Task03/Program.cs
3.296875
3
using System; using System.Threading; namespace Task03 { class Program { static void CreateProducers() { Random random = new Random(); for (int currProd = 0; currProd < SharedRes<int>.amountProducers; ++currProd) { Producer<int> ...
b119d5c5a74b831f5ba59acf3f8dfc00b770ef9a
C#
nhnpro/devx_idle_crafting
/Assets/Standard Assets/Scripts/Pair.cs
3.265625
3
using System; using System.Collections.Generic; namespace UniRx { [Serializable] public struct Pair<T> : IEquatable<Pair<T>> { private readonly T previous; private readonly T current; public T Previous => previous; public T Current => current; public Pair(T previous, T current) { this.previous = ...
abb3a7a8ba5ced811a152bd1f6eafaedf2911f8f
C#
lincolnyu/docassist
/RenameEnumerator/sample-scripts/sms-renamer.cs
3.0625
3
using System.IO; using System.Collections.Generic; using DocAssistRuntime; namespace RenameScript { class Program { static int CompareDate(int y1, int m1, int d1, int y2, int m2, int d2) { var c = y1.CompareTo(y2); if (c != 0) return c; c = m1.CompareTo(m2); ...
6ba8fe794692d1bbcb20584e3a76f5fc2bf2d35d
C#
TotalneSzefy/RPGproGAME
/Dane/Bohater.cs
2.5625
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RPG.Dane { public class Bohater : Postać, INotifyPropertyChanged { #region Pola private int doswiadczenie; private in...
a253b63197c72401bee4afb307483db9d559f7b1
C#
bertt/sharpmartini
/sharpmartini.demo.console/Program.cs
2.671875
3
using SixLabors.ImageSharp; using SixLabors.ImageSharp.Drawing.Processing; using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.Processing; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; namespace sharpmartini.demo.console { class Program { st...
9ac794bf876fc5f4a3df25c1986df18d89be8e88
C#
irakoze101/Payroll
/Payroll/Server/Mappings/EmployeeMappings.cs
2.609375
3
using Microsoft.EntityFrameworkCore.ChangeTracking.Internal; using MoreLinq; using Payroll.Server.Models; using Payroll.Shared.DTO; using System; using System.Collections.Generic; using System.Linq; namespace Payroll.Server.Mappings { // UnitTestTodo: Everything in this class public static class EmployeeMappi...
4baaed0846c031873f4cce0e7daee4f746ff4646
C#
Engin-Boot/review-case-s22b7
/Sender/Sender/Column_Number.cs
2.640625
3
using System; namespace Sender { public class ColumnNumber { public static string TakeColumnNumberForColumnFilter() { Console.WriteLine("Enter 1 for Date & Time column filter and 2 for Comments Column filter"); String columnNumber = Console.ReadLine(); retu...
ce60b460783d4b4b7b2b988a73b3fb68872d9fa3
C#
JefersonMelo/03-UAM
/Aula_2.1-Desvio_Condicional_Desafios/Codigo_Funcionario/Processamento.cs
3.125
3
using System; using System.Collections.Generic; using System.Text; namespace Codigo_Funcionario { class Processamento { //calcular salário public string aumentoSalarial( int codCargo, double salario ) { switch (codCargo) { case 1: ...
3b3eea4a98374e3eb72d10bdcc2772847d92a7cc
C#
BrettRegnier/Concur
/Concur/src/Views/AddView.cs
2.734375
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 Concur { public partial class AddView : Form { public FileSync fileSyncer; public AddVie...
4ecc5b52dc82927c9c83577ea3ff05cf78b81c7d
C#
gitprojectjockey/Dev2017
/MVC_AJAX/MvcAjaxDemo/MvcAjaxDemo.Data/Repositories/Concrete/ProductRepository.cs
2.5625
3
using MvcAjaxDemo.Data.Context; using MvcAjaxDemo.Data.Core.Domain; using MvcAjaxDemo.Data.Repositories.Abstract; using System; using System.Collections.Generic; using System.Linq; namespace MvcAjaxDemo.Data.Repositories.Concrete { public class ProductRepository : Repository<Product>, IProductRepository { ...
34adab65ddd21ee5f85be5239caf6210d24f3bb0
C#
Kwanhong/Black-Hole-Visualization
/Project/Scripts/Game/Photon.cs
2.6875
3
using SFML.System; using SFML.Graphics; using SFML.Window; using System; using System.Collections.Generic; using static BlackHoleVisualization.Utility; using static BlackHoleVisualization.Constants; using static BlackHoleVisualization.Data; namespace BlackHoleVisualization { public class Photon { publi...
8ae15b45d86bf86a68ed5dd05a8f84f089fb8a9b
C#
cyphertfa/top-down-shooter
/Shooter/Assets/Script/Health.cs
3.0625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Health : MonoBehaviour { public int maxHealth = 10; public int currentHealth = 10; // Use this for initialization // Update is called once per frame void Update () { // Destroy this game object when health is l...
2ea5795b0c56e8c59924eab39064b96d81242a4c
C#
bydan/scode
/Me/Me/Global/DynamicCode/Base/BaseDatosCodeSmith/GrupoProceso.cs
2.578125
3
using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Diagnostics; public class GrupoProceso { protected Int64 id; public Int64 getId() { retu...
3f7a53262502d0bce725f5583877b628522e0621
C#
shendongnian/download4
/code3/561920-13088928-31022735-2.cs
2.828125
3
// You'd probably do this once and cache it, of course... var typeMap = someAssembly.GetTypes() .ToDictionary(t => t.FullName, t => t, StringComparer.OrdinalIgnoreCase); ... Type type; if (typeMap.TryGetValue(name, out type)) ...
b92cc05d9e7cd80aa6caa625cc19b0c913b2298e
C#
RubMertens/CSharp-Language-Features-Demos
/NullableReferenceTypesDemos/NullableSurveyExample/Program.cs
3.09375
3
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Data.SqlTypes; namespace NullableSurveyExample { class Program { static void Main(string[] args) { var run = new SurveyRun(); run.AddQuestion(QuestionType.YesNo, "Did you eat the cook...
b4fad261439d15e6227ccb06472c23622f6f84c7
C#
OpenMacroBoard/StreamDeckSharp
/src/StreamDeckSharp/Internals/Throttle.cs
3.03125
3
using System; using System.Diagnostics; using System.Threading; namespace StreamDeckSharp.Internals { internal class Throttle { private readonly Stopwatch stopwatch = Stopwatch.StartNew(); private long sumBytesInWindow = 0; private int sleepCount = 0; public double BytesPerSec...
daaa31dc6c997dff1263b20c3bfdf54c6117fd50
C#
matishadow/ShortestCycleDirGraph
/ShortestCycleDirGraph/Pages/HomePages/AlgAbout.xaml.cs
2.8125
3
using System.Windows.Controls; namespace ShortestCycleDirGraph.Pages.HomePages { /// <summary> /// Interaction logic for AlgAbout.xaml /// </summary> public partial class AlgAbout : UserControl { public AlgAbout() { InitializeComponent(); AlgContent.Text = ...
f0680f8f2ba640291667866dcef9d994d00996a7
C#
MohdAwad/Acc
/Acc/Persistence/SupplierBankRepo.cs
2.53125
3
using Acc.Models; using Acc.Repositories; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Acc.Persistence { public class SupplierBankRepo : ISupplierBankRepo { private readonly ApplicationDbContext _context; public SupplierBankRepo(ApplicationDbC...
d4899e186c8cbf77d197eac2b0849ee9c894bd2a
C#
AhlamHassen/RockPaperScissors
/gameLogic/gameClass/Game.cs
2.796875
3
using System; using Newtonsoft.Json; using System.Data.SqlClient; using CompClass; using player; using System.Collections.Generic; using RoundClass; namespace gameClass { public class Game { [JsonProperty("Player")] public Player Player1 { get; set; } [JsonProperty("DateTime")] ...
59c00a843d5b13136b28ba1d6a2478ede78d8681
C#
vvolkgang/WarZ
/src/WarZ/WarZ/3D/Players/Ai/AiPlayerManager.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; namespace WarZ { sealed class AiPlayerManager : Microsoft.Xna.Framework.DrawableGameComponent { private const int MAX_AI = 15; private List<...
9beafa3b9feb8494bf11bb10d1d8ca31de555aab
C#
burakexe/Simple-Movie-DB
/MovieDBFirst_WinUi/Form1.cs
2.59375
3
using MovieDBFirst_BLL.BaseRepository; using MovieDBFirst_DAL; using System; using System.Windows.Forms; namespace MovieDBFirst_WinUi { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private BaseRepository<Genre> genreService = new Ba...
e4adafcbda5d0303800a6952578e34fc42979089
C#
shendongnian/download4
/first_version_download2/610337-59942045-213795177-4.cs
2.734375
3
public bool Save_Item_Drop(string Email, string value, string column) { try { SqlConnection SQLConn = new SqlConnection(cn); SqlCommand cmd = new SqlCommand("spHere", SQLConn); bool Success; cmd.CommandType = CommandTyp...
adce44c614512d22eef0f7eee89d0450b34b6a0f
C#
dotrungduchd/LUANVAN
/Duc/ActiveDomain/ActiveDomain/AuthUser.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ActiveDomain { /// <summary> /// This class authenticate user by id+password or domain+username /// </summary> public class AuthUser { public static bool Authenticate(AuthType authType) ...
134f9cfc2dd8ba008fa72beed4f3b15fe21c53ee
C#
sotnyk/gabook
/BookSamples/NukeGA/NukeGA/BitmapUtils.cs
3.484375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using System.Drawing.Imaging; namespace NukeGA { public static class BitmapUtils { /// <summary> /// Метод конвертирует объект Bitmap в одномерный массив цветовых компонент R, G, B. /// Размеры массива...
d9c9757ab264a4357ea01f66e001096ed1246673
C#
LaudableBauble/Bedlam
/Game/ContentPipelineExtension/ContentTypes/BoneContent.cs
2.71875
3
using System.Xml; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Content.Pipeline; using Microsoft.Xna.Framework.Content.Pipeline.Graphics; namespace ContentPipelineExtension { /// <summary> /// A bone content instance kee...
9e5f2b4e39a8117bba4fcae8ba107aa778edb0bc
C#
KamenYu/Csharp-Advanced
/DefiningClassesEX/5.CarSalesman/Program.cs
3.6875
4
using System; using System.Collections.Generic; using System.Linq; namespace _5.CarSalesman { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); List<Engine> engines = new List<Engine>(); // "{model} {power} {displaceme...
1ac68a7d6db5ad141804b524dd3dec025569ad73
C#
RobertRisley/RWR.IssueTracker
/RWR.IssueTracker.DSBO/TasksTD.cs
2.515625
3
using System; using System.Data; using System.Data.SqlClient; using System.Windows.Forms; using RWR.Common; using TasksTableAdapter = RWR.IssueTracker.DSBO.TasksTDTableAdapters.TasksTableAdapter; namespace RWR.IssueTracker.DSBO { /// <summary> /// The Tasks Table DataSet BusinessObject. /// </summary> partial cla...
f9f7301133320b08f61e9d87544790164c6a0086
C#
creativedisplacement/library
/Library.Application/People/Queries/GetPerson/GetPersonQueryHandler.cs
2.671875
3
using Library.Application.Exceptions; using Library.Common.Models.Person; using Library.Domain.Entities; using Library.Persistence; using MediatR; using Microsoft.EntityFrameworkCore; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Library.Application.People.Queries.GetPerson { ...
3825b9d83eebfa3887517a436a3cdb0c9901e015
C#
yuns-emre/ReCapProject
/Business/ValidationRules/FluentValidation/ColorValidator.cs
2.65625
3
using Entities.Concrete; using FluentValidation; using System; using System.Collections.Generic; using System.Text; namespace Business.ValidationRules.FluentValidation { public class ColorValidator : AbstractValidator<Color> { public ColorValidator() { RuleFor(c=>c.ColorName).NotEm...
f653a65a01fcc196d106289807e87fb45bccb5c2
C#
skkushev/TelerikAcademy
/10.NumeralSystems/07.OneSystemToAnyOther/OneSystemToAnyOther.cs
3.984375
4
/* Problem 7. One system to any other• Write a program to convert from any numeral system of given base s to any other numeral system of base d (2 ≤ s , d ≤ 16). */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class OneSystemToAnyOther { ...
b83b1de56c019f30ec7acb80caa0b70f1783806b
C#
Andrey-prog936/Csharp-DZ-7
/Csahrp 5.1/Program.cs
3.296875
3
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Csahrp_5._1 { abstract class Creature { public string Name { get; set; } public override string ToString() { r...
f35bb95dc5cc423055c5b6a71fb36cc9be538f34
C#
codesdog/CCCTest
/ZYWSunriseHotel/db.cs
2.96875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleDb; namespace 东方日出大酒店 { class db { /// <summary> /// 数据库连接 /// </summary> ...
1087907c141ee47e0982870d3415a931b2532c63
C#
ZoyuJ/CusCSV
/CusCSV.Shared/CSVField.cs
2.90625
3
namespace CusCSV { using CusCSV.Exceptions; using KatKits; using System; using System.Text; public class CSVField { internal CSVField() { } internal CSVField(CSVColumn Column) { this.Column = Column; } public CSVField(CSVTable Table, CSVRow Row, CSVColumn Column) { ...
58ea427b3f34af37b1ac17153ca60011c2854ee6
C#
zeng16107/Alala
/AlalaDocuments/AlalaDocuments/Interfaces/IOrders.cs
2.78125
3
using AlalaDocuments.Models; namespace AlalaDocuments.Interfaces { public interface IOrders { /// <summary> /// Gets the details of an order. /// </summary> /// <param name="docEntry">The entry of the order to be returned.</param> /// <returns>A model that represents th...
51ccf776c545902d0463a36fded4e1b23f9b5b21
C#
bgoonz/UsefulResourceRepo2.0
/MY_REPOS/misc-experiments/_FIREBFIRE/firebase-unity-sdk/editor/crashlytics/src/Storage/Associations.cs
3.203125
3
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * using UnityEngine; /// <summary> /// ...
6e4babf3987278ac45c8a62b34859d609090ec85
C#
GrognardsFromHell/OpenTemple
/Core/GFX/LinearColor.cs
2.84375
3
using System.Diagnostics.Contracts; using System.Numerics; using System.Runtime.InteropServices; using System.Text; using OpenTemple.Core.Ui.Styles; using SharpDX.Mathematics.Interop; namespace OpenTemple.Core.GFX; [StructLayout(LayoutKind.Sequential)] public struct LinearColor { public float R; public float ...
e7cf5c4d5ca2b005ff8cca39b61e01184356d7db
C#
mEliehl/MorningBrewCrawler
/tests/Crawler.Test/Unit/Mappers/EnglishMonthsTest.cs
2.796875
3
using Crawler.Mappers; using System; using Xunit; namespace Crawler.Test.Mappers { [Trait(TraitConstants.Category, TraitConstants.Unit)] public class EnglishMonthsTest { [Fact] public void WithInvalidMonth_ThrowsException() { var month = "Decenuary"; Assert.T...
75d243adcfdf895657d345a604953d3f49171361
C#
Ed-Fi-Exchange-OSS/Ed-Fi-Roster-Sample-Application
/EdFi.Roster.Sdk/Services/ApiLogService.cs
2.703125
3
using EdFi.Roster.Sdk.Data; using EdFi.Roster.Sdk.Models; using RestSharp; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Text.Json; using System.Threading; namespace EdFi.Roster.Sdk.Services { public class ApiLogService { ...
64b7334efd63230fb355535186c98676992f4130
C#
hrjakobsen/P2-AAU
/Programmer/Optimeringer/third_round/CS/Vertex.cs
3.046875
3
namespace Stegosaurus { public class Vertex { public short SampleValue1 { get; set; } public short SampleValue2 { get; set; } public byte Message { get; } public byte Modulo { get; } public Vertex(short sampleValue1, short sampleValue2, byte message, byte modulo) { ...
fbe3c1c59cb406762d3ffb8c94b46156163b8caa
C#
1057337494/Gof4Demo
/Gof4Demo/SimplePolicy/MinAgePolicyHandler.cs
2.796875
3
using Microsoft.AspNetCore.Authorization; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Gof4Demo.SimplePolicy { public class MinAgePolicyHandler : AuthorizationHandler<MinAgePolicy> { protected override Task HandleRequirementAsync(Authorizat...
ac46fce661a9d271efb1ce872a5cc680db03071d
C#
alexeyprov/MCPD
/70-487/WcfRestContrib/src/WcfRestContrib/ServiceModel/Channels/BinaryBodyReader.cs
2.515625
3
using System.Xml; namespace WcfRestContrib.ServiceModel.Channels { public class BinaryBodyReader { public const string BinaryElementName = "Binary"; private readonly byte[] _data; public BinaryBodyReader(XmlDictionaryReader reader) { reader.ReadStartElement(BinaryE...
bf1509271f2557e3d5aeba37e9ac755ed8adb46d
C#
ronartcal/Unity-Simulation-Smart-Camera-Outdoor
/Assets/UnityScenarios/Scripts/ReversePointsOrder.cs
2.609375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ReversePointsOrder : MonoBehaviour { public ObjectMovementManager source; public ObjectMovementManager destination; public void ReverseOrder() { destination.controlPoints.Clear(); Debug.Log(de...
3f91a7e97e014ff011de87da6bc15d15525b2f26
C#
hosboglot/24crypt
/Crypting/Crypting/Crypting/Gamma.cs
3.203125
3
using System; using System.Collections.Generic; namespace Crypting { public class Gamma { public static string Encrypt(string input, string gamma) { List<int> s1 = ConvertTC.TextToCode(input); List<int> s2 = ConvertTC.TextToCode(gamma); List<int> it = new L...
2429bd5fc0293265128c3cac682f6501b9ce672f
C#
OliBomby/Mapping_Tools
/Mapping_Tools/Components/ViewHeaderComponent.xaml.cs
2.6875
3
using System; using Mapping_Tools.Classes.SystemTools; using System.Linq; using System.Reflection; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using Mapping_Tools.Classes.SystemTools.QuickRun; using Mapping_Tools.Views; namespace Mapping_Tools.Components { /// <summary> //...
7dfc6e4ac2960dcf1b19455894b9e6cdcfb7e2bb
C#
MarioHsiao/NuPattern
/Src/Runtime/Source/Runtime.Extensibility/Design/SettingsReferenceTypeConverter.cs
3.09375
3
using System; using System.Collections; using System.ComponentModel; using System.Globalization; using System.Linq; namespace NuPattern.Runtime.Design { /// <summary> /// Converter that lists automation settings of the type /// <typeparamref name="TSettings"/> available /// in the containing element o...
4f79f76569a70cb9210d8f96d10b2f0c833caadf
C#
nrkn/NrknLib
/Color/Rgba.cs
2.546875
3
namespace NrknLib.Color { public struct Rgba { public Rgba( byte red, byte green, byte blue, byte alpha = (byte)255 ) { Red = red; Green = green; Blue = blue; Alpha = alpha; } public byte Red; public byte Blue; public byte Green; public byte Alpha; } }
b4ffd81fb269570d2907aa13892359c6f799540a
C#
bmsmith43/FireRegister
/FireRegister/FireRegister/Services/MockDataStore.cs
3.125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FireRegister.Models; namespace FireRegister.Services { public class MockDataStore : IDataStore<Employee> { readonly List<Employee> _employees; public MockDataStore() { _employees = ...
5b8ac0e044f2227626beefa152074d4e1c4ce03b
C#
Monkeybin11/000_MainProjects
/01Sub/SubProject/Rs232Lib.cs
2.96875
3
using System; using System.Collections.Generic; using System.IO.Ports; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace RS232_LibTest { public class RS232<TcommandList> where TcommandList : struct, IComparable, IConvertible, IFormattable { public Se...
3fb59c900c143a577a54b7a37074cb83d2b947a8
C#
MarozauArtsiom/MarryMe
/MarryMe.Model/Factory/DBFactory.cs
2.65625
3
namespace MarryMe.Model.Factory { #region Using using System; using System.Configuration; using System.Data; using System.Data.Common; #endregion public class DBFactory { public const string StatisticOutData = "statistic"; #region private fields private const string DefaultConnectionStringName = "Def...
b93042f5ff53b799b4383779844666523b2b803d
C#
sthewissen/Xamarin.Forms
/Xamarin.Forms.Platform.iOS/CollectionView/SelectableItemsViewRenderer.cs
2.5625
3
using System; using System.ComponentModel; namespace Xamarin.Forms.Platform.iOS { public class SelectableItemsViewRenderer : StructuredItemsViewRenderer { SelectableItemsView SelectableItemsView => (SelectableItemsView)Element; SelectableItemsViewController SelectableItemsViewController => (SelectableItemsViewC...
879edac37320a0d3d781cf7393729b7e616ee4f9
C#
bboyadzhiev/Telerik
/12.Algorithms/03.Trees_And_Traversals_HW/01.TreeTraversal/TreeNodeExtensions.cs
3.78125
4
namespace _01.TreeTraversal { using System; using System.Collections.Generic; public static class TreeNodeExtensions { public static void PrintChildren<T>(this TreeNode<T> node, int offset) where T : IComparable<T> { for (int i = 0; i < offset; i++) { ...
a6869506beafc852dc8715ec0678aea539322d86
C#
rodriguesrm/rsoft-helpers
/src/RSoft.Helpers/Attribute/RoleNameAttribute.cs
2.890625
3
using sys = System; namespace RSoft.Helpers.Attribute { /// <summary> /// Represents a class of function attributes (Roles) /// </summary> public class RoleNameAttribute : sys.Attribute { #region Constructors /// <summary> /// Creates a new attribute instance ///...
c43b085e5c8dee6062798ba03ca5d0342cbe2c4b
C#
zrasco/SubSearch
/SubSearchUI/Models/VideoFileItem.cs
2.609375
3
using GalaSoft.MvvmLight.Command; using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Windows; using System.Windows.Input; using System.Windows.Media; using System.Windows.Navigation; namespace SubSearchUI.Models { public ...
e2dadd2c5da30898300621905548e7019b34bebe
C#
carolineisnotonfire/GitC
/Usando DLLs/BoletimEscolar/RecebeFrequencia/Classes/Boletim.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RecebeFrequencia.Classes { public class Boletim { public int SomaNotas(int nota1, int nota2, int nota3) { return (nota1 + nota2 + nota3) / 3; } ...
a4e7f58db6fa7ed2bc44494183d294fd48674799
C#
FelixCukerman/BlackJackCore
/DataAccessLayer/Repositories/DapperRepositories/DapperGameRepository.cs
2.765625
3
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Transactions; using Dapper.Contrib.Extensions; using DataAccessLayer.Interfaces; using EntitiesLayer.Entities; namespace DataAccessLayer.Repo...
97c1acffe83e4f2a8773f97cb12fa2daa734acfd
C#
lightbulbindustries/ProjectSapphire
/GridTest/Assets/Scripts/Buildings/Building Types/MiningHut.cs
2.53125
3
using UnityEngine; using System.Collections; public class MiningHut : Building { [SerializeField] float miningDelay = 2f; TileData map; ResourceManager resources; bool mining = false; // Use this for initialization void Start() { map = Toolbox.MapData; resources = To...
0520095f4d0830c456581a950cad5fc6cbf586b0
C#
lesterrentosa/Contact-Tracing
/Contact Tracing/Form1.cs
2.5625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Contact_Tracing { public partial class Form1 : Form { public ...
ad89fbc094465cdf3f4ee59580eb89e93b8019db
C#
rodrigoborgesmachado/devtools-topdown
/DevTools/Model/MD_Camposclasseretorno.cs
2.5625
3
using System; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Model { /// <summary> /// [CAMPOSCLASSERETORNO] Tabela da classe /// </summary> public class MD_CamposClasseRetorno { #region Atributos e ...
e67e9cb188ed96cc4ad3834517c9b1168e917b4f
C#
justinricheson/bogglesolver
/BoggleLib/PrefixTrie.cs
3.390625
3
using System; using System.Collections.Generic; namespace BoggleLib { public class PrefixTrie { private Node _root; public PrefixTrie() { _root = new Node(); } public bool WordStartsWith(string fragment) { if (string.IsNullOrEmpty(fragm...
65899f780718c41c4ca582b749e71bc0d0f729f5
C#
Nixxis/ncs-client
/NixxisSupControls/NixxisSupervsionColumnDescriptions.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections.ObjectModel; using System.Windows.Data; using System.Windows; using System.Windows.Controls; namespace Nixxis.Client.Supervisor { public class ColumnItemDescription { #region Enums p...
426c3de6124ac3de5580da286029e8cd9f42bb60
C#
sebez/social-dance-jukebox
/csharp/Sources/SocialDanceJukebox.Domain/Calculs/SelecteurPlusDistantAvecLeMoinsDeVoisinsProche - Copier.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using SocialDanceJukebox.Domain.Calculs.Contracts; using SocialDanceJukebox.Domain.Dto; namespace SocialDanceJukebox.Domain.Calculs { /// <summary> /// Sélectionne le meilleur candidat en optimisant la distance avec les vecteurs restants. ...
79d3ce5a0ac0c89ccf5187ad7937f0791aa0458e
C#
Calvin0630/GrapplingHook
/Assets/Resources/Scripts/HighScores.cs
2.515625
3
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Xml; using System.Xml.Serialization; using System.IO; using System; [Serializable] public class HighScores { [XmlArray("HighScores")] [XmlArrayItem(typeof(Score), ElementName = "ScoreElement")] public List<Score> l...
3617cf02ef23caf782120b619aa3b8e7923078f9
C#
bslupik/globalgamejam16
/Assets/Scripts/Utility/Countdown.cs
2.96875
3
using UnityEngine; using System.Collections; /// <summary> /// Wrapper class for IEnumerator Coroutines that simplifies pausing and restarting /// </summary> public class Countdown { //delegate types public delegate IEnumerator GetIEnumerator(); GetIEnumerator source; IEnumerator countdown; IEnu...
4e62cab9b15a87ec6e7eba7ab2e40e8ed17297fb
C#
stoneson/smartcore
/SmartCore.Services/Aop/TransactionAttribute.cs
2.703125
3
using System; using System.Collections.Generic; using System.Text; using System.Transactions; namespace SmartCore.Services.Attributes { /// <summary> /// 开启事务属性 /// </summary> /// <example>[Transaction]</example> /// <remarks>利用Autofac DynamicProxy+Castle 实现AOP事务 /// 优势主要表现在: /// 1.将通用...
6c188b4d225b6135de081dbdb0a57d3d9fdbea1a
C#
Andreiiy/Sniffer_WPF
/IPHeader.cs
2.921875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace Sniffer_WPF { public class IPHeader { private byte byVersionAndHeaderLength; // Eight bits for version and header ...
684ee04c58d6e4515bc4ff07156b061a1734f477
C#
vardars/ci-factory
/tags/1.0.0.51/Product/Production/Common/WebSpider/Spider/ResourceParser.cs
2.5625
3
namespace Zeta.WebSpider.Spider { #region Using directives. // ---------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Xml; using Sgml; using System.Text.RegularExpressions; //...
d4f8b1aca6b65b99e4591f6d6621bd32ee1c3666
C#
alezhu/.net-azLib
/Win32/activex.cs
2.546875
3
using System; using System.Runtime.InteropServices; namespace AZLib.Win32 { public class ActiveX { public const string Ole32Dll = "ole32.dll"; public const string OleAut32Dll = "oleaut32.dll"; public const string OlePro32Dll = "olepro32.dll"; //function FindWindowW(lpClassName, lpWindowName: PWideChar...
9a95d61edd66e209c7296821c0155bec19ab254f
C#
mitkoostz/OnlineShop
/Core/Entities/ContactUs/ContactUsMessage.cs
2.671875
3
using System.ComponentModel.DataAnnotations; namespace Core.Entities.ContactUs { public class ContactUsMessage : BaseEntity { [Required] public string Name { get; set; } [Required] [RegularExpression(@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*", ErrorMessage = "The email is n...
037957f76647fef1ad1f652c6685747186688716
C#
DxGrumpzz/CustomToken
/Source/CustomToken.Server/HTTP handler/Request/HttpReqeustHandler.cs
3.53125
4
namespace CustomToken.Server { using System; using System.Linq; /// <summary> /// A class that is responsible for handling incoming HTTP requests /// </summary> public class HttpReqeustHandler { #region Constants /// <summary> /// An HTTP standard header end ...
37029667c90e8da96751868432f74ca25e928e8a
C#
chriscalviello/AddressValidation
/ApiUnitTesting/Services/Authentication/LocalAuthenticationServiceTest.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; using Api.Models.User; using Api.Services.Authentication; using Xunit; namespace ApiUnitTesting.Services.Authentication { public class LocalAuthenticationServiceTest : IDisposable { private readonly LocalAuthent...
50d8cffee72c2a225eb3aceb74746134b986d698
C#
chenergy/jj-jc-project
/Assets/Scripts/MovingReflectionTrigger.cs
2.546875
3
using UnityEngine; using System.Collections; public class MovingReflectionTrigger: BasicReflectionTrigger { public float speed; public float maxSpeed; public Transform[] waypoints; private Vector3 targetPosition; private int currentWaypoint = 0; protected override void Start(){ this.targetPosition = this....
2d23a19cbf835d8e48bf85aa58e0a716268d1656
C#
NeatCrown/PaperMarioBattleSystem
/PaperMarioBattleSystem/PaperMarioBattleSystem/Classes/Collectibles/Items/SleepySheep.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PaperMarioBattleSystem { /// <summary> /// The Sleepy Sheep item. It inflicts Sleep on all enemies. /// </summary> public sealed class SleepySheep : BattleItem, IStatusInflicti...
485e2cb33e0a619f4358022c6c71e1685348cf85
C#
Xushlin/PatternPracticeSimple
/PatternPractice/Adapter/ScoreOperation/App.cs
2.953125
3
using System; using System.ComponentModel; namespace PatternPractice.Adapter.ScoreOperation { [Description("7.Adapter")] public static class App { public static void Main() { Console.WriteLine("=============================="); Console.WriteLine("========Adapter ===...
fcb5aa24b2e6e5bf3ce2ef0673660df98ab91f14
C#
Jaguararx/AutoPractice18
/COE.Core/Logging/COEHttpClientLogger.cs
3.0625
3
using System; using System.Text; namespace COE.Core.Logging { /// <summary> /// Logger class for HTTP requests /// </summary> public class COEHttpClientLogger : ICOEHttpClientLogger { private readonly ICOEMainLogger _logger; /// <summary> /// Initializes new i...
f7eb6f2aad28915d0d70c859ec673be8c80c9de0
C#
Julie-lin/WorkflowSolutions
/Workflow/Thermo.Workflows/RealTime/DataHelperExtensions.cs
2.78125
3
using System.Activities.Tracking; using System.Collections.Generic; namespace AcquisitionActivities.RealTime { public static class DataHelperExtensions { public static T GetDataOrDefault<T>(this CustomTrackingRecord record, string key) { object value; if(record.Data.Try...
d334169eb449d9743ef4840194987453058a6acc
C#
swaphack/Kingdom
/Kindom/Assets/Football/Player/Team.cs
2.796875
3
using System; using System.Collections.Generic; namespace Football { /// <summary> /// 队伍 /// </summary> public class Team : Entity { public Team () { } void Start() { AddAgent<TeamAI> (); } /// <summary> /// 添加队员 /// </summary> /// <param name="player">Player.</param> public void AddPla...
e6d9354a9d0db8dfa7fc342a86abec82299bb388
C#
Reillyminat/LexicalAnalyzator
/LexicalAnalyzerApplication/OperationTable.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace LexicalAnalyzerApplication { class OperationTable { List<string> _operations; public OperationTable() { _operations = new List<stri...
c6af3c920c2a15b8a0ee8a3473da9417568bcc2e
C#
2006-jun15-net/pamela-soulis-project1
/pamela-soulis-project1.Domain/Model/Customer.cs
2.953125
3
using System; using System.Collections.Generic; using System.Text; namespace pamela_soulis_project1.Domain.Model { /// <summary> /// Business Logic Customer, with a name and Id number /// </summary> public class Customer : BaseBusinessModel { private string _firstname; private st...
4b7b68d247d3f93156cc3d91539c1a7476fd708b
C#
tsdaemon/wikiDataRelationsParser
/ReloadConfigFromFile/Program.cs
2.75
3
using System.Collections.Generic; using System.IO; using System.Linq; using Core.Model; using MongoDB.Driver; namespace ReloadConfigFromFile { class Program { static List<string> ids = new List<string> { "person", "organization", "location" }; static void Main(strin...
4318a7f533bfc22ee4086e7975cf066e8bd3e28e
C#
mike-goodwin/securityheaders.io.badges
/Rater.cs
2.65625
3
using System; using System.Collections.Generic; using System.Configuration; using System.Diagnostics; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using HtmlAgilityPack; namespace SecurityHeaders.io.badges { internal class Rater { private const string SECURITYH...