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
3fa620bfb96480a3f3ada9af3c9db287d46b380c
C#
noobwu/AspNetCoreSample
/src/SDK/Aliyun/RocketMQ/Aliyun.RocketMQSample/Kmmp/Kmmp.Core/Extension/StringExtensions.cs
2.765625
3
// *********************************************************************** // Assembly : Aliyun.RocketMQSample // Author : Administrator // Created : 2020-03-08 // // Last Modified By : Administrator // Last Modified On : 2020-03-08 // ********************************************************...
ae6ebe57df318fd371e2f67b9e616917658791e8
C#
Daazee/InventorySolutionV1
/Inventory.BLL/HashHelper.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Inventory.BLL { public class HashHelper { string strMyDay, strMyMth, strMyYear, strMyDte, FinalDate; public string ValidateDate(st...
33906eb9fa55ded449c77eaf755875740d129a6d
C#
jjroman/Miado
/Miado/Threading/LockHolder.cs
3.375
3
using System; using System.Threading; namespace Miado.Threading { /// <summary> /// This helper class provides locking using the Monitor class. /// </summary> /// <typeparam name="T"></typeparam> public sealed class LockHolder<T> : IDisposable { #region Members private T _handl...
3351fef052fcb24b0f946d16389c5432e7c4615f
C#
kostadin-belchev/ProgrammingFundamentals_Sep_2017
/14_Exam Nov 2017/02_AnonymousThreat/Program.cs
3.328125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class AnonymousThreat { static void Main() { var arrayOfData = Console.ReadLine().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList(); while (true) ...
253a7e005d1ec76ee62cd4be0e7cacc44d281db2
C#
biadars/Chessington
/Chessington.GameEngine/Pieces/Pawn.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; namespace Chessington.GameEngine.Pieces { public class Pawn : Piece { public bool Moved { get; set; } = false; public Pawn(Player player) : base(player) { } public override void MoveTo(Board board, Square ...
27a75937b1f54a64d8d5bb27e08a6e8eae1e04a6
C#
MorgThom/sos-sub
/Movement/Motor.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using RoboSub.Exceptions; using Pololu.Jrk; namespace RoboSub.Movement { /// <summary> /// Contains the reference to a single motor, its 3D coordinate, and whether it's reversible. /// Used to control the specific motor. ...
ae03050f6476f7643fadd80a0209518e04663f86
C#
yyc12345/BallanceSkybox
/BallanceSkyboxGenerator/Utility.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace BallanceSkyboxGenerator { public struct Vector { public Vector(double x, double y, double z) { X = x; Y = y; Z = z; } public double X; ...
62d2be55b6eebc0dfdff33c45ed1db7809a65277
C#
trimbakeshwar/mood
/moodTest/UnitTest1.cs
3.328125
3
using MoodAnaliser; using MoodAnaliser; using NUnit.Framework; using System; using System.Reflection; namespace moodTest { public class moodAnalyzerTest { MoodAnalyzer obj = null; [SetUp] public void Setup() { } /// <summary> ...
2e960833785c624823cf75b96ad0e324a1307252
C#
StefanMihaylov/TelerikAcademy
/06 High-Quality Code/11c Test-Driven-Development-Demo-Homework/TestPoker/TestHandClass.cs
3.171875
3
namespace TestPoker { using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using Poker; using Poker.Enum; [TestClass] public class TestHandClass { [TestMethod] public void ToStringHandWithNoCards() { var emptyHand = n...
42dbf9158c51112e65869e26f990a46bc1667362
C#
dquijada/Resume
/Resume.Droid/Adapters/NavigationDrawerAdapter.cs
2.515625
3
using System; using Android.Views; using Android.Widget; using System.Linq; namespace Resume.Droid { public class NavigationDrawerAdapter : BaseAdapter { string[] names; LayoutInflater context; public NavigationDrawerAdapter(string[] itemNames, LayoutInflater inflater) :base() { names = itemNames; con...
dc4fa284fc46d75d1f1fb1a3505362d2be1d9706
C#
Miroslav-Miro/SoftUni-Software-Engineering
/CSharp-Programming-Basics/FirstStepInPrograming-Exercise/01.USD toBGN/Program.cs
2.734375
3
using System; namespace _01.USD_toBGN { class Program { static void Main(string[] args) { double usdVar = 1.79549; double usd = double.Parse(Console.ReadLine()); double total = usdVar * usd; Console.WriteLine($"{total:f2}"); } ...
467d24f59d3ed1e4ce2bcb9b6da5ba2896a7b6e0
C#
Sargonius/ProjectApocalypseOld
/Assets/GameStateManager.cs
2.609375
3
using UnityEngine; using UnityEngine.UI; using System.Collections; public class GameStateManager : MonoBehaviour { public static int gameState = 1; public static int hours = 0; public static int days = 1; public static float secondsPerHour = 0.01f; public Forest forest; public City city; public static int c...
da16ba484092d0ec4001f5442468cde1d111bedf
C#
Thisisjameswyn/GameTracker.Solution
/GameTracker/Models/ApiHelper.cs
2.875
3
// using System.Threading.Tasks; // using RestSharp; // namespace GameTracker.Models // { // class ApiHelper // { // public static async Task<string> ApiCall(string searchTerm) // { // RestClient client = new RestClient($"https://www.cheapshark.com/api/1.0/games?title={searchTerm}"); // RestReq...
caf791d7bb118003ede89f1a6c32c2740e97a081
C#
bus21/ASN1-Editor
/Asn1Lib/ConsoleTable.cs
3.296875
3
using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Asn1Lib { public class ConsoleTable { private List<string> Titles; private List<List<string>> Rows; public string ColumnSeperator { get; set; } public string HeaderSepe...
e16c22bc8a7f719ac91460811f0b21786bb1c1b5
C#
cclautert/Comunica
/Comunica/FachadaComunica.cs
2.65625
3
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Comunica { public class FachadaComunica { public static int Reconexao = 0; private static object lockObj = new Obje...
50603d153ba49bba6428c54f8b62cce9f7bb93e4
C#
neotys-rd/rest-data-exchange-api
/model/TimerBuilder.cs
2.5625
3
using System; using System.Collections.Generic; using Neotys.DataExchangeAPI.Utils; /* * Copyright (c) 2015, Neotys * All rights reserved. */ namespace Neotys.DataExchangeAPI.Model { /// <summary> /// Util class to handle Timers. /// /// @author srichert /// /// </summary> public sealed class TimerBuilder...
cbc6531825f85f57f2576f980e5ca0bad528fa68
C#
snoopy83101/Uzor001
/Common/Config.cs
2.515625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Common { public class Config { public static string GetAppValue(string Key) { return System.Configuration.ConfigurationSettings.AppSettings[Key].ToS...
764fef2d34e66d40604858e796ec38c111a55f33
C#
NilukW/TransportManagementSystem
/TransportManagementSystem.Data/BusRepository.cs
2.625
3
using Dapper; using Microsoft.Extensions.Configuration; using Npgsql; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using TransportManagementSystem.Model; namespace TransportManagementSystem.Data { ...
37a4e5925292c0166bf8c8952e30fad6a1ff61dc
C#
ogysha/books-api
/Books.Api/Infrastructure/Repositories/BookRepository.cs
2.8125
3
using System.Collections.Generic; using System.Linq; using Books.Api.Core.Abstractions; using Books.Api.Core.Entities; using MongoDB.Driver; using Book = Books.Api.Infrastructure.Entities.Book; namespace Books.Api.Infrastructure.Repositories { public class BookRepository : IRepository<Core.Entities.Book>, IUnitOfW...
7a6165449998649225a4a3f85126cda9fe40ca9c
C#
hse-programming-CSharp2020-2021/207RoschupkinaMarina
/module2/YC6/TaskB/IntWrapper.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; class IntWrapper { int number; public IntWrapper(int number) { this.number = number; } public int FindNumberLength() { if (number<0) throw new ArgumentException("Number should be non-negative...
e70ff41902a22b537e430eaf2e2ea038ae168652
C#
ICC3101-201810/movies-Erios96
/Peliculas/Peliculas/Persona.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Peliculas { [Serializable] class Persona { String nombre, apellido, bibliografia, tipo; DateTime fechaNacimiento; public Persona(String nombre1, String apel...
17a03961e094fe83d70f973eaeb05726ccdee8d8
C#
PNNL-Comp-Mass-Spec/Informed-Proteomics
/InformedProteomics.Scoring/GeneratingFunction/GeneratingFunction.cs
2.8125
3
using System; using System.Collections.Generic; namespace InformedProteomics.Scoring.GeneratingFunction { public class GeneratingFunction { public GeneratingFunction(IScoringGraph graph) { _graph = graph; /* _maxAchievableScore = new int[_graph.Ge...
939a3f64be9b42a834c81fc3d22de89ceb7af411
C#
codeaddicts/lizardftp
/liblizard/FtpItems/FtpFile.cs
2.796875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using Codeaddicts.Lizard; namespace Codeaddicts.Lizard.FtpItems { public class FtpFile : FtpItem { public FtpFile (FtpPermission permission, int size, int owner, int group, DateT...
7e25ba5c7dfde7a54a7785ec4ac96e92729483c0
C#
nexusstar/Telerik
/C#-OOP-Fundamentals/L3-ExtensionMethods/Lection_Ivailo_Kenov/DocumentSystem/TextDocument.cs
2.75
3
namespace DocumentSystem { using System; public abstract class TextDocument:Document, IDocument { public TextDocument(string name, string charset) : base(name) { this.Charset = charset; } public TextDocument(string name, string content, string char...
c2d42dc5feaca6d2d7ee5002bdb6bc1f1d222145
C#
piotrpacyna/design-patterns
/DesignPatterns/Structural/CompositePattern/Uniformity/ControlComponent.cs
3
3
namespace CompositePattern.Uniformity { public abstract class ControlComponent { protected string Name { get; } protected char DepthIndicator { get; } = '-'; protected ControlComponent(string name) { Name = name; } public abstract void Print(int dep...
c7316e9823ad28a63592de1311cf333b6cba62fa
C#
KonchaninStas/HomeWork
/Restaraunt/Methods/Layots.cs
2.78125
3
using EntityBaseData; using EntityBaseData.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnitDb; namespace Methods { public class Layots { int Id { get; set; } public Dictionary<Product, decimal> ProductForDi...
3f84a309b053776296173d14231a68fb85d15d4a
C#
galehouse5/TreesDb
/TMD.Model/ValueObjects/Coordinates.cs
3.0625
3
using NHibernate.Validator.Constraints; using System; namespace TMD.Model { public enum CoordinatesFormat { Invalid = 0, Unspecified = 1, Default = 2, DegreesMinutesDecimalSeconds = 3, DegreesDecimalMinutes = 4, DecimalDegrees = 5 } publi...
0e45cc4db0ab334b70ddbc90fe3d93e5f77bf2f7
C#
matthewfritsch/DND-DM-Toolset
/Assets/Tests/Tests_EditMode/Test_ISaveable_EM.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; using UnityEditor.TestTools; /// <summary> /// This is the main testing component /// </summary> public class Test_ISaveable_EM { /// <summary> /// This tests creating save da...
150ab0329cc8c87a6d6a9a296cf767aee7436a18
C#
odukec/ordersApp
/ordersApp/Controllers/OrdersController.cs
2.59375
3
using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc; using ordersApp.Models; using Microsoft.AspNetCore.Authorization; namespace ordersApp.Controllers { [Route("api/[controller]")] [ApiController] public class OrdersController : ControllerBase { private readonl...
4fb2984861e8eec035cfe2fff3954265f323005c
C#
xPutnikx/Template
/UnitTest/ProcessRequestTest.cs
2.625
3
using TemplateTask; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Text.RegularExpressions; using System.Collections.Generic; namespace UnitTest { /// <summary> ///This is a test class for ProcessRequestTest and is intended ///to contain all ProcessRequestTest Uni...
7369c0be9cbcef16fdc889f60c0866138dec2a4e
C#
n-kostov/TelerikAcademy
/DSA/DictionariesHashTablesAndSets/1. NumberOfOccurrences/NumberOfOccurrences.cs
3.6875
4
using System; using System.Collections.Generic; public class NumberOfOccurrences { public static void Main(string[] args) { double[] array = { 3, 4, 4, -2.5, 3, 3, 4, 3, -2.5 }; IDictionary<double, int> occurrences = new Dictionary<double, int>(); for (int i = 0; i < array.Length; i++...
078f1697f1c2b9a0df42268e80e7a9e79bbd4bb4
C#
aspose-words/Aspose.Words-for-.NET
/Plugins/NPOI/Missing Features of NPOI HWPF and XWPF/Aspose.Words/03-WorkingWithTable/03.02-SplitTable/Program.cs
2.984375
3
using System; using System.IO; using Aspose.Words; using Aspose.Words.Tables; namespace _03._02_SplitTable { class Program { static void Main(string[] args) { // Check for an Aspose.Words license file in the local file system and apply it, if it exists. stri...
09f88535cedc13da1860c16a948bdcb5ec253b68
C#
santatamas/Project-Cube
/Source/src_editor/PixelMatrixEditor/CubeProject.Graphics/Renderers/MatrixCanvas.cs
2.859375
3
using System.Windows; using System.Windows.Controls; using System.Windows.Media; namespace CubeProject.Graphics.Renderers { public class MatrixCanvas : Canvas { private Brush _backGroundBrush; private Brush _pixelOnBrush; private Brush _pixelOffBrush; public MatrixCanvas() ...
783727ab913bdf6338880c0d5ac3b8cace940770
C#
nomaniqbal/OneLoginClientDotNet
/src/OneLoginClient/ResponseExtensions.cs
3
3
using System; using System.Linq; using System.Text.RegularExpressions; using System.Reflection; using OneLogin.Responses; namespace OneLogin { public static class ResponseExtensions { /// <summary>Throws an Exception if Status.Error is true.</summary> /// <returns>Returns the successful BaseSt...
ee55b709763128bc14b442fb0d51a14c54346579
C#
Maultasche/LargeSortCSharp
/IntSort/ChunkFileMerger.cs
3.03125
3
using System; using System.Collections.Generic; using System.IO; using LargeSort.Shared; namespace IntSort { /// <summary> /// Implements functionality for merging chunk files /// </summary> public class ChunkFileMerger : IChunkFileMerger { IFileIO fileIO = null; IIntegerFileMerge...
7544f91d6a624c925acbd5618c1a490ac6a046ab
C#
AltuninAndrew/some_scripts
/MergeSort.cs
3.671875
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp5 { class Program { static int[] Merge_Sort(Int32[] massive) { if (massive.Length == 1) return massive; int mid_point =...
95bd1a7f7a47bd1a4025edd899f201ca01790555
C#
yasink2172/PlayFabDemo
/Assets/Scripts/Panels/Leaderboard.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Demo.UI { public class Leaderboard : MonoBehaviour { #region Fields private UserManager _userManager; private UIManager _uiManager; public GameObject LeaderboardScroll; public Gam...
7e0313fe371b9bcef0c58b8a5ea8a7b86fea499c
C#
omelhus/gremlin.linq
/Gremlin.Linq/Linq/Selectors/OutSelector.cs
2.609375
3
namespace Gremlin.Linq.Linq { public class OutSelector<TEntity> : Selector<TEntity>, ICountable { private string _alias; public OutSelector(IGraphClient graphClient) : base(graphClient) { } public OutSelector<TEntity> As(string alias) { _alias = ali...
88dbf8fb1f3d883e93608f25a2e1976876b2e306
C#
NeeteshSonkiya/BizrunTime
/String/StringMethods4.cs
3.515625
4
using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp1 // copy, concat, contains { class StringMethods4 { static void Main(string[] args) { string s1 = "Hello "; string s2 = "String"; string s3 = string.Copy(s1); ...
ec6f9039393d1ed419289eb4c36f9d861d5a0c90
C#
drexly/raws
/dbadd/Form3.cs
2.609375
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 dbadd { public partial class Form3 : Form { static int s = 0; static i...
53789592109d6ebeb4feb316912b1eda9a42e949
C#
Smytt/SoftUni-Homeworks
/05 2017 - Progframming Fundamentals/06 01 - Data Types and Variables - Exercises/Practice Characters and Strings/Program.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Practice_Characters_and_Strings { class Program { static void Main(string[] args) { string sentence1 = Console.ReadLine(); char letter1 = char.P...
8f7609c2f4f92063aeecf9f76c12d00e81a2f7b4
C#
tauerlund/CLUBS-Language-Compiler
/ClubsCompiler.Program/Nodes/Expressions/InfixExpressionNode.cs
2.796875
3
using Antlr4.Runtime; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClubsCompiler.Program { /// <summary> /// Abstract class representing an infix expression containing left and right <see cref="ExpressionNode"/>s. /// </summary> ...
8cd84b18eaa75d657584feb40d734f6eb8fda25d
C#
JArmandoCl/XamarinAdvientoApp
/XamarinAdvientoApp/XamarinAdvientoApp/ViewModels/SignUpPageViewModel.cs
2.5625
3
using System; using System.ComponentModel; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Input; using Xamarin.Forms; using XamarinAdvientoApp.Dtos; using XF.Material.Forms.UI.Dialogs; namespace XamarinAdvientoApp.ViewModels { public class SignUpPageViewModel : INotifyPro...
fd3f9ab21ebbd0365d158b035cbd6f88f6a3415f
C#
dobroslav-atanasov/Programming-Fundamentals-Extended
/12. Lists-Exercises/03. EqualSumAfterExtraction/EqualSumAfterExtraction.cs
3.953125
4
namespace _03.EqualSumAfterExtraction { using System; using System.Collections.Generic; using System.Linq; public class EqualSumAfterExtraction { public static void Main() { var firstList = Console.ReadLine().Split(' ').Select(int.Parse).ToList(); var second...
bc3812fef8bf693968c0479153b660d74ce12743
C#
remi0007/Review
/Review/Program.cs
3.65625
4
using System; using System.Collections.Generic; namespace Review { class Program { static void Main(string[] args) { var numbers = new List<int>(); var myNumber = 0; do { myNumber++; numbers.Add(myNumber); ...
9f19998f5d40e4d49628f89900faa8fd32af93a0
C#
Scrivener07/Cookie-Clicker
/Cookies/MainWindow.cs
2.875
3
using System; using System.ComponentModel; using System.Windows.Forms; namespace CookieChaos { public partial class MainWindow : Form { /// <summary> /// The data context for the game. /// </summary> public Game Context { get; private set; } public MainWindow() { InitializeComponent(); Load += O...
0a07305b19f32fb1b3c8fe3daf43311e7db9e3ef
C#
peter-popov/xomango
/GameComponents/GameStatistics.cs
2.75
3
using System; using System.IO; using System.IO.IsolatedStorage; using System.Collections.Generic; using System.Linq; using System.Text; namespace GameComponents { public class GameStatistics { public struct Stat { public Stat(int c, int v, int t) ...
45de559eeb69cde1f199082ddb539a60f19c6bdc
C#
audinowho/RogueElements
/RogueElements/MapGen/Rooms/RoomGenRound.cs
2.734375
3
// <copyright file="RoomGenRound.cs" company="Audino"> // Copyright (c) Audino // Licensed under the MIT license. See LICENSE file in the project root for full license information. // </copyright> using System; namespace RogueElements { /// <summary> /// Generates a rounded room. Square dimensions result in...
9de1090a68c9e24728cc64b49bb50662434fce5c
C#
shenba2014/DrawingApplication
/DrawingApplication/Drawing/Commands/BucketFillDrawingCommand.cs
3.203125
3
using System; namespace DrawingApplication.Drawing.Commands { public class BucketFillDrawingCommand : IDrawingCommand { private readonly Canvas _canvas; private static readonly int[] xPositions = { 0, 0, 1, -1 }; private static readonly int[] yPositions = { 1, -1, 0, 0 }; public BucketFillDrawingCommand(C...
385d597fb85dabe42f17d8d5347c0856d0105bbc
C#
anton-mix/Projects
/University/AutoManager v2.0/AutoManager/ScriptItem.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AutoManager { class ScriptItem { private string program, typeCommand, command; public ScriptItem(string program,string typeCommand, string command) { this.program = program; this.t...
5f3be2fd1132d3a17cd4fbc6f188f93829529c28
C#
samuilll/Softuni_CSharpAdvancedCourse
/07_BashSoftProject/BashSoft/Repository/RepositoryFilters.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BashSoft.Repository { public static class RepositoryFilters { public static void FilterAndTake(Dictionary<string, List<int>> wantedData, string wantedFilter, int studentsToTak...
b62e60f3a6c4ae663210e35a65b19fc7588b114a
C#
dotnet/orleans
/src/Orleans.Serialization/Codecs/ArrayListCodec.cs
2.734375
3
using System.Collections; using Orleans.Serialization.Cloning; using Orleans.Serialization.Serializers; namespace Orleans.Serialization.Codecs { /// <summary> /// Serializer for <see cref="ArrayList"/>. /// </summary> [RegisterSerializer] public sealed class ArrayListCodec : GeneralizedReferenceTyp...
074faca03460736eeb589cf1e701cdebdf964bfc
C#
Myzzie/MyGame
/Unity Project/Assets/Projects/Assets/Scripts/Battle/PlayerScripts/SinClass/LifeSteal/FloatingLifeSteal.cs
2.5625
3
using UnityEngine; using System.Collections; using UnityEngine.UI; public class FloatingLifeSteal : MonoBehaviour { public Text myGUItext; private float guiTime = 1f; void Update () { Color myColor = myGUItext.color; myColor.a -= Time.deltaTime / guiTime; myGUItext.color = myC...
7c3ed246dfe2ce91188075de1225d02dee062979
C#
roy-t/gear-physics
/GearPhysics/v2/GearDescription.cs
2.59375
3
using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using static System.Diagnostics.Debug; namespace GearPhysics.v2 { public sealed class GearDescription { private GearDescription(float outsideDiameter, float rootDiameter, int teeth) { this.OutsideDiamet...
03a58f5bdf750d06190114cd5c9a1ee28cf993d5
C#
CoderStudio/Common
/Common/Common/Extensions/EnumExt.cs
3.234375
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace Common.Extensions { public static class EnumExt { /// <summary> /// Get Enum Des /// </summary> //...
748310a9d15e72672fc7fd64d5ca057c32d5eb36
C#
Puchaczov/Musoq
/Musoq.Parser/Lexing/LexerBase.cs
3.171875
3
using System; using System.Diagnostics; using System.Text.RegularExpressions; namespace Musoq.Parser.Lexing { /// <summary> /// Idea how to implement this piece of code where founded here: /// https://blogs.msdn.microsoft.com/drew/2009/12/31/a-simple-lexer-in-c-that-uses-regular-expressions/ /...
622df3416a41bde0ab5659820290012796a9d5f1
C#
jjermanis/aoc2019
/AoC2019/Day23.cs
2.984375
3
using System; using System.Collections.Generic; namespace AoC2019 { public class Day23 : DayBase, IDay { private const int NO_OUTPUT_VAL = -1498; private const int INTCODE_COUNT = 50; private const int NAT_ADDRESS = 255; private const int IDLE_PERIOD = 4000; private re...
25938c215480eb229dea651de51a86b4bdeacbc0
C#
rodya-mirov/Cow-Mouse
/CowMouse/CowMouse/CowMouseMapCell.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using TileEngine; using TileEngine.Utilities; namespace CowMouse { public class CowMouseMapCell : MapCell, Copyable<CowMouseMapCell> { public CowMouseMapCell(int baseTile, bool passable) : base(baseTile) ...
0acd07298df6de1c90fa600fcad44f3b12c22528
C#
RamiZuhairi/Leave_Managment
/leave-management/Repostitory/LeaveTypeRepostitory.cs
3.140625
3
using leave_management.Contracts; using leave_management.Data; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; /// <summary> /// this we will create class inside the Repository and /// /// // reason why we created this class is to define the 4 oprations (CRUD) that c...
052db5f66df7c3ac8e4550964a34955770b1b85b
C#
dblock/sncore
/Wilco.Web/Wilco.Web/UI/WebControls/WebParts/WebPartPanelMovedEvent.cs
2.6875
3
using System; namespace Wilco.Web.UI.WebControls.WebParts { /// <summary> /// Represents a method which handles the /// <see cref="Wilco.Web.UI.WebControls.WebParts.WebPartPanel.Moved"/> event. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public delegate void WebPartP...
44a91e1adb78dbe8ef4a27a123032a2f500b242c
C#
CapeKid/ShapeTester
/ShapeTesterServiceLayer/RectangleMathHelper.cs
3.375
3
using ShapeTesterServiceLayer.Interfaces; using ShapeTesterServiceLayer.SharedObjects; namespace ShapeTesterServiceLayer { /// <summary> /// Helper class to do math that c# libraries cannot /// </summary> public class RectangleMathHelper : IRectangleMathHelper { /// <summary> ...
06d29cc0879b34c8bbe5a35a642b2edb49ab7865
C#
Itamaram/bearded.monads
/src/Bearded.Monads/Tuple.cs
3.34375
3
using System; using System.Collections.Generic; #if NET40 #else namespace Bearded.Monads { public class Tuple<A, B> : IEquatable<Tuple<A, B>> { public A Item1 { get; set; } public B Item2 { get; set; } public Tuple(A a, B b) { Item1 = a; ...
e82a1163454cda5ec899d31839705b19b196727a
C#
MeGaDeTH91/SoftUni
/C# Fundamentals/C# OOP Basics/05. Abstraction/Lab/P02_PointInR/Rectangle.cs
3.25
3
using System; using System.Collections.Generic; using System.Text; public class Rectangle { public Point TopLeft { get; set; } public Point BotRight { get; set; } public Rectangle() { TopLeft = new Point(); BotRight = new Point(); } public bool Contains(Point point) { ...
56573f16fa2944a01ee3de6f1dd28b18d8f87bf2
C#
JST5000/TrinityAccord
/Assets/Scripts/Managers/EncounterManagers/EnemyData.cs
2.53125
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class EnemyData { private string enemyName; private int maxHP; private int currHP; private int lives; private int damage; private int maxTimer; private int currTimer; private st...
4e3cfc2fa79554d8104fdc344fa6875655d595e6
C#
krzpiec/Projekty
/SymulatorJazdy/GK_PROJ/Assets/Scripts/Maciek/RaceController.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace Maciek { public class RaceController : MonoBehaviour { public static event Action<string> OnSpecificFinished; public event Action OnBegan; [SerializeField] private RaceTrigger finis...
b3cf99978aa56bda743195a27b37fdcb638cfb5c
C#
alexfordc/zq
/InstitutionalTrading/Client/CltStrategy/GenerateCodes/CIndicatorClassMake.cs
2.546875
3
using System; using System.Collections.Generic; //using System.Linq; using System.Text; using System.IO; namespace com.cifco.zqstp.strategy.codegenerate { public class CIndicatorClassMake { public class CParameter { public CParameter(string strName, string strType, string strDefau...
753fd1551b3a2dc72f45e8ef121c17d5473275df
C#
Tobiijaware/ELibrary
/EBookLibraryApplication/EBookLibrary/EBookLibrary.DataAccess/DataSeed/SeederClasses/SeedUser.cs
2.84375
3
using EBookLibrary.Models; using Microsoft.AspNetCore.Identity; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EBookLibrary.DataAccess.DataSeed.SeederClasses { public static class SeedUser { ...
708a813d0f285b146ded3e8c6fe0e385577e01ee
C#
mathematica-mpr/sampler-api
/src/sampler-api/Helpers/Utils.cs
2.890625
3
using System.Reflection; namespace sampler_api.Helpers { public static class Utils { public static T Combine<T>(T A, T B) { foreach (PropertyInfo AProp in A.GetType().GetProperties()) { if (AProp.GetValue(A) == null) { ...
951ccff9fe114d63dc5277113d0f1849cc3913ee
C#
lucasmarques73/paralelos
/Faculdade/TP1/Projetos/login_acesso_2/login_acesso_2/conexao.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Data.SqlClient; namespace login_acesso_2 { class conexao { static SqlConnection con = null; public void conect() { string url...
1b5558f9d103ebdac5dfa3089dc9d00f88d699d7
C#
chameleonhead/vaccine-appointment-app
/src/VaccineAppointment.Web/Models/Mailing/EmailTemplate.cs
2.671875
3
using HandlebarsDotNet; using System; namespace VaccineAppointment.Web.Models.Mailing { public class EmailTemplate { public static EmailTemplate Default => new EmailTemplate(); public EmailTemplate() { Id = Guid.Empty.ToString(); TemplateName = "Unknown"; ...
8dc490de2c27b09c2847451efcd2d4e5ca19feaa
C#
juanmanuel102341/TraficUniverse_jms
/ProyectoTrafficUniverse/Assets/SCRIPT/ObtainLastNode.cs
2.75
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObtainLastNode : MonoBehaviour { // Use this for initialization void Start () { } public GameObject Obtain(){ GameObject []aLast=GameObject.FindGameObjectsWithTag("lastNode"); for(int i=0;i<aLast.Length;i++){ ...
c9f0b1084b72a96228e5d13a4f30782fb5c8fe33
C#
shendongnian/download4
/first_version_download2/29642-1540133-3059221-2.cs
3.53125
4
public static Boolean ObjectMatches(Object x, Object y) { if (x == null && y == null) return true; else if ((x == null && y != null) || (x != null && y == null)) return false; Type tx = x.GetType(); Type ty = y.GetType(); if (tx != ty) return false; ...
92a49fb97f9f2b2646610ab13b0a195a111a3b37
C#
creyke/hotchocolate
/src/Core/Types/Resolvers/CodeGeneration/CSharpCompiler.cs
2.609375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.Text; namespace HotChocolate.Resolvers { internal static class CSharpCompi...
8ca6dd7e49f0a1a0620118556819029c5ee3f92a
C#
ArkhangelskayaPD/HRManagementProject
/PersonalData.Repository.Model/BusinessObjects/IdentityDocument.cs
2.609375
3
using PersonalData.Repository.Model.Dictionary; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PersonalData.Repository.Model.BusinessObjects { /// <summary> /// Любой документ с номером /// </summary> public class Identity...
255b41b2844c1b8ea25a83a94e303326b59e6e2e
C#
g-megane/3DRunGame
/Assets/Scripts/UI/MainSceneUI.cs
2.65625
3
using UnityEngine; using UnityEngine.UI; /// <summary> /// メインシーンのUIを制御するクラス /// </summary> public class MainSceneUI : MonoBehaviour { /// <summary> /// ゲームデータを保有するScriptableObject /// </summary> [SerializeField, Header("GameDataのScriptableObject")] GameData gameData; /// <summary> /// コイ...
063ec1dc08d18f2d360c13daf3c715881850ced9
C#
tjames222/Minesweeper
/MinesweeperGUI/MinesweeperGUI/Level.cs
2.59375
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 MinesweeperGUI { public partial class Level : Form { public Level() { ...
a009b1df83251ad5c9fdcefdbf97192b25c16a5a
C#
stuartleaver/25-days-of-serverless
/12-caching/ChristmasCard.cs
2.546875
3
using System; using System.Threading.Tasks; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using StackExchange.Redis; using Markdig; using System.Net; using System.Net.Http; using System.Text; using Octokit; ...
f1bf98faa5713bab465bf9d3dfea3f5cb538437a
C#
mortenbakkedal/SharpMath
/SharpMath/Plotting/SpacePlotting/SurfacePlot.cs
2.609375
3
// SharpMath - C# Mathematical Library // Copyright (c) 2014 Morten Bakkedal // This code is published under the MIT License. using System; using System.Collections.Generic; using System.Globalization; using System.IO; using SharpMath.Plotting.Functions; namespace SharpMath.Plotting.SpacePlotting { [Se...
5bf877924fc1c4abb8831008e0d0e1a366d2643e
C#
Allupelaaja/TINNICALE
/Assets/Scripts/ScoreSystem.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ScoreSystem : MonoBehaviour { //Score system public Text scoreText; public int score; //Timer public float MaxTime = 300f; public int MaxTimerPoints = 1000; private int TimerPoints; private float...
274ff3b3cb64c13d44e5095fe0a64cb0d139da0c
C#
akovrigin/Life
/LifeHost/Sanctuary.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LifeHost { public static class Sanctuary { public struct Population { public int[,] Cells; public Player Player; public int OffsetX;...
0367bd56365ed0c006af27c4683571b7b585f883
C#
burkhartt/Workflow
/Seam/WorkflowSetup.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace Seam { public class WorkflowSetup<T> where T : WorkflowConfiguration, new() { private readonly Queue<Func<T, bool>> steps = new Queue<Func<T, bool>>(); public WorkflowSetup<T> Do(Func<T, bo...
f0ea003c6d1abe4ee63e054262d7427efa3d3537
C#
ThiebautAlexis/Bandimancho
/Assets/_Lucas/Lucas/UI/Scripts/LDJ_UIInventoryItem.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; public class LDJ_UIInventoryItem : MonoBehaviour { /* LJD_UIInventoryItem : * * [Description] * * Objectives : * • Core : * - * * • Polish : ...
c62f168a57627704a1c171cf5d73871209096483
C#
shendongnian/download4
/first_version_download2/583957-56250132-198206800-4.cs
2.625
3
HttpClient http = new HttpClient(); IDictionary<String, Int32> countrycounts = new Dictionary<String, Int32>(); string url = "https://restcountries.eu/rest/v2/all/"; HttpResponseMessage response = http.GetAsync(new Uri(url)).Result; string responseBody = response.Content.ReadAsStringAsync().Result; ...
0ff8188c12cd86ce3df7e89ab37806c8933ecb56
C#
andrei-bozhilov/Phone-Management-System
/PhoneManagementSystem.WebApi/Providers/ReturnMessageProvider.cs
2.734375
3
namespace PhoneManagementSystem.WebApi.Providers { using System; public static class ReturnMessageProvider { public static object SuccessEdit(object id, string modelName) { return new ReturnMessage() { Message = string.Format("Successfully edited {0}...
7427a845493b04ca6f6dc709d4cad1df62de0c6e
C#
dam6pl/csharp-shop
/ShopDN.Data/Models/Shop/Category.cs
2.734375
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace ShopDN.Data.Models.Shop { public class Category { [Key] public int Id { get; set; } ...
997a4fe7f4dad57e9912667fd8dd47db7bf9c924
C#
PARAS-SE/EmployeeManagement
/EmployeeManagement.WebApi/EmployeeManagement.WebApi/Services/IdentityService.cs
2.625
3
using EmployeeManagement.WebApi.Common; using EmployeeManagement.WebApi.IServices; using EmployeeManagement.WebApi.Models; using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Tokens; using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Sec...
92c74bbb56b88af49830609f1eb9ed59177db2e3
C#
nakklevaar/it-nordic-cs
/14/HomeWork14/ConsoleApp30/FileLogWriter.cs
2.984375
3
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace ConsoleApp30 { class FileLogWriter : LogWriterBase, IDisposable { StreamWriter _logFileWriter; private readonly string _fileName = "test.txt"; private static FileLogWriter initialize; ...
c0a48355d80aff3d7df0628bab8a08494a2ba917
C#
MarleneMayr/stonehenge
/Augmented Reality/Assets/Scripts/Bricks/RecipeBrick.cs
2.765625
3
//#define CONVERT using UnityEngine; namespace Bricks { [System.Serializable] public class RecipeBrick : IBrick { [SerializeField] private int identifier; public int GetID() { return identifier; } #if CONVERT [SerializeField] private Vector3[] coordinates; private Voxel[]...
44aa7fcf7f4033a740e1ab6475424a8776fa7c53
C#
abbefus/MobileDataUtility
/VegsysManager/Classes/DataReaderExtensions.cs
2.796875
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VegsysManager.Classes { public static class SqlDataReaderExtensions { public static Int32 SafeGetInt32(this SqlDataReader reader, ...
c0d1b6e9cabb577fcab865e775f0fb1b51b5f182
C#
villar35738/projetoToDoAndDid
/ToDoAndDid/IncluirTarefa.cs
2.875
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 ToDoAndDid { public partial class IncluirTarefa : Form { public IncluirTarefa(...
aa9c28b92819a733dde9611b676b93e542fc082e
C#
TarunPrajapat/WebApi_Assignment2
/AspNetWebApi/Controllers/ProductController.cs
2.578125
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using WebApiDay1.Models; using System.Text; using System.Net.Http; using System.Net.Http.Headers; namespace AspNetWebApi.Controllers { public class Produc...
0eb67e9ca6c065d2f44596b000a6a78654ba0965
C#
MatGalos/MusicShop
/MusicShopLibrary/Orders.cs
3.28125
3
using System; using System.Collections.Generic; using System.Text; namespace MusicShopLibrary { public class Orders { private readonly List<Order> ListOfOrders; int counter = 1; public Orders() { this.ListOfOrders = new List<Order>(); } ...
4319385b2728948f3d7d1ab7c696d4f868aecfcf
C#
arto0/Online-Ristinolla
/Nettiristinolla/FormAbout.cs
2.515625
3
using System; using System.Windows.Forms; namespace Nettiristinolla { /// <summary> /// Ohjelmasta tietoja kertova ikkuna. /// </summary> public partial class FormAbout : Form { public FormAbout() { InitializeComponent(); } public void asetaVersio(Strin...
1ad69cbe38fccf28a1ed895d2ac13d7eeb6fa537
C#
Huelsdonk/SmartToaster
/Utils/EventLogger.cs
3.265625
3
using System; using System.IO; namespace ToasterApi.Utils { public static class EventLogger { public static void Log(string message) { Console.WriteLine(message); using (StreamWriter w = File.AppendText("log.txt")) { WriteToLog(message, w); ...
d2557c33f950022064f88f89488c4fe8c64ba995
C#
Titwin/HexapodSimulator
/Assets/Scripts/DistanceScanner.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DistanceScanner : MonoBehaviour { public GameObject obstacle; [Range(1.0f, 25.0f)] public float distanceThreshold = 1.0f; public Transform[] sensors; // Set / get functions public void SetDistance(in...
44f7a65a72d8825fdb3197189cc4c8d185fcb096
C#
davidpccu/Asp.Net
/ExampleSln/ArrayExample/ArrayExample/index.aspx.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace ArrayExample { public partial class index : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { // 不知道傳遞參數的數量...
21ab14fd7adecfc9c6893c5337346087a87fdc3c
C#
xwyin/VRProjectDemo
/BaseUsable.cs
2.71875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace VRSim.Entities { public class BaseUsable : MonoBehaviour, IUsable { [Tooltip("Sets another game object to act as a parent to drive the current object's transformations. Defaults to self if left empty.")] ...
f52e169d96e5638de9c552c591bc6af6b6c98f68
C#
Da1337DoOD/PokerStrategy
/Services/PokerStrategy.Services.Data/ForumThreadService.cs
2.625
3
namespace PokerStrategy.Services.Data { using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using PokerStrategy.Data.Common.Repositories; using PokerStrategy.Data.Model...
ee6cb164386e2342b05d1112bc50e46e64302ac0
C#
Kalpens/PestControlMVC
/PestControlDll/Services/DestinationServiceGateway.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using GoogleMaps.LocationServices; using PestControlDll.Entities; namespace PestControlDll.Services { class DestinationServiceGateway : AbstractPestcontrolServiceGateway, ISer...
7a13780f667a4107acf0f2210c1110cabc00136d
C#
MiraiSeikou/Oscan-Web-Template
/OScanWeb-master/ProjetoBT2018-1/Models/Repositorios/ApiRepositorio.cs
2.734375
3
using Newtonsoft.Json; using ProjetoBT2018_1.Models.Dominio; using System.Collections.Generic; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; namespace ProjetoBT2018_1.Models.Repositorios { public class ApiRepositorio { HttpClient client; ...