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
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("Co...
38.135135
84
0.744862
[ "MIT" ]
bun2fun/CSharp2
1st Arrays/Compare char arrays/Properties/AssemblyInfo.cs
1,414
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. // // // This file was generated, please do not edit it directly. // // Please see MilCodeGen.html for more informat...
32.448276
157
0.507235
[ "MIT" ]
00mjk/wpf
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Generated/RotateTransform.cs
12,233
C#
using UnityEngine; using zapnet; public interface IProjectileTarget { bool OnProjectileHit(BaseProjectile projectile, NetworkRaycastHit hitbox); }
19.125
78
0.816993
[ "MIT" ]
BlackPhoenix134/zapnet
Demo/Zapnet/Assets/Zapnet/Demo/Entities/Tags/IProjectileTarget.cs
155
C#
using System; using System.Threading.Tasks; #if UWP using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; #else using System.Windows; using System.Windows.Controls; #endif namespace Xamarin.CommunityToolkit.UI.Views.Helpers { class SnackbarLayout : Grid { public SnackbarLayout(string message, string actionButton...
24.404255
83
0.694856
[ "MIT" ]
AbuMandour/XamarinCommunityToolkit
XamarinCommunityToolkit/Views/Snackbar/Helpers/SnackbarLayout.uwp.wpf.cs
1,149
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiInterface(nativeType: typeof(IWafv2WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString), fullyQualifiedName: "aws.Wafv2WebAclRuleStatementAndS...
61
330
0.859016
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/IWafv2WebAclRuleStatementAndStatementStatementNotStatementStatementNotStatementStatementByteMatchStatementFieldToMatchQueryString.cs
1,220
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Windows.Forms; namespace RimworldConflictChecker { public class Program { public static int Formrc { get; set; } public static string[] Allargs { get; set; } //public static bool incdisabled = fa...
42.087912
163
0.507572
[ "MIT" ]
Slayd7/RimworldConflictChecker
RimworldConflictChecker/Program.cs
7,662
C#
using CadastroPessoa.DATA.Interfaces; using CadastroPessoa.DATA.Models; using System; using System.Collections.Generic; using System.Text; namespace CadastroPessoa.DATA.Repositories { public class RepositoryPessoaTelefone : RepositoryBase<PessoaTelefone>, IRepositoryPessoaTelefone { public Repository...
22.722222
101
0.753056
[ "MIT" ]
DanSmithh/ProjetoCrudCadastroDeUsuariosWeb
CadastroPessoa.DATA/Repositories/RepositoryPessoaTelefone.cs
411
C#
using Newtonsoft.Json; using JsonMasking; using System; using Xunit; namespace JsonMasking.Tests { public static class JsonMaskingTests { [Fact] public static void MaskFields_Should_Mask_No_Field_With_Empty_Blacklist() { // arrange var obj = new { ...
33.547855
547
0.431185
[ "MIT" ]
SenirSales/jsonmasking
JsonMasking.Tests/JsonMaskingTests.cs
10,165
C#
using Newtonsoft.Json; namespace ImageDL.Classes.ImageDownloading.Instagram.Models { /// <summary> /// Information about where a post was taken. /// </summary> public sealed class InstagramLocation { /// <summary> /// Whether the location has a page dedicated to it. /// </summary> [JsonProperty("has_publ...
24.375
77
0.634872
[ "MIT" ]
advorange/ImageDL
src/ImageDL.Core/Classes/ImageDownloading/Instagram/Models/InstagramLocation.cs
977
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...
44.318841
100
0.634075
[ "MIT" ]
SpillChek2/azure-powershell
src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.ServiceClientAdapter/ServiceClientAdapter.cs
2,992
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using UserManager.Implementation.Exception; namespace Web.Tools { public class BusinessExceptionFilter : ExceptionFilterAttribute { public override void OnException(ExceptionContext context) { var exception = c...
28.954545
67
0.618524
[ "MIT" ]
kleevs/user-manager-api
src/Web/Tools/BusinessExceptionFilter.cs
639
C#
namespace FuncSharp { public static class NullableExtensions { /// <summary> /// Turns the specified value into an option. /// </summary> public static Option<A> ToOption<A>(this A? value) where A : struct { return Option.Create(value); } ...
21.866667
58
0.530488
[ "MIT" ]
JakubLinhart/FuncSharp
src/FuncSharp/Extensions/NullableExtensions.cs
330
C#
using System; using System.Collections.Generic; using Avalonia.VisualTree; namespace Avalonia.Rendering { public class ZIndexComparer : IComparer<IVisual> { public static readonly ZIndexComparer Instance = new ZIndexComparer(); public int Compare(IVisual x, IVisual y) => (x?.ZIndex ?? 0).Comp...
25.071429
95
0.700855
[ "MIT" ]
BOBO41/Avalonia
src/Avalonia.Visuals/Rendering/ZIndexComparer.cs
353
C#
namespace AptTool.Workspace { public class InstallScript { public InstallScript() { Name = "script.sh"; } public string Directory { get; set; } public string Name { get; set; } } }
18.714286
45
0.492366
[ "MIT" ]
adfernandes/apt-tool
src/AptTool/Workspace/InstallScript.cs
262
C#
using UnityEngine; using System; public abstract class BossPattern { protected Action OnPatternFinished; protected PhaseAI boss; public virtual void SetBoss(PhaseAI boss) { this.boss = boss; } public void ExecutePattern(Action action) { OnPatternFinished = action; Execut...
16.323529
61
0.675676
[ "Apache-2.0" ]
Eresia/Harpooneers
Assets/Scripts/Gameplay/Boss/BossPattern.cs
557
C#
var builder = WebApplication.CreateBuilder(); builder.Services.AddRazorPages(); var app = builder.Build(); app.MapRazorPages(); app.Run();
17.625
45
0.744681
[ "MIT" ]
BearerPipelineTest/practical-aspnetcore
projects/razor-pages/razor/razor-1/Program.cs
141
C#
using CS.Hardware.BooleanLogic.Gates; using CS.Hardware.BooleanLogic.Multiplexers; using System; using System.Collections.Generic; using System.Text; namespace CS.Hardware.SequentialLogic { public class RAM8 { private const int BITS = 16; private const int SIZE = 8; private const int S...
29.191919
151
0.487197
[ "MIT" ]
larsrotgers/computing-system
CS.Hardware/SequentialLogic/RAM8.cs
2,892
C#
using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using DotNetNote.Models; namespace DotNetNote.Controllers { [Route("api/[controller]")] public class NoteCommentServiceController : Controller { private INoteCommentRepository _repository; public NoteCommentServiceControlle...
23.52
78
0.64966
[ "MIT" ]
VisualAcademy/AspNetCoreBook
DotNetNote/src/DotNetNote/Controllers/NoteCommentServiceController.cs
608
C#
using System.Collections.Generic; namespace Tx.DataStructureExersises.Stack { interface ISimpleStack<T> : IEnumerable<T> { T Peek(); T Pop(); void Push(T item); void Clear(); int Count { get; } } }
18
46
0.56746
[ "MIT" ]
Telliax/Tx.DataStructureExercises
Stack/ISimpleStack.cs
254
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...
46.519231
234
0.622158
[ "MIT" ]
3quanfeng/azure-powershell
src/Automation/Automation/Cmdlet/RemoveAzureAutomationCertificate.cs
2,370
C#
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// <summary> /// AOP API: alipay.eco.eprint.order.cancel /// </summary> public class AlipayEcoEprintOrderCancelRequest : IAopRequest<AlipayEcoEprintOrderCancelResponse> ...
25.790323
101
0.564103
[ "Apache-2.0" ]
554393109/alipay-sdk-net-all
AlipaySDKNet.Standard/Request/AlipayEcoEprintOrderCancelRequest.cs
3,234
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using NBitcoin.DataEncoders; using Newtonsoft.Json; using UnKnownKVMap = System.Collections.Generic.SortedDictionary<byte[], byte[]>; using NBitcoin.BuilderExtensions; namespace NBitcoin { static class PSBTConstants { public static...
32.89533
191
0.690523
[ "MIT" ]
Soho-Rab/NBitcoin
NBitcoin/BIP174/PartiallySignedTransaction.cs
40,856
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.Collections.Immutable; using System.IO; using System.L...
40.182469
180
0.601905
[ "MIT" ]
nikitaodnorob/pl-roslyn
src/Test/Utilities/Portable/CommonTestBase.cs
22,464
C#
/* Copyright (c) 2017, Nokia 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 list of conditions and the...
23.781145
532
0.653547
[ "BSD-3-Clause" ]
nuagenetworks/vspk-csharp
vspk/vspk/NetconfManager.cs
7,063
C#
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
35.454545
108
0.684615
[ "Apache-2.0" ]
Mattlk13/google-cloud-dotnet
apis/Google.Cloud.RecommendationEngine.V1Beta1/Google.Cloud.RecommendationEngine.V1Beta1/PredictionServiceResourceNames.g.cs
1,170
C#
using System; namespace NSubstitute.Core { class ParameterInfoFromType : IParameterInfo { private readonly Type _parameterType; public ParameterInfoFromType(Type parameterType) { _parameterType = parameterType; } public Type ParameterType { ...
18.352941
56
0.512821
[ "BSD-3-Clause" ]
Erwinvandervalk/NSubstitute
Source/NSubstitute/Core/ParameterInfoFromType.cs
626
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 Microsoft.Win32.SafeHandles; using System.ComponentModel; using System.Diagnostics; using System.Runtime.Inter...
32.6
165
0.555808
[ "MIT" ]
AArnott/runtime
src/libraries/System.Security.Principal.Windows/src/System/Security/Principal/Win32.cs
10,106
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.862903
202
0.632814
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/WAFV2/Generated/Model/CustomResponse.cs
4,943
C#
using System; using System.Collections; using System.Runtime.InteropServices; using NUnit.Framework; using UnityEditor; using UnityEngine; using UnityEngine.TestTools; namespace Unity.WebRTC.RuntimeTest { [TestFixture, ConditionalIgnore("IgnoreHardwareEncoderTest", "Ignored hardware encoder test.")] class Nati...
43.335484
130
0.676716
[ "Apache-2.0" ]
sokuhatiku/com.unity.webrtc
Tests/Runtime/NativeAPITest.cs
13,434
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Ethereum.Utilities; using System.Text; namespace Ethereum.Test { [TestClass] public class CompactEncoderTest { private readonly static byte T = 16; // terminator [TestMethod] public void TestCompactEncodeOne()...
38.431579
98
0.570529
[ "MIT" ]
etherchain/cs-ethereum
Ethereum.Test/CompactEncoderTest.cs
3,653
C#
// The MIT License(MIT) // // Copyright(c) 2021 Alberto Rodriguez Orozco & LiveCharts Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including withou...
40.912609
202
0.618748
[ "MIT" ]
powerpdw/LiveCharts2
src/skiasharp/LiveChartsCore.SkiaSharp.Xamarin.Forms/CartesianChart.xaml.cs
32,773
C#
using HarmonyLib; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Verse; namespace KeepColorsSeparate { public class KeepColorsSeparateMod: Mod { public KeepColorsSeparateMod(ModContentPack content): ba...
23.666667
75
0.714286
[ "MIT" ]
PeteTimesSix/KeepColorsSeparate
Source/KeepColorsSeparate/KeepColorsSeparate/KeepColorsSeparateMod.cs
499
C#
using Microsoft.AspNetCore.Identity; namespace ASPNETCoreIdentitySample.Services.Identity { /// <summary> /// More info: http://www.dotnettips.info/post/2582 /// </summary> public class CustomIdentityErrorDescriber : IdentityErrorDescriber { public override IdentityError ConcurrencyFailure...
31.442308
127
0.530428
[ "Apache-2.0" ]
majidbigdeli/Iddentity
src/ASPNETCoreIdentitySample.Services/Identity/CustomIdentityErrorDescriber.cs
7,231
C#
using GalaSoft.MvvmLight; using System.Threading; using Tuxblox.Model; namespace Tuxblox.ViewModel { /// <summary> /// This class contains properties that the main View can data bind to. /// <para> /// See http://www.mvvmlight.net /// </para> /// </summary> public class LoadingViewModel : ...
25.385542
80
0.497864
[ "MIT" ]
voodoo123x/TuxBlox
Tuxblox/ViewModel/LoadingViewModel.cs
2,109
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...
30.416667
81
0.623014
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/RecoveryServices/V20210401/Outputs/MabContainerExtendedInfoResponse.cs
1,825
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using Microsoft.MixedReality.Toolkit.Utilities; using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; namespace...
44.697233
275
0.632652
[ "MIT" ]
MIT-Reality-Hack-2020/FocusField
handtest2/Assets/MixedRealityToolkit.Services/InputSystem/MixedRealityInputSystem.cs
82,377
C#
using System.Windows; namespace Millarow.Presentation.WPF.Input { public class MoverPerformManipulationEventArgs : MoverManipulationEventArgs { public MoverPerformManipulationEventArgs(UIElement sourceElement, RectManipulations manipulation, Vector sizeVector, Vector positionVector) : base...
30.5
147
0.695811
[ "MIT" ]
mcculic/millarowframework
src/Millarow.Presentation.WPF/Input/MoverPerformManipulationEventArgs.cs
551
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; namespace Microsoft.AspNetCore.SignalR.Tests { public static class ExceptionMessageExtensions { public static string GetLocalizationSafeMessage(this Ar...
34.346154
93
0.634938
[ "MIT" ]
48355746/AspNetCore
src/SignalR/common/testassets/Tests.Utils/ExceptionMessageExtensions.cs
893
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
13.437795
78
0.556076
[ "Apache-2.0" ]
fossabot/aliyun-openapi-net-sdk
aliyun-net-sdk-slb/Slb/Model/V20140515/DescribeLoadBalancerHTTPListenerAttributeResponse.cs
8,533
C#
using GalaSoft.MvvmLight.Views; using System; using System.Collections.Generic; using System.Text; using System.Linq; using Xamarin.Forms; namespace Vector.Explorer.ViewModel { public class NavigationService : INavigationService { INavigation _nav; static Dictionary<string, Type> _pages; public NavigationSe...
18.841463
72
0.671845
[ "MIT" ]
zaront/Vector
Vector.Explorer/Vector.Explorer/ViewModel/NavigationService.cs
1,547
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Roslyn.Compilers.CSharp.Emit { internal sealed class GenericMethodParameterDefinition : GenericParameterDefinition, Microsoft.Cci.IGenericMethodParameter { public GenericMethodParameterDefinition(Module mo...
30.01626
145
0.642741
[ "Apache-2.0" ]
enginekit/copy_of_roslyn
Src/Compilers/CSharp/Source/Emitter/GenericMethodParameterDefinition.cs
3,694
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...
28.606061
105
0.589689
[ "Apache-2.0" ]
Melvinerall/aws-sdk-net
sdk/src/Services/Amplify/Generated/Model/CreateWebhookRequest.cs
2,832
C#
//----------------------------------------------------------------------- // <copyright file="MixinPublicDataMembersAreInjectedIntoTarget.cs" company="Copacetic Software"> // Copyright (c) Copacetic Software. // <author>Philip Pittle</author> // <date>Wednesday, January 29, 2014 10:57:24 PM</date> // Licensed un...
39.810651
123
0.517687
[ "Apache-2.0" ]
ppittle/pMixins
pMixins.CodeGenerator.Tests/IntegrationTests/CompileTests/BasicTests/MixinPublicDataMembersAreInjectedIntoTarget.cs
6,730
C#
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Reflection; namespace StudentRegistrationDemo2.Areas.HelpPage { /// <summary> /// This class will create an object of a given type and pop...
42.776316
261
0.553471
[ "MIT" ]
prateekparallel/StudentRegistrationDemo2
StudentRegistrationDemo2/Areas/HelpPage/SampleGeneration/ObjectGenerator.cs
19,506
C#
using System; namespace PowerBlocks.Utilities { /// <summary> /// Contains an assortment of helper methods for the objects. /// </summary> public static class ObjectHelper { /// <summary> /// Safefully dispose a disposable object. If the object is null, then the method will safely return /// with no except...
22.625
102
0.683241
[ "MIT" ]
RaifordBrookshire/NetPowerBlocks
Source/PowerBlocksSolution/PowerBlocks/Utilities/ObjectHelper.cs
545
C#
/* * Copyright 2018 Mikhail Shiryaev * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
28.318681
108
0.61234
[ "Apache-2.0" ]
carquiza/scada
ScadaWeb/ScadaScheme/PlgSchBasicComp/AppCode/SchBasicComp/ColorCondition.cs
2,735
C#
using System; using UnityEditor; using UnityEngine; using UnityEngine.UIElements; namespace Unity.DeviceSimulator { internal class DeviceView : IMGUIContainer { private Material m_PreviewMaterial; private Material m_DeviceMaterial; private Matrix4x4 m_DeviceToView; private Matri...
34.798005
208
0.544575
[ "MIT" ]
Eneye280/Movil-ShipGame_Imparable_PG
Movil_Imparable_PG/Library/PackageCache/com.unity.device-simulator@2.2.3-preview/Editor/uielements/DeviceView.cs
13,954
C#
using ExtendedXmlSerializer.Configuration; using ExtendedXmlSerializer.Tests.Support; using ExtendedXmlSerializer.Tests.TestObject; using FluentAssertions; using System.Collections.Generic; using Xunit; namespace ExtendedXmlSerializer.Tests.ExtensionModel.Xml.Classic { public class ClassicExtensionTests { [Fact] ...
122.380952
3,914
0.762743
[ "MIT" ]
ExtendedXmlSerializer/ExtendedXmlSerializer
test/ExtendedXmlSerializer.Tests/ExtensionModel/Xml/Classic/ClassicExtensionTests.cs
10,282
C#
using System; using Vostok.Hercules.Client.Abstractions.Events; namespace Vostok.Hercules.Client.Abstractions.Values { public abstract partial class HerculesValue { #region bool /// <summary> /// Returns <c>true</c> if this value is of <see cref="HerculesValueType.Bool"/> type, or <c>f...
40.398936
140
0.607637
[ "MIT" ]
vostok/airlock.client.abstractions
Vostok.Hercules.Client.Abstractions/Values/HerculesValue.Boilerplate.cs
7,595
C#
namespace ControlzEx.Showcase.Views { using System; using System.Collections.ObjectModel; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Windows; using System.Windows.Data; using ControlzEx.Theming; using JetBrains.Annotations; public partial class...
34.278912
211
0.592776
[ "MIT" ]
DavosLi0bnip/daranguizu
Others/ControlzEx/src/ControlzEx.Showcase/Views/ThemingView.xaml.cs
5,041
C#
namespace Shapes { public class Rectangle : Shape { //-------------- Fields ---------------- private double height; private double width; //----------- Constructors ------------- public Rectangle(double height, double width) { this.Height = height; ...
25.974359
88
0.45311
[ "MIT" ]
radrex/SoftuniCourses
C# Web Developer/C# Advanced/C# OOP/05.Polymorphism/Lab/P03_Shapes/Shapes/Shapes/Rectangle.cs
1,015
C#
using System; using System.Collections.Generic; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Abp.Authorization; using Abp.Authorization.Users; using Abp.Configuration; using Abp.Domain.Repositories; using Abp.Domain.Uow; using Abp.Organizations; usi...
34.440678
84
0.627461
[ "MIT" ]
metrodev-apps/ClubTest
aspnet-core/src/ClubTest.Core/Authorization/Users/UserManager.cs
2,034
C#
namespace BestService.Data { using System.Linq; using BestService.Data.Common.Models; using Microsoft.EntityFrameworkCore; internal static class EntityIndexesConfiguration { public static void Configure(ModelBuilder modelBuilder) { // IDeletableEntity.IsDeleted index ...
31.083333
110
0.647453
[ "MIT" ]
vladosfi/BestService
Data/BestService.Data/EntityIndexesConfiguration.cs
748
C#
/* ======================================================================== * Copyright (c) 2005-2019 The OPC Foundation, Inc. All rights reserved. * * OPC Foundation MIT License 1.00 * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation ...
30.943231
149
0.503763
[ "MIT" ]
AlexanderSemenyak/UA-.NETStandard-Samples
Samples/Controls.Net4/Common/PerformanceTestDlg.cs
21,258
C#
using Newtonsoft.Json; using System; namespace Dracoon.Sdk.SdkInternal.ApiModel { internal class ApiDownloadShare { [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] public long ShareId { get; set; } [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] ...
41.5
91
0.687842
[ "Apache-2.0" ]
dracoon/dracoon-csharp-sdk
DracoonSdk/SdkInternal/ApiModel/Shares/ApiDownloadShare.cs
2,741
C#
namespace Launcher.NotifyIcon.Interop { /// <summary> /// The notify icon version that is used. The higher /// the version, the more capabilities are available. /// </summary> public enum NotifyIconVersion { /// <summary> /// Default behavior (legacy Win95). Expects /// ...
36.814815
192
0.612676
[ "MIT" ]
BadrtSoft/Fivem-Launcher-PHP
Launcher/NotifyIcon/Interop/NotifyIconVersion.cs
996
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
20.183099
63
0.663643
[ "Apache-2.0" ]
aliyun/aliyun-openapi-net-sdk
aliyun-net-sdk-companyreg/Companyreg/Model/V20190508/ReSubmitIcpSolutionResponse.cs
1,433
C#
using DOS_Auth; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace DrinkOrderSystem.ClientSide { public partial class Login : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) ...
23.76087
75
0.536139
[ "MIT" ]
yuchi0731/DrinkWork
DrinkOrderSystem/DrinkOrderSystem/ClientSide/Login.aspx.cs
1,095
C#
namespace BoatRacingSimulator.Models.Boats { using System; using Interfaces; using Utility; public class SailBoat : Boat { private int sailEfficiency; public SailBoat(string model, int weight, int sailEfficiency) : base(model, weight) { this.SailEf...
27.15
112
0.548803
[ "MIT" ]
pirocorp/C-OOP-Advanced
07. Workshops/03_BoatRacingSimulator/BoatRacingSimulator/Models/Boats/SailBoat.cs
1,092
C#
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Interop; using System.Windows.Media; using System.Windows.Media.Animat...
47.667862
436
0.644901
[ "MIT" ]
ZENOSDUDIO/MahApps.Metro
src/MahApps.Metro/MahApps.Metro.Shared/Controls/MetroWindow.cs
66,451
C#
using System.Linq; using UnityEngine; public class ModBundleSelectPage : MonoBehaviour { public ModBundleInfoPage InfoPagePrefab = null; public UIElement PreviousButton = null; public UIElement NextButton = null; public UIElement[] Options = null; private int TotalPageCount { get ...
23.984375
139
0.552443
[ "MIT" ]
AndrioCelos/ktanemod-modselector
Assets/Scripts/Pages/ModBundleSelectPage.cs
3,070
C#
using System; using System.ComponentModel.DataAnnotations.Schema; using Oqtane.Models; namespace Admin.PageSubscriberDashboard.Models { [Table("AdminPageSubscriberDashboard")] public class PageSubscriberDashboard : IAuditable { public int PageSubscriberDashboardId { get; set; } public int M...
29.1
58
0.675258
[ "MIT" ]
rockydant/Utilities
Oqtane.Shared/Modules/Admin.PageSubscriberDashboard/Models/PageSubscriberDashboard.cs
582
C#
using System; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Runtime.InteropServices; using System.Text; namespace DmitryBrant.ImageFormats { public static class TgaReader { public static Bitmap Load(string fileName) { Bitmap result = null; ...
51.537778
149
0.27212
[ "Apache-2.0" ]
xafero/ImageFormats
Source/TgaReader.cs
23,194
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.md file in the project root for more information. using Moq.Protected; namespace Microsoft.VisualStudio.Telemetry { public class VsTelemetryServiceTests ...
34.385027
201
0.566252
[ "MIT" ]
adamint/project-system
tests/Microsoft.VisualStudio.ProjectSystem.Managed.VS.UnitTests/Telemetry/VsTelemetryServiceTests.cs
6,246
C#
// ReSharper disable PossibleNullReferenceException namespace Core6.UpgradeGuides._5to6 { using System.Collections.Generic; using System.Threading.Tasks; using NServiceBus; using NServiceBus.DeliveryConstraints; using NServiceBus.Extensibility; using NServiceBus.Routing; using NSer...
35.205128
96
0.608157
[ "Apache-2.0" ]
A-Franklin/docs.particular.net
Snippets/Core/Core_6/UpgradeGuides/5to6/RawSend.cs
1,337
C#
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace Gimela.Data.DataStructures { /// <summary> /// 二叉树 /// </summary> /// <typeparam name="T">二叉树中节点内容类型</typeparam> [SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrec...
22.076712
91
0.535617
[ "MIT" ]
J-W-Chan/Gimela
src/Foundation/Data/Gimela.Data.DataStructures/BinaryTree/BinaryTree.cs
8,534
C#
namespace SpontimePictures.Areas.HelpPage.ModelDescriptions { public class CollectionModelDescription : ModelDescription { public ModelDescription ElementDescription { get; set; } } }
29
64
0.758621
[ "MIT" ]
lukemuszynski/spnt-2015
SpontimeCluster/SpontimePictures/SpontimePictures/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs
203
C#
using Borg.Infrastructure.Core.DDD.Contracts; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Borg.Framework.DAL { publi...
34.230769
131
0.596854
[ "Apache-2.0" ]
mitsbits/Bor
src/Framework/Borg.Framework/DAL/IStaticEntityStore.cs
2,227
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using UnityEngine; namespace ActiveTextureManagement { class CacheController { static String MD5String = ""; static String LastFile = ""; public ...
44.663082
177
0.531579
[ "MIT", "Unlicense" ]
amo28/ActiveTextureManagement
ActiveTextureManagement/CacheController.cs
12,463
C#
using RuyaTabircim.Data.Model; using System.Collections.Generic; namespace RuyaTabircim.Data.Service.Interface { public interface IDreamService { Dream Get(string id); IEnumerable<DreamUser> GetAll(); IEnumerable<DreamUser> GetForReply(); IEnumerable<Dream> GetBySpiritId(string...
27.117647
52
0.685466
[ "MIT" ]
doxa-labs/dream-reviews-app-api
RuyaTabircim.Data/Service/Interface/IDreamService.cs
463
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...
29.39823
218
0.580072
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Network/V20200701/GetVirtualHubBgpConnection.cs
3,322
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("Shu...
37.837838
84
0.747857
[ "BSD-3-Clause" ]
Shuttle/Shuttle.Packager
Shuttle.Packager/Properties/AssemblyInfo.cs
1,403
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
27.649351
84
0.46759
[ "MIT" ]
Appleseed/squidex
backend/tests/Squidex.Infrastructure.Tests/TestHelpers/MyDomainObject.cs
4,260
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...
39.048951
175
0.603152
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/ElasticBeanstalk/Generated/Model/Internal/MarshallTransformations/ComposeEnvironmentsResponseUnmarshaller.cs
5,584
C#
using System.Diagnostics.CodeAnalysis; using Ketchup.Core.Utilities; namespace Ketchup.Profession.Specification { public static class SpecificationExtensions { /// <summary> /// Combines the current specification instance with another specification instance /// and returns the combined ...
48.842857
132
0.668909
[ "MIT" ]
microserviceframe/ketchup
core/src/Ketchup.Profession/Specification/SpecificationExtensions.cs
3,419
C#
using System.IO; using RhythmCodex.Psf.Models; namespace RhythmCodex.Psf.Streamers { public interface IPsfStreamReader { PsfChunk Read(Stream source); } }
17.5
37
0.714286
[ "MIT" ]
SaxxonPike/RhythmCodex
Source/RhythmCodex.Lib/Psf/Streamers/IPsfStreamReader.cs
175
C#
using System.Text.Json.Serialization; namespace Saison.Models.Beer { public class MediaVenueCategory { [JsonPropertyName("category_key")] public string CategoryKey { get; set; } [JsonPropertyName("category_name")] public string CategoryName { get; set; } [JsonPropertyN...
25.263158
48
0.641667
[ "MIT" ]
MolinRE/saison
src/Models/Beer/MediaVenueCategory.cs
480
C#
public class WoodData { // Holds all Wood public int amtWood = 0; }
12
24
0.666667
[ "Apache-2.0" ]
Torquelus/LudumDare45
Assets/Scripts/Resource System/WoodData.cs
74
C#
namespace DisposableSample { class Program { static void Main() { using (var resource = new SomeResource()) { resource.Foo(); } } } }
15.928571
53
0.41704
[ "MIT" ]
Bazzaware/ProfessionalCSharp7
Memory/MemorySamples/DisposableSample/Program.cs
225
C#
// Generated class v2.19.0.0, don't modify using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; namespace NHtmlUnit.Javascript.Host.Html { public partial class HTMLTimeElement : NHtmlUnit.Javascript.Host.Html.HTMLElement, NHtmlUnit.Ja...
32.575758
137
0.723721
[ "Apache-2.0" ]
JonAnders/NHtmlUnit
app/NHtmlUnit/Generated/Javascript/Host/Html/HTMLTimeElement.cs
1,075
C#
using alps.net.api.parsing; using alps.net.api.src; using alps.net.api.util; using System.Collections.Generic; namespace alps.net.api.StandardPASS.BehaviorDescribingComponents { /// <summary> /// Class that represents a transition class /// </summary> public class Transition : BehaviorDescribingCompon...
38.474255
164
0.586673
[ "MIT" ]
I2PM/alps.net.api
alps .net api/alps.net.api/StandardPASS/PassProcessModelElements/BehaviorDescribingComponents/Transition.cs
14,199
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Amido.Stacks.Application.CQRS.Commands; using Amido.Stacks.Messaging.Azure.ServiceBus.Configuration; using Amido.Stacks.Messaging.Azure.ServiceBus.Factories; using Amido.Stacks.Messaging.Azure...
35.922619
130
0.607788
[ "MIT" ]
amido/stacks-dotnet-packages-messaging-asb
src/Amido.Stacks.Messaging.Azure.ServiceBus.Tests/UnitTests/Listeners/QueueListenerTests.cs
6,037
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; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerS...
34.630653
382
0.561658
[ "MIT" ]
ReidB-MSFT/coreclr
src/System.Private.CoreLib/shared/System/Tuple.cs
41,349
C#
using UnityEngine; using System.Collections.Generic; using System; using UnityEngine.UI; using UnityEngine.EventSystems; namespace XCharts.Runtime { /// <summary> /// The base class of all charts. /// |所有Chart的基类。 /// </summary> public partial class BaseChart { /// <summary> //...
32.306796
179
0.502224
[ "MIT" ]
XCharts-Team/XCharts
Runtime/Internal/BaseChart.API.cs
17,506
C#
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _10_1_2_3_7 { class Program { static void Main(string[] args) { Console.WriteLine("[1,100]:"); //han...
21.45679
83
0.49252
[ "MIT" ]
staman1702/AlgebraCSharp2019-1
ConsoleApp1/10_1_2_3-7/Program.cs
1,740
C#
using foodtruacker.Application.BoundedContexts.UserAccountManagement.QueryObjects; using foodtruacker.Domain.BoundedContexts.UserAccountManagement.Events; using foodtruacker.QueryRepository.Repository; using MediatR; using System; using System.Threading; using System.Threading.Tasks; namespace foodtruacker.Applicatio...
34.771429
107
0.700904
[ "MIT" ]
hiiammalte/foodtruacker
foodtruacker.Application/BoundedContexts/UserAccountManagement/Projections/AdminAccountChangedEmailProjection.cs
1,219
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 Microsoft.Data.DataView; namespace Microsoft.ML.Data { /// <summary> /// Base class for creating a cu...
42.863014
122
0.647172
[ "MIT" ]
IndigoShock/machinelearning
src/Microsoft.ML.Core/Data/SynchronizedCursorBase.cs
3,129
C#
// // AddOptionalParameterToInvocationAction.cs // // Author: // Luís Reis <luiscubal@gmail.com> // // Copyright (c) 2013 Luís Reis // // 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 ...
39.041322
105
0.730737
[ "MIT" ]
fuse-open/fuse-studio
3rdparty/NRefactory/ICSharpCode.NRefactory.CSharp.Refactoring/CodeActions/AddOptionalParameterToInvocationAction.cs
4,726
C#
namespace Dalian.Models { public class SiteTags { public string SiteId { get; set; } public string TagId { get; set; } } }
18.875
42
0.576159
[ "MIT" ]
06b/Dalian
src/Dalian/Models/SitesTags.cs
153
C#
using System; using System.Collections.Generic; using Dfc.CourseDirectory.Core.Models; namespace Dfc.CourseDirectory.Core.DataStore.Sql.Models { public class TLevel { public Guid TLevelId { get; set; } public TLevelStatus TLevelStatus { get; set; } public TLevelDefinition TLevelDefinit...
37.607143
68
0.647673
[ "MIT" ]
SkillsFundingAgency/dfc-coursedirectory
src/Dfc.CourseDirectory.Core/DataStore/Sql/Models/TLevel.cs
1,055
C#
using DiligentEngine; using Engine.Resources; using FreeImageAPI; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DiligentEngine.GltfPbr { /// <summary> /// This loader can load the textures from https://cc0textures.com. It will ref...
43.069182
193
0.533148
[ "MIT" ]
AnomalousMedical/Adventure
DiligentEngine.GltfPbr/CC0TextureLoader.cs
6,850
C#
using System.Collections.Generic; using System.Linq; namespace FluentWPFSample.Views { /// <summary> /// RevealStyles.xaml の相互作用ロジック /// </summary> public partial class RevealStyles { public RevealStyles() { InitializeComponent(); var dic = new Dictionary<i...
22.741935
53
0.475177
[ "MIT" ]
FactorySI/FluentWPF
Sample/FluentWPFSample/Views/RevealStyles.xaml.cs
725
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Dfc.CourseDirectory.Core.DataStore; using Dfc.CourseDirectory.Core.Models; using Dfc.CourseDirectory.Core.Validation; using Dfc.CourseDirectory.WebV2.MultiPageTransaction; using FluentValidati...
33.945455
119
0.598822
[ "MIT" ]
uk-gov-mirror/SkillsFundingAgency.dfc-coursedirectory
src/Dfc.CourseDirectory.WebV2/Features/NewApprenticeshipProvider/ApprenticeshipEmployerLocationsRegions.cs
3,736
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace MyFirstMvcApp { public class Program { public ...
25.740741
70
0.646043
[ "MIT" ]
TinuMurani/MyFirstMvcApp
MyFirstMvcApp/MyFirstMvcApp/Program.cs
695
C#
namespace SberAcquiringClient.Types.Interfaces { /// <summary> /// Данные, необходимые для работы с платежным шлюзом /// </summary> public interface ISberAcquiringApiSettings { /// <summary> /// Имя пользователя /// </summary> string UserName { get; set; } /...
22.75
57
0.497645
[ "MIT" ]
ExLuzZziVo/SberAcquiringClient
SberAcquiringClient/Types/Interfaces/ISberAcquiringApiSettings.cs
727
C#
using UnityEngine; using UnityEditor; namespace Klak.Wiring { [CanEditMultipleObjects] [CustomEditor(typeof(FloatValue))] public class FloatValueEditor : Editor { public override void OnInspectorGUI() { serializedObject.Update(); DrawPropertiesExcluding(serial...
22.842105
81
0.652074
[ "MIT" ]
Adjuvant/videolab
Assets/Klak/Wiring/Editor/Input/FloatValueEditor.cs
436
C#
// // Copyright (c) Microsoft and contributors. 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. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless ...
40.178947
174
0.620906
[ "MIT" ]
AladdinBI/azure-powershell
src/Compute/Compute/Generated/Image/ImageDeleteMethod.cs
3,723
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...
29.5
81
0.601695
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Media/V20200501/Outputs/SystemDataResponse.cs
1,888
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014-2022 Ingo Herbote * https://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file...
29.983333
80
0.629794
[ "Apache-2.0" ]
correaAlex/YAFNET
yafsrc/YAF.Web/EventsArgs/PopEventArgs.cs
1,741
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...
50.44898
249
0.579558
[ "MIT" ]
3quanfeng/azure-powershell
src/HealthBot/generated/api/Models/Any.TypeConverter.cs
7,270
C#