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
1325696bec457fa0b52f6bdc1153b51c330da407
C#
henkla/MultiUserHeat
/MultiUserHeat/Heat.cs
3.171875
3
using System; using System.Collections.Generic; using System.Linq; namespace MultiUserHeat { public class Heat { private static Random _random; public IDictionary<int, Competitor> HeatResult { get; private set; } public IEnumerable<Competitor> Competitors { get; private set; }...
61edf27a57c32011f97a2c8040af38d15ba34f09
C#
eaardal/MicroMonitor
/MicroMonitor/Engine/EventLog/EventLogPoller.cs
2.75
3
using System.Collections.Generic; using System.Linq; using System.Threading; using MicroMonitor.Engine.MicroLog; using MicroMonitor.Infrastructure; using Timer = System.Timers.Timer; namespace MicroMonitor.Engine.EventLog { public class EventLogPoller { private readonly Timer _timer = new Timer(); ...
db9556ed8bb506cd837f4449c576b6dafea9fd62
C#
KissLog-net/KissLog.Sdk
/src/KissLog/Http/HttpProperties.cs
2.8125
3
using System; namespace KissLog.Http { public class HttpProperties { public HttpRequest Request { get; } public HttpResponse Response { get; private set; } internal HttpProperties(HttpRequest httpRequest) { Request = httpRequest ?? throw new ArgumentNullException(n...
cb8e7244c02aa45216eda47fc6cf8abf9bdeeec0
C#
ivelin1936/SoftUni-
/C#/ConditionalStatementsandLoops/CountOfIntegers/StartUp.cs
3.28125
3
namespace CountOfIntegers { using System; public class StartUp { public static void Main() { string input = Console.ReadLine(); int reminder = 0; int count = 0; while (int.TryParse(input, out reminder)) { count++;...
e47abf5126300f61af8951f61c11e25d2b7c060e
C#
K5680/Olio
/Labra7/Labra7/Program.cs
3.171875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Labra7 { class Program { static void Main(string[] args) { // Tee ohjelma, joka lukee yksinkertaisesta tekstitiedosto nimet.txt ...
f68b899f454aeb3ad66f421df2c9702e045f93eb
C#
Nekoscholar/shooting
/FairyStar/FairyStar/Play/LoopThread(Engine)/FrameThread.cs
2.8125
3
using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace FairyStar { public class FrameThread //추후 서브 스레드까지 제작하여 4중 버퍼링 구현할것. 이 클래스는 패널 전체를 담당하고, 서브...
506ccc5e427a7beb773a69019416a68bc8ff029e
C#
paiashwita/MerchantsOfGalaxy
/Common/Concrete/CreditsAssignmentStatementType.cs
2.625
3
using System; using System.Collections.Generic; using System.Text; namespace Common.Concrete { public class CreditsAssignmentStatementType : IStatementTypeDecider { public StatementType StatementType { get => StatementType.CreditsAssignment; } public bool isTrue(string inputStatement) ...
7ab1f868b03b0362d2d539ac8351738915bd2bc0
C#
wcoder/CustomRecyclerViewXamarin
/RVItemClickExample/MainActivity.cs
2.953125
3
using System.Collections.Generic; using Android.App; using Android.Content; using Android.OS; using Android.Support.V7.App; using Android.Support.V7.Widget; using Android.Views; namespace RVItemClickExample { // Ported from Java: // https://github.com/Hariofspades/CustomRecyclerView/blob/master/app/src/main/j...
dabd33cd950b2801fcf288c93a07de9363cde5fe
C#
gmarino2048/senior-project-s20
/Main Game/Assets/Scripts/Visuals/Flicker.cs
2.78125
3
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using Random = System.Random; namespace Visuals { public class Flicker : MonoBehaviour { public int randomSeed = 2000; public int numberPrimes = 20; public float flickerSpeed...
edd66ef84ea4a01588980595bd0201b80ecf2084
C#
schifflee/LightFramework.Net
/LightFramework.Web/Helper/RestHelper.cs
2.96875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.IO; using System.Runtime.Serialization.Json; namespace LightFramework.Web { public class RestHelper { public static string Get(Uri uri) { string text; ...
3bc1f1b1511f2fb5b045411c72245a2b413979e3
C#
arsiarola/2dcsgo
/Assets/Scripts/Recordable/TransformRecordable.cs
2.546875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Recordable { /// <summary> /// Inherits recordable and extends it to include the position and rotation /// </summary> public class TransformRecordable : Recordable { /// <summary> /// Base metho...
7afc428217e58d073fab40cff390bee917a9fefa
C#
gsenthilmca/MovieTitles
/MovieTitles/Program.cs
3.25
3
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace MovieTitles { public class Movie { public string Title { get; set; } public int Year { get; set; } pub...
e62218c8bafcf0b7d7cdfd1a0bcd96026a83867c
C#
cyber-secured/cyber-secured
/PROJ-4900---Cyber-Security-Game-master/Assets/OLD/PopupManager.cs
2.78125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PopupManager : MonoBehaviour { public GameObject text_box; //in inspector drag a panel object public Text text_in_box; //in inspector drag the corresponding text public TextAsset text_file...
a7e9af8cede8f3019171ca028af0d15bf80237ec
C#
shendongnian/download4
/first_version_download2/219795-17186490-42388469-2.cs
2.765625
3
public async Task<IRandomAccessStream> BeepBeep(int Amplitude, int Frequency, int Duration) { double A = ((Amplitude * (System.Math.Pow(2, 15))) / 1000) - 1; double DeltaFT = 2 * Math.PI * Frequency / 44100.0; int Samples = 441 * Duration / 10; int Bytes = Samples * 4; in...
430ea32cad306bafcdc373a923d21b42f47759cd
C#
spungemonkey/MUC
/Tammaro, Michele. S0908639. Mobile and Ubiquitous Computing Coursework/MappingApplication/MappingApplication/Pages/Diary.xaml.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; using System.IO.IsolatedStorage; namespace MappingApplication { public partial cla...
00ec7429feab3ff782e7c3c78e00a20f6f635eca
C#
ArmanPoghosyan2001/Store
/Store.DAL/Category/CategoryContext.cs
2.796875
3
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; using Models; using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Text; namespace Store.DAL.Category { public class CategoryContext { public List<CategoryModel> GetCategories() { str...
bf40548355739031e06907400196137bae5e6414
C#
DmitryiDerepovskyi/Port
/ManagerPort.SupportClass/ValidateInputData.cs
3.203125
3
using System; using System.Text.RegularExpressions; namespace ManagerPort.SupportClass { public static class ValidateInputData { public static int InputId() { var id = 0; var isId = false; while (!isId) { isId = Int32.TryParse(Con...
40a0d37ae0e50d692e7fdb307e405e42b6cb5b99
C#
AntoineMer/Papyrus-master
/dllConnec/connection.cs
2.953125
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 dllConnec { public class Connection { public SqlConnection DBConnection; public Connection() { ...
a8f439330b875d121cd28601e64f6a5a46ead654
C#
Plamen-Angelov/C-sharp-Advanced
/Generics/EX08Threeuple/Tuple.cs
2.875
3
using System; using System.Collections.Generic; using System.Text; namespace EX07Tuple { public class Tuple <T, V, U> { public T Item1 { get; set; } public V Item2 { get; set; } public U Item3 { get; set; } public Tuple() { } public Tuple(T item1, V...
b2b4d2d5157a838f712e5c0ff633333ae1495545
C#
JZO001/Forge
/.Legacy/Forge.Base/Collections/IEnumeratorSpecialized.cs
3.03125
3
/* ********************************************************************* * Date: 18 Apr 2012 * Created by: Zoltan Juhasz * E-Mail: forge@jzo.hu ***********************************************************************/ using System.Collections.Generic; namespace Forge.Collections { /// <summary> /// IEnume...
4a10dd77acabf1361cd6fb722ecfdb52503d7b35
C#
chaseedward/2015-Winter-IT-FDN-105
/Chase.Hu/Homework 4/Homework 4/Program.cs
2.828125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Homework_4 { class Program { static void Main(string[] args) { int[] numbers = new int[] { 5, -2, 100, 12, 4, -5 }; Console.WriteLine(numbers.M...
521ff36ec9388a4bfe0018917ead437e47cab833
C#
snakeddp/CookieCore
/Cookie.IO/BigEndian.cs
3.09375
3
using System.Runtime.CompilerServices; namespace Cookie.IO { internal static unsafe class BigEndian { [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static short ReadInt16(byte* src) { return (short) ((src[0] << 8) | src[1]); } [MethodImpl(Meth...
34c48d61cf927954a30504157b0d6848eddabe37
C#
juhatkoiv/TwinStickSurvival
/Assets/Scripts/General/Game.cs
2.796875
3
using UnityEngine; using UnityEngine.Events; /* * A general class for the Game. * - spawns player * - keeps count of kills * - handles Quitting and some events */ public class Game : MonoBehaviour { // TODO - find more suitable place for these public static UnityEvent EnemyKilledEvent = new UnityEvent()...
8f1b6d15830f067e1a1318618fd0c45652148450
C#
smartpcr/DataStructure
/UnitTests/HeapTest.cs
3.046875
3
using System.Collections.Generic; using System.Diagnostics; using DataStructure.Heaps; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace UnitTests { [TestClass] public class HeapTest { [TestMethod] public void BuildMinHeap() { List<int> items = new List<int>() { 11,28,314,3,156,561,401,...
4f20996ae1732e0cbddae90f6d776f25628a9a48
C#
maki1997/PlatformeZaObjektnoProgramiranje
/NOVI PROJEKAT SF 12 GUI/SF-12-2016/SF-12-2016/Model/DodatnaUsluga.cs
2.859375
3
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SF_12_2016.Model { [Serializable] public ...
64f45284771d24ba54ac252a56f2056f2a606d17
C#
john-oluwasanmi/VTest
/V.Test.Web.App/Repository/EmployeeRepository.cs
2.59375
3
using System; using System.Collections.Generic; using System.Data.SqlTypes; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using V.Test.Web.App.Entities; using V.Test.Web.App.Repository.Interface; name...
d3556529cc6899d8d3648487913d257513d4a3de
C#
nullsquid/ANOMIA
/Assets/Scripts/EnemySensor.cs
2.59375
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemySensor : MonoBehaviour { public Vector3 directionToSearch = new Vector3(0f, 0f, 2f); Node _nodeToSearch; Board _gameBoard; bool _foundPlayer = false; public bool FoundPlayer { get ...
62baba4a93fa9020b8f4ad0e1e564e66d558d53d
C#
PhilhouseT/PhilToDo
/PhilToDo/DataLoadHandler.cs
2.953125
3
using System; using System.IO; using System.Windows; using System.Xml.Serialization; namespace PhilToDo { public static class DataFileHandler { // Check that the target directory for the data file exists. Create it if not. public static bool CheckDirectory() { try ...
2e13623c510b80f4c00c9a389279a20ed849b3d8
C#
ChipDTIS/Mitsubishi
/NC20.Web/JwtHelper.cs
2.703125
3
using Jose; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NC20.Web { public class JwtHelper { public static readonly string jwtSecretKey = "CBPTSecretKey"; public static string CreateJwtToken(string accessToken, Da...
2c0a724c6f9ff0eb04fd8501003d2fef0f9cd5ca
C#
srimani75/TwitterApp
/StepWise/Apps/WebUW3/StepwiseWebClient/StepwiseWebClient/BLL/Common.cs
2.75
3
using System; using System.Text.RegularExpressions; using System.Collections.Specialized; using System.Data.SqlClient; using System.Xml; //used for xml dom parsing using System.Xml.XPath; using System.Reflection; using Optum.StepWise.WebClient.BE; using Optum.StepWise.WebClient.BE.Enums; using Optum.StepWise.Common.Lo...
33e8ecacbe5c0ea2ab6f17cbafdbd1089ade417f
C#
luismoax/Competitive-Programming---luismo
/COJ_ACCEPTED/1601 Sequences of Digits.cs
3.59375
4
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //1601 Sequences of Digits int tc = int.Parse(Console.ReadLine()); for (int c = 0; c < tc; c+...
65207e2ddcdad43233d9c7e9b640ce69ddeb01c4
C#
akarnokd/Reactive4.NET
/Reactive4.NET/operators/FlowableEnumerable.cs
2.6875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Reactive4.NET.operators { internal sealed class FlowableEnumerable<T> : AbstractFlowableSource<T> { readonly IEnumerable<T> enumerable; interna...
77df1d387bfca8213a0e19ef7cc573a7f0c6ef9b
C#
omariomadureira/sistema-matricula
/Models/Registry.cs
2.515625
3
using SistemaMatricula.DAO; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using SistemaMatricula.Helpers; namespace SistemaMatricula.Models { public class Registry { public Guid IdRegistry { get; set; } public Grid Grid { get; set; } publi...
dc08ab17bd1683c8380ab03a5996703f51b42a72
C#
jfpsb/Algoritmos2
/SurplusDeficit/Program.cs
3.3125
3
using System; namespace AtividadeNDamas { class Program { static int surplus = 0; static void Main(string[] args) { while (true) { string[] input = Console.ReadLine().Split(); int s = int.Parse(input[0]); int d = ...
ffb5f5ffac380c976916c8be85cb02b49cb06f7f
C#
PetLahev/VBE_Modules
/VBEModules/Business/Utils.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Windows.Forms; using Microsoft.Vbe.Interop; using VbeComponents.Resources; namespace VbeComponents.Business { public static class Utils { /// <summary> /// Checks if given path e...
8105cb9b10c31570bc269900af5087f414ac6ce7
C#
lanicon/FlaUI.Adapter.White
/src/FlaUI.Adapter.White/AutomationSearchCondition.cs
2.65625
3
using System.Collections.Generic; using FlaUI.Core.Conditions; using FlaUI.Core.Definitions; namespace FlaUI.Adapter.White { public class AutomationSearchCondition { private readonly List<ConditionBase> _conditions = new List<ConditionBase>(); public static ConditionFactory ConditionFactory =>...
974fcef34bb4eac3e0b6ef2f140d31f16e203d36
C#
OlegAxenow/FastGuid
/FastGuid.Tests/StaticDataGeneration.cs
3
3
using System; using System.Text; using NUnit.Framework; namespace FastGuid.Tests { [TestFixture] public class StaticDataGeneration { /// <summary> /// Length of the "StaticData.BitsFromHex" to compare while parsing. /// Not 256 to allocate less memory for "StaticData.BitsFromHex". /// </summary> private ...
33dbf3a9325eae52808ed7ae3eabe8cc4940091f
C#
Krishnendu1995/employee-management-system
/employee management system/Program.cs
3.5
4
using System; namespace employee_management_system { class Program { static void Main(string[] args) { employee obj = new employee(); Console.WriteLine("Enter Employee Name"); obj.setName(Console.ReadLine()); Console.WriteLine("Enter Employee Ad...
400d078870a2777b35d209226e6d452099e874d3
C#
ShiranuiNui/CGSS_EventBorder_To_Discord
/StarlightDeck_To_Discord/Program.cs
2.6875
3
using System; using System.Net; using System.Linq; using System.Collections.Generic; using Newtonsoft.Json; using System.Threading.Tasks; using DSharpPlus; using System.Reactive; using NCrontab; namespace StarlightDeck_To_Discord { class Program { //args[0] = API Key //args[1] = Target Channel...
f737687c4d31cea3d4e7f6fbfa730edbd2e95944
C#
kishonadiaz/CsharpClasswork
/FileAccess/FileAccess/Program.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; namespace FileAccess { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] ...
3cac62bf826330923107a2a4ad4f5068510562c1
C#
A000917542/FirstASPNetCoreWebsite
/FirstASPNetCoreWebsite/Models/Product.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.AspNetCore.Mvc; namespace FirstASPNetCoreWebsite.Models { public class Product { [Key] ...
e67cbe6970643a451f32e6398171b679b65e7a38
C#
DotNetFrameWork/Tracy.Frameworks
/DEV/Tracy.Frameworks/Tracy.Frameworks.RedisConfig/HostCollection.cs
2.8125
3
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; namespace Tracy.Frameworks.RedisConfig { public class HostCollection : ConfigurationElementCollection { public HostCollection() { HostConfig details = (HostConfig)Creat...
1cbc3f9edbd6a8e4a1da2f17dab12121e5cb68bb
C#
sami-lab/Software-House-Web
/SoftwareHouseWeb/Data/Repositories/EmployeeRepository.cs
2.640625
3
using SoftwareHouseWeb.Data.Interfaces; using SoftwareHouseWeb.Data.Models.Employee; using SoftwareHouseWeb.ViewModel.Administration; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SoftwareHouseWeb.Data.Repositories { public class EmployeeRepository : IE...
71bb8f94068a6459483ffef76f84283bb551ff84
C#
peterGeorgeAlfred/Scholarship-Application
/Scholarship Application/Helper/IntializerData.cs
2.75
3
using Microsoft.AspNetCore.Identity; using Scholarship_Application.Data; using Scholarship_Application.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Scholarship_Application.Helper { public static class IntializerData { public static...
f42e24cfdf224ff3b05c11affe568b6bd6ecf9fc
C#
Pyotr23/Algorithm
/Codewars/RailFenceCipher/Program.cs
3.375
3
using System; using System.Collections.Generic; using System.Linq; namespace Codewars.Three.RailFenceCipher { internal static class Program { static void Main() { Console.WriteLine(Encode("WEAREDISCOVEREDFLEEATONCE", 3)); Console.WriteLine(Decode("WECRLTEERDSOEEFEAOCAIV...
83757ac0866b61a3151824690a9be264bc13e422
C#
Bogidaev/GzipTest
/Test/Extension/StreamEextension.cs
3.25
3
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Text; namespace Test.Extension { public static class StreamExtensions { /// <summary> /// Копирование стрима /// </summary> /// <param name="src">Текущи...
eb889cbadfe0cfd99a2a292f0de1e10d23176c08
C#
TheJP/stebs
/ProcessorSimulation/MpmParser/IMpmFileParser.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProcessorSimulation.MpmParser { /// <summary> /// Parser, which takes raw configuration strings or configuration files and extract information for the mpm (micro program memory) and th...
a184883298f4f9ba560bb02fc2fa688f155ff6cd
C#
shendongnian/download4
/code6/1112952-29176306-86318829-2.cs
2.75
3
private bool IsTaskItemExists(Outlook.TaskItem oTaskItem) { Outlook.NameSpace ns = null; Outlook.MAPIFolder tasksFolder = null; Outlook.Items taskFolderItems = null; Outlook.TaskItem task = null; Outlook.Application outlookA...
f22507933064824037d0693d39f2424dc91a712c
C#
angelroma/House_PM
/House_PM_WCF/Service1.svc.cs
2.71875
3
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; namespace House_PM_WCF { // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in code,...
3faf637f3cb3bb8b48197b6203943bfe8d6ea79b
C#
agracio/edge-js
/performance/BookService/Program.cs
2.609375
3
using System; using System.Net.Http; using System.Net.Http.Headers; using System.ServiceModel; using System.Web.Http; using System.Web.Http.SelfHost; namespace BookService { public class Book { public string title = "Run .NET and node.js in-process with edge.js"; public object author = new { f...
6164c9eb575052e065e2341846cb76a04ae6d87d
C#
nasascience/Pixbind3D
/BBWT.Web/UploadHandler.ashx.cs
2.703125
3
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.IO; namespace BBWT.Web { /// <summary> /// Summary description for UploadHandler /// </summary> public class UploadHandler : IHttpHandler { public void ProcessRequest(HttpContext context) ...
5d3a2d6ae1b5d84584b71de34e4e1307674e8105
C#
war-man/Ecommerce-1
/Library/Models/LayoutMeta.cs
2.65625
3
using System.ComponentModel.DataAnnotations; namespace Library.Models { public class LayoutMeta { public int Id { get; set; } // Id (Primary key) [Required(ErrorMessage = "Please select the layout container")] ///<summary> /// Id kho chứa layout ///</summary> pu...
0d987497b8689cde8975024178c70e4cb2b8e1d0
C#
meet1993shah/azure-sdk-for-net
/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperation.cs
2.53125
3
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Linq; using System.Threading; using Azure.AI.TextAnalytics.Tests; using Azure.Core.TestFramework; using NUnit.Framework; namespace Azure.AI.TextAnalytics.Sample...
3f21f4a0a15275f19b0aa2ed064539d56e1a233a
C#
xabre/xamarin-forms-tab-badge
/Source/Plugin.Badge.UWP/Extensions.cs
2.71875
3
using Windows.UI.Xaml.Media; using Xamarin.Forms; namespace Plugin.Badge.UWP { public static class Extensions { public static Windows.UI.Color ToWindowsColor(this Color color) { return Windows.UI.Color.FromArgb((byte)(color.A * 255), (byte)(color.R * 255), (byte)(color.G * 255), (b...
bad04f2a71e7bbfc750b792e01af284182b21383
C#
janssener/AdventOfCode
/AdventOfCode/Day12.cs
3.171875
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AdventOfCode { public class ProgramCommInfo { public List<string> CommPrograms; public string CurrentProgName { get; set; } public ProgramCom...
414766593c4ac4bffc6273ceed3f96e360e4f634
C#
rkoning/UnityNetworking
/Assets/Scripts/Spells/SpellEffects/DealDamage.cs
2.71875
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DealDamage : SpellEffect { public float damage; public bool hitOnce = true; private List<GameObject> hits; public override void Cast() { hits = new List<GameObject>(); } public override void...
8f8b7fd981b2cb2364ee500060b27e2893de6f81
C#
akkadotnet/Alpakka
/src/SignalIR/Akka.Streams.SignalR/Events.cs
2.71875
3
using Microsoft.AspNet.SignalR; namespace Akka.Streams.SignalR { /// <summary> /// A common interface for all events incoming from SignalR socket. /// /// Available event types are: /// - <see cref="Received"/> /// - <see cref="Connected"/> /// - <see cref="Disconnected"/> /// - <see ...
aa4a630f0d1e276697f69c09c1843c6fc9a0b5e2
C#
tzm1119/Positron
/src/Positron.UI/Builder/PositronUiBuilderExtensions.cs
2.578125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; namespace Positron.UI.Builder { /// <summary> /// Extensions for <see cref="IPositronUiBuilder"/>. /// </summary> public static class Posi...
cf50270dc4978dc7b4801ba78e9a41fab39ad585
C#
caneq/Warehouse
/Warehouse.BusinessLogicLayer/Models/ClientRequestFilterParams.cs
2.546875
3
using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Text; using Warehouse.DataAccessLayer.Models; namespace Warehouse.BusinessLogicLayer.Models { public class ClientRequestFilterParams { public int? Id { get; set; } public string ApplicationUserId { get;...
776d056015ba133616290897d8c829bb5703ab99
C#
G1ANT-Robot/G1ANT.Addon.Appium
/G1ANT.Addon.Appium/Commands/AppiumButtonCommand.cs
2.515625
3
using System; using G1ANT.Language; using OpenQA.Selenium.Appium.Android; using OpenQA.Selenium.Remote; namespace G1ANT.Addon.Appium { [Command(Name = "appium.button", Tooltip = "This command clicks choden element.")] public class ButtonCommand : Language.Command { public class Arguments : Command...
fa985d3add536d34bd12eb6c82e92347512d4872
C#
BronzeRonze/AdventOfCode2019
/AdventCode19/Day 2/ProgramAlarm.cs
3.109375
3
using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System; using System.IO; namespace AdventCode19 { class ProgramAlarm { public static void StartProgramSequence() { using (StreamReader reader = new StreamReader("F:\\Programm...
950cdd81156993bc791bee03229eede78edb0ec0
C#
chelotron/PhoneBook
/MVCPhone/appPhone/appPhone/ViewModels/PhoneBookViewModel.cs
2.671875
3
 namespace appPhone.ViewModels { using appPhone.Models; using appPhone.Services; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Xamarin.Forms; public class PhoneBookViewModel:BaseViewModel { #region Attributes private Obse...
b094b4b56e05d3c9eb2d60b5877afa52cd841176
C#
arnold191997/SampleMVC
/SampleMVC/Services/Method/CustomerService.cs
2.6875
3
using SampleMVC.Models; using SampleMVC.Services.Interface; using SampleMVC.Utilities; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; namespace SampleMVC.Services.Method { public class CustomerService : ICustomerService { ...
6f2ac7364e2f799027e282e9791dc7ef12c7cb93
C#
Saladinas/SquaresCounting
/src/DevbridgeSquares/Models/PointsListForUpdate.cs
2.90625
3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace DevbridgeSquares.Models { public class PointsListForUpdate { public PointsListForUpdate(int id, string name, List<Point> points) { ...
2c79789287014f1374124cc5c699114542117440
C#
shendongnian/download4
/first_version_download2/482567-43501349-143500933-4.cs
2.6875
3
static void Main(string[] args) { AlwaysCreateNewDatabase(); CarBrand hondaDb = null; using (var context = new MyContext()) { hondaDb = context.CarBrands.Add(new CarBrand {Name = "Honda"}).Entity; context.SaveChanges(); ...
f18b729c9a46e41ad318bff0560d9e2b20073806
C#
Igonzalezz/PDT
/BE-PDT/BE-PDT/Controllers/UserController.cs
2.640625
3
using BE_PDT.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 namespace BE_...
9ee0f47f7ccdff443785ec90b175206508635ca4
C#
AlexandrTolstov/ProcessProgramm
/ProcessProgramm/Program.cs
2.796875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProcessProgramm { class Program { static void Main(string[] args) { foreach (Process process in Process.GetProcesses()) ...
1e2470f7c0ee54b2339ccec9b38aeece3a03715c
C#
magnus80/at
/USSS/Helpers/ReaderMail.cs
2.5625
3
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Sockets; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using AT; using AT.WebDriver; namespace USSS.Helpers { class ReaderMail { public void Read...
29f3a817f5d8aba5d6d0f19429024728cfbf700d
C#
nesmeyanov/C-begining
/HomeWork7/HomeWork7/Car.cs
3.28125
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HomeWork7 { abstract class Car { public event EventHandler<string> Finish; public int MaxSpeed { get; set; } public int CurrentSpeed { get; set; } p...
717e5e044d50b2983a98c3ce9fa3469f48c0255f
C#
GrishinM/PO
/Circle.cs
3.875
4
using System; namespace Lab1 { /// <summary> /// A circle is a shape consisting of all points in a plane that are a given distance from a given point, the centre /// </summary> public class Circle : Figure { private double r; public Circle(Vector a, double r) : base(a) { ...
deb8fb8ab0ca5b0cb9a716dcf17806097bed595c
C#
gertjvr/ModernWPF
/ModernWPF.Client/Features/Converters/HorizontalAlignmentToTextAlignmentConverter.cs
2.75
3
using System; using System.Globalization; using System.Windows; using System.Windows.Data; namespace ModernWPF.Client.Features.Converters { public class HorizontalAlignmentToTextAlignmentConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, Cultu...
f585e699793e63591e0bab97236e5c6dc27ea67f
C#
dezlorator/ElementaryTasks
/NumericalSequence/Controler.cs
3.1875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ClientUI; using ArgumentsValidator; namespace NumericalSequence { class Controler { #region private IArgumentsValidator argumentsValidator; private const int SIZE...
eb7f42532b196c2af37241a1fdc42ec8b2eaff54
C#
stevensrf11/Droplet
/src/DropletSln/WpfAppCore/Helpers/ColumnBindingHelper.cs
2.875
3
using System.Windows; using System.Windows.Data; namespace WpfAppCore.Helpers { /// <summary> /// ColumnBindingHelper object /// Used in xaml binding of grid column /// </summary> public class ColumnBindingHelper { #region Fields /// <summary> /// BindingPath Attached Depen...
c8e130afb697d641d56101b6f603ff8fb3007c0f
C#
jeffijoe/messageformat.net
/src/Jeffijoe.MessageFormat/Parsing/Literal.cs
3.234375
3
// MessageFormat for .NET // - Literal.cs // Author: Jeff Hansen <jeff@jeffijoe.com> // Copyright (C) Jeff Hansen 2014. All rights reserved. namespace Jeffijoe.MessageFormat.Parsing { /// <summary> /// Represents a position in the source text where we should look for format patterns. /// </summary> ...
14ffeb5fe9a8281f593e32263b0e0d2aadfa1823
C#
mykeels/ScrapR
/ScrapR.Models/TrvStart/Query.cs
2.734375
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ScrapR.Models.TrvStart { public class Query { public Locale locale { get; set; } public Travellers travellers { get; set; } public string tripType {...
878247ee6cfaf14ad4e9d82e2bd35a55b90437b7
C#
matteocontrini/Textify
/Textify.Tests/ListsTests.cs
2.734375
3
using Xunit; namespace Textify.Tests { public class ListsTests : BaseTest { [Theory] [InlineData("<ul></ul>", "")] [InlineData("<ul><li>Test 1</li></ul>", "* Test 1")] [InlineData("<ul><li>Test 1</li><li>Test 2</li><li>Test 3</li></ul>", "* Test 1\n* Test 2\n* Test 3")] ...
fc9f2a8db2f0903f0607e19744da2050d36a8202
C#
olcan123/Apskaita5vNext
/Source/Apskaita5.DAL.Common/MicroOrm/EntityContextNotFoundException.cs
2.6875
3
using System; namespace Apskaita5.DAL.Common.MicroOrm { public class EntityContextNotFoundException : Exception { public EntityContextNotFoundException(Type entityType, string query, SqlParam[] parameters) : base (string.Format(Properties.Resources.DbEntityContextNotFoundException, entity...
819cdb468685c36aef517ae5183adaa64d92fa39
C#
CristianBarragan/Shop
/Service/Mappers/CategoryMapper.cs
2.84375
3
using DataModelEntities; using DtoEntities; using Service.IMappers; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Service.Mappers { public class CategoryMapper : ICategoryMapper { public CategoryMapper() {} public CategoryDTO getDT...
1901df3fb35218fd078e5d25a6a7fe600b1dfd40
C#
mff-uk/exolutio
/Model/OCL/Types/CollectionType.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Exolutio.Model.OCL.Types { /// <summary> /// CollectionType describes a list of elements of a particular given type. CollectionType is a concrete metaclass whose /// instances are the family of abstract...
eefc8c72ed70d5d365e24656bf13cab39eba01ae
C#
Innos/Soft-Uni-Homework
/CSharp Basics Homework/06HomeworkConditionalStatements/HomeworkConditionalStatements/06TheBiggestOfFiveNumbers/TheBiggestOfFiveNumbers.cs
3.984375
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class TheBiggestOfFiveNumbers { static void Main(string[] args) { Console.WriteLine("Input 5 numbers each at a seperate line:"); double[] num = new double[5]; for (int i ...
cc587b5ad03c2b56892a0e9f1e757e26d9db6062
C#
thiagoguardado/autoshot
/Assets/scripts/Weapons/WeaponCrateFactory.cs
2.53125
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class WeaponBoxFactory : MonoBehaviour { public static WeaponBoxFactory Instance { get; private set; } public WeaponBox WeaponBoxPrefab; public void Awake() { Instance = this; } public WeaponBox...
cb8df347bb989fb1f43833bfc243611d08e4ab1d
C#
EstebanGuru/Obl-ProgDeRedes
/ServerLogHost/Program.cs
2.625
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; using System.ServiceModel.Description; using System.Configuration; namespace ServerLogHost { class Program { static void Main(string[] args) { ...
93c25bf2228ecdacff9c5470dbe9740fa222c7ba
C#
PlumpMath/DesignPatterns-404
/DesignPatterns/Creational/Abstract Factory/ProductA1.cs
2.578125
3
using System; namespace DesignPatterns.Creational.Abstract_Factory { class ProductA1 : IAbstractProductA { public void PrintProductName() { Console.WriteLine("ProductA1"); } } }
35bb087795c7274898fe6526a0bfbc4dcbac483e
C#
Alireza1044/AP96972
/Assignment13/Assignment13Tests/PrivacyScrubberTest.cs
2.796875
3
using System; using Logger; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace LoggerTest { [TestClass] public class PrivacyScrubberTest { [TestMethod] public void SinglePhoneNumberTest() { string piiNum = "(517)303-5279"; string scrubbedPII = "(...
49138f3ec313be2b744a0ae562ffa34a35a9b9a0
C#
balackLT/adventOfCode
/src/AdventOfCode.Solutions2020/Day09/Solution.cs
2.921875
3
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using AdventOfCode.Executor; namespace AdventOfCode.Solutions2020.Day09; public class Solution : ISolution { public int Day { get; } = 9; public string SolveFirstPart(Input input) { var codes = input ...
b75f21366b20990f131ce69e720ffe4839f14f0a
C#
umhr/FullScreenWebBrowser
/FullScreenWebBrowser/FullScreenWebBrowser/MultiScreen.cs
2.953125
3
using System; using System.Drawing; using System.Windows.Forms; namespace FullScreenWebBrowser { class MultiScreen { public Rectangle rectangle() { Rectangle result = new Rectangle(0, 0, 0, 0); Rectangle temp = new Rectangle(0, 0, 0, 0); // ディスプレイの解像度を取得するに...
984093c6d4911a4ab0743471a42ec6a0081aeb5d
C#
SachaVanleene/WonderCrash
/Assets/Scripts/UI/Personalities.cs
2.765625
3
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Personality { public string titre, nom, profession, age, description, atout, handicap, bouton; } public static class Personalities { private static Dictionary<int, Personality> _conv = new Dictionary<int, Personality>...
32f30acb97940f854866a7e15525860c39da1b08
C#
Cinchoo/ChoETL
/src/Test/ChoManifoldWriterTest/Program.cs
2.578125
3
using ChoETL; using NUnit.Framework; using System; using System.Collections.Generic; using System.Dynamic; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace ChoManifoldWriterTest { [TestFixture] [SetCulture("en-US")] // TODO: Check if...
2867530f95cc361fd169951fc1ad0321d82afb72
C#
AnthonyMoscoso/WalletProyect-.net-core
/Core.Entities/Utilities/EntityGenerator/Abstracts/IRandomValueGenerator.cs
3.296875
3
using System; using System.Collections.Generic; using System.Reflection; using System.Text; namespace Core.Entities.Utilities.EntityGenerator.Abstracts { public interface IRandomValueGenerator { /// <summary> /// Generate a random char /// </summary> /// <returns>a random char<...
a58e30a6e694ea8daae17de9827ca384cb6e8886
C#
starshayayord/crack
/src/Yord.Crack.Begin/LeetCode/Task1470.cs
3.484375
3
namespace Yord.Crack.Begin.LeetCode { // дан массив [x1,x2,x3....,y1,y2,y3..] вернуть [x1,y1,x2,y2...]. 2N - длина массива. Все числа - неотрицательные. public class Task1470 { public static int[] Shuffle(int[] nums, int n) { var r = new int[nums.Length]; for (int i =...
94bdd04fc7cef9011af9f58a9a5c87b78c215a89
C#
944414275/WPF-FunctionTest
/WpfChartTest1/MainWindow.xaml.cs
2.625
3
using Microsoft.Research.DynamicDataDisplay.DataSources; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using Syst...
d087556aa214e27bd9b5aad2679b7947564291a8
C#
dp433/CodewarsTasks
/Tests/NextBiggerNumberTest.cs
2.96875
3
using System; using NUnit.Framework; using NextBiggerNumber; namespace Tests { [TestFixture] class NextBiggerNumberTest { [Test] public void Test1() { Console.WriteLine("****** Small Number"); Assert.AreEqual(21, Kata.NextBiggerNumber(12)); Assert.AreEqua...
65127b618c9793ed92a811e5e29b5ad34ab3f162
C#
LambertW/DesignPattern
/DesignPattern.Visitor/Demo2/Goods.cs
2.5625
3
namespace DesignPattern.Visitor.Demo2 { public abstract class Goods { public abstract void Operate(Visitor visitor); public int Size { get; set; } public int State { get; set; } } }
db1637a7c7fddd56ebee41f06a1039ab85785068
C#
Svichkaryov/CA
/Matrix.cs
3.296875
3
using System; using System.Collections.Generic; using System.Runtime.Serialization; namespace Matrix { [Serializable()] public class Matrix : ISerializable { public Matrix(SerializationInfo info, StreamingContext ctxt) { rows = (int)info.GetValue("rows", typeof(int)); ...
2bd7849f0cca20ea8c450eb30e834e7f0db5c4cd
C#
ProyectoL4/Recurso
/RRHHPlanilla/RRHH.BL/BusquedaBL.cs
2.59375
3
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RRHH.BL { public class BusquedaBL { private SqlConnection conexion = new SqlConnection("Data Source = (localdb)\\MSSQLLocalDB; I...
bd9b663b38d56d14e1f1263fc76bda3c4bd152af
C#
IgnorantCoder/AutomaticDifferentiation
/sample/csharp/Sample/CallOptionPricerBottomup.cs
2.875
3
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sample { class CallOptionPricerBottomup { private Dictionary<String, Double> Result { get; } public Double Price { get { ...
1c44a9ff4714df5f503544c721a3f8974b1eff8b
C#
pcbender/AxosoftAPI.NET
/AxosoftAPI.NET/Helpers/CustomerConverter.cs
2.59375
3
using System; using System.Collections.Generic; using System.Linq; using AxosoftAPI.NET.Models; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace AxosoftAPI.NET.Helpers { public class CustomerConverter : JsonConverter { public override bool CanWrite { get { // This forces Json.NET to use th...
1248bf66ec56ce94c030ca9d1e03debc0dd77a06
C#
UniversityOfAppliedSciencesFrankfurt/LearningApi
/LearningApi/src/MLAlgorithms/GaussianMeanFilter/GaussianFilter.cs
3.140625
3
using LearningFoundation; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace GaussianAndMeanFilter { public class GaussianFilter : IPipelineModule<double[,,], double[,,]> { /// <summary> /// /// </summary> /// <param name...
3480be903a6aa41757aa9fa12bcdecc872fee8af
C#
singhsugga/dating-api
/Extensions/Extensions.cs
2.859375
3
using System; using System.Linq; using System.Net; using System.Net.Sockets; using DatingAPI.Helpers; using Microsoft.AspNetCore.Http; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace DatingAPI.Extensions { public static class Extensions { public static void AddApplicationError(thi...
7f1a8a38175b7ea807873219306f7608c57a15cf
C#
shendongnian/download4
/code1/183094-3485658-7265743-2.cs
2.953125
3
public class Car { public Car(float gravity, float speed) { Gravity = gravity; Speed = speed; } protected float Gravity { get; private set; } ...