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 .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. #pragma warning disable SA1121 // UseBuiltInTypeAlias using System; using CommunityToolkit.WinUI.Notifications.Adap...
36.333333
153
0.598349
[ "MIT" ]
ehtick/Uno.WindowsCommunityToolkit
CommunityToolkit.WinUI.Notifications/Adaptive/AdaptiveText.cs
5,450
C#
using System; using System.Collections.Generic; using System.Collections.Concurrent; using System.Linq; using System.Text; using System.IO; using System.Diagnostics; using System.Data; using Vita.Entities.Utilities; using Vita.Entities; using Vita.Entities.Model; namespace Vita.Entities.Logging { // We treat DbCo...
37.635135
135
0.677917
[ "MIT" ]
rivantsov/vita
src/1.Framework/Vita/4.Internals/Logging/LogEntries/DbCommandLogEntry.cs
2,787
C#
using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; namespace TestImplementation.ReadCookie.Controllers { [Authorize] public class SecurityController : Controller ...
26.458333
94
0.700787
[ "MIT" ]
CNBoland/FormsAuthentication
samples/TestImplementation.ReadCookie/Controllers/SecurityController.cs
637
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Text; using Xunit; namespace System.IO { public static class Ro...
38.012987
122
0.606252
[ "MIT" ]
06needhamt/runtime
src/libraries/Common/tests/Tests/System/IO/RowConfigReaderTests.cs
5,856
C#
using System; using UnityEngine; using LuaInterface; using Object = UnityEngine.Object; public class AnimationClipWrap { public static void Register(IntPtr L) { LuaMethod[] regs = new LuaMethod[] { new LuaMethod("SetCurve", SetCurve), new LuaMethod("EnsureQuaternionContinuity", EnsureQuaternionContinu...
24.633452
125
0.693008
[ "MIT" ]
joexi/TinyGame.uLua
Assets/uLua/Source/LuaWrap/AnimationClipWrap.cs
6,924
C#
namespace WebAuthn.Controllers { using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Rsk.AspNetCore....
43
190
0.659671
[ "MIT" ]
daviddesmet/playground
src/aspnet-core-razor-pages-security-webauthn/WebAuthn/Controllers/HomeController.cs
5,291
C#
using System; using System.Diagnostics; using Org.BouncyCastle.Crypto.Utilities; using Org.BouncyCastle.Security; using Org.BouncyCastle.Utilities; namespace Org.BouncyCastle.Math.Raw { /* * Modular inversion as implemented in this class is based on the paper "Fast constant-time gcd * computation and m...
29.839404
104
0.360595
[ "MIT" ]
0x070696E65/Symnity
Assets/Plugins/Symnity/Pulgins/crypto/src/math/raw/Mod.cs
18,025
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; namespace Delivery.Models.ManageViewModels { public class EnableAuthenticatorViewModel { ...
28
123
0.684066
[ "MIT" ]
DmitryEkimov/Delivery
Delivery/Models/ManageViewModels/EnableAuthenticatorViewModel.cs
730
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using PharmacyNetwork.ApplicationCore.Entities; namespace PharmacyNetwork.Web.ViewModels { public class PurchaseCheckViewModel { public Purchase Purchase { get; set; } public IEnumerable<Check> Ch...
21.625
53
0.734104
[ "MIT" ]
SH4KUR/PharmacyNetwork
src/Web/ViewModels/PurchaseCheckViewModel.cs
348
C#
using System.Collections.Generic; namespace HOPU.Models { /// <summary> /// 统测列表的modeloutput model /// </summary> public class UnifiedTestTypeViewModel { public IEnumerable<CourseNameViewModel> CourseNames { get; set; }//题目类名称列表 public IEnumerable<UniteTest> UniteTests { get; set; ...
25.769231
82
0.668657
[ "MIT" ]
HDwoald/OnlineTest
HOPU/Models/UnifiedTestTypeViewModel.cs
369
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("Se...
37.648649
84
0.743001
[ "Apache-2.0" ]
Bomret/ServR
ServR.Task/Properties/AssemblyInfo.cs
1,396
C#
// <auto-generated/> using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using LotusCatering.Data.Models; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace ...
31.789474
129
0.585762
[ "MIT" ]
Kmalechkanov/Lotus-Catering
Src/Web/LotusCatering/Areas/Identity/Pages/Account/Manage/SetPassword.cshtml.cs
3,022
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace DevIO.AppMvc.Models { public class ExternalLoginConfirmationViewModel { [Required] [Display(Name = "Email")] public string Email { get; set; } } public class ExternalLoginListViewModel ...
27.530973
110
0.588235
[ "MIT" ]
marcialwushu/AspNetMVC5
src/MeusProdutos/DevIO.AppMvc/Models/AccountViewModels.cs
3,113
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.Immutable; using System.Composition; using System.Threading; using System.Th...
42.207792
130
0.688308
[ "Apache-2.0" ]
HenrikWM/roslyn
src/Features/CSharp/Portable/UseExplicitTypeForConst/UseExplicitTypeForConstCodeFixProvider.cs
3,252
C#
using Entities.Models; using System.Collections.Generic; namespace Contracts { public interface ICompanyRepository { IEnumerable<Company> GetAllCompanies(bool trackChanges); } }
18.181818
64
0.74
[ "MIT" ]
CodeMazeBlog/multiple-databases-aspnetcore
CompanyEmployees/Contracts/ICompanyRepository.cs
202
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> //----------------------------------------...
36.226415
110
0.553906
[ "MIT" ]
sumuongit/asp-ado-cms-website-layered-architecture
CMS_Website/Control_Panel/report.aspx.designer.cs
3,842
C#
namespace ThriveDevCenter.Server.Models { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Shared; using Shared.Models;...
35.063291
117
0.588448
[ "MIT" ]
Revolutionary-Games/ThriveDevCenter
Server/Models/CiJob.cs
5,540
C#
using System; using System.IO; namespace CirnoLib.MPQ.CompressLib { // A node which is both hierachcical (parent/child) and doubly linked (next/prev) public class LinkedNode { public int DecompressedValue; public int Weight; public LinkedNode Parent; public LinkedNode Child...
48.3687
111
0.521196
[ "MIT" ]
BlacklightsC/CirnoLib
CirnoLib.MPQ/CompressLib/Huffman.cs
18,237
C#
//----------------------------------------------------------------------- // <copyright file="CardForDeckReplacer.cs" company="None"> // Copyright (c) IIHOSHI Yoshinori. // Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information. // </copyright> //----------------...
39.821429
118
0.486547
[ "BSD-2-Clause" ]
fossabot/ThScoreFileConverter
ThScoreFileConverter/Models/Th123/CardForDeckReplacer.cs
4,462
C#
using Swisstalk.ORM.Transport; using System; using System.Collections.Generic; using System.Globalization; namespace Swisstalk.ORM.Decoding { public class AtomicDecoder { private static readonly Dictionary<Type, Func<object, object>> ConversionTable = new Dictionary<Type, Func<object, object>>() ...
30.12037
133
0.577621
[ "MIT" ]
valentinivanov/swisstalk
code/ORM/Decoding/AtomicDecoder.cs
3,255
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.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Globalization; using Syst...
38.512744
205
0.580284
[ "MIT" ]
JeremyKuhne/winforms
src/System.Windows.Forms/src/System/Windows/Forms/AccessibleObject.cs
77,066
C#
namespace nHydrate.Generator.Forms { partial class SQLForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disp...
40.807229
157
0.687186
[ "MIT" ]
giannik/nHydrate
Source/nHydrate.Generator/Forms/SQLForm.Designer.cs
6,774
C#
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using System; using System.Linq; using System.Threading.Tasks; using IdentityServer4.Events; using IdentityServer4.Extensions; using IdentityS...
39.370213
198
0.583766
[ "MIT" ]
daxnet/identity-demo
services/IdentityDemo.IdentityService/Controllers/Device/DeviceController.cs
9,252
C#
using System; using System.Globalization; using System.Security.Claims; using System.Security.Principal; namespace Microsoft.AspNet.Identity { /// <summary> /// Extensions making it easier to get the user name/user id claims off of an identity /// </summary> public static class IdentityE...
33.703297
112
0.501467
[ "MIT" ]
Sinoprise/ASP.NET-Identity
src/Microsoft.AspNet.Identity.Core/Extensions/IdentityExtensions.cs
3,069
C#
using System; using System.Numerics; namespace VoxelPizza.Client { public class Transform { private Vector3 _position; private Quaternion _rotation = Quaternion.Identity; private Vector3 _scale = Vector3.One; public Vector3 Position { get => _position; set { _position = value;...
33.25
115
0.634085
[ "MIT" ]
TechnologicalPizza/VoxelPizza
VoxelPizza.Client/Transform.cs
1,199
C#
using System; using System.Net; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using AutoMapper; using EasyCaching.Core; using Adnc.Maint.Application.Dtos; using Adnc.Infr.Common.Extensions; using Adnc.Infr.Common.H...
38.390071
160
0.569555
[ "MIT" ]
dotNetTreasury/Adnc
src/ServerApi/Portal/Adnc.Maint/Adnc.Maint.Application/Services/Dict/DictAppService.cs
5,423
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Http.Headers; using System.Threading.Tasks; using GraphQL; using GraphQL.NewtonsoftJson; using GraphQL.Validation; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.E...
42.611111
285
0.630556
[ "MIT" ]
cime/CoreSharp
CoreSharp.GraphQL.AspNetCore/GraphQLMiddleware.cs
8,437
C#
[assembly: Xamarin.Forms.Dependency(typeof(Barbershop.iOS.Implementations.Localize))] namespace Barbershop.iOS.Implementations { using System.Globalization; using System.Threading; using Foundation; using Helpers; using Interfaces; public class Localize : ILocalize { public Cultur...
38.573034
117
0.540344
[ "Apache-2.0" ]
jodaga1992/Barbershop
Barbershop/Barbershop.iOS/Implementations/Localize.cs
3,437
C#
using System; using System.Collections.Generic; using System.Data; using FirebirdSql.Data.FirebirdClient; namespace OMeta.Firebird { public class FirebirdColumns : Columns { public FirebirdColumns() { } internal DataColumn f_TypeName = null; internal DataColumn f_TypeNameComplete = null; override ...
30.038647
444
0.505227
[ "MIT" ]
kiler398/OMeta
src/OpenMetaData/Firebird/Columns.cs
12,436
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace ContactManager { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{r...
26.217391
100
0.568823
[ "Apache-2.0" ]
Microsoft-Web/HOL-ASPNETWebAPI
Source/Ex01-ReadOnlyWebAPI/End/ContactManager/App_Start/RouteConfig.cs
605
C#
using BlazorFluentUI.Themes.Default; using BlazorFluentUI.Utils; using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace BlazorFluentUI { public class ThemeProvider { private ITheme _theme; public ICollection<Theme> ThemeComponents { get; set; } ...
44.788732
193
0.600105
[ "MIT" ]
BlazorFluentUI/BlazorFluentUI
src/BlazorFluentUI.CoreComponents/Theme/ThemeProvider.cs
9,542
C#
using System; namespace CSharpGL { internal class OpenGL32Library : IDisposable { public static readonly OpenGL32Library Instance = new OpenGL32Library(); private OpenGL32Library() { libPtr = Win32.LoadLibrary(Win32.opengl32); } /// <summary> /// g...
21.777778
80
0.485423
[ "MIT" ]
AugusZhan/CSharpGL
CSharpGL.Windows/Win32API/Win32.OpenGL32Library.cs
1,374
C#
/* * Copyright (c) 2006, Clutch, Inc. * Original Author: Jeff Cesnik * 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 copyrigh...
38.835938
136
0.539529
[ "BSD-3-Clause" ]
ausesims/opensim
OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
19,884
C#
#region Using directives using System.Data; using Moq; using NBi.NUnit.Builder; using NBi.NUnit.Query; using NBi.Xml.Constraints; using NBi.Xml.Items; using NBi.Xml.Systems; using NUnit.Framework; using NBi.Core.ResultSet.Resolver; using NBi.Core.ResultSet; using NBi.Core.Query; using NBi.Core.Injection; ...
29.857143
85
0.596246
[ "Apache-2.0" ]
CoolsJoris/NBi
NBi.Testing/Unit/NUnit/Builder/QueryFasterThanBuilderTest.cs
2,719
C#
namespace mCubed.LineupGenerator.Services { public enum NewsStatus { Breaking = 1, Recent, None } }
11.9
43
0.647059
[ "MIT" ]
nickp10/mcubed-lineup-insight-generator
mCubed.LineupGenerator/Services/NewsStatus.cs
121
C#
using Gov.Lclb.Cllb.Interfaces.Models; using Gov.Lclb.Cllb.Public.Models; using Newtonsoft.Json; using System; using System.Net; using System.Net.Http; using System.Text; using Xunit; namespace Gov.Lclb.Cllb.Public.Test { public class EstablishmentTests : ApiIntegrationTestBaseWithLogin { public Estab...
39.467213
125
0.620768
[ "Apache-2.0" ]
BrendanBeachBC/jag-lcrb-carla-public
cllc-public-app-test/EstablishmentTests.cs
4,815
C#
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Text; using Microsoft.VisualStudio.TestTools.UnitTesting; using Archichect.Rendering.TextWriting; using Archichect.Transforming.PathFinding; namespace Archichect.Tests { [TestClass, ExcludeFromCodeC...
34.598326
175
0.572258
[ "Apache-2.0" ]
hmmueller/Archichect
src/Archichect.Tests/TestFlatPathWriterWithPathMarker.cs
8,269
C#
using System; using System.Collections.Generic; using System.Linq; using Albion.Model.Buildings; using Albion.Model.Data; using Albion.Model.Items.Categories; using Albion.Model.Items.Profits; using Albion.Model.Items.Requirements; using Albion.Model.Managers; namespace Albion.Model.Items { public cla...
33.736842
123
0.540883
[ "MIT" ]
masterdidoo/albion-helper
Albion.Model/Items/CommonItem.cs
10,899
C#
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services // // Microsoft Cognitive Services (formerly Project Oxford) GitHub: // https://github.com/Microsoft/Cognitive-SpeakerReco...
40.2
109
0.739303
[ "MIT" ]
Bhaskers-Blu-Org2/Cognitive-SpeakerRecognition-Windows
ClientLibrary/Contract/Identification/OperationLocation.cs
2,012
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Mim.V6301</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDat...
44.764192
1,358
0.59643
[ "MIT" ]
Kusnaditjung/MimDms
src/Mim.V6301/Generated/UKCT_MT144039UK02PertinentInformation2Finding.cs
10,251
C#
public static class ListDirectoryRecursively { static void Main(string[] args) { string path = args[0]; ListRecursively(path); } /// <summary> /// This function lists all files and subdirectories of a folder recursively. /// </summary> /// <param name="path">The path f...
30.238095
100
0.525197
[ "MIT" ]
nordic16/code-snippets
C#/Files/ListFilesRecursively.cs
1,272
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...
40.5
153
0.613485
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/CodeArtifact/Generated/Model/Internal/MarshallTransformations/CopyPackageVersionsRequestMarshaller.cs
6,318
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.Build.UnitTests; using Xunit; #nullable disable namespace Microsoft.Build.Tasks.UnitTests { public sealed class TelemetryTaskTests { ...
30.078431
157
0.576271
[ "MIT" ]
AlexanderSemenyak/msbuild
src/Tasks.UnitTests/TelemetryTaskTests.cs
3,070
C#
using System; using Amazon.Lambda.Core; using Amazon.Lambda.Serialization.Json; using System.Threading.Tasks; using System.Collections.Generic; namespace dotnet21 { public class Hello { [LambdaSerializer(typeof(JsonSerializer))] public async Task<Object> Handler(Object request) { ...
22.807692
58
0.536256
[ "MIT" ]
FieryCod/holy-lambda
benchmarks/holy-lambda-vs-other-runtimes/csharp/Hello.cs
593
C#
using System; namespace _02._Multiplication_Table { class Program { static void Main(string[] args) { for (int i = 1; i <= 10; i++) { for (int k = 1; k <= 10; k++) { Console.WriteLine($"{i} * {k} = {i * k}"); ...
19
62
0.34349
[ "MIT" ]
GeorgiGradev/SoftUni
01. Programming Basics/07.1. Nested Loops - Lab/02. Multiplication Table/Program.cs
363
C#
using Clypeus.Data.Model.Medicinals; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using System; using System.Collections.Generic; using System.Text; namespace Clypeus.Data.Model.Configurations.Medicinals { public class OrganismsConfiguration : IEntityTypeConfiguratio...
34
77
0.594723
[ "MIT" ]
Clypeus/ClypeusInfectionManagementSystem
MAIN/Clypeus/Clypeus.Data.Model/Configurations/MedicinalConfigurations/OrganismsConfiguration.cs
2,314
C#
namespace TwitchLib.Events.Services.LiveStreamMonitor { #region using directives using System; using System.Collections.Generic; using Enums; #endregion /// <summary>Class representing event args for OnChannelMonitorStarted event.</summary> public class OnStreamMonitorStartedArgs : EventAr...
38.15
103
0.726081
[ "MIT" ]
NoStudioDude/TwitchLib-1
TwitchLib/Events/Services/LiveStreamMonitor/OnStreamMonitorStartedArgs.cs
765
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.Collections.Generic; using BuildXL.Cache.ContentStore.Hashing; namespace BuildXL.Cache.ContentStore.Distributed { /// <summary>...
32.266055
162
0.548479
[ "MIT" ]
breidikl/BuildXL
Public/Src/Cache/ContentStore/Distributed/ContentLocations/ContentHashWithSizeAndLocations.cs
3,517
C#
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using HotelCalifornia.Backend.Domain.Entities; namespace HotelCalifornia.Backend.Database.Mappings { public class BookingsConfiguration: IEntityTypeConfiguration<Bookings> { public void Configure(EntityTypeBuild...
36.571429
84
0.684896
[ "MIT" ]
TomaszKandula/HotelCalifornia
HotelCalifornia.Backend/HotelCalifornia.Backend.Database/Mappings/BookingsConfiguration.cs
768
C#
using System.ComponentModel.DataAnnotations.Schema; namespace TNO.Entities; [Table("content_action")] public class ContentAction : AuditColumns, IEquatable<ContentAction> { #region Properties [Column("content_id")] public long ContentId { get; set; } public virtual Content? Content { get; set; } ...
29.740741
89
0.666874
[ "Apache-2.0" ]
Fosol/TNO
libs/net/entities/ContentAction.cs
1,606
C#
using System; using System.Management; public static class HardwareInfo { /// <summary> /// Retrieving Processor Id. /// </summary> /// <returns></returns> /// public static String GetProcessorId() { ManagementClass mc = new ManagementClass("win32_processor"); ManagementO...
29.618421
186
0.567748
[ "Apache-2.0" ]
pierrehub2b/windowsdriver
record/HardwareInfo.cs
13,516
C#
// Copyright (c) 2021 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/ // Licensed under MIT license. See License.txt in the project root for license information. using System; using System.ComponentModel.DataAnnotations; using AuthPermissions.DataLayer.Classes.SupportTypes; namespace AuthP...
43.64557
155
0.673724
[ "MIT" ]
JonPSmith/AuthPermissions.AspNetCore
AuthPermissions/SetupCode/BulkLoadUserWithRolesTenant.cs
3,450
C#
/* * Copyright 2019-2020 Robbyxp1 @ github.com * * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this * file except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
38.264706
166
0.651806
[ "Apache-2.0" ]
OpenTK-Foundation-Classes/OFC
OFC/GL4/Shaders/Fragment/ShadersFragmentBindless.cs
3,804
C#
using AutoMapper; using Abp.Authorization; using Abp.Authorization.Roles; using AFX.Authorization.Roles; namespace AFX.Roles.Dto { public class RoleMapProfile : Profile { public RoleMapProfile() { // Role and permission CreateMap<Permission, string>().ConvertUsing(r => ...
29.428571
96
0.627832
[ "MIT" ]
CAH-FlyChen/AFX
aspnet-core/src/AFX.Application/Roles/Dto/RoleMapProfile.cs
620
C#
using System; using System.Collections; using System.IO; using Org.BouncyCastle.Crypto.Prng; using Org.BouncyCastle.Security; using Org.BouncyCastle.Utilities; namespace Org.BouncyCastle.Crypto.Tls { public abstract class TlsProtocol : TlsCloseable { /* * Our Connection states ...
40.371981
149
0.57389
[ "MIT" ]
WamWooWam/Unicord.Legacy
Libraries/BouncyCastle.Crypto/src/crypto/tls/TlsProtocol.cs
58,501
C#
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) Microsoft Corporation. All rights reserved. /////////////////////////////////////////////////////////...
30
200
0.639601
[ "Apache-2.0" ]
fburel/Monkey.Robotics
Source/Xamarin Studio Microframework Add-in/Add-In Project/Debugger/UsbStream.cs
3,510
C#
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2018 Jeffrey Su & Suzhou Senparc Network Technology 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 ...
38.948052
174
0.644215
[ "Apache-2.0" ]
253437873/WeiXinMPSDK
src/Senparc.Weixin.WxOpen/src/Senparc.Weixin.WxOpen/Senparc.Weixin.WxOpen/Register.cs
3,349
C#
using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace CloudflareWorkersKvExplorer.Website { public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBu...
24.388889
76
0.644647
[ "MIT" ]
aozd4v/cloudflare-workers-kv-explorer
src/CloudflareWorkersKvExplorer.Website/Program.cs
441
C#
using System; using System.Collections.ObjectModel; using System.Threading.Tasks; using Cimbalino.Phone.Toolkit.Services; using IF.Lastfm.Core.Api; using IF.Lastfm.Core.Objects; using IF.Lastfm.Demo.Apollo.TestPages.ViewModels; namespace IF.Lastfm.Demo.Apollo.ViewModels.UserApi { public class RecentStationsTestVie...
25.950413
124
0.519745
[ "MIT" ]
PCurd/lastfm
src/IF.Lastfm.Demo.Apollo/ViewModels/UserApi/RecentStationsTestViewModel.cs
3,140
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FaturamentoWF { public class Produto { public int ID { get; set; } public string Nome { get; set; } public double Preco { get; set; } public string Tipo...
22.192308
70
0.559792
[ "MIT" ]
rafaelmmayer/Controle-de-Vendas
FaturamentoWF/Produto.cs
579
C#
using NUnit.Framework; namespace CoCSharp.Test.Data.AssetProviders { [TestFixture] public class CsvDataTableAssetProviderTests { } }
13.818182
47
0.723684
[ "MIT" ]
FICTURE7/CoCSharp
tests/Data/AssetProviders/CsvDataTableAssetProviderTests.cs
154
C#
#if !UNITY_WSA && !UNITY_WP8 using System; using UnityEngine; using System.Collections.Generic; using System.IO; using System.Net; using System.Threading; using PlayFab.SharedModels; #if !DISABLE_PLAYFABCLIENT_API using PlayFab.ClientModels; #endif namespace PlayFab.Internal { public class PlayFabWebRequest : ITr...
42.798521
257
0.557096
[ "MIT" ]
101Bunker/1017
Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabWebRequest.cs
23,154
C#
// Copyright (c) 2021 homuler // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. using Mediapipe; using NUnit.Framework; namespace Tests { public class CalculatorGraphTest { private const string _ValidConfigT...
26.727811
113
0.64224
[ "MIT" ]
62-26Nonny/MuscleLand
Packages/com.github.homuler.mediapipe/Tests/EditMode/Framework/CalculatorGraphTest.cs
4,517
C#
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. using graph_tutorial.Models; using System.Collections.Generic; using System.Web.Mvc; namespace graph_tutorial.Controllers { public abstract class BaseController : Controller ...
29.88
138
0.607764
[ "MIT" ]
abebatista/msgraph-training-aspnetmvcapp
Demos/01-create-app/graph-tutorial/Controllers/BaseController.cs
749
C#
// Copyright (c) 2010 AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under MIT X11 license (for details please see \doc\license.txt) using System; using ICSharpCode.NRefactory.TypeSystem; namespace ICSharpCode.NRefactory.CSharp.Resolver { /// <summa...
28.038462
108
0.74417
[ "MIT" ]
arturek/ILSpy
NRefactory/ICSharpCode.NRefactory/CSharp/Resolver/AliasNamespaceReference.cs
1,460
C#
using System; using System.Collections.Generic; using Ultraviolet.Core; namespace Ultraviolet.Graphics.Graphics3D { /// <summary> /// Represents a collection of 3D primitives and associated rendering state. /// </summary> public sealed class ModelMesh { /// <summary> /// Initialize...
34.010309
101
0.586844
[ "Apache-2.0", "MIT" ]
MicroWorldwide/ultraviolet
Source/Ultraviolet/Shared/Graphics/Graphics3D/ModelMesh.cs
3,301
C#
using System; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.Generic; //using Microsoft.ProjectOxford.Vision; //using Microsoft.ProjectOxford.Vision.Contract; using Plugin.Media; //using Plugin.TextToSpeech; using Plugin.Media.Abstractions; using Xamarin.Forms; namespace ...
32.014652
134
0.690275
[ "MIT" ]
jCho23/ASampleApp-JAAC
ASampleApp/ASampleApp/ViewModel/TextToSpeechViewModel.cs
8,742
C#
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.2 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ------------------------...
27.039024
101
0.607974
[ "BSD-2-Clause" ]
noblewhale/NATPunchthroughClient
Assets/Plugins/SwigFiles/OnFileStruct.cs
5,543
C#
using System; using System.Diagnostics; using System.Drawing; using System.Windows.Forms; namespace Palaso.UI.WindowsForms.WritingSystems { public partial class WSAddDuplicateMoreButtonBar : UserControl { WritingSystemSetupModel _model; public WSAddDuplicateMoreButtonBar() { InitializeComponent(); Creat...
26.761905
94
0.708482
[ "MIT" ]
marksvc/libpalaso
PalasoUIWindowsForms/WritingSystems/WSAddDuplicateMoreButtonBar.cs
3,372
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CallLogTracker.utility { public class Utility { /// <summary> /// Formats a number in bytes to the next closest size representation and appends its suffix to the end. ...
28.3125
112
0.550773
[ "Apache-2.0" ]
tlit-baytown/CallLogTracker
CallLogTracker/utility/Utility.cs
908
C#
using ProMama.ViewModels.Inicio; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace ProMama.Views.Inicio { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class NovaSenhaView : ContentPage { public NovaSenhaView() { InitializeComponent(); Bin...
22.176471
54
0.668435
[ "Apache-2.0" ]
agharium/ProMama
ProMama/ProMama/Views/Inicio/NovaSenhaView.xaml.cs
379
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace BankProject.Entity { public class MainSector { public int Id { get; set; } public string Code { get; set; } public string Name { get; set; } public string ShortName ...
22.25
87
0.53451
[ "Apache-2.0", "BSD-3-Clause" ]
nguyenppt/1pubcreditnew
DesktopModules/TrainingCoreBanking/BankProject/Entity/MainSector.cs
625
C#
//------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.10 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead....
20.85
81
0.502398
[ "MIT" ]
CodingJinxx/gameoff2020
Gameoff2020/Assets/NoesisGUI/Plugins/API/Proxies/FontWeight.cs
834
C#
namespace MyBlazorApp.Features.Counters { using BlazorState; internal partial class CounterState : State<CounterState> { public int Count { get; private set; } public CounterState() { } /// <summary> /// Set the Initial State /// </summary> public override void Initialize() => Count = 3...
19.294118
59
0.646341
[ "Unlicense" ]
mikeyoshino/MyBlazorApp
Source/Client/Features/Counter/CounterState.cs
328
C#
//Found this online, modified it using UnityEngine; using UnityEngine.UI; using System.Collections; public class CanvasTextOutline : MonoBehaviour { public float pixelSize = 1, sortingOrder; public int cloneCount = 8; public Color outlineColor = Color.black; public bool scaleLocally = false; pub...
38.056738
126
0.625792
[ "MIT" ]
Trif4/NitoriWare
Assets/Scripts/UI/CanvasTextOutline.cs
5,368
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("4....
37.810811
84
0.744103
[ "MIT" ]
Steffkn/TelerikAcademy
Programming/BGCoder Exams/2011-2012/C# Fundamentals 2011-2012/TA @ 7 Dec 2011 Morning/4.DancingBits/Properties/AssemblyInfo.cs
1,402
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...
35.243902
237
0.660208
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Compute/V20210301/Inputs/ManagedDiskParametersArgs.cs
1,445
C#
using System; using System.Linq.Expressions; using System.Text.RegularExpressions; namespace Checkk.Exceptions { public class InvariantException : Exception { private readonly string _message; protected InvariantException(string message) { _message = message; } ...
23.222222
56
0.523923
[ "Apache-2.0" ]
becdetat/check
src/Checkk/Exceptions/InvariantException.cs
836
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.HumanResources { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace = "...
26.566667
136
0.784818
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.HumanResources/Language_Ability_Profile_DataType.cs
1,594
C#
using System.Globalization; namespace MiniExcelLibs { public interface IConfiguration { } public abstract class Configuration : IConfiguration { public CultureInfo Culture { get; set; } = CultureInfo.InvariantCulture; } }
23.454545
81
0.689922
[ "Apache-2.0" ]
0xced/MiniExcel
src/MiniExcel/IConfiguration.cs
260
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading.Tasks; using VkNet.Enums.SafetyEnums; using VkNet.Model; using VkNet.Model.RequestParams.Ads; namespace VkNet.Abstractions { /// <summary> /// Асинхронные методы для работы со стеной пользователя. /// </sum...
48.04878
469
0.718704
[ "MIT" ]
Azrael141/vk
VkNet/Abstractions/Category/Async/IAdsCategoryAsync.cs
75,663
C#
using System; namespace Ledger { internal static class ConsoleHelper { public static void PrintError(string message) { using (new ColoredConsole(ConsoleColor.Red)) Console.WriteLine(message); } } }
18.785714
56
0.596958
[ "MIT" ]
soheilpro/Ledger
Sources/Ledger/ConsoleHelper.cs
263
C#
using System; using System.Collections.Generic; using System.Linq; using Dominion.Rules.CardTypes; namespace Dominion.Rules { public static class MyExtensions { public static void Times(this int count, Action action) { if (action != null) { f...
27.93617
90
0.492003
[ "MIT" ]
cardidemonaco/Dominion
Dominion.Rules/MyExtensions.cs
1,313
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...
40.479167
123
0.625665
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/ECS/Generated/Model/CapacityProviderStrategyItem.cs
5,829
C#
//----------------------------------------------------------------------------- // Runtime: 80ms // Memory Usage: 22.9 MB // Link: https://leetcode.com/submissions/detail/356457712/ //----------------------------------------------------------------------------- using System.Collections.Generic; using System.Text; nam...
24.954545
79
0.362477
[ "MIT" ]
BigEggStudy/LeetCode-CS
LeetCode/0051-0100/060-PermutationSequence.cs
1,098
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using App.Models; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.WebU...
29.979167
119
0.637248
[ "MIT" ]
RB-Labs/HMC
App/Areas/Identity/Pages/Account/ConfirmEmail.cshtml.cs
1,441
C#
namespace DailyWallpainter.UI { partial class frmWorking { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
40.358696
107
0.582548
[ "BSD-3-Clause" ]
iamxail/DailyWallpainter
DailyWallpainter/UI/frmWorking.Designer.cs
3,751
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...
33.08
122
0.619105
[ "ECL-2.0", "Apache-2.0" ]
ScriptBox99/pulumi-azure
sdk/dotnet/Batch/Inputs/AccountIdentityArgs.cs
1,654
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> // ---------------------------------------...
34.619048
152
0.69945
[ "Apache-2.0" ]
JetBrains/space-dotnet-sdk
src/JetBrains.Space.Client/Generated/Partials/LocationCFValuePartialBuilder.generated.cs
1,454
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace NDExt.Utils { public static class FileUtil { /// <summary> /// ディレクトリを削除して作成しなおします。 /// </summary> /// <param name="path"></param> public static void Recreat...
27.964286
95
0.47914
[ "MIT" ]
denso-create/NextDesign-NDExt
src/NDExt/Utils/FileUtil.cs
5,070
C#
using System; using DbKeeperNet.Engine; namespace DbKeeperNet.Extensions.Pgsql.Checkers { public class PgsqlDatabaseServiceViewChecker : PgsqlDatabaseServiceCheckerBase, IDatabaseServiceViewChecker { public PgsqlDatabaseServiceViewChecker(IDatabaseService databaseService) : base(databaseSe...
27.192308
111
0.664781
[ "BSD-3-Clause" ]
DbKeeperNet/DbKeeperNet
DbKeeperNet.Extensions.Pgsql/Checkers/PgsqlDatabaseServiceViewChecker.cs
709
C#
using System.Collections.Generic; using System.ComponentModel.Composition; using ZeraSystems.CodeNanite.Expansion; using ZeraSystems.CodeStencil.Contracts; namespace ZeraSystems.CodeNanite.WebAPI { /// <summary> /// There are 10 elements in the String Array used by the /// 0 - This is the name of the pub...
29.833333
80
0.590317
[ "MIT" ]
codetstencil/zerasystems.stencils
webapi/src/ApiModels/CreateApiModels.cs
1,613
C#
// SPDX-License-Identifier: Apache-2.0 // Licensed to the Ed-Fi Alliance under one or more agreements. // The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. // See the LICENSE and NOTICES files in the project root for more information. using System; using System.Collections.Generic; ...
48.413793
145
0.597024
[ "Apache-2.0" ]
gmcelhanon/Ed-Fi-ODS-1
Application/EdFi.Ods.Common/Models/Domain/EntityExtensions.cs
12,638
C#
using System; using System.Text.RegularExpressions; using NUnit.Framework; namespace Faker.Tests { [TestFixture] public class InternetFixture { [Test] public void Should_Create_Email_Address() { var email = Internet.Email(); Console.WriteLine($@"Email=[{emai...
30.862745
230
0.498094
[ "MIT" ]
ahems/faker-cs
tests/Faker.Tests/InternetFixture.cs
3,150
C#
/*--------------------------------------------------------------------------------------------- * Copyright (c) Dolittle. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *-------------------------------------------------------------------------------...
40.857143
115
0.52331
[ "MIT" ]
dolittle-einar/Runtime
Source/Queries/IQueryFor.cs
860
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...
34.181818
162
0.789894
[ "ECL-2.0", "Apache-2.0" ]
Otanikotani/pulumi-aws
sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementStatementAndStatementStatementByteMatchStatementFieldToMatchQueryString.cs
752
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace XF_InstagramMini.Models { public class Activity { public int UserId { get; set; } public string Name { get; set; } public string Description { get; set; } public string ImageUrl { ...
20.590909
71
0.560706
[ "MIT" ]
LuizMarcello/XF_InstagramMini
XF_InstagramMini/XF_InstagramMini/XF_InstagramMini/Models/Activity.cs
455
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using AutoMapper; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using SailScores.Api.Dtos; namespace SailScores.Web.Areas.Api.Controllers { [Route("api/[co...
29.793103
79
0.637731
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
SailScores/SailScores
SailScores.Web/Areas/Api/Controllers/RacesController.cs
1,730
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.Bot.Expressions; namespace Microsoft.Bot.Builder.LanguageGeneration { /// <summary> /// The template engine that ...
45.769231
160
0.619448
[ "MIT" ]
rggammon/botbuilder-dotnet
libraries/Microsoft.Bot.Builder.LanguageGeneration/TemplateEngine.cs
8,332
C#
namespace DOTNET.WEBAPI.BOILERPLATE.Areas.HelpPage.ModelDescriptions { public class CollectionModelDescription : ModelDescription { public ModelDescription ElementDescription { get; set; } } }
30.285714
68
0.759434
[ "MIT" ]
ReyielGab/Allow_It
DOTNET.WEBAPI.BOILERPLATE/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs
212
C#