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
4d9988e60458f3e3e59222671588915397b2b1eb
C#
AIEYear1/IntroToCSharpAssessment
/FirstConsoleProgram/RaylibWindow/Input.cs
3.21875
3
using Raylib_cs; using System; using static Raylib_cs.Raylib; namespace RaylibWindowNamespace { /// <summary> /// Gets player input /// </summary> public class Input { /// <summary> /// Resets the floats to limit launching the player at the start /// </summary> publ...
5b9738d3970e9e72a068e39a5cb33fd66d34530a
C#
poikoak/3
/10/ConsoleAppAnalizer/ConsoleAppAnalizer/Program.cs
2.984375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Xml.Serialization; namespace ConsoleAppAnalizer { [Serializable] class Program { sta...
43a89a780d0d371cee16fe371e12b71aafc3cf9d
C#
SosoTughushi/TomTom.Useful
/TomTom.Useful/TomTom.Useful.Repositories.Mongo.IntegrationTests/DynamicMongoRepositoryTests.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using TomTom.Useful.Repositories.Abstractions; using Microsoft.Extensions.DependencyInjection; using System.Linq; using Xunit; namespace TomTom.Useful.Repositories.Mongo.IntegrationTests { public class DynamicMongoRep...
5c3474704fbcd92987ff2953a4082b4ade2f50ca
C#
PimentelM/CrystalBot
/ClassicBotter/Objects/Container.cs
3.03125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CrystalBot.Objects { public class Container { private uint address; private byte number; public Container(uint address, byte number) { this.address = addre...
57aa1c8790f755fa762682d67b1124e1c83ffb12
C#
ReisEdgar/mobileGame
/Mario/Assets/Scoore_script.cs
2.640625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Scoore_script : MonoBehaviour { //-----DESCRIPTION-------- // Scoore displaying Rigidbody2D rigidbody; const float RenderTimer = 0.7f; // Amount of time scoore will be visible public ...
39c6ffbbda482e2a3a4aa9fb6a571c0ad80973e6
C#
AtsushiYamashita/UnityLibs
/Assets/BasicExtends/CS/Test/MessengerTest.cs
2.703125
3
using BasicExtends; public class MessengerTest: TestComponent { public string SetTest () { var msg = new Msg() .Set("test", "a") .Set("To", "b"); if (msg.TryGet("test") != "a") { return "正しくセットできていません"; } if (msg.TryGet("To") != "b") { return "正しくセットできていません"; } ...
eb9bc4490dff15927cfc70f275b25456f9fb6568
C#
radomirKrastev/OOP
/Test Driven Development/INStock - Skeleton/INStock/Models/Product.cs
3.40625
3
namespace INStock.Models { using Contracts; public class Product : IProduct { public Product(string label, decimal price, int quantity) { this.Label = label; this.Price = price; this.Quantity = quantity; } public string Label { get; } ...
13286d377c73a8c66713ac650e0f34068335f984
C#
nsswebservices/Nest-Searchify
/src/Nest.Searchify/Extensions/StringExtensions.cs
2.78125
3
using System; using System.Net; using Nest.Searchify.Abstractions; using Nest.Searchify.Queries; namespace Nest.Searchify.Extensions { public static class StringExtensions { public static string ToUrl(this string input) { return WebUtility.UrlEncode(input.Replace(" ", "-").ToLowerI...
1c7e4dcc474214b2d4d7f9678d4cb9f31746d68f
C#
akvgergo/PoeTrade
/Filtering/FilterComp/TypeFilter.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PoeTrade.Filtering { /// <summary> /// Represents the basic stats of an item. /// </summary> [QueryComponent("type_filters")] public class TypeFilter : IFilterComponen...
474ee1c7906eea6e0fa7e93d4764de92a2a8939a
C#
khushalkhan83/AAA-Indie-RPG
/Assets/Malbers Animations/Common/Scripts/UI/ValueToString.cs
2.765625
3
using UnityEngine; using MalbersAnimations.Events; namespace MalbersAnimations.Utilities { /// <summary>Converts a value to string </summary> [AddComponentMenu("Malbers/UI/Value to String")] public class ValueToString : MonoBehaviour { public int FloatDecimals = 2; public string Prefix...
88ff3c71f5896cb3669db42c0b9fe5713efc1113
C#
chabiche/ProjetInfoS2
/ProjetInfoS2/ProjetInfoS2/Occupation.cs
2.921875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProjetInfoS2 { class Occupation { private DateTime dateDebutOccupee; public DateTime DateDebutOccupee { get { return dateDebutOccupee; } private set { dateDebutOccup...
96271d5ef1d970d4843eae3da251c38657bd6b02
C#
moeh1234/CRAZeCards
/CRAZeCards/Models/MonthRepository.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace CRAZeCards.Models { public class MonthRepository { private CrazEcardsEntities entity; public MonthRepository() { entity = new CrazEcardsEntities(); } public Month...
6d14ebea5fd849c0dbae369334b934c50280faca
C#
5l1v3r1/CoopSharp
/CoopSharp/CoopSharp.Demo/Program.cs
2.515625
3
using System; using System.Linq; using System.Threading.Tasks; using CoopSharp.Demo.Common; using CoopSharp.Models; namespace CoopSharp.Demo { internal class Program { private static void Main(string[] args) { AsyncMain().GetAwaiter().GetResult(); } private static async Task...
fe3294c213e0dfe4c0492ee585f62f0b16f14abe
C#
saveenr/VisioAutomation
/VisioAutomation_2010/VisioAutomation.Models/Layouts/Box/Box.cs
2.984375
3
using System.Collections.Generic; namespace VisioAutomation.Models.Layouts.Box { public class Box : Node { public Box(double w, double h) : this(new VisioAutomation.Core.Size(w, h) ) { } protected Box(VisioAutomation.Core.Size s) { t...
712f5c0c72e149fa9a0d222f595aead0dc39b68e
C#
ctsxamarintraining/cts451892
/Day6_assignments/collectionquest_4/collectionquest_4/Program.cs
3.515625
4
using System; using System.Collections.Generic; namespace collectionquest_4 { class MainClass { public static void Main (string[] args) { /* List Operations */ List<int> list = new List<int>(); list.Add (1); list.Add (2); list.Add (3); list.Remove (1); list.Insert (0, 20); Console....
b28b9f1e69dbdf5c2643154ec8d19d6a15505473
C#
tukhoi/CurrencyConverter
/CC.AppServices/RateFetcher/RateFetcherManager.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CC.AppServices.RateFetcher { public class RateFetcherManager { private static IDictionary<Provider, IExchangeRateFetcher> _store; static RateFetcherManager() {...
39d34af33bddde0a5f2d912b2b34ac3217fb7548
C#
SlimmyJ/ComputerShopForm
/ComputerShopForm/GamingPc.cs
3.015625
3
namespace ComputerShopForm { public class GamingPc : Computer { public string Gpu { get; set; } public Performance RgbPerformance { get; set; } public bool CanPlayFortniteOnHigh { get; set; } public GamingPc(int id, string name, double price, string imagepath, string summary,...
fa6994d86953c4cb974ff2a0f2e887985b54c09d
C#
shendongnian/download4
/latest_version_download2/60946-11060729-146298684-10.cs
3.21875
3
public partial class YourClass { private ManualResetEvent _serviceObjectWaitHandle = new ManualResetEvent(false); private dynamic _serviceObject; private void Store(dynamic serviceObject) { _serviceObject = serviceObject; //If you need to do some ...
a4a976aecb3d5f8f8ae9f78cbe3133245bb27f64
C#
vardars/EFPatterns
/sourceCode/efpatterns/Main/EntityFramework.Patterns/Decorators/AuditableRepository.cs
2.765625
3
using System; using System.Threading; using EntityFramework.Patterns.Extensions; namespace EntityFramework.Patterns.Decorators { public class AuditableRepository<T> : RepositoryDecoratorBase<T> where T : class { public AuditableRepository(IRepository<T> surrogate) : base(surrogate) { } ...
a3e460aabf4a46ad98d24381576efc3b3aacafff
C#
jonkeda/Tooling
/Tooling.Foundation/Extensions/PointTransform.cs
2.8125
3
using System.Drawing; using System.Windows; using System.Windows.Media; using Point = System.Windows.Point; namespace Tooling.Extensions { public static class PointTransform { private static bool _initialized; public static Matrix TransformFromDevice { get; private set; } public static...
842a106d962ab562f3ada14a9589df5e3b11d264
C#
PaulMcPhee79/SparrowXNA
/SparrowXNA/SPListenerStrong.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SparrowXNA { internal class SPListenerStrong : SPListener { public Action<SPEvent> Action { get; private set; } public SPListenerStrong(Action<SPEvent> handler) { Action = handle...
a16eb268f78b1b899ab63771e9e51686a852077f
C#
cmckechney/countwords
/countwords/Program.cs
3.703125
4
using System; using System.IO; using System.Linq; using System.Text.RegularExpressions; namespace countwords { internal class Program { private static void Main(string[] args) { // Get the file's text. string txt = File.ReadAllText(args[0]); // Use regular ...
8688c56fc098488bb1b37ace47573a02a28116d8
C#
kaushik-rohit/code2seq
/rawdata/C#/snippets/857.cs
2.96875
3
private static List<CategoryInfo> GetCategoryTree(int parentid, List<CategoryInfo> listcate, int level) { var listAll = _categories;//这里面从内存读数据,所以不会遍历查库,暂时查库,要不他会将遍历后的值传给_categories if (listAll.FindAll(c => !string.IsNullOrEmpty(c.TreeChar)).Count>0) { _categories = Datab...
2c6dfd1e7c751d76a82c4e8df41e7234fb268aaa
C#
KondratievFIT/Laba-2
/Завдання3/Завдання3/Program.cs
3.515625
4
using System; namespace Завдання3 { class Book { static public void Show() { Title.Show(); Author.Show(); Content.Show(); } } class Title { static public string _title; public string title { get ...
2145d632c484c6db7e2bf0754d33e0eb8f296f03
C#
StJohnSchruben/MageKnight
/ReDefNet/ContractAnnotationAttribute.cs
2.984375
3
 using System; namespace JetBrains.Annotations { /// <summary> /// A ReSharper annotation attribute that aids in code analysis. See ReSharper code annotation documentation for details. /// </summary> [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] internal class ContractAnnotation...
c537bd186edb401cb24152a199783aa44c7fb337
C#
Jaibean/Basic-C-Sharp-Projects
/DateTime/DateTime/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.IO; namespace DateTimeAssignment { class Program { static void Main(string[] args) { Console.WriteLine(DateTime.Now); Console.ReadLine(); Console.WriteLine("Pick a ...
726681103bcda2b8edeeddb7243c6eecb2b71078
C#
eliasfpaiva/Trabalhos_PUC
/Escola de Férias/LinQ/LinQ-Ex1/LinQ-Ex1/Program.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LinQ_Ex1 { class Program { static void Main(string[] args) { //int[] Vetor = { 98, 45, 67, 23, 18, 90, 58, 30, 26, 72 }; //foreach (int n in Ve...
e923b9ac9a3d136970b99b5979de21ff717f0cc8
C#
marcwittke/DockerComposeVs15Bug
/src/WebApplication5.Domain/Class1.cs
3.125
3
using System; using System.Data.SqlClient; namespace WebApplication5.Domain { using System.Collections.Generic; using System.Data; public class Class1 { public string[] GetDatabases(string masterConnectionString) { List<string> databases = new List<string>(); ...
f2949e7c740ce4c20fe961fe90a906c21958018b
C#
panda926/BBMessenger
/ChatEngine/VideoInfo.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace ChatEngine { public class VideoInfo : BaseInfo { public string UserId = ""; // 20 public int IsEnd = 0; public byte[] Data = null; public byte[] ImgData = null; ...
5f86359410abfc0541f52dda2e43f60a317f9295
C#
llenroc/leetcodeScraper
/problems/cs/112.cs
3.71875
4
// Url:https://leetcode.com/problems/path-sum /* 112. Path Sum Easy Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. Note:&#xA0;A leaf is a node with no children. Example: Given the below binary tree and sum = 22, ...
fdc4fe52018549f21b36b224c56f790d3912d6e2
C#
diazg/runniac
/Runniac.ExternalDataExtraction/IMultiExtractor.cs
2.859375
3
using Runniac.Data; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Runniac.ExternalDataExtraction { public interface IMultiExtractor { /// <summary> /// Añade una estrategia a la extracción de eventos. U...
9190db54ef0b935b232889fce34206193570c7fe
C#
czAksay/KS-MVVM-Chat
/ClientServerChat/ChatServer/Program.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ClientServerLib.ClientAndServer; using ClientServerLib.Common; using SettingsAP; namespace ChatServer { class Program { static void Main(string[] args) { try ...
27ae31fe379ba6d233572d1bbe8231d8ff1c913d
C#
MacSquiggles/XMLWeatherTemplate-new
/XMLWeather/Forms and User Controls/MainMenu.cs
3.359375
3
/*Program by Quigley a weather "app" using xml files created April 28th 2016 */ using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net; using System.Xml; namespace...
77b4087a75205c07dbc2155e95ad420c0c7079c7
C#
mcseba/MasterMind
/MasterMind/GameEngine.cs
3.578125
4
using System; using System.Collections.Generic; using System.Text; namespace MasterMind { class GameEngine { /// <summary> /// This field holds the code. /// </summary> private char[] code = new char[4]; /// <summary> /// This field keeps player guess. ...
2bdfbdb76bc8878ae10644ace7ff34f8bcabf7cd
C#
Gdyku/WebApi
/Logic/UserLogic.cs
2.90625
3
using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Models; using WebApi.DTOModels; using AutoMapper; using WebApi.Interfaces; using System.Linq; using System.Threading; using System; namespace WebApi.Logic { public class UserLogic : IUserLogic { ...
7618c35c9b286504efd01da6a94a0ecbfadabd4e
C#
Pregum/20180319Sample
/FoodInfoWindow.xaml.cs
2.703125
3
using System; using System.Collections.ObjectModel; using System.Windows; using System.Windows.Controls; using System.Windows.Media.Imaging; using UserControl = System.Windows.Controls.UserControl; namespace _20180319Sample { /// <summary> /// UserControl2.xaml の相互作用ロジック /// </summary> public partial ...
4dcadbe78597823a31adc4edf379b3d46dda058c
C#
ShadowMinhja/FBClone
/FBClone.Service/Guestcards/QuestionResponseSetService.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using FBClone.Data; using FBClone.Data.Infrastructure; using FBClone.Data.Repositories; using FBClone.Model; using System.Linq.Expressions; using FBClone.Service.Common; namespace FBClone.Service { public interface IQuestionResponseSetService ...
27f9f955dcb154b9f5eb02e68fafbcd4c7f8525f
C#
speedhans/ProjectCasual
/Assets/Project/Scripts/BehaviorTree/Node/ActionNode/GlobalTimeCheckNode.cs
2.71875
3
using System; using System.Collections.Generic; using UnityEngine; public class GlobalTimeCheckNode : ActionNode { public enum E_COMPARE { LESS, LEQUAL, EQUAL, GEQUAL, GREATE, } [Serializable] public struct S_COMPARE { public int day; pu...
603c8ff9f89db9d44eeee6fed2d47a162e68b879
C#
rafalohaki/SoftUni
/Technology-Fundamentals-C#/Associative-Arrays/Exercise/Count Chars in a String/Program.cs
3.625
4
using System; using System.Collections.Generic; using System.Linq; namespace Count_Chars_in_a_String { class Program { static void Main(string[] args) { var text = Console.ReadLine().Where(x=>x!=' ').ToArray(); Dictionary<char, int> dic = new Dictionary<char, int>(); ...
d747982ba9f733ed29ef5aafbac82a457ead2051
C#
Epi-Info/Epi-Info-Community-Edition
/Epi.Data.SqlServer/SqlDatabase.cs
2.65625
3
using System; using System.Data.SqlClient; using System.IO; using System.Xml; using Epi.Collections; using System.Collections.Generic; using System.Data.Common; using System.Data; using System.Collections; using System.Text; using System.Text.RegularExpressions; namespace Epi.Data.SqlServer { /// <su...
a51d0aca27fbf459a6741a9ab6f1f5d242192857
C#
sdgeorge/DirectoryComparer
/DirectoryComparer/Models/FileDetails.cs
3.203125
3
using System; using System.IO; namespace DirectoryComparer.Models { public class FileDetails { public string Name { get; set; } public string Hash { get; set; } public string Extension { get; set; } public string Directory { get; set; } public string AbsolutePath { get;...
9f93eebb80b428f12c5512e47197fc64b4df4773
C#
tezeoffor/BlogApplication
/Data/Repository/Repository.cs
3
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BlogApplication.Models; using BlogApplication.Models.Comments; using Microsoft.EntityFrameworkCore; namespace BlogApplication.Data.Repository { public class Repository : IRepository...
495fe1ac353afa9fd93a54b7313db6cc0dafb99f
C#
DogeKun/BA-IT-Challange
/BA IT challange/baTask3/baTask3/TextOutput.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Globalization; namespace baTask3 { class TextOutput { List<string> dataOutput; private int MAX_CHILD_COUNT = 0; private int MIN_CHILD_COUNT = 9999; ...
3fbf8e08ae6f5fa636d7fa554169a89ebe05e9dd
C#
fourtf/chatterino
/Chatterino.Common/Emojis.cs
2.8125
3
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Chatterino.Common { public static class Emojis { static Regex findShortCodes = new ...
b2200652c9e0dca82da03c14cd8aceb3ed10b403
C#
TrickyCat/lens
/Lens/SyntaxTree/NodeBase.cs
2.515625
3
using System; using System.Collections.Generic; using System.Diagnostics; using Lens.Compiler; using Lens.Translations; using Lens.Utils; namespace Lens.SyntaxTree { /// <summary> /// The base class for all syntax tree nodes. /// </summary> internal abstract class NodeBase : LocationEntity { /// <summary> //...
95b3240e501af116c55bbbfbfeeb8fabedae51b5
C#
shendongnian/download4
/code2/209332-4039200-8494700-4.cs
3.4375
3
void func1(List<something> arg) { Type t = typeof(something); } void func2<T>(List<T> arg) { Type t = typeof(T); } void func3(object arg) { // assuming arg is a List<T> Type t = arg.GetType().GetGenericArguments()[0]; } void func4(object ...
c375cc8c00ed019a66e258137d9c2d9236aab511
C#
ExtemtedGold1/zadania01.04
/seq1/Program.cs
3.390625
3
using System; namespace seq1 { class Program { static void Main() { sbyte n1 = sbyte.Parse(Console.ReadLine()); string input = Console.ReadLine(); sbyte[] numbers1 = Array.ConvertAll<string, sbyte>(input.Split(" "), sbyte.Parse); sbyte n2 = sbyte.P...
4a4e19490136c0a156ae9a9729b516dca09ba270
C#
Chewieez/Bangazon-Command-Line-Application
/bangazon-cli/Data/DatabaseInterface.cs
3.546875
4
using System; using Microsoft.Data.Sqlite; namespace bangazon_cli { /* Author: Dre Randaci Purpose: Methods to access SQL data in a locally saved database file To allow for both a development and testing database, the constructor requires a database path. Example access method: pu...
6e59805d9da6b350a05109f950af61afda1d8df3
C#
tflynt91/TcpDirectorySyncronizer
/TCPSharpFileSync/LocalWorks/FileWorks/Filer.cs
3.109375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TCPSharpFileSync { public class Filer { public string rootPath { get; private set; } private List<string> filePathes; private List<string> rela...
a0ad94b0a62667ecabc4e53b75fc62a6d5b54759
C#
itplamen/Telerik-Academy
/Programming with C#/1. C# Fundamentals I/6.Loops/09-10.CatalanNumbers/CatalanNumbers.cs
4.15625
4
//9.In the combinatorial mathematics, the Catalan numbers are calculated by the following formula: // (2*n)! / (n + 1)! * n! //10.Write a program to calculate the Nth Catalan number by given N. using System; class CatalanNumbers { static void Main(string[] args) { Console.Write("Enter N: "); d...
9dd8fef78df3e2ddeb60012d3838ed3de5b27c87
C#
noc7c9/code-red-II
/Assets/Game/Scripts/World/RoomGenerator.cs
2.8125
3
using System.Collections.Generic; using UnityEngine; namespace Noc7c9.TheDigitalFrontier { /* The class responsible for the generation of randomized rooms, given a set * of parameters. */ public static class RoomGenerator { // variables for one generation of a room // static so tha...
4f1471c320a282842d9df57dbe74a0b1d97fa887
C#
ClausJohansen/XamarinImageConverter
/ImageConverter/Entities/ImageConversion.cs
2.859375
3
using ImageConverter.Enms; using System.IO; namespace ImageConverter.Entities { /// <summary> /// Entity class: Holds information about a single image in the processing queue. /// </summary> public class ImageConversion { public FileInfo SourceFile { get; } public string...
697ad9f5948f5b2a0dab6da83b9a3d1cdff697e3
C#
shendongnian/download4
/code10/1815184-53482646-186588358-4.cs
3.25
3
public static IEnumerable<CostCenter> TakeWhileAndOneAfter (IEnumerable<CostCenter> source, DateTime splitDate ) { DateTime? earliestDate = null; bool earliestFound = false; foreach (CostCenter element in source) { if (!earliestFound && !(element.start > split...
57b292505741685e2cf6fa6c4fc16adf2b57cd41
C#
dncep/Woofer
/Woofer/Systems/Physics/CollisionBoxConverter.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using EntityComponentSystem.Components; using EntityComponentSystem.ComponentSystems; using EntityComponentSystem.Entities; using EntityComponentSystem.Events; using EntityComponentSystem.Saves.Json; usi...
fc1affb4be1341f0e5df475799c0cda330d0a7e8
C#
ssjogedal/Contemporary_Software_Development_Lab2
/Contemporary_Software_Dev_Lab2_V3/Contemporary_Software_Dev_Lab2/Circle.cs
3.875
4
using System; namespace Contemporary_Software_Dev_Lab2 { // Circle class inherits from Shape class with the additional attribute "Radious", used to calculate Area. public class Circle : Shape { double Radious { get; set; } // Radious is calculated by dividing the circles circumferenc...
47df4dd5ed1d696ff49d29b06e0052254afcadb5
C#
ghostmanexp/octalforty-brushie
/octalforty.Brushie.Text/Authoring/Textile/TextileAuthoringEngine.cs
3.015625
3
using System; using octalforty.Brushie.Text.Authoring.Dom; namespace octalforty.Brushie.Text.Authoring.Textile { /// <summary> /// Authoring engine which parses Textile markup. /// </summary> /// <remarks> /// Textile Quick Reference is available at http://hobix.com/textile/quick.html. ...
675d60aa95be628f87842320a4311f2d5ebbdb0e
C#
Tommysvarva/get-academy-stuff
/C-sharp-objectorientering/C-sharp-objectorientering/Place.cs
3.609375
4
namespace C_sharp_objectorientering { class Place { public string PlaceName { get; private set; } public string Municipality { get; private set; } public string Region { get; private set; } public Place(string placeName, string municipality, string region) { ...
1b614b0bd6040f47fd041fd4958a2fd6b902588f
C#
ggrachdev/TDD_lessons
/003_Тестирование с использованием Mock/Mocks/013_EventRelatedTests/Presenter.cs
2.5625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _013_EventRelatedTests { class Presenter { IModel model = null; IView window = null; public Presenter(IView window, IModel model) { ...
3c5049f6ae66876d03ccc88416ef23c24f974087
C#
Nonobis/SimpleExtension
/test/SimpleExtension.Core.Tests/UrlExtensionsTest.cs
2.8125
3
using System.Threading.Tasks; using Xunit; namespace SimpleExtension.Core.Tests { /// <summary> /// Unit Test on Url Extensions /// </summary> public class UrlExtensionsTest { /// <summary>When get server certificate asynchronous is returned asynchronous.</summary> /// <param name=...
b3595efe58718530c373e1ae4b0b4202f889c9cd
C#
c-rblake/Personalregister
/Employee.cs
3.546875
4
namespace Personalregister { public class Employee { //public List<string> names = new(); //STATE, inte bra Public Field. //public List<float> salaries = new(); // List<float> salaries = new(); NOT ACCESSIBLE, default is private public string Name { get; } // Set with construct...
6a080ec0f8b5549b1aab83900209cfb859bcd82f
C#
hockeygoalie78/ktaneDaylightDirections
/Assets/Scripts/DaylightDirections.cs
2.546875
3
using System; using System.Collections; using System.Linq; using UnityEngine; using KModkit; using Random = UnityEngine.Random; /// <summary> /// Module made by hockeygoalie78 /// Based on the condition of the bomb and the day, determine which way to travel. /// </summary> public class DaylightDirections : ...
d27a3633e500508584c71c8091adf777217f5382
C#
yudaitomida/CESA2019
/PlanetCleaner/Assets/script/CreateCube/InHole.cs
2.515625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class InHole : MonoBehaviour { public int speed; [SerializeField] GameObject Target; bool ThroughCollider; float time; int player_state; // Start is called before the first frame update void Start()...
1f2e034044789a2898ac4d7b4c9e0a2f95e844ce
C#
rdgnunes/Vimaponto-Avaliacao
/VimapontoTest.Controller/Data/TipoData.cs
2.640625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using VimapontoTest.Model; using System.Data; using System.Data.SqlClient; namespace VimapontoTest.Controller.Data { public class TipoData : AppGlobal { public List<Tipo> ListarTodos() ...
7e86fec6ea02f14d544bd89badee0d0c036c9831
C#
Amatsugu/Sandbox
/FakkuMetaScraper/Models/EntryInfo.cs
2.59375
3
using Flurl; using Superpower; using Superpower.Parsers; using Superpower.Tokenizers; using System.Text; namespace FakkuMetaScraper.Models; public class EntryInfo { public string Filepath { get; } public List<string> Tags { get; set; } = new List<string>(); public string Name { get; } public string Arti...
f5e77adf4c3fccbd50776e208da5c81a31a817eb
C#
anushrostomyan/BestBuyProject
/BusinessLayer/Entity/Branch.cs
2.765625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using DataAccessLayer.DataAccess; using BusinessLayer.Enums; namespace BusinessLayer.Entity { public class Branch { public int? ID { get; private set; } public double? X_Coordinate { get; private s...
f8e247c9f0b9f66a466ce705faa913f32c18275a
C#
christinebittle/crud_essentials
/HTTP5101_School_System/NewStudent.aspx.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace HTTP5101_School_System { public partial class NewStudent : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { }...
0902a631bc8130b395021494abe28ce237c51f25
C#
SCCapstone/RogueGames
/Assets/Scripts/Menu and UI/Health.cs
2.59375
3
using UnityEngine; using UnityEngine.UI; public class Health : MonoBehaviour { public int health; public int numberOfHearts; public bool audioHasPlayed; public Image[] hearts; public Sprite fullHeart; public Sprite emptyHeart; public GameObject deathPopUp; public GameObject pauseCV; public AudioSou...
08dfb596782eef4cb50bf758cd4e7dea3914bb68
C#
Olverine/Xamarin-space-game
/App1/Vector.cs
2.890625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; namespace App1 { public class Vector { public float x; public float y; pub...
8a540345f26647a8e004911cd63ef51d1209914e
C#
dkasavetova/TelerikAcademy
/1.Programming/3.OOP/1.Defining-Classes-Part-I/DefiningClassesPartOne/GSMTestApp/GSMTest.cs
2.765625
3
using System; class GSMTest { static void Main() { GSM[] gsmArray = new GSM[4] { new GSM("Galaxy S3", "Samsung"), new GSM("Lumia 620", "Nokia", 324M), new GSM("Z10", "Blackberry", 869.70M, "John Doe", new Battery("bbb", 312, 10, BatteryType.LiIon), null), ...
1c5d5a2083ad90d49297d8077117736cfb37e3c9
C#
MahmoudSabra1/MonsterGo-VR-game
/Assets/DataFiles/Scripts/RandomForest.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RandomForest : MonoBehaviour { public GameObject[] trees; public GameObject[] rockgrass; void Start() { for (int i = 0; i < Random.Range(700, 800); i++) { treecount(); } ...
00c8b20903a79301173cf0be62966c6a9b068e40
C#
RobThree/EF_Stringlength_Bug
/EF_Stringlength_Bug/Customer.cs
2.65625
3
using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; namespace EF_Stringlength_Bug { [Index(nameof(CustomerRecord.Name), IsUnique = true)] public record CustomerRecord( int Id, [MaxLength(50)] //[StringLength(50)] string Name ); [Index(name...
bf497c2bece2948e7aa3536babb46ef0f5355e7a
C#
student195756/technologie-programowania
/zadanie1/zadanie1/BazaDanych.cs
2.578125
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace zadanie1 { [Serializable()] public class BazaDanych : ISerializable { public List<Klient> wykazKli...
cb39aa19ddd5bab73327f0db1aa02e1aa73b215f
C#
hasanfurkanfidan/UdemySignalR
/UdemySignalR.Server/Hubs/MyHub.cs
2.625
3
using Microsoft.AspNetCore.SignalR; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace UdemySignalR.Server.Hubs { public class MyHub:Hub { public static List<string> Names { get; set; } = new List<string>(); //static olması lazım çünkü he...
f991f2d01afd08add8d226beca0fceb4718019d1
C#
lukaselmer/student-thesis-flip
/code/tags/20111223_SP7_snapshot/ProjectFlip/ProjectFlip.Services.Interfaces/IProjectNote.cs
2.640625
3
#region using System; using System.Collections.Generic; using System.Windows.Documents; using System.Windows.Media.Imaging; #endregion namespace ProjectFlip.Services.Interfaces { /// <summary> /// Interface for a project note. A project note is a project reference /// for realized projects. ...
6700aee7dff723da5714d7bdd2384ba541eda0f0
C#
longptal/Intern.FPT.ESHOP
/sourceC# - Visual Studio/Workspaces/ESHOP/EShop/EModels/Country.cs
2.71875
3
using EShop.Entities; using System; using System.Collections.Generic; namespace EShop.Models { public partial class Country : Base { public Country (CountryEntity CountryEntity) : base(CountryEntity) { if (CountryEntity.CityEntities != null) { this.Cities = new...
72fccc6ee8f63b1f57a7e3c268822ffc65dbb60d
C#
ivanandriska/PNBTest
/CaseBusiness/Framework/Mail/Processo/Email.cs
2.796875
3
using System; using System.Collections.Generic; using System.Text; using System.Net.Mail; using System.Net; using System.IO; using System.Collections; using CaseBusiness.Framework.Mail.Entidade; using System.Threading; namespace CaseBusiness.Framework.Mail.Processo { public class Email { SmtpClient sm...
60e9e020e744e5ee6e4143ef8d86bf1f3bc73c79
C#
wightzhang/SalaryPayment
/SalaryPayment/SalesReceiptTransaction.cs
3.109375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SalaryPayment { public class SalesReceiptTransaction:Transaction { private readonly DateTime date; private readonly double amount; private readonly int empId; public SalesReceiptTra...
dacd535b9cbdecd4357a5583092845b74d82bc29
C#
cvakarna/servicebus_issue
/ServicebusSample/Program.cs
2.75
3
using Azure.Messaging.ServiceBus; using System; using System.Threading; using System.Threading.Tasks; namespace ServicebusSample { class Program { static async Task Main(string[] args) { Program p = new Program(); Console.WriteLine("Hello World!"); using var...
0bf35781adef73785465eea4adb8a035e3718283
C#
JasonBSteele/Alexa-Smart-Home
/RKon.Alexa.NET/JsonObjects/CameraStream.cs
2.71875
3
using Newtonsoft.Json; using RKon.Alexa.NET.Types; namespace RKon.Alexa.NET.JsonObjects { /// <summary> /// Camera stream for an endpoint. /// </summary> public class CameraStream { /// <summary> /// Protocol for the stream such as RTSP /// </summary> [JsonProperty(...
696a8b9a6d523e99167385220b31ae798e7fbe20
C#
AlexWanderer/Reborn-Stealer-2021-SOURCE
/Reborn/Global/Zip/Zip.Shared/ZipFile.AddUpdate.cs
2.5625
3
using System; using System.IO; using System.Collections.Generic; namespace Ionic.Zip { public partial class ZipFile { public ZipEntry AddFile(string fileName, String directoryPathInArchive) { string nameInArchive = ZipEntry.NameInArchive(fileName, directoryPathInArchive); ...
3abfa2f00a89ba4e0dbb5ae164cfefafc7dad35c
C#
xardison/DAL.NH
/src/DAL.NH/Extensions/StringExtension.cs
2.609375
3
namespace DAL.NH.Extensions { internal static class StringExtension { public static string ReplaceStr(this string text, string oldValue, string newValue) { return text == null ? null : text.Replace(oldValue, newValue); } } }
83e909f97377518505859c3c8a566cd783795021
C#
maayanAn/mnoRecipies
/Recepies/Recepies/Migrations/Configuration.cs
2.640625
3
using Recepies.Models; using System.Collections.Generic; using System.Data.Entity.Migrations; using System.Linq; namespace Recepies.Migrations { internal sealed class Configuration : DbMigrationsConfiguration<DbContext> { public Configuration() { AutomaticMigrationsEnabled = true; ...
2322bfbc3eb40a16b8860d821832007383c23583
C#
adf789/Last_Survivor
/Assets/02.Scripts/Monster/csStateMachine.cs
3.046875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class csStateMachine <T>{ private T monster; private csFSMstate<T> curState; private csFSMstate<T> prevState; void Awake(){ curState = null; prevState = null; } // 현재 상태 변경 public void ChangeState(csFSMstate<T> newState...
6d347e68291381dc8437e622ce006d081bd192d1
C#
AdrienTorris/Annihilation
/Annihilation/Config/Value.cs
2.9375
3
using System.Runtime.InteropServices; namespace Annihilation { public enum ValueType : byte { Unknown, Uint8, Uint16, Uint32, Uint64, Int8, Int16, Int32, Int64, Float, Double, Bool, String } [Struc...
c57bde67d8b292e17738440b0af394ce45beef96
C#
jslicer/elasticsearch-net
/src/Tests/ClientConcepts/HighLevel/Serialization/CustomSerialization.doc.cs
2.53125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using Elasticsearch.Net; using Nest; using Nest.JsonNetSerializer; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace Tests.ClientConcepts.HighLevel.Serializatio...
3888f6c3e85fc69776db0cbf4c2d66c9ecafc393
C#
SurgicalSteel/Competitive-Programming
/Kattis-Solutions/Accounting.cs
3.203125
3
using System; using System.Collections.Generic; namespace Accounting { class Program { static void Main(string[] args) { int np,nq,p,m; string action; string[] arr = Console.ReadLine().Split(" "); np = int.Parse(arr[0]); nq = int.Parse...
6e62fdf81ca3c54f62d7d02ae27029f662db6a0f
C#
ACubed/1HP-Dungeon
/Assets/Scripts/Player/Movement.cs
2.8125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Movement : MonoBehaviour{ [Header("Components")] [SerializeField] private Rigidbody2D rb2d; //the characters actual body [Header("Speed Variables")] [SerializeField] private float velocity; //the velocity [Serial...
2f9306486d8aaaca42d1b8d74c64f8ec0095f37c
C#
dyslexicanaboko/dyslexic-code
/Algorithms/AlgorithmProofs/LinqPadDumpExtension.cs
2.671875
3
using System; namespace AlgorithmProofs { public static class LinqPadDumpExtension { public static void Dump(this object target) { Console.WriteLine(target); } public static void Dump(this int[] target) { foreach (var e in target) ...
cf1cea12007e49c9788ec0ac00347bbf734c7e70
C#
LimingJu/XSerivces
/Shared/SharedModel/CustomMetaTableAttributes/AddOnlyAttribute.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace SharedModel.CustomMetaTableAttributes { /// <summary> /// Indicate this Table only allow adding. Updating, removing is not allowed. /// </summary> [AttributeUsage(AttributeTargets.Class, AllowMultiple = fa...
3f5d27f4da7e3c9d68c8c18b7d808b2d56197a28
C#
JanRajnoha/ISUF
/src/ISUF.Interface/Storage/IStorageModuleItemAccess.cs
2.671875
3
using ISUF.Base.Template; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading.Tasks; namespace ISUF.Interface.Storage { /// <summary> /// Storage module item access interface /// </summary> public interface IStorageModuleItemAccess { /// <summary> ...
e8343f8ec741edf5046b960d708141bae9946c71
C#
arevee/chat
/source/Chat/Chat.Logging/Interfaces/ILog.cs
2.65625
3
namespace Chat.Logging.Interfaces { /// <summary> /// Log Interface /// </summary> public interface ILog { /// <summary> /// Log Info message /// </summary> /// <param name="message">Message to log</param> void LogInfo(string message); /// <summary> ...
77c6475b430c229f59465450b086e4adef2ac89a
C#
BeTheBase/KernModuleGameDev
/BubbleTroubleTwist#17/Assets/Scripts/Weapons/Weapon.cs
2.828125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// Data class that stores each weapon data /// </summary> [System.Serializable] public class WeaponData { [SerializeField] private GameObject projectileGameObject; public GameObject ProjectileGameObject { get => proj...
919e5c2335b42031c760c55d35c0d395be319dd2
C#
adamaclp92/CSharp-learning
/OOP/Ferivelgyak/Person.cs
2.84375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ferivelgyak { class Person { private string _VezezekNev; public string VezetekNev { get { return _VezezekNev; } set { _VezezekNev = value; } } private string _KeresztNev; ...
dbf909cd351a80f10de6f8d9cc459ae507bb4543
C#
step-up-labs/firebase-authentication-dotnet
/src/Auth/Requests/Converters/JavaScriptDateTimeConverter.cs
2.875
3
using Newtonsoft.Json; using System; namespace Firebase.Auth.Requests.Converters { internal class JavaScriptDateTimeConverter : JsonConverter { public override bool CanConvert(Type objectType) { return objectType == typeof(DateTime); } public override object ReadJs...
c6043257abfe2c011e4ea8004bd6a689c62a2bcd
C#
Zarnosch/Cloud-Captain
/Cloud-Captain/Assets/Scripts/OutputCollision.cs
2.671875
3
using UnityEngine; using System.Collections; public class OutputCollision : MonoBehaviour { void OnTriggerEnter(Collider collider) { Debug.Log("OnTrigger"); Debug.Log(GetText(this.gameObject, collider.gameObject)); } void OnCollisionEnter(Collision collision) { Debug.Log...
14e28efa8676396badca8cc0311907ac116e3ed6
C#
jchristian/code_katas
/data_munging/ui.console/Program.cs
2.90625
3
using System; using source.football; using source.weather; namespace ui.console { class Program { static void Main(string[] args) { var weatherQuery = new GetTheSmallestTempuratureSpread(new WeatherInformationRepository()); var footballQuery = new GetTheTeamWithTheSmall...
16f4136fdfb8f9546d17f90c3c1737a9e050915d
C#
ccesarrod/FuzzyMicrosrvices
/fuzzyMicroservice/ServicesAPI/Order/OrderApi.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using DataCore.Entities; using DataCore.Repositories; using ServicesAPI.CustomerAPI; namespace ServicesAPI.OrderAPI { public class OrderAPI: IOrderAPI { private readonly IOrderRepository _orderRepository; private readonly ICus...
68d2e2fe8d40906dabbf77c6c7144b7d3505064c
C#
concurrentdevelopment/SubstituteQueryable
/SubstituteQueryable/FutureEnumerable`1.cs
2.84375
3
namespace SubstituteQueryable { using System.Collections; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using NHibernate; class FutureEnumerable<T> : IFutureEnumerable<T> { readonly IEnumerable<T> _items; public FutureEnumerable(IEnumerable<T> items) { _items...
96cd81aa9266c6a27c28d8e969e5181bea6476ce
C#
iShamSLam/Shamsutdinov_Rishat_11-708
/2017/FALL 2017/PS/PS_2/PS_2_Number3.cs
3.640625
4
using System; using System.Threading; namespace PS_2_Number_3 { // Работу выполнил : Шамсутдинов Ришат 11-708 class Exersize_3 { static double Function(double x) { return Math.Cos(Math.Sin(x)); } static void Main(string[] args) { Console.Writ...
f4288249b8274676ea6f047fe13198a2a464fd96
C#
MohamedAhmed2926/JICCRIME
/JIC.Utilities/Helpers/DownloadHelper.cs
2.609375
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; using JIC.Base; namespace JIC.Utilities.Helpers { public class DownloadHelper { /// <summary> /// Use this method to download an ...