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.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. [assembly: AssemblyTitle("HappyLogging")] [assembly: Assembl...
39.111111
85
0.725142
[ "MIT" ]
dionrhys/HappyLogging
HappyLogging/Properties/AssemblyInfo.cs
1,411
C#
using System; using System.Linq; namespace TanmaNabu.Core.Extensions { public static class EnumExtension { public static string AllowedValues<T>(this T item) { return $"Allowed values: {string.Join(", ", Enum.GetValues(item.GetType()).Cast<T>().ToList())}"; } } }
22.428571
109
0.61465
[ "MIT" ]
kubagdynia/TanmaNabu
TanmaNabu/Core/Extensions/EnumExtension.cs
316
C#
using System; using RazorTechnologies.TagHelpers.Core.Annotations; namespace RazorTechnologies.TagHelpers.LayoutManager.Controls.Attributes { [System.AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)] public sealed class DataViewLableVMAttribute : BaseViewModelAttribute, IVi...
29.809524
101
0.699681
[ "Apache-2.0" ]
arsalanfallahpour/RazorTechnologies
Source/Helpers/TagHelpers/Source/LayoutManager/Controls/Lable/DataViewLableVMAttribute.cs
628
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. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System...
45.789091
192
0.65355
[ "MIT" ]
Blokyk/roslyn
src/VisualStudio/Core/Test.Next/Services/ServiceHubServicesTests.cs
25,186
C#
#region LICENSE /* File modified by Ellis Spice, 2020 Original file created and released by PlayGen Ltd, 2018 */ #endregion using System.Collections.Generic; using UnityEngine; namespace BUCK.LocalizationSystem { /// <inheritdoc /> /// <summary> /// Class for setting the options on a Dropdown using the li...
33.740741
121
0.568332
[ "Apache-2.0" ]
ellisspice/BUCK
Assets/BUCK/Localization System/Scripts/Runtime/BaseDropdownLocalization.cs
3,646
C#
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using HavenSoft.HexManiac.Core.Models.Code; using static HavenSoft.HexManiac.Core.Models.HardcodeTablesModel; namespace HavenSof...
47.316176
183
0.650738
[ "MIT" ]
KiraDank/HexManiacAdvance
src/HexManiac.Core/Models/Singletons.cs
12,872
C#
/* * Copyright (C) 2021 - 2021, SanteSuite Inc. and the SanteSuite Contributors (See NOTICE.md for full copyright notices) * Copyright (C) 2019 - 2021, Fyfe Software Inc. and the SanteSuite Contributors * Portions Copyright (C) 2015-2018 Mohawk College of Applied Arts and Technology * * Licensed under the Apache...
34.863158
134
0.61413
[ "Apache-2.0" ]
santedb/santedb-model
SanteDB.Core.Model/Acts/Protocol.cs
3,314
C#
using System.Collections.Generic; using Newtonsoft.Json; namespace StackExchange.NET.Models { public class SuggestedEdits { [JsonProperty("proposing_user")] public ProposingUser ProposingUser { get; set; } [JsonProperty("creation_date")] public long CreationDate { get; set; } [JsonProperty("post_type")]...
27.102564
80
0.728477
[ "MIT" ]
gethari/FluentExchange
StackExchange.NET/StackExchange.NET/Models/SuggestedEdits.cs
1,059
C#
//------------------------------------------------------------------------------------- // Copyright (c) 2014, Anthilla S.r.l. (http://www.anthilla.com) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the foll...
48.745342
146
0.586519
[ "BSD-3-Clause" ]
Heather/Antd
antdlib/Antdsh/SystemShellMgmt.cs
7,854
C#
// // Enums.cs // // Authors: // Alan McGovern alan.mcgovern@gmail.com // // Copyright (C) 2006 Alan McGovern // // 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, incl...
20.866142
73
0.624151
[ "ECL-2.0" ]
727021/MCLawl
MCLawl/Queue/Enums.cs
2,650
C#
using System; using ACMESharp.Authorizations; using PKISharp.WACS.Plugins.Interfaces; using PKISharp.WACS.Services; namespace PKISharp.WACS.Plugins.ValidationPlugins { /// <summary> /// Base implementation for all validation plugins /// </summary> public abstract class Validation<TOptions, TChallenge>...
26.012821
125
0.54411
[ "Apache-2.0" ]
FuseCP-TRobinson/win-acme
src/main/Plugins/ValidationPlugins/Validation.cs
2,031
C#
using System.IO; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Miru.Consolables; using Miru.Core; using Miru.Storages; namespace Miru.Testing { public static class StorageTestServiceCollectionExtensions { public static IServiceCollection AddTestStorage(this ISer...
28.533333
101
0.632009
[ "MIT" ]
MiruFx/Miru
src/Miru.Testing/StorageTestServiceCollectionExtensions.cs
856
C#
namespace ConDep.Dsl { public interface IOfferAwsBootstrapEbsOptions { IOfferAwsBootstrapEbsOptions DeleteOnTermination(bool delete); IOfferAwsBootstrapEbsOptions Encrypted(bool encrypted); IOfferAwsBootstrapEbsOptions Iops(int iops); IOfferAwsBootstrapEbsOptions SnapshotId(strin...
41.307692
77
0.77095
[ "BSD-2-Clause" ]
kjelliverb/condep-dsl-operations-aws
src/ConDep.Dsl.Operations.Aws/Ec2/IOfferAwsBootstrapEbsOptions.cs
537
C#
using System; using System.Collections.Generic; namespace SolidSoft.AMFCore.Messaging.Api.Messaging { /// <summary> /// Event object corresponds to the connect/disconnect events among providers/consumers and pipes. /// </summary> public class PipeConnectionEvent { /// <summ...
29.298077
103
0.4936
[ "MIT" ]
SolidSoft-Lda/AMFCore
SolidSoft.AMFCore/Messaging/Api/Messaging/PipeConnectionEvent.cs
3,049
C#
using System; namespace Anvyl.JsonLocalizer.Presentation.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
20.909091
70
0.691304
[ "MIT" ]
JTOne123/Anvyl.JsonLocalizer
src/Anvyl.JsonLocalizer.Presentation/Models/ErrorViewModel.cs
230
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...
26.4375
106
0.591962
[ "Apache-2.0" ]
woellij/aws-sdk-net
sdk/src/Services/KinesisFirehose/Generated/AmazonKinesisFirehoseConfig.cs
2,115
C#
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Windows.Forms; using System.Xml.Serialization; using taskt.UI.CustomControls; using taskt.UI.Forms; namespace taskt.Core.Automation.Commands { [Serializable] [Attributes.ClassAttributes.Group("Dictionary Command...
52.261603
222
0.667447
[ "Apache-2.0" ]
rcktrncn/taskt
taskt/Core/Automation/Commands/Dictionary/LoadDictionaryCommand.cs
12,388
C#
using UnityEngine; using System.Collections; using System; using System.Collections.Generic; using UnityEngine.UI; using naichilab.InputEvents; public class TouchListenerSample : MonoBehaviour { private List<string> logs = new List<string> (); const int MAX_LOGS = 30; public Circle circle; void OnEnable () ...
30.450549
114
0.670516
[ "MIT" ]
naichilab/Unity-TouchManager
Assets/naichilab/TouchManager/Sample/TouchListenerSample.cs
2,773
C#
using System; using System.Xml; using System.Xml.Serialization; using System.IO; namespace VoxelImporter.grendgine_collada { [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(ElementName="sources", Namespace="http://www.collada...
25.96
142
0.765794
[ "MIT" ]
Syrapt0r/Protocol-18
Assets/VoxelImporter/Scripts/Editor/Library/Collada_Main/Collada_FX/Shaders/Grendgine_Collada_Shader_Sources.cs
649
C#
using System.ComponentModel; using System.Runtime.CompilerServices; namespace XamarinOxyPlot.ViewModels.Base { public abstract class ViewModelBase : INotifyPropertyChanged { public virtual void OnAppearing(object navigationContext) { } public virtual void OnDisappearing() ...
25.576923
84
0.657143
[ "MIT" ]
jsuarezruiz/OxyPlot-Xamarin.Forms-Sample
src/XamarinOxyPlot/XamarinOxyPlot/ViewModels/Base/ViewModelBase.cs
667
C#
using ServiceLayer; namespace ExampleServices { public class DocumentServicePlugin : Plugin { private readonly DocumentResultTypeHttpConverter _documentResultTypeConverter = new DocumentResultTypeHttpConverter(); public DocumentServicePlugin() : base("Document Service") { } ...
25.416667
126
0.67377
[ "MIT" ]
davidomid/ServiceLayer
ExampleServices/Plugins/DocumentServicePlugin.cs
612
C#
//----------------------------------------------------------------------- // <copyright file="StateException.cs" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace Microsoft.A...
37.75
146
0.575331
[ "MIT" ]
Azure/SmartDetectorsMonitoringAppliance
src/SDK/SmartDetectorsSDK/State/StateException.cs
2,418
C#
namespace DXFramework.UI { public class UIConstraint { public UIConstraint(Edge controlEdge, UIControl anchor, Edge anchorEdge, float distance = 0f, ConstraintCategory constraintCategory = ConstraintCategory.All) { ControlEdge = controlEdge; Anchor = anchor; AnchorEdge = anchorEdge; Distance = distan...
23.083333
159
0.727437
[ "MIT" ]
adamxi/SharpDXFramework
DXFramework/UI/Constrainer/UIConstraint.cs
556
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Miniblink { public class WKEException : Exception { public WKEException(string message = null) : base(message) { } } public class WKECreateException :...
18.75
66
0.64
[ "MIT" ]
h1213159982/HDF
Example/WinForm/Miniblink/Miniblink/WKEException.cs
602
C#
/* * Copyright 2016 Google Inc. All Rights Reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://developers.google.com/open-source/licenses/bsd */ using Grpc.Core; using System; using System.Linq; using System.Threading.Tasks; using Xunit; ...
32.326531
107
0.63952
[ "BSD-3-Clause" ]
Global19/gax-dotnet
Google.Api.Gax.Grpc.IntegrationTests/TestServiceFixture.cs
1,586
C#
namespace CoreDrawablesGenerator.Generator { public class DrawablesOutput { public Drawable[,] Drawables { get; } public string ImagePath { get; } public int ImageWidth { get; } public int ImageHeight { get; } public int OffsetX { get; } public int OffsetY { get;...
33.52
138
0.600239
[ "MIT" ]
Silverfeelin/Starbound-CoreDrawablesGenerator
CoreDrawablesGenerator/Generator/DrawablesOutput.cs
840
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
37.571429
167
0.589354
[ "MIT" ]
Nilambari/azure-powershell
src/ResourceManager/Batch/Commands.Batch/Models/NewVMUserParameters.cs
1,795
C#
using System; using System.Collections.Generic; using System.Text; using System.IO; using dtasetup; using dtasetup.gui; using dtasetup.domain.constants; namespace dtasetup.domain { public static class VideoBackBuffer { public static void DisableBackBuffer() { Logger.L...
33.716667
167
0.524963
[ "MIT" ]
0999312/xna-cncnet-client
DXMainClient/Domain/VideoBackBuffer.cs
1,966
C#
using Hl7.Fhir.Model; using Hl7.Fhir.Tests; using Hl7.Fhir.Utility; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using Tasks = System.Threading.Tasks; namespace Hl7.Fhir.Tests { /...
39.025641
105
0.512812
[ "BSD-3-Clause" ]
FirelyTeam/fhir-net-api
src/Hl7.Fhir.Core.Tests/TestDataVersionCheck.cs
3,046
C#
using System; using MongoDB.Bson.Serialization.Attributes; namespace ETModel { [BsonIgnoreExtraElements] public abstract class Component : Object, IDisposable { [BsonIgnore] public long InstanceId { get; private set; } [BsonIgnore] private bool isFromPool; [BsonIgnore] public bool IsFromPool { g...
14.532609
54
0.62902
[ "MIT" ]
Seven15/ET
Unity/Assets/Model/Base/Object/Component.cs
1,347
C#
// This file is part of YamlDotNet - A .NET library for YAML. // Copyright (c) Antoine Aubry and contributors // 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 restric...
31
110
0.678545
[ "MIT" ]
Schumix/YamlDotNet
YamlDotNet/Serialization/StreamFragment.cs
2,666
C#
/* * OpenAPI Petstore * * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ using...
32.978873
159
0.562246
[ "Apache-2.0" ]
0x0c/openapi-generator
samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
4,683
C#
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Mozlite.Extensions.Security.Permissions; using MS.Extensions.Security; namespace MS.Areas.Security.Pages.Admin { /// <summary> /// 锁定用户。 /// </summary> [PermissionAuthorize(Security.Permissions.Users)] public class L...
28.863014
80
0.525866
[ "Apache-2.0" ]
Mozlite/Docs
src/MS.Extensions.Security/Areas/Security/Pages/Admin/Lockout.cshtml.cs
2,253
C#
using System; using System.Globalization; using System.Linq; using System.Text; using Microsoft.EntityFrameworkCore; using P01_BillsPaymentSystem.Data; using P01_BillsPaymentSystem.Data.Models; using P01_BillsPaymentSystem.Initializer; namespace P01_BillsPaymentSystem { public class StartUp { public s...
33.006289
117
0.467416
[ "MIT" ]
ViktorAleksandrov/SoftUni--CSharp-DB-Fundamentals
Databases Advanced - Entity Framework/06. Advanced Relations and Aggregation/P01_BillsPaymentSystem/StartUp.cs
5,250
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
31.921569
92
0.652334
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Ecm/V20190719/Models/DetachDisksRequest.cs
1,772
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication1.Views.access { public partial class SuccessForRegister : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) ...
20.117647
64
0.707602
[ "MIT" ]
kevinkda/UnivCourse
Course Experiment Report/ASP.NET 2019-2020-2/提交版/ASP.NETMVC应用程序设计课程设计-2017102531010-唐可寅/项目文件/CourseSolutionASP.NET/WebApplication1/Views/access/SuccessForRegister.aspx.cs
344
C#
// ReSharper disable once CheckNamespace namespace HandyControlDemo.UserControl { /// <summary> /// TimeBarDemoCtl.xaml 的交互逻辑 /// </summary> public partial class TimeBarDemoCtl { public TimeBarDemoCtl() { InitializeComponent(); } } }
19.666667
41
0.60339
[ "MIT" ]
82571701/HandyControl
HandyControlDemo/UserControl/Controls/TimeBarDemoCtl.xaml.cs
307
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("08...
38.135135
84
0.742027
[ "MIT" ]
AyrFX/03.Telerik-Academy-2016-CSharp-Part-2-Homewoks
03. Methods/08. Number as array/Properties/AssemblyInfo.cs
1,414
C#
using SkiAnalyze.Core.Common; using SkiAnalyze.Core.Entities.GondolaAggregate; using SkiAnalyze.Core.Interfaces; using SkiAnalyze.Core.Entities.PisteAggregate; using SkiAnalyze.Core.Entities.TrackAggregate; using SkiAnalyze.Core.Entities.TrackAggregate.Specifications; using SkiAnalyze.SharedKernel.Interfaces; namespa...
35.081967
118
0.612383
[ "MIT" ]
soerenchrist/SkiAnalyze
src/SkiAnalyze.Core/Services/Stats/StatsService.cs
4,282
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: AssemblyTit...
38.756757
85
0.728033
[ "MIT" ]
Acidburn0zzz/azure-powershell
src/ResourceManager/IotHub/Commands.IotHub/Properties/AssemblyInfo.cs
1,399
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Kinect; using System.Windows.Media.Media3D; namespace KinectWithHomeAssistant { class ObjLine { private Point3D objPoint = new Point3D(); private Vector3D objVect...
38.969697
137
0.634914
[ "MIT" ]
croggero/KinectWithHomeAssistant
KinectWithHomeAssistant/Lines.cs
2,574
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...
34.531746
159
0.586302
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/DataFactory/Inputs/AzureBlobDatasetArgs.cs
4,351
C#
using System; using Adriva.Extensions.Optimization.Abstractions; using Microsoft.AspNetCore.Hosting; namespace Adriva.Extensions.Optimization.Web { internal static class AssetExtensions { /// <summary> /// Gets the location of the asset that represents either the absolute or relative path that ...
48.634146
189
0.648445
[ "MIT" ]
adriva/coreframework
Optimization/src/Adriva.Extensions.Optimization.Web/AssetExtensions.cs
1,994
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Extensi...
42.327434
161
0.526448
[ "Apache-2.0" ]
DustinCampbell/roslyn
src/EditorFeatures/CSharp/Highlighting/KeywordHighlighters/AsyncAwaitHighlighter.cs
4,785
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace Bookalytics.Migrations { public partial class AddingBookTitle : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( name: "Title", t...
25.958333
71
0.560193
[ "MIT" ]
iwanmitowski/Bookalytics
Bookalytics/Bookalytics/Migrations/20211007133622_AddingBookTitle.cs
625
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using frontend.Data; #nullable disable namespace frontend.Migration...
32.59322
103
0.531981
[ "MIT" ]
jackyma001/meal
backend/Migrations/DataContextModelSnapshot.cs
1,925
C#
using System; using System.Net; using SmartStore.Core; using SmartStore.Core.Caching; using SmDir = SmartStore.Core.Domain.Directory; namespace SmartStore.Services.Directory { public partial class GeoCountryLookup : IGeoCountryLookup { private readonly IWebHelper _webHelper; private readonly ICountry...
24.243902
128
0.617371
[ "MIT" ]
jenmcquade/csharp-snippets
SmartStoreNET-3.x/src/Libraries/SmartStore.Services/Directory/GeoCountryLookup.cs
2,982
C#
using NUnit.Framework; using System; using System.Linq; using OpenQA.Selenium.Environment; using System.Collections.ObjectModel; using OpenQA.Selenium.Interactions; using System.Collections.Generic; namespace OpenQA.Selenium.IE { [TestFixture] public class IeSpecificTests : DriverTestFixture { //[T...
40.762943
144
0.560628
[ "Apache-2.0" ]
10088/selenium
dotnet/test/ie/IeSpecificTests.cs
14,960
C#
namespace CookWithMe.Web.ViewModels.Users.Profile { using System.Collections.Generic; public class UserProfileCookedRecipesViewModel { public UserProfileCookedRecipesViewModel() { this.CookedRecipes = new List<UserProfileCookedRecipesRecipeViewModel>(); } publi...
26.473684
95
0.687873
[ "MIT" ]
VioletaKirova/CookWithMe
Web/CookWithMe.Web.ViewModels/Users/Profile/UserProfileCookedRecipesViewModel.cs
505
C#
namespace Contoso.FoodDelivery; public class RestaurantMenuItem { #pragma warning disable CS8618 /// <summary> /// Constructor for EF Core, as it cannot pass a Restaurant in the constructor. /// </summary> private RestaurantMenuItem() { } #pragma warning restore CS8618 internal RestaurantMenuItem...
24.404762
132
0.644878
[ "MIT" ]
fbeltrao/minimal-apis-in-production
src/Contoso.FoodDelivery/RestaurantMenuItem.cs
1,027
C#
using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using CompanyName.MyMeetings.BuildingBlocks.Application; using CompanyName.MyMeetings.Modules.UserAccess.Application.Configuration.Commands; using CompanyName.MyMeetings.Modules.UserAccess.Appl...
34.232558
95
0.66712
[ "MIT" ]
nliebelt/modular-monolith-with-ddd
src/Modules/UserAccess/Infrastructure/Configuration/Processing/ValidationCommandHandlerDecorator.cs
1,474
C#
using System.Composition; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Formatting; using Microsoft.CodeAnalysis.Options; using OmniSharp.Options; using OmniSharp.Roslyn.Options; using RoslynFormattingOptions = Microsoft.CodeAnalysis.Formatting.FormattingOptions; namespace OmniSharp.Roslyn.CSharp.S...
84.990196
184
0.785212
[ "MIT" ]
jpfeiffer16/omnisharp-roslyn
src/OmniSharp.Roslyn.CSharp/Services/CSharpWorkspaceOptionsProvider.cs
8,669
C#
using System; namespace Codility.MaximumSliceProblem.MaxSliceSum { class Program { static void Main(string[] args) { var algorithm = new Algorithm(); var array1 = new int[] { 3, 2, -6, 4, 0 }; var result1 = algorithm.Solution(array1); Print(arra...
27.470588
83
0.512848
[ "MIT" ]
danijel-scukanec/codility
Codility.MaximumSliceProblem.MaxSliceSum/Program.cs
936
C#
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.OutlookApi { /// <summary> /// DispatchInterface _FormNameRuleCondition /// SupportByVersion Outlook, 12,14,15,16 /// </summary> [SupportByVersion("Outlook", 12,14,15,16)] [EntityType(Ent...
30.951754
177
0.692929
[ "MIT" ]
NetOfficeFw/NetOffice
Source/Outlook/DispatchInterfaces/_FormNameRuleCondition.cs
7,059
C#
// <copyright file="SimpleSpanProcessor.cs" company="OpenTelemetry Authors"> // Copyright 2018, OpenTelemetry Authors // // 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...
31.941176
91
0.667894
[ "Apache-2.0" ]
gibletto/opentelemetry-dotnet
src/OpenTelemetry/Trace/Export/SimpleSpanProcessor.cs
1,631
C#
using System; using System.Collections.Generic; using System.Linq; namespace CorvallisBus.Core.Models.Connexionz { /// <summary> /// An association between a Connexionz Platform Tag and a list of arrivals for the stop which corresponds to that tag. /// </summary> public record ConnexionzPlatformET( ...
32.173913
123
0.62973
[ "MIT" ]
RikkiGibson/Corvallis-Bus-Server
CorvallisBus.Core/Models/Connexionz/ConnexionzPlatformET.cs
742
C#
using Lumina.Data; using Lumina.Excel; using Lumina.Excel.GeneratedSheets; namespace Glamourer.Customization { [Sheet("CharaMakeParams")] public class CharaMakeParams : ExcelRow { public const int NumMenus = 28; public const int NumVoices = 12; public const int Nu...
47.704
152
0.479121
[ "Apache-2.0" ]
4679/Glamourer
Glamourer.GameData/Customization/CharaMakeParams.cs
5,965
C#
using System; namespace ForgedOnce.TsLanguageServices.FullSyntaxTree.TransportModel { public interface IJSDocType : ForgedOnce.TsLanguageServices.FullSyntaxTree.TransportModel.ITypeNode, ForgedOnce.TsLanguageServices.FullSyntaxTree.TransportModel.INode { } }
34.75
171
0.816547
[ "MIT" ]
YevgenNabokov/ForgedOnce.TSLanguageServices
ForgedOnce.TsLanguageServices.FullSyntaxTree/TransportModel/Generated/IJSDocType.cs
278
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using Microsoft.MixedReality.Toolkit.Physics; using Microsoft.MixedReality.Toolkit.Utilities; using System; using Unity.Profiling; using UnityEngine; using UnityPhys...
39.590476
236
0.597426
[ "MIT" ]
FamiizCEO/MixedRealityToolkit-Unity
Assets/MRTK/Services/InputSystem/GazeProvider.cs
24,944
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/objidlbase.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Runt...
48.456522
240
0.6559
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
sources/Interop/Windows/um/objidlbase/IMarshal2.cs
4,460
C#
using Kerberos.NET.Entities; using System; using System.Threading.Tasks; namespace Kerberos.NET.Server { public class PaDataTimestampHandler : KdcPreAuthenticationHandlerBase { public PaDataTimestampHandler(IRealmService service) : base(service) { } public override...
28.125
114
0.563556
[ "MIT" ]
DamirAinullin/Kerberos.NET
Kerberos.NET/Server/PaDataTimestampHandler.cs
1,127
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> //--...
34.258065
151
0.580038
[ "Apache-2.0" ]
MiracleSirius1/Projects
Chislo1/Chislo1/Properties/Settings.Designer.cs
1,064
C#
/* Copyright © 2018-2021, ETH Zurich, D-BSSE, Aaron Ponti & Todd Duncombe All rights reserved. This program and the accompanying materials are made available under the terms of the Apache-2.0 license which accompanies this distribution, and is available at https://www.apache.org/licenses/LIC...
36.818792
118
0.584579
[ "Apache-2.0" ]
SpectraSorter/SpectraSorter
src/UnitTests/PlotterTests.cs
5,489
C#
namespace Oniqys.Blazor.Controls.Layouter { public interface ILayouter { } }
12.857143
42
0.677778
[ "MIT" ]
cct-blog/Oniqys.Blazor
Oniqys.Blazor/Controls/Layouter/ILayouter.cs
92
C#
// CivOne // // To the extent possible under law, the person who associated CC0 with // CivOne has waived all copyright and related or neighboring rights // to CivOne. // // You should have received a copy of the CC0 legalcode along with this // work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. us...
23.807692
73
0.691438
[ "CC0-1.0" ]
Andersw88/CivOne
src/Units/Chariot.cs
619
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Threading; using System.Threading.Tasks; using Hangfire; using Hangfire.States; namespace AspEfCore.Web.Jobs { public class Services { private static readonly Random Rand = new Random(); ...
26.528571
100
0.507808
[ "MIT" ]
Alice52/C
project/csharp/ASPEfCore/ASPEfCore.Web/Jobs/Services.cs
3,716
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Net.Http; using System.Net.Http.Formatting; using System.Net.Http.Headers; using System.W...
47.193694
229
0.586332
[ "MIT" ]
monsterddq/rscchat
Asp.Net/server/chat/chat/Areas/HelpPage/SampleGeneration/HelpPageSampleGenerator.cs
20,954
C#
// Copyright 2006-2008 Splicer Project - http://www.codeplex.com/splicer/ // // 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 // // Unl...
34.886792
86
0.598882
[ "Apache-2.0" ]
Supermortal/MusicianHelper
splicer-99885/src/Backup/Splicer.Tests/Timeline/VirtualClipCollectionFixture.cs
5,547
C#
namespace Tomba { public enum OrderType { ASC, DESC } }
9.333333
25
0.47619
[ "Apache-2.0" ]
tomba-io/csharp
src/Tomba/Models/OrderType.cs
84
C#
using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using SharpGen.Model; using System.Collections.Generic; using System.Linq; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace SharpGen.Generator.Marshallers { class NullableInstanceMarshaller : MarshallerBase, IMarsh...
37.652174
114
0.677829
[ "MIT" ]
JKamsker/SharpGenTools
SharpGen/Generator/Marshallers/NullableInstanceMarshaller.cs
3,466
C#
// Created by Kearan Petersen : https://www.blumalice.wordpress.com | https://www.linkedin.com/in/kearan-petersen/ using System.Collections.Generic; using System.Threading.Tasks; using UnityEngine; using UnityEngine.Events; namespace SOFlow.Fading { public class GenericFader : MonoBehaviour { /// <sum...
29.817143
118
0.498467
[ "MIT" ]
BLUDRAG/SOFlow-Extensions
Assets/SOFlow Extensions/Fading/Faders/GenericFader.cs
5,218
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> //--...
43.671875
182
0.614669
[ "MIT" ]
BigOtzelot/OnvifLogInfoTester
OnvifLogInfoTester/Properties/Resources.Designer.cs
2,797
C#
// (c) Nick Polyak 2013 - http://awebpros.com/ // License: Code Project Open License (CPOL) 1.92(http://www.codeproject.com/info/cpol10.aspx) // // short overview of copyright rules: // 1. you can use this framework in any commercial or non-commercial // product as long as you retain this copyright message // 2. D...
27.122807
94
0.610931
[ "Apache-2.0" ]
npolyak/NP.Concepts.Bindings
GettersAndSetters/APropsGetterAndSetter.cs
3,094
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.Immutable; using System.Linq; using Microsoft.CodeAnalysis.PooledObjects; namespace Micro...
40.468085
199
0.656151
[ "MIT" ]
BrianFreemanAtlanta/roslyn
src/Features/Core/Portable/ChangeSignature/ParameterConfiguration.cs
3,806
C#
using System; using UnityEngine; using System.Collections; using System.Collections.Generic; namespace Obi{ [ExecuteInEditMode] public class ObiCurve : MonoBehaviour { [Serializable] public struct ControlPoint{ public enum BezierCPMode { Aligned, Mirrored, Free, } public Vector3 position; publ...
29.227273
181
0.67049
[ "Unlicense" ]
WeTeamA/ChemHack
Assets/Obi/Scripts/Utils/ObiCurve.cs
15,434
C#
// // WPFEngine.cs // // Author: // Carlos Alberto Cortez <calberto.cortez@gmail.com> // Luis Reis <luiscubal@gmail.com> // Thomas Ziegler <ziegler.thomas@web.de> // Eric Maupin <ermau@xamarin.com> // // Copyright (c) 2011 Carlos Alberto Cortez // Copyright (c) 2012 Lu�s Reis // C...
39.118852
125
0.740702
[ "MIT" ]
thiagoabreu/xwt
Xwt.WPF/Xwt.WPFBackend/WPFEngine.cs
9,547
C#
using System; namespace ETModel { public abstract class Singleton<T> where T : class, new() { private static T m_instance; public static T Instance { get { if (Singleton<T>.m_instance == null) { Singleton<T>.m_i...
22.023256
76
0.423442
[ "MIT" ]
passiony/ETFramework
Unity/Assets/Model/Module/Singleton/Singleton.cs
947
C#
/* MIT LICENSE Copyright 2018 Max Brauer (ma.brauer@live.de) 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, modify,...
44.266667
106
0.777485
[ "MIT" ]
Garados007/Korregator
KorrekturHilfe/Properties/AssemblyInfo.cs
2,673
C#
using System.Threading.Tasks; using StateMachines; using Units.Formation; namespace LifeCycle.Level.States { public class DivingWaveState : IAwaitableState<LevelStateType> { private readonly ShipsFormation _shipsFormation; private readonly LevelContext _levelContext; private readonly Le...
31.896552
117
0.688649
[ "MIT" ]
Volodej/GalagaTestProject
Assets/Scripts/LifeCycle/Level/States/DivingWaveState.cs
925
C#
/* * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) * See https://github.com/openiddict/openiddict-core for more information concerning * the license and the contributors participating to this project. */ using System; using System.Collections.Generic; using System.Dia...
47.726908
140
0.624453
[ "Apache-2.0" ]
Eduard-byte/2FA
src/OpenIddict.Validation.Owin/OpenIddictValidationOwinHandler.cs
11,886
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; using System.Collections.Generic; using Cake.Core.Diagnostics.Formatting; namespace Cake.Core.Diagno...
39.376068
143
0.536358
[ "MIT" ]
DixonDs/cake
src/Cake.Core/Diagnostics/CakeBuildLog.cs
4,609
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using CoreWCF.IdentityModel.Selectors; using CoreWCF.Security; namespace CoreWCF { public abstract class MessageSecurityVersion { public static MessageSecurityVersio...
40.333333
201
0.68905
[ "MIT" ]
AlexanderSemenyak/CoreWCF
src/CoreWCF.Primitives/src/CoreWCF/MessageSecurityVersion.cs
10,648
C#
using ICSharpCode.NRefactory.TypeSystem; using Mono.Cecil; namespace Bridge.Contract { public interface IValidator { bool CanIgnoreType(Mono.Cecil.TypeDefinition type); void CheckIdentifier(string name, ICSharpCode.NRefactory.CSharp.AstNode context); void CheckConstructors(Mono.Cecil....
43.310811
176
0.780343
[ "Apache-2.0" ]
Angolar/Bridge
Compiler/Contract/IValidator.cs
3,205
C#
using System; using System.Collections.Generic; using Umbraco.Core; using umbraco.BusinessLogic.Actions; using umbraco.businesslogic; using umbraco.cms.businesslogic.macro; using umbraco.cms.businesslogic.media; using umbraco.interfaces; namespace umbraco.cms { /// <summary> /// Extension methods for the PluginTypeR...
27.192308
137
0.724187
[ "MIT" ]
filipesousa20/Umbraco-CMS-V7
src/umbraco.cms/PluginManagerExtensions.cs
1,414
C#
namespace FluentlyHttpClient.Entity { public static class Constants { public const int ShortTextLength = 30; public const int NormalTextLength = 70; public const int LongTextLength = 1500; public const string SchemaName = "cache"; public const string HttpResponseTable = "HttpResponses"; } }
23.615385
58
0.758958
[ "MIT" ]
AChehre/FluentlyHttpClient
src/FluentlyHttpClient.Entity/Constants.cs
309
C#
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WalletManager.Data; using WalletManager.Models; namespace WalletManager.Services { public class WalletAddressService : IWalletAddressService { private readonly Wa...
31.358974
110
0.688471
[ "MIT" ]
Hossein-79/WalletManager
Services/WalletAddressService.cs
1,225
C#
using System; using Xunit; using Xunit.Extensions; namespace Humanizer.Tests.Localisation.uzLatn { public class TimeSpanHumanizeTests : AmbientCulture { public TimeSpanHumanizeTests() : base("uz-Latn-UZ") { } [Theory] [InlineData(14, "2 hafta")] [InlineData(7, "1 h...
28.972973
67
0.525653
[ "MIT" ]
ErikSchierboom/Humanizer
src/Humanizer.Tests/Localisation/uz-Latn-UZ/TimeSpanHumanizeTests.cs
2,073
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class UserController : MonoBehaviour { //Transform object used to change user's position/view public Transform viewT; //Force modifiers for force and torque public float forceMod = 5, torqueMod =...
25.631068
99
0.525189
[ "MIT" ]
alexbary2/cs409_prototype
CDCM/Assets/Project/Scripts/UserController.cs
5,280
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ClassBoxData { public class Box { private const string ERROR_MESSAGE = "cannot be zero or negative."; public Box(double length, double width, double height) { this.Length = leng...
23.761905
128
0.451403
[ "MIT" ]
BlagoKolev/SoftUni
C# OOP/Encapsulation/ClassBoxData/Box.cs
1,998
C#
/* * * (c) Copyright Ascensio System Limited 2010-2021 * * 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 appli...
28.655844
145
0.504343
[ "Apache-2.0" ]
jeanluctritsch/CommunityServer
web/studio/ASC.Web.Studio/Products/Community/Modules/Bookmarking/UserControls/Common/Presentation/BookmarkInfoBase.cs
13,239
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...
28.482143
106
0.64953
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/GameLift/Generated/Model/UpdateBuildResponse.cs
1,595
C#
using System.Diagnostics; using System.Net; using System.Threading; using System.Threading.Tasks; using Castle.Windsor; using LightBlue; using LightBlue.Windsor; using Microsoft.WindowsAzure.ServiceRuntime; namespace TestWindsorRole { public class WorkerRole : RoleEntryPoint { private readonly Cance...
26.328767
106
0.601457
[ "Apache-2.0" ]
ColinScott/LightBlue
TestWindsorRole/WorkerRole.cs
1,922
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; namespace CrossSiteScripting.Pages { [ResponseCache(Duration = 0, Location = Resp...
25.69697
88
0.6875
[ "MIT" ]
AnzhelikaKravchuk/asp-dot-net-core-in-action-2e
Chapter18/B_CrossSiteScripting/CrossSiteScripting/Pages/Error.cshtml.cs
848
C#
using System.Web.Mvc; using System.Web.Routing; namespace PlatformProject.Web { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", ...
26.368421
99
0.55489
[ "MIT" ]
ectechno/mulgala
PlatformProject.Web/App_Start/RouteConfig.cs
503
C#
using MedicationMngApp.Models; using MedicationMngApp.Views; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Diagnostics; using System.Net.Http; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using Xamarin.Forms; us...
38.028205
196
0.426741
[ "MIT" ]
johphil/MedicationMngApp
MedicationMngApp/MedicationMngApp/ViewModels/RegisterViewModel.cs
14,833
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LionFire.Framework.Pack { public class Class1 { } }
14.769231
33
0.739583
[ "MIT" ]
LionFire/Core
src/LionFire.Framework.Pack/Class1.cs
194
C#
using Prism.Commands; using Prism.Forms.Tests.Mocks; using Prism.Services; using System; using System.Threading.Tasks; using Xunit; namespace Prism.Forms.Tests.Services { public class PageDialogServiceFixture { [Fact] public async Task DisplayActionSheetNoButtons_ShouldThrowException() ...
42.4
126
0.64888
[ "Apache-2.0" ]
WertherHu/Prism
Source/Xamarin/Prism.Forms.Tests/Services/PageDialogServiceFixture.cs
3,394
C#
namespace Boards.API.Resources { public class UserResource { public int Id { get; set; } public string Email { get; set; } } }
19.25
41
0.584416
[ "MIT" ]
m0wo/boards-api
Boards.API/Resources/UserResource.cs
154
C#
using System; using System.Collections.Generic; using System.Text; namespace Pixie.Core.Services { public interface IPXClientService { string Id { get; } } }
15
37
0.683333
[ "MIT" ]
amazedevil/Pixie
Pixie/Core/Services/IPXClientService.cs
182
C#
// C# 9.0 までは // Func<string, int> f = m; // みたいに書かないとダメだった(ターゲット型推論)。 var f = m; Delegate d = m; MulticastDelegate md = m; // Delegate は ICloneable を実装しているので一応これも OK。 // (ただし、ICloneable インターフェイス自体今どき使わない。) ICloneable c = m; // これも一応できるけど、そんなに使い道がないというかたまにミスの原因になるので警告。 // object obj = m(); の () 付け忘れをたまにやるので… object ...
27.044444
137
0.58751
[ "Apache-2.0" ]
ufcpp/UfcppSample
Demo/2021/Csharp10/Lambda/NaturalType/Program.cs
1,663
C#