content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.IO; namespace NanoSerializer.Mappers { internal class EnumMapper : TypeMapper { public override bool Can(Type type) { return type.BaseType == typeof(Enum); } public override void Set(ref NanoReader reader) { var value ...
21.259259
59
0.555749
[ "MIT" ]
SeletskySergey/NanoSerializer
NanoSerializer/Mappers/EnumMapper.cs
576
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" f...
28.921569
93
0.679322
[ "Apache-2.0" ]
KenHundley/aws-sdk-net
sdk/src/Core/Amazon.Runtime/Internal/AutoConstructedTypes.cs
1,477
C#
using System; using AutoTest.Core.DebugLog; namespace AutoTest.Core.Configuration { public interface ILocateWriteLocation { string GetLogfile(); string GetConfigurationFile(); } }
16.166667
38
0.757732
[ "MIT" ]
acken/AutoTest.Net
src/AutoTest.Core/Configuration/ILocateWriteLocation.cs
194
C#
using System; using System.Text; using System.Collections; using System.IO; using t = CodeGenerator.ParseTree; using a = CodeGenerator.Application; namespace CodeGenerator { public class Main { public Main(string connection, string parentNamespace, string outputDir, bool isCs) : this(connec...
41.561111
103
0.548723
[ "MIT" ]
ic4f/codegenerator
CodeGenerator/Main.cs
7,481
C#
using Microsoft.AspNetCore.Http; using System.Threading.Tasks; namespace Toggly.FeatureManagement.Web { public class HttpFeatureContextProvider : IFeatureContextProvider { private readonly IHttpContextAccessor _httpContextAccessor; public HttpFeatureContextProvider(IHttpContextAccessor httpCo...
40.639344
126
0.657927
[ "MIT" ]
ops-ai/Toggly.FeatureManagement
Toggly.FeatureManagement.Web/HttpFeatureContextProvider.cs
2,481
C#
/* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. Copyright (C) 2012-2015 Michael Möller <mmoeller@openhardwaremonitor.org> */ using System.Collecti...
49.894737
85
0.714135
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Epsil0neR/openhardwaremonitor-core
Hardware/HDD/SSDMicron.cs
2,847
C#
namespace ProcessesTheater.Core { using System.Threading; /// <summary> /// Cause interface. /// </summary> public interface ICause { /// <summary> /// Check cause for effect. /// </summary> /// <param name="cancellationToken"> Cancellation token. </param> ...
26
73
0.579186
[ "MIT" ]
vasmanas/ProcessesTheater
src/ProcessesTheater.Core/ICause.cs
444
C#
using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; using hf.Models; using hf.Repository; namespace hf.Controllers { public class OrderController : Controller { ...
27.109244
105
0.518289
[ "Apache-2.0" ]
Lyntier/haarlemfestival
hf/Controllers/OrderController.cs
3,228
C#
// Url:https://leetcode.com/problems/largest-time-for-given-digits /* 949. Largest Time for Given Digits Easy Given an array of 4 digits, return the largest 24 hour time that can be made. The smallest 24 hour time is 00:00, and the largest is 23:59.&#xA0; Starting from 00:00, a time is larger if more time has elapse...
16.877551
146
0.679565
[ "MIT" ]
tarunbatta/leetcodeScraper
problems/cs/949.cs
827
C#
using UnityEngine; using UnityEngine.UI; /** */ public class UI_updater : MonoBehaviour { public Text gem_text; /*!< Reference to a text object in the UI */ private int gems_aquired = 0; /*!< Internal count of the gems collected */ private int total_gems = 0; /*!< Internal count of the gems co...
29.457143
99
0.645975
[ "MIT" ]
Kiandisor/Walking-Simulator-Assessment
Assets/Scripts/UI/UI_updater.cs
1,033
C#
using System; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using NLog; using NLog.Web; using LogLevel = Microsoft.Extensions.Logging.LogLevel; namespace ExamQuestion { public class Program { public static void Main(string[] args) ...
29.978261
127
0.568528
[ "MIT" ]
rtbsoft/examQuestionCore
ExamQuestion/Program.cs
1,379
C#
using System; namespace MoneyManager.SaraivaDev.API.Models.Dto { public class EntryCollectionListDto { public string Id { get; set; } public string AccountId { get; set; } public short EntryType { get; set; } public DateTime EntryConfirmedDate { get; set; } public DateT...
30.555556
56
0.627273
[ "MIT" ]
carlosaraiva/MoneyManager
MoneyManager.SaraivaDev.API/Models/Dto/EntryCollectionListDto.cs
552
C#
using MediaBrowser.Common; using MediaBrowser.Common.Updates; using MediaBrowser.Model.Updates; using MediaBrowser.Theater.Interfaces.Navigation; using MediaBrowser.Theater.Interfaces.Presentation; using MediaBrowser.Theater.Interfaces.ViewModels; using System; using System.Linq; using System.Threading; using System.W...
34.208333
176
0.595006
[ "MIT" ]
thogil/MediaBrowser.Theater
MediaBrowser.Theater.Core/Plugins/PluginCategoryListViewModel.cs
3,286
C#
using System; namespace MaryHelp.Util { public static class Utilities { public static double ConvertTimeBase60To100(double hour) { double hrReturn; int result; if (!int.TryParse(hour.ToString(), out result)) { string minutesBase1...
31.909091
160
0.551994
[ "MIT" ]
apezzatto/pulito.NET
MaryHelp/Util/Util.cs
1,406
C#
using System; using System.Collections.Generic; using System.Linq; namespace Aeon.Emulator.Memory { /// <summary> /// Simple memory allocator for reserving regions of conventional memory. /// </summary> internal sealed class MetaAllocator { private readonly LinkedList<Allocation> allocatio...
38.328947
152
0.543426
[ "Apache-2.0" ]
gregdivis/Aeon
src/Aeon.Emulator/Memory/MetaAllocator.cs
5,828
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; namespace CoralEngine { public class Marker : Entity { ...
20.25
39
0.780864
[ "MIT" ]
AngeloG/Coral
Entities/Marker.cs
326
C#
using CommandLine; namespace Teronis.DotNet.Build.CommandOptions { [Verb(PackCommand)] public class PackCommandOptions : CommandOptionsBase { public const string PackCommand = "pack"; public override string Command => PackCommand; } }
20.769231
56
0.7
[ "MIT" ]
BrunoZell/Teronis.DotNet
src/DotNet/Build/Build/src/CommandOptions/PackCommandOptions.cs
272
C#
using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Pathoschild.Stardew.Common; using StardewModdingAPI; namespace Pathoschild.Stardew.ChestsAnywhere.Framework { /// <summary>The mod configuration.</summary> internal class ModConfig { /********* ** Accessors *********/ ...
43.507463
101
0.626758
[ "MIT" ]
CrimsonTautology/StardewMods
ChestsAnywhere/Framework/ModConfig.cs
2,915
C#
using component.logger.data.log.Model; using component.logger.data.log.Repositories; using component.logger.platform.common.Enums; using System; using System.Collections.Generic; using System.Linq; namespace component.logger.platform.common { public class LogConfigurations { #region Private Variable ...
44.927419
244
0.603482
[ "MIT" ]
iotconnect-apps/AppConnect-AirQualityMonitoring
iot.solution.log.common/LogConfigurations.cs
5,573
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated...
42.375
81
0.628319
[ "MIT" ]
Ondrejmuran4691/Open-Lab-05.03
Open-Lab-05.03/Open-Lab-05.03/obj/Release/netcoreapp3.0/Open-Lab-05.03.AssemblyInfo.cs
1,017
C#
namespace MandateThat { public class MandateContext<T> { protected internal MandateContext(MandateContext<T> parentContext) : this(parentContext.ParamName, parentContext.Value) { ParentContext = parentContext; ParentContext.HasChild = true; } ...
27.291667
106
0.593893
[ "MIT" ]
lyonl/MandateThat
MandateThat/MandateContext.cs
657
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.Management.Network.Models { public partial class EffectiveNetworkSecurityGroup { ...
38.558442
143
0.510946
[ "MIT" ]
AzureDataBox/azure-sdk-for-net
sdk/testcommon/Azure.Management.Network.2020_04/src/Generated/Models/EffectiveNetworkSecurityGroup.Serialization.cs
2,969
C#
using Microsoft.EntityFrameworkCore.Migrations; using System; using System.Collections.Generic; namespace EventManagement.Registration.Data.Migrations { public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { } protected over...
19.95
71
0.699248
[ "MIT" ]
atanas-georgiev/EventManagement
EventManagement.Registration/EventManagement.Registration.Data/Migrations/20180321114956_Initial.cs
401
C#
using DevPodcasts.DataLayer.Models; using MediatR; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Threading.Tasks; namespace DevPodcasts.Web.Features.Library { public class ListEpisodes { public class Query : IRequest<ViewModel> { public...
31.40678
82
0.560173
[ "MIT" ]
NRKirby/DevPodcasts
src/DevPodcasts.Web/Features/Library/ListEpisodes.cs
1,855
C#
using System; using System.Collections.Generic; using SMBSharesUtils; using CommandLine; using System.IO; using System.Linq; namespace ShareMapperCLI { class Program { class CommonOptions { [Option('d', "debug", Required = false, Default = false)] public bool Debug { get; set; } } class DirScanMTO...
31.782511
226
0.696296
[ "BSD-3-Clause" ]
dabi0ne/SharesMapper
SharesMapperCLI/Program.cs
14,177
C#
#pragma checksum "C:\Users\FOladiji\Engineering45\Labs\Lab_32_MVC_Core\Views\Products\Details.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "84f2141fcd8dfea176d0eb810441bad643922d95" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typ...
50.731544
298
0.660934
[ "MIT" ]
femiola12/Solutions
Lab_32_MVC_Core/obj/Debug/netcoreapp2.1/Razor/Views/Products/Details.cshtml.g.cs
15,118
C#
#pragma warning disable 1591 //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerat...
24.516129
132
0.563421
[ "MIT" ]
SkillsFundingAgency/das-employercommitments
src/SFA.DAS.EAS.Web/Views/Shared/ApprenticeshipUpdate.generated.cs
7,603
C#
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using MyJetWallet.Sdk.Service; namespace Service.TutorialSecurity { public class ApplicationLifetimeManager : ApplicationLifetimeManagerBase { private readonly ILogger<ApplicationLifetimeManager> _logger; public ApplicationLifetimeManager(...
35.285714
117
0.805668
[ "MIT" ]
MyJetEducation/Service.TutorialSecurity
src/Service.TutorialSecurity/ApplicationLifetimeManager.cs
743
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace System.Reflection.Metadata { public struct CustomAttributeTypedArgument<TType> { private readonly TType _type; private readonly objec...
23.142857
101
0.589506
[ "MIT" ]
controlflow/srm-extensions
src/System.Reflection.Metadata.Extensions/Decoding/CustomAttributeTypedArgument.cs
650
C#
using System.Collections; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Linq.Expressions; namespace Orchard.DisplayManagement.Shapes { public class Composite : DynamicObject { protected readonly IDictionary<object, object> _props = new Dictionary<object, objec...
26.378049
108
0.503159
[ "BSD-3-Clause" ]
CityOfAuburnAL/orchard2
src/Orchard.DisplayManagement/Shapes/Composite.cs
6,491
C#
using Application.Common.Interfaces; using Application.Common.Models; using Application.Entities; using MediatR; namespace Application.Features.URLGroups; public record CreateUrlGroupCommand(string Name) : IRequest<CQRSResponse>; public class CreateUrlGroupValidator : IValidator<CreateUrlGroupCommand> { public ...
30.119048
111
0.743083
[ "Apache-2.0" ]
andrewtomas/url-shortener
backend/Application/Features/UrlGroups/CreateUrlGroup.cs
1,267
C#
namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// <summary> /// <para>表示 [GET] /wxaapi/newtmpl/getcategory 接口的请求。</para> /// </summary> public class WxaApiNewTemplateGetCategoryRequest : WechatApiRequest, IInferable<WxaApiNewTemplateGetCategoryRequest, WxaApiNewTemplateGetCategoryResponse> { ...
32.7
158
0.740061
[ "MIT" ]
OrchesAdam/DotNetCore.SKIT.FlurlHttpClient.Wechat
src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/NewTemplate/WxaApiNewTemplateGetCategoryRequest.cs
345
C#
using System.Collections.Generic; using System.Globalization; using Mobet.Dependency; using Mobet.Localization.Configuration; using Mobet.Localization.Settings; namespace Mobet.Localization.Sources { /// <summary> /// Null object pattern for <see cref="ILocalizationSource"/>. /// </summary> public clas...
27.734375
109
0.629296
[ "Apache-2.0" ]
Mobet/mobet
Mobet-Net/Mobet.Localization/Sources/NullLocalizationSource.cs
1,775
C#
using System; using System.Collections.Generic; using Microsoft.ApplicationServer.Caching; using nz.govt.moe.idp.saml.client.session; namespace dk.nita.saml20.ext.appfabricsessioncache { class AppFabricSession : ISession { private static readonly DataCacheFactory CacheFactory = new DataCacheFactory();...
34.983333
177
0.545021
[ "Apache-2.0" ]
nz-govt-moe-skysigal/nz.govt.moe.idp.saml.client.asp.net
_Extra/dk.nita.saml20.ext.AppFabricSessionCache/AppFabricSession.cs
2,101
C#
using System; using System.IO; using Xamarin.Forms; using Notes.Models; namespace Notes { public partial class NoteEntryView : ContentView { public NoteEntryView() { InitializeComponent(); } void OnSaveButtonClicked(object sender, EventArgs e) { ...
25.208333
101
0.520661
[ "MIT" ]
Mahtaran/xamarin-forms-samples
build-2020/step-3/Notes/NoteEntryPage.xaml.cs
1,212
C#
// Copyright (c) 2011-2020 Roland Pheasant. All rights reserved. // Roland Pheasant licenses this file to you under the MIT license. // See the LICENSE file in the project root for full license information. using System; // ReSharper disable once CheckNamespace namespace DynamicData { /// <summary> /// Sourc...
40.444444
183
0.638736
[ "MIT" ]
1R053/DynamicData
src/DynamicData/Cache/SourceCacheEx.cs
1,458
C#
// <copyright file="Cosmos9Tests.cs" company="Automate The Planet Ltd."> // Copyright 2018 Automate The Planet Ltd. // 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/lice...
20.257188
85
0.4282
[ "Apache-2.0" ]
AutomateThePlanet/Meissa
CompareRunnersTestsProject/Cosmos9Tests.cs
12,681
C#
#region License /* The MIT License Copyright (c) 2008 Sky Morey Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,...
45.436782
120
0.682014
[ "MIT" ]
BclEx/BclEx-Web
src/System.WebEx/_Unsorted_/zWeb+Abstractions/HttpApplicationStateBase.cs
3,953
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="SparkplugApplication.cs" company="Hämmer Electronics"> // The project is licensed under the MIT license. // </copyright> // <summary> // Defines the SparkplugApplication type. /...
38.870968
127
0.537759
[ "MIT" ]
BiancoRoyal/SparkplugNet
src/SparkplugNet/VersionA/SparkplugApplication.cs
1,208
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System;...
35.727273
145
0.631679
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
tests/Interop/Windows/um/winnt/XSTATE_CONTEXTTests.cs
1,574
C#
// Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT // 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. // Unless requir...
63.056338
250
0.764574
[ "Apache-2.0" ]
NakedObjectsGroup/NakedObjectsFramework
NakedObjects/NakedObjects.Reflector/FacetFactory/DescribedAsAnnotationFacetFactory.cs
4,477
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Security.Cryptography.Certificates { #if __ANDROID__ || __IOS__ || NET46 || __WASM__ [global::Uno.NotImplemented] #endif public partial class KeyStorageProviderNames { #if __ANDROID__ || __IOS_...
37.303571
153
0.778842
[ "Apache-2.0" ]
nv-ksavaria/Uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Security.Cryptography.Certificates/KeyStorageProviderNames.cs
2,089
C#
using SoundByte.Core.Items.Playlist; using SoundByte.Core.Items.Podcast; using SoundByte.Core.Items.Track; using SoundByte.Core.Items.User; // ReSharper disable UnusedAutoPropertyAccessor.Global namespace SoundByte.Core.Items.Generic { /// <summary> /// An item that can be muiltiple things /// </summa...
24.08
54
0.664452
[ "MIT" ]
mediabuff/SoundByte
SoundByte.Core/Items/Generic/GroupedItem.cs
604
C#
// ===================================================================== // This file is part of the Microsoft Dynamics CRM SDK code samples. // // Copyright (C) Microsoft Corporation. All rights reserved. // // This source code is intended only as a supplement to Microsoft // Development Tools and/or on-line doc...
39.985075
114
0.522272
[ "MIT" ]
Bhaskers-Blu-Org2/Dynamics365-Apps-Samples
samples-from-msdn/Queries/UserQueryAndSavedQuery.cs
16,076
C#
using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; using static WalletWasabi.Tor.Http.Constants; namespace WalletWasabi.Tor.Http.Models { public class HeaderSection { public List<HeaderField> F...
28.783505
110
0.684456
[ "MIT" ]
BTCparadigm/WalletWasabi
WalletWasabi/Tor/Http/Models/HeaderSection.cs
5,584
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Configuration; using osu.Framework.Configuration.Tracking; using osu.Framework.Graphics...
40.711864
193
0.603455
[ "MIT" ]
02Naitsirk/osu
osu.Game.Tests/Visual/UserInterface/TestSceneOnScreenDisplay.cs
4,689
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.RazorPages; namespace TicketShopWebApplication.Pages { public class AboutModel : PageModel { public string Message { get; set; } public void OnGet() { ...
20.631579
59
0.668367
[ "MIT" ]
TeknikhogskolanGothenburg/ticketSystem-team-terminator
src/TicketShopWebApplication/Pages/About.cshtml.cs
394
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class UIPopup_Credit : MonoBehaviour { public UIButton btnClose; internal void Init() { this.btnClose.onClick.Add(new EventDelegate(() => { this.gameObject.SetActive(false); ...
16.76
57
0.627685
[ "MIT" ]
VontineDev/ProjectA
Dev/AlphaTest/Assets/Scripts/UserInterface/UIPopup_Credit.cs
421
C#
using JetBrains.Annotations; namespace CGTK.Utilities.Singletons { #if ODIN_INSPECTOR using MonoBehaviour = Sirenix.OdinInspector.SerializedMonoBehaviour; #else using MonoBehaviour = UnityEngine.MonoBehaviour; #endif //TODO: Check for multiple instances on loading a different scene. /// <summary> Singleton fo...
24.32
142
0.6875
[ "MIT" ]
Walter-Hulsebos/Utilities.Singletons
Runtime/MonoBehaviour/MonoBehaviourSingleton_Ensured.cs
2,432
C#
//@#$&+ // //The MIT X11 License // //Copyright (c) 2010 - 2017 Icucom Corporation // //Permission is hereby granted, free of charge, to any person obtaining a copy //of this software and associated documentation files (the "Software"), to deal //in the Software without restriction, including without limitation...
43.530733
124
0.689956
[ "MIT" ]
Platform-Agile-Software/PAF-Community
PlatformAgileFrameworkCore/PlatformAgileFrameworkCoreStandard/Manufacturing/Core_ManufacturingUtils.cs
36,827
C#
using System.Text; using Spectre.Console; namespace ThemesOfDotNet.Indexing; public static class GitHubActions { public struct Group : IDisposable { public void Dispose() { EndGroup(); } } public static bool SeenErrors { get; private set; } public static bool...
27.598639
80
0.441952
[ "MIT" ]
terrajobst/themesof.net
src/ThemesOfDotNet.Indexing/GitHubActions.cs
4,057
C#
// // System.Collections.Generic.List // // Authors: // Ben Maurer (bmaurer@ximian.com) // Martin Baulig (martin@ximian.com) // Carlos Alberto Cortez (calberto.cortez@gmail.com) // David Waite (mass@akuma.org) // // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com) // Copyright (C) 2005 ...
23.537688
85
0.588439
[ "MIT" ]
GrapeCity/pagefx
mono/mcs/class/corlib/System.Collections.Generic/List.cs
18,736
C#
namespace Phenix.Unity.AI.BT { [TaskIcon("TaskIcons/Idle.png")] public class Idle : Action<IdleImpl> { } [System.Serializable] public class IdleImpl : ActionImpl { /*public float time = 0; float _startTimer = 0; public override void OnTurnBegin() { bas...
22.727273
76
0.521333
[ "MIT" ]
phenix1021/PhenixDotNet
PhenixUnity/src/AI/BT/Actions/Idle.cs
752
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Bolw...
37.702703
84
0.749104
[ "MIT" ]
AnnaGalvao/Boletim
BolwtimEscolar/Properties/AssemblyInfo.cs
1,396
C#
using UnityEngine; using Unity.MLAgents; using Unity.MLAgents.Actuators; using Unity.MLAgentsExamples; using Unity.MLAgents.Sensors; [RequireComponent(typeof(JointDriveController))] // Required to set joint forces public class WormAgent : Agent { const float m_MaxWalkingSpeed = 10; //The max walking speed...
38.929245
118
0.667273
[ "Apache-2.0" ]
pengzhi1998/ml-agents
Project/Assets/ML-Agents/Examples/Worm/Scripts/WormAgent.cs
8,253
C#
using System; using System.Linq; using System.Collections.Generic; namespace WizardCastle { internal static partial class Game { public static void RevealMapCell(State state, MapPos loc) => state.Map[loc].Known = true; public static void HideMapCell(State state, MapPos loc) => ...
33.613333
123
0.482745
[ "MIT" ]
Baavgai/Wizards-Castle-40th-Anniversary-CSharp-Edition
Reorg/Game/Map.cs
2,523
C#
namespace Miruken.Mvc.Console { using System; public abstract class FrameworkElement { public Size Size { get; set; } public Size DesiredSize { get; set; } public Size ActualSize { get; set; } publ...
32.353659
77
0.492273
[ "MIT" ]
Miruken-DotNet/miruken.mvc
Source/Miruken.Mvc.Console/FrameworkElement/FrameworkElement.cs
2,655
C#
using MediatR; using System.Threading; using System.Threading.Tasks; using DAS_Capture_The_Flag.Application.Models.GameModels; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNetCore.Identity; using DAS_Capture_The_Flag.Data; using System.Linq; namespace DAS_Captur...
31.62069
117
0.740458
[ "MIT" ]
SkillsFundingAgency/das-apprentice-learning
src/SFA.DAS.CaptureTheFlag.Web/Handlers/GetPlayerDetails/GetPlayerDetailsHandler.cs
919
C#
using Diga.WebView2.Interop; using System; using Diga.WebView2.Wrapper.EventArguments; namespace Diga.WebView2.Wrapper.Handler { public class MoveFocusRequestedEventHandler : ICoreWebView2MoveFocusRequestedEventHandler { public event EventHandler<MoveFocusRequestedEventArgs> MoveFocusRequested; ...
29.733333
105
0.732063
[ "MIT" ]
ITAgnesmeyer/Diga.WebView2
Archive/V9430/Diga.WebView2.Wrapper.V9430/Handler/MoveFocusRequestedEventHandler.cs
894
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
47.157407
153
0.644021
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/IItemAnalyticsWithReferenceRequest.cs
5,093
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // The Regex class represents a single compiled instance of a regular // expression. using System.Collections; usin...
34.965203
218
0.5497
[ "MIT" ]
OceanYan/corefx
src/System.Text.RegularExpressions/src/System/Text/RegularExpressions/Regex.cs
42,203
C#
using Microsoft.Extensions.Configuration; using MongoDB.Driver; using SkillSearchAPI.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SkillSearchAPI.Data { public class SkillSearchContext : ISkillSearchContext { public SkillSearchCont...
36.1
145
0.735919
[ "MIT" ]
LokeOnFire/SkillTracker
src/SkillSearch/SkillSearchAPI/Data/SkillSearchContext.cs
1,085
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace CpsDbg { using System; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Reflect...
37.590551
123
0.576875
[ "MIT" ]
AArnott/vs-threading
src/SosThreadingTools/DebuggerContext.cs
4,776
C#
using Abp; using System; using System.Collections.Generic; using System.Linq; namespace FuelWerx.MultiTenancy.Demo { public static class MyRandomHelper { public static List<T> GenerateRandomizedList<T>(IEnumerable<T> items) { List<T> ts = new List<T>(items); List<T> ts1 = new List<T>(); while (ts.Any<T>...
20.043478
71
0.668113
[ "MIT" ]
zberg007/fuelwerx
src/FuelWerx.Core/MultiTenancy/Demo/MyRandomHelper.cs
461
C#
 using Microsoft.EntityFrameworkCore; using YoutubeWithFriends.Db.Models; namespace YoutubeWithFriends.Api.Data { public class DbApiContext : DbContext { public DbApiContext(DbContextOptions<DbApiContext> options) : base(options) { } public DbSet<Room> Rooms { get; set; } ...
29.95
76
0.677796
[ "MIT" ]
PapyrusCompendium/YoutubeWithFriends
backend/YoutubeWithFriends.Db/Data/DbApiContext.cs
601
C#
namespace ContosoUniversity.Web.ViewModels { public class ChangePasswordViewModel { [Required] [DataType(DataType.Password)] [Display(Name = "Current Password")] public string OldPassword { get; set; } [Required] [StringLength(100, ErrorMessage = "The {0} must b...
36.666667
125
0.633766
[ "MIT" ]
DanielPHobbs/Contoso-University
ContosoUniversity.Web/ViewModels/ChangePasswordViewModel.cs
772
C#
using System; using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; using Renci.SshNet.Sftp; namespace Renci.SshNet.Tests.Classes.Sftp { [TestClass] public class SftpFileStreamTest_Ctor_FileModeCreate_FileAccessRead : SftpFileStreamTestBase { private Random _random; private ...
30.035714
189
0.602854
[ "MIT" ]
0xced/SSH.NET
src/Renci.SshNet.Tests/Classes/Sftp/SftpFileStreamTest_Ctor_FileModeCreate_FileAccessRead.cs
1,684
C#
using System; using FashiShop.Core.Entity; namespace FashiShop.Model { public class OrderDetail { public OrderDetail() { Cancelled=false; Discount=0; } public int OrderID { get; set; } public int ProductID { get; set; } publi...
24.8
53
0.537097
[ "MIT" ]
saidahmetbayrak/FashiShop
FashiShop.Model/OrderDetail.cs
620
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Storage; using System.Windows.Forms; using System.Threading; namespace FancyTool { class Program { static void Main(string[] args) { ...
23.64
184
0.697124
[ "MIT" ]
MoeexT/FancyToys
Tools/FancyTool/Program.cs
591
C#
using System.Collections.Generic; // Auto-generated file from T4 template. using System; using System.Numerics; namespace Urho3DNet.InputEvents { #region Touchscreen touch public partial interface IInputListener { /// <summary> /// Called when a Touchscreen touch begin event has occurred. ...
38.756098
90
0.62146
[ "MIT" ]
gleblebedev/Urho3DNet.Extras
src/Urho3DNet.InputEvents/Touch.cs
6,358
C#
// This code has been based from the sample repository "cecil": https://github.com/jbevain/cecil // Copyright (c) 2020 - 2021 Faber Leonardo. All Rights Reserved. https://github.com/FaberSanZ // This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) using System; namespace LSharp.IL {...
20.121212
96
0.685241
[ "MIT" ]
FaberSanZ/L-Sharp
Src/LSharp.IL/MemberReference.cs
1,992
C#
// ----------------------------------------------------------------------------- // 让 .NET 开发更简单,更通用,更流行。 // Copyright © 2020-2021 Furion, 百小僧, Baiqian Co.,Ltd. // // 框架名称:Furion // 框架作者:百小僧 // 框架版本:2.9.4 // 源码地址:Gitee: https://gitee.com/dotnetchina/Furion // Github:https://github.com/monksoul/Furion // 开源协议:...
39.6125
140
0.513411
[ "Apache-2.0" ]
lxhcnblogscom/Furion
framework/Furion/EventBus/Extensions/EventBusServiceCollectionExtensions.cs
3,498
C#
using AdventHelper; using Day4; AdventTextReader reader = new AdventTextReader(); string inputLocation = $"data.txt"; var bingoGame = reader.GetListFromFile(inputLocation); string numbers = bingoGame.First(); bingoGame.RemoveAt(0); Bingo bingo = new Bingo(numbers); var boards = bingo.SetupBoards(bingoGame); bingo.Pla...
25.846154
54
0.779762
[ "MIT" ]
SamA21/AdventOfCode2021
AdventOfCode2021/Day4/Program.cs
338
C#
/*Write a program that finds the most frequent number in an array. Example: {4, 1, 1, 4, 2, 3, 4, 4, 1, 2, 4, 9, 3}  4 (5 times) */ using System; class MostFrequentNumber { static void Main() { int[] array = { 4, 1, 1, 4, 2, 3, 4, 4, 1, 2, 4, 9, 3 }; int start = 1; int end = 1; ...
24.131579
89
0.371865
[ "MIT" ]
froddo/CSharp-More
Arrays/MostFrequentNumber/MostFrequentNumber.cs
921
C#
using Unity.Entities; using Unity.Animation; using Unity.DataFlowGraph; using Unity.Mathematics; using Unity.Transforms; public struct RigRemapSetup : ISampleSetup { public BlobAssetReference<Clip> SrcClip; public BlobAssetReference<RigDefinition> SrcRig; public BlobAssetReference<RigRemapTable> R...
44.294118
156
0.742098
[ "MIT" ]
Steven9Smith/Mixamo-For-Unity-DOTS
Assets/Scenes/Advanced/AnimationRigRemap/RigRemapGraphSystem.cs
3,765
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
44.083333
94
0.672968
[ "MIT" ]
PeterPartridge/DependancyInjectionFrameworks
AutoFacDependancyInjectionFrameworks/obj/Debug/netcoreapp2.1/AutoFacDependancyInjectionFrameworks.AssemblyInfo.cs
1,058
C#
using DataStructuresLib.Sequences.Periodic1D; using EuclideanGeometryLib.BasicMath.Tuples; using EuclideanGeometryLib.BasicMath.Tuples.Immutable; namespace MeshComposerLib.Geometry.PointsPath.Space3D { public sealed class PlanarXyPointsPath3D : PSeqMapped1D<ITuple2D, ITuple3D>, IPointsPath3D { ...
24.571429
72
0.598837
[ "MIT" ]
ga-explorer/GMac
MeshComposerLib/MeshComposerLib/Geometry/PointsPath/Space3D/PlanarXyPointsPath3D.cs
862
C#
using global::System; using NUnit.Framework; using NUnit.Framework.TUnit; using Tizen.NUI.Components; using Tizen.NUI.BaseComponents; namespace Tizen.NUI.Devel.Tests { using tlog = Tizen.Log; [TestFixture] [Description("internal/Common/FontMetrics")] public class InternalFontMetricsTest { ...
37.447514
99
0.605488
[ "Apache-2.0", "MIT" ]
Inhong/TizenFX
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Common/TSFontMetrics.cs
6,780
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Enochian.UnitTests { public static class AssertUtils { public static void NoErrors(IConfigurable obj) { if (obj.Errors != null) ...
34.298246
124
0.558568
[ "MIT" ]
kulibali/enochian
source/Enochian.UnitTests/AssertUtils.cs
1,957
C#
using ApprovalTests; using ArteLogico.GisGlue.Contracts; using Newtonsoft.Json; using NUnit.Framework; using System.IO; namespace ArteLogico.GisGlue.Tests.Contracts { [TestFixture] public class ExtentConverterTests { [Test] public void WriteJson_WhenSerializingAnExtent_ThenTheFormatMatches...
29.2
86
0.610731
[ "Apache-2.0" ]
jcarrascal/ArcGisJsonSharp
ArteLogico.GisGlue.Tests/Contracts/ExtentConverterTests.cs
878
C#
using BaZic.Core.ComponentModel.Assemblies; using BaZic.Core.Tests.Mocks; using BaZic.Runtime.BaZic.Code.AbstractSyntaxTree; using BaZic.Runtime.BaZic.Code.Parser; using BaZic.Runtime.BaZic.Runtime; using BaZic.Runtime.BaZic.Runtime.Debugger.Exceptions; using Microsoft.VisualStudio.TestTools.UnitTesting; using System....
46.13442
250
0.712696
[ "MIT" ]
Acidburn0zzz/BaZic
Tests/BaZic.Runtime.Tests/BaZic/Runtime/BaZicInterpreterTest.cs
22,654
C#
// <copyright file="SendingNotificationDataRepository.cs" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> namespace Microsoft.Teams.Apps.CompanyCommunicator.Common.Repositories.NotificationData { using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; ...
44.393939
134
0.697611
[ "MIT" ]
Brasoftware-Inovacao/microsoft-teams-apps-company-communicator
Source/Microsoft.Teams.Apps.CompanyCommunicator.Common/Repositories/NotificationData/SendingNotificationDataRepository.cs
1,467
C#
using System; using System.Net; using System.Net.Sockets; using Lib; namespace RemoteTaskManagerConsoleServer { internal class Program { private static readonly TcpListener _serverSocket = new TcpListener(IPAddress.Any, NetworkSettings.ServerPort); private static TcpClient _clientSocket = default(TcpClient); ...
22.095238
113
0.699353
[ "CC0-1.0" ]
23S163PR/network-programming
Shevchuk-Yuganets.Andrew/RemoteTaskManager/RemoteTaskManagerConsoleServer/Program.cs
930
C#
using IdentityServer4.EntityFramework.Options; using Microsoft.AspNetCore.ApiAuthorization.IdentityServer; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Options; using WorldCities.Data.Models; namespace WorldCities.Data { public class ApplicationDbContext : ApiAuthorizationDbContext<ApplicationU...
30.045455
82
0.723147
[ "MIT" ]
FlorianMeinhart/ASP.NET-Core-5-and-Angular
Chapter_11/WorldCities/Data/ApplicationDbContext.cs
663
C#
namespace IconsReminder.DAL { using Model; using System; using System.Collections.ObjectModel; using System.Linq; public class DataSource { public static ObservableCollection<IItem> IconsItems { get; set; } = new ObservableCollection<IItem>(); public static ObservableCollection...
34.807018
118
0.664315
[ "MIT" ]
SudeepPradhan/Reminder-with-Icons
IconsReminder/IconsReminder.DAL/DataSource.cs
1,986
C#
using UnityEngine; namespace BDFramework.Editor.Tools { static public class EditorGUIHelper { readonly static public GUIStyle TitleStyle =new GUIStyle() { fontSize = 25, normal = new GUIStyleState() { textColor = Color.red ...
20.892857
71
0.478632
[ "Apache-2.0" ]
HugoFang/BDFramework.Core
Assets/Code/BDFramework/Editor/Tools/EditorGUIHelper.cs
585
C#
using System; namespace OrmBasics { public class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); } } }
15.076923
47
0.494898
[ "MIT" ]
cailyngallup/OrmBasics
src/OrmBasics/Program.cs
198
C#
namespace AuthApi.Contracts { using MongoDB.Bson; /// <summary> /// Specifies the data of a database user. /// </summary> public interface IDatabaseUser : IUser { /// <summary> /// Gets the mongodb id. /// </summary> ObjectId Id { get; } } }
18.4
46
0.586957
[ "MIT" ]
MichaelDiers/micro-frontend
backend/AuthApi/AuthApi/Contracts/IDatabaseUser.cs
278
C#
using Improbable; using Improbable.Worker; using ItemGenerator; using ItemGenerator.Resources; using RogueFleet.Asteroids; using RogueFleet.Core; using RogueFleet.Items; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Thread...
41.398734
259
0.580492
[ "MIT" ]
SionoiS/AsteroidWorker
ECS/ResourceGeneratorSystem.cs
6,543
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiInterface(nativeType: typeof(IWafv2WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument), fullyQualifiedName: "aws.Wafv2WebAclRuleStatementAndStatementStatementSqliMatchStatemen...
43.419355
262
0.733284
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/IWafv2WebAclRuleStatementAndStatementStatementSqliMatchStatementFieldToMatchSingleQueryArgument.cs
1,346
C#
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.ComponentModel; using EasyGenerator.Studio.PropertyTools; using EasyGenerator.Studio.Utils; using System.Xml.Serialization; namespace EasyGenerator.Studio.Model.UI { ...
22.653333
59
0.562095
[ "CC0-1.0" ]
Pinckyang/easygenerator
EasyGenerator/EasyGenerator.Studio/Model/UI/GUIModule.cs
1,713
C#
using System.Collections.Generic; using ZedSharp.Models.Enums; namespace ZedSharp.Models.Leagues { public class LeagueList { public string Name { get; set; } public Tier Tier { get; set; } public Queue Queue { get; set; } public List<LeagueEntry> Entries { get; set; } } }
22.785714
54
0.633229
[ "MIT" ]
NitashEU/ZedSharp
ZedSharp/Models/Leagues/LeagueList.cs
321
C#
//Problem 8. Extract sentences //Write a program that extracts from a given text all sentences containing given word. //Example: //The word is: in //The text is: We are living in a yellow submarine. We don't have anything else. //Inside the submarine is very tight. So we are drinking all the day. We will move out o...
26.326087
194
0.633361
[ "MIT" ]
Gecata-/CSharp--Part2-Telerik
StringsAndTextProcessing/08.ExtractSentences/08.ExtractSentences.cs
1,215
C#
using System; using Microsoft.Extensions.DependencyInjection; namespace EasyNetQ.DI.Microsoft { /// <inheritdoc /> public class ServiceCollectionAdapter : IServiceRegister { private readonly IServiceCollection serviceCollection; /// <summary> /// Creates an adapter on top of IS...
33.709091
170
0.582794
[ "MIT" ]
EasyNetQ/EasyNetQ
Source/EasyNetQ.DI.Microsoft/ServiceCollectionAdapter.cs
3,708
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ViewModelBase.cs" company=""> // // </copyright> // <summary> // Defines the ViewModelBase type. // </summary> // -------------------------------------------------------------...
31.819444
133
0.555216
[ "Apache-2.0" ]
EfimKR/PdfCutter
PdfCutter/Helpers.cs
2,291
C#
// This file is part of CycloneDX BOM Repository Server // // 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 // // Unless required by applica...
34.368421
87
0.70291
[ "Apache-2.0" ]
CycloneDX/cyclonedx-bom-repo-server
src/CycloneDX.BomRepoServer/Models/BomIdentifier.cs
1,314
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace DAnTE.Inferno { partial class frmMADPar { /// <summary> /// Required designer variable. /// </summary> p...
42.227778
171
0.579529
[ "Apache-2.0" ]
ashokapol/Inferno4Proteomics
Inferno/Data/frmMADPar.Designer.cs
7,601
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace Pollster.Models { public class PollDefinition { public const string POLL_STATE_UNSCHEDULE = "Unscheduled"; public const string POLL_STATE_SCHEDULE = "Scheduled"; pu...
23.238095
66
0.556011
[ "Apache-2.0" ]
Doug-AWS/aws-sdk-net-samples
Talks/ndcoslo-2017/Pollster/Pollster/Models/PollDefinition.cs
1,466
C#
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using System; using System.Threading; using System.Threading.Tasks; using Microsoft.PowerShell.EditorServices.Utility; namespace Microsoft.PowerShell.EditorServi...
35.896104
127
0.625543
[ "MIT" ]
Benny1007/PowerShellEditorServices
src/PowerShellEditorServices/Console/WindowsConsoleOperations.cs
2,764
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using MixedRealityExtension.Core; using MixedRealityExtension.Core.Types; using MixedRealityExtension.Patching.Types; using MixedRealityExtension.Util; using Godot; using MRECollisionDetectionMode = MixedRealityExtension.Co...
22.714903
128
0.649235
[ "MIT" ]
Samsung/mixed-reality-extension-godot
MREGodotRuntimeLib/Patching/PatchingUtils.cs
10,517
C#