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 Python.Runtime; using System; using System.Collections.Generic; using System.Threading; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using WinIO.WPF.Command; using WinIO.WPF.Control; namespace WinIO.WPF { /// <summary> /// MainWindow.xaml 的交互逻辑 /// </summary> p...
27.540541
130
0.523258
[ "Apache-2.0" ]
sak9188/WinIO
WinIO/WinIOMain/WPF/MainWindow.xaml.cs
5,105
C#
namespace ShuHai { public static class MathEx { public static bool IsPowerOfTwo(int value) { return value != 0 && (value & (value - 1)) == 0; } } }
24
103
0.583333
[ "MIT" ]
xenosl/DebugInspector
Assets/ShuHai/Scripts/Core/MathEx.cs
170
C#
using Microsoft.AspNetCore.Http; namespace AspNetCoreRateLimit { public class IpConnectionResolveContributor : IIpResolveContributor { public IpConnectionResolveContributor() { } public string ResolveIp(HttpContext httpContext) { return httpContext.Connecti...
23.0625
71
0.669377
[ "MIT" ]
XzaR90/AspNetCoreRateLim
src/AspNetCoreRateLimit/Resolvers/IpConnectionResolveContributor.cs
371
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.Runtime.InteropServices; using Xunit; namespace System.Runtime.InteropServices.RuntimeInformationTests...
32.608696
104
0.586667
[ "MIT" ]
06needhamt/runtime
src/libraries/System.Runtime.InteropServices.RuntimeInformation/tests/CheckArchitectureTests.cs
1,500
C#
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using NetDevPack.Identity; using NetDevPack.Identity.Jwt; namespace AspNetCore.Jwt.Sample.Config ...
36.145833
128
0.69683
[ "MIT" ]
dougstefe/Security.Identity
src/Samples/AspNetCore.Jwt.Sample/Config/CustomIdentityAndKeyConfig.cs
1,737
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; namespace SeedWorld { class SceneCuller { class MeshDistanceSort : IComparer<MeshInstance> { public int Compare(MeshInstance instance1, MeshInstance instance2) ...
38.20979
109
0.53825
[ "MIT" ]
ccajas/SeedWorld
SeedWorld/Engine/Graphics/SceneCuller.cs
5,466
C#
namespace WorldDomination.SimpleRavenDb { internal static class StringExtensions { internal static string ToFirstNewLineOrDefault(this string value) { return value.Contains('\n') ? value[..value.IndexOf('\n')] : value; } } }
24.384615
74
0.545741
[ "MIT" ]
PureKrome/simpleravendb
src/WorldDomination.SimpleRavenDb/StringExtensions.cs
317
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...
40.055556
220
0.724688
[ "ECL-2.0", "Apache-2.0" ]
chivandikwa/pulumi-aws
sdk/dotnet/WafV2/Outputs/WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementNotStatementStatementOrStatementStatementByteMatchStatementTextTransformation.cs
1,442
C#
using System.Web; using System.Web.Optimization; namespace DrinksInventory.API { public class BundleConfig { // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(n...
38.551724
112
0.580501
[ "MIT" ]
dikili/CheckOut
DrinksInventory.WEBAPI/DrinksInventory.API/App_Start/BundleConfig.cs
1,120
C#
#nullable disable // // System.Reflection.Emit/MethodOnTypeBuilderInst.cs // // Author: // Zoltan Varga (vargaz@gmail.com) // // // Copyright (C) 2008 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentatio...
26.091772
125
0.720437
[ "MIT" ]
ARhj/runtime
src/mono/netcore/System.Private.CoreLib/src/System/Reflection/Emit/MethodOnTypeBuilderInst.cs
8,245
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BasicLogin.Dtos { public class UserForLoginDto { public string Username { get; set; } public string Password { get; set; } } }
18.857143
44
0.685606
[ "MIT" ]
andersonsalles/BasicLogin
Dtos/UserForLoginDto.cs
266
C#
using System; using System.Collections.Generic; using System.Data.Common; // using System.Data.Entity.Core.EntityClient; // using System.Data.Entity.Core.Mapping; // using System.Data.Entity.Core.Metadata.Edm; using System.Data.SqlClient; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Transact...
30.964072
182
0.576678
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
QuantumArt/QP
bll/QPConnectionScope.cs
5,226
C#
namespace INStock { using INStock.Contracts; using System; using System.Collections; using System.Collections.Generic; using System.Linq; public class ProductStock : IProductStock, IEnumerable<IProduct> { //--------- Fields ---------- private List<IProduct> productStock; ...
28.533835
110
0.481423
[ "MIT" ]
radrex/SoftuniCourses
C# Web Developer/C# Advanced/C# OOP/10.Test-Driven Development/Lab/INStock/ProductStock.cs
3,797
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.72093
195
0.696643
[ "Apache-2.0" ]
PatrickRatzow/space-dotnet-sdk
src/JetBrains.Space.Client/Generated/Partials/OrganizationPatchRequestPartialBuilder.generated.cs
1,579
C#
#region Copyright and License // Copyright 2010..2016 Alexander Reinert // // This file is part of the ARSoft.Tools.Net - C# DNS client/server and SPF Library (http://arsofttoolsnet.codeplex.com/) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance ...
46.59375
239
0.729712
[ "Apache-2.0" ]
TomWeps/ARSoft.Tools.Net-Modified
ARSoft.Tools.Net/Dns/Resolver/DnsSecResolverExtensions.cs
2,984
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...
29.666667
106
0.564845
[ "Apache-2.0" ]
KenHundley/aws-sdk-net
sdk/src/Services/DataSync/Generated/Model/DescribeLocationSmbResponse.cs
5,251
C#
namespace GeekShopping.CartAPI.Model { public class Product { public Guid Id { get; set; } public string Name { get; set; } public decimal Price { get; set; } public string? Description { get; set; } public string? CategoryName { get; set; } public string? I...
19.444444
49
0.571429
[ "Apache-2.0" ]
edulima2412/erudio-microservices-dotnet6
GeekShopping/GeekShopping.CartAPI/Model/Product.cs
352
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AlibabaCloud.SDK.Dingtalkesign_1_0.Models { public class CorpInfoResponse : TeaModel { [NameInMap("headers")] [Validation(Required=true)] public Dic...
21.565217
63
0.669355
[ "Apache-2.0" ]
aliyun/dingtalk-sdk
dingtalk/csharp/core/esign_1_0/Models/CorpInfoResponse.cs
496
C#
using System; using System.Collections.Generic; using System.Text; namespace Tensorflow { public class embedding_ops : Python { /// <summary> /// Helper function for embedding_lookup and _compute_sampled_logits. /// </summary> /// <param name="params"></param> /// <para...
31.816327
96
0.520847
[ "Apache-2.0" ]
SciEvan/TensorFlow.NET
src/TensorFlowNET.Core/Operations/embedding_ops.cs
1,561
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 UIAutomationClient; using Axe.Windows.Core.Attributes; using Axe.Windows.Desktop.Utility; using Axe.Windows....
32.144231
221
0.570595
[ "MIT" ]
Bhaskers-Blu-Org2/axe-windows
src/Desktop/UIAutomation/Patterns/TextRange.cs
6,479
C#
// This file was automatically generated and may be regenerated at any // time. To ensure any changes are retained, modify the tool with any segment/component/group/field name // or type changes. namespace Machete.HL7Schema.V26.Maps { using V26; /// <summary> /// PV2 (SegmentMap) - Patient Visit - Additi...
55.708333
133
0.615308
[ "Apache-2.0" ]
amccool/Machete
src/Machete.HL7Schema/Generated/V26/Segments/Maps/PV2Map.cs
4,011
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("Tr...
39.108108
84
0.753974
[ "MIT" ]
AlexanderPetrovv/Programming-Basics-December-2016
FirstStepsInCoding/TriangleOf55StarsWithTwoFors/Properties/AssemblyInfo.cs
1,450
C#
using System.Collections.Generic; using Upgrade; namespace Ship { namespace SecondEdition.ST70AssaultShip { public class OuterRimEnforcer : ST70AssaultShip { public OuterRimEnforcer() : base() { PilotInfo = new PilotCardInfo ( ...
23.652174
95
0.490809
[ "MIT" ]
sampson-matt/FlyCasual
Assets/Scripts/Model/Content/SecondEdition/Pilots/ST70AssaultShip/OuterRimEnforcer.cs
546
C#
using System; using Microsoft.Maui.Controls.CustomAttributes; #if UITEST using Xamarin.UITest; using NUnit.Framework; using Microsoft.Maui.Controls.UITests; #endif namespace Microsoft.Maui.Controls.ControlGallery.Issues { [Issue(IssueTracker.Github, 7856, "[Bug] Shell BackButtonBehaviour TextOverride breaks back...
21.65625
86
0.698413
[ "MIT" ]
jongalloway/maui
src/ControlGallery/src/Xamarin.Forms.Controls.Issues.Shared/Issue7856.cs
1,388
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Collections; using System.Diagnostics; namespace HelperEditor { public class TabFileData { private const int TABLE_ROW_MAX = 100; // 可能的 ID 最大值 ...
34.123288
126
0.458718
[ "MIT" ]
RivenZoo/FullSource
Jx3Full/Source/Source/Tools/GameDesignerEditor/Controls/HelperEditor/HelperEditor/TabFile.cs
8,199
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading; using System.Threading.Tasks; using JetBrains.Annotations; namespace LinqToDB { using Async; using Linq; public static partial class LinqExtensions { /// <summary> ///...
49.197461
148
0.681718
[ "MIT" ]
Corey-M/linq2db
Source/LinqToDB/LinqExtensions.Insert.cs
34,175
C#
namespace Yumiko.SelfProtection.Infrastructure { public enum WmiSubject { _1394Controller, _1394ControllerDevice, AccountSID, ActionCheck, ActiveRoute, AllocatedResource, ApplicationCommandLine, ApplicationService, AssociatedBattery, ...
32.583144
82
0.696728
[ "MIT" ]
0x0001F36D/Yumiko.SelfProtection
Yumiko.SelfProtection/Infrastructure/WmiSubject.cs
14,307
C#
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using Elastic.Apm.Api; using Elastic.Apm.Helpers; using Elastic.Apm.Model; using Elastic.Apm.Tests.Extensions; using Elastic.Apm.Tests.Mocks; using Elastic.Apm.Tests.TestHelpers; using FluentAssertions; using Microsoft.Entit...
32.316092
125
0.717677
[ "Apache-2.0" ]
ElWPenn/apm-agent-dotnet
test/Elastic.Apm.EntityFrameworkCore.Tests/ExternalDbTests.cs
11,246
C#
using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace EdnaMonitoring.Infra.Identity.TokenProviders { public class EmailConfirmationTokenProvider<TUser> : DataProtectorTokenProvider<TUser> where TUser : clas...
32.521739
110
0.764706
[ "MIT" ]
nagasudhirpulla/edna_monitoring
src/EdnaMonitoring.Infra/Identity/TokenProviders/EmailConfirmationTokenProvider.cs
750
C#
using System; namespace IxMilia.LinearAlgebra { public class SubMatrix : Matrix { public Matrix Parent { get; } public int RowOffset { get; } public override int Rows { get; } public int ColumnOffset { get; } public override int Columns { get; } public overri...
27.130952
95
0.481351
[ "MIT" ]
IxMilia/LinearAlgebra
src/IxMilia.LinearAlgebra/SubMatrix.cs
2,281
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * 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 r...
38.402237
218
0.492116
[ "BSD-3-Clause" ]
CloudFiveDev/metagrid
OpenSim/Region/CoreModules/World/Land/LandObject.cs
78,955
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Mandater.Models; using Mandater.Repository; using Microsoft.AspNetCore.Cors; namespace Mandater.Controllers { ...
29.085106
88
0.595465
[ "Apache-2.0" ]
Log234/Mandater
Mandater/Controllers/VDModelsController.cs
1,369
C#
using mc_Bonalds.Models; using mc_Bonalds.Repositorios; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace mc_Bonalds.Controllers { public class PedidoController : Controller { private PedidoRepositorio Repositorio = new PedidoRepositorio(); [HttpGet] public IAct...
28.942308
72
0.572093
[ "MIT" ]
regiamariana/cshtml
mc Bonalds/Controllers/PedidoController.cs
1,506
C#
using System; namespace Chester.Models; public record SavedMove(Move Move, SquareState ToSquare) { }; [Flags] public enum MoveType : ushort { Normal = 0b0000000000, Capture = 0b0000000001, EnPassant = 0b0000000010, PromotionQueen = 0b0000000100, PromotionRook = ...
35.626667
124
0.625749
[ "MIT" ]
stefer/Chester
Chester/Models/Move.cs
2,674
C#
using System; namespace ShellLoginSample.Models { public class Item { public string Id { get; set; } public string Text { get; set; } public string Description { get; set; } } }
19.545455
47
0.595349
[ "MIT" ]
davidortinau/ShellLoginSample
ShellLoginSample/Models/Item.cs
217
C#
using Celerik.NetCore.Services; using Microsoft.Extensions.Configuration; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Celerik.NetCore.Web.Test { [TestClass] public class CorsExtensionsTest : WebBaseTest { [TestMethod] public void CorsExtensions_GetCorsConfig_Disabled() ...
36.106667
85
0.633309
[ "MIT" ]
celerik/celerik-netcore-web
source/Celerik.NetCore.Web.Test/Cors/CorsExtensionsTest.cs
2,710
C#
using AdventOfCode.Common; using AdventOfCode.Common.Day; namespace AdventOfCode.Day7 { public class Solution : AdventOfCodeDay<Part1, Part2> { protected override int Day => 7; } public class Part1 : ParSolution<CrabSubmarinesV1> { protected override CrabSubmarinesV1 BuildCrabSubm...
31.511628
99
0.673801
[ "MIT" ]
Almantask/AdventOfCode2021
AdventOfCode/Day7/Solution.cs
1,357
C#
using System.Collections.Generic; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Diagnostics.HealthChecks; using Microsoft.Extensions.Logging; using SFA.DAS.Api.Common.Infrastructure; using SFA.DAS.SharedOuterApi.Configuration; using SFA.DAS.SharedOuterApi.In...
37.471698
99
0.687311
[ "MIT" ]
SkillsFundingAgency/das-apim-endpoints
src/SFA.DAS.SharedOuterApi/Infrastructure/HealthCheck/AssessorsApiHealthCheck.cs
1,988
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace Microsoft.Azure.Management.Dns.Fluent { using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Mic...
58.044776
242
0.697609
[ "MIT" ]
graemefoster/azure-libraries-for-net
src/ResourceManagement/Dns/Domain/IDnsRecordSets.cs
3,889
C#
using System.Collections.Specialized; using System.ComponentModel.Composition; using DevExpress.Xpf.Docking; using Prism.Regions; namespace WpfEQDValidationApp.Infrastructure.Adapters { public class DocumentGroupAdapter : RegionAdapterBase<DocumentGroup> { [ImportingConstructor] public Documen...
35.765957
114
0.586556
[ "MIT" ]
isachpaz/EQDValidation
WpfEQDValidationApp/WpfEQDValidationApp.Infrastructure/Adapters/DocumentGroupAdapter.cs
1,683
C#
using System; using System.Collections.Generic; using System.Text; using VB = Dlrsoft.VBScript.Parser; using Microsoft.Scripting.Runtime; using System.Dynamic; #if USE35 using Microsoft.Scripting.Ast; #else using System.Linq.Expressions; #endif using Microsoft.Scripting.Utils; using System.Reflection; using System.I...
33.253623
118
0.568098
[ "Apache-2.0" ]
boldbrush/ASPClassicCompiler
aspclassiccompiler/VBScript/Compiler/VBScriptAnalyzer.cs
4,591
C#
//------------------------------------------------------------------------------ // <copyright file="SmiMetaData.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // <owner current="true" primary="true">Microsoft</owner> // <owner current="true" primary="false">M...
52.868068
219
0.418681
[ "MIT" ]
Abdalla-rabie/referencesource
System.Data/Microsoft/SqlServer/Server/SmiMetaData.cs
90,563
C#
// Copyright (c) Jeremy W. Kuhne. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace WInterop.Security { /// <summary> /// [ACL_SIZE_INFORMATION] /// </summary> public struct AclSizeInformation { public uint...
25.5
101
0.666667
[ "MIT" ]
RussKie/WInterop
src/WInterop.Desktop/Security/AclSizeInformation.cs
410
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class CheckPointFlag : MonoBehaviour { private bool[] _isThrough; // このチェックポイントを通過したかのフラグを保存 // Start is called before the first frame update void Start() { GameObject[] racing...
31.140351
97
0.593803
[ "Unlicense" ]
mhigg/HCMs
HCMs/Assets/StageModel/GoalObject/Script/CheckPointFlag.cs
1,961
C#
using System; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Linq; namespace TicketingSystem.Data { public class BaseRepository<T> : IRepository<T> where T : class { public BaseRepository(DbContext context) { if (context == null) { ...
26.927083
119
0.503675
[ "MIT" ]
Valersd/TicketingSystem
TicketingSystem.Data/BaseRepository.cs
2,587
C#
namespace Agatha.Common { public class AsyncRequestDispatcherFactoryStub : IAsyncRequestDispatcherFactory { private readonly AsyncRequestDispatcherStub asyncRequestDispatcherStub; public AsyncRequestDispatcherFactoryStub(AsyncRequestDispatcherStub asyncRequestDispatcherStub) { this.asyncRequestDispatcherStu...
27.705882
97
0.845011
[ "Apache-2.0" ]
davybrion/Agatha
Agatha.Common/AsyncRequestDispatcherFactoryStub.cs
471
C#
using AutoMapper; using BeboerWeb.Api.Application.Persistence.Repositories.PropertyManagement; using BeboerWeb.Api.Application.Services.PropertyManagement; using BeboerWeb.Api.Controllers.Bases; using BeboerWeb.Api.Domain.Models.PropertyManangement; using BeboerWeb.Api.Models.DTOs.PropertyManagement; using Microsoft.A...
36.85
133
0.800543
[ "MIT" ]
nikcio/BeboerWeb
src/BeboerWeb.Api/Controllers/PropertyManagement/LeasePeriodController.cs
739
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的常规信息通过以下 // 特性集控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("GOTO.BigDataAccess")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [...
26.567568
59
0.719227
[ "Apache-2.0" ]
aryice/GOTO.Segment
GOTO.BigDataAccess/Properties/AssemblyInfo.cs
1,342
C#
using TMPro; using UnityEngine; using UnityEngine.XR; using System; using System.Collections.Generic; using VPG.Core; using VPG.Core.Configuration; namespace VPG.UX { /// <summary> /// Shows and hides the StandaloneCourseController prefab. /// </summary> public class StandaloneMenuHandler : MonoBehavi...
32.736041
150
0.537603
[ "Apache-2.0" ]
VaLiuM09/Basic-UI-Component
Runtime/CourseController/StandaloneMenuHandler.cs
6,451
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WispFramework.EventArguments; using WispFramework.Extensions; using WispFramework.Patterns; using WispFramework.Patterns.Observables; using WispFramework.Utility; namespace Tests { public clas...
26.411765
81
0.538233
[ "MIT" ]
ddolyniuk1/WispFramework
Tests/EventAwaiterTests.cs
1,349
C#
using Prism.Events; namespace Hypermint.Base.Events { public class SaveSettingsEvent : PubSubEvent<string> { } }
12.8
56
0.695313
[ "MIT" ]
horseyhorsey/Hypermint.2.0
src/Hypermint.Base/Events/SettingsFlyoutEvents.cs
130
C#
using System; namespace Dalssoft.DiagramNet { internal enum CornerPosition: int { Nothing = -1, BottomCenter = 0, BottomLeft = 1, BottomRight = 2, MiddleCenter = 3, MiddleLeft = 4, MiddleRight = 5, TopCenter = 6, TopLeft = 7, TopRight = 8, Undefined = 99 } public enum CardinalDirection { ...
11.157895
34
0.66195
[ "MIT" ]
JackWangCUMT/Diagram.NET
DiagramNet/GeneralEnums.cs
636
C#
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using HuaweiCloud.SDK.Core; namespace HuaweiCloud.SDK.Kms.V1.Model { /// <summary> /// Response Object /// </summary> public...
33.161017
87
0.513928
[ "Apache-2.0" ]
huaweicloud/huaweicloud-sdk-net
Services/Kms/V1/Model/CreateParametersForImportResponse.cs
4,013
C#
 #region Using Statements using Microsoft.Xna.Framework; using System; #endregion namespace Artemis.Engine.Maths.Geometry { public static class VectorUtils { public static Vector2 ComponentwiseProduct(Vector2 a, Vector2 b) { return new Vector2(a.X * b.X, a.Y * b.Y); } ...
32.246753
115
0.518727
[ "MIT" ]
ArtemisEngine/Artemis-Engine
Artemis.Engine/Maths/Geometry/VectorUtils.cs
4,968
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.Threading; public class Test12224 { // Regression test for EH getting stuck in an infinite loop when NullReferenceException // happens inside a...
27.093023
91
0.5897
[ "MIT" ]
2m0nd/runtime
src/tests/Regressions/coreclr/GitHub_12224/test12224.cs
1,165
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace SharePoint.Modernization.Scanner.Telemetry { public class VersionCheck { public const string versionFileUrl = "https://raw.githubusercontent.com/ShareP...
34.52381
169
0.522299
[ "MIT" ]
MartinHatch/sp-dev-modernization
Tools/SharePoint.Modernization/SharePointPnP.Modernization.Scanner/Telemetry/VersionCheck.cs
2,177
C#
using System.Collections; using System.Collections.Generic; using TUF.Core; using TUF.Entities.Shared; using UnityEngine; namespace TUF.Entities.Characters.States { public class CWallCling : EntityWallCling { public override bool CheckInterrupt() { if (controller.InputManager.GetBu...
26.952381
88
0.644876
[ "MIT" ]
christides11/touhou-unlimited-fantasies
Assets/_Project/Scripts/Entities/Characters/States/Walls&Ledges/CWallCling.cs
568
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014-2020 Ingo Herbote * https://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file ...
35.198864
141
0.526231
[ "Apache-2.0" ]
AlbertoP57/YAFNET
yafsrc/YetAnotherForum.NET/Pages/Moderating.ascx.cs
12,040
C#
/* New BSD License ------------------------------------------------------------------------------- Copyright (c) 2006-2012, EntitySpaces, LLC All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redist...
42.591549
79
0.619378
[ "Unlicense" ]
EntitySpaces/EntitySpaces-CompleteSource
CodeGeneration/esGacInstall/Program.cs
3,024
C#
namespace Rawr.Rogue { partial class RogueTalents { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
46.830508
108
0.596996
[ "Apache-2.0" ]
satelliteprogrammer/rawr
Rawr.Rogue/Talent GUI.unused/RogueTalents.Designer.cs
5,528
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text.RegularExpressions; using System.Windows.Forms; namespace winFrac { public partial class FormBase : Form { private const string SEULEMENT_CARACTERES_AUTORISES = @"[^0-9,+\-\*/<>=!\?\s]"; // ajouter _ ...
32.31875
145
0.689228
[ "Unlicense" ]
TwelveMonkeysCrewWarriorsOfTheCode/C-ba_winFrac
winFrac/FormBase.cs
5,184
C#
// // Copyright 2016 Bertrand Lorentz // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publi...
39.240506
82
0.719032
[ "MIT" ]
EULexNET/EULex.NET
src/EULex/Model/CaseLawDirectoryCode.cs
3,102
C#
// Copyright 2021 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
35.272727
145
0.755799
[ "Apache-2.0" ]
arun12nura/dotnet-docs-samples
storage/api/Storage.Samples.Tests/SetPublicAccessPreventionUnspecifiedTest.cs
1,554
C#
using System; using System.Collections.Generic; using System.Linq; using Statecharts.NET.Language.Builders.Transition; using Statecharts.NET.Model; using Statecharts.NET.Utilities; using static Statecharts.NET.Language.Keywords; namespace Statecharts.NET.Language.Builders { internal class StatenodeDefinitionData ...
57.61461
168
0.740961
[ "MIT" ]
bemayr/Statecharts.NET
Statecharts.NET.Language/Builders/StateNode.cs
22,875
C#
// // Encog(tm) Core v3.1 - .Net Version // http://www.heatonresearch.com/encog/ // // Copyright 2008-2012 Heaton Research, Inc. // // 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 // // htt...
31.5311
91
0.52261
[ "BSD-3-Clause" ]
mpcoombes/MaterialPredictor
encog-core-cs/Neural/Thermal/HopfieldNetwork.cs
6,590
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...
45.541667
85
0.768527
[ "Unlicense", "MIT" ]
siranen/PalletBuilder
Test/TreeDim.Stackbuilder.Graphics.BoxelOrderer.Test/Properties/AssemblyInfo.cs
1,096
C#
using System.Collections.Generic; namespace MopsBot.Data.Tracker.APIResults.Steam { public class PlayerSummary { public string steamid { get; set; } public int communityvisibilitystate { get; set; } public int profilestate { get; set; } public string personaname { get; set; } ...
28.315789
74
0.597584
[ "MIT" ]
CaldeiraG/MopsBot-2.0
Data/Tracker/APIResults/SteamResult.cs
4,304
C#
using System.ComponentModel.DataAnnotations; namespace Bit.Core.Models.Api { public class PasswordHintRequestModel { [Required] [EmailAddress] [StringLength(50)] public string Email { get; set; } } }
18.923077
45
0.638211
[ "MPL-2.0" ]
carloskcheung/fossa-cli
test/fixtures/nuget/src/Core/Models/Api/Request/Accounts/PasswordHintRequestModel.cs
248
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PSTParse.NodeDatabaseLayer { public class SLENTRY { public ulong SubNodeNID; public ulong SubNodeBID; public ulong SubSubNodeBID; public SLENTRY(byte[] bytes) { ...
23.590909
66
0.643545
[ "MIT" ]
Sharpiro/PST-Parser
PSTParse/NodeDatabaseLayer/SLENTRY.cs
521
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...
37.744186
220
0.674677
[ "ECL-2.0", "Apache-2.0" ]
chivandikwa/pulumi-aws
sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementIpSetReferenceStatementIpSetForwardedIpConfig.cs
1,623
C#
using GoogleAnalyticsTracker.Simple; using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; using GoogleAnalyticsTracker.Core.Interface; using System.Net.NetworkInformation; using System.Xml; namespace ConvertLibrary { public...
31.064935
147
0.562709
[ "Apache-2.0" ]
yaitza/TestLinkConverter
ConvertLibrary/GoogleAnalyticsTracker.cs
2,550
C#
using UnityEngine; using System; using System.Collections; using Wikitude; using System.Collections.Generic; using System.Runtime.InteropServices; /// <summary> /// Handles forwarding the camera frame to the custom renderer. /// </summary> public class CustomRenderingController : SampleController { private struct In...
28
145
0.715686
[ "MIT" ]
Aries0331/Corgi-VoiceControl
Corgi_Markerless/Assets/Wikitude/Samples/Scripts/InputPlugin/CustomRenderingController.cs
5,714
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 "li...
31.389831
120
0.645248
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/AugmentedAIRuntime/Generated/Model/StopHumanLoopRequest.cs
1,852
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SDPCRL.COM { [Serializable] public class LibClientInfo { //public string AccoutId { get; set; } public Language Language { get; set; } public string SessionId { get; set; } publ...
22.15
46
0.620767
[ "Apache-2.0" ]
zyylonghai/BWYSDP
SDPCRL.COM/LibClientInfo.cs
445
C#
/* * CGEventSource.cs: bindings to the ApplicationServices framework's CoreGraphics CGEventSource API * * Copyright 2013, 2014 Xamarin Inc * All Rights Reserved * * Authors: * Miguel de Icaza */ #if MONOMAC using System; using System.Runtime.InteropServices; #if !NO_SYSTEM_DRAWING using System.Drawing; #...
30.830508
150
0.788162
[ "BSD-3-Clause" ]
Acidburn0zzz/xamarin-macios
src/CoreGraphics/CGEventSource.cs
5,457
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
31.795455
116
0.670479
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet-intl-en
TencentCloud/As/V20180419/Models/ModifyAutoScalingGroupResponse.cs
1,399
C#
/* * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except ...
33.296296
89
0.673341
[ "Apache-2.0" ]
zbw911/CasServer
CASLIB/NCAS/jasig/ticket/support/RememberMeDelegatingExpirationPolicy.cs
2,697
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
35.308642
128
0.577156
[ "Apache-2.0" ]
tencentcloudapi-test/tencentcloud-sdk-dotnet
TencentCloud/Cmq/V20190304/Models/QueueSet.cs
10,516
C#
using System; using dnlib.DotNet; namespace Confuser.Core.Project.Patterns { /// <summary> /// A function that indicate the type of type(?). /// </summary> public class IsTypeFunction : PatternFunction { internal const string FnName = "is-type"; /// <inheritdoc /> public override string Name { get {...
25.617021
80
0.690199
[ "MIT" ]
AgileJoshua/ConfuserEx
Confuser.Core/Project/Patterns/IsTypeFunction.cs
1,206
C#
/* * Copyright (c) Contributors, http://virtual-planets.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * For an explanation of the license of each contributor and the content it * covers please see the Licenses directory. * * Redistribution and use in source and binary forms, with or wit...
32.114234
139
0.479787
[ "MIT" ]
johnfelipe/Virtual-Universe
Universe/Framework/Utilities/PriorityQueue.cs
35,422
C#
using System; using System.Xml.Serialization; using System.ComponentModel.DataAnnotations; using BroadWorksConnector.Ocip.Validation; using System.Collections.Generic; namespace BroadWorksConnector.Ocip.Models { /// <summary> /// Add a collaborate bridge to a group. /// The domain is required in the servic...
33.639485
177
0.611763
[ "MIT" ]
JTOne123/broadworks-connector-net
BroadworksConnector/Ocip/Models/GroupCollaborateBridgeConsolidatedAddInstanceRequest.cs
7,838
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace DataWF.Test.Web.Service { public cla...
25.72
77
0.66874
[ "MIT" ]
alexandrvslv/datawf
DataWF.Test.Web.Service/Program.cs
645
C#
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com // ReSharper disable CheckNamespace // ReSharper disable CommentTypo // ReSharper disable IdentifierTypo // ReSharper disable UnusedMember.Global // ReSharper...
19.967213
84
0.573071
[ "MIT" ]
amironov73/ManagedIrbis5
Source/Libs/ManagedIrbis5/Source/Mx/Commands/NopCommand.cs
1,220
C#
using System; namespace Game.Pong { internal class Ball : GameElement, IBall { private readonly IGameField _gameField; private int _x; private int _y; private int _impulsX; private int _impulsY; private int _oldX; private int _oldY; public Ball(IGameField gameField, int x, int y, string symbo...
15.757282
78
0.586568
[ "MIT" ]
AstreyRize/Game.Pong
Ball.cs
1,625
C#
// Copyright 2012 Max Toro Q. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
31.032258
75
0.739085
[ "Apache-2.0" ]
maxtoroq/MvcPages
src/MvcPages/MvcViewPage`1.cs
964
C#
/******************************************************************************* * Copyright 2012-2019 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...
51.200637
282
0.631648
[ "Apache-2.0" ]
JekzVadaria/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/KeyManagementService/Basic/New-KMSAlias-Cmdlet.cs
16,077
C#
namespace DataFactorySamples.Settings { public class TriggerSettings { public string ResourceGroupName { get;set;} public string FactoryName { get;set;} public string TriggerName { get;set;} } }
20.166667
51
0.636364
[ "MIT" ]
mvelosop/explore-azure-sdk
src/samples/DataFactorySamples/Settings/TriggerSettings.cs
244
C#
//Write a program that reads a rectangular matrix of size N x M and finds in it the square 3 x 3 that has maximal sum of its elements. using System; class MaximalSum { static void Main() { Console.Write("Enter N = "); int n = int.Parse(Console.ReadLine()); Console.Write("Enter M = ")...
25.333333
140
0.363844
[ "MIT" ]
BiserSirakov/TelerikAcademyHomeworks
C# - Part 2/Multidimensional Arrays/02.MaximalSum/MaximalSum.cs
1,750
C#
using System; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using System.Web.Http; using System.Web.Http.Description; using Microsoft.Bot.Connector; using Newtonsoft.Json; namespace LuisDialog_Stock_Bot { [BotAuthentication] public class MessagesController : ApiCont...
33.238095
123
0.574499
[ "MIT" ]
Aaron-Strong/BotBuilder
CSharp/Samples/Stock_Bot/LuisDialog_Stock_Bot/Controllers/MessagesController.cs
2,096
C#
using alexbegh.vMerge.Model.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace alexbegh.vMerge.StudioIntegration.Framework { class vMergeUIProvider : IVMergeUIProvider { private vMergePackage vMergePackage {...
22.375
72
0.574621
[ "BSD-3-Clause" ]
ChristopherGe/vmerge
vMerge/StudioIntegration/Framework/vMergeUIProvider.cs
1,255
C#
using Lucene.Net.Util; using System; using System.Collections.Generic; using System.IO; using JCG = J2N.Collections.Generic; namespace Lucene.Net.Analysis { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with ...
50.284591
187
0.61105
[ "Apache-2.0" ]
Ref12/lucenenet
src/Lucene.Net/Analysis/Analyzer.cs
31,981
C#
using System; using Ultraviolet.Core; namespace Ultraviolet.Graphics { /// <summary> /// Represents a factory method which constructs instances of the <see cref="Texture2D"/> class. /// </summary> /// <param name="uv">The Ultraviolet context.</param> /// <param name="pixels">A pointer to the raw p...
54.445833
168
0.633198
[ "Apache-2.0", "MIT" ]
MicroWorldwide/ultraviolet
Source/Ultraviolet/Shared/Graphics/Texture2D.cs
13,069
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Week5_InterstellarTravel { public partial class RegisterInterest : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ...
27.846154
93
0.541436
[ "MIT" ]
UNEW-INFT3050/INFT3050_19Sem2
Week5_InterstellarTravel/Week5_InterstellarTravel/RegisterInterest.aspx.cs
1,088
C#
using UnityEngine; // Common Joystick control // There're lots of these, you know [ExecuteInEditMode] public class CNJoystick : CNAbstractController { // --------------------------------- // Editor visible public properties // --------------------------------- /// <summary> /// Drag rad...
34.925134
121
0.622416
[ "MIT" ]
bryanoliveira/unity-zombit
Assets/Scripts/CNControls/CNJoystick.cs
6,533
C#
using System; // ReSharper disable InconsistentNaming // ReSharper disable IdentifierTypo // ReSharper disable CommentTypo namespace OpenCvSharp.Quality { /// <summary> /// Full reference GMSD algorithm /// </summary> public class QualityGMSD : QualityBase { private Ptr? ptrObj; /...
31.168317
115
0.536213
[ "BSD-3-Clause" ]
AJEETX/opencvsharp
src/OpenCvSharp/Modules/quality/QualityGMSD.cs
3,150
C#
namespace pipe.test.TestDoubles { public class StubFileSystem : IFileSystem { private readonly string _localFile; private readonly bool _fileExists; private readonly string[] _fileContents; public StubFileSystem(string localFile = null, string[] fileContents = null) { ...
36.8
84
0.650815
[ "MIT" ]
jensandresen/dotnet-pipe
src/pipe.test/TestDoubles/StubFileSystem.cs
736
C#
// Accord Statistics Library // The Accord.NET Framework // http://accord-framework.net // // Copyright © César Souza, 2009-2015 // cesarsouza at gmail.com // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as p...
33.829146
103
0.511364
[ "MIT" ]
kpandya3/WakeUpWithKinect
Accord.NET projects/Accord.Statistics/Distributions/Univariate/Continuous/LogisticDistribution.cs
13,480
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BlazorFluentUI.Demo.Shared.Models { class SearchItem { public string Name { get; set; } public string JobDescription { get; set; } } }
19.4
50
0.697595
[ "MIT" ]
Frank67618/BlazorFluentUI
Demo/BlazorFluentUI.Demo.Shared/Models/SearchItem.cs
293
C#
using System.IO; using Microsoft.AspNetCore.Hosting; namespace TreatBox { public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() ....
19.8
57
0.583333
[ "MIT" ]
taylulz/TreatBox
TreatBox/Program.cs
398
C#
using MaxMix.ViewModels; using Sentry; using Sentry.Protocol; using System; using System.Diagnostics; using System.Reflection; using System.Threading; using System.Windows; using System.Windows.Threading; namespace MaxMix { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial...
32.119565
121
0.601354
[ "Apache-2.0" ]
SchemingWeasels/maxmix-software
Desktop/Application/MaxMix/App.xaml.cs
2,957
C#