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.Collections.Generic; using System.Text; using System.Windows.Threading; using MvvmTools.Extensions; using MvvmTools.Services; using Unity; namespace MvvmTools.ViewModels { public class T4UserControlViewModel : BaseViewModel { #region Data private string _initialBuff...
33.567347
179
0.530764
[ "Apache-2.0" ]
HFMS-LHB/Mvvm-Tools
MvvmTools/ViewModels/T4UserControlViewModel.cs
8,226
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using ProductsArchive.Infrastructure.Persistence; #nullable disable namespace Product...
37.190828
109
0.460403
[ "MIT" ]
MatteoZampariniDev/ProductsArchive
src/Infrastructure/Persistence/Migrations/ApplicationDbContextModelSnapshot.cs
25,143
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace GenExampleRuntimeT4 { class Program { public const string OutputFileName = "Main.cs"; public const string TargetProject = "TargetRuntimeT4"; pu...
33.558824
93
0.653812
[ "MIT" ]
mdobro1/AgileCodeGeneration
AgileCodeGen/GenExampleRuntimeT4/Program.cs
1,143
C#
using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; namespace NP.PDD.MainApp { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); #if DEBUG this.AttachDevTools(); #endif } private void InitializeCompo...
17.304348
44
0.585427
[ "MIT" ]
npolyak/NP.PrototypeDrivenDevelopmentSample
CompleteApp/src/NP.PDD.MainApp/MainWindow.axaml.cs
398
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
28.219512
81
0.611063
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/ContainerService/V20180801Preview/Inputs/ManagedClusterAddonProfileArgs.cs
1,157
C#
using System; using System.Runtime.InteropServices; namespace Vanara.PInvoke.VssApi { /// <summary>Contains the methods used by VSS to manage shadow copy volumes.</summary> // https://docs.microsoft.com/en-us/windows/win32/api/vsprov/nn-vsprov-ivssfilesharesnapshotprovider [PInvokeData("vsprov.h", MSDNShortId = "N...
49.182315
193
0.684948
[ "MIT" ]
DigitalPlatform/Vanara
PInvoke/VssApiMgd/vsprov.cs
107,908
C#
using System; using System.IO; namespace JsonAnaLex { class Program { static void Main(string[] args) { string pathEntrada, pathSalida; if (args.Length > 1) { pathEntrada = args[0]; pathSalida = args[1]; try ...
27.571429
78
0.389341
[ "MIT" ]
fatimalmada/fpuna-compiladores
Tarea1/JsonAnaLex/Program.cs
1,354
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="PushPackageCommand.cs" company="Hukano"> // Copyright (c) Hukano. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license inf...
37.91
122
0.583223
[ "MIT" ]
hugener/Sundew.Packaging.Publish
Source/Sundew.Packaging.Publish/Internal/Commands/PushPackageCommand.cs
3,793
C#
using Microsoft.CodeAnalysis; using System; using System.CodeDom.Compiler; using System.IO; namespace InlineMapping.Configuration { internal sealed class ConfigurationValues { public ConfigurationValues(GeneratorExecutionContext context, SyntaxTree tree) { var options = context.AnalyzerConfigOptions....
40.8125
124
0.704441
[ "MIT" ]
monoman/InlineMapping
src/InlineMapping/Configuration/ConfigurationValues.cs
1,959
C#
#region COPYRIGHT© 2009-2014 Phillip Clark. All rights reserved. // For licensing information see License.txt (MIT style licensing). #endregion using System; using System.Text; namespace FlitBit.Core.Buffers { /// <summary> /// Helper class for writing little-endian binary data to a buffer. /// </summary> ...
32.53125
81
0.579571
[ "MIT" ]
flitbit-org/fbcore
FlitBit.Core/Buffers/BufferWriter.little-endian.cs
3,126
C#
using System.Collections.Generic; namespace Cumulocity.SDK.Client.Rest.Model.Event { public sealed class CumulocityAlarmStatuses : IAlarmStatus { public static readonly CumulocityAlarmStatuses ACTIVE = new CumulocityAlarmStatuses("ACTIVE", InnerEnum.ACTIVE); public static readonly CumulocityAlarmStatuses ACKNOW...
24.328947
132
0.750135
[ "MIT" ]
SoftwareAG/cumulocity-sdk-cs
REST-SDK/src/Cumulocity.SDK.Client/Rest/Model/Event/CumulocityAlarmStatuses.cs
1,851
C#
// // CVPixelBufferPoolSettings.cs: Implements settings for CVPixelBufferPool // // Authors: Marek Safar (marek.safar@gmail.com) // // Copyright 2012-2014, Xamarin Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the //...
26.829787
81
0.73751
[ "BSD-3-Clause" ]
1975781737/xamarin-macios
src/CoreVideo/CVPixelBufferPoolSettings.cs
2,522
C#
/* * Copyright 2010-2013 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 "l...
37.145631
213
0.625457
[ "Apache-2.0" ]
virajs/aws-sdk-net
AWSSDK_DotNet35/Amazon.Glacier/Model/Internal/MarshallTransformations/InventoryRetrievalJobDescriptionUnmarshaller.cs
3,826
C#
namespace FluentMigrator.Runner.Processors.Oracle { public class OracleDbFactory : ReflectionBasedDbFactory { public OracleDbFactory() : base("Oracle.DataAccess", "Oracle.DataAccess.Client.OracleClientFactory") { } } }
26.7
87
0.662921
[ "Apache-2.0" ]
Athari/FluentMigrator
src/FluentMigrator.Runner/Processors/Oracle/OracleDbFactory.cs
269
C#
namespace EnvironmentAssessment.Common.VimApi { public class AuthorizationPrivilege : DynamicData { protected string _privId; protected bool _onParent; protected string _name; protected string _privGroupName; public string PrivId { get { return this._privId; } set { this._privId = v...
12.854545
50
0.602546
[ "MIT" ]
octansIt/environmentassessment
EnvironmentAssessment.Wizard/Common/VimApi/A/AuthorizationPrivilege.cs
707
C#
using NBitcoin; using Xels.Bitcoin.EventBus; namespace Xels.Bitcoin.Features.MemoryPool { /// <summary> /// Event that is executed when a transaction is removed from the mempool. /// </summary> /// <seealso cref="EventBase" /> public class TransactionRemovedFromMemoryPool : EventBase { ...
38.756757
101
0.643654
[ "MIT" ]
xels-io/SideChain-SmartContract
src/Xels.Bitcoin.Features.MemoryPool/TransactionRemovedFromMemoryPool.cs
1,436
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Threading.Tasks; using OCP.ExternalModule; namespace OCP.Class { public class ConnectionLoggerDecorator : IConnection { private IConnection _Decorated; private ISession _Session; private ILogger _L...
28.185185
106
0.60184
[ "MIT" ]
merieskelinen/SolidPrinciplesWorkshop
SOLID.Principles.Workshop/OCP/Class/ConnectionLoggerDecorator.cs
1,524
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Net; using System.Threading.Tasks; using Microsoft.Azure.Docu...
38.914352
198
0.564868
[ "Apache-2.0", "MIT" ]
RanjeetKumar27/azure-functions-host
test/WebJobs.Script.Tests.Integration/WebHostEndToEnd/EndToEndTestsBase.cs
16,813
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace IdentityManagerTest { public class WebApiApplication : System.Web.HttpApplication { protected void Applic...
27.916667
70
0.716418
[ "MIT" ]
cridasua/identity-manager-test
IdentityManagerTest/IdentityManagerTest/Global.asax.cs
672
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Tests { [TestClass] public class DTests { const int TimeLimit = 2000; const double RelativeError = 1e-9; [TestMethod, Timeout(TimeLimit)] public void Test1() { const string input = @"6 5 8 -3 ...
21.264706
59
0.5574
[ "CC0-1.0" ]
AconCavy/AtCoder.Tasks.CS
ABC/ABC233/Tests/DTests.cs
723
C#
namespace Datester.Data.Models { public class UserChat { public int Id { get; set; } public string UserId { get; set; } public ApplicationUser ApplicationUser { get; set; } public int ChatId { get; set; } public Chat Chat { get; set; } } }
21.071429
60
0.576271
[ "MIT" ]
bazlus/DatesterAPI
DatesterAPI/Datester.Models/UserChat.cs
297
C#
using System; using System.Globalization; using Parquet.Properties; namespace Parquet { /// <summary> /// Global access to the logging mechanism. /// </summary> /// <seealso cref="ILogger"/> public static class Logger { #region Characteristics /// <summary>The instance currently...
49.421875
128
0.599273
[ "MIT" ]
mxashlynn/Parquet
ParquetClassLibrary/Logger.cs
6,326
C#
using Core; using loadingStation.Base.Connection.Devices.Smartdevice; using loadingStation.Base.Function; using System; using System.Windows.Forms; namespace loadingStation.GUI.Settings { public partial class AppSetting : Form { #region DropShadow Properties private const int CS_DROPSHADOW = 0...
32.527344
170
0.576678
[ "MIT" ]
thatsallineed/Loading-Station
loadingStation/GUI/Settings/AppSetting.cs
8,329
C#
using FluentAssertions; using Formulaic.Finance; using Xunit; namespace FormulaicTests { public class SimpleDepreciationTests { private readonly int doublePrecision = 8; [Theory] [InlineData(100.0, 8.0, 5.0, 60.0)] public void CalculateFinalValueTest(double principalValue, doub...
35.244898
127
0.677475
[ "MIT" ]
sjmeunier/formulaic
FormulaicTests/Finance/SimpleDepreciationTests.cs
1,727
C#
namespace UiPath.Shared.Localization { class SharedResources : Ccint.Ocr.Activities.Design.Properties.Resources { } }
21.666667
76
0.738462
[ "MIT" ]
allenlooplee/CcintOcrActivitiesPack
Ccint.Ocr/Ccint.Ocr.Activities.Design/Properties/SharedResources.cs
132
C#
using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime.Serialization; namespace BigQ.Client.Classes { /// <summary> /// The type of connection. /// </summary> [JsonConverter(typeof(StringEnumConverter))] public enum ConnectionType { /// <summary> /// Conn...
25.114286
48
0.54835
[ "MIT" ]
bigqio/bigq
Client/Classes/ConnectionType.cs
881
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Globalization; #if NETCOREAPP using Microsoft.AspNetCore.Mvc; #endif #if NETFRAMEWORK using System.Web.Mvc; using System.Web.Security; #endif namespace EmailMaker.Controllers.ViewModels { #region Models ...
27.481013
145
0.620912
[ "MIT" ]
xhafan/emailmaker
src/EmailMaker.Controllers/ViewModels/AccountModels.cs
2,173
C#
using IA; using System; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Threading.Tasks; namespace Galaco { internal class Program { private static void Main(string[] args) => new Program().Start().GetAwaiter().GetResult(); private async Task Start() ...
34.740741
126
0.474147
[ "MIT" ]
velddev/Galaco
Galaco/Program.cs
3,754
C#
using System; using Dates.Recurring.Type; namespace Dates.Recurring.Builders { public class YearsBuilder { private int _skipYears; private int? _dayOfMonth; private Month _month = Month.JANUARY; private Ordinal? _ordinalWeek; private DayOfWeek? _dayOfWeek; priva...
26.537736
96
0.441522
[ "MIT" ]
WaltDaniels/Dates.Recurring
Dates.Recurring/Builders/YearsBuilder.cs
2,815
C#
using System.Reflection; 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. // Setting ComVisible to false makes the types in this assembly not...
45.285714
84
0.783912
[ "Apache-2.0" ]
CopaDataPM/tfsaggregator
Aggregator.ConsoleApp/Properties/AssemblyInfo.cs
636
C#
using Microsoft.AspNetCore.Authentication; using System.Collections.Generic; using System.Security.Claims; using System.Threading.Tasks; namespace IdNet6.Services { /// <summary> /// Models a user's authentication session /// </summary> public interface IUserSession { /// <summary> ...
31.296296
106
0.605917
[ "Apache-2.0" ]
simple0x47/IdNet6
src/IdNet6/src/Services/IUserSession.cs
1,692
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("Web...
38.162162
84
0.751416
[ "MIT" ]
HajbokRobert/WebFormsDocumentViewer
WebFormsDocumentViewer/Properties/AssemblyInfo.cs
1,415
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using MS.Internal.Xml.Cache; using System.Collections.Generic; using System.Diagnostics; using System.IO; namespace System.Xml.XPath { /// <summary> /// XDocument follows th...
37.934641
139
0.504078
[ "MIT" ]
71221-maker/runtime
src/libraries/System.Private.Xml/src/System/Xml/XPath/XPathDocument.cs
17,412
C#
namespace BlazorState.Pipeline.State { using MediatR; using System; public class ExceptionNotification : INotification { //public TRequest Request { get; set; } public string RequestName { get; set; } public Exception Exception { get; set; } } }
19.285714
52
0.692593
[ "Unlicense" ]
GillCleeren/blazor-state
Source/BlazorState/Pipeline/CloneState/ExceptionNotification.cs
270
C#
using OpenNefia.Content.Charas; using OpenNefia.Content.DisplayName; using OpenNefia.Content.GameObjects.Pickable; using OpenNefia.Core.GameObjects; using OpenNefia.Core.IoC; using OpenNefia.Core.Locale; using OpenNefia.Core.Maps; using System.Text; namespace OpenNefia.Content.GameObjects { public class TargetTex...
36.02963
132
0.589021
[ "MIT" ]
OpenNefia/OpenNefia
OpenNefia.Content/GameObjects/EntitySystems/TargetTextSystem.cs
4,866
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; 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; ...
39.235154
91
0.49891
[ "MIT" ]
Macrotitech/WPF-3d-source
Ch34/RaggedPieChart/MainWindow.xaml.cs
16,518
C#
using Maintenance_Helpdesk.Models; using Microsoft.EntityFrameworkCore; namespace Maintenance_Helpdesk.DbContexts { public class Maintenance_HelpdeskDbContext : DbContext { public Maintenance_HelpdeskDbContext(DbContextOptions<Maintenance_HelpdeskDbContext> options) : base(options) ...
28.266667
101
0.735849
[ "MIT" ]
andersorlinder/e2e-lab5
e2e-lab5/Maintenance_Helpdesk/DbContexts/Maintenance_HelpdeskDbContext.cs
426
C#
#if UNITY_EDITOR using System; using Samples.Boids; using Unity.Entities; using UnityEngine; [RequiresEntityConversion] [AddComponentMenu("DOTS Samples/Boids/BoidTarget")] [ConverterVersion("joe", 1)] public class BoidTargetAuthoring : MonoBehaviour, IConvertGameObjectToEntity { public void Convert(Entity entity,...
23.85
109
0.786164
[ "MIT" ]
sapsari/Covid
Assets/Boids/BoidTargetAuthoring.cs
477
C#
using System.Configuration; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin.Security; using SFB.Web.UI.Attributes; using SFB.Web.UI.Models; namespace SFB.Web.UI.Controllers { [CustomAuthorize] pub...
27.230263
153
0.529355
[ "MIT" ]
DFEAGILEDEVOPS/Schools.Financial.Benchmarking
Web/SFB.Web.UI/Controllers/AccountController.cs
4,141
C#
using Newtonsoft.Json; namespace NSW.EliteDangerous.API { public class MarketItem : Item { [JsonProperty("id")] public long Id { get; internal set; } [JsonProperty("Category")] public string Category { get; internal set; } [JsonProperty("Category_Localised")] p...
27.653061
62
0.60369
[ "MIT" ]
h0useRus/EliteDangerousAPI
EliteDangerousAPI/src/EliteDangerousAPI/Entities/MarketItem.cs
1,355
C#
using System; namespace Couchbase.Core.Diagnostics.Tracing { /// <summary> /// A configuration class for tracing. /// </summary> public class TracingConfiguration { public TimeSpan EmitInterval { get; set; } = TimeSpan.FromSeconds(10); /// <summary> /// The interval after w...
35.402299
93
0.587338
[ "Apache-2.0" ]
Zeroshi/couchbase-net-client
src/Couchbase/Core/Diagnostics/Tracing/TracingConfiguration.cs
3,080
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/mfidl.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System;...
37.584906
145
0.712349
[ "MIT" ]
reflectronic/terrafx.interop.windows
tests/Interop/Windows/Windows/um/mfidl/IMFContentDecryptorContextTests.cs
1,994
C#
using System; using System.Collections.Generic; using Devdog.General.ThirdParty.UniLinq; using System.Text; using Devdog.InventoryPro; using UnityEngine; namespace Devdog.InventoryPro { //[RequireComponent(typeof(LootableObject))] [AddComponentMenu(InventoryPro.AddComponentMenuPath + "Other/Inventory item per...
34.727273
184
0.663613
[ "MIT" ]
BradyBromley/Inventory-Pro
Assets/Devdog/InventoryPro/Scripts/Modules/ItemGenerators/InventoryItemPercentageContainerGenerator.cs
1,530
C#
// Copyright 2004-2020 Castle Project - http://www.castleproject.org/ // // 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...
37.5
162
0.774815
[ "Apache-2.0" ]
generik0/Windsor
src/Castle.Windsor.Extensions.DependencyInjection/Extensions/ServiceDescriptorExtensions.cs
1,350
C#
using System.Collections.Generic; using ApplyIdentity.Infrastructure; namespace ApplyIdentity.Models { public class RoleEditModel { public AppRole Role { get; set; } public IEnumerable<AppUser> Members { get; set; } public IEnumerable<AppUser> NonMembers { get; set; } } }
22.285714
60
0.682692
[ "MIT" ]
sukhoi1/.NET-MVC-ApplyIdentity
ApplyIdentity/Models/RoleEditModel.cs
314
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("Enc...
38.114286
84
0.754873
[ "MIT" ]
algohubhq/EncompassBrowserTab
EncompassBrowserTab/Properties/AssemblyInfo.cs
1,337
C#
using System; using NHapi.Base.Model; using NHapi.Base.Log; using NHapi.Base; using NHapi.Base.Model.Primitive; namespace NHapi.Model.V25.Datatype { ///<summary> /// <p>The HL7 JCC (Job Code/Class) data type. Consists of the following components: </p><ol> /// <li>Job Code (IS)</li> /// <li>Job Class (IS)</li...
29.491379
134
0.639287
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
afaonline/nHapi
src/NHapi.Model.V25/Datatype/JCC.cs
3,421
C#
using System.Collections.Generic; namespace OpenRpg.Localization { public class LocaleDataset { public string LocaleCode { get; set; } public Dictionary<string, string> LocaleData { get; set; } = new Dictionary<string, string>(); } }
26.2
102
0.679389
[ "MIT" ]
openrpg/OpenRpg
src/OpenRpg.Localization/LocaleDataset.cs
262
C#
/* * Copyright 2010-2014 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 "l...
56.247199
199
0.682533
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/MediaPackageVod/Generated/_bcl35/AmazonMediaPackageVodClient.cs
75,315
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Http; using System.Text.Json; using System.Threading.Tasks; using Dasync.Collections; using GraphQLDotNet.Contracts; using Microsoft.Extensions.Caching.Memory; using Microsoft.Exten...
41.57513
153
0.580508
[ "MIT" ]
Sankra/GraphQLDotNet
src/API/GraphQLDotNet.Services/OpenWeather/CachedOpenWeatherClient.cs
8,026
C#
#if WITH_GAME #if PLATFORM_32BITS using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace UnrealEngine { public partial class UMaterialExpressionSetMaterialAttributes { static readonly int Inputs__Offset; public TStructArray<FExpressionInput> Inputs { get{ CheckIs...
32.820513
154
0.79375
[ "MIT" ]
RobertAcksel/UnrealCS
Engine/Plugins/UnrealCS/UECSharpDomain/UnrealEngine/GeneratedScriptFile_Game_32bits/UMaterialExpressionSetMaterialAttributes_FixSize.cs
1,280
C#
using System; using Android.App; using Android.Content; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace Parallax.Droid { [Activity (Label = "Parallax.Droid", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.Scr...
23.444444
161
0.755134
[ "MIT" ]
Mahtaran/xamarin-forms-samples
Parallax/Droid/MainActivity.cs
635
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using ClearHl7.Extensions; using ClearHl7.Helpers; using ClearHl7.Serialization; using ClearHl7.V282.Types; namespace ClearHl7.V282.Segments { /// <summary> /// HL7 Version 2 Segment RXE - Pharmacy Treatment Encoded...
56.924084
281
0.615636
[ "MIT" ]
kamlesh-microsoft/clear-hl7-net
src/ClearHl7/V282/Segments/RxeSegment.cs
21,747
C#
/** * The MIT License * Copyright (c) 2016 Population Register Centre (VRK) * * 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 righ...
36.568182
80
0.684897
[ "MIT" ]
MikkoVirenius/ptv-1.7
src/PTV.Domain.Model/Enums/ServiceChannelConnectionTypeEnum.cs
1,611
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EventManager : MonoBehaviour { public delegate void StartGameDelegate(); public static StartGameDelegate onStartGame; public static StartGameDelegate onRefreshGame; // public static StartGameDelegate onLevelCom...
24.428571
55
0.644737
[ "MIT" ]
AnatoliiPerfun/PullAndScore-prototype
Assets/Scripts/EventManager.cs
686
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. using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using...
37.842105
169
0.659944
[ "MIT" ]
Microsoft/CoreTemplateStudio
code/src/CoreTemplateStudio/CoreTemplateStudio.Core/PostActions/Catalog/AddItemToContextPostAction.cs
1,403
C#
using System; namespace Editor_Mono.Cecil { internal class FieldDefinitionProjection { public readonly FieldAttributes Attributes; public readonly FieldDefinitionTreatment Treatment; public FieldDefinitionProjection(FieldDefinition field, FieldDefinitionTreatment treatment) { this.Attributes = field.Attrib...
24.4
93
0.806011
[ "BSD-2-Clause" ]
ErQing/cshotfix
CSHotFix_ILRuntimeSimpleFramework/Assets/CSHotFixLibaray/Editor/Injector/MonoCecil/Mono.Cecil/FieldDefinitionProjection.cs
366
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
44.827354
402
0.615315
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DesktopVirtualization/V20210401Preview/HostPool.cs
19,993
C#
// // SeasonalItem.cs // // Author: // Sandy Chuang // // Copyright © 2020 Couchbase Inc. All rights reserved. // using P2PListSync.ViewModels; namespace P2PListSync.Models { public class SeasonalItem : BaseViewModel { public int Index { get; set; } private string _name; public st...
20.475
60
0.551893
[ "MIT" ]
badaldesai/couchbase-lite-peer-to-peer-sync-examples
dotnet/P2PListSync/P2PListSync/Models/SeasonalItem.cs
822
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace PowerBuildToolDevOpsAPI.Models { public class BuildModel { public List<BuildModelValue> Builds { get; set; } } }
16.25
57
0.676923
[ "MIT" ]
yesadahmed/DevOps
PowerBuildToolDevOpsAPI/PowerBuildToolDevOpsAPI/Models/BuildModel.cs
262
C#
using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class LevelManager : MonoBehaviour { public int ActiveScene { get; private set; } public List<GameObject> GameplayPersistentObjects { get; set; } private static LevelManager instance; public static LevelMa...
26.222222
90
0.54661
[ "MIT" ]
DominikaBogusz/Evilmine
Assets/Scripts/LevelManager.cs
1,890
C#
namespace Zen.Base.Module.Data { public class DataAccessControl { public bool Read; public bool Remove; public bool Write; } }
16.4
34
0.603659
[ "MIT" ]
bucknellu/zen
Zen.Base/Module/Data/DataAccessControl.cs
166
C#
using System; using System.Linq; using System.Runtime.InteropServices; using Torque6.Engine.SimObjects; using Torque6.Engine.SimObjects.Scene; using Torque6.Engine.Namespaces; using Torque6.Utility; namespace Torque6.Engine.SimObjects.GuiControls { public unsafe class GuiMLTextEditCtrl : GuiMLTextCtrl { ...
34.974359
169
0.684995
[ "MIT" ]
lukaspj/Torque6-Embedded-C-
Torque6/Engine/SimObjects/GuiControls/GuiMLTextEditCtrl.cs
4,092
C#
using System.Threading.Tasks; using BabyYodaBot.Core.BabyYoda.Models; namespace BabyYodaBot.Core.BabyYoda { public interface IBabyYodaClient { Task<bool> ProcessAsync(int serverPort); Task FeedAsync(Player player); } }
20.75
48
0.718876
[ "MIT" ]
haycc/BabyYoda
src/BabyYodaBot/BabyYodaBot.Core.BabyYoda/IBabyYodaClient.cs
251
C#
// Copyright 2016 Google Inc. 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
46.380531
130
0.637092
[ "Apache-2.0" ]
Acidburn0zzz/google-cloud-dotnet
apis/Google.Cloud.Language.V1/Google.Cloud.Language.V1.Snippets/LanguageServiceClientSnippets.cs
5,243
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace GameSystem { namespace PresentSetting { [CreateAssetMenu(fileName = "DollSystemSetting", menuName = "系统配置文件/Doll System Setting")] public class DollSystemSetting : ScriptableObject { pu...
23.368421
98
0.65991
[ "Apache-2.0" ]
Sakuralalala/Banou
Assets/Scripts/DollSystem/DollSystemSetting.cs
458
C#
#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; name...
28.481818
285
0.63262
[ "MIT" ]
zxsean/DCET
Unity/Assets/Model/XLua/Gen/XLuaCSObjectWrapXLuaCSObjectWrapXLuaCSObjectWrapMongoDBBsonSerializationSerializersPartiallyRawBsonDocumentSerializerWrapWrapWrapWrap.cs
3,135
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Amazon.Lambda.Core; // Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class. [assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.Json.JsonSerializer))] ...
28.482759
100
0.618644
[ "MIT" ]
musement/dotnet-lambda-exec
src/Samples/AsyncFunction/Function.cs
826
C#
using System.Collections.Generic; using BrightstarDB.EntityFramework; namespace Continuum.Master.ControlUnit { [Entity] public interface IStreamNodes { [Identifier(KeySeparator = "", KeyProperties = new[] { "Name" })] string Id { get; } string Name { get; set; } string Ap...
21.727273
73
0.610879
[ "Apache-2.0" ]
JonasSyrstad/Stardust.Interstellar.Rest
Stardust.Interstellar.Rest/Continuum.Master.ControlUnit/IStreamNodes.cs
480
C#
// ----------------------------------------------------------------------- // <copyright file="CppCodeWriter.cs" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root // for license information. // </copyrigh...
29.414286
126
0.492472
[ "MIT" ]
curino/MLOS
source/Mlos.SettingsSystem.CodeGen/CodeWriters/CppCodeWriter.cs
2,059
C#
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ // ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ // ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ // ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ // ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ // ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ // -----------...
53.483431
246
0.758173
[ "Apache-2.0" ]
AnthAbou/elasticsearch-net
src/Nest/Descriptors.Security.cs
27,883
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
42.882155
151
0.611495
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Network/V20190601/AzureFirewall.cs
12,736
C#
using UnityEngine; using System.Collections; using System.Runtime.Serialization; public class SingleManager : MonoBehaviour { public GameObject Scroll; // Use this for initialization void Start () { } // Update is called once per frame public void Export() { var selectedObject =...
20.5
87
0.691057
[ "MIT" ]
zackszhu/SE340_HCI
patchCreator/Assets/Scripts/SingleManager.cs
494
C#
//------------------------------------------------------------------------------ // <auto-generated> // このコードはツールによって生成されました。 // ランタイム バージョン:4.0.30319.42000 // // このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 // コードが再生成されるときに損失したりします。 // </auto-generated> //-------------------------------------------------...
41.586957
182
0.577104
[ "MIT" ]
synctam/PoE2JpModTools
MieStringMarger/Properties/Resources.Designer.cs
4,562
C#
namespace MvcTemplate.Web.Controllers { using System.Web.Mvc; public class HomeController : BaseController { public ActionResult Index() { return this.View(); } } }
16.846154
48
0.579909
[ "MIT" ]
Abhinavchamallamudi/ASP.NET-MVC-Template
ASP.NET MVC 5/Web/MvcTemplate.Web/Controllers/HomeController.cs
221
C#
/* * Copyright 2010-2014 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 "l...
35.414414
145
0.623251
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/CloudWatchLogs/Generated/Model/Internal/MarshallTransformations/AssociateKmsKeyRequestMarshaller.cs
3,931
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MediatR; using Microsoft.EntityFrameworkCore; using Module.Catalog.Core.Abstractions; using Module.Catalog.Core.Entities; namespace Module.Catalog.Core.Queries; public class GetAllBrandsQuery : I...
28.030303
112
0.76
[ "MIT" ]
mirusser/Learning-dontNet
src/ModularMonolithDemo/Module.Catalog.Core/Queries/GetAllBrandsQuery.cs
927
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace Extensions { static class MyExtensions { public static void DisplayDefiningAssembly(this object obj) { Console.WriteLine($"{obj.Get...
23.428571
71
0.612805
[ "MIT" ]
GreedNeSS/ExtensionMethods-and-InterfaceExtension
ExtensionMethods/MyExtensions.cs
658
C#
using System; using System.Threading.Tasks; using Exceptionless.Core.Plugins.EventProcessor; using Exceptionless.DateTimeExtensions; using Foundatio.Utility; using Microsoft.Extensions.Logging; namespace Exceptionless.Core.Pipeline { [Priority(1)] public class CheckEventDateAction : EventPipelineActionBase { ...
45.806452
134
0.687324
[ "Apache-2.0" ]
ChanneForZM/Exceptionless
src/Exceptionless.Core/Pipeline/001_CheckEventDateAction.cs
1,422
C#
// // Code generated by a template. // using System; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Client; namespace CCLLC.CDS.Sdk.Metadata.Proxy { [EntityLogicalName("sdkmessagepair")] public partial class SdkMessagePair : Entity { public static string EntityLogicalName => "sdkmessagepair"; public SdkMes...
33.085714
85
0.749712
[ "MIT" ]
ScottColson/CCLLCCodeLibraries
CCLLC.CDS/SharedProjects/CCLLC.CDS.Sdk.Metadata/Proxies/SdkMessagePair.cs
6,948
C#
/* Copyright (c) 2020 SICK AG <info@sick.de> This source code is licensed under the Apache License 2.0 (see LICENSE.txt). This source code may use other Open Source software components (see LICENSE.txt). */ #nullable enable using System; using System.Collections.Generic; using System.Linq; using System.Text.Regula...
31.198758
120
0.536054
[ "Apache-2.0" ]
JMayrbaeurl/aasx-package-explorer
src/AasxDictionaryImport/Cdd/Data.cs
25,117
C#
namespace ExeT4Template { public class MyClass { public string AccessModifier { get; set; } public string DataType { get; set; } public string PropName { get; set; } } }
17.416667
50
0.593301
[ "MIT" ]
tharopan/T4Template
ExeT4Template/MyClass.cs
211
C#
using FluentAssertions; using Mt.MediaFiles.AppEngine.Matching; using NSubstitute; using System.Threading.Tasks; using Xunit; namespace Mt.MediaFiles.AppEngine.Test.Matching { public class PropertyMatcherFileNameTest { [Fact] public async Task Should_Produce_Neutral_Result_For_Different_File_Names() { ...
26.609756
81
0.660862
[ "MIT" ]
mtebenev/mediafiles
AppEngine.Test/Matching/PropertyMatcherFileNameTest.cs
1,091
C#
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using FluentAssertions; using MSI.Keyboard.Backlight.Utils; using Xunit; namespace MSI.Keyboard.Backlight.Tests { public class ColorEnumToRgbConverterTests { [Fact]...
24.035714
58
0.637444
[ "MIT" ]
dpozimski/msi-keyboard-backlight
source/MSI.Keyboard.Backlight.Tests/ColorEnumToRgbConverterTests.cs
675
C#
using System.Linq; using Northwind.Data; using EasyLOB.Persistence; namespace Northwind.Persistence { public class NorthwindRegionRepositoryLINQ2DB : NorthwindGenericRepositoryLINQ2DB<Region> { #region Methods public NorthwindRegionRepositoryLINQ2DB(IUnitOfWork unitOfWork) ...
24.290323
94
0.563081
[ "MIT" ]
EasyLOB/EasyLOB-Northwind-1
Northwind.PersistenceLINQ2DB/Repositories/NorthwindRegionRepositoryLINQ2DB.cs
753
C#
using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; namespace Server.Model { public sealed class GameStateModel { [BsonId] public string Login; [BsonElement("state")] public BsonDocument State; } }
17.230769
44
0.75
[ "MIT" ]
KonH/BattlerGame
Server/Model/GameStateModel.cs
226
C#
/* * Todo * * Sample todo-api * * The version of the OpenAPI document: 1.0.0 * * Generated by: https://openapi-generator.tech */ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; using FeatureHubSDK; using IO.FeatureHub.SSE.Model; using M...
32.216981
116
0.542313
[ "MIT" ]
LeaseQuery/featurehub-dotnet-sdk
ToDoAspCoreExample/src/ToDoAspCoreExample/Controllers/TodoServiceApi.cs
6,830
C#
using DotNetty.Codecs.Http.WebSockets; using DotNetty.Transport.Channels; using System; using System.Threading.Tasks; namespace ONetworkTalk.Websocket { class WebSocketConnection : BaseTcpSocketConnection<IWebSocketServer, IWebSocketConnection, string>, IWebSocketConnection { #region 构造函数 pub...
24.6
159
0.587173
[ "MIT" ]
Leoforgo/ONetworkTalk
Websocket/WebSocketConnection.cs
1,133
C#
using System; using System.Threading.Tasks; using Barista.Common; using Barista.Common.MassTransit; using Barista.Contracts.Commands.PointOfSale; using Barista.Contracts.Events.PointOfSale; using Barista.PointsOfSale.Handlers.PointOfSale; using Barista.PointsOfSale.Repositories; using Barista.PointsOfSale.Verifiers; u...
46.7
163
0.704191
[ "MIT" ]
nesfit/Coffee
Barista.PointsOfSale.Tests/Handlers/PointOfSale/CreatePointOfSaleHandlerTests.cs
3,271
C#
using MinerPlugin; using MinerPluginToolkitV1; using MinerPluginToolkitV1.Configs; using MinerPluginToolkitV1.ExtraLaunchParameters; using MinerPluginToolkitV1.Interfaces; using NHM.Common; using NHM.Common.Algorithm; using NHM.Common.Device; using NHM.Common.Enums; using System; using System.Collections.Generic; usin...
50.934426
191
0.749276
[ "MIT" ]
TheGoddessInari/NiceHashMiner
src/Miners/BrokenMiner/BrokenMinerPlugin.cs
3,109
C#
using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Diagnostics.CodeAnalysis; using LinqToDB; using LinqToDB.Common; using LinqToDB.Data; using LinqToDB.DataProvider; using LinqToDB.Mapping; using LinqToDB.SchemaProvider; using...
55.664671
162
0.564974
[ "MIT" ]
AndreyAndryushinPSB/linq2db
Tests/Linq/TestProviders/TestNoopProvider.cs
18,261
C#
using System; namespace MadReflection.Osmotic.Tests { public struct TestStructWithExplicitIFormattable : IFormattable { private string _value; public TestStructWithExplicitIFormattable(string value) { if (value is null) throw new ArgumentNullException(nameof(value)); if (value == "") throw new...
21.923077
88
0.730994
[ "BSD-3-Clause" ]
madreflection/MadReflection.Osmotic
src/MadReflection.Osmotic.Tests/TestTypes_/TestStructWithExplicitIFormattable.cs
857
C#
using System; using Org.BouncyCastle.Math.Raw; using Org.BouncyCastle.Utilities.Encoders; namespace Org.BouncyCastle.Math.EC.Custom.Sec { internal class SecT113R1Curve : AbstractF2mCurve { private const int SECT113R1_DEFAULT_COORDS = COORD_LAMBDA_PROJECTIVE; private const int SECT113R...
30.219101
137
0.519241
[ "MIT" ]
0x070696E65/Symnity
Assets/Plugins/Symnity/Pulgins/crypto/src/math/ec/custom/sec/SecT113R1Curve.cs
5,381
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/DirectML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop.DirectX...
32.846154
145
0.786885
[ "MIT" ]
JeremyKuhne/terrafx.interop.windows
sources/Interop/Windows/DirectX/um/DirectML/DML_MATRIX_TRANSFORM.cs
429
C#
using System; using MsgPack.Serialization; namespace scopely.msgpacksharp.tests { public class AnimalColor { public AnimalColor() { } [MessagePackMember(0)] public float Red { get; set; } [MessagePackMember(1)] public float Green { get; set; } [MessagePackMember(2)] public float Blue { get; set...
16.847826
59
0.618065
[ "Apache-2.0" ]
scopely/msgpack-sharp
msgpack-sharp-tests/AnimalColor.cs
777
C#
using System; namespace Zoey.Quartz.Web.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
19.363636
70
0.666667
[ "MIT" ]
NameIsBad/Zoey.Quartz
src/Zoey.Quartz.Web/Models/ErrorViewModel.cs
213
C#
namespace RTGS.Bank.Simulator.Controllers.Handlers.AtomicLockResponse; public record AtomicLockResponseHandlerOutput() { public string LockId { get; init; } public string LockExpiry { get; init; } public decimal? ExchangeRate { get; init; } public string EndToEndId { get; init; } public decimal? DebtorAmount { g...
33.428571
71
0.747863
[ "MIT" ]
RTGS-OpenSource/cbs-simulator
src/RTGS.Bank.Simulator/Controllers/Handlers/AtomicLockResponse/AtomicLockResponseHandlerOutput.cs
470
C#
using System; using System.Collections; using System.Collections.Generic; partial class BinarySearchTree<T> : ICloneable, IEnumerable<T> where T : IComparable<T>, IEquatable<T> { public static bool operator ==(BinarySearchTree<T> array1, BinarySearchTree<T> array2) { return BinarySearchTree<T>...
23.317073
90
0.577406
[ "MIT" ]
trinityimma/TelerikAcademy
Programming/3.ObjectOrientedProgramming/6.CommonTypeSystem/6.BinarySearchTree/Helpers.cs
1,914
C#
// Copyright (c) Ugo Lattanzi. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using StackExchange.Redis.Extensions.Core.Abstractions; using StackExchange.Redis.Exten...
32.65
147
0.69219
[ "MIT" ]
adamralph/StackExchange.Redis.Extensions
samples/StackExchange.Redis.Samples.Web.Mvc/Controllers/HomeController.cs
1,306
C#
// Copyright (c) 2016, SolidCP // SolidCP is distributed under the Creative Commons Share-alike license // // SolidCP is a fork of WebsitePanel: // Copyright (c) 2015, Outercurve Foundation. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted ...
26.639033
83
0.541883
[ "BSD-3-Clause" ]
eg2-hack/SolidCP
SolidCP.Installer/Sources/SolidCP.Setup/Portal10.cs
15,424
C#