content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
// ------------------------------------------------------------------------------ // Copyright (c) 2015 Microsoft Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software witho...
41.794872
109
0.62362
[ "MIT" ]
jbatonnet/SmartSync
SmartSync.OneDrive/OneDriveSdk/Requests/Generated/SharedCollectionRequestBuilder.cs
3,260
C#
using System; using System.Linq; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Bot.Builder; using Microsoft.Bot.Builder.Integration; using Microsoft.Bot.Builder.Integration.AspNet.Core; using Microsoft.Bot.Configuration; using Microsoft.Bot.Connector.Authentication; using Micr...
40.951923
150
0.642874
[ "MIT" ]
InsightDI/BackMeUpBIAD
labs/lab2/start-here/BackMeUp/Startup.cs
4,261
C#
/* * Copyright 2019 Capnode AB * * 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 writi...
30.75
88
0.596808
[ "Apache-2.0" ]
Capnode/Algoloop
Algoloop.Wpf/ViewModel/TrackSymbolViewModel.cs
3,321
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using FluentAssertions; using Microsoft.NET.TestFramework.Assertions; using Microsoft.TemplateEngine.TestHelper; using Xunit.Abstractions; namespace Dotnet_new3.IntegrationTests { ...
34.3
149
0.614577
[ "MIT" ]
JanKrivanek/templating
test/dotnet-new3.UnitTests/Helpers.cs
1,715
C#
#region License /* Copyright 2011, 2013, 2018 James F. Bellinger <http://www.zer7.com/software/hidsharp> 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...
30.56383
102
0.604595
[ "ECL-2.0", "Apache-2.0" ]
vinogradniy/HidSharp
HidSharp/Reports/ReportDescriptorParseState.cs
2,875
C#
//----------------------------------------------------------------------------- // FILE: ChildWorkflowFuture.cs // CONTRIBUTOR: Jeff Lill // COPYRIGHT: Copyright (c) 2005-2022 by neonFORGE LLC. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file ...
34.403361
150
0.635076
[ "Apache-2.0" ]
jefflill/neonKUBE
Lib/Neon.Cadence/ChildWorkflowFuture.cs
4,096
C#
using System; using System.Drawing; using System.Windows.Forms; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using QuantConnect.Interfaces; using QuantConnect.Logging; using QuantConnect.Messaging; using QuantConnect.Packets; //using Gecko; //using Gecko.JQuery; namespace QuantConnect.Views.WinForms { publi...
39.512
198
0.574104
[ "Apache-2.0" ]
CircleOnCircles/Lean
UserInterface/WinForms/LeanWinForm.cs
9,880
C#
using System; namespace PrintDesignFinalizer.Engine { public class LambdaNodeVisitor : INodeVisitor { public LambdaNodeVisitor(Action<INode> nodeAction) { _nodeAction = nodeAction; } public void OnVisitNode(INode node) { _nodeAction(node); } private readonly Action<INode> _nodeAction; } }
15.85
52
0.735016
[ "MIT" ]
stu-smith/PrintDesignFinalizer
PrintDesignFinalizer/PrintDesignFinalizer.Engine/LambdaNodeVisitor.cs
319
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using MasteringEFCore.Transactions.Final.Data; using MasteringEFCore.Transactions.Final.Models; using Microsoft....
29.530928
117
0.519986
[ "MIT" ]
PacktPublishing/Mastering-Entity-Framework-Core
Chapter 9/Final/MasteringEFCore.Transactions.Final/Controllers/UsersController.cs
5,729
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 09.05.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
26.613139
147
0.532364
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D1/Query/Operators/SET_001/Equal/Complete2__objs/NullableSByte/NullableSByte/TestSet_504__param__03__NV.cs
3,648
C#
// // Copyright (c) 2004-2020 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // 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 s...
40.316456
127
0.681947
[ "BSD-3-Clause" ]
AlanLiu90/NLog
src/NLog/Targets/Wrappers/FilteringRule.cs
3,185
C#
using System; using System.Runtime.Serialization; namespace Stringier.Patterns { /// <summary> /// Thrown when a Consume failed to match /// </summary> [Serializable] public sealed class ConsumeFailedException : ParserException { public ConsumeFailedException() { } public ConsumeFailedException(String messa...
29.052632
108
0.757246
[ "BSD-3-Clause" ]
HugoRoss/Stringier
Patterns/Exceptions/ConsumeFailedException.cs
554
C#
using System; using System.Xml.Linq; using Umbraco.Core.Logging; using uSync8.Core; using uSync8.Core.Extensions; using uSync8.Core.Models; using uSync8.Core.Serialization; using Vendr.Core; using Vendr.Core.Api; using Vendr.Core.Models; using Vendr.uSync.Extensions; namespace Vendr.uSync.Serializers { [SyncSe...
34.697917
128
0.616331
[ "MIT" ]
Xanashi/vendr-usync
src/Vendr.uSync/Serializers/OrderStatusSerializer.cs
3,333
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace server.Migrations { public partial class initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Tasks", columns: table => ne...
32.612903
85
0.51731
[ "MIT" ]
isnakolah/Event-Tracker-System
server/Migrations/20210126045703_initial.cs
1,013
C#
using EPiServer.Personalization.Commerce.Tracking; using System.Collections.Generic; namespace Foundation.Features.CatalogContent.Package { public class GenericPackageViewModel : PackageViewModelBase<GenericPackage>, IEntryViewModelBase { public GenericPackageViewModel() { } p...
30.52381
100
0.714509
[ "Apache-2.0" ]
palle-mertz-merkle/Foundation
src/Foundation/Features/CatalogContent/Package/GenericPackageViewModel.cs
643
C#
using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Reactor.EventsClient.Helpers; using System; using System.Collections.Generic; using System.Text; namespace Reactor.EventsClient.Models.Enums { [JsonConverter(typeof(EventTypeConverter))] public enum EventType { Demo, DiversityI...
19.576923
47
0.671906
[ "MIT" ]
MikeCodesDotNET/Reactor-Events-API
Reactor.Models/Models/Enums/EventType.cs
511
C#
using Abp.Authorization; using Lpb.WebPortal.Authorization.Roles; using Lpb.WebPortal.Authorization.Users; namespace Lpb.WebPortal.Authorization { public class PermissionChecker : PermissionChecker<Role, User> { public PermissionChecker(UserManager userManager) : base(userManager) ...
22.666667
66
0.7
[ "Apache-2.0" ]
lpb243310820/MicroservicesDemo
Lpb.WebPortal/Lpb.WebPortal.Core/Authorization/PermissionChecker.cs
342
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using AspxCommerce.Core; using AspxCommerce.MegaCategory; /// <summary> /// Summary description for MegaCategoryWebService /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(C...
29.169492
144
0.694945
[ "MIT" ]
AspxCommerce/AspxCommerce2.7
AspxCommerce.MegaCategory/MegaCategoryWebService.cs
1,723
C#
using System; using System.Collections.Generic; using System.Data; namespace BarcodeLib.Symbologies { /// <summary> /// Code 128 encoding /// Written by: Brad Barnhill /// </summary> class Code128 : BarcodeCommon, IBarcode { public static readonly char FNC1 = Convert.ToChar(200); ...
49.604374
182
0.448639
[ "Apache-2.0" ]
markhazleton/barcodelib
BarcodeStandard/Symbologies/Code128.cs
24,951
C#
using Assistant.Net.Messaging.Exceptions; using System; namespace Assistant.Net.Scheduler.Contracts.Exceptions { /// <summary> /// The queried data wasn't found. /// </summary> public class NotFoundException : MessageException { /// <summary/> public NotFoundException() : base(...
26.904762
88
0.621239
[ "Apache-2.0" ]
iotbusters/assistant.net.iot
src/Scheduler/Scheduler.Contracts/Exceptions/NotFoundException.cs
567
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.523077
137
0.568724
[ "Unlicense" ]
ExpLife0011/WindowsRpcClients
Win10_1809/httpprxm.dll/2e6035b2-e8f1-41a7-a044-656b439c4c34_1.0.cs
8,716
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(fileName = "NewAbility", menuName = "AbilitySystem/Ability")] public class Ability : ScriptableObject { public new string name; public string description; public IEffect[] effects; public bool isActive = tr...
23.304348
78
0.664179
[ "MIT" ]
neginsdii/GAME3023-Assignment
Assets/Scripts/Encounter/Ability.cs
536
C#
using OA.Ultima.Core.Network.Packets; using OA.Ultima.Data; using OA.Ultima.Login.Data; using System; namespace OA.Ultima.Network.Client { public class CreateCharacterPacket : SendPacket { internal CreateCharacterPacket(CreateCharacterData data, short locationIndex, short slotNumber, int clie...
43.914894
118
0.589147
[ "MIT" ]
BclEx/object-assets
src/ObjectManager/Object.Ultima.Game/Network/Client/CreateCharacterPacket.cs
2,066
C#
namespace PasswordManager.Encoding { public class ASCIIEncoder : Encoder { public override byte[] Decode(string encoded) { return System.Text.Encoding.ASCII.GetBytes(encoded); } public override string Encode(byte[] data, int offset, int count) { return System.Text.Encoding.ASCII.GetString(data, offs...
21.3125
68
0.72434
[ "MIT" ]
lontivero/PasswordManager
PasswordManager/Encoding/ASCIIEncoder.cs
343
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> //--...
38.915929
215
0.568505
[ "Apache-2.0" ]
MaherJendoubi/roslyn
src/EditorFeatures/CSharp/CSharpEditorResources.Designer.cs
8,797
C#
using Newtonsoft.Json.Linq; using NJsonSchema.Validation; using NJsonSchema.Validation.FormatValidators; using System; using System.Globalization; using Xunit; namespace NJsonSchema.Tests.Validation { public class CustomValidationTests { [Fact] public void When_format_date_time_correct_with_cu...
33.467742
140
0.583614
[ "MIT" ]
NJsonSchema/Core
src/NJsonSchema.Tests/Validation/CustomValidationTests.cs
2,077
C#
using System; using System.Collections.Generic; using System.Text; namespace SilentWave.Obj2Gltf.Geom { public class PolygonUtil { // private static Boolean IsIntersect(SVec2 ln1Start, SVec2 ln1End, SVec2 ln2Start, SVec2 ln2End) { //https://ideone.com/PnPJgb va...
32.9875
114
0.405267
[ "MIT" ]
SilentWave/ObjConvert
src/Obj2Gltf/Geom/PolygonUtil.cs
5,280
C#
using System; using System.Collections.Generic; using Unity.UIWidgets.painting; using Unity.UIWidgets.widgets; using UnityEngine; namespace WidgetFromHtml.Core { internal class StyleMargin { Widget _marginHorizontalBuilder ( Widget w, CssLengthBox b, TextSty...
28.58
108
0.507348
[ "MIT" ]
dianchu/HypertextForUnity
hypertext/Assets/WidgetFromHtml/Core/Runtime/internal/ops/style_margin.cs
2,860
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace WiredBrainCoffee.Models { public class Contact { [Required] public string Name { get; set; } [Phone] [Required] publi...
19.5
44
0.61144
[ "MIT" ]
bhageshpuri/wired-brain-coffee-1
src/WiredBrainCoffee/Models/Contact.cs
509
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...
37.790909
185
0.631946
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/MediaConvert/Generated/Model/Internal/MarshallTransformations/CaptionDescriptionPresetUnmarshaller.cs
4,157
C#
using System; namespace DP08Decorator { public class Canon : Camera { public override void TakePhoto() { Console.WriteLine("Canon Take Photo"); } } }
15.461538
51
0.557214
[ "MIT" ]
mazhongbin/designpattern
DP08Decorator/Canon.cs
203
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.Polardb20170801.Models { public class DescribeDBClusterMonitorResponse : TeaModel { [NameInMap("Period")] [Validation(Required=true)] ...
21.043478
62
0.669421
[ "Apache-2.0" ]
alibabacloud-sdk-swift/alibabacloud-sdk
polardb-20170801/csharp/core/Models/DescribeDBClusterMonitorResponse.cs
484
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 UnityEngine; namespace Microsoft.MixedReality.Toolkit.Physics { /// <summary> /// Implements ...
45.131579
152
0.652672
[ "MIT" ]
AzureMentor/MapsSDK-Unity
SampleProject/Assets/MixedRealityToolkit/Utilities/Physics/TwoHandMoveLogic.cs
5,147
C#
using System.Collections.Generic; namespace O10.Client.Web.DataContracts.IdentityProvider { public class IssuanceDetailsDto { public IssuanceDetailsRoot RootAttribute { get; set; } public IEnumerable<IssuanceDetailsAssociated> AssociatedAttributes { get; set; } public class IssuanceDe...
31.807692
88
0.637243
[ "Apache-2.0" ]
muaddibco/O10city
Client/Web/O10.Client.Web.DataContracts/IdentityProvider/IssuanceDetailsDto.cs
829
C#
// <copyright file="Convolution2DFilter.cs" company="James Jackson-South"> // Copyright (c) James Jackson-South and contributors. // Licensed under the Apache License, Version 2.0. // </copyright> namespace ImageProcessorCore.Filters { using System; using System.Threading.Tasks; /// <summary> /// Def...
39.890909
149
0.394257
[ "Apache-2.0" ]
SeanKilleen/ImageProcessor
src/ImageProcessorCore/Filters/Convolution/Convolution2DFilter.cs
4,390
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using System.Net; using Newtonsoft.Json; using System.IO; namespace Crypto_Prices { static class Program { /// <summary> /// The main entry point for the...
18.69697
66
0.583468
[ "MIT" ]
dtuck20/Crypto-Prices
Crypto Prices/Crypto Prices/Program.cs
619
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading; using System.Windows.Automation; namespace AutomationConnectIQ.Lib { /// <summary> /// シミュレーターの操作 /// </summary> public partial class Simulator { // このファイルでは設定以外のメニューでの設定...
38.4
159
0.601852
[ "MIT" ]
take4blue/AutomationConnectIQ
Utility/SimulatorSetting2.cs
1,960
C#
using System; using System.Collections.Generic; using System.Text; using System.Data; namespace Interface.Pharmacy { public interface IPediatric { DataSet GetPediatricFields(int PatientID); DataSet GetExistPaediatricDetails(int PatientID); int SaveUpdatePaediatricDetail(int patientID, ...
55.025
492
0.69582
[ "MIT" ]
uon-crissp/IQCare
SourceBase/DataAccess/Interface.Pharmacy/IPediatric.cs
4,402
C#
#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; name...
36.390887
223
0.520461
[ "MIT" ]
zxsean/DCET
Unity/Assets/Model/XLua/Gen/DCETModelNetworkComponentWrap.cs
15,177
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AdventCode19 { class Program { static void Main(string[] args) { var sections = File.ReadAllText("input.txt") .Split(Environment.NewLine + Environment.NewLine); ...
37.384615
122
0.546639
[ "MIT" ]
HF0/advent-of-code-2020
src/AdventCode19/Program.cs
2,918
C#
#region Copyright notice and license // Copyright 2019 The gRPC Authors // // 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 ...
41.197802
276
0.678848
[ "Apache-2.0" ]
Johnhuang1121/grpc
src/csharp/Grpc.Microbenchmarks/UnaryCallOverheadBenchmark.cs
3,749
C#
namespace Shotr.Core.MimeDetect.Matchers.TextSignature { public class Rust : BaseTextSignature { public override string[] Signatures => new[] { "#[derive(Debug)]", "pub enum", "match ", "&'a ", " -> Self", "fn main()", ...
23.058824
57
0.479592
[ "Apache-2.0" ]
shotr-io/shotr-3
src/Shotr.Core.MimeDetect/Matchers/TextSignature/Rust.cs
392
C#
using System.Collections.Generic; namespace TmdbEasy.DTO.Changes { public class ChangeList { public List<ChangeResult> Results { get; set; } public int Page { get; set; } public int Total_pages { get; set; } public int Total_results { get; set; } } }
22.846154
55
0.622896
[ "MIT" ]
PoLaKoSz/TMdbEasy
src/DTO/Changes/ChangeList.cs
299
C#
using Serilog; var builder = WebApplication.CreateBuilder(args); Log.Logger = new LoggerConfiguration() .ReadFrom.Configuration(builder.Configuration) .CreateLogger(); builder.Host.UseSerilog(Log.Logger); builder.Services.AddServices(builder.Configuration); var app = builder.Build(); app.AddWebApplication...
20.352941
52
0.771676
[ "MIT" ]
eecmachado/AspnetMicroservices_Store
src/Services/Catolog/Catolog.Api/Program.cs
346
C#
#region using System; using collections.mathematics.src.List; using collections.src; #endregion namespace collections.mathematics.src.Sets { [Serializable] public sealed class AppaSet_bool2x2 : AppaSet<bool2x2, AppaList_bool2x2> { } }
15.875
76
0.751969
[ "MIT" ]
ChristopherSchubert/com.appalachia.unity3d.appa.collections.mathematics
src/Sets/AppaSet_bool2x2.cs
254
C#
// Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef using Beef.Caching.Policy; using System; namespace Beef.Caching { /// <summary> /// Enables the core cache capabilities including extended <see cref="Flush"/> (see <see cref="OnFlushCache"/>) support. /// </summ...
46.541353
221
0.617286
[ "MIT" ]
vishal-sharma/Beef
src/Beef.Core/Caching/CacheCoreBase.cs
6,192
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Skyline.API.Application.Commands; using Skyline.API.Application.Queries; using Skyline.API.ViewModels; using Skyline.Domain.OrderAggregate; using MediatR; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.M...
30.529412
102
0.622993
[ "MIT" ]
zhaobingwang/Skyline
MicroServicesArchitecture/src/Skyline.API/Controllers/OrderController.cs
1,559
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" file ...
35.548673
130
0.631815
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/src/Core/Amazon.Runtime/CredentialManagement/SAMLEndpoint.cs
4,017
C#
using Microsoft.AspNet.Identity; using System; using System.Collections.Generic; using System.Linq; using WebSite1; public partial class Account_Manage : System.Web.UI.Page { protected string SuccessMessage { get; private set; } protected bool CanRemoveExternalLogins { get...
31.614173
126
0.564134
[ "MIT" ]
kensaku-okada/MIS531TeamProject
ASP.NET/MIS531Project/Account/Manage.aspx.cs
4,017
C#
 namespace Final_Project { partial class Average_Result { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summ...
44.796296
169
0.56759
[ "MIT" ]
Lincoln-Zhou/Survey-Adjustment-Calculation
Final Project/Average_Result.Designer.cs
4,872
C#
#pragma warning disable SA1600 // Elements should be documented namespace Accusoft.PrizmDocServer.Exceptions { internal class InnerErrorData { internal InnerErrorData(string errorCode, string rawErrorDetails = null) { this.ErrorCode = errorCode; this.RawErrorDetails = ra...
24.833333
80
0.662192
[ "MIT" ]
Accusoft/PrizmDocServerDotNetSDK
PrizmDocServerSDK/Exceptions/InnerErrorData.cs
447
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; using System.R...
54.470588
147
0.65162
[ "MIT" ]
DotNet-CoreCLR-20170826/CoreCLR
src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs
9,260
C#
namespace Deltatre.BallDetector.Onnx.Demo.Extensions { using System.Drawing; public static class RectangleExtensions { public static float Area(this RectangleF source) { return source.Width * source.Height; } } }
20.538462
56
0.640449
[ "MIT" ]
deltatrelabs/deltatre-net-conf-2022-mlnet
src/BallDetectorOnnxDemo/Deltatre.BallDetector.Onnx.Demo.YoloModel/Extensions/RectangleExtensions.cs
269
C#
using DCL.Components; using DCL.Helpers; using DCL.Models; using NUnit.Framework; using System.Collections; using System.Collections.Generic; using DCL; using UnityEngine; using UnityEngine.TestTools; public class ParametrizedShapesTests : IntegrationTestSuite_Legacy { [UnityTest] public IEnumerator BoxShapeUp...
38.544236
180
0.70265
[ "Apache-2.0" ]
0xBlockchainx0/unity-renderer
unity-renderer/Assets/Scripts/MainScripts/DCL/Components/ParametrizedShapes/Tests/ParametrizedShapesTests.cs
14,377
C#
//////////////////////////////////////////////////////////////////////////////// //EF Core Provider for LCPI OLE DB. // IBProvider and Contributors. 06.07.2021. using System; using System.Reflection; namespace Lcpi.EntityFrameworkCore.DataProvider.LcpiOleDb.Basement.EF.Dbms.Firebi...
34.954545
130
0.575423
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Code/Provider/Source/Basement/EF/Dbms/Firebird/V03_0_0/Query/Local/D0/Expressions/Op2/Code/LessThan/TimeOnly/Op2_Code__LessThan___TimeOnly__NullableTimeOnly.cs
1,540
C#
using Newtonsoft.Json; using Telegram.Bot.Types; using Telegram.Bot.Types.Enums; using Xunit; namespace Telegram.Bot.Tests.Unit.Serialization { public class MessageEntityTests { [Fact(DisplayName = "Should deserialize message entity with phone number type")] public void Should_Deserialize_Mess...
31.657534
88
0.566421
[ "MIT" ]
AKomyshan/Telegram.Bot
test/Telegram.Bot.Tests.Unit/Serialization/MessageEntityTests.cs
2,313
C#
using System; using Terminal.Gui; namespace tempalted { class Box10x : View { public Box10x (int x, int y) : base (new Rect (x, y, 10, 10)) { } public override void Redraw (Rect region) { Driver.SetAttribute (ColorScheme.Focus); for (int y = 0; y < ...
22.695652
69
0.415709
[ "MIT" ]
smacken/templated
Views/Box10x.cs
522
C#
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// <summary> /// AOP API: alipay.open.app.property.message.send /// </summary> public class AlipayOpenAppPropertyMessageSendRequest : IAopRequest<AlipayOpenAppPropertyMessageSendRe...
23.681818
112
0.606526
[ "Apache-2.0" ]
Varorbc/alipay-sdk-net-all
AlipaySDKNet/Request/AlipayOpenAppPropertyMessageSendRequest.cs
2,621
C#
namespace RazorLight.Internal { public interface ICharBufferSource { char[] Rent(int bufferSize); void Return(char[] buffer); } }
16
38
0.625
[ "MIT" ]
Rizzen/Blog.Core
src/RazorLight/Internal/Buffering/ICharBufferSource.cs
162
C#
using System; using System.Collections.Generic; using System.Text.Json.Serialization; namespace API.Models { public class PaginatedList<T> { public IList<T> Items { get; } public int PageIndex { get; } public int TotalPages { get; } public int TotalCount { get; } publi...
25.888889
84
0.60372
[ "MIT" ]
M-Meydan/SwoopFundingTest
CompanyHouse/Models/PaginatedList.cs
701
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.ResourceManager; using Azure.ResourceManager.KeyVault.Models; using Azu...
66.372549
236
0.692007
[ "MIT" ]
damodaravadhani/azure-sdk-for-net
sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Extensions/KeyVaultExtensions.cs
30,465
C#
namespace NLua.Method { public class LuaEventHandler { public LuaFunction Handler = null; public void HandleEvent(object[] args) { Handler.Call(args); } } }
17.75
46
0.558685
[ "MIT" ]
Auios/NLua
src/Method/LuaEventHandler.cs
213
C#
// Copyright (c) 2008-2018, Hazelcast, Inc. 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 required...
37.838542
108
0.602202
[ "Apache-2.0" ]
asimarslan/hazelcast-csharp-client
Hazelcast.Test/Hazelcast.Client.Test.Serialization/ClassAndFieldDefinitionTest.cs
7,267
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...
40.863309
144
0.602993
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/StorSimple/AccessControlRecord.cs
5,680
C#
using System; using MathNet.Numerics.LinearAlgebra; using PuzzleBox.NeuralNets.Algebra; using PuzzleBox.NeuralNets.Training; namespace PuzzleBox.NeuralNets.Layers.Weighted { public class DenseLayer : WeightsLayerBase { public DenseLayer(Size inputSize, Size outputSize) : base(inputSize, outpu...
36.637931
101
0.625882
[ "Apache-2.0" ]
JasonKStevens/PuzzleBox.NeuralNets
PuzzleBox.NeuralNets/Layers/Weighted/DenseLayer.cs
2,127
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SortudoFeliz { public class NumeroSortudo { public static bool Sortudo(int numero) { bool resultado = false; for (int i = 2; i < numero; i++) ...
19.8125
46
0.42429
[ "Apache-2.0" ]
asafcris/NumerosFelizesSortudos
NumeroSortudoFeliz/SortudoFeliz/NumeroSortudo.cs
636
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Fritz.Serialization { // NOTE: Generated code may require at least .NET Framework 4.5 or .NET Core/Standard 2.0. /// <remarks/> [System.SerializableAttribute()] [System.Compone...
22.033097
94
0.460515
[ "MIT" ]
chstorb/Fritz
Fritz/Serialization/Contact.cs
9,322
C#
namespace BasicSalesSystem.Web.Requests.Customer { using FluentValidation; public class GetCustomersListRequest { public string SearchQuery { get; set; } public string SortBy { get; set; } public bool SortDesc { get; set; } public int Page { get; set; } public int P...
24.363636
52
0.632463
[ "MIT" ]
fcapellino/net-core-vuetify-mongodb-sales-system
BasicSalesSystem.Web/Requests/Customer/GetCustomersListRequest.cs
538
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.IO; namespace Microsoft.Owin.FileSystems { /// <summary> /// Looks up files using the on-disk file system /// </...
32.833333
145
0.483414
[ "Apache-2.0" ]
15901213541/-OAuth2.0
src/Microsoft.Owin.FileSystems/PhysicalFileSystem.cs
8,471
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...
36.141026
158
0.692444
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/AppMesh/Generated/Model/Internal/MarshallTransformations/VirtualGatewayListenerTlsValidationContextMarshaller.cs
2,819
C#
using UnityEngine; namespace LD45 { public class Singleton<T> : MonoBehaviour where T : MonoBehaviour { private static T instance = null; public static T I { get { if (instance == null) { instance = FindObjectOfType<T>(); if (instance == null) { Debug.LogWarning("Singleton<" + typeof(T).N...
19.47619
88
0.608802
[ "MIT" ]
Xenation/Ludum-Dare-45
Assets/Scripts/Singleton.cs
411
C#
using LearnLeaderBoardKata.LeaderBoard.Core.Interfaces; using LearnLeaderBoardKata.LeaderBoard.Core.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LearnLeaderBoardKata.LeaderBoard.Core.Boards { public class RacingBoardCalculator...
30.166667
145
0.775322
[ "Unlicense" ]
kamrul1/LearnLearderBoardKata
LearnLeaderBoardKata.LeaderBoard/Core/Boards/RacingBoardCalculator.cs
545
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...
40.947826
196
0.639839
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/IoTAnalytics/Generated/Model/Internal/MarshallTransformations/DeleteChannelResponseUnmarshaller.cs
4,709
C#
using System; using AElf.Kernel; using AElf.Sdk.CSharp.State; using AElf.Kernel.SmartContract.Sdk; using AElf.Types; using Moq; using Shouldly; using Xunit; namespace AElf.Sdk.CSharp.Tests { public class StateTest { internal T GetValue<T>() { if (typeof(T) == typeof(bool)) ...
33.982857
106
0.523457
[ "MIT" ]
IamWenboZhang/AElf
test/AElf.Sdk.CSharp.Tests/StateTest.cs
5,947
C#
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// <summary> /// AOP API: alipay.commerce.cityfacilitator.script.query /// </summary> public class AlipayCommerceCityfacilitatorScriptQueryRequest : IAopRequest<AlipayCom...
26.217742
129
0.570901
[ "Apache-2.0" ]
554393109/alipay-sdk-net-all
AlipaySDKNet.Standard/Request/AlipayCommerceCityfacilitatorScriptQueryRequest.cs
3,281
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using Discord; using Discord.WebSocket; using DiscordBot.Data; using DiscordBot.Extensions; using HtmlAgilityPack; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace Disc...
35.735169
137
0.522796
[ "MIT" ]
RafaGnious/UDHBot
DiscordBot/Services/UpdateService.cs
16,869
C#
using System.Collections.ObjectModel; namespace MASGlobalTest.Areas.HelpPage.ModelDescriptions { public class ComplexTypeModelDescription : ModelDescription { public ComplexTypeModelDescription() { Properties = new Collection<ParameterDescription>(); } public Collec...
27.642857
80
0.70801
[ "MIT" ]
jrarturo/MASGlobalTest
MASGlobalTest/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs
387
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HttpPlayback.Shared.Tests.Helpers { /// <summary> /// Helper class that ensures that <see cref="TestFilePaths.TestDataPath"/> is clean for each set of tests /// </...
28.642857
110
0.67207
[ "Apache-2.0" ]
petabridge/http-playback
tests/core/HttpPlayback.Shared.Tests/Helpers/TestDataDirectoryHelpers.cs
804
C#
using System.Net.Http; using Umbraco.Core; using Umbraco.Core.Logging; using Umbraco.Web; namespace dashboardUtilities { using System; using System.Linq; using System.Net.Mime; using umbraco.BasePages; using Umbraco.Core.IO; public partial class FeedProxy : UmbracoEnsuredPage ...
35.285714
126
0.503374
[ "MIT" ]
agrath/Umbraco-CMS
src/Umbraco.Web/umbraco.presentation/umbraco/dashboard/FeedProxy.aspx.cs
2,225
C#
using System; using System.Collections.Generic; using Newtonsoft.Json; namespace Voximplant.API.Response { /// <summary> /// The specific account callback details. Received as part of the [AccountCallback] structure. /// </summary> public class TranscriptionCompleteCallback { /// <summary>...
27.894737
99
0.679245
[ "MIT" ]
voximplant/apiclient-dotnet
apiclient/Response/TranscriptionCompleteCallback.cs
530
C#
namespace MusacaRT.Data { public class DatabaseConfiguration { public const string ConnectionString = @"Server=.\SQLEXPRESS;Database=MusacaDBRT;Trusted_Connection=True;Integrated Security=True;"; } }
25.888889
105
0.703863
[ "MIT" ]
EmORz/SULS
MusacaRT.Data/DatabaseConfiguration.cs
235
C#
// // DebugHelpers.cs // // Author: // Martin Baulig <mabaul@microsoft.com> // // Copyright (c) 2019 Microsoft Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without...
40.898551
162
0.734231
[ "MIT" ]
xamarin/linker-optimizer
Mono.Linker.Optimizer/Mono.Linker.Optimizer/DebugHelpers.cs
2,824
C#
using System; namespace RegTesting.Service { /// <summary> /// A helperclass for some common functions. /// </summary> public class Helper { private static readonly Random Rnd = new Random(); /// <summary> /// Get a unique number for screenshot. /// </summary> /// <returns>a integer for a unique scree...
21.409091
69
0.66879
[ "Apache-2.0" ]
hotelde/regtesting
RegTesting.Service/Helper.cs
473
C#
using System; namespace CSharpMiscLibrary.Exceptions { /// <summary> /// Invalid equality custom exception. /// </summary> [Serializable()] public class InvalidEqualityException : System.Exception { public InvalidEqualityException() : base() { } public InvalidEqualityException(...
37.705882
176
0.714509
[ "MIT" ]
davikawasaki/csharp-misc-library
CSharpMiscLibrary/Exceptions/InvalidEqualityException.cs
643
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. // // This file is a C# translation of the NavigationViewItemBase.cpp file from WinUI controls. // using Uno.UI.Helpers.WinUI; using Windows.UI.Xaml.Media; namespac...
27.279412
106
0.752022
[ "Apache-2.0" ]
06needhamt/uno
src/Uno.UI/UI/Xaml/Controls/NavigationView/NavigationViewItemBase.cs
1,855
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. // <auto-generated /> #if HAS_REMOTING using System.Linq.Expressions; using System.Reflection; using System.Runtim...
47.634921
198
0.645118
[ "MIT" ]
Awsmolak/ReactiveUI
src/ReactiveUI.Uwp/Rx/Linq/Observable.Remoting.cs
6,004
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> //---...
42.458333
81
0.648675
[ "MIT" ]
hristokrastev/CSharpAdvace
Functional Programming/Problem 1. Action Point/Problem 1. Action Point/obj/Debug/netcoreapp3.1/Problem 1. Action Point.AssemblyInfo.cs
1,019
C#
using System; using System.Runtime.InteropServices; using ff14bot.Enums; using ff14bot.Managers; namespace LlamaLibrary.Structs { [StructLayout(LayoutKind.Explicit, Size = 0xA0)] public struct GCSupplyItem { [FieldOffset(0)] public IntPtr ItemPtr; [FieldOffset(0x68)] publi...
26.093023
153
0.627451
[ "MIT" ]
nt153133/__LlamaLibrary
Structs/GCSupplyItem.cs
1,124
C#
namespace Week4.Demo { using System; using Common.Lab; class Program { static void Main(string[] args) { CarStatic voiture = new CarStatic(); voiture.ReservoirEssence = CarStatic.CapaciteReservoirEssence; AfficherVoiture(voiture); Console...
36.615385
142
0.563025
[ "MIT" ]
enriqueescobar-askida/UdeS.Cefti.Inf731
Week4.Demo/Program.cs
1,431
C#
using System; using System.Data.Entity; using System.Linq; using System.Threading.Tasks; using AutoMapper; using AutoMapper.QueryableExtensions; using MediatR; using SFA.DAS.EmployerAccounts.Data; using SFA.DAS.EmployerAccounts.Dtos; namespace SFA.DAS.EmployerAccounts.Queries.GetTransferConnectionInvitations { pu...
44.615385
171
0.732184
[ "MIT" ]
SkillsFundingAgency/das-employeraccounts
src/SFA.DAS.EmployerAccounts/Queries/GetTransferConnectionInvitations/GetTransferConnectionInvitationsQueryHandler.cs
1,742
C#
using System.Maui.CustomAttributes; using System.Maui.Internals; using System; using System.Linq; using System.ComponentModel; using System.Collections.ObjectModel; #if UITEST using Xamarin.UITest; using NUnit.Framework; #endif namespace System.Maui.Controls.Issues { [Preserve(AllMembers = true)] [Issue(IssueTracke...
26.898039
185
0.698061
[ "MIT" ]
AswinPG/maui
System.Maui.Controls.Issues/System.Maui.Controls.Issues.Shared/Bugzilla57910.cs
6,859
C#
using Melinoe.Shared.Objectives; namespace Melinoe.Client.State.UpdateObjectives { public class UpdateObjectiveAction { public Objective Objective { get; } public bool IsEnabled { get; } public UpdateObjectiveAction(Objective objective, bool isEnabled) { Objective ...
22.705882
73
0.637306
[ "MIT" ]
alexnoddings/Melinoe
Client/State/UpdateObjectives/UpdateObjectiveAction.cs
388
C#
#region License and Terms // MoreLINQ - Extensions to LINQ to Objects // Copyright (c) 2010 Leopold Bushkin. 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 // // ...
38.072464
117
0.577274
[ "Apache-2.0" ]
FeodorFitsner/MoreLINQ
MoreLinq.Test/LeadTest.cs
5,254
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...
37.434783
190
0.615563
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/DataFactory/Latest/Inputs/XeroLinkedServiceArgs.cs
4,305
C#
using Avalonia.Controls; using Avalonia.Markup.Xaml; namespace AvalonStudio.Debugging.GDB.JLink { public class JLinkSettingsFormView : UserControl { public JLinkSettingsFormView() { InitializeComponent(); } private void InitializeComponent() { Av...
20.333333
52
0.620219
[ "MIT" ]
FlaviusHouk/AvalonStudio
AvalonStudio/AvalonStudio.Debugging.GDB.JLink/JLinkSettingsFormView.xaml.cs
366
C#
// // This file has been generated automatically by MonoDevelop to store outlets and // actions made in the Xcode designer. If it is removed, they will be lost. // Manual changes to this file may not be handled correctly. // using Foundation; namespace MyKeyboardExtension { [Register ("KeyboardViewController")] pa...
20.25
81
0.748148
[ "BSD-3-Clause" ]
1975781737/xamarin-macios
msbuild/tests/MyKeyboardExtension/KeyboardViewController.designer.cs
407
C#
#if CSHotFix using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using CSHotFix.CLR.TypeSystem; using CSHotFix.CLR.Method; using CSHotFix.Runtime.Enviorment; using CSHotFix.Runtime.Intepreter; using CSHotFix.Runtime.Stack; using CSHotFix.Reflectio...
39.670103
208
0.669179
[ "MIT" ]
591094733/cshotfix
CSHotFix_SimpleFramework/Assets/CSHotFixLibaray/Generated/CLRGen1/UnityEngine_OcclusionPortal_Binding.cs
3,848
C#
namespace Projector.Fakes.WithSharedTraitSpec { public interface ITypeB { } }
16.6
46
0.759036
[ "Apache-2.0" ]
sharpjs/Projector
Projector.Tests.FakeAssembly/Fakes/WithSharedTraitSpec/ITypeB.cs
85
C#
namespace UnityEngine.Rendering.UI { /// <summary> /// DebugUIHandler for vertical layoyut widget. /// </summary> public class DebugUIHandlerVBox : DebugUIHandlerWidget { DebugUIHandlerContainer m_Container; internal override void SetWidget(DebugUI.Widget widget) { ...
30.365385
86
0.567448
[ "MIT" ]
ACBGZM/JasonMaToonRenderPipeline
Packages/com.unity.render-pipelines.core@10.5.0/Runtime/Debugging/Prefabs/Scripts/DebugUIHandlerVBox.cs
1,579
C#
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Threading; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using NLog.Common; using NLog.Config; using NLog.Targets; namespace NLog.Target.Datadog { [Target("DataDog")] public class DataDogTarget : T...
35.792793
119
0.567833
[ "Apache-2.0" ]
dmitrynovik/nlog-target-datadog
src/NLog.Target.Datadog/DataDogTarget.cs
7,948
C#