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
1620088cb384b9c8e9e1f5c812cf8cd48981174b
C#
mei-rune/jingxian-project
/jingxian-mailer/jingxian.ui.controls/FastListView/FastObjectListView.cs
2.625
3
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.Drawing.Design; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.Globalization; using System.IO;...
fabaeeffbd99cca7e81066d65c3284ff3446ac61
C#
Zgencheva/Advanced
/MultidimensionalArrays/7.KnightGame/Program.cs
3.28125
3
using System; using System.Diagnostics.Tracing; using System.Linq; namespace _7.KnightGame { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); char[,] matrix = ReadMatrix(n, n); int maxStrikes = int.MinValue; ...
1d6e8d222ebed097747223e8f9c66a96793841d5
C#
Glaerd/Formation-projects
/2017/C#-huffman_compression/HuffmanBibli/HuffmanBibli/HuffmanBibli/Noeud.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HuffmanBibli { class Noeud { public List<byte> clef; public int poids; public Noeud droite; public Noeud gauche; public Noeud(List<byte> k, int...
a8dc311da62ab08b09774c7ff287b13c55eba0b5
C#
Earthmark/Libnoise
/Noiselib/NoiseGen.cs
3.125
3
namespace Noiselib { /// <summary> /// Enumerates the noise quality. /// </summary> public enum NoiseQuality { /// <summary> /// Generates coherent noise quickly. When a coherent-noise function with /// this quality setting is used to generate a bump-map image, there are /// noticeabl...
76e9ba6936c52289e0f446c81afb5e98c00813dc
C#
nFoooo/TicTacToe
/WindowsFormsApplication1/WelcomeScreenController.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TicTacToe.Model; using TicTacToe.View; namespace TicTacToe.Controller { public class WelcomeScreenController { //Constructors public WelcomeScreenController( WelcomeScreen...
5b39ed212d8fe7a7533e25cf0109a21ad47899e3
C#
snel13/NoMushyBrains
/Assets/Scripts/Controller2D.cs
2.65625
3
using UnityEngine; using System.Collections; public class Controller2D : RaycastController { float maxClimbAngle = 80; float maxDescendAngle = 75; public CollisionInfo collisions; //public reference to our collision info [HideInInspector] public Vector2 playerInput; //store our player input ...
66728fe81f054e9f62ca9c5b09b7e23cbfde1ff4
C#
squall-tech/akmapeditor
/AKMapEditor/OtMapEditor/OtBrush/CarpetBrush.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using System.Windows.Forms; using System.Diagnostics; namespace AKMapEditor.OtMapEditor.OtBrush { public class CarpetBrush : Brush { protected UInt16 look_id; protected CarpetNode[] car...
2465a3433aec9dc9c6b2e57561ce593f2750955b
C#
apatbizen/AnagramAnalyzer
/AnagramAnalyzer/CharRanker/CharacterRanker.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AnagramAnalyzer.CharRanker { public class CharacterRanker : ICharRanker{ Dictionary<char, int> appearance = new Dictionary<char, int>(); public void CheckIn(string v) { foreach(var p in v.To...
e1a364a9375f0651f241a92ac9fa0100c702d580
C#
GalacticChimp/ShadowsBehindTheThrone
/Assets/Code/VoteIssue_DeclareWar.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Assets.Code { public class VoteIssue_DeclareWar : VoteIssue { public SocialGroup target; public VoteIssue_DeclareWar(Society soc,SocialGroup target,Person proposer) : base(soc,proposer) { ...
9ca1283f1385e0d7cb9bc2de4d6f1d5f5fb79f7b
C#
YoshikawaOnion/ProcedualLevels
/Assets/Scripts/Views/Adventure/Enemy/EnemyController.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UniRx.Triggers; using UniRx; using System; using ProcedualLevels.Common; namespace ProcedualLevels.Views { /// <summary> /// 敵キャラクターの振る舞いを提供するクラス。 /// </summary> public abstract class EnemyController : Ba...
d516f39cf6a7ead297b2e67a57c8e105e9d7cb3a
C#
brandon-julio-t/TPA-Desktop
/TPA Desktop/Core/Models/TransactionType.cs
2.921875
3
using System; using System.Windows; using TPA_Desktop.Core.Builders; namespace TPA_Desktop.Core.Models { public class TransactionType { public TransactionType() { } public TransactionType(Guid id) { using (var reader = QueryBuilder .Table("T...
d5c5f686567e680e3b4532ab430b1af7feac141b
C#
grantwang96/Dating-Sim-Action-Hero-Combo
/Dating Sim Action Hero Combo/Assets/Scripts/Game State Machine/SceneController.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public delegate void SceneUpdateDelegate(string sceneName); public class SceneController : MonoBehaviour { private const string LoadingScreenScene = "LoadingScreen"; public s...
ef5d16ef42d96719e611a4519fd1353ed67ea0d5
C#
marc68128/Nutrition
/Nutrition.Api.ViewModels/MealPartViewModel.cs
2.5625
3
namespace Nutrition.Api.ViewModels { public class MealPartViewModel { private AlimentViewModel _aliment; private double _quantity; public AlimentViewModel Aliment { get => _aliment; set { _aliment = value; Upda...
f24c7640cd6cb33863e676431dfbb1dadd57d4b9
C#
JeffLeBert/RubiksCubeTrainer
/Puzzle/Puzzle3x3/Scrambler.cs
3.21875
3
using System; using System.Collections.Generic; using System.Linq; namespace RubiksCubeTrainer.Puzzle3x3 { public static class Scrambler { public static string Scamble(int depth = 10) => string.Join(" ", EnumerateMoveNames().Take(depth)); private static IEnumerable<string> Enumera...
063ce280aef3ddfb2fa1374b9b621b2fa7be44a5
C#
xiaobaxiang/QrCode_Csharp
/Qrsource/Gma/QrCodeNet/Encoding/Versions/ErrorCorrectionBlocks.cs
2.53125
3
namespace Gma.QrCodeNet.Encoding.Versions { using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [StructLayout(LayoutKind.Sequential)] internal struct ErrorCorrectionBlocks { private ErrorCorrectionBlock[] m_ECBlock; internal int NumErrorCo...
d575c2657cd0b35f7416f4c10affb9440bf81447
C#
olegtarasov/Retia
/Retia/Interop/MatrixPointersBag.cs
2.59375
3
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using MathNet.Numerics.LinearAlgebra; using MathNet.Numerics.LinearAlgebra.Storage; namespace Retia.Interop { /// <summary> /// A collection of pinned matrix pointers. /// Pointers are unpinned when an object is disposed....
104efc7ee4cad1349ad024376df4f09d41a0929d
C#
NazirAhmd/Algorithms
/Algorithms/Tree/HeightOfBinaryTree.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Algorithms.Tree { public class HeightOfBinaryTree { //Time - O(n) //AS - O(h) where h=height of binary tree //Recursive approach public int Height(Node ...
87e2c27ad71450c260fc9670bbc418c196edcc0d
C#
endjin/SilverlightWalkthrough
/SilverlightWalkthrough/Commands/CommandManager.cs
2.640625
3
namespace SilverlightWalkthrough.Commands { #region using System; using System.Collections.Generic; using SilverlightWalkthrough.Async; #endregion /// <summary> /// The command manager. /// </summary> public class CommandManager { /// <summary> /// Commands...
fe088e24483711c48609362bb642c964ba394f62
C#
Csharp2020/csharp2020
/dvukasovic/Moj projekt/Neparni_do_20/Program.cs
3.265625
3
using System; namespace Neparni_do_20 { class Program { static void Main(string[] args) { Console.WriteLine("Neparni do 20!"); for (int i = 2; i < 20; i++) { if (i % 2 == 0) { Console.WriteLine("To su parni...
6c3e1dd17d2433535987a55cc6e8ff4a6d3c9507
C#
JacquesLucke/Collage
/Collage/Gui/ProgressBarWindow.cs
3.109375
3
using Gtk; using System.Threading; namespace Collage { public class ProgressBarWindow { Window window; ProgressBar progressBar; int totalSteps; int currentStep; string name = ""; public ProgressBarWindow() { } public void Start() { ...
05f061a004f20548e2669e534347ce5050e85424
C#
zfybs/SDSS
/Projects/SDSS/Definitions/Definition.cs
2.71875
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Text; using System.Xml.Serialization; using SDSS.Constants; using SDSS.Project; namespace SDSS.Definitions { /// <summary> 水中桩段或者嵌岩桩段的截面参数 </summary> [Serializable()] [Xml...
0bf30b09d453a85d173bb8f507e990f718d77704
C#
rolywhateva/Lab-Algoritmi
/Lab7/MergeSort/Program.cs
3.421875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MergeSort { class Program { static int[] Merge(int[] st, int[] dr) { int i1, i2, i3; int[] v = new int[st.Length + dr.Length]; i1 = ...
db7a217cf5b9aba42e4ed7d65ce0afd69e9b8301
C#
FajarPriam/OOP
/Bootcamp.OOP/Bootcamp.OOP/Program.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Bootcamp.OOP { class Program { static void Main(string[] args) { Bangun2D panggil; Console.WriteLine("Perhitungan Luas Lingkaran"); ...
9a40123ddef259012eadf38aae91e3e6426e197b
C#
JoseMarkos/EL-1-Ejercicios-1
/src/12.cs
3.703125
4
using System; public class Program { public static void Main() { string[,] array = new string[4, 4]; Console.WriteLine("Ingrese el numero: "); string num = Console.ReadLine(); Console.WriteLine ("------------------"); for (int i = 0; i < 4; i++ ) { for (int h = 0; h < 4; h++ ) { if (i ...
f524a3d5534fa1be1d6b0b55ba50ccbbd09b888f
C#
KristopherGBaker/Stravan
/Stravan/Json/RideService.cs
2.625
3
#region MIT License /* * Copyright (c) 2012 Kristopher Baker (kris@empyrealnight.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitati...
a3ad43e60381e421427119c4ed60d078f626fd6e
C#
SONJAYA80026/Meadow.CLI
/Meadow.CLI.Core/Internals/MeadowComms/RecvClasses/RecvSimpleText.cs
2.828125
3
using System; using System.Text; namespace Meadow.CLI.Internals.MeadowComms.RecvClasses { // Factory class public class RecvSimpleTextFactory : RecvMessageFactory { public override IReceivedMessage Create(byte[] recvdMsg, int recvdMsgLength) => new RecvSimpleText(recvdMsg, recvdMsgLength);...
7ba2e38cfae69c15dcd76749cf43e1891afe117d
C#
zendorx/testapp
/Assets/Plugins/GameOfWhales/Examples/Example2/GowExample2.cs
2.578125
3
using System.Collections; using UnityEngine; using UnityEngine.UI; using UnityEngine.Purchasing; namespace GameOfWhales { public class GowExample2 : GowExampleBase { [SerializeField] GowExampleStoreListener _storeController; private static GowExample2 _instance; public static...
948d9f9dac4a938e824e6bbd56255e0c6c63d574
C#
ryomutk/Bingo
/Assets/Scripts/Roulette.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Roulette : MonoBehaviour { public static Roulette instance = null; List<int> drawedCards; ExitGames.Client.Photon.Hashtable roomHash; void Singleton(){ if(instance == null){ instance = thi...
6f3494ba3eb203e828d8ddf51bb89fe848b2ceb9
C#
KarmaScripter/BudgetExecution
/extensions/DataGridExtensions.cs
2.6875
3
// <copyright file = "DataGridExtensions.cs" company = "Terry D. Eppler"> // Copyright (c) Terry D. Eppler. All rights reserved. // </copyright> namespace BudgetExecution { using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Windo...
4d5717f5861084140c22bcbef5470888d6fe98b3
C#
blfortier/TDD
/TDD_Smallestint-master/SmallestService/Finder.cs
3.59375
4
using System; using System.Linq; namespace SmallestService { public class Finder { public int FindSmallestInt(int[] arr) { if (arr.Length == 1) return arr[0]; else if (arr.Length == 2) return (arr[0] < arr[1]) ? arr[0] : arr[1]; ...
a3de8029e9dd2f03dddbc71df6954a936b8db045
C#
lucastomazrm/pwbe-dotnet-webapi
/Services/Service[TModel].cs
2.84375
3
using System.Collections.Generic; using PWBE.TeamAthlete.DataAccess; using Microsoft.EntityFrameworkCore; using System.Linq; namespace PWBE.TeamAthlete.Services { public abstract class Services<T> : Service where T : class { public Services(MainContext context) : base(context) { ...
6a98e5f1eaac70cfac8d60c95ba88648e3bf1402
C#
MagpieLaboratories/tpp-core
/tests/TPP.Persistence.MongoDB.Tests/Repos/MessagequeueRepoTest.cs
2.53125
3
using System.Collections.Generic; using System.Threading.Tasks; using MongoDB.Driver; using NUnit.Framework; using TPP.Model; using TPP.Persistence.MongoDB.Repos; namespace TPP.Persistence.MongoDB.Tests.Repos { public class MessagequeueRepoTest : MongoTestBase { [Test] public async Task persist...
101c231857e6440c2218861cd3fa3376de4c0cdf
C#
KevinWeiHadExtra/CSC631HW4Infection
/ClientTicTacToe/Assets/Scripts/Network/Response/ResponseEnterName.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ResponseEnterNameEventArgs : ExtendedEventArgs { public int user_id { get; set; } // The user_id of whom who sent the request public string name { get; set; } // Their new name public ResponseEnterNameEventArgs() { even...
fdfe7ba4678a3f022553a986c170c5f4cc70b382
C#
CBIIT/CEC-Harmonization
/CECMapper/CECHarmonization/DATA/MapperRepository.cs
2.609375
3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; using CECHarmonization.Models; using Ninject; namespace CECHarmonization.DATA { public class MapperRepository : IMapperRepository { /// <summary> /// We pass in the context so that w...
b2f0a206e60097e0d18094e6b0c9e312a9605c61
C#
sanmuru/aegisub-automations
/ChatroomEffect/tools/cre-tools/cre-dialogs/IncludePluginDialog.cs
2.546875
3
using System; using System.Data; using System.IO; using System.Linq; using System.Windows.Forms; namespace SamLu.Cre.Dialogs { public partial class IncludePluginDialog : Form { public IncludePluginDialog() { InitializeComponent(); } private void addSource(string pa...
5045cb25eda7de531cd858d89096faa6d83c3840
C#
MrProctor/cofoundry-flower
/src/Cofoundry.Core/Mail/Dispatch/DebugMailDispatchService.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Cofoundry.Core.Mail { /// <summary> /// This is a simple debug implementation that writes out mail /// to a text file to make debugging templates easier. This is /// also the default Cofoundry m...
0126308eb6ccb9d2555ae9fe4317f7dc664a851d
C#
olli1/tankkkipeli
/Assets/Skripti2/MAPPIGEN.cs
2.609375
3
using UnityEngine; using System.Collections; using System; public class MAPPIGEN : MonoBehaviour { public int height; public int width; public string seed; public bool useRandomSeed; [Range(0,100)] public int randomFillPercent; int[,] map; void Start(){ GenerateMap (); RandomFillMap (); } ...
809c15ca9df96fc8f02cc609e55b9b7815f5bd81
C#
officesyncpersonal/wget
/NB.Core.Web.Command/wget/CommandArgument.cs
2.859375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace wget { public enum JobType { None, EarningCalendar, FairValue } public class CommandArgument { // -e earning // -f file download ...
21d86e71a6e447314b7dfb456595597ca0e59df7
C#
Vladyslav-Kuznetsov/Chat
/ChatLib/ChatClient.cs
3.328125
3
using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading.Tasks; namespace ChatLib { public class ChatClient : IDisposable { private readonly TcpClient _client; private readonly IPEndPoint _endPoint; private StreamReader _reader; private ...
9c6e1f70645be95081149ca290773f46d8bb16f3
C#
nguyentriencf/LTCSDL
/Lab5_Standard/Lab5_Standard/StudentManager.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab5_Standard { public interface IDataSource { string FilePath { get; } List<Student> GetStudents(); void Save(List<Student> studentlist); } public clas...
d8fd4b21d1ee47b4c3075cbfed50d10944551c01
C#
shreyasmurthy24/HackerRank-CSharp
/GradingStudents/Program.cs
3.75
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GradingStudents { class Program { static void Main(string[] args) { int gradecount = Convert.ToInt32(Console.ReadLine()); List<int> grades = new...
6078af61b62996412b8e7f49988cb64272aa4393
C#
lev1rand/EnvelopesTask
/Classes/Objects/Square.cs
3.640625
4
using System; namespace EnvelopesTask.Classes.Objects { class Square : Parallelogram //square (similiar sides), rectangle(different sides) { #region private const int DEFAULT_SIDE_LENGTH = 4; private const int DEFAULT_ANGLE_VALUE = 90; #endregion public Square() : b...
a56cd785e9725e4eace60a595e24542c8a27709d
C#
gavogt/VogtPayroll5
/VogtPayroll5/PayrollConsoleReader.cs
3.671875
4
using System; using System.Collections.Generic; using System.Text; namespace VogtPayroll5 { class PayrollConsoleReader { #region GetEmployeeInfo /// <summary> /// Gets employee info /// </summary> /// <returns>An employee</returns> public Employee GetEmployeeInf...
665b4e1fb909deb08c97279c0398d613251af7b3
C#
Moksiy/ComputerShop
/ComputerShop/Products/ShipmentProductsList.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ComputerShop { public static class ShipmentProductsList { public static List<Product> ProductList = new List<Product>(); /// <summary> /// Добавление продукта ...
8437f8fd0463cb75d51cf9f2c3f26f58082ca121
C#
dusanrasic/Diamonds_ASP_Website
/WebProgramiranjeASP/BusinessLayer/OperationUser.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WebProgramiranjeASP.DataLayer; namespace WebProgramiranjeASP.BusinessLayer { public class UserDb : DbItem { #region Podaci private int idUser; private int idFunctio...
d76b424ad6122603ebc791d5bcb83eb996bbe585
C#
kurtfurbush/docs
/samples/snippets/csharp/new-in-6/Newcode.cs
3.34375
3
// <UsingStaticMath> using static System.Math; // </UsingStaticMath> // <UsingStatic> using static System.String; // </UsingStatic> using System; using System.Collections.Generic; // <usingStaticLinq> using static System.Linq.Enumerable; // </usingStaticLinq> namespace NewStyle { public class Student { ...
8dbb7899fd26fcce659b04b165592e420a1897b7
C#
RebeccaSantos/apilive
/Bussines/filmebussines.cs
2.59375
3
using System; using System.Linq; using System.Collections.Generic; namespace apilive.Bussines { public class filmebussines { Database.filmedatabase db = new Database.filmedatabase(); public Models.TbFilme ValidarInserir(Models.TbFilme tabela) { if(tabela.NmFilme==string...
7934c66ff82a24860ca6429beac899b489dc1e3d
C#
MaksymRybak/RobotWars
/RobotWars.Core/System/Logging/LogWriter.cs
2.6875
3
using System; using log4net; namespace RobotWars.Core.System.Logging { public class LogWriter : ILogWriter { private static readonly ILog _log = LogManager.GetLogger("RobotWars"); public void LogError(object msg, Exception exception) { _log.Error(msg, exception); }...
bfb62d24b09d7edf23d837b37337b4c104a8261b
C#
softwareliberationarmy/DesktopWallpaper
/RandomWallpaperService/Program.cs
3.078125
3
using System; using System.Collections.Generic; using WallpaperManager; namespace RandomWallpaperService { static class Program { private static string _imageDirectory = "C:\\Images\\"; static void Main() { string imageFile = GetRandomWallpaperImage(); if (!str...
a3e34d5573bf19a7f9b16c4c9d3b9b34b0862320
C#
StanislavStefanovPetrov/Software-University-SoftUni
/Databases Advanced - Entity Framework 6/DB Apps Introduction/3. Get Minion Names/Startup.cs
3.21875
3
namespace _3.Get_Minion_Names { using System; using System.Data.SqlClient; using System.IO; public class Startup { private const string ConnectionString = @" Server=DESKTOP-5FMQC2G\SQLEXPRESS; Database=MinionsDB; Integrated Security=true;"; pri...
f56a4e8009904ad193c4b6ffab66b614c42beabf
C#
PavelDobranov/TelerikAcademy
/03-CSharp-Object-Oriented-Programming/03-ExtensionMethodsDelegatesLambdaLinq/11.ExtractStudentsByEmail/StudentsByEmailQuery.cs
3.78125
4
// Problem 11. Extract students by email // Extract all students that have email in abv.bg. // Use string methods and LINQ. namespace ExtractStudentsByEmail { using System; using System.Collections.Generic; using System.Linq; using DataRepository; using IEnumerableExtensions; public static c...
dd333d48d31ef520188644942b11592134df10c4
C#
BackupTheBerlios/pwmds
/pwmds/MDS/Tests/DataGenerator.cs
3.109375
3
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace MDS.Tests { class DataGenerator { public void Generate( int size) { double[] tab; //StreamWriter wr = (StreamWriter)File.OpenText("data.txt"); //= new...
0388d687c1f2772aeb1da9eeb4bf3dd2d7a853f7
C#
syatin003/Wpf
/EventManagementSystem/Converters/PriceConverter.cs
2.703125
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Windows.Data; using EventManagementSystem.Data.Model; namespace EventManagementSystem.Converters { public class PriceConverter : IMultiValueConverter { public object Convert(object[] values, Typ...
b6153e9ff25dff0f4e76dbf7d0b6b3488f7c0529
C#
fdieulle/RelayBoard
/RelayBoard/Tools.cs
3.046875
3
using System.Collections; using System.Linq; using System.Text; namespace RelayBoard { public static unsafe class Tools { public const int NB_BITS_PER_BYTE = 8; public static string SerializeBits(byte* p, int length) { var sb = new StringBuilder(); for (var i =...
c827d8f13e9af9325d641b3450adbee092ffe0ce
C#
ARaie/Programmeerimine
/src/Blackjack/Blackjack.Core/Deck.cs
3.546875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Blackjack.Core { public class Deck { private readonly List<Card> _cards; // Gives back right list according to user choice public static List<Card> List(strin...
0e0c2d1b1c8406be7f5616132495a25e71b5926e
C#
erdemcobanoglu/aspdotnet-core-api
/CityInfo/CitiesDataStore.cs
2.703125
3
using CityInfo.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CityInfo { public class CitiesDataStore { public static CitiesDataStore Current { get; } = new CitiesDataStore(); public List<CityDto> Cities { get; set; } ...
eb06203d101cc15fc0133032e18f5d9983427b79
C#
gro-ove/actools
/AcManager/Pages/Selected/NumberToColumnsConverter.cs
2.703125
3
using System; using System.Globalization; using System.Linq; using System.Windows.Data; using AcTools.Utils.Helpers; using FirstFloor.ModernUI.Serialization; namespace AcManager.Pages.Selected { public class NumberToColumnsConverter : IValueConverter { public object Convert(object value, Type targetType, o...
76e8ecb11cabbb606cc1c84eb5b6e78f0bf0d911
C#
sheryllan/TFS
/Systematica/Matrix/MatrixHelper.cs
3.46875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Matrix { public class MatrixHelper { public bool hasRowOrColumnOfZeros(int[,] A) { int rows = A.GetLength(0); int cols = A.GetLength(1); ...
7dbc4aaf67963f985392c1b0821047abe8eabd01
C#
Rekkuujin/bigfoot-home-ggj
/bigfoot-home-ggj/Assets/Scripts/Player/Attack.cs
2.640625
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Attack : MonoBehaviour { public float damage = 10f; Ray ray; RaycastHit hit; int layerMask = 1 << 9; float range = 1f; Collid...
dbb436872043da9e10f2507c982742a343a98af6
C#
guidebee/guidebeemapdotnet
/DotNetMapDigitLib/Mapdigit.Util/Log.cs
2.84375
3
//------------------------------------------------------------------------------ // COPYRIGHT 2010 GUIDEBEE // ALL RIGHTS RESERVED. // GUIDEBEE CONFIDENTIAL PROPRIETARY ///////////////////////////////////// REVISIONS ///////////////////////////////...
19306852227cd775d75cac58e709ba920a967355
C#
VladislavKondratenko/UniversityWeb
/University.Infractructure.Data/EntityTypeConfiguration/CourseConfiguration.cs
2.640625
3
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using University.Domain.Core; namespace University.Infrastructure.Data.EntityTypeConfiguration { internal class CourseConfiguration : IEntityTypeConfiguration<Course> { public void Configure(EntityTypeBuilder<C...
f46e951449449b64ede6f3e21d9b5638f7914cd9
C#
wk-j/il-syntax
/scripts/Uint/Min.csx
2.609375
3
Console.WriteLine(int.MaxValue); var range = Enumerable.Range(1, 10); foreach (var item in range) { Console.WriteLine((uint)-item); }
b170b8b99370ce8c0f65b79110de2d16a8bab6b3
C#
YexpZIS/QsFlai
/QsFlai/Preferences/Settings.cs
2.6875
3
using Microsoft.Win32; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using System.Windows; using Newtonsoft.Json; using Sys = System.IO.File; using System.Windows.Controls; using System.Window...
729374fae48526ec9c898ba532958cc425817cdf
C#
injekt666/InMemoryLoaderCommon
/Obsolete.PowerUpUtils/PowerUpDateTimeUtils/DateTimeUtils.CalendarWeekStartDate.cs
2.578125
3
// // DateTimeUtils.CalendarWeekStartDate.cs // // Author: responsive kaysta // // Copyright (c) 2017 responsive kaysta // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restrict...
1db6f4285633698a9ee86ce5ea2909ea670968db
C#
ajwhitehead88/tridion-couchbase-delivery
/src/net/CouchbaseDelivery.Data.ContentModel/Serializers/ContentSerializer.cs
2.9375
3
using CouchbaseDelivery.Data.ContentModel.Contract.Model; using CouchbaseDelivery.Data.ContentModel.Contract.Serializers; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace CouchbaseDelivery.Data.ContentModel.Serializers { /// <summary> /// Helper serialiser class to convert published data ...
1458e0d96486736a4c5213f2bc8d8faf54390e31
C#
sevdalin/Software-University-SoftUni
/Db Advanced - EF Core/03. EntityFramework Code-First/01. Define class Person/Models/Student.cs
3.046875
3
namespace _01.Define_class_Person.Models { public class Student { private static int count = 0; public Student(string name) { this.Name = name; Count++; } public string Name { get; set; } public static int Count { ge...
0647b3a923570cb20862b03a274460dedff2fec1
C#
ShazJ/AzureCSharp
/Azure/sas-storage/Program.cs
3.203125
3
using Microsoft.Azure.Storage; using Microsoft.Azure.Storage.Blob; using System; namespace sas_storage { class Program { string storageConnect; string policyName; static void Main(string[] args) { sas(); } static void sas() { //...
3cc29b1df28948678dd9efc97a237dafb44f4f4c
C#
ralumbaugh/C-Sharp-Hackathon
/Characters/samurai.cs
3.484375
3
using System; namespace Really_Fun_Game { class Samurai : Character { // Constructors public Samurai(string name) : base(name) { this.IsAlive = true; this.Strength = 3; this.Health = 200; this.MaxHealth = 200; } // public S...
9da7098d5fea13c0b6e89a99bed35b3eab07c246
C#
hahaking119/ds568
/SDG.Cache/CacheUtility.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Caching; using System.Web; namespace SDG.Cache { public class CacheUtility { public static void Insert(string cacheKey, object value, CacheDependency cacheDependency) { ...
d77785d8c83128a6841b4104a7f0e28471694ecc
C#
mandakiniagrawal/PromotionsEngine
/PromotionsEngine/Model/XProduct.cs
3.125
3
using PromotionsEngine.Interfaces; namespace PromotionsEngine.Models { class XProduct : IPack { public XProduct() { cProduct = new CProduct(); dProduct = new DProduct(); } readonly CProduct cProduct; readonly DProduct dProduct; public in...
2b629425fc2223b5de41961b1b57471e28163568
C#
bswanson58/NoiseMusicSystem
/MilkBottle/HueLighting/Dto/UiBulb.cs
2.59375
3
using System.Windows.Media; namespace HueLighting.Dto { public class UiBulb { private readonly Bulb mBulb; public Color LightColor { get; } public double Top => ( mBulb.Location.Y * 100 ) + 100; public double Left => ( mBulb.Locati...
85024ab99f953dc6783d55102023cdf0f64c34be
C#
Eibwen/Ai-Challenge-2010-PlanetWars
/Fanny_Heirdoo Suite V2/botDebug/botDebugBase.cs
3.125
3
using botDebug; using System.Text; using System; using System.Linq; namespace PlanetDebug { /// <summary> /// Base class for the 'debugging system' /// It has not been thought out, I just tried to create a system that /// would leave as much intact from the original samples as possible. /// . /// If...
9aac436a593aba1c5a01d656d9645cc768bd2ce5
C#
ryik5/mySCA2
/Classes/Common/TaskExtensions.cs
2.90625
3
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ASTA.Classes { public static class ForEachAsyncExtension { public static Task ForEachAsync<T>(this IEnumerable<T> source, int dop, Func<T, Task> body) ...
86371c0a0b7b6a123c92c7be98fff73c2a60101f
C#
MatsLevi/DistroLab2
/DistroLab2/DistroLab2/Models/Mail_Models/MailUser.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace DistroLab2.Models.Mail_Models { /// <summary> /// Model that contains user data /// </summary> public class MailUser { private int id { get; set; } private string username { get; set; }...
c4a3af7ef4ba61fbc0f0a8b86cc3745099ecee6d
C#
jasoncavaliere/leanandmean
/Samples/WritingToTheEventStore/WriterApp/ReadWriteCommon/Subscriber/OrderedStreamHandler.cs
2.875
3
using System; using System.Net; using System.Text; using EventStore.ClientAPI; using Newtonsoft.Json; using ReadWriteCommon.Publisher; namespace ReadWriteCommon.Subscriber { public interface IOrderedStreamHandler<TEventType> { void ReadStream(); } public abstract class OrderedStreamHandler<TEven...
a8c3f123351c483392b3ebd54a84a75c7dc0c90d
C#
waltersoto/brief
/Brief/ConnectionString.cs
2.515625
3
 using System.Data.Common; namespace Brief { public class ConnectionString : DbConnectionStringBuilder { public ConnectionString() { } public ConnectionString(bool useOdbcRules) : base(useOdbcRules) { } public ConnectionString(string connectionString) : this(false, connectionString) { }...
e837e829d0aa725d8aaa240baa63008de30797f5
C#
HeshamMeneisi/WIS
/Windows Input Simulator/IconReader.cs
2.578125
3
using System.Runtime.InteropServices; using System.Drawing; using System; using System.IO; public class IconReader { // Fields private const uint conFILE_ATTRIBUTE_DIRECTORY = 0x10; private const uint conFILE_ATTRIBUTE_NORMAL = 0x80; private const int conMAX_PATH = 260; // Methods [DllImport("...
5bfb0a6a3edd69ebefc7fca669cf0dacb1bff8fd
C#
gauravgaikwad777/Magic-Estate-RealitySearch-ASP
/Assign5/SignUp.aspx.cs
2.53125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Data.SqlClient; using System.Net.Mail; using System.Web.UI.WebControls; namespace Assign5 { public partial class SignUp : System.Web.UI.Page { protected void Page_Load(object sender, ...
0b9f337786f5d1a864f282e37d900bb9c3757f9b
C#
SaurabhNijhawan/CSharpAlgorithmsAndDataStructures
/DSAndAlgorithms.Tests/ArrayAlgorithmsTests.cs
3.265625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using DSAndAlgorithms.DataStructures.Arrays; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace DSAndAlgorithms.Tests { [TestClass] public class ArrayAlgorithmsTests { [TestMethod] pu...
96f50b34fde46cbfef6a91c7cb23fb679615f2b2
C#
xibeilang524/AC
/AC.Base.Forms.Windows/Manages/Department.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using AC.Base; namespace AC.Base.Forms.Windows.Manages { /// <summary> /// 路灯处各部门。 /// </summary> [ClassifyType("路灯处", true)] public class Department : Organization { /// <summary> /// 获取当前分类 ...
f6c931945ae51e2a12eaa8cb72a71d0e34bc4013
C#
smyleeface/JukeboxAlexa
/src/JukeboxAlexa/Library/Tests/DynamoDbTest.cs
2.734375
3
using System.Collections.Generic; using System.Linq; using Amazon.DynamoDBv2; using Amazon.DynamoDBv2.Model; using JukeboxAlexa.Library.TestFixtures; using Moq; using Xunit; namespace JukeboxAlexa.Library.Tests { public class DynamoDbTest { public SongFixtures SongFixtures = new SongFixtu...
5ce3f723b83670e9e18db1d28189661262347868
C#
brookpatten/MrGibbs
/src/MrGibbs.Models/Message.cs
3.03125
3
using System; namespace MrGibbs.Models { public enum MessageCategory { System, Tactical, } public enum MessagePriority { Low=0, Normal=1, High=2 } /// <summary> /// Message which needs to be communicated to the user via some means /// </summ...
b9920002126d5cea02c894376d994b7288d4bc7c
C#
shendongnian/download4
/code2/220266-4298321-9058498-2.cs
3.25
3
1) replace LoadFromFile in Loader.cs private static RandomObject LoadFromFile(string path) { try { var bf = new BinaryFormatter(); using (var fileStream = File.OpenRead(path)) using (var decompressed = new MemoryStream()) { ...
051a6cd65aa358f491b4f97f2f0533d341a8565e
C#
gosystemsgmbh/RI_Framework
/RI.Framework.Common/Mathematic/Controllers/PIDController.cs
2.6875
3
using System.Diagnostics.CodeAnalysis; using RI.Framework.Utilities; using RI.Framework.Utilities.Exceptions; namespace RI.Framework.Mathematic.Controllers { /// <summary> /// Implements a PID controller. /// </summary> /// <remarks> /// <para> /// PID controllers compute a...
d65d659f296895086c4760d747c8bae6d8da2d96
C#
treviettreviet/apcrshr
/apcrshr/Site.Core.Repository/Implementation/UserRepository.cs
2.71875
3
using Site.Core.Common.Ultil.Enum; using Site.Core.Common.Ultil.Security; using Site.Core.Repository.Repository; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Site.Core.Repository.Implementation { public class UserRepository : IUserRe...
3eda4a1caeea179574c9e0071c2046bdcadf7e4d
C#
xuongnhon/BandwidthAlgorithms
/NetworkSimulator/NetworkSimulator/RoutingComponents/RoutingStrategies/RoutingStrategy.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NetworkSimulator.NetworkComponents; namespace NetworkSimulator.RoutingComponents.RoutingStrategies { public abstract class RoutingStrategy { protected Topology _Topology; protected Dictionary<Link, doub...
e142de00899dc3b2a457e48dc5226e8169086748
C#
OsvarK/Grid-And-Pathfinding-System-Unity
/Assets/Scripts/grid-system/None-Unity-Dependent/Pathfinding/Astar search algorithm/AStarAlgorithm.cs
3.21875
3
using System; using System.Collections.Generic; /// <summary>A* Pathfinding search from grid a grid class</summary> public class AStarAlgorithm { private Grid grid; public AStarAlgorithm(Grid grid) { this.grid = grid; // Creates the AStarCell data component for every cell in the gr...
06a00b111c5df3c832202e2a697ff6f6a8056711
C#
Ginoooo/tIDE
/TileMapEditor/tIDE/Commands/TileSheetRemoveDependencyCommand.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using xTile; using xTile.Dimensions; using xTile.Layers; using xTile.Tiles; using tIDE.Controls; namespace tIDE.Commands { internal struct TileSheetDependency { private Layer m_layer; priva...
22af301154f9b2a65616122089d0694be652902c
C#
JRWolford/Cms
/Services/Cms.DisplaySettingsService/Contracts/IDisplaySettingsUnitOfWork.cs
2.515625
3
using Cms.DisplaySettingsService.Data.Entities; using System; namespace Cms.DisplaySettingsService.Contracts { /// <summary> /// The base contract for the display settings unit of work. /// </summary> public interface IDisplaySettingsUnitOfWork : IDisposable { /// <summary> ///...
e0a7b5f3dab6a344416a36deca91aa689332f3b4
C#
jonathan-sarmento/pneustore-back
/pneustoreAPI/Controllers/ProductController.cs
2.625
3
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using pneustoreAPI.API; using pneustoreAPI.Models; using pneustoreAPI.Services; namespace pneustoreAPI.Controllers { [ApiController] [Route("[controller]")] [AllowAnonymous] public class ProductController : APIBaseController ...
6ee49473f35086188ee9128b714dc99ef8c4b5fb
C#
aavtukhovich/BGUIR
/Session 2017/OOTPiSp/Ivanov/10 var/proj/proj/CustomClass.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace proj { class CustomClass // тут выводится результат //При реализации задания 1 функцию вывода содержимого объекта реали-зовать как внешнюю по отношению к классу { public static...
83330d67b90eb3556e24a2e01adbbb34237f3964
C#
zinofi/Umbrella
/Core/src/Umbrella.Utilities/Comparers/GenericEqualityComparer.cs
3.3125
3
using System; using System.Collections.Generic; namespace Umbrella.Utilities.Comparers { /// <summary> /// A generic comparer to allow for determining equality between 2 object instances /// of the same type. /// </summary> /// <typeparam name="TObject">The type of the object.</typeparam> /// <seealso cref="Umb...
14b2c4e6d551dce4f0d23a474b2d2b7794d8e454
C#
iridinite/mightyena
/FormBoxRename.cs
2.859375
3
/* * Mightyena - A Gen-III Pokémon Save Editor * (C) Mika Molenkamp, 2017. */ using System.Windows.Forms; namespace Mightyena { public partial class FormBoxRename : Form { public string NewName { get { return txtNewName.Text; } } public FormBoxRename(int box, string current) { In...
abd7962fb8989a55bb5380d157b2b7061989f6b7
C#
luisrodriguez5/Capitulo-8
/Ejercicio 1/Program.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ejercicio_1 { class Program { static void Main(string[] args) { String Cadena; Console.WriteLine("Ingrese una Cadena: "); Cadena = C...
a0e442996d5be17c3f592364f1c7a96784a2c517
C#
Artemyev-Sergei/LD46
/Assets/Scripts/Utility/ScreenFader.cs
2.84375
3
using UnityEngine; using UnityEngine.UI; public class ScreenFader : MonoBehaviour { [SerializeField] protected float solidAlpha = 1f; // 1f is for fully opaque. [SerializeField] protected float clearAlpha = 0f; // 0f is for fully transparent. [SerializeField] private float fadeOnDuration = 2...
0e11970d7962390f9e6b1ef31fb2e2e29833fd93
C#
ssjogedal/Library_Application
/Library/Models/Loan.cs
3.046875
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Library.Models { public class Loan { [Key] public int LoanId { get; set; } [Required] public DateTime TimeOfLoan ...
f01313dfc9a8de580f184859686a58a1a9d96c57
C#
danieladebi/Personal-Portfolio
/Surgery Learning Tool/Kinect/WindowsGame1/WindowsGame1/Scripts/GameState.cs
3.390625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MyKinectGame { public class GameState { /**********************************************************************************************/ // Static: public static event Action<string> OnStat...
1a8ed813b7096b4a754fe21412e0af4ba755c4a6
C#
osjoberg/HtmlPerformanceKit
/HtmlPerformanceKit/StateMachine/Script/HtmlStateMachine.ScriptDataEscapedDashDashState.cs
2.796875
3
using HtmlPerformanceKit.Infrastructure; namespace HtmlPerformanceKit.StateMachine { internal partial class HtmlStateMachine { /// <summary> /// 8.2.4.24 Script data escaped dash dash state /// /// Consume the next input character: /// /// "-" (U+002D) ...
86154dac64183f81a0c407bc8eb7e15336d6603a
C#
PixelSnake/bananacake
/parser/syntax/expressions/nodes/value/BoolValueNode.cs
3.046875
3
using System; using System.Text.RegularExpressions; using BCake.Parser.Syntax.Types; namespace BCake.Parser.Syntax.Expressions.Nodes.Value { public class BoolValueNode : ValueNode { public static PrimitiveType Type = new PrimitiveType(Namespace.Global.Scope, "bool", false, typeof(BoolValueNode)); ...
ac4bfac46d33fc10dae0a746247a5b7a2df8eae3
C#
mmarkwort/MORYX-Factory
/src/Moryx.ControlSystem/Processes/IActivityPool.cs
2.59375
3
// Copyright (c) 2021, Phoenix Contact GmbH & Co. KG // Licensed under the Apache License, Version 2.0 using System; using System.Collections.Generic; using Moryx.AbstractionLayer; namespace Moryx.ControlSystem.Processes { /// <summary> /// Access to all activities currently running or prepared by the process...