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
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
20.259067
95
0.64757
[ "Apache-2.0" ]
pengesoft/aliyun-openapi-net-sdk
aliyun-net-sdk-ecs/Ecs/Model/V20140526/ReInitDiskRequest.cs
3,910
C#
// This file is part of Silk.NET. // // You may modify and distribute Silk.NET under the terms // of the MIT license. See the LICENSE file for details. using System; using System.Runtime.InteropServices; using System.Text; using Silk.NET.Core.Native; using Ultz.SuperInvoke; namespace Silk.NET.Vulkan { public un...
25.634146
88
0.6451
[ "MIT" ]
mcavanagh/Silk.NET
src/Vulkan/Silk.NET.Vulkan/Structs/PhysicalDeviceShaderFloat16Int8Features.gen.cs
1,051
C#
using System.Collections.Generic; using Newtonsoft.Json; namespace DigitalOcean.API.Models.Requests { public class DatabaseBackup { /// <summary> /// A unique, human-readable name for the database cluster. /// </summary> [JsonProperty("name")] public string Name { get; set; ...
45.435484
345
0.635783
[ "MIT" ]
JoshClose/DigitalOcean.API
DigitalOcean.API/Models/Requests/DatabaseBackup.cs
2,817
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Security.Claims; using System.Web; using System.Web.Mvc; using System.Threading.Tasks; using Microsoft.Azure.ActiveDirectory.GraphClient; using Microsoft.IdentityModel.Clients.ActiveDirectory; using Microsoft.Ow...
47.060976
200
0.678673
[ "MIT" ]
tkopacz/2016NetCoreWebApiOneDriveBusiness
2016MT45/2016MT45/Controllers/UserProfileController.cs
3,861
C#
using System; using UnityEngine; using UnityEngine.Video; using System.Collections.Generic; namespace Adrenak.UniVRMedia { public class VRMediaPlayer { [Serializable] public class Configuration { /// <summary> /// The position of the sphere video player and the ca...
34.511236
94
0.525476
[ "MIT" ]
adrenak/Uni360Media
Assets/Adrenak/UniVRMedia/Scripts/VRMediaPlayer.cs
6,145
C#
using System; namespace IptablesCtl.Native { public enum LogLevels { EMERGENCY =0, ALERT=1, CRITICAL=2,ERROR=3,WARNING=4,NOTICE=5,INFORMATIONAL=6,DEBUG=7 } };
22.25
92
0.685393
[ "Apache-2.0" ]
skywarer/IptablesCtl
IptablesCtl/Native/LogLevels.cs
178
C#
using System; using System.ComponentModel; using System.Diagnostics; using System.Windows; namespace WhileTrue.Classes.DragNDrop { internal class DragDropSourceAdapter : IDragDropSourceAdapter { private readonly IDragDropUiSourceHandlerInstance dragSourceHandler; private readonly DependencyObj...
38.84466
119
0.623594
[ "Unlicense", "MIT" ]
GMS-online/wt-libraries
wt.core.win/Classes/DragNDrop/DragDropSourceAdapter.cs
4,003
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Text.Json.Reflec...
44.675
182
0.565543
[ "MIT" ]
AUTOMATE-2001/runtime
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/JsonTypeInfo.cs
28,592
C#
namespace CoderPatros.AuthenticatedHttpClient { // implementation shamelessly ripped off from the Azure sample // https://github.com/Azure-Samples/active-directory-dotnet-daemon/blob/master/TodoListDaemon/Program.cs public class AzureAdAuthenticatedHttpClientOptions { /// <summary> /// The ...
38.888889
108
0.600714
[ "MIT" ]
coderpatros/dotnet-authenticated-httpclient
CoderPatros.AuthenticatedHttpClient.AzureAd/AzureAdAuthenticatedHttpClientOptions.cs
1,402
C#
using JwtRsaHmacSample.Api.Models; using Microsoft.IdentityModel.Tokens; namespace JwtRsaHmacSample.Api.Services { public interface IJwtHandler { JWT Create(string userId); TokenValidationParameters Parameters { get;} } }
23.090909
56
0.724409
[ "MIT" ]
spetz/jwt-hmac-rsa-aspnet-core-sample
src/JwtRsaHmacSample.Api/Services/IJwtHandler.cs
254
C#
using System; namespace Encapsula_Modelo { public class DomainExceptionValidation : Exception { public DomainExceptionValidation(string error) : base(error) { } public static void When(bool hasError, string error) { if (hasError) throw new Do...
21.764706
68
0.602703
[ "MIT" ]
LucasCancio/poo-com-solid
Modulo01/11_Encapsula_Modelo/Encapsula_Modelo/DomainExceptionValidation.cs
372
C#
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 ...
36.773333
141
0.631255
[ "Apache-2.0" ]
algemeen-ontwikkeling/Lean
Common/Securities/Cfd/Cfd.cs
2,760
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** 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; names...
42.019608
182
0.619381
[ "ECL-2.0", "Apache-2.0" ]
Dominik-K/pulumi-aws
sdk/dotnet/Apigateway/BasePathMapping.cs
6,429
C#
/* * Copyright 2019 Mikhail Shiryaev * * 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 applicable law or a...
35.887424
116
0.527625
[ "Apache-2.0" ]
kanadeiar/scada
ScadaComm/OpenKPs/KpOpcUa/OpcUa/UI/FrmConfig.cs
35,450
C#
using System.Data; using FluentMigrator; namespace Group3.Semester3.WebApp.Migrations { [Migration(20201209123550)] public class CreateShareFileLinksTable : Migration { public override void Up() { Create.Table("SharedFilesLinks") .WithColumn("FileId").AsGuid().N...
27.259259
70
0.567935
[ "MIT" ]
dmai0919-group3/3rd-semester-project
Group3.Semester3.WebApp/Migrations/20201209123550_CreateShareFileLinksTable.cs
738
C#
using Maple.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Maple.Caching { public class DefaultAsyncTokenProvider : IAsyncTokenProvider { private readonly ILogger _logger; public Def...
30.731707
121
0.474603
[ "BSD-3-Clause" ]
fengqinhua/Maple-OLD
src/Maple/Caching/DefaultAsyncTokenProvider.cs
2,522
C#
using System.ComponentModel.DataAnnotations; namespace TaskManagerApp.Models.DTOs.Requests { public class UserLoginRequest { [Required] [EmailAddress] public string Email { get; set; } [Required] public string Password { get; set; } } }
22.230769
45
0.640138
[ "MIT" ]
bahkali/100DaysC-
13-TaskManager/TaskManagerApp/Models/DTOs/Requests/UserLoginRequest.cs
289
C#
// ----------------------------------------------------------------------- // <copyright file="Primitives.cs"> // Original Triangle code by Jonathan Richard Shewchuk, http://www.cs.cmu.edu/~quake/triangle.html // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/ // </copyright> // ---------------...
40.229508
100
0.49893
[ "MIT" ]
nmatanski/Advanced-2D-Platformer-Unity
2D Platformer/Assets/Third-Party Assets/Anima2D/Scripts/Editor/Triangle/Primitives.cs
19,634
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Dms.Ambulance.V2100</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False<...
43.556098
1,368
0.57442
[ "MIT" ]
Kusnaditjung/MimDms
src/Dms.Ambulance.V2100/Generated/BXIT_IVL_PQ.cs
8,929
C#
using AutoMapper; using Autofac; using MassTransit; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.OpenApi.Models; using System; using Microsoft.Extensions.Logging; using Autofac.Extensions...
30.886076
108
0.642623
[ "Apache-2.0" ]
ryanlangton/resilient-integration
src/web-api/Startup.cs
2,440
C#
namespace StyleCopAnalyzers.CLI; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.IO; using System.Reflection; using System.Runtime.Loader; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Diagnostics; public class Analy...
29.820896
119
0.627377
[ "Apache-2.0" ]
rookxx/StyleCopAnalyzersCmd
src/AnalyzerLoader.cs
3,996
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; [ExecuteInEditMode] [AddComponentMenu("Enviro/Standard/AddionalCamera")] public class EnviroAdditionalCamera : MonoBehaviour { #if ENVIRO_HD public bool addEnviroSkyRendering = true; public bool addEnviroSkyPostProcessing = true...
35.064378
275
0.573195
[ "Unlicense" ]
adityawahyu04/Tugas-Pertemuan-1-Lab-Pemgame
Assets/Enviro - Sky and Weather/Enviro Standard/Scripts/Utilities/EnviroAdditionalCamera.cs
8,172
C#
using System; namespace CheckExcellent { class CheckExcellent { private static double grade; static void Main(string[] args) { var garde = Double.Parse(Console.ReadLine()); if (grade >= 5.5) { } } } }
15.631579
57
0.484848
[ "MIT" ]
ztimofeev/Programming_Basics_CSharp-repo
Lecture-3-ConditionStatments/CheckExcellent/CheckExcellent.cs
299
C#
// Copyright (c) 2021 Salim Mayaleh. All Rights Reserved // Licensed under the BSD-3-Clause License // Generated at 28.11.2021 16:31:27 by RaynetApiDocToDotnet.ApiDocParser, created by Salim Mayaleh. using System; using Newtonsoft.Json; using System.Collections.Generic; using System.Threading.Tasks; using Maya.Raynet...
29.314286
106
0.655945
[ "BSD-3-Clause" ]
mayaleh/Maya.Raynet.Crm
src/Maya.Raynet.Crm/Request/Put/Credit.cs
1,026
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.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Diagnostics.ContractsLight; using System.IO; using System.Text; us...
39.028169
167
0.602069
[ "MIT" ]
erickulcyk/BuildXL
Public/Src/Engine/Processes/ExternalVMSandboxedProcess.cs
8,315
C#
using CognitiveRelay.Models; using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; using Newtonsoft.Json; using System; namespace CognitiveRelay { public class Comment { [BsonId] [JsonIgnore] public ObjectId _id { get; set; } public string Language { get; set; } ...
24.029412
59
0.543452
[ "MIT" ]
ikemtz/CIS373
cognitive-relay/src/Comment.cs
819
C#
namespace Negum.Core.Managers.Entries { /// <summary> /// Represents Sprite with Sound entry in section. /// </summary> /// /// <author> /// https://github.com/TheNegumProject/Negum.Core /// </author> public interface ISpriteSoundEntry : IManagerSectionEntry<ISpriteSoundEntry> { ...
29.142857
93
0.605882
[ "MIT" ]
TheNegumProject/Negum.Core
Negum.Core/Managers/Entries/ISpriteSoundEntry.cs
1,020
C#
///////////////////////////////////////////////////////////////////////////////// // Paint.NET // // Copyright (C) dotPDN LLC, Rick Brewster, Tom Jackson, and contributors. // // Portions Copyright (C) Microsoft Corporation. All Rights Reserved. ...
42.59751
157
0.598188
[ "MIT" ]
Relfos/PixelDotNet
PixelDotNet/Data/PngFileType.cs
10,266
C#
using System; using System.Diagnostics.CodeAnalysis; using WMD.Game.State.Data; namespace WMD.Game.State.Utility { /// <summary> /// Provides methods for performing land area-related calculations. /// </summary> public static class LandAreaCalculator { /// <summary> /// Calculates ...
60.52459
159
0.700163
[ "MIT" ]
Xyaneon/Weapons-of-Mass-Domination
src/wmd-core/State/Utility/LandAreaCalculator.cs
3,694
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Security.Cryptography; namespace TeachersAssessment { public partial class FormMain : Form { int t; tGlobal p_globa...
36.946429
207
0.527791
[ "Apache-2.0" ]
Adibhatt95/Time-tableExtensionTOOL
FormMain.cs
8,278
C#
using System; using System.Threading.Tasks; using FingerSensorsApp.Services; using Windows.ApplicationModel.Activation; namespace FingerSensorsApp.Activation { internal class DefaultActivationHandler : ActivationHandler<IActivatedEventArgs> { private readonly Type _navElement; public Defaul...
31.225
97
0.66293
[ "Apache-2.0" ]
srw2ho/FingerPrintSensor_SEN0188
FingerSensorsApp/Activation/DefaultActivationHandler.cs
1,251
C#
using System; using System.Xml.Serialization; using System.ComponentModel.DataAnnotations; using BroadWorksConnector.Ocip.Validation; using System.Collections.Generic; namespace BroadWorksConnector.Ocip.Models { /// <summary> /// Modify a criteria for the user's call forwarding selective service. /// The f...
32.44898
162
0.604874
[ "MIT" ]
JTOne123/broadworks-connector-net
BroadworksConnector/Ocip/Models/UserCallForwardingSelectiveModifyCriteriaRequest.cs
6,360
C#
#if !NETSTANDARD1_0 using System; using System.Data; using System.Diagnostics; namespace Adenson.Data { /// <summary> /// Represents simple a key/value pair that can be automagically turned into a IDbDataParameter /// </summary> public sealed class Parameter : IEquatable<Parameter> { #region Constr...
22.338983
98
0.599014
[ "MIT" ]
ayo10/adenson.core
Core/Data/Parameter.cs
2,636
C#
#pragma checksum "F:\Extras\app\2 Player Reactor\2 Player Reactor\2 Player Reactor\White.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "50BF5187AFA9B7DED4B95954E39AB926" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. /...
44.055046
172
0.634944
[ "Apache-2.0" ]
mandyjohar23/twin-player-reactor
2 Player Reactor/obj/Debug/White.g.cs
4,804
C#
namespace BetSystem.Data.Models { using System; using System.ComponentModel.DataAnnotations.Schema; using System.Security.Claims; using System.Threading.Tasks; using Common.Models; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; // You can add profile...
36.121212
175
0.698826
[ "MIT" ]
NikitoG/BetSystem
Source/Data/BetSystem.Data.Models/User.cs
1,194
C#
/*---------------------------------------------------------------- Copyright (C) 2022 Senparc 文件名:AsynchronousPostData.cs 文件功能描述:异步任务接口提交数据Json 创建标识:Senparc - 20150408 ----------------------------------------------------------------*/ namespace Senparc.Weixin.Work.AdvancedAPIs.Asynchron...
25.6
67
0.474609
[ "Apache-2.0" ]
AaronWu666/WeiXinMPSDK
src/Senparc.Weixin.Work/Senparc.Weixin.Work/AdvancedAPIs/Asynchronous/AsynchronousJson/AsynchronousPostData.cs
566
C#
#region Copyright //////////////////////////////////////////////////////////////////////////////// // The following FIT Protocol software provided may be used with FIT protocol // devices only and remains the copyrighted property of Dynastream Innovations Inc. // The software is being provided on an "as-is" basis and a...
40.045455
83
0.614642
[ "MIT" ]
JaniceBPC/FitFiles
Dynastream/Fit/Profile/Types/CourseCapabilities.cs
1,762
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 extern alias DSR; using System; using System.Collections.Immutable; using System.Diagnostics; us...
33.971292
214
0.621408
[ "MIT" ]
333fred/roslyn
src/Test/PdbUtilities/Reader/MockSymUnmanagedReader.cs
14,202
C#
using System; using System.Windows; using System.Windows.Media; using GammaJul.ReSharper.EnhancedTooltip.Settings; using JetBrains.Annotations; using JetBrains.Application; using JetBrains.Application.Components; using JetBrains.Application.UI.Components.Theming; using JetBrains.Util; using Microsoft.VisualStudio.Text....
38.323529
124
0.805833
[ "Apache-2.0" ]
DimitarCC/ReSharper.EnhancedTooltip
source/GammaJul.ReSharper.EnhancedTooltip/VisualStudio/TooltipFormattingProvider.cs
2,606
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace WebApi.Migrations { public partial class ShiftCreatedAt : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<DateTime>( name: "CreatedAt", ...
27.84
91
0.581897
[ "MIT" ]
asagynbaev/CEA_Api
Migrations/20200115234752_ShiftCreatedAt.cs
698
C#
// DocSection: managing_navigation_articles_slugs // Tip: Find more about .NET SDKs at https://docs.kontent.ai/net using Kentico.Kontent.Delivery; // Creates an instance of the delivery client // ProTip: Use DI for this in your apps https://docs.kontent.ai/net-register-client IDeliveryClient client = DeliveryClientBui...
40.315789
85
0.762402
[ "MIT" ]
Simply007/kontent-docs-samples
net/managing-navigation/GetArticlesSlug.cs
766
C#
using System; using System.Buffers.Text; using System.Globalization; using System.IO; using System.Linq; using System.Net; using System.Runtime.InteropServices; using System.Reflection; using System.Security.Authentication; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace ...
37.373272
208
0.688656
[ "MIT" ]
datatechnology/MySqlConnector
src/MySqlConnector/Utilities/Utility.cs
16,220
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.EntityFrameworkCore.TestUtilities.QueryTestGeneration; public class AppendCorrelatedCollectionExpressionMutator : ExpressionMutator { public AppendCorrelate...
41.12963
122
0.70824
[ "MIT" ]
Applesauce314/efcore
test/EFCore.Specification.Tests/TestUtilities/QueryTestGeneration/AppendCorrelatedCollectionExpressionMutator.cs
2,223
C#
namespace MassTransit.AmazonSqsTransport.Configuration.Configuration { using System; using System.Collections.Generic; using Builders; using GreenPipes; using GreenPipes.Agents; using GreenPipes.Builders; using GreenPipes.Configurators; using MassTransit.Configuration; using MassTra...
35.864734
147
0.674704
[ "ECL-2.0", "Apache-2.0" ]
AOrlov/MassTransit
src/MassTransit.AmazonSqsTransport/Configuration/Configuration/AmazonSqsReceiveEndpointConfiguration.cs
7,426
C#
using Autofac; using System; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using Pomelo.EntityFrameworkCore.MySql.Infrastructure; using Pomelo.EntityFrameworkCore.MySql.Storage; using Adnc.Infr.EfCore; using Adnc.Infr.Common; using Adnc.Cus.Core.Entities; using Adnc.Core.Shared.Entities; usi...
35.323529
109
0.620733
[ "MIT" ]
cqwebwang/Adnc
test/Adnc.UnitTest/Fixtures/MaxscaleDbcontextFixture.cs
2,440
C#
/// <summary> /// Copyright 2021 HGTP Capstone Team at the University of Utah: /// Emma Pinegar, Harrison Quick, Misha Griego, Jacob B. Norgaard /// /// Licensed under the MIT license. Read the project readme for details. /// </summary> namespace RevisedGestrApp.Models { /// <summary> /// Represents a conta...
25.157895
72
0.640167
[ "Unlicense" ]
HGTP/hgtp-capstone
mobile-app/RevisedGestrApp/RevisedGestrApp/RevisedGestrApp/Models/Contact.cs
480
C#
using LNF.DataAccess; using System; namespace LNF.Impl.Repository.Data { public class GlobalCost : IDataItem { public virtual int GlobalID { get; set; } public virtual int BusinessDay { get; set; } public virtual Account LabAccount { get; set; } public virtual Account LabCredit...
31.833333
65
0.65096
[ "MIT" ]
lurienanofab/lnf
LNF.Impl/Repository/Data/GlobalCost.cs
575
C#
namespace Console_CSharp { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Xml.Linq; internal class XmlDocReader { private IEnumerable<XElement> MemberElements { get; } public XmlDocReader(string aPath) { XDoc...
29.432432
107
0.708907
[ "Unlicense" ]
TimeWarpEngineering/timewarp-architecture
Source/TimeWarp.Console.Template/content/TimeWarp.Console-CSharp/Source/XmlDocReader.cs
1,091
C#
using Cofoundry.Core; using Cofoundry.Domain; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Cofoundry.Samples.PageBlockTypes { public class CarouselDisplayModelMapper : IPageBlockTypeDisplayModelMapper<CarouselDataModel> { private readonly I...
31.290323
97
0.545876
[ "MIT" ]
cofoundry-cms/Cofoundry.Samples.PageBlockTypes
src/Cofoundry.Samples.PageBlockTypes/Cofoundry/PageBlockTypes/Carousel/CarouselDisplayModelMapper.cs
1,942
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...
48.879032
183
0.691305
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/Polly/Generated/Model/SsmlMarksNotSupportedForTextTypeException.cs
6,061
C#
/******************************************/ /* */ /* Copyright (c) 2018 monitor1394 */ /* https://github.com/monitor1394 */ /* */ /******************************************/ using UnityEngine; namespace XCharts { /// ...
29.765625
116
0.502887
[ "MIT" ]
moonforce/unity-ugui-XCharts
Assets/XCharts/Runtime/Component/Sub/Emphasis.cs
1,977
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.Diagnostics; namespace System.ComponentModel.Design { public sealed class DesignerActionUIService...
39.827273
136
0.598265
[ "MIT" ]
SeppPenner/winforms
src/System.Windows.Forms.Design/src/System/ComponentModel/Design/DesignerActionUIService.cs
4,383
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // La información general sobre un ensamblado se controla mediante el siguiente // conjunto de atributos. Cambie estos atributos para modificar la información // asociada con un ensamblado. [assembly: AssemblyTitle(...
41.864865
114
0.763073
[ "MIT" ]
ingscarrero/dotNet
SOFTTEK/softtek.scms.net/SOFTTEK.SF.CodeGeneration/Properties/AssemblyInfo.cs
1,567
C#
using System; using System.Timers; using System.Collections.Generic; using System.Net; using System.Net.Sockets; using System.IO; namespace AsyncServer { #region TimeoutTimer /// <summary> /// Timeout Timer /// </summary> public class TimeoutTimer : Timer { private object tag; public object Tag { get {...
21.109375
63
0.589193
[ "MIT" ]
Yugioh-Sims-International/Launcher-Server-System
lib/AsyncServer/Connection.cs
1,353
C#
using Retyped; namespace BabylonJsDemo.SceneProviders { public abstract class AbstractSceneProvider { public abstract babylon_js.BABYLON.Scene CreateScene(dom.HTMLCanvasElement canvas, babylon_js.BABYLON.Engine engine); } }
27.222222
125
0.77551
[ "Apache-2.0" ]
Chelton17/idk
BabylonJsDemo/BabylonJsDemo/SceneProviders/AbstractSceneProvider.cs
247
C#
/* * Copyright(c) 2020 Samsung Electronics Co., 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/licenses/LICENSE-2.0 * * Unless required by applicable ...
42.880952
115
0.549139
[ "Apache-2.0", "MIT" ]
JoogabYun/TizenFX
src/Tizen.NUI.Components/PreloadStyle/DefaultCheckBoxStyle.cs
3,602
C#
// Copyright (c) Christof Senn. All rights reserved. See license.txt in the project root for license information. namespace Remote.Linq { using Aqua.Dynamic; using System; using SystemLinq = System.Linq.Expressions; /// <summary> /// Denotes a provider for mapping values on translating expression...
37.541667
134
0.660377
[ "MIT" ]
6bee/Remote.Linq
src/Remote.Linq/IExpressionValueMapperProvider.cs
903
C#
using System.Collections.Generic; using Product.Data.Context; using Product.Data.Entities; namespace Product.Data.Migrations { using System.Data.Entity.Migrations; using System.Linq; internal sealed class Configuration : DbMigrationsConfiguration<ProductDataContext> { public Configuration() ...
31.108108
221
0.486244
[ "MIT" ]
SGParikh/product-dotnet-test
Product.Data/Migrations/Configuration.cs
3,453
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...
32.652778
209
0.6359
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/Media/V20180601Preview/ListAssetContainerSas.cs
2,351
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using Newtonsoft.Json; namespace FormatterWebSite; public class InfinitelyRecursiveModel { [JsonConverter(typeof(StringIdentifierConverter))] public Recursiv...
31.413793
124
0.720088
[ "MIT" ]
AndrewTriesToCode/aspnetcore
src/Mvc/test/WebSites/FormatterWebSite/Models/InfinitelyRecursiveModel.cs
913
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18408 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
28.373832
82
0.458827
[ "MIT" ]
Milstein/azure-sdk-tools
WindowsAzurePowershell/src/Commands.ServiceManagement/Extensions/ADDomain/ADPublicSchema.cs
2,932
C#
// OsmSharp - OpenStreetMap (OSM) SDK // Copyright (C) 2013 Abelshausen Ben // // This file is part of OsmSharp. // // OsmSharp is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 2 of the Lice...
32.710204
132
0.518717
[ "Apache-2.0" ]
fakit/OSM-AutoCAD
Mustern/core-releases-v1.3/OsmSharp/Collections/Tags/StringTableTagsCollection.cs
8,016
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...
40.273973
153
0.602721
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Sql/V20171001Preview/ManagedInstanceKey.cs
5,880
C#
// Copyright (c) 2010-2014 SharpDX - Alexandre Mutel // // 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, modi...
75.232877
560
0.724326
[ "MIT" ]
VirusFree/SharpDX
Source/SharpDX.Direct2D1/Transform.cs
5,494
C#
using OpenTibiaUnity.Core.Trade; using UnityEngine; using UnityUI = UnityEngine.UI; namespace OpenTibiaUnity.Modules.Trade { [RequireComponent(typeof(UnityUI.Toggle))] public class NPCTradeItem : UI.Legacy.ToggleListItem { [SerializeField] private TMPro.TextMeshProUGUI _label = null; ...
22.73913
63
0.636711
[ "MIT" ]
nekiro/OpenTibia-Unity
OpenTibia/Assets/Scripts/Modules/Trade/NPCTradeItem.cs
525
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using WorkflowDatabase.EF.Models; namespace Portal.ViewModels { public class TaskViewModel { public int WorkflowInstanceId { get; set; } public int ProcessId { get; set; } [DisplayFormat(NullDi...
40.526316
76
0.64026
[ "MIT" ]
UKHO/taskmanager
src/Portal/Portal/ViewModels/TaskViewModel.cs
1,542
C#
using Microsoft.AspNetCore.Builder; using Netcool.HttpProxy; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); buil...
25.72973
101
0.717437
[ "Apache-2.0" ]
NeilQ/Netcool.Api
src/samples/Netcool.HttpProxy.Net6.Sample/Program.cs
952
C#
#if VOUCHERIFYSERVER || VOUCHERIFYCLIENT using System; using Newtonsoft.Json; using Voucherify.Core.DataModel; namespace Voucherify.DataModel { [JsonObject] public class VoucherRedemption : ApiObjectWithId { [JsonProperty(PropertyName = "date")] public DateTime? Date { get; private set; } ...
29.8
155
0.63255
[ "MIT" ]
Mncool/voucherify-dotNET-sdk
src/Voucherify/DataModel/VoucherRedemption.cs
1,194
C#
using System; using JetBrains.Annotations; namespace MirrorSharp.Advanced { /// <summary>Provides a way to log unhandled exceptions.</summary> public interface IExceptionLogger { /// <summary>Logs a given exception.</summary> /// <param name="exception">Exception to log.</param> /// <p...
41.428571
97
0.691379
[ "MIT" ]
edcoss/Sitecore-Script
Common/Advanced/IExceptionLogger.cs
582
C#
using System; namespace Cogito.MassTransit.Autofac.Sample1 { public class TestSagaMessage { public Guid Id { get; set; } public string Value { get; set; } } }
12.125
44
0.608247
[ "MIT" ]
alethic/Cogito.MassTransit
Cogito.MassTransit.Autofac.Sample1/TestSagaMessage.cs
196
C#
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Npgsql; namespace Discount.Grpc.Extensions { public static class HostExtensions { public static IHost MigrateDatabase<TContext>(this I...
41.349206
144
0.527831
[ "MIT" ]
ramious76/AspnetMicroservices
src/Services/Discount/Discount.Grpc/Extensions/HostExtensions.cs
2,607
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; namespace AI { public enum AbortType { None, LowerPriority } [NodeTint(0.2f, 0.2f, 0.5f)] public abstract class Composite : Node { public AbortType m_abortType = AbortType.None; [Output(...
27.45045
100
0.505415
[ "MIT" ]
world29/FlappyAzarashi
Assets/Scripts/BehaviourTree/Nodes/Composite.cs
3,231
C#
using System.Collections.Generic; using GovernCMS.Models; namespace GovernCMS.ViewModels { public class ManageWebsiteViewModel { public string SiteName { get; set; } public string SiteUrl { get; set; } public int OwnerId { get; set; } public IList<Website> Websites { get; set;...
23.571429
52
0.651515
[ "MIT" ]
ptenn/govern-cms
GovernCMSWeb/ViewModels/ManageWebsiteViewModel.cs
332
C#
using System.Linq; using System.Threading.Tasks; using Baseline; using Marten; using Marten.Services; using Marten.Storage; using Marten.Testing.Documents; using Marten.Testing.Harness; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Npgsql; using Shouldly; using Weasel.Postgre...
36.305164
133
0.596793
[ "MIT" ]
Rob89/marten
src/CoreTests/DatabaseMultiTenancy/using_static_database_multitenancy.cs
7,733
C#
using System; using System.Collections.Generic; using System.Text; using Tizen.NUI.BaseComponents; using Tizen.NUI; using Tizen.UIExtensions.NUI; using Tizen.UIExtensions.Common; using TColor = Tizen.UIExtensions.Common.Color; using Tizen.Applications; namespace NUIExGallery.TC { public class NavigationTest : Tes...
32.823529
126
0.390844
[ "Apache-2.0" ]
Samsung/Tizen.UIExtensions
test/NUIExGallery/TC/NavigationTest.cs
6,140
C#
namespace Win32 { /// <summary> /// Print quality. /// </summary> public enum DMRES : short { /// <summary> /// Draft quality. /// </summary> DRAFT=-1, /// <summary> /// Low quality. /// </summary> LOW=-2, /// <summary> /// Medium quality. /// </summary> MEDIUM=-3, /// <summary> ///...
12.689655
26
0.5
[ "MIT" ]
RomanMayer7/Win32
GDI/Defines/DMRES.cs
370
C#
//namespace System.Windows //{ // public enum Visibility : byte // { // /// <summary>Display the element.</summary> // Visible, // /// <summary>Do not display the element, but reserve space for the element in layout.</summary> // Hidden, // /// <summary>Do not display the elemen...
34
105
0.588235
[ "MIT" ]
zerotwooneone/GameScreen
GameScreenTests2/System/Windows/Visibility.cs
408
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/d3d12sdklayers.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System....
44.037736
195
0.679949
[ "MIT" ]
john-h-k/terrafx.interop.windows
sources/Interop/Windows/um/d3d12sdklayers/ID3D12DebugCommandList.cs
2,336
C#
// File generated from our OpenAPI spec namespace Stripe { using Newtonsoft.Json; public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions { /// <summary> /// Type of the tax ID, one of <c>ae_trn</c>, <c>au_abn</c>, <c>br_cnpj</c>, <c>br_cpf</c>, /// <c>ca_bn</c>, <c>ca_qst<...
48.088235
100
0.487462
[ "Apache-2.0" ]
GigiAkamala/stripe-dotnet
src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs
1,635
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MessageManager.Key; using Microsoft.Azure.ServiceBus; using Microsoft.Azure.ServiceBus.Core; namespace MessageManager { public class DeleterArguments : CommandArguments { public bool Dead { get; set; ...
33.316667
104
0.541271
[ "MIT" ]
thonhotels/message-manager
src/Deleter.cs
1,999
C#
//------------------------------------------------------------------------------ // <auto-generated> // Dieser Code wurde von einem Tool generiert. // Laufzeitversion: 4.0.30319.42000 // // Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn // der Code neu gen...
41.569444
189
0.628466
[ "MIT" ]
wyx227/Wows_Ballistic_Tool
Wows_Ballistic_Tool_GUI/Properties/Resources.Designer.cs
3,003
C#
// Copyright (c) Giovanni Lafratta. All rights reserved. // Licensed under the MIT license. // See the LICENSE file in the project root for more information. using Novacta.Analytics.Tests.TestableItems.Matrices; using Novacta.Analytics.Tests.Tools; namespace Novacta.Analytics.Tests.TestableItems.Kurtosis { /// ...
36.595238
93
0.587508
[ "MIT" ]
Novacta/analytics
tests/Novacta.Analytics.Tests/TestableItems/Kurtosis/OnRowsNotAdjustedKurtosis02.cs
1,539
C#
using System; namespace NewLife.Caching.Models { /// <summary>Redis队列状态</summary> public class RedisQueueStatus { /// <summary>标识消费者的唯一Key</summary> public String Key { get; set; } /// <summary>机器名</summary> public String MachineName { get; set; } /// <summary>用户名...
24.942857
48
0.557847
[ "MIT" ]
BillSon68/NewLife.Redis
NewLife.Redis/Models/RedisQueueStatus.cs
959
C#
namespace Cloudtoid.UrlPattern { internal abstract class PatternValidatorBase : PatternNodeVisitor { internal void Validate(PatternNode pattern) => Visit(pattern); } }
23.625
70
0.724868
[ "MIT" ]
cloudtoid/url-pattern
src/Cloudtoid.UrlPattern/Validators/PatternValidatorBase.cs
191
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; using System.Windows.Controls.Primitives; using System.Windows.Media; using Xwt.Accessibility; using Xwt.Backends; namespace Xwt.WPFBackend...
28.164894
112
0.727668
[ "MIT" ]
hamekoz/xwt
Xwt.WPF/Xwt.WPFBackend/AccessibleBackend.cs
5,295
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("Mi...
38.72973
84
0.748779
[ "MIT" ]
Draeniky/Office-IT-Pro-Deployment-Scripts
Office-ProPlus-Deployment/Microsoft.ProPlus.InstallGenerator/Microsoft.OfficeProPlus.MSIGenerator/Properties/AssemblyInfo.cs
1,436
C#
// Decompiled with JetBrains decompiler // Type: VirusTotalNET.Objects.DetectedUrl // Assembly: VirusTotal.NET, Version=1.3.1.0, Culture=neutral, PublicKeyToken=null // MVID: 2B160AD8-F9AD-46F3-A2B1-F9B9E38BD041 // Assembly location: D:\repository\repo\vs2015\Security\FIDO.Threatfeeds\FIDO.Threatfeeds\packages\VirusTo...
28.409091
145
0.7376
[ "Apache-2.0" ]
robfry/crucyble-csharp-micro-threatfeeds
FIDO.Threatfeeds/FIDO.Threatfeeds/FIDO.Support/VirusTotal.NET/DetectedUrl.cs
627
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.ComponentModel.Composition; using Microsoft.CodeAnalysis.CSharp; namespace Microsoft.VisualStudio.Proje...
43.217391
162
0.737425
[ "Apache-2.0" ]
MSLukeWest/project-system
src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/LanguageServices/CSharp/CSharpCommandLineParserService.cs
974
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; public class StartUp { private static void Main(string[] args) { Type boxType = typeof(Box); FieldInfo[] fields = boxType.GetFields(BindingFlags.NonPublic | BindingFlags.Instance); Console.Write...
27.793103
95
0.602978
[ "MIT" ]
Hellsflash/Databases-Advanced
OOP Introduction/Encapsulation and Validation Exercises/Class Box/StartUp.cs
808
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; using System.Composition; using System.Threading.Tasks; using StarkPlatform.CodeAnalysis.Host; using StarkPlatform.CodeAnalysis.Host.Mef; using...
41.066667
161
0.784091
[ "Apache-2.0" ]
stark-lang/stark-roslyn
src/Workspaces/Core/Portable/SymbolSearch/ISymbolSearchProgressService.cs
1,234
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WhileIteration { class Program { static void Main(string[] args) { bool displayMenu = true; while (displayMenu) { di...
29.466667
97
0.436005
[ "MIT" ]
castillocarlosr/test-cSharp-project
WhileIteration/WhileIteration/Program.cs
3,096
C#
namespace OnlyT.Services.Monitors { using System.Collections.Generic; using Models; public interface IMonitorsService { IEnumerable<MonitorItem> GetSystemMonitors(); MonitorItem GetMonitorItem(string monitorId); } }
19.615385
53
0.705882
[ "MIT" ]
Vikingo80/OnlyT
OnlyT/Services/Monitors/IMonitorsService.cs
257
C#
using Example.Shared.Core.Models; namespace Example.App.Shared.Models.View.Contact { public class AddressModel : IId { public int Id { get; set; } public string AddressInfo { get; set; } public decimal Latitude { get; set; } public decimal Longitude { get; set; } publi...
27.133333
49
0.619165
[ "MIT" ]
TinusHeystek/aspnet-core-web-app
Projects/Example.App.Shared/Models/View/Contact/AddressModel.cs
409
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.Test.Common; using Moq; using Newtonsoft.Json.Linq; using OmniSh...
32.875
119
0.629006
[ "Apache-2.0" ]
Chatina73/AspNetCore-Tooling
src/Razor/test/Microsoft.AspNetCore.Razor.LanguageServer.Test/DefaultRazorConfigurationServiceTest.cs
3,684
C#
using System; using Temporal.Util; using Temporal.Api.Common.V1; namespace Temporal.Serialization { public class VoidPayloadConverter : IPayloadConverter { public bool TryDeserialize<T>(Payloads serializedData, out T item) { // Check: `serializedData` is not null // ...
30.705882
112
0.556194
[ "Apache-2.0" ]
macrogreg/sdk-dotnet
Src/SDK/Common/Temporal.Serialization/public/VoidPayloadConverter.cs
1,568
C#
using Newtonsoft.Json; using System.Collections.Generic; namespace HealthChecks.UI.Core.Discovery.K8S { internal class ServiceList { [JsonProperty("items")] public Service[] Items { get; set; } = new Service[] { }; } internal class Service { public Metadata Metadata { ...
26.192308
65
0.559471
[ "Apache-2.0" ]
FurstLevy/AspNetCore.Diagnostics.HealthChecks
src/HealthChecks.UI/Core/Discovery/K8S/KubernetesResponses.cs
1,364
C#
// MonoGame - Copyright (C) The MonoGame Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. using System; using Microsoft.Xna.Framework.Graphics; using Windows.UI.Xaml.Controls; namespace Microsoft.Xna.Framework { partial class Gra...
32.74359
111
0.65231
[ "MIT" ]
06needhamt/MonoGame
MonoGame.Framework/Platform/GraphicsDeviceManager.WinRT.cs
1,277
C#
// Copyright 2022 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
39.363636
91
0.700924
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.Billing.V1/Google.Cloud.Billing.V1.GeneratedSnippets/CloudBillingClient.SetIamPolicyAsyncSnippet.g.cs
1,732
C#
using J2N; using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using JCG = J2N.Collections.Generic; /* * dk.brics.automaton * * Copyright (c) 2001-2009 Anders Moeller * All rights reserved. * * Redistribution and use in source ...
34.582545
131
0.49997
[ "Apache-2.0" ]
bongohrtech/lucenenet
src/Lucene.Net/Util/Automaton/Automaton.cs
32,888
C#
using System; using System.Collections; using System.Collections.Generic; using Xunit; namespace Guidelines.RestApi.Collections.Filtering { public sealed class FilterCompilerTests { [Theory] [ClassData(typeof(CorrectInputTestData))] public void ShouldCompileWhenInputIsCorrect(string inp...
47.933333
170
0.556527
[ "MIT" ]
sleemer/Guidelines.RestApi.Collections.Filtering
Filtering.Tests/FilterCompilerTests.cs
5,033
C#