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
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Resources.Models { public partial class ApplicationNotificationPolicy...
34.816327
116
0.621923
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/resources/Azure.ResourceManager.Resources/src/Generated/Models/ApplicationNotificationPolicy.Serialization.cs
1,706
C#
using System.Threading.Tasks; using System.Web.Mvc; using Abp.Application.Services.Dto; using Abp.Web.Mvc.Authorization; using HQF.Daily.Authorization; using HQF.Daily.MultiTenancy; namespace HQF.Daily.Web.Controllers { [AbpMvcAuthorize(PermissionNames.Pages_Tenants)] public class TenantsController : DailyCon...
32.03125
146
0.693659
[ "MIT" ]
huoxudong125/HQF.ABP.Daily
src/HQF.Daily.Web/Controllers/TenantsController.cs
1,027
C#
// ****************************************************************** // /\ /| @file StateGraphExtention.cs // \ V/ @brief 集群AI状态机扩展 // | "") @author Shadowrabbit, yingtu0401@gmail.com // / | // / \\ @Modified 2021-06-23 09:4...
33.333333
84
0.423
[ "Apache-2.0" ]
Proxyer/ModRimWorldFactionalWar
1.3/Source/ModRimworldFactionalWar/AI/Extension/StateGraphExtention.cs
1,016
C#
namespace CalendarSkill.Models { public class FindContactDialogOptions : CalendarSkillDialogOptions { public FindContactDialogOptions() { FindContactReason = FindContactReasonType.FirstFindContact; } public FindContactDialogOptions( object options, ...
27.461538
94
0.547339
[ "MIT" ]
3ve4me/botframework-solutions
skills/src/csharp/calendarskill/calendarskill/Models/FindContactDialogOptions.cs
1,787
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.IO; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.Co...
66.911056
1,332
0.631747
[ "Apache-2.0" ]
IEvangelist/roslyn
src/Compilers/CSharp/Test/Semantic/Semantics/QueryTests.cs
297,154
C#
using Microsoft.AspNetCore.Mvc; using System; using System.ComponentModel.DataAnnotations; namespace API_BET.Services.Contract { public class OfferRequest { public long? OfferId { get; set; } public double? Odd { get; set; } } }
19.142857
44
0.660448
[ "MIT" ]
benvonwyl/bet-net-core
API-BET/Services/Contract/Request/OfferRequest.cs
270
C#
// Copyright (c) 2020, Phoenix Contact GmbH & Co. KG // Licensed under the Apache License, Version 2.0 using System; namespace Moryx.AbstractionLayer.Identity { /// <summary> /// Base interface for identities (e.g. SerialNumber) /// </summary> public interface IIdentity : IEquatable<IIdentity> { ...
29.307692
120
0.624672
[ "Apache-2.0" ]
1nf0rmagician/MORYX-AbstractionLayer
src/Moryx.AbstractionLayer/Identity/IIdentity.cs
762
C#
using System; using System.Collections.Generic; using System.IO; using System.Security.Cryptography; using System.Text; using FluentAssertions; using NUnit.Framework; namespace Workshell.PE.Tests { [TestFixture] public sealed class UtilsTests { [Test] public void SizeOf_Ret...
28.37218
103
0.521002
[ "MIT" ]
Workshell/pe
tests/Workshell.PE.Tests/UtilsTests.cs
7,549
C#
using Abstraction.Models; using System.Threading.Tasks; namespace Abstraction.Repositories { public interface ISignInRepository { public Task<ApplicationUser?> SignIn(string credential, string password); public Task SignOut(); } }
21.75
81
0.724138
[ "CC0-1.0" ]
Gubbsy/MusicMatch-Server
Abstraction/Repositories/ISignInRepository.cs
263
C#
using System; using System.Linq; namespace SQLEngine { public static class AbstractSqlColumnExtensions { public static AbstractSqlCondition In(this AbstractSqlColumn column,params string[] stringArray) { AbstractSqlLiteral[] expressions = stringArray.Select(x => (AbstractSqlLiteral...
33.989967
114
0.666388
[ "Apache-2.0" ]
raminrahimzada/SQLEngine
SQLEngine/Other/AbstractSqlColumn.cs
20,328
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
55.031915
496
0.672144
[ "MIT" ]
ScriptBox99/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/model/WindowsNetworkIsolationPolicy.cs
5,173
C#
/* * FastStats API * * An API to allow access to FastStats resources * * OpenAPI spec version: v2 * Contact: support@apteco.com * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using...
40.506276
228
0.573185
[ "Apache-2.0" ]
Apteco/OrbitSlackBot
Apteco.OrbitSlackBot.ApiClient/Model/CollectionShareDetail.cs
9,681
C#
using B32.src.assembler; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace B32 { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] ...
22.782609
65
0.614504
[ "MIT" ]
L1b3r4t0r/B32
src/assembler/Program.cs
526
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/MsHTML.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System...
42.5
145
0.748663
[ "MIT" ]
reflectronic/terrafx.interop.windows
tests/Interop/Windows/Windows/um/MsHTML/HTMLDocumentCompatibleInfoCollectionTests.cs
1,872
C#
/** * The MIT License * Copyright (c) 2016 Population Register Centre (VRK) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the righ...
41.97561
80
0.713539
[ "MIT" ]
MikkoVirenius/ptv-1.7
src/PTV.Domain.Model/Models/V2/Common/VmOrganizationAreaInformation.cs
1,723
C#
using System; using System.Collections.Generic; using System.Xml.Serialization; namespace BenchmarkDotNet.Disassembler { public class Code { public string TextRepresentation { get; set; } public string Comment { get; set; } } public class Sharp : Code { public string FileP...
25.942529
102
0.575986
[ "MIT" ]
IanKemp/BenchmarkDotNet
src/BenchmarkDotNet.Disassembler.x64/DataContracts.cs
2,259
C#
// <auto-generated /> using System; using AdminUI.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace AdminUI....
37.475904
125
0.465359
[ "MIT" ]
Capstone-Team-C/IDD
AdminUI/Migrations/AdminUIUser/20200520044603_AddFormType.Designer.cs
12,444
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; namespace Handlebars { public static class HandlebarsUtilities ...
32.380711
235
0.419815
[ "Apache-2.0" ]
james-andrewsmith/handlebars-net
src/Handlebars/HandlebarsUtilities.cs
6,381
C#
using System.Collections.Generic; using BuildingBlocks.Core.Types; namespace OnlineStore.Modules.Identity.Application.Users.Dtos.GatewayResponses { public class GeneratePasswordResetTokenResponse : GatewayResponse<string> { public string Token { get; } public GeneratePasswordResetTokenResponse...
30.35
91
0.686985
[ "MIT" ]
mehdihadeli/Modular-Monolith-Template
src/Modules/Identity/src/OnlineStore.Modules.Identity.Application/Users/Dtos/GatewayResponses/GeneratePasswordResetTokenResponse.cs
607
C#
using System; using SharpBrick.PoweredUp.Protocol.Messages; namespace SharpBrick.PoweredUp.Protocol.Formatter { public class PortInputFormatSetupCombinedModeEncoder : IMessageContentEncoder { public ushort CalculateContentLength(LegoWirelessMessage message) => (ushort)(message is PortInput...
43.027778
152
0.628793
[ "MIT" ]
dkurok/powered-up
src/SharpBrick.PoweredUp/Protocol/Formatter/PortInputFormatSetupCombinedModeEncoder.cs
1,551
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ServiceModel; namespace WCFServerLib { public interface IClientCallback { [OperationContract(IsOneWay = true)] void SendMessageToClient(string message)...
19.588235
50
0.702703
[ "MIT" ]
jacking75/semina_MobileServer_WCF
Code_WCFTCPServer/WCFServerLib/IClientCallback.cs
335
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using TelegramBotASPnetCore.Services; namespace TelegramBotASPnetCore { public class Startup { public Startup(IHostingEnvironment env) ...
36.435897
106
0.664321
[ "MIT" ]
ijat/TelegramBot-ASP.NETCore
TelegramBotASPnetCore/Startup.cs
1,423
C#
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Data.OleDb; using System.Diagnostics.CodeAnalysis; using Tortuga.Chain.Metadata; namespace Tortuga.Chain.SqlServer { /// <summary> /// Class OleDbSqlServerMetadataCache. /// </summary> /// <seealso cref="Da...
43.109244
266
0.529857
[ "MIT" ]
hellfirehd/Chain
Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/SqlServer/OleDbSqlServerMetadataCache.cs
30,780
C#
using ARMeilleure.Decoders; using ARMeilleure.IntermediateRepresentation; using ARMeilleure.State; using ARMeilleure.Translation; using System; using System.Diagnostics; using static ARMeilleure.Instructions.InstEmitHelper; using static ARMeilleure.Instructions.InstEmitSimdHelper; using static ARMeilleure.Intermediate...
36.642952
133
0.53414
[ "MIT" ]
AidanXu/Ryujinx
ARMeilleure/Instructions/InstEmitSimdCvt.cs
55,111
C#
using System.Web.Http; using AttributeRouting.Web.Http.WebHost; [assembly: WebActivator.PreApplicationStartMethod(typeof(Radsurge.MVC.AttributeRoutingHttpConfig), "Start")] namespace Radsurge.MVC { public static class AttributeRoutingHttpConfig { public static void RegisterRoutes(HttpRouteCollection routes) ...
28.291667
108
0.727541
[ "Apache-2.0" ]
ctufaro/Radsurge
Radsurge.MVC/App_Start/AttributeRoutingHttpConfig.cs
679
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using ZoDream.Shared.Models; namespace ZoDream.Shared.Interfaces { public interface IStorageProvider<FolderT, FileT, FileStreamT> { /// <summary> /// 文件备选保存目录 ...
26.583333
68
0.621473
[ "MIT" ]
zx648383079/ZoDream.Spider
src/ZoDream.Shared/Interfaces/IStorageProvider.cs
1,354
C#
using System.Collections.Generic; using PostgresTraining.V1.Controllers; using PostgresTraining.V1.Infrastructure; using FluentAssertions; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Routing; using NUnit.Framework; using Xunit; ...
31
143
0.665012
[ "MIT" ]
LBHackney-IT/postgres-training
PostgresTraining.Tests/V1/Controllers/BaseControllerTests.cs
1,612
C#
using System.Collections.Generic; using System.Linq; using YantraJS.Core.Core.Storage; namespace YantraJS.Core.FastParser { public partial class FastScopeItem: LinkedStackItem<FastScopeItem> { private StringMap<(StringSpan name, FastVariableKind kind)> Variables; // private readonly F...
32.90678
129
0.420294
[ "Apache-2.0" ]
yantrajs/yantra
YantraJS.Core/FastParser/Parser/FastScopeItem.cs
3,768
C#
using System; using Microsoft.Azure.Documents.Client; using Microsoft.Extensions.Configuration; namespace PartsUnlimited.WebsiteConfiguration { public class DocumentDbConfiguration : IDocumentDBConfiguration { private readonly DocumentClient _client; public DocumentDbConfiguration(IConfigurati...
29.892857
120
0.60693
[ "MIT" ]
DChak2021/PartsUnlimited
src/PartsUnlimitedWebsite/WebsiteConfiguration/DocumentDbConfiguration.cs
1,674
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class PauseMenu : MonoBehaviour { public static bool GameIsPaused = false; public GameObject pauseMenuUI; // Update is called once per frame void Update() { //uses ...
23.101695
75
0.573734
[ "MIT" ]
bautrey37/Outlight
Assets/Scripts/Menu/PauseMenu.cs
1,365
C#
/* Yet Another Forum.NET * Copyright (C) 2006-2013 Jaben Cargman * http://www.yetanotherforum.net/ * * This program 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 License, or...
27.946429
78
0.658147
[ "Unlicense" ]
tlayson/MySC
Utils/Tools/YAF/YAF.Types/Models/WatchTopic.cs
1,565
C#
using System; using System.Linq; using System.Net.Http; using System.Text; using System.Threading; using System.Threading.Tasks; using Newtonsoft.Json; using Xamarin.Essentials; namespace SquareSix.Core { public class RestService : IRestService { private readonly HttpClient _client; protected...
31.666667
217
0.537719
[ "MIT" ]
Square-Six/SquareSix.Core
src/SquareSix.Core/Services/RestService.cs
2,282
C#
/* * Made by: Ava Fritts * * Created Feb 9 2022 * last edited: Feb 9 2022 */ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class HighScore : MonoBehaviour { static public int score = 1000; void Awake() { if (PlayerPrefs.HasKey("Hi...
20.047619
52
0.572447
[ "MIT" ]
AvaFritts/ApplePicker
ApplePicker-Unity/Assets/Scripts/HighScore.cs
842
C#
using System; using AGXUnity; using AGXUnity.Collide; using UnityEditor; namespace AGXUnityEditor.Editors { [CustomEditor( typeof( AGXUnity.Model.OneBodyTire ) )] [CanEditMultipleObjects] public class AGXUnityModelOneBodyTireEditor : InspectorEditor { } }
20.384615
63
0.792453
[ "Apache-2.0" ]
Algoryx/AGXUnity
Editor/CustomEditors/AGXUnity+Model+OneBodyTireEditor.cs
265
C#
namespace System.Collections.Generic { class KeyValuePairList<TKey, TValue> : List<KeyValuePair<TKey, TValue>> { public KeyValuePairList() { } public void Add(TKey key, TValue value) { this.Add(new KeyValuePair<TKey, TValue>(key, value)); } } }
22.714286
75
0.575472
[ "MIT" ]
johnnyleecn/Chloe
src/Chloe/Utility/KeyValuePairList.cs
320
C#
using System; using System.Collections.Generic; using System.Linq; using JetBrains.Annotations; namespace Yolol.Analysis.ControlFlowGraph { public interface IControlFlowGraph : IEquatable<IControlFlowGraph> { IEnumerable<IEdge> Edges { get; } uint EdgeCount { get; } IEnumerab...
25.631579
96
0.673511
[ "MIT" ]
thomasio101/Yolol
Yolol.Analysis/ControlFlowGraph/IControlFlowGraph.cs
976
C#
using System.Drawing; using System.Drawing.Drawing2D; namespace Sharp2048 { class Drawing { public static GraphicsPath RoundedRect(Rectangle bounds, int radius) { int diameter = radius * 2; Size size = new Size(diameter, diameter); Rectangle arc = new Rectan...
35.336134
116
0.502259
[ "BSD-2-Clause" ]
Limows/Sharp2048
Sharp2048-NC/Sharp2048/Drawing.cs
4,207
C#
using System; using Theraot.Core; namespace Theraot.Collections { [Serializable] public sealed class FilteredConvertedObserver<TInput, TOutput> : IObserver<TInput> { private readonly Converter<TInput, TOutput> _converter; private readonly IObserver<TOutput> _observer; private reado...
28.538462
136
0.617251
[ "MIT", "Unlicense" ]
qwertie/Theraot
Core/Theraot/Collections/FilteredConvertedObserver.cs
1,113
C#
/* * Copyright (c) 2007-2008, openmetaverse.org * All rights reserved. * * - Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * - Redistributions of source code must retain the above copyright notice, this *...
43.253482
145
0.585222
[ "BSD-3-Clause" ]
benanhalt/libopenmetaverse
OpenMetaverse/FriendsManager.cs
46,584
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 DotNetNuke.Web.Razor.Helpers { using System; using DotNetNuke.Abstractions; using DotNetNu...
37.85
120
0.68428
[ "MIT" ]
Acidburn0zzz/Dnn.Platform
DNN Platform/DotNetNuke.Web.Razor/Helpers/UrlHelper.cs
1,516
C#
using POETradeHelper.Common.UI; namespace POETradeHelper.ItemSearch.Views { public interface IItemSearchResultOverlayView : IHideable { bool IsVisible { get; set; } } }
21.111111
61
0.715789
[ "Apache-2.0", "MIT" ]
alueck/POE-TradeHelper
Source/POETradeHelper.ItemSearch/Views/IItemSearchResultOverlayView.cs
192
C#
using System; using System.Collections.Generic; using System.Collections.Concurrent; using System.Linq; using System.Reflection; using System.Threading.Tasks; using System.Threading; namespace FreeSql { public abstract partial class DbContext : IDisposable { internal DbContextScopedFreeSql _ormScoped;...
39.619863
156
0.577146
[ "MIT" ]
jiargcn/FreeSql
FreeSql.DbContext/DbContext/DbContext.cs
11,991
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Luval.DataStore.DataAnnotations { /// <summary> /// Specificies the name of a column /// </summary> public abstract class NameBaseAttribute : Attribute { /// <summa...
24.103448
69
0.585122
[ "MIT" ]
marinoscar/Luval-DataStore
src/Luval.DataStore/DataAnnotations/NameBaseAttributte.cs
701
C#
using System.ComponentModel.DataAnnotations; namespace Sikiro.WebApi.Customer.Models.User.Request { /// <summary> /// 修改密码 /// </summary> public class UserUpdatePwdRequest { /// <summary> /// 用户ID /// </summary> [Required(ErrorMessage = "请输入用户ID")] public st...
23.137931
52
0.529061
[ "MIT" ]
SkyChenSky/Sikiro
samples/客户系统解决方案-新分层/Sikiro.WebApi.Customer/Models/User/Request/UserUpdatePwdRequest.cs
749
C#
using CoAPnet.Protocol; using CoAPnet.Protocol.Options; using System; using System.Collections.Generic; namespace CoAPnet.Client { public sealed class CoapRequestToMessageConverter { readonly CoapMessageOptionFactory _optionFactory = new CoapMessageOptionFactory(); public CoapMessage Convert(...
30.634409
113
0.576343
[ "MIT" ]
vankooch/CoAPnet
Source/CoAPnet/Client/CoapRequestToMessageConverter.cs
2,851
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.Diagnostics; namespace Microsoft.AspNetCore.Razor.Language.Syntax { internal class SyntaxListBuilder { priv...
27.005618
111
0.45517
[ "Apache-2.0" ]
belav/aspnetcore
src/Razor/Microsoft.AspNetCore.Razor.Language/src/Syntax/SyntaxListBuilder.cs
4,809
C#
//------------------------------------------------------------ // Game Framework v3.x // Copyright © 2013-2018 Jiang Yin. All rights reserved. // Homepage: http://gameframework.cn/ // Feedback: mailto:jiangyin@gameframework.cn //------------------------------------------------------------ using GameFramework.Event; ...
24.418605
97
0.46381
[ "MIT" ]
Data-XiaoYu/UnityWorld
FlappyBird/Assets/GameFramework/Scripts/Runtime/WebRequest/WebRequestStartEventArgs.cs
2,275
C#
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir 2018 // // 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 r...
40.444444
81
0.7
[ "MIT" ]
sebastianulm/SharpVk
src/SharpVk/SharingMode.gen.cs
1,820
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; namespace Anf.Test { [TestClass] public class ComicSourceContextTest { [TestMethod] public void GivenNullValue_MustThrowException() { Assert.ThrowsExce...
33.30303
99
0.620564
[ "BSD-3-Clause" ]
Cricle/Anf
test/Anf.Test/ComicSourceContextTest.cs
1,101
C#
using System; using System.Collections.Generic; using Mono.Cecil.Cil; using Telerik.JustDecompiler.Ast.Expressions; namespace Telerik.JustDecompiler.Ast.Statements { public class LockStatement : BasePdbStatement { private BlockStatement body; private readonly List<Instruction> mappedFinallyInstructions...
29.898876
118
0.558437
[ "MIT" ]
nguyenthiennam1992/Decompiler
JustDecompileEngine-master/JustDecompileEngine-master/Cecil.Decompiler/Ast/Statements/LockStatement.cs
2,663
C#
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\shared\d3dkmthk.h(1889,9) using System; using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct _D3DKMT_ISBADDRIVERFORHWPROTECTIONDISABLED { public bool Disabled; ...
25.384615
90
0.715152
[ "MIT" ]
Steph55/DirectN
DirectN/DirectN/Generated/_D3DKMT_ISBADDRIVERFORHWPROTECTIONDISABLED.cs
332
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.Collections.Generic; using Microsoft.Framework.DependencyInjection.Tests.Fakes; namespace Microsoft.Framework.DependencyInjection.Service...
29.913043
111
0.715116
[ "Apache-2.0" ]
benaadams/DependencyInjection
test/Microsoft.Framework.DependencyInjection.Tests/ServiceLookup/Types/TypeWithEnumerableConstructors.cs
690
C#
using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; using System.Threading.Tasks; using SpiderEye.Tools; namespace SpiderEye.Bridge { internal class ApiMethod { public string Name { get; } public Type? ParameterType { get; } public Type Retu...
32.537313
100
0.586697
[ "Apache-2.0" ]
JBildstein/SpiderEye
Source/SpiderEye.Core/Bridge/ApiMethod.cs
2,182
C#
namespace IntegrationTests.Services.Ordering { using IntegrationTests.Services.Extensions; using Microsoft.AspNetCore.TestHost; using Microsoft.eShopOnContainers.Services.Ordering.API.Application.Commands; using Newtonsoft.Json; using System; using System.Net.Http; using System.Text; us...
36.791304
126
0.513827
[ "MIT" ]
cheahengsoon/eShopOnContainers
test/Services/IntegrationTests/Services/Ordering/OrderingScenarios.cs
4,233
C#
namespace OrionLib.QueryContext { public class RestrictedQueryContextRequestDto : QueryContextRequestDto { public QueryRestrictionDto Restriction { get; private set; } public RestrictedQueryContextRequestDto(string type, QueryRestrictionScopeDto restrictionScope) : base(type) { ...
32.307692
116
0.733333
[ "MIT" ]
bt-skyrise/OrionLib
Source/OrionLib/QueryContext/RestrictedQueryContextRequestDto.cs
422
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("AWSSDK.CostExplorer")] [assembly: Assembly...
49.96875
321
0.759225
[ "Apache-2.0" ]
danielmarbach/aws-sdk-net
sdk/code-analysis/ServiceAnalysis/CostExplorer/Properties/AssemblyInfo.cs
1,599
C#
using PointOfSaleUI.Business.Domain; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PointOfSaleUI.Business.Services.Local { public class GetLoggedInUserRoleService : PointOfSaleService { private UserRole loggedInUserRole; ...
20.6875
79
0.648036
[ "MIT" ]
Strabox/PointOfSale
PointOfSale/PointOfSaleUI/Business/Services/Local/GetLoggedInUserRoleService.cs
664
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 System.Linq; namespace ReactiveUI { internal static class...
27.727273
87
0.63388
[ "MIT" ]
editor-tools/ReactiveUI
src/ReactiveUI/CompatMixins.cs
915
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering; using System.IO; public class RenderFisheye : MonoBehaviour { public RenderCubemap cubemap_script; public Shader shader; public float focalLength_x = 1.0f; public float focalLength_y = 1.0f; ...
30.268657
108
0.620316
[ "MIT" ]
summeryqc/unity_fisheye_camera
test_camera/Assets/FisheyeLens/RenderFisheye.cs
2,030
C#
namespace MaterialColor.Json { using MaterialColor.Data; using ONI_Common.Data; using ONI_Common.IO; using ONI_Common.Json; public class ConfiguratorStateManager : BaseManager { public ConfiguratorStateManager(JsonManager manager, Logger logger = null) : base(manager, logger) ...
27.77551
98
0.635562
[ "MIT" ]
NitroturtleONI/ONI-Modloader-Mods
Source/MaterialColor/Json/ConfiguratorStateManager.cs
1,363
C#
using System.Collections; using UnityEngine; using UniRx; using System; namespace UniRxLession { public class CoroutineWhenAllExample : MonoBehaviour { IEnumerator A() { yield return new WaitForSeconds(1.0f); Debug.Log("-----A"); } IEnumerator B...
22.914286
62
0.485037
[ "MIT" ]
DiazGames/UniRxExample
Assets/Chapter2/5.WhenAll/CoroutineWhenAllExample.cs
804
C#
using System; using System.Runtime.InteropServices; namespace thor { public class VTFFileTypes : IFileTypeFactory { public static readonly FileType Vtf = new VtfFileType(); private static FileType[] FileTypes = new FileType[] { Vtf }; internal FileTypeCollection GetFileTypeCollection() { ...
25.947368
157
0.667343
[ "BSD-3-Clause" ]
LogicAndTrick/thor
thor/VtfFileType.cs
1,479
C#
/** * (C) Copyright IBM Corp. 2020. * * 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 agreed to in w...
36.128205
118
0.701916
[ "Apache-2.0" ]
darkmatter2222/dotnet-standard-sdk
src/IBM.Watson.Assistant.v2/Model/MessageContextSkillSystem.cs
1,409
C#
using System; namespace NewsPress.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
17.333333
70
0.663462
[ "MIT" ]
clementbouvard/NewsPress
NewsPress/NewsPress/Models/ErrorViewModel.cs
208
C#
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace Microsoft.Azure.Cosmos.SqlObjects { using Microsoft.Azure.Cosmos.SqlObjects.Visitors; #if INTERNAL #pragma warning ...
31
108
0.632925
[ "MIT" ]
Arithmomaniac/azure-cosmos-dotnet-v3
Microsoft.Azure.Cosmos/src/SqlObjects/SqlScalarExpression.cs
901
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace Infrastructure.Migrations { public partial class FistMigration : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilde...
45.821429
125
0.502078
[ "MIT" ]
phjb/SistemaEscolar
src/Infrastructure/Migrations/20210120000912_Fist-Migration.cs
7,700
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class InputSource : MonoBehaviour { public enum Button { Cross, Circle, Square, Triangle } private Dictionary<Button, string> buttonStrings; private void Awake() { bu...
21.142857
58
0.593468
[ "MIT" ]
Feverfew826/SideScrollStrategy
Assets/Scripts/Inputs/InputSource.cs
890
C#
using System; namespace CafeLib.Authorization.Tokens { public class TokenResponse { public Token Token { get; set; } public string Message { get; set; } public Exception Exception { get; set; } } }
17
48
0.617647
[ "MIT" ]
chrissolutions/CafeLib
Authorization/CafeLib.Authorization.Tokens/TokenResponse.cs
240
C#
using System; using System.Collections.Generic; using UnityEngine; // public enum FlareTexModel // { // _2x2 = 0, // _4x4 = 1, // _Mega = 2, // _1L4S = 3, // _1L2M8S = 4, // } [CreateAssetMenu(fileName = "FlareAsset", menuName = "MFLensflare/Create FlareAsset split by Cell")] [Serializable] public clas...
19.428571
100
0.681373
[ "MIT" ]
Reguluz/Moonflow-Lensflare-System
Assets/MoonFlowLensFlare/MFFlareAssetCell.cs
410
C#
using System; using System.Collections.Generic; namespace Nuclear.TestSite.TestSuites { class ReferenceTestSuite_uTests { #region IsEqual [TestMethod] [TestData(nameof(IsEqualData))] void IsEqual(Object input1, Object input2, (Int32 count, Boolean result, String message) expected...
40.126437
144
0.578058
[ "MIT" ]
MikeLimaSierra/Nuclear.TestSite
src/Nuclear.TestSite.uTests/TestSuites/ReferenceTestSuite_uTests.cs
3,493
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/wingdi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop { pub...
27.85
145
0.684022
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
sources/Interop/Windows/um/wingdi/LOGBRUSH32.cs
559
C#
// 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 regenerated. namespace Mi...
77.520325
331
0.705296
[ "MIT" ]
AlanFlorance/azure-powershell
src/Resources/Authorization.Autorest/generated/api/Models/Api20201001Preview/RoleEligibilitySchedule.json.cs
9,413
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Domain { /// <summary> /// SearchOrderBaseKeyWordNumRequest Data Structure. /// </summary> [Serializable] public class SearchOrderBaseKeyWordNumRequest : AopObject { /// <summary> /// appid /// ...
22.56
62
0.535461
[ "Apache-2.0" ]
554393109/alipay-sdk-net-all
AlipaySDKNet.Standard/Domain/SearchOrderBaseKeyWordNumRequest.cs
572
C#
using System.Linq; namespace Eventualize.Projection.FluentProjection { public interface IFluentUpdateEventHandler<TProjectionModel, TEvent> : IFluentEventHandler<IFluentUpdateEventHandler<TProjectionModel, TEvent>, TProjectionModel, TEvent> { } }
32.375
173
0.814672
[ "MIT" ]
Useurmind/Eventualize
Eventualize.Projection/FluentProjection/IFluentUpdateEventHandler.cs
259
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("Tw...
39.162162
84
0.754313
[ "MIT" ]
dushka-dragoeva/TelerikSeson2016
Useful Materials/C Sharp/BitwiseMagicDemos/TwoUniquesAmongDuplicatesTestGenerator/Properties/AssemblyInfo.cs
1,452
C#
using System.Collections; using UnityEngine; namespace CippSharp.Core.Coroutines { public static class AnimatorTransitions { #region Edit Parameters /// <summary> /// Move an animator float parameter from his current value to final value /// </summary> /// <par...
41.337079
225
0.569176
[ "MIT" ]
ZiosTheCloudburster/CippSharpCoreCoroutines
Runtime/AnimatorTransitions.cs
3,681
C#
using System.Resources; 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. [asse...
34.516129
84
0.742991
[ "Apache-2.0" ]
aliozgur/xamarin-forms-book-samples
Chapter20/ApmToTap/ApmToTap/ApmToTap/Properties/AssemblyInfo.cs
1,071
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CompoundTools.CFB { public class CFBDirectoryEntry { public string Name { get; set; } public ushort NameBufferSize { get; set; } public EntryType Ty...
33.558442
96
0.555728
[ "MIT" ]
FuSoftware/CompoundTools
CompoundTools/CFB/CFBDirectoryEntry.cs
2,586
C#
//------------------------------------------------------------------------------ // <auto-generated> // Dieser Code wurde von einem Tool generiert. // Laufzeitversion:4.0.30319.42000 // // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn // der Code erneut generi...
31.368421
96
0.612626
[ "MIT" ]
georghinkel/ttc2017smartGrids
generator/Schema/IEC61968/Common/ITownDetail.cs
4,770
C#
using SwitcherServer.Atem; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace SwitcherServer { public interface IConnectionChangeNotifyQueue : INotificationQueue<ConnectionChangeNotify> { } }
20.066667
95
0.760797
[ "MIT" ]
tomblchr/atem-streamlia
App/IConnectionChangeNotifyQueue.cs
303
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEditor; namespace Microsoft.MixedReality.Toolkit.Utilities.Editor { [CustomEditor(typeof(GridObjectCollection), true)] public class GridObjectCol...
39.253731
112
0.647148
[ "MIT" ]
ActiveNick/HoloBot
Assets/MixedRealityToolkit.SDK/Inspectors/UX/Collections/GridObjectCollectionInspector.cs
2,632
C#
// ------------------------------------------------------------------------------ // Copyright (c) 2015 Microsoft Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software witho...
49.234234
157
0.631473
[ "MIT" ]
HandsomeMark/onedrive-sdk-csharp-master
samples/OneDriveApiBrowser/OneDriveTile.Designer.cs
5,467
C#
using System.IO; using static LiteDB.Constants; namespace LiteDB.Engine { /// <summary> /// FileStream disk implementation of disk factory /// [ThreadSafe] /// </summary> internal class FileStreamFactory : IStreamFactory { private readonly string _filename; private readonly str...
31.344444
139
0.558667
[ "MIT" ]
gan4-ua/LiteDB
LiteDB/Engine/Disk/StreamFactory/FileStreamFactory.cs
2,823
C#
// preamble: original source: https://github.com/migueldeicaza/redis-sharp/blob/master/redis-sharp.cs // included here for performance test purposes only; this is a separate and parallel implementation // // redis-sharp.cs: ECMA CLI Binding to the Redis key-value storage system // // Authors: // Miguel de Icaza (m...
26.872437
106
0.535433
[ "Apache-2.0" ]
Pliner/StackExchange.Redis
MigratedBookSleeveTestSuite/redis-sharp.cs
23,596
C#
// Copyright (C) 2013-2021 Xtensive LLC. // This code is distributed under MIT license terms. // See the License.txt file in the project root for more information. // Created by: Alexey Kulakov // Created: 2013.08.12 using System.Linq; using NUnit.Framework; using Xtensive.Orm.Configuration; using Xtensive.Orm.Test...
32.115385
90
0.632096
[ "MIT" ]
DataObjects-NET/dataobjects-net
Orm/Xtensive.Orm.Tests/Issues/IssueJira0471_LikeOperatorSupport.cs
4,175
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(SpriteRenderer))] public class BorderSpriteVisuals : MonoBehaviour { [SerializeField] private SpriteRenderer _spriteRenderer; private void Start() { if (_spriteRenderer == null) _sprite...
26.875
61
0.737209
[ "MIT" ]
lightvsdarkness/ImperativeTetro
Assets/Scripts/BorderSpriteVisuals.cs
432
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Microsoft.Azure.II...
40.345588
99
0.554219
[ "MIT" ]
marcschier/azure-iiot-common
src/Microsoft.Azure.IIoT.Abstractions/src/Http/Extensions/HttpResponseEx.cs
5,487
C#
using System; using MoonSharp.Interpreter; namespace GwenNetLua.Control { public class RadioButton : CheckBox { public static new RadioButton Create(Internal.ControlBase parent) { return new RadioButton(new Gwen.Control.RadioButton(parent.Target)); } [MoonSharpHidden] public static new RadioButton Cre...
19.310345
72
0.728571
[ "MIT" ]
kpalosaa/gwen-net-lua
Library/Portable/Control/RadioButton.cs
562
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace PowerBIAPI.Models { public class PowerBIDataset { public string name { get; set; } public List<Tables> tables { get; set; } public class Tables { public string name { get...
22.6
54
0.538053
[ "Apache-2.0" ]
Velkata/IntorductionToLogicApps_AzureBootcampBulgaria2016
src/powerbi/PowerBIAPI/Models/PowerBIDataset.cs
567
C#
namespace Teronis.Identity.Entities { public interface IBearerUserEntity { string Id { get; } string UserName { get; } string SecurityStamp { get; } } }
19
38
0.6
[ "MIT" ]
BrunoZell/Teronis.DotNet
src/NetCoreApp/Identity/EntityFrameworkCore/src/Entities/IBearerUserEntity.cs
192
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. using System; using System.Linq; using System.Net.Http; using System.Security.Claims; using System.Security.Principal; using System.Threading.Tasks; using Microsoft.Azure.M...
37.822581
119
0.626439
[ "MIT" ]
Adhavanbalajiap/MyDriving
src/MobileAppService/MyDrivingService/Helpers/IdentitiyHelper.cs
2,347
C#
using System; using tree.Classes; using linked_list.Classes; namespace tree { class Program { static void Main(string[] args) { TestBinTree(); TestBSTree(); Console.ReadLine(); } /// <summary> /// populates BinaryTree for testing...
31.981308
74
0.514904
[ "MIT" ]
GwennyB/code-challenges-401
StructuresAndAlgorithms/tree/tree/Program.cs
3,424
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using Simple.Data.Ado; using Simple.Data.Mocking.Ado; namespace Simple.Data.IntegrationTest { [TestFixture] public class RangeAndArrayFindTest { static Database CreateDatabase(...
54.418919
285
0.586044
[ "MIT" ]
SimonH/Simple.Data
Simple.Data.BehaviourTest/RangeAndArrayFindTest.cs
4,029
C#
using Caf.Midden.Cli.Common; using Caf.Midden.Core.Models.v0_2; using Caf.Midden.Core.Services; using Caf.Midden.Core.Services.Metadata; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Caf.Midden.Cli.Services { public c...
28.52809
95
0.582513
[ "CC0-1.0" ]
GSWRL-USDA-ARS/Midden
Caf.Midden.Cli/Services/LocalFileSystemCrawler.cs
2,541
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Dispath { /// <summary> /// 提供用于计算指定文件哈希值的方法 /// <example>例如计算文件的MD5值: /// <code> /// String hashMd5=HashHelper.ComputeMD5("MyFile.txt"); /// </code> /// </example> /// <example>例如计算文件的CRC...
34.736111
136
0.501666
[ "MIT" ]
lylxiaole/webrtc_remote_win
RemoteWindowWpf/LYL.Common/文件操作/HashHelper.cs
8,111
C#
using System.Runtime.InteropServices; namespace Vulkan { [StructLayout(LayoutKind.Sequential)] public struct VkEventCreateInfo { public VkStructureType SType; [NativeTypeName("const void *")] public nuint PNext; [NativeTypeName("VkEventCreateFlags")] public uint Flags; } }
21.133333
65
0.697161
[ "BSD-3-Clause" ]
trmcnealy/Vulkan
Vulkan/Structs/VkEventCreateInfo.cs
317
C#
using System; using System.IO; using System.Text; using Valve.VR; using Newtonsoft.Json; namespace SteamVR_WebKit { /// <summary> /// Registers applications to SteamVR/OpenVR and allows to set autostart (starts with SteamVR). A .vrmanifest file is needed. /// No file is copied. Instead OepnVR is provided ...
44.210526
176
0.545918
[ "MIT" ]
BenWoodford/SteamVR-Webkit
SteamVR-WebKit/SteamVR_Application.cs
5,882
C#
 using System; using Foundation; using UIKit; using System.Collections.Generic; namespace KeyboardCompanion { public partial class RemoteConfigsListVC : UIViewController { RemoteConfigurationsListSource _source; UIActivityIndicatorView _activityIndicator; public RemoteConfigsListVC () : base ("RemoteConfig...
25.3125
123
0.746914
[ "Apache-2.0" ]
timefrancesco/touchboard
sources/TouchBoard.ios/ViewControllers/RemoteConfigsListVC.cs
3,242
C#
namespace DigitalLearningSolutions.Web.Tests.Helpers { using DigitalLearningSolutions.Web.Helpers; using FakeItEasy; using FluentAssertions; using Microsoft.Extensions.Configuration; using NUnit.Framework; class ContentUrlHelperTests { private IConfiguration config; ...
30.961039
100
0.57005
[ "MIT" ]
TechnologyEnhancedLearning/DLSV2
DigitalLearningSolutions.Web.Tests/Helpers/ContentUrlHelperTests.cs
2,386
C#
using System.Windows; using System.Collections.Generic; namespace ESRI.ArcLogistics.App.Controls { /// <summary> /// Drag pane services /// </summary> internal class DragPaneServices { #region Members /// <summary> /// List of managed surfaces /// </summary> ...
29.169591
96
0.4998
[ "Apache-2.0" ]
Esri/route-planner-csharp
RoutePlanner_DeveloperTools/Source/ArcLogisticsApp/Controls/DockingLibrary/DragPaneServices.cs
4,988
C#