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
// 所在工程:Agebull.EntityModel // 整理用户:bull2 // 建立时间:2012-08-13 5:35 // 整理时间:2012-08-30 3:13 namespace Agebull.Common.Settings { /// <summary> /// 自定的配置文件 /// </summary> public class AppliationConfiguration { private static readonly ConfigurationSettings _Settings = new ConfigurationSettings...
21.153846
95
0.541818
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
agebullhu/EntityModel
src/Extend/SystemExtend/Configuration.cs
614
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TygaSoft.Model { public partial class PackageInfo { public string CustomerCode { get; set; } public string CustomerName { get; set; } public string ProductCode { get; set; } ...
23.4375
49
0.637333
[ "MIT" ]
ranran1997/Wms
Src/TygaSoft/Model/PackageInfo.cs
377
C#
namespace BookFast.Data { public class Program { public static void Main() { } } }
13.222222
33
0.495798
[ "MIT" ]
dzimchuk/book-fast-api
src/BookFast.Data/Program.cs
121
C#
// **************************************************************************** // * The MIT License(MIT) // * Copyright � 2017 Thomas Due // * // * Permission is hereby granted, free of charge, to any person obtaining a // * copy of this software and associated documentation files (the �Software�), // * to ...
50.5
122
0.638064
[ "MIT" ]
DoveSoftConsult/AgileCardsPrinting
Source/AgileCards.Common/Models/SortingInformation.cs
1,830
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...
37.722222
84
0.752577
[ "Apache-2.0" ]
phanductri13/ATDTDM-PDT
WebApplication1/Properties/AssemblyInfo.cs
1,361
C#
using System; using System.Runtime.InteropServices; namespace SixtenLabs.SpawnOfVulkan { [StructLayout(LayoutKind.Explicit)] public struct DescriptorSetHandle { [FieldOffset(0)] public IntPtr nativePointer; public readonly static DescriptorSetHandle Null = new DescriptorSetHandle(I...
27.411765
95
0.695279
[ "Unlicense" ]
SixtenLabs/SpawnOfVulkan
src/SixtenLabs.SpawnOfVulkan/Handles/DescriptorSetHandle.cs
468
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("he...
36.862069
84
0.744621
[ "Apache-2.0" ]
feedhenry-templates/helloworld-windows
helloworld-windows/helloworld-windows.Windows/Properties/AssemblyInfo.cs
1,072
C#
//---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. // All rights reserved. // // This code is licensed under the MIT License. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentat...
41.305085
160
0.665367
[ "MIT" ]
AaronPatterson/azure-activedirectory-library-for-dotnet
src/Microsoft.IdentityModel.Clients.ActiveDirectory/Platforms/iOS/WebviewBase.cs
4,876
C#
using System; namespace VsjAPI { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
17.9375
69
0.595819
[ "MIT" ]
Varanasi-Software-Junction/vsjecommerceapp
VsjAPI/WeatherForecast.cs
287
C#
using CMS.Model.Model; using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.Linq; namespace CMS.Service.Helper { public static class EnumHelper { public static string GetDescription<T>(this T e) where T : IConvertible { ...
31.982759
88
0.50027
[ "Apache-2.0" ]
mehmetakbudak/CMS
CMS.Service/Helper/EnumHelper.cs
1,857
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...
39.558603
184
0.573032
[ "ECL-2.0", "Apache-2.0" ]
pulumi/pulumi-cloudflare
sdk/dotnet/AccessApplication.cs
15,866
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.AspNetCore.Connections; /// <summary> /// Enumerates the <see cref="FileHandleEndPoint"/> types. /// </summary> public enum FileHandleType { Auto, Tcp, ...
22
71
0.715152
[ "MIT" ]
Aezura/aspnetcore
src/Servers/Connections.Abstractions/src/FileHandleType.cs
330
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
32.034483
74
0.674919
[ "MIT" ]
AnanyShah/azure-sdk-for-net
src/SDKs/Kusto/Management.Kusto/Generated/Models/State.cs
929
C#
using System.Collections.Generic; using System.IO; using Microsoft.AspNet.Builder; using Nancy; using Nancy.Owin; using Nancy.ViewEngines.Razor; namespace FindReplace { public class Startup { public void Configure(IApplicationBuilder app) { app.UseOwin(x => x.UseNancy()); } } public class Cus...
18.261905
57
0.674055
[ "MIT" ]
CharlesEwel/find-replace
find-replace/Startup.cs
767
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. [assembly: AssemblyTitle("Problem04PrintADeckOf52Cards")] [assembly...
39.5
84
0.751758
[ "MIT" ]
atanas-georgiev/TelerikAcademy
01.CSharp-Part-1/Homework6/Problem04PrintADeckOf52Cards/Properties/AssemblyInfo.cs
1,425
C#
using System; using System.Collections; using System.Collections.Generic; using System.IO; using PlayFab.Json; using PlayFab.SharedModels; using UnityEngine; #if !UNITY_WSA && !UNITY_WP8 using Ionic.Zlib; #endif namespace PlayFab.Internal { public class PlayFabWww : IPlayFabHttp { private int _pending...
39.725389
154
0.484675
[ "Apache-2.0" ]
MirrorAndLight/UnicornBattle
BasicIosPush/Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWWW.cs
7,667
C#
namespace AttentyPracticeFrameWork.ApiRoutes { public interface IApiRouteAggregate { string GetWeatherEntry(); } }
19.285714
45
0.711111
[ "MIT" ]
lior277/AttentyPractice
AttentyPracticeFrameWork/Internals/DAL/ApiAccsess/ApiRoutes/IApiRouteAggregate.cs
137
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
32.402439
110
0.635303
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/CodePipeline/Generated/Model/ListPipelinesRequest.cs
2,657
C#
namespace Kaiyuanshe.OpenHackathon.Server.Models { /// <summary> /// decribes a resource list /// </summary> public interface IResourceList<T> { /// <summary> /// List of the resources /// </summary> T[] value { get; set; } /// <summary> ...
26.5
91
0.520755
[ "MIT" ]
think-in-universe/open-hackathon
src/open-hackathon-server/Kaiyuanshe.OpenHackathon.Server/Models/IResourceList.cs
532
C#
using System; using stellar_dotnet_sdk.xdr; namespace stellar_dotnet_sdk { public class MemoId : Memo { public MemoId(long id) { if (id < 0) throw new ArgumentException("id must be a positive number"); IdValue = id; } publi...
26.365854
80
0.489362
[ "Apache-2.0" ]
alphapoint/dotnet-stellar-sdk
stellar-dotnet-sdk/MemoId.cs
1,083
C#
namespace StorageManager.Query { public class StorageQueryConstantMember : StorageQueryOperand { public StorageQueryConstantMember(object value = null) { Value = value; } public object Value { get; } public override object Evaluate(object source = null) ...
22.285714
65
0.561966
[ "MIT" ]
mcolon/StorageManager
StorageManager/Query/StorageQueryConstant.cs
468
C#
using System; using System.Collections.Generic; using Uno.Disposables; using Uno.UI.Xaml.Core; using Windows.Foundation; using Windows.System; using Windows.UI.Xaml.Automation.Peers; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Markup; namespace Windows.UI.Xaml.Controls...
28.79638
147
0.733697
[ "Apache-2.0" ]
AbdalaMask/uno
src/Uno.UI/UI/Xaml/Controls/MenuFlyout/MenuFlyoutSubItem.cs
25,456
C#
using System; namespace Peach.Core { /// <summary> /// Linear Shift Feedback Register /// Produces a pseudo random sequence of numbers from 1 to (2^N)-1 /// </summary> public class LSFR { private uint value; private int[] taps; private int degree; public LSFR(int degree, uint init, int[] t...
20.302326
79
0.49685
[ "MIT" ]
FXTi/peachfuzz-code
Peach.Core/LSFR.cs
3,492
C#
using MicrosoftResearch.Infer; using MicrosoftResearch.Infer.Distributions; using MicrosoftResearch.Infer.Factors; using MicrosoftResearch.Infer.Maths; using MicrosoftResearch.Infer.Models; using MicrosoftResearch.Infer.Utils; using System; namespace CrowdsourcingModels { /// <summary> /// The CBCC model cla...
42.50924
184
0.607526
[ "Apache-2.0" ]
orchidproject/active-crowd-toolkit
CrowdsourcingModels/CBCC.cs
20,704
C#
using Codeuctivity.OpenXmlPowerTools; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Validation; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Xunit; namespace Codeuctivity.Tests { public class FaTests { [Theory] ...
61.671429
186
0.675817
[ "MIT" ]
stesee/Open-Xml-PowerTools
OpenXmlPowerTools.Tests/FormattingAssemblerTests.cs
8,636
C#
using System.Collections.Generic; using System.Linq; namespace WarOfEmpires.Commands.Empires { public sealed class BuildSiegeCommand : ICommand { public string Email { get; } public List<SiegeWeaponInfo> SiegeWeapons { get; } public BuildSiegeCommand(string email, IEnumerable<SiegeWeaponI...
30.357143
86
0.668235
[ "MIT" ]
maikelbos0/WarOfEmpires
WarOfEmpires.Commands/Empires/BuildSiegeCommand.cs
427
C#
// Copyright (c) Cratis. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Cratis.Types.for_ImplementationsOf { public interface IAmAnInterface { } }
24.7
101
0.744939
[ "MIT" ]
Cratis/cratis
Specifications/Fundamentals/Types/for_ImplementationsOf/IAmAnInterface.cs
249
C#
using System; using System.IO; using System.Windows.Forms; using Common; using DAL; using Models; using SolidWorks.Interop.sldworks; using SolidWorks.Interop.swconst; namespace SolidWorksHelper { public class CMODF555400AutoDrawing : IAutoDrawing { readonly CMODF555400Service objCMODF555400Service = n...
57.606618
555
0.53558
[ "MIT" ]
felixzhu1989/Compass
SolidWorksHelper/HoodAutoDrawing/CMODF555400AutoDrawing.cs
33,952
C#
using AniCharades.Adapters.Interfaces; using AniCharades.Common.Utils; namespace AniCharades.Services.Franchise.Relations.Common { public class AnyWordMatchesStrategy : IRelationStrategy { public bool AreRelated(IEntryInstance firstEntry, IEntryInstance secondEntry) { return firstE...
27.928571
85
0.741688
[ "MIT" ]
Forczu/AniCharades
AniCharades.Services/Franchise/Relations/Common/AnyWordMatchesStrategy.cs
393
C#
using UnityEngine; using UnityEngine.UI; public class StatusIndicator : MonoBehaviour { [SerializeField] private RectTransform healthBarRect; [SerializeField] private Text healthText; private void Start() { if (healthBarRect == null) { Debug.LogError("STATUS IN...
26.363636
112
0.616092
[ "MIT" ]
minhancao/RedCaster
Library/Collab/Base/Assets/Scripts/StatusIndicator.cs
872
C#
using System.Text.Json.Serialization; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// AlipayUserCertifyOpenInitializeModel Data Structure. /// </summary> public class AlipayUserCertifyOpenInitializeModel : AlipayObject { /// <summary> /// 认证场景码。入参支持的认证场景码和商...
38.780488
268
0.671069
[ "MIT" ]
LuohuaRain/payment
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayUserCertifyOpenInitializeModel.cs
2,192
C#
using System; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using System.Web; using System.Web.Security; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin.Security.DataProtection; using Umbraco.Core; using Umbraco.Core.Configuration; using Umbr...
44.870504
188
0.644348
[ "MIT" ]
AlphaDelta/Umbraco-CMS
src/Umbraco.Web/Security/BackOfficeUserManager.cs
31,187
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -----------------------------------------------------------...
38.125
101
0.47377
[ "MIT" ]
ECGKit/healthcare-shared-components
src/Microsoft.Health.Abstractions/Exceptions/UnsupportedMediaTypeException.cs
612
C#
/* ==================================================================== 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 ...
42.890585
185
0.556953
[ "Apache-2.0" ]
sunshinele/npoi
testcases/main/SS/UserModel/BaseTestSheetShiftRows.cs
16,856
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.Runtime.CompilerServices; using System.Text; using Silk.NET.Core; using Silk.NET.Core.Native; using Si...
99.05
593
0.730327
[ "MIT" ]
ThomasMiz/Silk.NET
src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbTextureCompressionOverloads.gen.cs
17,829
C#
using System; using System.IO; using Hacknet; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Pathfinder.Util; namespace Pathfinder.Mission { public static class MissionManager { public static MissionListingServer CreateMissionListingDaemon(this Computer c, ...
38.907407
175
0.519515
[ "MIT" ]
BlackDragonCZ/Hacknet-Pathfinder
Pathfinder/Mission/MissionManager.cs
4,204
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.Globalization; using System.Reflection; using Microsoft.Internal; namespace System.Comp...
34.386364
115
0.731659
[ "MIT" ]
Acidburn0zzz/corefx
src/System.Composition.Convention/src/System/Composition/ExceptionBuilder.cs
1,513
C#
namespace HL7Data.Contracts.Messages.AdmitDischargeTransferMessages { //ADT_A05 public interface IPreAdmitPatient : IBaseAdmitDischargeTransferMessage { } }
24.571429
74
0.784884
[ "MIT" ]
amenkes/HL7Parser
Contracts/Messages/AdmitDischargeTransferMessages/IPreAdmitPatient.cs
172
C#
using System; namespace PS.Data.Parser { public interface IToken : IEquatable<IToken> { } }
13.125
48
0.657143
[ "MIT" ]
BlackGad/PS
PS.Core/Data/Parser/IToken.cs
107
C#
/* * This file is subject to the terms and conditions defined in * file 'license.txt', which is part of this source code package. */ using SteamKit2.Internal; namespace SteamKit2 { public partial class SteamUserStats { /// <summary> /// This callback is fired in response to <see cref="Ge...
27.486486
95
0.569322
[ "MIT" ]
kaevne/SteamBotDota
Lib/SteamKit2/SteamKit2/Steam3/Handlers/SteamUserStats/Callbacks.cs
1,019
C#
using System; using System.Collections.Concurrent; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using SimpleSoft.Mediator.Example.Cmd.Events; namespace SimpleSoft.Mediator.Example.Cmd.Commands { public class CreateUserCommandHandler : ICommandHandler<CreateUserCommand, ...
31.588235
88
0.577902
[ "MIT" ]
JTOne123/Mediator
work/SimpleSoft.Mediator.Example.Cmd/Commands/CreateUserCommandHandler.cs
1,611
C#
using System.Collections.Generic; using System.Web; namespace XRepository { using IRecord = IDictionary<string, object>; public abstract class Interceptor { protected internal HttpContextBase HttpContext { get; set; } public virtual bool IsMatch(IEnumerable<string> tableNames) { return true;...
43.9
114
0.732346
[ "MIT" ]
xanotech/.net-XRepository
Interceptor.cs
880
C#
namespace Carter.Tests.StreamTests { using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.TestHost; using Xunit; ...
37.196429
110
0.602736
[ "MIT" ]
CarterCommunity/Carter
test/Carter.Tests/StreamTests/ResponseFromStreamTests.cs
4,168
C#
namespace SulsApp { using SIS.MvcFramework; using System.Threading.Tasks; public static class Program { public static async Task Main() { await WebHost.StartAsync(new Startup()); } } }
17.357143
52
0.584362
[ "MIT" ]
yotkoKanchev/csharp-web
2020-Jan-Season/SoftUni-Information-Services/SIS/SulsApp/Program.cs
245
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using Nucleo.Web; namespace Nucleo.Assertions.Controls { [TestClass] public class ScriptComponentDescriptorConstraintTest { #region " Test Classes " protected class TestControl : BaseAjaxCo...
25.363636
124
0.744624
[ "MIT" ]
brianmains/Nucleo.NET
src/Nucleo.UnitTests.40.MS/Assertions/Controls/ScriptComponentDescriptorConstraintTest.cs
3,350
C#
// WaterSimDCDC Regional Water Demand and Supply Model Version 5.0 // This is the C# API wrapper for the C# interface to the Fortran Model. // Version 9.2.3 // 3/15/14 // Based on Model_interface.cs version "03.16.13_1:45:00"; // ...
65.470531
631
0.547488
[ "MIT" ]
DCDCWaterSim/API_SOURCE_FILES
Old/WaterSimDCDC_API_ver_9_2_3.cs
201,060
C#
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
51.153846
97
0.512782
[ "MIT" ]
3quanfeng/azure-powershell
src/ResourceMover/generated/runtime/Conversions/Instances/UInt32Converter.cs
655
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. namespace System.Diagnostics.SymbolStore { public interface ISymbolDocumentWriter { void SetCheckSum...
31.076923
71
0.727723
[ "MIT" ]
06needhamt/runtime
src/libraries/System.Private.CoreLib/src/System/Diagnostics/SymbolStore/ISymbolDocumentWriter.cs
404
C#
/* * Copyright (c) .NET Foundation and Contributors * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * * https://github.com/piranhacms/piranha.core * */ using Microsoft.AspNetCore.Http; using Piranha.AspNetCore.Helpers; using Piranha.Mode...
26.479452
65
0.560269
[ "MIT" ]
AllPIM/RhHERO-Web
core/Piranha.AspNetCore/Services/IApplicationService.cs
1,933
C#
using System; namespace Exercicios_aula { class Program { static void Main(string[] args) { Console.WriteLine("Digite seu salário : "); string Salario = Console.ReadLine(); Console.WriteLine("Digite a Quantidade de carros Vendidos: "); ...
32.810811
96
0.596376
[ "MIT" ]
rafaaelcorrea/Exercicios_aula_c-
exe_8.cs
1,218
C#
using System; namespace TodoList { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
19
70
0.569079
[ "MIT" ]
codemillmatt/IdentityWebBlog
WebAndAPI/TheWebAPI/WeatherForecast.cs
304
C#
// Copyright (c) RISStudio, 2020. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE file in the project root for license information. using System; using System.IO; using RIS.Extensions; namespace RIS.Cryptography.Hash { public class HashService { public event Event...
35.116592
130
0.570681
[ "Apache-2.0" ]
RISStudio-tm/RIS-Libraries
RIS.Cryptography/Hash/HashService.cs
7,833
C#
// This file is part of the DSharpPlus project. // // Copyright (c) 2015 Mike Santiago // Copyright (c) 2016-2022 DSharpPlus 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...
54.350792
443
0.54761
[ "MIT" ]
F1restar4/DSharpPlus
DSharpPlus/Entities/Guild/DiscordGuild.cs
168,151
C#
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace Bb.Sdk.Decompiler.IlParser { public static class ImmutableStack { // Methods public static ImmutableStack<T> Create<T>() { return Immutable...
28.234615
129
0.500068
[ "BSD-3-Clause" ]
Black-Beard-Sdk/Decompile
src/Black.Beard.Sdk.Decompiler/Decompiler/IlParser/ImmutableStack.cs
7,343
C#
using System; using System.Collections.Generic; using System.Text; using AltairCA.EntityFrameworkCore.PomeloMysql.Extensions.Attribute; using AltairCA.EntityFrameworkCore.PomeloMysql.Extensions.EfExtensions; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace WebApp...
29.190476
85
0.683524
[ "MIT" ]
AltairCA/EntityFrameworkCore.PomeloMysql.Extensions
WebApplication1/Data/ApplicationDbContext.cs
1,228
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace QuoteOfTheMoment.Server { using System; using System.Threading.Tasks; using DotNetty.Handlers.Logging; using DotNetty.Transport.Bootstrapping...
34.395833
109
0.578437
[ "MIT" ]
15000775075/DotNetty
examples/QuoteOfTheMoment.Server/Program.cs
1,653
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; namespace VN { public class Menu : GameState { Texture2D button; List<Button> current; List<Butt...
30.59
142
0.579274
[ "MIT" ]
Zkarts/VNgine
VN/VN/Menu.cs
3,061
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.Immutable; using System.Composition; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.Options.Providers; using Mic...
73.62406
238
0.758578
[ "Apache-2.0" ]
GKotfis/roslyn
src/EditorFeatures/Core/Shared/Options/FeatureOnOffOptions.cs
9,794
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace Microsoft.Azure.Batch.Auth { using System; using System.Threading.Tasks; /// <summary> /// Azure Active Directory token credentials fo...
38.95
174
0.610184
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/batch/Microsoft.Azure.Batch/src/Auth/BatchTokenCredentials.cs
2,339
C#
using Unity.Entities; using Unity.Physics; using Unity.Physics.Systems; using Unity.Transforms; namespace TinyPhysics.Systems { /// <summary> /// Find and store distance of closest entity /// Use CollisionFilter of source entity to find target /// </summary> public class ProximitySystem : ...
35
142
0.586508
[ "MIT" ]
Ayrtonfoster/ResumeSite
Assets/Scripts/Systems/ProximitySystem.cs
1,262
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
41.220588
196
0.634856
[ "Apache-2.0" ]
EbstaLimited/aws-sdk-net
sdk/src/Services/ResilienceHub/Generated/Model/Internal/MarshallTransformations/DeleteAppAssessmentResponseUnmarshaller.cs
5,606
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Domain { /// <summary> /// BizActionComsumedAmountDTO Data Structure. /// </summary> [Serializable] public class BizActionComsumedAmountDTO : AopObject { /// <summary> /// 业务预算申请Code /// </summa...
24.258065
56
0.538564
[ "Apache-2.0" ]
554393109/alipay-sdk-net-all
AlipaySDKNet.Standard/Domain/BizActionComsumedAmountDTO.cs
780
C#
namespace HonzaBotner.Discord.Services.Options; public class ButtonOptions { public static string ConfigName => "ButtonOptions"; public string? VerificationId { get; set; } public string? StaffVerificationId { get; set; } public string? StaffRemoveRoleId { get; set; } public ulong[]? CzechChannels...
28.333333
55
0.717647
[ "MIT" ]
fit-ctu-discord/honza-botner-dev
src/HonzaBotner.Discord.Services/Options/ButtonOptions.cs
340
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
46.84127
213
0.644188
[ "MIT" ]
gurry/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/InformationProtectionPolicyRemoveLabelRequestBuilder.cs
2,951
C#
namespace DotNet.Testcontainers.Configurations { using System.Collections.Generic; /// <inheritdoc cref="IDockerResourceConfiguration" /> public class DockerResourceConfiguration : IDockerResourceConfiguration { /// <summary> /// Initializes a new instance of the <see cref="DockerResourceConfiguration...
40.135135
121
0.746128
[ "MIT" ]
studentutu/dotnet-testcontainers
src/DotNet.Testcontainers/Configurations/DockerResourceConfiguration.cs
1,487
C#
using System; using System.Runtime.InteropServices; using System.Security; namespace NitraLibSodium.Stream { public unsafe partial class Chacha20 { public partial struct __Internal { [SuppressUnmanagedCodeSecurity] [DllImport("libsodium", CallingConvention = ...
47.213018
200
0.632911
[ "MIT" ]
nitrachain/NitraLibSodium
NitraLibSodium/Stream/Chacha20.cs
7,981
C#
// Lucene version compatibility level 4.8.1 /* Copyright © 2003, Center for Intelligent Information Retrieval, University of Massachusetts, Amherst. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Re...
63.217795
99
0.578073
[ "Apache-2.0" ]
10088/lucenenet
src/Lucene.Net.Analysis.Common/Analysis/En/KStemData3.cs
47,604
C#
using ReactiveUI; namespace ModernControlsForAvalonia.SampleApp.ViewModels { public class MainWindowViewModel : ViewModelBase { public MainWindowViewModel() { LowerSelected = 25d; UpperSelected = 75d; } public double LowerSelected { g...
24.75
74
0.547009
[ "MIT" ]
DmitryNizhebovsky/ModernControlsForAvalonia
ModernControlsForAvalonia.SampleApp/ViewModels/MainWindowViewModel.cs
1,287
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 MyApp { // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visit http://go.microsoft.com/?LinkI...
29.037037
70
0.709184
[ "MIT" ]
AzureMentor/20487-DevelopingWindowsAzureAndWebServices
Allfiles/20487C/Mod03/Democode/FirstWebApiService/End/MyApp/Global.asax.cs
786
C#
using ReactiveUI; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using UaLayman.ViewModels; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.X...
30.772727
136
0.704579
[ "MIT" ]
quinmars/UaLayman
UaLayman/Views/SettingsView.xaml.cs
1,356
C#
namespace System.IO.BACnet { public enum BacnetPtpDisconnectReasons : byte { PTP_DISCONNECT_NO_MORE_DATA = 0, PTP_DISCONNECT_PREEMPTED = 1, PTP_DISCONNECT_INVALID_PASSWORD = 2, PTP_DISCONNECT_OTHER = 3, } }
25.1
49
0.673307
[ "MIT" ]
355911097/BACnet
Base/BacnetPtpDisconnectReasons.cs
253
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // 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: Asse...
75.122807
521
0.790051
[ "Apache-2.0" ]
woellij/aws-sdk-net
sdk/src/Services/DatabaseMigrationService/Properties/AssemblyInfo.cs
4,282
C#
/* * Bungie.Net API * * These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality. * * OpenAPI spec version: 2.1.1 * Contact: support@bungie.com * Generated by: https://github.com...
37.507937
217
0.563831
[ "MIT" ]
xlxCLUxlx/BungieNetPlatform
src/BungieNetPlatform/Model/ForumPollResult.cs
7,089
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using OfficeWebUI.Common; using OfficeWebUI.Button; using System.Web.UI.HtmlControls; namespace OfficeWebUI { [DefaultProperty("Text")] [ParseC...
30.028409
130
0.549101
[ "MIT" ]
cschen1205/myob-accounting-plugin
OfficeWebUI/Combobox/Combobox.cs
5,285
C#
/* License * -------------------------------------------------------------------------------------------------------------------- * This file is part of the AI4E distribution. * (https://github.com/AI4E/AI4E.AspNetCore.Components.Extensions) * * MIT License * * Copyright (c) 2019 Andreas Truetschel and contr...
43.853933
125
0.610172
[ "MIT" ]
AI4E/AI4E.AspNetCore.Components.ExtensibleRouter
src/AI4E.AspNetCore.Blazor.Server/ComponentsModuleServerApplicationBuilderExtension.cs
7,806
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("MV...
41.891892
129
0.766452
[ "MIT" ]
zherar7ordoya/AP3
(CSharp)/3) MVP Pattern/MVCSharp/Examples/TasksInteraction/Presentation/Mobile/Properties/AssemblyInfo.cs
1,553
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SGBank.Models.Interfaces { public interface IAccountRepository { Account LoadAccount(string AccountNumber); void SaveAccount(Account account); } }
20.2
50
0.742574
[ "Apache-2.0" ]
dtalon42/Portfolio
SGBank.UI/SGBank.Models/Interfaces/IAccountRepository.cs
305
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("En...
38.081081
84
0.747339
[ "Apache-2.0" ]
Enzogord/My-FyiReporting
EncryptionProvider/Properties/AssemblyInfo.cs
1,412
C#
using System; namespace PalindromeIntegers { class Program { static void Main(string[] args) { string input = Console.ReadLine(); while (input != "END") { Console.WriteLine(isPalindrome(input)); input = Console.ReadLine(); ...
19.818182
57
0.402141
[ "MIT" ]
Siaa17/softuni-csharp-modules
CSharp Fundamentals/CSharpFundamentals - Methods - Exercise/PalindromeIntegers/Program.cs
656
C#
using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Tokens; using YawlUrl.Infrastructure.AspNetCore.Models; using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Text; using System.Threading.Tasks; namespace YawlUrl.Infras...
36.322034
103
0.638357
[ "MIT" ]
PonyUrl/ponyurl
Src/YawlUrl.Infrastructure.AspNetCore/Authorization/JwtTokenBuilder.cs
2,145
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.17020 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
38.736111
182
0.604518
[ "MIT" ]
eyantra/CS308_Kinecsterel_2012
code/Kinect/K4WStepByStep/ColorImageStream/Properties/Resources.Designer.cs
2,791
C#
/* Exemplary file for Chapter 3 - MVVM and Data Binding. Recipe: Using value converters with parameters. */ using CH03.Models; using PropertyChanged; using System.Windows.Input; namespace CH03.ViewModels { [ImplementPropertyChanged] public class MainViewModel { public bool IsPrimaryColor {...
21.517241
67
0.621795
[ "MIT" ]
PacktPublishing/Windows-Application-Development-Cookbook
Chapter 3/03-05 - Using value converters with parameters/MainViewModel.cs
624
C#
namespace NPitayaTest.Tests.Serializer { public class ProtobufSerializerTests { } }
14.857143
40
0.663462
[ "MIT" ]
rodopoulos/pitaya-rs
pitaya-sharp/NPitaya.Tests/Tests/Serializer/ProtobufSerializerTests.cs
104
C#
// MIT License - Copyright (C) The Mono.Xna 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 System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.Serialization; using System.Numerics; na...
33.12605
109
0.5293
[ "MIT" ]
Thin2d/Thin2d
MonoGame.Framework/Point.cs
7,884
C#
using Newtonsoft.Json; namespace Sora.OnebotModel.OnebotEvent.NoticeEvent { /// <summary> /// 好友消息撤回 /// </summary> internal sealed class OnebotFriendRecallEventArgs : BaseNoticeEventArgs { /// <summary> /// 被撤回的消息 ID /// </summary> [JsonProperty(PropertyName = "mess...
23.875
75
0.60733
[ "Apache-2.0" ]
RingoStudio/Sora
Sora/OnebotModel/OnebotEvent/NoticeEvent/OnebotFriendRecallEventArgs.cs
406
C#
using System; using System.Collections.Generic; using System.Data; using System.Globalization; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using MySql.Data.MySqlClient; using MySqlConnector.Logging; using MySqlConnector.Protocol.Seria...
39.273723
212
0.708298
[ "MIT" ]
datatechnology/MySqlConnector
src/MySqlConnector/Core/CachedProcedure.cs
10,761
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.Threading; namespace Microsoft.VisualStudio.IntegrationTest.Utilities.Input { public class SendKeys : AbstractSendKeys { privat...
31.444444
161
0.711425
[ "Apache-2.0" ]
20chan/roslyn
src/VisualStudio/IntegrationTest/TestUtilities/Input/SendKeys.cs
851
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; namespace GDGeek { public class VoxelRemoveSameVertices { private struct Pack { public int index; public VoxelDrawData.Vertice vertice; public Pack(int i, VoxelDrawData.Vertice v){ index = i; vertice = v; } ...
19.979798
103
0.599596
[ "MIT" ]
gdgeek/GDGeek
Assets/GDGeek/Plugins/Voxel/Mesh/Builder/VoxelRemoveSameVertices.cs
1,978
C#
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\dshowasf.h(202,5) using System; using System.Runtime.InteropServices; using REFERENCE_TIME = System.Int64; namespace DirectN { [Guid("b25b8372-d2d2-44b2-8653-1b8dae332489"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public partial in...
39.733333
207
0.72651
[ "MIT" ]
bbday/DirectN
DirectN/DirectN/Generated/IAMWMBufferPassCallback.cs
598
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using LinqToDB.Extensions; namespace LinqToDB.Mapping { /// <summary> /// Fluent mapping entity builder. /// </summary> /// <typeparam name="T">Entity mapping type.</typeparam> ...
38.045283
160
0.663063
[ "MIT" ]
Arithmomaniac/linq2db
Source/LinqToDB/Mapping/EntityMappingBuilder.cs
20,166
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; using System.Collections.Generic; using System.Web; namespace NuGetGallery { public static class UriExtensions { private...
35.104348
152
0.596235
[ "Apache-2.0" ]
304NotModified/NuGetGallery
src/NuGetGallery.Services/Extensions/UriExtensions.cs
4,039
C#
using System; namespace Caracal.EventBus { public class Event { public Guid CorrelationId { get; set; } public Event() : this(Guid.NewGuid()){} public Event(Guid correlationId) => CorrelationId = correlationId; } public class Event<TData>: Event { public Event(){ } ...
23.210526
74
0.596372
[ "MIT" ]
Caracal-IT/pay-station
src/Source/Caracal.EventBus/Event.cs
441
C#
namespace MC65SnipeIT { partial class StickerLocation { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary...
45.184524
132
0.563957
[ "Apache-2.0", "MIT" ]
yaymuffins/EmilyLittleWarehouse
MC65SnipeIT/StickerLocation.Designer.cs
7,593
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.Utilities; using System.Collections; using System.Collections.Generic; using Unity.Profiling; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.CameraSystem { /// <summary> /// The Camera...
40.003584
287
0.58794
[ "MIT" ]
AdsyArena/ARbot
Assets/MRTK/Services/CameraSystem/MixedRealityCameraSystem.cs
11,163
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
30.96
84
0.471576
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
OS2CPRbroker/CPRbroker
PART/Source/CprBroker/Web/Pages/Controls/ConfigPropertyGridEditor.ascx.designer.cs
776
C#
using UnityEngine; public class AudioController : MonoBehaviour { public AudioSource gameAudioSource; public AudioSource palyerAudioSource; public bool muteOnStart; public bool mute { get; private set; } void Start() { if (!muteOnStart) return; ToggleM...
19.25
85
0.547816
[ "MIT" ]
ApiO/Steroid
Assets/Scripts/AudioController.cs
849
C#
using System; using System.Collections.Generic; using System.Runtime.InteropServices; namespace cn.vimfung.luascriptcore { /// <summary> /// Lua方法 /// </summary> public class LuaFunction : LuaBaseObject { private LuaContext _context; /// <summary> /// 初始化 /// </summary> /// <param name="decoder">对象解码器...
22.744444
97
0.670738
[ "Apache-2.0" ]
Gandaa/LuaScriptCore
Source/Unity3D/UnityProject/Assets/Plugins/LuaScriptCore/LuaFunction.cs
2,093
C#
#nullable enable using System; using System.IO; using Core2D.Model; using Core2D.Model.Renderer; using Core2D.Modules.Renderer.PdfSharp; using Core2D.ViewModels; using Core2D.ViewModels.Containers; using Core2D.ViewModels.Data; namespace Core2D.Modules.FileWriter.PdfSharp; public sealed class PdfSharpWriter : IFileW...
26.60274
75
0.631308
[ "MIT" ]
wieslawsoltes/Core2D
src/Core2D/Modules/FileWriter.PdfSharp/PdfSharpWriter.cs
1,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/d3d11.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Runtime.C...
48.162791
164
0.671173
[ "MIT" ]
Ethereal77/terrafx.interop.windows
sources/Interop/Windows/um/d3d11/ID3D11Resource.cs
4,144
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { [TLObject(922273905)] public class TLDocumentEmpty : TLAbsDocument { public override int Constructor { ...
17.697674
61
0.549277
[ "MIT" ]
Vladimir-Novick/TLSharp.NetCore2
TeleSharp.NetCore2.TL/TL/TLDocumentEmpty.cs
761
C#