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 file="QilTernary.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // <owner current="true" primary="true">Microsoft</owner> //-----------------------------------------...
31.164706
111
0.413364
[ "MIT" ]
Abdalla-rabie/referencesource
System.Data.SqlXml/System/Xml/Xsl/QIL/QilTernary.cs
2,649
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class testnavmesh : MonoBehaviour { [SerializeField] NavMeshBuildSource source; public void Start() { source = BoxSource10x10(); } // Make a build source for a box in local space ...
26.458333
57
0.63937
[ "MIT" ]
joansolroo/ProceduralWorlds
Assets/Navmesh/testnavmesh.cs
637
C#
namespace YalvLib.Common { using System; using System.Diagnostics; using System.Windows.Input; /// <summary> /// A command whose sole purpose is to /// relay its functionality to other /// objects by invoking delegates. The /// default return value for the CanExecute /// method is...
29.402174
101
0.544917
[ "MIT" ]
Dirkster99/YalvLib
src/YalvLib/Common/RelayCommand.cs
2,707
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 Microsoft.EntityFrameworkCore.Internal; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata.I...
35.467033
111
0.582804
[ "Apache-2.0" ]
vadzimpm/EntityFramework
test/EFCore.Relational.Tests/Metadata/SequenceTest.cs
6,455
C#
using microservice.toolkit.configurationmanager.extension; using Microsoft.Extensions.Configuration; using NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.IO; namespace microservice.toolkit.configurationmanager.test { [ExcludeFromCodeCoverage] public class ConfigurationManag...
31.293103
117
0.568044
[ "MIT" ]
MpStyle/microservicetoolk
microservice.toolkit.configurationmanager.test/ConfigurationManagerTest.cs
3,630
C#
using System; using System.Collections; using System.Collections.Generic; namespace NetFabric.Hyperlinq { public static partial class ValueEnumerableExtensions { public static DistinctEnumerable<TEnumerable, TEnumerator, TSource> Distinct<TEnumerable, TEnumerator, TSource>(this TEnumerable source) ...
35.098361
144
0.609995
[ "MIT" ]
Ashrafnet/NetFabric.Hyperlinq
NetFabric.Hyperlinq.SourceGenerator.UnitTests/TestData/Source/Distinct.ValueEnumerable.cs
2,143
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
39.607143
182
0.533745
[ "MIT" ]
ogirard/lyra-legacy
LyraShell/Properties/Resources.Designer.cs
14,419
C#
using System.Collections.Generic; using System.Drawing; using BizHawk.Emulation.Common; using BizHawk.Emulation.Cores.Nintendo.GBA; namespace BizHawk.Client.EmuHawk { [Schema("GBA")] public class GBASchema : IVirtualPadSchema { public IEnumerable<PadSchema> GetPadSchemas(IEmulator core) { yiel...
24.398907
62
0.566629
[ "MIT" ]
Asnivor/BizHawk
BizHawk.Client.EmuHawk/tools/VirtualPads/schema/GBASchema.cs
4,467
C#
namespace BlogEngine.Core.Web.HttpHandlers { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; using System.Web; using System.Web.Security; using System...
37.374823
207
0.521004
[ "MIT" ]
mohanraod/mohansglobe
BlogEngine.NET-3.3.5.0/BlogEngine/BlogEngine.Core/Web/HttpHandlers/Sioc.cs
26,426
C#
// Copyright (c) Richasy. All rights reserved. namespace Richasy.Bili.Models.Enums { /// <summary> /// Localized text resource name. /// </summary> public enum LanguageNames { #pragma warning disable SA1602 // Enumeration items should be documented AppName, AppDescription, ...
22.984127
72
0.568946
[ "MIT" ]
ioQoi/Bili.Uwp
src/Models/Models.Enums/App/LanguageNames.cs
8,690
C#
using ReactiveUI; namespace Xune.ViewModels { public class ViewModelBase : ReactiveObject { } }
13.625
47
0.697248
[ "MIT" ]
VitalElement/Xune
Xune.Desktop/ViewModels/ViewModelBase.cs
111
C#
using System; #if (NETFX_CORE || WINDOWS_UWP) using Windows.UI.Xaml; using Windows.UI.Xaml.Markup; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Media.Animation; #else using System.Windows.Markup; using System.Windows.Media.Animation; #endif namespace MahApps.Metro.IconPacks { public interface IPackIconExte...
28.193916
163
0.540661
[ "MIT" ]
CrimsonOrion/MahApps.Metro.IconPacks
src/MahApps.Metro.IconPacks.Core/PackIconExtension.cs
7,417
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ObjectReferenceTypeThatChangesValue { public class Order { public string name; } class Program { static void Main(string[] args) { var ...
17.3
45
0.560694
[ "MIT" ]
tuvshinot/csharp
csharp/ObjectInitializers/Program.cs
521
C#
using System.Collections.Generic; namespace SharpFont { class CharacterMap { Dictionary<CodePoint, int> table; CharacterMap (Dictionary<CodePoint, int> table) { this.table = table; } public int Lookup (CodePoint codePoint) { int index; if (tabl...
40.434211
103
0.516433
[ "MIT" ]
MikePopoloski/SharpFont
SharpFont/Internal/CharacterMap.cs
6,148
C#
using System; namespace CCTU.Entities { public interface IPessoaJuridica { /// <summary> /// CNPJ da Empresa /// </summary> string CNPJ { get; set; } /// <summary> /// Nome da Empresa /// </summary> string Nome { get; set; } /// <summar...
21.090909
46
0.488506
[ "Apache-2.0" ]
renanfactory/cerberus-pattern
CCUT/CCTU.Entities/IPessoaJuridica.cs
702
C#
using Mirror; namespace WeaverCommandTests.VirtualCommand { class VirtualCommand : NetworkBehaviour { [Command] protected virtual void CmdDoSomething() { // do something } } }
15.666667
47
0.591489
[ "MIT" ]
10allday/OpenMMO
Plugins/3rdParty/Mirror/Tests/Editor/Weaver/WeaverCommandTests~/VirtualCommand.cs
237
C#
using System.Collections.Generic; using System.Collections.ObjectModel; namespace WebAPIApp.Areas.HelpPage.ModelDescriptions { public class EnumTypeModelDescription : ModelDescription { public EnumTypeModelDescription() { Values = new Collection<EnumValueDescription>(); } ...
26.866667
76
0.707196
[ "Apache-2.0" ]
iliantrifonov/TelerikAcademy
ASP.NETWebForms/01.IntroductionToASP.NET/WebAPIApp/Areas/HelpPage/ModelDescriptions/EnumTypeModelDescription.cs
403
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.940476
248
0.591977
[ "MIT" ]
AzureAutomationTeam/azure-sdk-for-net
src/SDKs/Compute/Management.Compute/Generated/Models/OperationStatusResponse.cs
2,767
C#
using System; using System.IO; namespace ConsoleApp159 { class Program { public static void Main() { DriveInfo[] allDrives = DriveInfo.GetDrives(); foreach (var variable in allDrives) { Console.WriteLine("Drive :: " + variable.Name); Console.WriteLine(" Drive type :: "+ va...
28.785714
97
0.621588
[ "MIT" ]
hraverkar/.NetFramework-Sys.IO-Topics
DriveInfo.cs
806
C#
using System.Collections.Generic; using System.Runtime.Serialization; using UnityEngine; public abstract class SerializableDictionaryBase<TKey, TValue, TValueStorage> : Dictionary<TKey, TValue>, ISerializationCallbackReceiver { [SerializeField] TKey[] m_keys; [SerializeField] TValueStorage[] m_values; public Se...
22.201613
190
0.720305
[ "MIT" ]
Light3039/Unity-Managers
Assets/3rd-Party/SerializableDictionary/SerializableDictionary.cs
2,755
C#
using System.Collections; using UnityEngine; public class Bullet3 : MonoBehaviour { public GameObject bullet_prefab; public Vector2 pullbackdirection; public Vector3 u1; public Vector3 u2; public Vector3 u3; public Vector3 u4; public Vector3 u5; public GameObject Gunfight; privat...
36.506849
131
0.657786
[ "Apache-2.0" ]
TrangNguyen702/DATN_Client
Assets/Scripts/GameScreen/Bullet3.cs
2,667
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.Windows.Forms { /// <summary> /// Enum defining inclusion of special characters. /// ...
27.181818
71
0.667224
[ "MIT" ]
15835229565/winforms-1
src/System.Windows.Forms/src/System/Windows/Forms/MaskFormat.cs
600
C#
using System; using Vlc.DotNet.Core.Interops.Signatures; namespace Vlc.DotNet.Core.Interops { public sealed partial class VlcManager { public void ParseMediaAsync(VlcMediaInstance mediaPlayerInstance) { if (mediaPlayerInstance == IntPtr.Zero) throw new ArgumentExcep...
29.25
89
0.683761
[ "MIT" ]
CrookedFingerGuy/Vlc.DotNet
src/Vlc.DotNet.Core.Interops/VlcManager.ParseMediaAsync.cs
470
C#
using System; using System.Linq; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.AspNetCore.Authentication.JwtBearer; using System.IdentityModel.Tokens.J...
50.601563
203
0.666203
[ "MIT" ]
VikneshMSFT/ms-identity-javascript-angular-spa-aspnet-webapi-multitenant
Chapter2/TodoListAPI/Startup.cs
6,477
C#
//----------------------------------------------------------------------- // <copyright company="CoApp Project"> // ResourceLib Original Code from http://resourcelib.codeplex.com // Original Copyright (c) 2008-2009 Vestris Inc. // Changes Copyright (c) 2011 Garrett Serack . All rights reserved. // </c...
41.32967
149
0.584951
[ "Apache-2.0" ]
Jaykul/clrplus
Windows.PeBinary/ResourceLib/Accelerator.cs
3,763
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DalSic { public partial class SysUsuario { //Propiedad que utilizaremos para saber si el usuario tiene o no habilitado //el acceso a una determinada pagina public bool IsPageEnabled(string p...
32.484848
114
0.603545
[ "MIT" ]
saludnqn/Empadronamiento
DalSic/SysUsuario.cs
1,074
C#
using DragonSpark.Compose; using Syncfusion.Blazor; using System.Threading.Tasks; namespace DragonSpark.Syncfusion.Queries; sealed class Sort<T> : IQuery<T> { public static Sort<T> Default { get; } = new Sort<T>(); Sort() {} public ValueTask<Parameter<T>> Get(Parameter<T> parameter) { var (request, query, co...
25
89
0.683636
[ "MIT" ]
DragonSpark/Framework
DragonSpark.Syncfusion/Queries/Sort.cs
552
C#
using UnityEngine; using UnityEditor; using System.Collections; using System.Reflection; namespace Igor { public static class InspectableObjectHelper { public static FieldInfo LastControlIdField=typeof(EditorGUI).GetField("lastControlID", BindingFlags.Static|BindingFlags.NonPublic); public static int GetLastCon...
23.243902
133
0.70829
[ "MIT" ]
mikamikem/Igor
Modules/Utilities/NodeGraph/Editor/InspectableObjectHelper.cs
955
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Text; using Silk.NET.Core; using Silk.NET.Core.Native; using Silk.NET.Core.At...
24.176471
71
0.575831
[ "MIT" ]
Ar37-rs/Silk.NET
src/OpenXR/Silk.NET.OpenXR/Structs/Extent2Di.gen.cs
1,233
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Microsoft.SharePoint.Client.NetCore.Runtime { public class ClientObjectPrototype { private ClientQueryInternal m_query; private bool m_childItem; private Dictionary<string, Clie...
34.64375
162
0.567382
[ "MIT" ]
OneBitSoftware/NetCore.CSOM
Microsoft.SharePoint.Client.NetCore/Runtime/ClientObjectPrototype.cs
5,545
C#
/* Copyright 2020 Micah Schuster Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistrib...
29.317073
114
0.637438
[ "BSD-2-Clause" ]
mdschuster/FlappyDroid
Assets/Scripts/GameManager.cs
6,012
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Generic; using Microsoft.AspNetCore.Http; using Xunit; using Yarp.ReverseProxy.Common.Tests; using Yarp.ReverseProxy.Configuration; using Yarp.ReverseProxy.Model; namespace Yarp.ReverseProxy.SessionAffini...
43.572519
178
0.656797
[ "MIT" ]
BennyM/reverse-proxy
test/ReverseProxy.Tests/SessionAffinity/CookieSessionAffinityPolicyTests.cs
5,708
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
33.388889
108
0.539101
[ "MIT" ]
firemanwayne/Blazor.Pwa
BlazorApp/Server/obj/Debug/net5.0/BlazorApp.Pwa.Server.RazorAssemblyInfo.cs
601
C#
using System.Collections.Generic; using ChartJS.NET.Infrastructure; namespace ChartJS.NET.Charts.Doughnut { public class DoughnutChart : BaseChart<List<DoughnutChartData>, DoughnutChartOptions> { private readonly DoughnutChartOptions _chartOptions = new DoughnutChartOptions(); public override...
27.45
89
0.679417
[ "MIT" ]
nikspatel007/ChartJS.NET
ChartJS.NET/Charts/Doughnut/DoughnutChart.cs
551
C#
using OnlineServices.Common.DataAccessHelpers; using OnlineServices.Common.TranslationServices.TransfertObjects; namespace OnlineServices.Common.FacilityServices.TransfertObjects { public class IssueTO : IEntity<int> { public int Id { get; set; } public string Description { get; set; } ...
31.8
65
0.704403
[ "Apache-2.0" ]
EnriqueUbillus/OnlineServices
Cross-Cutting/OnlineServices.Common/FacilityServices/TransfertObjects/IssueTO.cs
479
C#
/******************************************************************** The Multiverse Platform is made available under the MIT License. Copyright (c) 2012 The Multiverse Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
26.497529
94
0.581945
[ "MIT" ]
AustralianDisabilityLimited/MultiversePlatform
client/Movie/Codecs/DirectShowLib/amstream.cs
16,084
C#
using System; using System.Xml.Serialization; using System.Collections; using System.Collections.Generic; using Newtonsoft.Json; using JdSdk.Domain.Website.Order; namespace JdSdk.Domain.Website.Response {  [Serializable] public class OrderCanBuyCityResponse : JdResponse { [JsonProperty("canbuyadd...
19.347826
53
0.669663
[ "Apache-2.0" ]
starpeng/JdSdk2
Source/JdSdk/domain/website/response/OrderCanBuyCityResponse.cs
451
C#
namespace HREngine.Bots { class Pen_EX1_009 : PenTemplate //angrychicken { // wutanfall:/ +5 angriff. public override int getPlayPenalty(Playfield p, Minion m, Minion target, int choice, bool isLethal) { return 0; } } }
24.545455
107
0.611111
[ "MIT" ]
chi-rei-den/Silverfish
penalties/Pen_EX1_009.cs
270
C#
using DevCars.API.Persistence; using DevCars.Domain.Repositories; using MediatR; using Microsoft.EntityFrameworkCore; using System.Threading; using System.Threading.Tasks; namespace DevCars.Application.Commands.DeleteCar { public class DeleteCarCommandHandler : IRequestHandler<DeleteCarCommand, Unit> { ...
28.969697
101
0.699791
[ "MIT" ]
VictorMello1993/DevCars
DevCars.API/DevCars.Application/Commands/DeleteCar/DeleteCarCommandHandler.cs
958
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceMa...
56.138298
256
0.680121
[ "MIT" ]
RecencyBias/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRule.cs
10,554
C#
// Copyright (c) Dominic Schira <domshyra@gmail.com>. All Rights Reserved. using ExcelExtensions.Interfaces; using ExcelExtensions.Interfaces.Export; using ExcelExtensions.Models; using OfficeOpenXml; using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Li...
43.563725
158
0.568246
[ "MIT" ]
domshyra/ExcelExtensions
ExcelExtensions/Providers/Export/Exporter.cs
8,889
C#
using System.Threading.Tasks; using System.Web.Http; using System.Web.Http.Description; using Bookify.API.Attributes; using Bookify.Common.Commands.Auth; using Bookify.Common.Filter; using Bookify.Common.Models; using Bookify.Common.Repositories; namespace Bookify.API.Controllers { /// <summary> /// /// ...
41.490196
132
0.633743
[ "MIT" ]
Falgantil/Bookify
Bookify/Bookify.API/Controllers/BookFeedbackController.cs
4,234
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Xunit; namespace Examples.MediaApi.Domain.Tests { public class MediaRepositoryTests { [Fact] public async Task GetAlbums_MapsData() { ...
33.016949
99
0.602156
[ "MIT" ]
HeyJoel/Examples.MediaApi
Examples.MediaApi.Domain.Tests/MediaRepositoryTests.cs
1,950
C#
using System; namespace AIR.SDK.Workflow.Tests.Data { [Serializable] public class TInput { public string Value { get; set; } } [Serializable] public class TOutput { public string Value { get; set; } } [Serializable] public class TActivityInput { public string Value { get; set; } } [Serializable]...
13.62069
37
0.681013
[ "Apache-2.0" ]
Bassist067/AIR.SDK
AIR.SDK.Workflow.Tests/Data/GlobalSampleObjects.cs
397
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("YellowPages.Entities")] [assembly: Assemb...
39.742857
84
0.746945
[ "MIT" ]
abusalehnayeem/YellowPages
YellowPages.Entities/Properties/AssemblyInfo.cs
1,394
C#
using Ordering.Domain.Common; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ordering.Domain.Entities { public class Order: EntityBase { public string UserName { get; set; } public decimal TotalPrice { get; set; } ...
18.333333
47
0.607487
[ "MIT" ]
Azilen/gRPC-API-Performance-Improvement
src/Services/Ordering/Ordering.Domain/Entities/Order.cs
937
C#
using UnityEngine; public class ShapePattern : MonoBehaviour { public enum ShapeType { Sphere, Cube }; public enum Operation { None, Blend, Cut, Mask } public ShapeType shapeType; public Operation operation; public Color colour = ...
19.612245
99
0.541103
[ "MIT" ]
Sharanych/UnityShaders
Assets/Scripts/Raymarching/ComplexRaymarching/ShapePattern.cs
961
C#
using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Text; namespace Backend.Services.Apis { public abstract class BaseController : ControllerBase { } }
18.166667
58
0.720183
[ "MIT" ]
mustaphakd/epidemie
src/backend/Backend.Services/Apis/BaseController.cs
220
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("Ev...
37.972973
84
0.746619
[ "MIT" ]
wanjizheng/ESISharp
EveSSOAuthRouter/Properties/AssemblyInfo.cs
1,408
C#
using System; public class InfinityHarvester : Harvester { private const int OreOutputDivider = 10; private double durability; public InfinityHarvester(int id, double oreOutput, double energyRequirement) : base(id, oreOutput, energyRequirement) { this.OreOutput /= OreOutputDivider; } ...
24.421053
121
0.68319
[ "MIT" ]
Shtereva/CSharp-OOP-Advanced
Exam Preparation II/BrokenSkeleton/Structure_Skeleton/Entities/Harvesters/InfinityHarvester.cs
466
C#
/* Haz un programa que calcule el resto de la división de 577 entre 13. Haz la división a mano y comprueba el resultado. */ // Por Franco (...) using System; class Ejercicio4 { static void Main() { int resultado; resultado = 577 % 13; Console.WriteLine(resultado); } }
14.947368
68
0.679577
[ "MIT" ]
ncabanes/sv2021-programming
tema01-contactoConCSharp/004-Modulo.cs
286
C#
using System.Collections.Generic; using System.Threading.Tasks; using Newtonsoft.Json; namespace Citrina { public class WallPostResponse { /// <summary> /// Created post ID. /// </summary> public int? PostId { get; set; } } }
19.066667
42
0.573427
[ "MIT" ]
khrabrovart/Citrina
src/Citrina/gen/Responses/Wall/WallPostResponse.cs
286
C#
using System; using System.ComponentModel; using EfsTools.Attributes; using EfsTools.Utils; using Newtonsoft.Json; namespace EfsTools.Items.Nv { [Serializable] [NvItemId(5128)] [Attributes(9)] public class Bc0HdrP2RiseFallOff { [ElementsCount(16)] [ElementType("uint8")...
19.666667
42
0.600484
[ "MIT" ]
HomerSp/EfsTools
EfsTools/Items/Nv/Bc0HdrP2RiseFallOffI.cs
413
C#
using System.IO; using CP77.CR2W.Reflection; using FastMember; using static CP77.CR2W.Types.Enums; namespace CP77.CR2W.Types { [REDMeta] public class gameuiCharacterReplicaInitializedEvent : redEvent { public gameuiCharacterReplicaInitializedEvent(CR2WFile cr2w, CVariable parent, string name) : base(c...
23.4
125
0.754986
[ "MIT" ]
Eingin/CP77Tools
CP77.CR2W/Types/cp77/gameuiCharacterReplicaInitializedEvent.cs
337
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...
39.741935
206
0.643872
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/LexModelBuildingService/Generated/Model/Internal/MarshallTransformations/GetUtterancesViewResponseUnmarshaller.cs
4,928
C#
using System; using System.Collections.Generic; using System.Text; namespace USFMToolsSharp.Models.Markers { /// <summary> /// Parallel passage reference(s) /// </summary> public class RMarker : Marker { public override string Identifier => "r"; public override List<Typ...
21.947368
73
0.594724
[ "MIT" ]
BryanHo10/USFMToolsSharp
USFMToolsSharp/Models/Markers/RMarker.cs
419
C#
using System; using System.Collections.Generic; using System.Data; namespace Norm { public partial class Norm { public IAsyncEnumerable<(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> ReadAsync<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(string command) { var t1 = TypeCache<T1>.G...
66.789474
215
0.567437
[ "MIT" ]
vb-consulting/Norm.net
Norm/ReadAsync/NormReadAsync11.cs
16,499
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("Con...
38.702703
84
0.752095
[ "MIT" ]
NickStrupat/ConvNetSharp
src/ConvNetSharp.Volume/Properties/AssemblyInfo.cs
1,435
C#
using Backend.Fx.Environment.Authentication; using Xunit; namespace Backend.Fx.Tests.Environment.Authentication { public class TheSystemIdentity { [Fact] public void HasAuthenticationTypeSystemInternal() { Assert.Equal("system internal", new SystemIdentity().AuthenticationT...
23.653846
85
0.601626
[ "MIT" ]
marcwittke/Backend.Fx
tests/Backend.Fx.Tests/Environment/Authentication/TheSystemIdentity.cs
617
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Abp.Application.Services.Dto; using Abp.Authorization.Roles; using Abp.AutoMapper; using DoAspnetboilerplateLdap.Authorization.Roles; namespace DoAspnetboilerplateLdap.Roles.Dto { public class RoleDto : EntityDto<int> { ...
29.074074
60
0.690446
[ "MIT" ]
d-oit/DoAspnetboilerplateLdap
aspnet-core/src/DoAspnetboilerplateLdap.Application/Roles/Dto/RoleDto.cs
785
C#
using System.IO.Abstractions; using SJP.Schematic.Core; namespace SJP.Schematic.DataAccess { /// <summary> /// Defines generator for creating source code to work with a database entity. /// </summary> public interface IDatabaseEntityGenerator { /// <summary> /// Gets the...
34.45
84
0.638607
[ "MIT" ]
sjp/Schematic
src/SJP.Schematic.DataAccess/IDatabaseEntityGenerator.cs
691
C#
using System.Runtime.InteropServices; namespace Lunar.Native.Structs { [StructLayout(LayoutKind.Explicit, Size = 40)] internal readonly struct LdrpTlsEntry32 { [FieldOffset(0x0)] internal readonly ListEntry32 EntryLinks; [FieldOffset(0x8)] private readonly ImageTlsDirectory...
29.95
100
0.646912
[ "MIT" ]
wisdark/Lunar
Lunar/Native/Structs/LdrpTlsEntry.cs
1,200
C#
using System; namespace PM.BO.Exceptions { public class TKUSB_INIT_EPNUM_ERR : Exception { private const string _message = "Error initializing the USB endpoint."; private const short Code = -334; public TKUSB_INIT_EPNUM_ERR() : base(_message) { } public TKUSB_INIT_EPNUM_ERR(string message) : base (_messag...
24.866667
108
0.731903
[ "BSD-2-Clause" ]
addixon/ErgCompetePM
PM.BO/Exceptions/TKUSB_INIT_EPNUM_ERR.cs
375
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
50.288462
153
0.640535
[ "MIT" ]
Aliases/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/IAgreementAcceptanceReferenceRequest.cs
2,615
C#
using System; namespace Game { class Program { static void Main(string[] args) { int capacity = int.Parse(Console.ReadLine()); Dictionary<String, CapacityList> players = new Dictionary<string, CapacityList>(); string command = ""; do ...
38.422535
94
0.399194
[ "MIT" ]
CaptainUltra/IT-Career-Course
Year 1/Module 4 - Introduction to Algorithms and Data Structures/ExamPrep/Game/Program.cs
2,730
C#
using System; using System.Collections.Generic; using Alipay.AopSdk.Core.Response; namespace Alipay.AopSdk.Core.Request { /// <summary> /// AOP API: alipay.commerce.data.monitordata.sync /// </summary> public class AlipayCommerceDataMonitordataSyncRequest : IAopRequest<AlipayCommerceDataMonitordataSync...
23.917431
114
0.608746
[ "MIT" ]
leixf2005/Alipay.AopSdk.Core
Alipay.AopSdk.Core/Request/AlipayCommerceDataMonitordataSyncRequest.cs
2,623
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc.ModelBinding; using Newtonsoft.Json.Linq; namespace StatCan.OrchardCore.Queries.GraphQL.ViewModels { public class AdminQueryViewModel { public string DecodedQuery { get; set; } public string Parame...
24.72
90
0.665049
[ "MIT" ]
StatCan/StatCan.OrchardCore
src/Modules/StatCan.OrchardCore.Queries.GraphQL/ViewModels/AdminQueryViewModel.cs
618
C#
using Neo.Lux.Cryptography; using Neo.Lux.VM; using Neo.Lux.Core; using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Numerics; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Reflection;...
30.730129
188
0.426045
[ "MIT" ]
CityOfZion/neo-lux
Neo.Lux/Utils/LuxUtils.cs
16,627
C#
using UnityEngine; using System.Collections; /** * This class will help destruct objects after a certain time. */ public class TimedObjectDestructor : MonoBehaviour { public float timeOut = 1.0f; public bool detachChildren = false; // Use this for initialization private void Awake () { // invoke the Destroy...
23.066667
99
0.721098
[ "MIT" ]
Yunxiang-Li/Unity3D_Roller-Ball-Game
Assets/Scripts/TimedObjectDestructor.cs
694
C#
using System; using System.Diagnostics.CodeAnalysis; namespace ReverseGeocode.Processors { internal class GpsCoordinate : IEquatable<GpsCoordinate> { public double Latitude { get; set; } public double Longitude { get; set; } public override bool Equals(object obj) { ...
22.375
59
0.574022
[ "MIT" ]
AerisG222/ReverseGeocode
src/ReverseGeocode/Processors/GpsCoordinate.cs
716
C#
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * 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 t...
56.77193
199
0.708282
[ "MIT" ]
DamirAinullin/AlphaFS
src/AlphaFS/Filesystem/Path Class/Path.GetSuffixedDirectoryNameWithoutRootTransacted.cs
3,236
C#
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. // The software and associated documentation supplied hereunder are the // prop...
30.185897
157
0.531535
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy-Archive/Krypton-NET-5.470
Source/Krypton Components/ComponentFactory.Krypton.Toolkit/Palette Base/PaletteBack/PaletteBackColor1.cs
4,712
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Configuration; using Library.API.Services; using Library.API.Entities; using Microsoft.EntityFrameworkCore; using Library.API.Helpers; u...
39.819444
121
0.616672
[ "MIT" ]
codeyu/asp-dot-net-core-restful-api-building
8-asp-dot-net-core-restful-api-building-m8-exercise-files/project-json-based/end/Library/src/Library.API/Startup.cs
5,736
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.Concurrent; using System.Collections.Generic; using System.Collections.Immutable; using Sy...
47.437751
153
0.663986
[ "MIT" ]
Dean-ZhenYao-Wang/roslyn
src/EditorFeatures/DiagnosticsTestUtilities/Diagnostics/AbstractDiagnosticProviderBasedUserDiagnosticTest.cs
11,814
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...
31.116667
107
0.611141
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Generated/Models/KubernetesIPConfiguration.cs
1,867
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace StateMachineDesigner.Runtime { public class Transition { private class TrueCondition : ICondition { bool ICondition.Test() { return true; ...
20.784314
73
0.49717
[ "Apache-2.0" ]
xtaieer/StateMachineDesigner
Assets/Plugins/StateMachineDesigner/Runtime/Transition.cs
1,062
C#
using System.Threading; using System.Threading.Tasks; using TypingRealm.Profiles.Activities; using TypingRealm.Profiles.Api.Client; namespace TypingRealm.RopeWar.Adapters { // TODO: Consider getting rid of this adapter now that we have ICharactersClient. public sealed class CharacterStateServiceAdapter : ICha...
36.137931
138
0.716603
[ "MIT" ]
ewancoder/typingrealm
TypingRealm.RopeWar/Adapters/CharacterStateServiceAdapter.cs
1,050
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
36.466667
152
0.566728
[ "MIT" ]
gabi-sudo/Memory-Game
Memory Game/Properties/Settings.Designer.cs
1,096
C#
namespace NewsSystem.Services.Sources.BgInstitutions { using System; using System.Collections.Generic; using System.Globalization; using AngleSharp.Dom; using NewsSystem.Common; /// <summary> /// Комисия за противодействие на корупцията и за отнемане на незаконно придобитото имущество. ...
38.893939
109
0.615115
[ "MIT" ]
eognianov/359.news
src/Services/NewsSystem.Services.Sources/BgInstitutions/CiafGovernmentBgSource.cs
2,647
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
41.583333
80
0.647295
[ "MIT" ]
georgivv7/C-Sharp-Fundamentals-SoftUni
ObjectsClasses-Lab/02. BigFactorial/obj/Debug/netcoreapp3.1/02. BigFactorial.AssemblyInfo.cs
998
C#
using Microsoft.Phone.Controls; namespace Mvvm.Views { public partial class CountryDetails : PhoneApplicationPage { public CountryDetails() { InitializeComponent(); } protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) ...
21.470588
95
0.583562
[ "MIT" ]
SevdanurGENC/WindowsIsletimSistemleriTarihcesi
Mvvm/Views/CountryDetails.xaml.cs
367
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
47.215805
139
0.602356
[ "MIT" ]
AlanFlorance/azure-powershell
src/AnalysisServices/AnalysisServices.Test/InMemoryTests/DataPlaneCommandTests.cs
15,208
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; namespace IcecatSharp.Infrastructure { public static class RequestEngine { private static void Cr...
36.923077
131
0.546759
[ "MIT" ]
vinhch/IcecatSharp
src/IcecatSharp/Infrastructure/RequestEngine.cs
4,322
C#
using System; using System.Diagnostics; namespace CORE_NAME { public class MathEx { public static bool Add(ref long aRef, long b) { long a = aRef; C.ASSERTCOVERAGE(a == 0); C.ASSERTCOVERAGE(a == 1); C.ASSERTCOVERAGE(b == -1); ...
33.773333
74
0.409791
[ "MIT" ]
BclEx/GpuEx
src/Runtime.net/Runtime+Math.cs
2,533
C#
namespace Projector.Specs { using System; using NUnit.Framework; [TestFixture] public class NameRestrictionTests { // Other tests in xxxxCutTests [Test] public void OnNullTypeCut() { Assert.Throws<ArgumentNullException> ( () ...
23.615385
91
0.5057
[ "Apache-2.0" ]
sharpjs/Projector
Projector.Tests/Specs/Restrictions/NameRestrictionTests.cs
1,230
C#
using UnityEngine; public abstract class Pig : MonoBehaviour { private EnemiesHolder _enemiesHolder; protected bool IsActive; private void Awake() { _enemiesHolder = transform.parent.GetComponent<EnemiesHolder>(); } private void OnEnable() { _enemiesHolder.RoomChangeStat...
19.206897
72
0.667864
[ "MIT" ]
wladweb/Kings-Pigs
Assets/Scripts/Pigs/Pig.cs
559
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using Azure.Core; namespace Azure.ResourceManager.Network.Models { /// <summary> VirtualHub route. </summary> public partial class VirtualH...
32.486486
88
0.655574
[ "MIT" ]
AikoBB/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualHubRoute.cs
1,202
C#
using System; using System.Collections.Generic; using System.Data; using System.Linq; using LanguageExt; namespace GoDaddy.Asherah.AppEncryption.Persistence { /// <summary> /// Provides a volatile implementation of <see cref="IMetastore{T}"/> for values using a /// <see cref="System.Data.DataTable"/>. NOTE...
34.881188
107
0.493613
[ "MIT" ]
aka-bo/asherah
csharp/AppEncryption/AppEncryption/Persistence/InMemoryMetastoreImpl.cs
3,523
C#
using System; namespace CrystalQuartz.Web.DemoOwin.Areas.HelpPage { /// <summary> /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class. /// </summary> public class TextSample { public TextSample(string text) ...
24.378378
140
0.538803
[ "MIT" ]
DHindemith/CrystalQuartz
src/CrystalQuartz.Web.DemoOwin/Areas/HelpPage/SampleGeneration/TextSample.cs
902
C#
using System.IO; namespace Symlinker { public class TargetNames { public TargetNames(string relativePath, string parentRootPath) { RelativePath = relativePath; ParentRootPath = parentRootPath; } public string RelativePath { get; set; } public s...
19.703704
70
0.548872
[ "Apache-2.0" ]
fengyuan213/symlinker
Symlinker/TargetNames.cs
534
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: AssemblyTi...
39
85
0.732194
[ "Apache-2.0" ]
Anupam-/fubumvc-contrib
samples/FubuTask/src/Framework/Properties/AssemblyInfo.cs
1,407
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PowerAppsPortalsFileSync.Model { public class WebSite { [JsonProperty("adx_websiteid")] public Guid WebSiteId { get; set; } [JsonPropert...
20.210526
43
0.682292
[ "MIT" ]
joriskalz/power-apps-portal-file-sync
PowerAppsPortalsFileSync/PowerAppsPortalsFileSync/Model/WebSite.cs
386
C#
using System; using System.Threading; using System.Threading.Tasks; using static Dna.FrameworkDI; namespace Dna { /// <summary> /// <para> /// Provides a thread-safe mechanism for starting and stopping the execution of an task /// that can only have one instance of itself running regardless of...
32.645933
131
0.515756
[ "MIT" ]
BowenA96/dna-framework
Source/Dna.Framework/Tasks/SingleTaskWorker.cs
6,825
C#
using System; using System.Linq; using System.Reactive.Linq; using System.Threading.Tasks; using DynamicData.Kernel; namespace DynamicData.Cache.Internal { internal class TransformAsync<TDestination, TSource, TKey> { private readonly IObservable<IChangeSet<TSource, TKey>> _source; private read...
40.732143
291
0.571533
[ "MIT" ]
Didovgopoly/DynamicData
DynamicData/Cache/Internal/TransformAsync.cs
6,845
C#
using Windows.UI.Xaml.Controls; using SamplesApp.Windows_UI_Xaml_Controls.Models; using Uno.UI.Samples.Controls; namespace SamplesApp.Windows_UI_Xaml_Controls.ListView { [SampleControlInfo("ListView", "HorizontalListViewImage", typeof(ImageListViewViewModel))] public sealed partial class HorizontalListViewImage : Us...
25.75
91
0.808252
[ "Apache-2.0" ]
06needhamt/uno
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/ListView/HorizontalListViewImage.xaml.cs
412
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.Buffers; using System.ComponentModel; using System.Diagnostics; using System.Runtime.Comp...
38.586636
152
0.610501
[ "MIT" ]
CommunityToolkit/dotnet
CommunityToolkit.HighPerformance/Memory/Memory2D{T}.cs
34,072
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using DreamWallHub.Infrastructure.Data.Identity; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Ext...
27.847826
101
0.636222
[ "MIT" ]
StrikeITBG/DreamWallHub
DreamWallHub/DreamWallHub/Areas/Identity/Pages/Account/Logout.cshtml.cs
1,283
C#
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: example.proto #pragma warning disable 1591 #region Designer generated code using System; using System.Threading; using System.Threading.Tasks; using grpc = global::Grpc.Core; namespace Examples.GrpcConfiguration.Models { public static partial cl...
54.212121
297
0.752562
[ "MIT" ]
mxProject/GrpcConfiguration
source/Examples.GrpcConfiguration.Models/Models/ExampleGrpc.cs
5,367
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
37.15625
128
0.579479
[ "MIT" ]
Diavell/ExpenseApp
ExpenseApplication/ExpenseApplication/Models/User.cs
1,189
C#
using System; //Write a program that enters from the console a positive integer n and prints all the numbers from 1 to n, on a single line, separated by a space. //Examples: //n output //3 1 2 3 //5 1 2 3 4 5 class Numbersfrom1ToN { static void Main() { Console.WriteLine("Enter a number for N:"); ...
21.818182
147
0.583333
[ "MIT" ]
ivantchev/Loops-Homework
01_Problem_Numbersfrom1ToN/01_Problem_Numbersfrom1ToN.cs
482
C#