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
55a674de87d08faa17403dfebdcb8b980c4306ed
C#
chronoxor/NDepth
/Sources/Business/BusinessObjects/Domain/MonitoringEvent.cs
2.59375
3
using System; using System.Runtime.Serialization; using FluentValidation; using NDepth.Business.BusinessObjects.Common; namespace NDepth.Business.BusinessObjects.Domain { /// <summary>Monitoring event represents some event in past that occurs on some machine/module/component with some severity</summary> [Data...
a4b0b93413d82a921a798d4fc19f9d75ed255bee
C#
okanyalcinn/Paint_Misali
/Drawing_Tool/Tool_Pen.cs
2.53125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Drawing_Tool { public partial class DrawingTool : Form { bool kalemButtonStart = false; ...
29423465b9869166f60be1f7d4f17fe62e2198d2
C#
key-moon/cs-ctf-libraries
/CTFLibrary/Utils/Const.cs
2.9375
3
using System; using System.Linq; using System.Collections.Generic; using System.Text; namespace CTFLibrary { public static class Const { public const string Digits = "0123456789"; public const string LowercaseLetters = "abcdefghijklmnopqrstuvwxyz"; public const string UppercaseLetters ...
3226b8a12cf951754afcd5ce0f2a06c15ce67f34
C#
ColinWade/rhinocommon
/examples/AutomationSample/SampleRhino/SampleRhinoCommand.cs
2.703125
3
using System; using System.Collections.Generic; using Rhino; using Rhino.Commands; using Rhino.Geometry; using Rhino.Input; using Rhino.Input.Custom; namespace SampleRhino { [ System.Runtime.InteropServices.Guid("efda8c97-1440-47f6-aa33-c024a7139d6a"), CommandStyle(Style.Hidden) ] public class SampleRh...
a682c274fcfc628bd347778527d026b5fe0b45bb
C#
navidnabavi/robina_speech
/RobinaSpeechServer/RobinaSpeechServer/RobinaSpeechServer/DataPublisher.cs
2.921875
3
using System; using System.Net; using System.Net.Sockets; using System.Text; using System.IO; namespace RobinaSpeechServer { public class DataPublisher { Socket socket; //udp socket EndPoint endpoint; System.Threading.Mutex mutex = new System.Threading.Mutex(); public DataPublis...
bce0d7bff52d75325397bb1d749d4a87e789b910
C#
1141558/REST_API_CS
/DTO/MaterialDTO.cs
2.734375
3
using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using nucleocs.Models; namespace nucleocs.DTO { public class MaterialDTO{ public int MaterialId { get; set; } public string Name...
cd022fe37e4bee5523121c27c37bc93e79fe984a
C#
Chroizen/Tugas7
/abstraction.cs
3.140625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; // Compiler version 4.0, .NET Framework 4.5 namespace AbstractClass { public class Program { public static void Main(string[] args) { Console.WriteLine(); Co...
00e964dd092329df490a767e8e2e06b2c9c7a29f
C#
beschoenen/school
/ALGA - Homework/week-1-recursion-beschoenen/1-Recursion-Test/FibonacciTest.cs
2.75
3
using ALGA; using NUnit.Framework; namespace ALGA_test { [Category("Fibonacci"), Timeout(1000)] public class FibonacciTest { [Test] public void FibonacciRecursiveNegative() { Assert.AreEqual(0, Fibonacci.fibonacci_recursive(-5)); } [Test] public...
feee03518234d943750e4379014500541680f47e
C#
AndreiLisiutin/FRI3NDS.Angular4Template
/FRI3NDS.Angular4Template.Cloner/Program.cs
2.53125
3
using FRI3NDS.Angular4Template.Cloner.Cloner; using FRI3NDS.Angular4Template.Cloner.Infrastructure; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using System; namespace FRI3NDS.Angular4Template.Cloner { class Program { static void Main(string[] args) { ...
85a63b86f97598d327bb46d3c153777b95fe2cb7
C#
Devin-X/tada
/Questions/303-RangeSumQuery.cs
3.78125
4
using System; namespace questions { // Question URL: https://leetcode.com/problems/range-sum-query-immutable/description/ //Given an integer array nums, find the sum of the elements //between indices i and j(i ≤ j), inclusive. //Example: //Given nums = [-2, 0, 3, -5, 2, -1] //sumRange(0, 2) ...
62fe3b5ee5871de1c7879d030053fe64fd009974
C#
oleksiikrutykh/wp_base_tools
/Sources/PhoneApp14/BinarySerializing/CustomTypes/NullableSerializer.cs
3.125
3
namespace BinarySerializing.CustomTypes { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; internal class NullableSerializer : AbstractTypeSerializer { private LazyLoadSerializer valueSe...
6a9f00b2c8bfc588b93d42fa9fbd31c113dd20ae
C#
School-Works-On-Programming/comp123-s2016-lesson2
/COMP123-S2016-Lesson2/Program.cs
3.453125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /** * * Author: Christopher Ritchil * Date: May 17, 2016 * Date Modified: May 17, 2016 * Description: Advance Method Demo for Lesson 2 * * Version: 0.0.4 - Added readUntilEnd - not completed ...
ab999a5677d93074ca5db921d586fdade3ef1186
C#
pablothedolphin/Scriptable-Console
/Scriptable Console/Assets/Scriptable Console/API/Scripts/DeveloperConsole.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; namespace ScriptableFramework.DeveloperConsole { /// <summary> /// /// </summary> public class DeveloperConsole { /// <summary> /// /// </summary> protected readonly IEnumerable<IConsoleCommand> commands; /// <summary> /// /// <...
cd367f902a67903beffea761a3aa9999dadba0a2
C#
pedrolimajesus/template
/Shrike/Common/TAC/TAC/Interfaces/Scheduling.cs
2.515625
3
// // // // Copyright 2012 David Gressett // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // you may not use this file except in compliance with the License. // // You may obtain a copy of the License at // // // // http://www.apache.org/licenses/LICENSE-2.0 /...
521263cdfad289ba90528bf79045eff2f418385c
C#
AiPEX-Lab-CMU/CityScene
/Assets/Supermarket_Hemang/Scripts/ShoppingList.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ShoppingList : MonoBehaviour { public List<string> items; // Start is called before the first frame update void Start() { items = new List<string>(); } public void generateShoppingL...
76783bcb2605dd629edc11136807c27af94e42c6
C#
jmpEA31/GroundRouteFinder
/GroundRouteFinder/Output/RouteWriter.cs
2.671875
3
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GroundRouteFinder.Output { public abstract class RouteWriter : InvariantWriter { public static RouteWriter Create(int t...
5082a325e5dd67da417b8cde2cc13fecd7f7d2ee
C#
hloiseau/AirTech
/AirTech/Server/Controllers/TravelController.cs
2.734375
3
using AirTech.Server.DAO; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; namespace AirTech.Server.Controllers { [ApiController] [Route("[controller]")] public class TravelController : Controller { private readonly ILogger _lo...
e23cc0292b505f6125b61ac34f195bac7b43db9f
C#
zestt132hp/PatternsOfDesign
/PatternsOfDesign/Behavior patterns/Strategy/Context.cs
2.859375
3
 using PatternsOfDesign.Behavior_patterns.Strategy.Strategies; namespace PatternsOfDesign.Behavior_patterns.Strategy { class Context { private IStrategy _strategy; public Context(IStrategy strategy) { _strategy = strategy; } public void ChangeStrategy(IStr...
94f7214cd9d2fec42eb1bb321e89db4eb908c0c7
C#
joaonc/jdn45common
/Jdn45Common/Jdn45Common/FileAssociation/FileAssociationUtil.cs
2.9375
3
using System; using System.Collections.Generic; using System.Text; using Jdn45Common; namespace Jdn45Common.FileAssociation { public static class FileAssociationUtil<T> { /// <summary> /// The function that associates a name (directory or file) with its association. /// This ...
354e6a3c693ff44be3b895b6bcb3809762f61971
C#
shendongnian/download4
/first_version_download2/229926-18053262-44831508-2.cs
2.6875
3
public class Column { private Source _Source = new Source(); private Destination _Destination = new Destination(); public Source Source { get { return _Source; } } public Destination Destination { get { return _Destination; } } } public class Source { ...
d020057c6b8837dc88ce5d658aaa95e6d7e30b4e
C#
rorymacleod/AdventOfCode2019
/Tests/Day02Tests.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using FluentAssertions; using Xunit; namespace AdventOfCode2019.Tests { public class Day02Tests { [Theory] [InlineData(14, 2)] [InlineData(1969, 966)] [InlineData(100756, 50346)] public void Returns_fuel...
01b7bf1dbcdd98534b26cd15519521a896b9fbd8
C#
dalenewman/Transformalize
/src/Transformalize/Extensions/StringExtensions.cs
3.09375
3
#region license // Transformalize // Configurable Extract, Transform, and Load // Copyright 2013-2019 Dale Newman // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
e85ae257a9b5b583395fb03deb6965fe261344a2
C#
OlyaNikolaeva/ProjectBot
/EmotienBot/EmotienBot/Program.cs
2.53125
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using Telegram.Bot; using Telegram.Bot.Args; using Telegram.Bot.Types.ReplyMarkups; namespace EmotienBot { class Program { static ITelegramBotClient botClient; public static Dictionary<i...
9ddb91cfe508df5c2d1dc32186d2f2580e4d7e9e
C#
cmcquillan/SmtpPilot
/src/SmtpPilot.Server/Delegates.cs
2.796875
3
namespace SmtpPilot.Server { /// <summary> /// Delegate that plugs into <see cref="SMTPServer"/> that fires when a new client connects to the server. /// </summary> /// <param name="sender">The <see cref="SMTPServer"/> instance that receives the client connection.</param> /// <param name="eventArgs...
18e173773e94a0c97ffa787735f29a1ecfb159db
C#
tilmanbeyyer/WU_Aufbereitung
/Verarbeiter/Verarbeiter/Schueler.cs
2.609375
3
using System; using System.Collections.Generic; using System.Reflection.Emit; using System.Text; namespace Verarbeiter { class Schueler { private string nachname; private string vorname; private string klasse; private Fehlzeit[] fehlzeit; public Schueler(string nachnam...
ab6eee2bf874d7be5af75403090fa81ec22f5f7b
C#
lpestl/SimpleTasks
/Task051/albert_davletov/Program.cs
3.34375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Task51_AnswerFromTheAuthor { class Program { public class WorkTime { public int FirstTime { get; set; } // время упаковки заказа Алисой public ...
b6f4af6500635cb5e0ef5b67fe5e1c890f9a1b1a
C#
deyan-yosifov/Deyan-Projects
/CSharp/FMI/GeometryBasics/Models/LineSegmentsIntersectionModel.cs
2.75
3
using GeometryBasics.Views; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GeometryBasics.Models { public class LineSegmentsIntersectionModel : ExampleModelBase { private const string name = "Алгоритъм за пресичане на множе...
43d98958f5f40696c3a01bfc4201fbd8b086944a
C#
esiole/MyGL
/MyGL/Shaders/Sources/PhongShaderSource.cs
3.078125
3
namespace MyGL { /// <summary> /// Универсальный шейдер. Рассчитывает освещение по Фонгу. Работает с нормалями и материалами. /// Поддерживает множество точечных источников света и прожекторов. /// </summary> public sealed class PhongShaderSource : IShaderSource { private const string v...
184eac8880f618bac0fb5ab4242d516a739e06ab
C#
FabianoPretoJr/Etapa-Tecnica-GFT
/exerciciosGFT/exercicio1GFT/exercicio1GFT/Program.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace exercicio1GFT { class Program { static void Main(string[] args) { ValoresImpares vi = new ValoresImpares(); Console.WriteLine("Digite o valor i...
35e0675dfcb59f1d5fbf36ea20e8fac99ce22a0e
C#
IOneB/exam483
/chapter2. Types/Skill1_Create.cs
2.75
3
using System; using System.Collections.Generic; using System.Text; namespace exam483.chapter2._Types { class Skill1_Create { /* Структуры - нет конструктора по умолчанию, нельзя в структуре инициализировать переменные. * Структуры хранятся в стэке (кроме замыкания), массив структур - непрерывн...
f2dc3372eb36766e4bc8de4945b9b1520a6cfded
C#
shendongnian/download4
/code2/282292-5800257-12495434-2.cs
2.515625
3
private void searchBox_TextChanged(object sender, EventArgs e) { if (gridUsers.Rows.Count > 0) { foreach (UltraGridRow row in gridUsers.Rows) { if (Regex.IsMatch(row.Cells[1].Value.ToString(), searchBox.Text, RegexOptions.IgnoreCase)) { gridUsers.Rows[indexCounter].Hi...
32e66f01cb994f317caf75307ec501bfddfef77d
C#
rmit-s3585659-nicole-renner/Emerge_Educational_Game
/Assets/Scripts/ShopScript.cs
2.625
3
using UnityEngine; using System.Collections.Generic; using UnityEngine.UI; using UnityEngine.SceneManagement; public class ShopScript : MonoBehaviour { public GameObject ShopPanel; public Text cheeseCountText; public GameObject productButton; private Dictionary<string, Item> products; private D...
26622e9500dfd65005779c1401970f30e0bfae6b
C#
jli103828/CollectJoe
/CollectJoe/ScoreList.cs
2.5625
3
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; namespace CollectJoe { public partial class frmScoreList : Form { priva...
2bdfa0d12724cbe560a194954c21f7bb07b82c7e
C#
triducnguyen/SeedSearch
/Seed Dispersal/Assets/Scripts/Data/StudentProfile.cs
2.734375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; namespace SeedSearch { public class StudentProfile : MonoBehaviour { public StudentData student; public GameObject content; public TMP_Text studentName; public TMP_Text firstPrompt; ...
683709b20195f419a66a2697f795d726a0439e64
C#
kurisankaku/programming_prc
/csharp-practice/Test.cs
3.40625
3
using System; class Base1 { public Base1() { Console.WriteLine("Base1()"); } public Base1(int x) { Console.WriteLine("Base1(int x)"); } public Base1(int x, int y) { Console.WriteLine("Base1(int x, int y)"); } } class Test1 : Base1 { public Test1(int x) { Console.WriteLine("Test1(in...
9071fca95292451da5cf8b03e7218957802ad33b
C#
JERRYZFC/edasample
/src/services/EdaSample.Services.Inventory/Controllers/ProductsController.cs
2.671875
3
using EdaSample.Common.DataAccess; using EdaSample.Services.Inventory.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace EdaSample.Services.Inventory.Controllers { [Route("api/[contr...
a0838d0259569c410c29cd3d1d166a2fc42d5f99
C#
Jendisch/HumaneSociety
/Humane_Society/Humane_Society/HumaneSociety.cs
2.90625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Humane_Society { class HumaneSociety { Employee employee; Adopt adopt; public void InitiateMenu() { UserInterface.WelcomeGreetingToMenu();...
bc3e95f64ea49b8f877a07e81a46404f938f20a4
C#
DracoPQL/MoviitAssessment
/2 - Services/MinisServices/SandwichsService.svc.cs
2.609375
3
using Moviit.Domain.Business.Sandwichs.Contracts; using Moviit.Domain.DTO.POCO; using Moviit.Services.BaseServices.CORS; using Moviit.Services.BaseServices.Faulting; using System.Collections.Generic; using System.ServiceModel; using System.Threading.Tasks; namespace Moviit.Services.MinisServices { /// <summary> ...
8cb2f0d02729e0b7cbc1086af4058bd206f78fa4
C#
jarjaris/sharpclean
/metatypes.cs
2.78125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace sharpclean { //the .pgm file's basic data struct data { public string filetype; public int width, height, maxgreyval; public int totalpixels; ...
d895058516752d1832b3ce3dbf2bb00e9e89f80b
C#
hanlonJ/ConditionalStatements
/ConditionalStatements/Program.cs
4.03125
4
/* Author: Jared Hanlon Date: 1/21/2019 Comments: This C# Console application code demonstrates the use of conditional statements after getting input from users */ using System; namespace ConditionalStatements { class Program { static void Main(string[] args) { Console....
2e17b92d6a9caacc51bc6c40b267560424ac9563
C#
ThrashAbaddon/ADO.NET-Models
/ConsoleDB/Program.cs
3
3
using System; using System.Data.SqlClient; namespace ConsoleDB { class RazliciteKonekcije { static void Main(string[] args) { // Connect using .NET data provider for SQL Server and integrated security string sqlConnectString1 = @"Data Source=KUSARI-PC\...
6b39db442fb0f9360a47604a6191f1d481f9b1b6
C#
klubenov/SoftUni
/ProgrammingFundamentals/E06ArraysExercisesG2/P01LargestCommonEnd/P01LargestCommonEnd.cs
3.53125
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace P01LargestCommonEnd { class P01LargestCommonEnd { static void Main(string[] args) { string[] firstSequence = Console.ReadLine().Split(' ').ToArray(); ...
d06594720c93a23cf2a5e4406f86b1496ee20ddd
C#
andreclaroribeiro/PadroesProjeto
/PadroesProjeto.Source/Singleton/Dispositivo.cs
3.28125
3
using System; namespace PadroesProjeto.Source.Singleton { public class Dispositivo { public string Marca { get; set; } public string Modelo { get; set; } private static Dispositivo instance = new Dispositivo(); public void Ligar() { Console.WriteLine("Equi...
84d86be5f24b200471f770735d6c93a8c32ee623
C#
captaindarkness/OOSE-Dungeon-Crawler-Project
/Assets/Scripts/EnemyAI.cs
2.796875
3
using UnityEngine; using System.Collections; public class EnemyAI : MonoBehaviour { Transform target; public Transform myTransform; public float moveSpeed = 0.5f; public float rotationSpeed = 3.0f; bool Detect; public float radiusAI = 10; // Use this for initialization void Start () { //Set target to fi...
c3b667f986f8c351c364215d80f9682c70632d09
C#
erinloy/ReactiveForms5
/ReactiveForms5/Form1.cs
2.796875
3
using System; using System.Drawing; using System.Windows.Forms; using System.Reactive.Linq; namespace ReactiveForms5 { public partial class Form1 : Form { Random rnd = new Random(); public Form1() { InitializeComponent(); Observable.FromEventPattern(e => this....
d5c23cb5e6ef41b079603edc8a41077ff5e330bd
C#
ivanloy/UWPolyFlama
/Monopoly - Cliente - Pero bien/PantallasMonopoly/Models/Converters/DadoConverter.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; namespace PantallasMonopoly.Models { class DadoConverter : IValueConverter { public object Convert(object value, Type targetType, obje...
d3d812d06100ed786679ce8068e8271663c4d663
C#
gustavopalomino/BODYTECH
/BODYTECH/Domain.Test/EjercicioTest.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Domain.Entities; using Domain.Business; using NUnit.Framework; namespace Domain.Test { [TestFixture] public class EjercicioTest { Ejercicio ejercicio; [SetUp] ...
1f72f43b36cd3a5cb49c66277421dff589fde2f9
C#
Zarkana/redfin-c-sharp
/PageObjects/BasePage.cs
2.625
3
using OpenQA.Selenium; using OpenQA.Selenium.Support.UI; using System; using System.Collections.Generic; using System.Linq; using System.Threading; namespace RedFin.PageObjects { class BasePage { public IWebDriver baseWebDriver { get; set; } public IWebElement wElement { get; set; } p...
286dec45fdc7300c3022ea1a2a96f22be1b6eee7
C#
Lenny32/Microsoft.AspNetCore.Authentication.LinkedInAccount
/LinkedInAccountHelper.cs
2.9375
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json.Linq; namespace Microsoft.AspNetCore.Authentication.LinkedInAccount { /// <summary> /// Contains static methods that allow to extract user's information from a <see cref="JObject"/> ...
ebf74bd6136e24953906a7e34f885ec697026bff
C#
barisgunduzer/MimariProje-SeriPortMonitoru
/mimari_seriport_haberlesme/Form1.cs
2.75
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 mimari_seriport_haberlesme { public partial class Form1 : Form { public Form1(...
a8601fd3d3d9382d4b134c61af790e2b51734db3
C#
dfitraa/primbon-csharp
/Program.cs
2.796875
3
using System; namespace Primbon { class Program { static void Main(string[] args) { Console.WriteLine("Neptu Hari Lahir\t\tNeptu Nama Hari Pasaran Jawa"); Console.WriteLine("======================================================="); Console.WriteLi...
e7bde4f8943bbda59e0093cb80261bd68799d3fa
C#
johnddiaz/flight-scheduling
/UnitTestProject1/CustomerBaseTest.cs
2.671875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace cs270_uwp { class CustomerBaseTest { String s = "asdf"; String e = "asdf"; string s1 = "asdf"; String e1 = "asdf"; public void Tester() { ...
124faf5893b4d69e419b3c47e93e30bbcfef05b6
C#
tokkenno/aoe3-launcher
/AOEIII_Launcher/Cultures/Culture.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AOEIII_Launcher.Culture { public abstract class Culture { protected String _STRING_NOT_FOUND_MESSAGE = String.Empty; protected Dictionary<String, String> langValues = new Dictionary<String...
200e3a2eafd52b2588ce5e8b80e2a71a8e17ed67
C#
SuperMeip/SpiritWorld-Unity
/Assets/Scripts/Coordinate.cs
3.203125
3
using System; using System.Collections.Generic; using UnityEngine; /// <summary> /// A tile position in a level /// </summary> public struct Coordinate { /// <summary> /// 0, 0 coordinate constant /// </summary> public static Coordinate Zero = (0, 0); /// <summary> /// east west /// </summary> public...
ecddf4bb99190763634d538c69ed80172c56acaf
C#
jasonbashov/Telerik-Academy
/C# Part 2/01.Arrays/18.RemoveMinElements/Program.cs
3.484375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //* Write a program that reads an array of integers and removes from it a minimal number of elements in such way that the //remaining array is sorted in increasing order. Print the remaining sorted arr...
c0ef8ef890752764476e3ace87b44af8bbb4fd9e
C#
J101R/Leaplog-accounting
/LeapLog/IncomeStatement.xaml.cs
2.5625
3
using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Wi...
aa8c5e083a505bcb5c7a2f2f539b2e33cb4964af
C#
MongolChat/MChatSDK
/MChatSDK/MChatWorkerConfiguration.cs
2.65625
3
using System; namespace MChatSDK { public class MChatWorkerConfigurationException : Exception { public MChatWorkerConfigurationException() : base("MChat Worker not configured, Please configure worker") { } } public class MChatWorkerConfiguration { public ...
0caa3680c09a97814966c20789bd1d2e671350cd
C#
njtrentacoste/WordWrap
/WordWrap/WordWrapper.cs
3.59375
4
using System.Text; using System.Text.RegularExpressions; namespace WordWrap { public class WordWrapper { public string Wrap(string text, int length) { var wrapped = new StringBuilder(); var regex = new Regex("\b"); var words = regex.Replace(text, " ").Split(...
10ec51ffb964b9e74b2f0bcc7b1d7f59b6aa136e
C#
Minoxsys/CPMS
/PAS/PAS/Controllers/ClinicianController.cs
2.609375
3
using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web.Mvc; using CPMS.Domain; using PAS.Models; namespace PAS.Controllers { public class ClinicianController : Controller { [HttpGet] public ActionResult Add() { var addClinicianViewMo...
a21e6d1e9d47bb98905998c3d280cd3bf8f5d1a7
C#
prabhaarunram/NewRepos
/Controllers/OrderController.cs
2.515625
3
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Shopping.Models; // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 namespace Shopping.Controller...
e7e237ac371258fe076481304375eb07a1fd82fd
C#
mosa/MOSA-Project
/Source/Mosa.Compiler.Framework/Analysis/LiveVariableAnalysis/LiveRanges.cs
2.671875
3
// Copyright (c) MOSA Project. Licensed under the New BSD License. using System; using System.Collections.Generic; using System.Text; namespace Mosa.Compiler.Framework.Analysis.LiveVariableAnalysis; public sealed class LiveRanges { public List<Range> Ranges { get; } = new List<Range>(1); public int Count => Rang...
087fe0f36ae22420a82543ea91d966fabec773bc
C#
sy545633799/NetworkCore
/photonServer/ExitGamesLibs/Net.Sockets/BatchMessage.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ExitGames.Net.Sockets { /// <summary> /// batch message. /// </summary> internal sealed class BatchMessage { /// <summary> /// The header size. /// </summary> private in...
d98980f7a3acc130f43a92137b1e7f6a50d1d07b
C#
Normo/evoAlg4CSharp
/src/main/main/Evolution.cs
2.828125
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Gtk; using System.Text; using System.ComponentModel; namespace main { public class Evolution { public delegate List<Genome> RecombineMethod (Genome genomeA, Genome genomeB); public delegate void FitnessMethod (Geno...
3b4593815b186c6ea7bf312d958a83e8ff17a962
C#
kobrynsky/iPetCare.API
/iPetCare/Persistence/Seeds/SeedExaminations.cs
2.8125
3
using Domain.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Persistence.Seeds { public class SeedExaminations { public static async Task Seed(DataContext context) { ...
0561a0d3833bba59461708c68f993f838401fd62
C#
tanchiba/DoAn_LTUDQL2
/DAO/CUSTOMER_GROUPDAO.cs
2.609375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DTO; using DAO.AppData; namespace DAO { public class CUSTOMER_GROUPDAO { public static List<CUSTOMER_GROUPDTO> list() { List<CUSTOMER_GROUPDTO> dsEmpl = new List...
8d7791eeee422f85f16a4b2c762b1b6551ff5960
C#
RomaBogdanov/BogdanovUtilities
/BogdanovCodeAnalyzer/ViewModel/SearchTextInFilesViewModel.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.ObjectModel; using BogdanovUtilitisLib.MVVMUtilsWrapper; using System.Windows.Input; namespace BogdanovCodeAnalyzer.ViewModel { class SearchTextInFilesViewModel : NotifyProp...
2011c70775782d732a331ba33044b8ba22db8f29
C#
overdd/BSUIR-C-
/Laba 1_5/Laba 1_5/Task 5/StartEndReader.cs
3.296875
3
using System; using System.Collections.Generic; using System.Text; namespace Laba_1_5.Task_5 { class StartEndReader { int[] startEnd = new int[2]; public int[] readKeys() { Console.WriteLine("Введите значение start в виде int: "); startEnd[0] = Convert.ToInt32(...
c3055be28dabe55f5adb3d103515c324293521d9
C#
manakamic/Gesture
/Assets/Gesture/GestureManagerIF.cs
2.90625
3
using System.Collections.Generic; namespace Gesture { /// <summary> /// partialで分割したGestureManagerクラス. /// 各Gestureの操作インターフェイスを実装. /// </summary> public partial class GestureManager { public void Clear() { if (_listTap != null) { _listTap.Clear(); ...
7ff2c206d0e1c7a439bcca9dd49e7355c1fbe13d
C#
Glazed/Dredmor-XML-Validator
/DredmorXsdWordExtractor/Program.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Text.RegularExpressions; namespace DredmorXsdWordExtractor { class Program { static void Main( string[] args ) { if ( args.Length == 0 ) { Console.WriteLine( "No file specified." ); }...
cd2c4aec95df218eea332b77871fd056698d0f75
C#
nupurkulkarni411/Build-Server
/MockClient/Client.cs
2.734375
3
///////////////////////////////////////////////////////////////////// // Clent.cs - This package provides functionality for creating // // messages to test various functionalities of system // // ver 1.0 // // Language: C#, Visual Studio 2017 ...
502886b897e543e8eb495768b9d749c027da43bb
C#
Fraham/CAS-CSharpStarter
/4-StartingWithClasses/Transaction.cs
3.609375
4
using System; namespace _4_StartingWithClasses { public class Transaction { /* All of these properties only have `get` Once the property has been set it can not be updated */ public decimal Amount { get; } public DateTime Date { get; } ...
9f1839204562e32f87ea39b6cbc5c343abe49b63
C#
hillinworks/tabml
/Source/TabML.Parser/AST/VoiceNode.cs
2.609375
3
using System.Collections.Generic; using TabML.Core.Document; using TabML.Parser.Parsing; using System.Linq; using TabML.Core.Logging; using TabML.Core.MusicTheory; using System; namespace TabML.Parser.AST { class VoiceNode : Node { public List<BeatNode> Beats { get; } public Preci...
07f24cd8efa538839e3c3461435fb2f410f3b3a5
C#
DragonsLord/MathDetecting
/MathDetecting/Algorithms/Segmentation/FormatImage.cs
3.09375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; namespace MathDetecting.Algorithms.Segmentation { public static class FormatImage { public static void...
a86b9bebe143ee44eee1536a2a83e58c964b09e6
C#
Plamen-Angelov/Fundamentals-Final-Exam
/02. Message Translator/Program.cs
3.453125
3
using System; using System.Text.RegularExpressions; namespace _02._Message_Translator { class Program { static void Main(string[] args) { int num = int.Parse(Console.ReadLine()); for (int i = 0; i < num; i++) { string message = Console.ReadL...
9f86edea21d5e1b04c5a463592be5829099928fb
C#
pjtucker/WebApiStrap
/WebApiStrap/Domain/Model.cs
2.609375
3
namespace WebApiStrap.Domain { using System; using System.Collections.Generic; using System.Linq.Expressions; using Infrastructure.Data; using Infrastructure.Data.OrderBy; using Infrastructure.Data.Repositories; using Infrastructure.Data.Searching; public abstract class Model { ...
aa27dbf9fa2eca9cf830d6bd69adf2cdf13119bb
C#
JornWildt/ZimmerBot
/OpenWeatherMap.ZimmerBot.AddOn/OpenWeatherMapProcessor.cs
2.640625
3
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Net; using log4net; using ZimmerBot.Core.Processors; namespace OpenWeatherMap.ZimmerBot.AddOn { public static class OpenWeatherMapProcessor { static ILog Logger = LogManager.GetLogg...
064b3194c16eb864af08c811ef64ec8ad7f0165f
C#
AndersChen123/NDatabase
/src/Tool/DLogger.cs
2.640625
3
using System.Collections.Generic; namespace NDatabase.Tool { /// <summary> /// Simple logging class /// </summary> internal static class DLogger { private static readonly IList<ILogger> Loggers = new List<ILogger>(); internal static void Register(ILogger logger) ...
9c3a3534393348c0b724c18e4d9a3cc621452dbf
C#
rakeshcreown/creown-tutor
/CreownTutor/CreownTutor/CreownTutor.Data/Repository/ReviewRepository.cs
2.765625
3
using CreownTutor.Data.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CreownTutor.Data.Repository { public class ReviewRepository:BaseRepository { public int saverating(ReviewModel model) { int res...
a4939210257e3b7f492e116365184dbd57ea4f62
C#
root-servers/ImageSharp
/tests/ImageSharp.Tests/TestFileSystem.cs
2.75
3
// Copyright (c) Six Labors. // Licensed under the Apache License, Version 2.0. using System; using System.Collections.Generic; using System.IO; namespace SixLabors.ImageSharp.Tests { /// <summary> /// A test image file. /// </summary> public class TestFileSystem : ImageSharp.IO.IFileSystem { ...
b1780f0090353d48a62c5c44d8cbb9dc98831573
C#
mabargiel/AdventOfCode
/AdventOfCode.Tests/2020/Day8.cs
2.75
3
using AdventOfCode.Tests.Helpers; using NUnit.Framework; using Shouldly; namespace AdventOfCode.Tests._2020; public class Day8 { private static object[] Codes = { new object[] { @"nop +0 acc +1 jmp +4 acc +3 ...
b175a2b4ce84a31947d101efb1642e5a11854efc
C#
jhoerr/box-csharp-sdk-v2
/BoxApi.V2/Model/SharedLink.cs
2.890625
3
using System; using BoxApi.V2.Model.Enum; using Newtonsoft.Json; namespace BoxApi.V2.Model { /// <summary> /// An object representing this items shared link and associated permissions /// </summary> public class SharedLink { /// <summary> /// Parameterless constructor requir...
3ea37a2c68924e8efe4a18b81a5ab9742ab0870c
C#
swsandra/AIForGames
/Assets/FSM/StopAndTimePassTrans.cs
2.53125
3
using UnityEngine; using System; using System.Collections; using System.Collections.Generic; public class StopAndTimePassTrans : Transition{ GameObject invocant; DateTime creationTime; float delay; bool changeCreationTime; string nextTransition; public StopAndTimePassTrans(GameObject ...
7ee1e625673c82d1ad19e06b09521befc803abe0
C#
KubaPr/TDD-Workshop
/RomanNumeralsConverter.Tests/RomanNumeralValidatorTests.cs
3.109375
3
using FluentAssertions; using NUnit.Framework; namespace RomanNumeralsConverter.Tests { internal class RomanNumeralValidatorTests { private RomanNumeralValidator _validator; [SetUp] public void SetUp() { _validator = new RomanNumeralValidator(); } //TODO: tests with numerical value...
aa40e20f9663a7aeb741bcc9d98f868e27b197a8
C#
marko-johnson/DevBuildLab_StackOverflow
/Models/DAL.cs
2.75
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MySql.Data.MySqlClient; using Dapper.Contrib.Extensions; using Dapper; namespace FoC_StackOverflow.Models { public class DAL { //public static MySqlConnection DB = new MySqlConnection("Server=localho...
1726a5378d1bb971c64e101b28bde51144b28219
C#
Geoffrotism/RPG
/Assets/Scripts/World/Tile.cs
3.09375
3
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Tile { public int X; public int Y; public int Z; // 1 = fully passable, 0 = not passable. public int pathWeight; // Tile movement speed. we change this whenever the modifier is changed. ALWAY...
ceea9ca943bdfa8304ab08587f83f2b4226ac9e5
C#
theoners/Programing-Basics-Exams
/Exam - 17 December 2017/03. Ivanovi's Holiday/Program.cs
3.453125
3
using System; namespace _03._Ivanovi_s_Holiday { class Program { static void Main(string[] args) { int numberOfNights = int.Parse(Console.ReadLine()); string destination = Console.ReadLine(); string transport = Console.ReadLine(); double priceAdu...
eb99b46376f775e55b1c123795917d8da99980af
C#
KeithAnderson1345/ElevenNote
/ElevenNote.Data/Note.cs
2.75
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ElevenNote.Data //THIS LAYER WILL BE USED TO HOUSE THE INFO ABOUT THE DATA ENTITIES. THESE ENTI...
fecb061e2d7c56e27710dcaedfdd9a1b01706a5c
C#
wwaii/Gaussian_Sotong-IP
/Assets/Scripts/IntObjects/Daruk.cs
2.734375
3
using System.Collections; using UnityEngine; using UnityEngine.AI; public class Daruk : MonoBehaviour { // Have an Idle and a Patrolling state // In Idle state, it will stand still for a few seconds, before changing to Patrolling // In Patrolling state, it will move towards a defined checkpoint. // Af...
19363ac8a6375b4a8ff7dd138eec1e9e853172c6
C#
carlreid/BlockEd
/MapTile.cs
2.8125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BlockEd { class MapTile { public MapTile(int spriteID, int xPos, int yPos) { _spriteID = spriteID; _xPos = xPos; _yPos = yPos; ...
9b1dcf4a1faf63a16e8004057f4e361f9ffc634c
C#
Heinzman/DigiRcMan
/VisualStudio/Sources/SerialPortReader/SerialPortReaders/PortReaderWriter.cs
3
3
using System; using System.Collections.Generic; using System.Globalization; using System.Text; using Elreg.BusinessObjects.DerivedEventArgs; using Elreg.BusinessObjects.Interfaces; namespace Elreg.SerialPortReader.SerialPortReaders { public class PortReaderWriter : PortReader, ISerialPortWriter { ...
32a6c02a27765c290958c17687dfcb61e5aec7d9
C#
Crogarox/HPA-Godot-Mono
/Scripts/Grid/Entrance.cs
2.625
3
using System.Collections; using System; using System.Linq; using System.Collections.Generic; using Godot; [Serializable] public class Entrance { public Cluster Cluster1 { get; private set; } public Cluster Cluster2; public Vector2 OriginPosition { get; private set; } public Vector2 EndPosition { get; private set; ...
a285512bd22db7629ee79444713f55349a69943a
C#
sebastianoscarlopez/Scraping
/scraping/Program.cs
2.53125
3
using System; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using NLog.Extensions.Logging; using AngleSharp; using AngleSharp.Dom; namespace scraping { class Program { static void Main(string[] args) { var servicesProvider = BuildDi(); var runner = s...
40b33fb6b48baeb9e02f0b8b2b0fe68e1055b3c8
C#
jorgeLuizChaves/TCC
/MyKinectLibrary/PoseTracking/MathFunctionsManager.cs
2.84375
3
using Microsoft.Kinect; using MyKinectLibrary.Enums; using MyKinectLibrary.Model; using MyKinectLibrary.Model.Auxiliary; using MyLibrary.Util; using System; namespace MyKinectLibrary.PoseTracking { /// <summary> /// This class manages all functions related to math functions /// </summary> internal sta...
a4e88939ecf0e8c088b26a1816aad75dfaa46223
C#
Narvalex/EstanciaGanadera
/src/libs/Eventing.HttpClient-v1.0.0/HttpLite.cs
2.640625
3
using System; using System.Globalization; using System.IO; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; namespace Eventing.Client.Http { /// <summary> /// This could be a whole lot improved with a limited pool /// https://pastebin...
e5156bdf44aececfeb94b071cb93a6644393268f
C#
11PluseHelp/ExploringRx
/TestingObservable/Reactive/Watcher.cs
3.046875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TestingObservable.Reactive { public class Watcher : IObserver<string>, IDisposable { IDisposable unsubscriber; public void Subscribe(IObservable<string> subject) { if (unsubscriber == null) { unsubscriber = su...
17e36cf3e41947771313c56df2ab570d4196d235
C#
rajexim/lessmsi
/src/Lessmsi.Tests/TestBase.cs
2.71875
3
using System; using System.Diagnostics; using System.Text; using System.Threading; using Xunit; using LessIO; using System.Linq; namespace LessMsi.Tests { public class TestBase { [DebuggerHidden] protected void ExtractAndCompareToMaster(string msiFileName) { var actualFile...
b60af9d137f695d7306522c694007a9ca35b151f
C#
udayaugustin/VechicleTracking
/VechcileTracking/Views/PendingAmount.xaml.cs
2.625
3
using System; using System.Collections.Generic; using SQLite; using VechcileTracking.Models; using Xamarin.Essentials; using Xamarin.Forms; namespace VechcileTracking.Views { public partial class PendingAmount : ContentPage { SQLiteAsyncConnection connection; Command CallCommand; publi...
0a3d1bd0933ba3ab165e81c240a08b9527276997
C#
xeon2007/WSProf
/Projects/Workshare.API/CSharpExamples/Program.cs
2.71875
3
using System; using System.Text; using System.Threading; namespace CSharpExamples { class Program { static void Main(string[] args) { // pass the name of the file to redact on the command line try { DiscoverToReportExample.Main(a...
7a05d2d1f6f866e5feed9cbae4c901155d184346
C#
darronfrancis/GoldBadgeChallenges
/GoldBadgeConsoleApplicationChallenges/ProgramUI.cs
3.3125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KomodoCafe { class ProgramUI { private MenuRepository _menuList = new MenuRepository(); public void Run() { SeedList(); Menu(); ...
db67f4f1955e51930f80913b7619de8f3246da0c
C#
qria/GGJ2018
/Assets/Scripts/Wall.cs
2.5625
3
using System.Collections; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices.ComTypes; using UnityEngine; [RequireComponent(typeof(PolygonCollider2D))] [RequireComponent(typeof(MeshFilter))] [RequireComponent(typeof(MeshRenderer))] [ExecuteInEditMode] public class Wall : MonoBeh...