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) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Diagnostics; using System.Xml; namespace DocumentFormat.OpenXml { /// <summary> /// Represents the <see cref="sbyte"/> value for at...
40.197917
131
0.602747
[ "MIT" ]
929496959/Open-XML-SDK
src/DocumentFormat.OpenXml/SimpleTypes/SByteValue.cs
3,861
C#
using System; using System.Text; using System.Data; using System.Data.SqlClient; using System.Data.Common; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Xml; using System.Xml.Serialization; using SubSonic; using SubSonic.Utilities;...
32.487603
713
0.635589
[ "MIT" ]
saludnqn/prosane
RIS_Publico/RIS_Publico/generated/TamPapmController.cs
7,862
C#
using System; using System.Collections.Generic; using System.Text; namespace Vestris.ResourceLib { /// <summary> /// This structure depicts the organization of data in an icon resource. /// </summary> public class IconResource : IconImageResource { /// <summary> /// An ...
33.54
125
0.56768
[ "MIT" ]
SunburstApps/ResourceLib
Source/ResourceLib/IconResource.cs
1,679
C#
using NUnit.Framework; namespace Disruptor.Tests { [TestFixture] public class MultiProducerSequencerTest { private readonly MultiProducerSequencer _publisher = new MultiProducerSequencer(1024); [Test] public void ShouldOnlyAllowMessagesToBeAvailableIfSpecificallyPublished() ...
34.923077
94
0.655286
[ "Apache-2.0" ]
JTOne123/Disruptor-net
src/Disruptor.Tests/MultiProducerSequencerTest.cs
910
C#
namespace DesignPatterns.Other.Behavioral.Specification { using DesignPatterns.Other.Behavioral.Specification.Base; public class InCollectionSpecification : CompositeSpecification<Invoice> { public override bool IsSatisfiedBy(Invoice invoice) { return invoice.SentToCollectionAg...
28.583333
76
0.720117
[ "MIT" ]
jimtsikos/DesignPatternsCSharp
DesignPatternsStandard/Other/Behavioral/Specification/NoticeSentSpecification.cs
345
C#
/* * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 6.0.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using NUnit.Framework; namespace AdobeSign.Rest.Test.Model.Agreements { /// <summary> /// ...
27.305882
130
0.581646
[ "Apache-2.0" ]
gabon/AdobeSignCSharpSDK
src/AdobeSign.Rest.Tests/Model.Agreements/ParticipantSecurityOptionTests.cs
2,321
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Arcus.Templates.Tests.Integration.AzureFunctions.Admin; using Arcus.Templates.Tests.Integration.AzureFunctions.Configuration; using Arcus.Templates.Tests.Integration.AzureFunctions.Databricks.JobMetrics.Configuration...
38.232558
132
0.736618
[ "MIT" ]
Mcalewaert/arcus.templates
src/Arcus.Templates.Tests.Integration/AzureFunctions/Http/Health/HttpHealthDockerTests.cs
1,646
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SuperSocket.Common; using SuperSocket.SocketBase.Command; using SuperSocket.SocketBase.Protocol; namespace SuperWebSocket.Protocol { /// <summary> /// WebSocketFragment request info /// </summary> ...
20.578947
55
0.70844
[ "BSD-3-Clause" ]
3rdandUrban-dev/Nuxleus
src/external/superwebsocket/future/SuperWebSocket/Protocol/IWebSocketFragment.cs
393
C#
// Copyright (c) MarinAtanasov. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the project root for license information. // using AppBrix.Web.Server.Events; using Microsoft.AspNetCore.Hosting; namespace AppBrix.Web.Server.Impl { internal sealed class ConfigureWebHost : IConfigure...
26
101
0.673913
[ "MIT" ]
MarinAtanasov/AppBrix.NetCore
Modules/AppBrix.Web.Server/Impl/ConfigureWebHost.cs
600
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using Yolol.Execution; namespace YololEmulator.Tests.Ladder { [TestClass] public class TheBells { private static string RandomString(Random rng, int minLength, int maxLength) ...
35.477477
124
0.516506
[ "MIT" ]
Resultlabz/Yolol
YololEmulator.Tests/Ladder/TheBells.cs
3,940
C#
// Copyright (c) Microsoft Corporation // 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 // // THIS CODE IS PROVIDED *...
37.617647
84
0.721658
[ "Apache-2.0" ]
CerebralMischief/azure-sdk-for-net
src/ServiceManagement/HDInsight/Microsoft.WindowsAzure.Management.HDInsight.Contracts/May2014/Resources/VirtualNetworkResource.cs
1,281
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManager : MonoBehaviour { private Player player; private LifeManager lifeManager; [SerializeField] private int currentLife; [SerializeField] private int score; public int TotalLife = 3; void Start()...
19.38806
61
0.597383
[ "MIT" ]
DaeguDev/MeowRun
unity/Assets/Scripts/manager/GameManager.cs
1,353
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 System.ComponentModel; using System.Diagnostics; using System; using Sys...
37.954082
144
0.533271
[ "MIT" ]
OliaG/winforms
src/System.Windows.Forms/src/System/Windows/Forms/WebBrowserContainer.cs
14,878
C#
using Android.App; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.OS; namespace XFAgeAnalysis.Droid { [Activity(Label = "XFAgeAnalysis", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orie...
41.117647
188
0.711731
[ "MIT" ]
tsjdev-apps/xf-cognitiveservices-ageanalysis
XFAgeAnalysis/XFAgeAnalysis/XFAgeAnalysis.Android/MainActivity.cs
1,400
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Http.Features; using Microsoft.A...
28.905263
136
0.599053
[ "Apache-2.0" ]
sebnema/HttpAbstractions-1.0.0-rc1-NoAuthHandler
src/Microsoft.AspNet.Http/ApplicationBuilder.cs
2,746
C#
using NUnit.Framework; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace Typewriter.Test { // supported test languages public enum TestLanguage { CSharp, Java, TypeScript, PHP, ObjC } public sta...
45.730964
191
0.598513
[ "MIT" ]
Dakoni4400/MSGraph-SDK-Code-Generator
test/Typewriter.Test/MultipleNamespacesTestRunner.cs
9,011
C#
using InfraApp.Models; using InfraApp.Services; using System; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; using Xamarin.Forms; namespace InfraApp.ViewModels { public class BaseViewModel : INotifyPropertyChanged { public IDataStore<Item> DataSto...
28.090909
87
0.602589
[ "MIT" ]
MilenkoMarkovic/SimpleUWP
InfraApp/ViewModels/BaseViewModel.cs
1,547
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace TechnicalRadiation.WebApi.Migrations { public partial class newsItems : Migration { protected override void Up(MigrationBuilder migrationBuilder) { } protected override void Down(MigrationBuilder migrationBuilder) ...
19.166667
71
0.678261
[ "MIT" ]
eggertmar1/Large_assignment1
TechnicalRadiation.WebApi/Migrations/20210919224657_newsItems.cs
347
C#
// ReSharper disable IdentifierTypo // ReSharper disable ClassNeverInstantiated.Global // ReSharper disable UnusedAutoPropertyAccessor.Global // ReSharper disable UnusedMember.Global namespace Jinkong.TencentFaceId { public class DetectInfo { /// <summary> /// 原始内容 /// </summary> ...
30.639344
54
0.555377
[ "MIT" ]
cqjinkong/component
src/Jinkong.TencentFaceId/DetectInfo.cs
1,879
C#
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Domain.Entities.WebThingsGateway.Things; using Domain.Exceptions; using Domain.Updaters; namespace Domain.Entities.WebThingsGateway.Properties { public record EnumProperty : StringProperty { public Enum...
33.06383
160
0.614543
[ "MIT" ]
ArtemK123/PolytechWebThings
src/Domain/Entities/WebThingsGateway/Properties/EnumProperty.cs
1,556
C#
#region Copyright notice and license // Copyright 2016 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 req...
30.822222
137
0.708003
[ "Apache-2.0" ]
0mok/grpc
src/csharp/Grpc.Reflection.Tests/NUnitMain.cs
1,387
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using CocosSharp; namespace tests { public class TestLayer : CCNode { public TestLayer() {} public override void OnEnter() { base.OnEnter(); var label = new CCLabel("CocosSharp", ...
18.076923
89
0.614894
[ "MIT" ]
YersonSolano/CocosSharp
tests/tests/classes/tests/RotateWorldTest/TestLayer.cs
470
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("To...
38.861111
84
0.749821
[ "MIT" ]
100goals/ng-demos-master
todo-zumo/todo.WebAPI/Properties/AssemblyInfo.cs
1,402
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Linq; using System.Reflection; using Android.Util; namespace OmniGui.Android { public static class Assemblies { public static IEnumerable<Assembly> ReferencedAssemblies => Assembly.GetCal...
36.403226
146
0.555605
[ "MIT" ]
OmniGUI/OmniGUI
OmniGui.Android/Assemblies.cs
2,257
C#
// <auto-generated /> namespace ULFGService.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")] public sealed partial class b...
26.6
88
0.611529
[ "MIT" ]
DanielAlba96/ULFG
ULFGService/Migrations/201804171725276_bytes.Designer.cs
798
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace UiPath.Web.Client202010.Models { using Newtonsoft.Json; using System.Collections; using System.Collections.G...
28.851064
119
0.626844
[ "MIT" ]
AFWberlin/orchestrator-powershell
UiPath.Web.Client/generated202010/Models/ODataValueOfIEnumerableOfTaskActivityDto.cs
1,356
C#
using System; using System.Collections.Generic; using System.Text; using AnimalCentre.Models.Contracts; namespace AnimalCentre.Models.Procedures { public class DentalCare : Procedure { public override void DoService(IAnimal animal, int procedureTime) { base.DoService(ani...
22.947368
74
0.626147
[ "MIT" ]
Gandjurov/OOP-Basic-CSharp
11.ExamPrepOOP-TechModule4.0/AnimalCentre/AnimalCentre/Models/Procedures/DentalCare.cs
438
C#
using System; class Recursion { static void Main() { long number = long.Parse(Console.ReadLine()); int p = int.Parse(Console.ReadLine()); int q = int.Parse(Console.ReadLine()); int k = int.Parse(Console.ReadLine()); for (int i = 0; i < k; i++) { lon...
26.22
53
0.357742
[ "MIT" ]
iliyaST/TelericAcademy
C#2/1-Arrays/RecursionDemo/Program.cs
1,313
C#
// Copyright (c) .NET Foundation and contributors. 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 Xunit; using Microsoft.TemplateEngine.Edge.Settings; using Microsoft.TemplateEngine.Cli.Tem...
66.859244
213
0.697942
[ "MIT" ]
ajeckmans/templating
test/Microsoft.TemplateEngine.Cli.UnitTests/TemplateResolutionTests/HelpTemplateListResolverTests.cs
31,825
C#
using System.Collections.Generic; using TypingRealm.Messaging; using TypingRealm.Messaging.Updating; namespace TypingRealm.Combat { [Message] public sealed class Update { #pragma warning disable CS8618 // Non-nullable field is uninitialized. Consider declaring as nullable. public List<Player> Play...
26.352941
102
0.664063
[ "MIT" ]
ewancoder/typingrealm
TypingRealm.Combat/UpdateFactory.cs
898
C#
using System; using System.Collections.Generic; using Cosmos.Common; using Cosmos.Core; using Cosmos.Core.IOGroup.Network; using Cosmos.HAL.Network; namespace Cosmos.HAL.Drivers.PCI.Network { public class AMDPCNetII : NetworkDevice { protected PCIDevice pciCard; protected AMDPCNetIIIOGroup io; ...
30.75942
112
0.492461
[ "BSD-3-Clause" ]
Geramy/Cosmos
source/Cosmos.HAL2/Drivers/PCI/Network/AMDPCNetII.cs
10,612
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; using System.Drawing; using ListenScanner; using System.Drawing.Imaging; using System.IO; using System.Runtime.Serialization; namespace ListenScanner { [ServiceContract] [ServiceKnownType(typeof(Do...
28.575342
131
0.558965
[ "Apache-2.0" ]
becker-portilla/ListenScanner
ListenScanner/IScannerService.cs
2,088
C#
namespace DW.ELA.UnitTests { using System; using System.Collections.Generic; using DW.ELA.Utility.Extensions; using NUnit.Framework; public class DictionaryExtensionsTests { [Test] public void GetOrDefaultShouldReturnValue() { string result = GetTestDictiona...
28.68
144
0.564156
[ "MIT" ]
Rfvgyhn/Elite-Log-Agent
DW.ELA.UnitTests/DictionaryExtensionsTests.cs
1,436
C#
using System; using System.Collections.Generic; using NSubstitute; using Xunit; using System.Threading.Tasks; namespace Octokit.Tests.Clients { /// <summary> /// Client tests mostly just need to make sure they call the IApiConnection with the correct /// relative Uri. No need to fake up the response. All...
45.450304
152
0.531679
[ "MIT" ]
darrelmiller/octokit.net
Octokit.Tests/Clients/SearchClientTests.cs
67,223
C#
using Axiverse.Injection; using Axiverse.Modules; using Axiverse.Services; using Axiverse.Services.ChatService; using Axiverse.Services.EntityService; using Axiverse.Services.IdentityService; using Grpc.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; ...
27.597015
80
0.587345
[ "MIT" ]
AxiverseCode/Axiverse
Source/Deployment/Services/Program.cs
1,851
C#
// // System.Diagnostics.LocalFileEventLog.cs // // Author: // Atsushi Enomoto <atsushi@ximian.com> // Gert Driesen <drieseng@users.sourceforge.net> // // Copyright (C) 2006 Novell, Inc (http://www.novell.com) // // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this softwar...
32.803879
138
0.690099
[ "Apache-2.0" ]
OpenPSS/psm-mono
mcs/class/System/System.Diagnostics/LocalFileEventLog.cs
15,221
C#
using Castle.Core.Logging; using Covid19Radar.Api; using Covid19Radar.Api.Common; using Covid19Radar.Api.DataStore; using Covid19Radar.Api.Tests.Mock; using Microsoft.AspNetCore.Http; using Microsoft.Azure.Cosmos; using Microsoft.Azure.Cosmos.Scripts; using Microsoft.Azure.Documents.Client; using Microsoft.Extensions....
49.871212
150
0.629652
[ "MPL-2.0-no-copyleft-exception", "MPL-2.0", "Apache-2.0" ]
178inaba/Covid19Radar
src/Covid19Radar.Api.Tests/Common/DataStore/CosmosTest.cs
6,585
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------...
29.402516
95
0.452193
[ "MIT" ]
propellingbits/RepositoryPattern-EF
ChildSupport.Domain/SalesTerritoryHistory.cs
4,675
C#
/* * Copyright (c) Citrix Systems, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1) Redistributions of source code must retain the above copyright * notice, t...
35.20339
71
0.669234
[ "BSD-2-Clause" ]
jijiang/xenadmin
XenModel/XenAPI/vif_ipv6_configuration_mode.cs
2,077
C#
namespace MSGraph.Exchange.Attachment { /// <summary> /// names of reference attachment provider types in Microsoft Graph API /// </summary> public enum ReferenceAttachmentProvider { /// <summary> /// oneDriveBusiness /// </summary> oneDriveBusiness, /// <summar...
20.462687
84
0.471918
[ "MIT" ]
AndiBellstedt/MSGraph
library/MSGraph/MSGraph/Exchange/Attachment/referenceAttachmentEnums.cs
1,373
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...
45.096552
178
0.667839
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/IVS/Generated/Model/StreamUnavailableException.cs
6,539
C#
using System.Collections.Generic; using System.Linq; using Antlr4.Runtime; using Antlr4.Runtime.Misc; using AutoStep.Elements.Interaction; using AutoStep.Elements.Parts; using AutoStep.Language.Position; namespace AutoStep.Language.Interaction.Visitors { using static AutoStep.Language.Interaction.Parser.AutoStepI...
41.144928
192
0.659387
[ "MIT" ]
SivaGudivada/AutoStep
src/AutoStep/Language/Interaction/Visitors/ComponentDefinitionVisitor.cs
5,680
C#
namespace EventStore.Projections.Core.Services.Management.ManagedProjectionStates { class FaultedState : ManagedProjection.ManagedProjectionStateBase { public FaultedState(ManagedProjection managedProjection) : base(managedProjection) { } } }
26.454545
81
0.714777
[ "Apache-2.0" ]
bartelink/EventStore
src/EventStore.Projections.Core/Services/Management/ManagedProjectionStates/FaultedState.cs
291
C#
// Generated by the MSBuild WriteCodeFragment class. using System; using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("TravelBlog")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")] [asse...
47.428571
81
0.825301
[ "MIT" ]
ReconScout77/potential-couscous
TravelBlog/obj/Debug/netcoreapp1.1/TravelBlog.AssemblyInfo.cs
664
C#
using JetBrains.ReSharper.Plugins.Unity.JsonNew.Psi.Tree; using JetBrains.ReSharper.Psi.ExtensionsAPI.Resolve; using JetBrains.ReSharper.Psi.Resolve; using JetBrains.ReSharper.Psi.Tree; namespace JetBrains.ReSharper.Plugins.Unity.AsmDefNew.Psi.Resolve { public class AsmDefNameReferenceFactory : IReferenceFactory ...
38.966667
119
0.703165
[ "Apache-2.0" ]
20chan/resharper-unity
resharper/resharper-unity/src/AsmDefNew/Psi/Resolve/AsmDefNameReferenceFactory.cs
1,171
C#
using System; using NuGetPe; namespace NuGetPackageExplorer.Types { public enum PackageType { LocalPackage, DataServicePackage } public sealed class MruItem : IEquatable<MruItem> { public string Id { get; set; } public TemplatebleSemanticVersion Version { get; set;...
22.261905
79
0.559358
[ "MIT" ]
ItsMrQ/NugetPE-Mod-v3.23
PackageViewModel/Types/MruItem.cs
937
C#
//----------------------------------------------------------------------- // <copyright file="ReplicatedDataSerializerSpec.cs" company="Akka.NET Project"> // Copyright (C) 2009-2020 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2020 .NET Foundation <https://github.com/akkadotnet/akka.net> // ...
49.649485
157
0.629499
[ "Apache-2.0" ]
Walle-Li/akka.net
src/contrib/cluster/Akka.DistributedData.Tests/Serialization/ReplicatedDataSerializerSpec.cs
14,450
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
21.535714
46
0.733002
[ "Apache-2.0" ]
favedit/MoCross
Utiliy/Profiler/MoScout/Face/Logic/WInvoker.xaml.cs
615
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace SNSPED { public partial class Form3 : Form { public Form3() { ...
24.053333
75
0.511086
[ "MIT" ]
nesdoug/SPEZ
SNSPED/Form3.cs
1,806
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace MaestroApp.Migrations { public partial class cambioTablas4 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { } protected override void Down(MigrationBuilder migrationBuilder) { ...
18.555556
71
0.670659
[ "MIT" ]
dviltres18/MaestroApp
aspnet-core/src/MaestroApp.EntityFrameworkCore/Migrations/20190710050652_cambioTablas4.cs
336
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
34.88
85
0.540138
[ "MIT" ]
LeonardoVanelli/PrismaWeb
PrismaWEB/Models/database_firewall_rules.cs
872
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
48.277778
128
0.657077
[ "Apache-2.0" ]
simadine/simad
BeyondThemes.BeyondAdmin/Glo_Estados.cs
1,738
C#
using System; namespace PluggablePersistenceLayer.Core { public class Dataset { public Type Type { get; } public string Name { get; } public Dataset(Type type) { Type = type; Name = type.Name; } public Dataset(Type type, string name) { ...
21.277778
48
0.498695
[ "MIT" ]
joseantmazonsb/ppl
Core/Dataset.cs
385
C#
// Copyright 2022 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 ...
42.4
119
0.669025
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.Compute.V1/Google.Cloud.Compute.V1.GeneratedSnippets/FirewallsClient.PatchSnippet.g.cs
2,544
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using Trackable.Common; namespace Trackable.Models { [Serializable] public class Trip : ModelBase<int> { /// <summary> /// The date time at which ...
27.635135
100
0.559902
[ "MIT" ]
Microsoft/Bing-Maps-Fleet-Tracker
Backend/src/Trackable.Models/Trip.cs
2,045
C#
using HttpClientMock.Test.Utility; using NUnit.Framework; using System.Net.Http; namespace Tests { public class ValueCodeResponseTest { private HttpClientDependentClass _httpClientDependentClass; private HttpClient _mockedHttpClient; [SetUp] public void Setup() { ...
41.910448
132
0.690171
[ "MIT" ]
marthurIntersys/HttpClientMock
src/HttpClientMock/HttpClientMock.Test/ValueCodeResponseTest.cs
2,808
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityStandardAssets.CrossPlatformInput; public class PlayerShoot : MonoBehaviour { [SerializeField] float fireRate = 1f; [SerializeField] GameObject projectilePrefab = null; [SerializeField] AudioClip shootSound = null; ...
35.254902
128
0.708009
[ "Apache-2.0" ]
vadym-vasilyev/star-rage
Assets/Scripts/Player/PlayerShoot.cs
1,800
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.Protocols.TestSuites.ActiveDirectory.Lsat { /// <summary> /// The LSA_UNICODE_STRING structure specifies the unicode string of LSA names. ...
28.666667
101
0.614987
[ "MIT" ]
0neb1n/WindowsProtocolTestSuites
TestSuites/ADFamily/src/Adapter/MS-LSAT/Struct/LsatStruct.cs
774
C#
using System; using System.Threading.Tasks; using Android.Views; using Android.Widget; using Microsoft.Maui.Handlers; namespace Microsoft.Maui.DeviceTests { public partial class ActivityIndicatorHandlerTests { ProgressBar GetNativeActivityIndicator(ActivityIndicatorHandler activityIndicatorHandler) => (Progres...
33.866667
96
0.808071
[ "MIT" ]
Eilon/maui
src/Core/tests/DeviceTests/Handlers/ActivityIndicator/ActivityIndicatorHandlerTests.Android.cs
1,018
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("07...
38.351351
84
0.749119
[ "MIT" ]
razsilev/TelerikAcademy_Homework
Algorithms data structures/02_Linear-Data-Structures/Linear_Data_Structures/07_NumbersCountsInArray/Properties/AssemblyInfo.cs
1,422
C#
// ReSharper disable InconsistentNaming using System.Net; using Solitons.Net; using Xunit; namespace Solitons { public sealed class IpAddressComparer_Compare_Should { [Fact] public void Work() { var target = IpAddressComparer.Instance; Assert.Equal(0, target.Co...
30.190476
110
0.635647
[ "MIT" ]
AlexeyEvlampiev/Solitons.Core
test/Solitons.Core.XUnitTest/IpAddressComparer_Compare_Should.cs
636
C#
using System; using System.Globalization; using System.Threading.Tasks; using SpeedTestLogger.Models; namespace SpeedTestLogger { class Program { static async Task Main(string[] args) { Console.WriteLine("Hello SpeedTestLogger!"); var config = ...
27.795455
73
0.498774
[ "MIT" ]
cloud-101-testuser/az-speedtest-logger
SpeedTestLogger/Program.cs
1,225
C#
using GalvanizedSoftware.Beethoven.Core.Methods.MethodMatchers; using System; using System.Linq; using System.Reflection; namespace GalvanizedSoftware.Beethoven.Extensions { internal static class MethodMatcherExtensions { public static bool IsMatchToFlowControlled(this IMethodMatcher methodMatcher, (Type, str...
47.275
121
0.768377
[ "Apache-2.0" ]
GalvanizedSoftware/Beethoven
GalvanizedBeethoven/Extensions/MethodMatcherExtensions.cs
1,893
C#
using Core.Repository.Identity; using Microsoft.EntityFrameworkCore; using System; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Core.Data.Entitys.Security; namespace Core.Repository.Data { public class AuthContext : IdentityDbContext<ApplicationUser, ApplicationRole, Guid> { public A...
27.235294
88
0.734341
[ "MIT" ]
zolgera/Onion.Core.Repository
Data/AuthContext.cs
465
C#
using System.IO; namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast { public class CtorDtorNameType : ParentNode { private bool IsDestructor; public CtorDtorNameType(BaseNode Name, bool IsDestructor) : base(NodeType.CtorDtorNameType, Name) { this.IsDestructor = IsDestructo...
23.166667
105
0.573741
[ "Unlicense" ]
simonmkwii-dev/Ryujinx
Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CtorDtorNameType.cs
556
C#
using System; using Xunit; namespace ERPForServiceActivity.Tests { public class UnitTest1 { [Fact] public void Test1() { } } }
11.416667
39
0.693431
[ "MIT" ]
ALMLAMBO/ERP-for-service-activity
Second-version/ERPForServiceActivity/ERPForServiceActivity.Tests/UnitTest1.cs
137
C#
using System.Collections.ObjectModel; using System.ComponentModel; namespace Microsoft.FamilyShow.Services; public interface IAppConfiguration : INotifyPropertyChanged { ReadOnlyCollection<string> RecentFiles { get; } ReadOnlyDictionary<string, string> Skins { get; } string ExportPath { get; } void L...
28.0625
59
0.761693
[ "MIT" ]
VincentH-Net/FamilyShow2022
src/Microsoft.FamilyShow/Services/IAppConfiguration.cs
451
C#
 using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading.Tasks; using System.Numerics; using LeaguePackets.Game.Common; namespace LeaguePackets.Game { public class WaypointListHeroWithSpeed : GamePacket // 0x83 { public override Gam...
30.071429
82
0.625495
[ "Apache-2.0" ]
JanDevDE/LeaguePackets
LeaguePackets/Game/131_WaypointListHeroWithSpeed.cs
1,265
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 requi...
28.965116
78
0.591329
[ "Apache-2.0" ]
ailn/azure-sdk-for-net
src/ResourceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/LongRunningOperationResponse.cs
2,491
C#
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.IO; using System.Threading; using System.Threading.Tasks; using System.ComponentModel; using System.Reflection; using Microsoft.Win32; u...
31.121302
134
0.610419
[ "MIT" ]
alexfordc/Au
_Au.Editor/Compiler/XCompiled.cs
10,519
C#
using DGP.Genshin.Data.Weapon; using System; using System.Globalization; using System.Windows.Data; namespace DGP.Genshin.Controls.Converters { public class WeaponTypeToNameConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) ...
28.862069
103
0.574671
[ "MIT" ]
Klee233/Snap.Genshin
DGP.Genshin/Controls/Converters/ElementToNameConverter.cs
865
C#
namespace Miki.Framework { using System; public class Mathm { public static float Clamp(float value, float min, float max) { return Math.Min(Math.Max(value, min), max); } public static int Clamp(int value, int min, int max) { return Math.Min(Math.Max(value, min), max); } public stat...
17.545455
62
0.626943
[ "MIT" ]
GerardSmit/Miki.Framework
src/Miki.Framework/Extension/Mathm.cs
388
C#
#region License /* The MIT License Copyright (c) 2008 Sky Morey 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,...
39.783784
88
0.76087
[ "MIT" ]
Grimace1975/bclcontrib-extend
src/Contoso.CoreEx/Patterns/UI/Forms/SmartFormElements/ElementCollection.cs
1,472
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.Collections.Generic; using System.Diagnostics; namespace System.Xml.Xsl.XPath { using XPathNodeType = System.Xml.XPath.XPathNodeType; internal sealed class XPa...
37.38843
162
0.43992
[ "MIT" ]
ilonatommy/runtime
src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathParser.cs
22,620
C#
#if ((UNITY_SWITCH || UNITY_XBOXONE || (WINDOWS_UWP && ENABLE_IL2CPP)) && !UNITY_EDITOR) || GS_FORCE_NATIVE_PLATFORM //------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.12 // // ...
55.513605
185
0.744072
[ "Apache-2.0" ]
UnityEQ/ARMessages
Assets/GameSparks/Platforms/Native/detail/GameSparksNativePINVOKE.cs
16,321
C#
using CsvGnome.Components; using CsvGnome.Fields; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CsvGnome; namespace CsvGnomeTests { [TestClass] public class InterpreterTest { ...
35.325472
142
0.591668
[ "MIT" ]
benmosheron/CsvGnome
CsvGnomeTests/InterpreterTest.cs
14,980
C#
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using NAudio.Wave; using System.Net; using NAudioDemo.Utils; namespace NAudioDemo.NetworkChatDemo { public partial class NetworkChatPanel : UserControl { private INetworkChatCodec selectedCodec; ...
34.058824
123
0.547064
[ "MIT" ]
sanea010/NAudio
NAudioDemo/NetworkChatDemo/NetworkChatPanel.cs
4,634
C#
using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; namespace ShootR { public class UserHandler { private readonly ConcurrentDictionary<string, User> _userList = new ConcurrentDictionary<string, User>(); private readonly GameHandler _gameHandler; p...
29.931034
113
0.554147
[ "MIT" ]
BrennanConroy/ShootR
ShootR/ShootR/Server/User/UserHandler.cs
2,604
C#
using System.Numerics; namespace AsciiFuntimeLand { public class RenderableWall : RenderablePlane, ICollidable { private Hitbox hb; public Hitbox[] getHitboxes() { return new[] { hb }; } public RenderableWall(World world, char renderChar, SquarePlane plane, int r, int g, int b) : base(world, new Color...
21.6
160
0.696759
[ "MIT" ]
jojo2357/AsciiFuntimeLand
Objects/RenderableWall.cs
432
C#
/* see LICENSE notice in solution root */ using System; using Microsoft.VisualStudio.Project.Automation; using Microsoft.VisualStudio.Project; using VisualSquirrel; using System.Drawing; namespace Squirrel.Project { /// <summary> /// This class extends the FileNode in order to represent a file /// within the hi...
26.488889
113
0.645973
[ "MIT" ]
albertodemichelis/visualsquirrel
VisualSquirrel/VSSQ8/Project/SquirrelProjectFileNode.cs
2,386
C#
using System; using System.Collections; using System.Collections.Generic; using Com.StudioTBD.CoronaIO.Agent; using Com.StudioTBD.CoronaIO.FMS; using UnityEngine; public class HouseDoor : MonoBehaviour { private void OnTriggerEnter(Collider other) { // Make sure it is an agent if (!other.Compa...
29.4375
119
0.738854
[ "MIT" ]
StudioTBA/CoronaIO
Assets/Scripts/Map/Objects/HouseDoor.cs
473
C#
using System.Collections.Generic; namespace NinjaTools.IPC.Console { public static class Run { // TODO: make this on other systems (linux, android) public static int System(string cmdlineFormat, params object[] args) { string cmdline = string.Format(cmdlineFormat, args); ...
36.265625
120
0.576045
[ "MIT" ]
ninjasync/NinjaTasks
NinjaTools/NinjaTools.IPC.Console/Run.cs
2,323
C#
// 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, publish, // distribute, sublicense, and/or ...
32.345679
85
0.751908
[ "MIT" ]
ABEMBARKA/monoUI
UIAutomationWinforms/UIAutomationWinforms/Mono.UIAutomation.Winforms.Events/ListBox/ScrollPatternHorizontallyScrollableEvent.cs
2,620
C#
/* * LUSID API * * # Introduction This page documents the [LUSID APIs](https://www.lusid.com/api/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages and frameworks: * [C#](https://github....
103.745223
29,340
0.642927
[ "MIT" ]
SamuelColvinFinbourne/lusid-sdk-csharp-preview
sdk/Lusid.Sdk/Model/FxOptionAllOf.cs
48,864
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.System.Profile { #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ ...
34.923077
99
0.713656
[ "Apache-2.0" ]
Abhishek-Sharma-Msft/uno
src/Uno.UWP/Generated/3.0.0.0/Windows.System.Profile/PlatformDataCollectionLevel.cs
908
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Inventory : MonoBehaviour { #region Singleton public static Inventory instance; private void Awake() { if (instance != null) { Debug.LogWarning("More than one instance of Inventor...
20.178571
74
0.561947
[ "MIT" ]
TheSaviour1/RPG-Project
Assets/Scripts/Inventory/Inventory.cs
1,132
C#
using System.ComponentModel.DataAnnotations; namespace IdentityExample.ViewModels; public class LoginViewModel { [Display(Name = "User Name")] [Required(ErrorMessage = "Please enter your user name.")] public string UserName { get; set; } = null!; [Display(Name = "Password")] [Required(ErrorMessa...
26.157895
61
0.674044
[ "MIT" ]
EricCote/20486D-New
Allfiles/Mod11/Democode/01_IdentityExample_begin/IdentityExample/ViewModels/LoginViewModel.cs
499
C#
namespace Part_2_Avatar { //Child class to the class monument. Holds one additional property. public class EarthMonument : Monument { private int earthAffinity; public int EarthAffinity { get { return this.earthAffinity; } ...
22.038462
71
0.500873
[ "MIT" ]
Brankovanov/SoftUniCourses
4.OOPBasic/5.ExamPreparation/Part_2_Avatar/EarthMonument.cs
575
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Vetrina.Server.Migrations { public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Pro...
49.715447
106
0.516108
[ "MIT" ]
InKolev/vetrina
src/Server/Migrations/20220221230644_Initial.cs
6,117
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...
39.221053
172
0.639023
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/ElastiCache/Generated/Model/Internal/MarshallTransformations/CreateGlobalReplicationGroupRequestMarshaller.cs
3,726
C#
// IRegisterdEncoding.cs // // Copyright (C) BEditor // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. using System.Collections.Generic; using System.IO; using System.Linq; using BEditor.Media.Encoding; namespace BEditor.Media { /// <sum...
31.432836
88
0.615385
[ "MIT" ]
b-editor/BEditor
src/libraries/BEditor.Media/IRegisterdEncoding.cs
2,108
C#
using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace Chris.Service.Location { public class Program { public static void Main(string[] args) { BuildWebHost(args).Run(); } public static IWebHost BuildWebHost(string[] args) => WebHost....
22.105263
61
0.585714
[ "MIT" ]
namesunwei/MyProjects
Chris.Service.Location/Chris.Service.Location/Program.cs
422
C#
namespace SBRW.Nancy { /// <summary> /// HTTP Status Codes /// </summary> /// <remarks>The values are based on the list found at http://en.wikipedia.org/wiki/List_of_HTTP_status_codes </remarks> public enum HttpStatusCode { /// <summary> /// 100 Continue /// </summary> ...
26.543726
124
0.463114
[ "MIT" ]
DavidCarbon-SBRW/SBRW.Nancy
SBRW.Nancy/HttpStatusCode.cs
6,981
C#
namespace Portal.DataObjects { public class PendingLoan : PendingBase { public string Reason { get; set; } } }
16.5
42
0.628788
[ "MIT" ]
isboat/ibunionportal
src/Core/Portal.DataObjects/PendingLoan.cs
134
C#
namespace Novel.Models { /// <summary> /// Novel のステートメント モデルの実装です. /// </summary> internal class NStatement : INStatement { public string CommandName { get; } public string SpriteTag { get; } public string[] Arguments { get; } public NStatement(string commandName, string spriteTag, string...
19.863636
78
0.649886
[ "MIT" ]
Citringo/Novel
NovelLib/Models/NStatement.cs
473
C#
using System; using System.IO; using System.Collections; using System.Text; using System.Reflection; namespace PEAPI { #region Enums /// <summary> /// flags for the assembly (.corflags) /// </summary> public enum CorFlags {CF_IL_ONLY = 1, CF_32_BITREQUIRED = 2, CF_STRONGNAMESIGNED = 8, CF_TRACKDEBUGDATA = 0x1...
27.104488
157
0.65535
[ "MIT" ]
zlxy/Genesis-3D
Engine/extlibs/IosLibs/mono-2.6.7/mcs/class/PEAPI/Metadata.cs
158,236
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IHintsProvider.cs" company="WildGums"> // Copyright (c) 2008 - 2014 WildGums. All rights reserved. // </copyright> // -----------------------------------------------------------...
30.571429
120
0.420561
[ "MIT" ]
Dmitry-VF/Orchestra
src/Orchestra.Core/Services/Interfaces/IHintsProvider.cs
644
C#
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Reflection; using HotChocolate.Configuration.Validation; using HotChocolate.Internal; using HotChocolate.Resolvers; using HotChocolate.Resolvers.Expressions; using HotChocol...
37.035714
99
0.503709
[ "MIT" ]
BaptisteGirard/hotchocolate
src/HotChocolate/Core/src/Types/Configuration/TypeInitializer.cs
26,962
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
31.41791
131
0.610926
[ "MIT" ]
AhmedLeithy/azure-sdk-for-net
sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/Models/PatchObject.cs
2,105
C#
using System; using System.Collections.Generic; namespace BrainSimulator { class FiringHistory { const int maxSamples = 1000; public class Sample { public long generation = 0; public float value = 0; } public class NeuronHistory { ...
28.617978
121
0.47075
[ "MIT" ]
Synchronicity89/BrainSimII
BrainSimulator/FiringHistory.cs
2,549
C#