content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
// <copyright file="BrowserTypes.cs" company="Automate The Planet Ltd."> // Copyright 2016 Automate The Planet Ltd. // 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/lic...
38.083333
85
0.723195
[ "Apache-2.0" ]
alanmacgowan/AutomateThePlanet-Learning-Series
DesignPatternsInAutomatedTesting-Series/BehavioursDesignPattern/Core/BrowserTypes.cs
916
C#
// FILE AUTOGENERATED. DO NOT MODIFY using System; namespace Starfield.Core.Block.Blocks { [Block("minecraft:potatoes", 307, 6342, 6349, 6342)] public class BlockPotatoes : BlockBase { public override ushort State { get { if(Age == 0) { retur...
22.23
64
0.292398
[ "MIT" ]
StarfieldMC/Starfield
Starfield.Core/Block/Blocks/BlockPotatoes.cs
2,223
C#
using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; using Newtonsoft.Json; namespace Alpaca.Markets { [SuppressMessage( "Microsoft.Performance", "CA1812:Avoid uninstantiated internal classes", Justification = "Object instances of this class will be created by N...
31.216667
102
0.619861
[ "Apache-2.0" ]
Xallen79/alpaca-trade-api-csharp
Alpaca.Markets/Messages/JsonLastTrade.cs
1,875
C#
 using FortnoxNET.Utils; using Newtonsoft.Json; namespace FortnoxNET.Models.Contract { [JsonPropertyClass("Contracts")] public class ContractSubset { [JsonReadOnly] [JsonProperty(PropertyName = "@url")] public string Url { get; set; } public bool? Continuous { get; set; } ...
22.622222
51
0.602161
[ "MIT" ]
PolrSE/fortnox.NET
Fortnox.NET/Models/Contract/ContractSubset.cs
1,020
C#
using System; using System.Xml; using System.Text; namespace AIMLbot.AIMLTagHandlers { /// <summary> /// The thatstar element tells the AIML interpreter that it should substitute the contents of a /// wildcard from a pattern-side that element. /// /// The thatstar element has an optional integer...
45.763441
219
0.468985
[ "MIT" ]
Karthikeyu/AR-VoicechatBot-Unity
Assets/gitFiles/AIMLBot/AIMLbot/AIMLTagHandlers/thatstar.cs
4,256
C#
//---------------------------------------------------------------------------------------- // Copyright © 2007 - 2017 Tangible Software Solutions Inc. // This class can be used by anyone provided that the copyright notice remains intact. // // This class includes methods to convert Java rectangular arrays (jagged arra...
39.5
91
0.512658
[ "BSD-3-Clause" ]
AG-Teammate/transform-swf-net-core
RectangularArrays.cs
793
C#
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. using UnrealBuildTool; using System.Collections.Generic; [SupportedPlatforms(UnrealTargetPlatform.Win64, UnrealTargetPlatform.Mac)] public class MinidumpDiagnosticsTarget : TargetRules { public MinidumpDiagnosticsTarget( TargetInfo Target ) : base(Target) ...
30.282609
118
0.79038
[ "MIT" ]
CaptainUnknown/UnrealEngine_NVIDIAGameWorks
Engine/Source/Programs/MinidumpDiagnostics/MinidumpDiagnostics.Target.cs
1,393
C#
///////////////////////////////////////////////////////////////////////////////// // // vp_EditorApplicationQuit.cs // © VisionPunk. All Rights Reserved. // https://twitter.com/VisionPunk // http://www.visionpunk.com // // description: this is a small convenience feature allowing the game to quit // itself when ru...
26.428571
99
0.574324
[ "Apache-2.0" ]
M4RZB4Ni/FpsShooter
Assets/UFPS/Base/Scripts/Core/Editor/vp_EditorApplicationQuit.cs
743
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("DM...
37.756757
84
0.745168
[ "MIT" ]
Ranin26/msdn-code-gallery-microsoft
Visual Studio Product Team/Official Visual Studio 2010 Samples for C# 4.0/46872-Official Visual Studio 2010 Samples for C# 4.0/LINQ to XML - Using Data Manipulation Language (DML)/C#/DML/Properties/AssemblyInfo.cs
1,400
C#
public class BattleReport { public Unit[] units; public float duration; public bool isWin; }
15
26
0.685714
[ "MIT" ]
alkaitagi/INNO-F21-PCGG
Assets/Scripts/Simulation/BattleReport.cs
105
C#
namespace StockSharp.Community { using System; using System.ServiceModel; /// <summary> /// The interface describing the registration service. /// </summary> [ServiceContract(Namespace = "http://stocksharp.com/services/sessionservice.svc")] public interface ISessionService { /// <summary> /// Create a new ...
27.314286
83
0.680962
[ "Apache-2.0" ]
1M15M3/StockSharp
Community/ISessionService.cs
956
C#
using System.Collections.Generic; using System.Linq; using System.Text.Json.Serialization; using WcPhdc.OpenHim.Mediator.Models; namespace WcPhdc.OpenHim.Mediator.Configuration { public class MediatorConfig { [JsonPropertyName("openHimAuth")] public OpenHimAuth OpenHimAuth { get; set; } ...
28.419847
108
0.627182
[ "Apache-2.0" ]
mornemaritz/openhim-mediator-hl7-validator
src/WcPhdc.OpenHim.Mediator/Configuration/MediatorConfig.cs
3,725
C#
// *********************************************************************** // Assembly : IronyModManager // Author : Mario // Created : 03-18-2020 // // Last Modified By : Mario // Last Modified On : 02-27-2022 // *********************************************************************** // <co...
45.701575
320
0.533106
[ "MIT" ]
Sciencmine/IronyModManager
src/IronyModManager/ViewModels/MainConflictSolverViewModel.cs
58,043
C#
/* * Copyright 2015-2018 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 "...
47.932203
260
0.62995
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/test/UnitTests/Custom/Marshalling/SimpleTypeUnmarshallerTests.cs
5,658
C#
// *********************************************************************** // Assembly : MPT.CSI.OOAPI // Author : Mark Thomas // Created : 11-22-2018 // // Last Modified By : Mark Thomas // Last Modified On : 12-11-2018 // ********************************************************************...
32.152866
126
0.523574
[ "MIT" ]
MarkPThomas/MPT.Net
MPT/CSI/API/MPT.CSI.Serialize/Models/Components/Definitions/Abstractions/Diaphragm.cs
5,051
C#
namespace Apim.DevOps.Toolkit.Core.ArmTemplates { public class ArmTemplateParameterMetadata { public string Description { get; set; } } }
20.428571
48
0.769231
[ "MIT" ]
andrewdmoreno/dotnet-apim
src/apimtemplate/Core/ArmTemplates/ArmTemplateParameterMetadata.cs
145
C#
using Chloe.Data; using Chloe.DbExpressions; using Chloe.Descriptors; using Chloe.Exceptions; using System.Data; namespace Chloe.SqlServer { public partial class MsSqlContext : DbContext { static Action<TEntity, IDataReader> GetMapper<TEntity>(PrimitivePropertyDescriptor propertyDescriptor, int ordina...
35.964912
127
0.621951
[ "MIT" ]
softworm/Chloe
src/Chloe.SqlServer/MsSqlContext_Helper.cs
2,052
C#
namespace CarRentalSystem.Domain.Specifications.CarAds { using System; using System.Linq.Expressions; using Models.CarAds; public class CarAdByCategorySpecification : Specification<CarAd> { private readonly int? category; public CarAdByCategorySpecification(int? category) ...
29.315789
68
0.67684
[ "MIT" ]
kalintsenkov/CarRentalSystem
src/Domain/Specifications/CarAds/CarAdByCategorySpecification.cs
559
C#
using System.Collections; using UnityEngine; using UnityEngine.UI; namespace AttSample.Scripts { public class SampleSceneController : MonoBehaviour { public Text attStatus; public Text idfa; private void Start() { RefreshATTStatus(); } public void ClickRequest() {...
25.75
79
0.630185
[ "MIT" ]
bigstupidx/ios-att-sample
Assets/AttSample/Scripts/SampleSceneController.cs
1,273
C#
using System; namespace Lit.Db { /// <summary> /// Foreign key property. /// </summary> public class DbForeignKey<TR, TK> : IDbForeignKeyRef<TR> where TR : class, new() { /// <summary> /// Data access reference. /// </summary> public IDbDataAccess Db { get; ...
23.944444
110
0.417169
[ "MIT" ]
lisandropodesta/lit.net
Lit.Db/Model/DbForeignKey.cs
2,157
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> //--...
35.333333
151
0.580189
[ "MIT" ]
nifanfa/BitFont
Viewer/Properties/Settings.Designer.cs
1,062
C#
// Copyright (c) DotSpatial Team. All rights reserved. // Licensed under the MIT license. See License.txt file in the project root for full license information. using System; using System.Drawing; namespace DotSpatial.Symbology { /// <summary> /// Event args of a SnapShot event. /// </summary> ...
25.825
106
0.581801
[ "MIT" ]
AlexanderSemenyak/DotSpatial
Source/DotSpatial.Symbology/SnapShotEventArgs.cs
1,033
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...
36.808989
307
0.630342
[ "ECL-2.0", "Apache-2.0" ]
EladGabay/pulumi-oci
sdk/dotnet/Marketplace/Outputs/GetAcceptedAgreementsAcceptedAgreementResult.cs
3,276
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using eCommerce.cs.Data; namespace eCommerce.cs.Data.Migrations { [DbContext(typeo...
35.373259
125
0.480589
[ "MIT" ]
gorkemozturk/eCommerce.cs
eCommerce.cs/Data/Migrations/ApplicationDbContextModelSnapshot.cs
12,701
C#
using System; using System.Collections.Generic; using Centaurus.Xdr; namespace Centaurus.Models { [XdrContract] public class QuantaBatch : Message { public override MessageTypes MessageType => MessageTypes.QuantaBatch; [XdrField(0)] public List<MessageEnvelope> Quanta { get; set; ...
20.625
77
0.687879
[ "MIT" ]
PinkDiamond1/centaurus
Centaurus.Models/InternalMessages/QuantaBatch.cs
332
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Smoke : MonoBehaviour { //private Animator anim; public Animator anim; private void Start () { anim = GetComponent<Animator>(); //Debug.Log(anim == null ? "null" : anim.name); } public void StartEffect() { //ani...
20.2
55
0.70297
[ "MIT" ]
MikanHako1024/MySoulKnight
Assets/Scripts/Smoke.cs
608
C#
namespace AkkaNetNeuralNet.Core.Model { public class DogProfile : IDogProfile { public DogProfile(decimal ageAtDeath, Sex sex, Breed breed, decimal adultBodymass, decimal householdIncome) { AgeAtDeath = ageAtDeath; Sex = sex; Breed = breed; AdultB...
29.333333
115
0.599026
[ "Apache-2.0" ]
MatthewMcGowan/AkkaNetNeuralNet
AkkaNetNeuralNet/AkkaNetNeuralNet.Core/Model/DogProfile.cs
618
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.042553
157
0.665422
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/OpenSearchService/Generated/Model/Internal/MarshallTransformations/ListPackagesForDomainRequestMarshaller.cs
3,482
C#
// <copyright company="PetaPoco - CollaboratingPlatypus"> // Apache License, Version 2.0 https://github.com/CollaboratingPlatypus/PetaPoco/blob/master/LICENSE.txt // </copyright> // <author>PetaPoco - CollaboratingPlatypus</author> // <date>2015/12/28</date> using System.Reflection; using Xunit; namespace PetaPo...
33.45
152
0.659193
[ "Apache-2.0" ]
Arasz/PetaPoco
PetaPoco.Tests.Integration/Databases/Sqlite/SqliteDatabaseTests.cs
1,338
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 Academia.controls { public partial class ControlExercicios : UserControl { pub...
19.380952
56
0.710074
[ "MIT" ]
FSantosx/Academia
controls/ControlExercicios.cs
409
C#
using System; using NServiceBus.Extensions.DispatchRetries; using Polly; namespace NServiceBus { public static class MessageHandlerContextExtensions { public static void OverrideImmediateDispatchRetryPolicy(this IMessageHandlerContext context, AsyncPolicy immediateDispatchRetryPolicy) { ...
38.096774
142
0.704488
[ "Apache-2.0" ]
mauroservienti/NServiceBus.Extensions.DispatchRetries
src/NServiceBus.Extensions.DispatchRetries/MessageHandlerContextExtensions.cs
1,183
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows; using Microsoft.Xna.Framework; namespace QuadTreeLib { internal class QuadNode<T> { #region Properties /// <summary> /// The node that this guy is inside of /// </summary> public QuadNode<T> Parent ...
20.670103
59
0.619451
[ "MIT" ]
dmanning23/QuadTree
QuadTree/QuadTree.SharedProject/QuadNode.cs
2,005
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Axe.Windows.Core.Types; using System; using System.Collections.Generic; using Axe.Windows.Core.Bases; using UIAutomationClient; using Axe.Windows.Core.Attri...
37.303571
161
0.667784
[ "MIT" ]
lisli1/axe-windows
src/Desktop/UIAutomation/Patterns/SelectionPattern.cs
2,034
C#
namespace JulMar.Core.Interfaces { /// <summary> /// This interface describes a simple Undo service /// </summary> public interface IUndoService { /// <summary> /// Maximum number of supported operations. /// </summary> int MaxSupportedOperations { get; set;...
34.77551
136
0.561033
[ "MIT" ]
AsimKhan2019/MVVM-Helpers
Julmar.Wpf.Helpers/Julmar.Core/Interfaces/IUndoService.cs
1,704
C#
using System.Collections.Generic; using BotCore.Core.CurrencyBot.DomainModels; using BotCore.Core.CurrencyBot.Entities; namespace BotCore.Core.CurrencyBot.Interfaces { public interface IMessageService { /// <summary> /// Get paginated string that contains currencies /// </summary> ...
31.75
82
0.551969
[ "MIT" ]
vorobeyDmitriy/BotCore
samples/BotCore.CurrencyBot.Core/Interfaces/IMessageService.cs
1,272
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using NewBindingSample.Model; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Pr...
28
106
0.686658
[ "MIT" ]
qmatteoq/Windows10-Samples
Windows10/NewBindingSample/MainPage.xaml.cs
1,486
C#
namespace Abacus.Geometry { public struct Square2D : IShape2D { private Vector2 _lowXyCorner; private double _sideLength; public Square2D(Vector2 lowXyCorner, double sideLength) { _lowXyCorner = lowXyCorner; _sideLength = sideLength; } p...
22.5
80
0.466667
[ "MIT" ]
rexcardan/Abacus
Abacus/Geometry/Square2D.cs
1,577
C#
using System; using Contracts; namespace KourageousTourists { public class KourageousSelfieParameter: KourageousParameter { public KourageousSelfieParameter() : base() {} public KourageousSelfieParameter(CelestialBody target, string kerbal) : base(target, kerbal) {} protected override string GetHashString...
23.653846
97
0.703252
[ "MIT" ]
takoss/KourageousTourists
KourageousTourists/KourageousTourists/Contracts/KourageousSelfieParameter.cs
1,232
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Avalonia.Controls.Platform.Surfaces; using Avalonia.Platform; using Avalonia.Win32.Interop; using SharpDX; using SharpDX.DXGI; namespace Avalonia.Direct2D1 { class HwndRenderTarget : SwapChain...
28.847458
112
0.590482
[ "MIT" ]
BOBO41/Avalonia
src/Windows/Avalonia.Direct2D1/HwndRenderTarget.cs
1,704
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using CliModline.Utils; namespace CliModline.Test { [TestClass] public class ModLineTest { private readonly string expectCrLf = "abc\r\ndef\r\n123"; private readonly string expectLf = "abc\ndef\n123"; private readon...
31.857143
65
0.573393
[ "BSD-3-Clause" ]
MakMokMak/CliModline
CliModline.Test/ModLineTest.cs
3,347
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...
39.4
98
0.681806
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Logic/V20160601/Outputs/EdifactValidationSettingsResponse.cs
3,743
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...
34.337079
159
0.622709
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DataFactory/Outputs/MongoDbV2CollectionDatasetResponse.cs
3,056
C#
// ----------------------------------------------------------------------------- // <copyright file="IAlerterRepository" company="Matt Scheetz"> // Copyright (c) Matt Scheetz All Rights Reserved // </copyright> // <author name="Matt Scheetz" date="12/3/2018 7:37:26 PM" /> // ---------------------------------------...
31.473684
81
0.525084
[ "MIT" ]
mscheetz/cryptobitfolio
Cryptobitfolio/Cryptobitfolio.Data/Interfaces/Database/IAlerterRepository.cs
600
C#
using MedicalAppointment.Core.DTOs.Appointment; using MedicalAppointment.Core.Interfaces; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace MedicalAppointment.Core.Services { public class AppointmentReportService { private readonly IAppointmentS...
26.928571
84
0.697613
[ "MIT" ]
andrija-mitrovic/MedicalAppointment
MedicalAppointment.Core/Services/AppointmentReportService.cs
756
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.26087
165
0.689815
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.Recommender.V1/Google.Cloud.Recommender.V1.GeneratedSnippets/RecommenderClient.MarkRecommendationFailedRequestObjectSnippet.g.cs
1,944
C#
//#define COSMOSDEBUG using System; using System.Collections.Generic; using System.IO; using Cosmos.HAL.BlockDevice; using Cosmos.System.FileSystem.FAT; using Cosmos.System.FileSystem.Listing; using Cosmos.System.FileSystem.VFS; namespace Cosmos.System.FileSystem { // ReSharper disable once InconsistentNaming ...
38.101449
145
0.55097
[ "BSD-3-Clause" ]
KimTooFlex/Cosmos
source/Cosmos.System2/FileSystem/CosmosVFS.cs
21,034
C#
using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace ufollow.Application { public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBuilde...
24.444444
77
0.606818
[ "Apache-2.0" ]
ufollow/api
src/ufollow.Application/Program.cs
442
C#
using Network; namespace LoginService.Network.GameServerPackets { internal class LoginServer : ServerPacket { private const byte Opcode = 0xA1; private readonly int _key; public LoginServer(int randomKey) { _key = randomKey; } public override void W...
19.714286
48
0.562802
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
dr3dd/L2Interlude
LoginService/Network/GameServerPackets/LoginServer.cs
416
C#
using System; using System.IO; using Org.BouncyCastle.Asn1; using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Crypto.IO; using Org.BouncyCastle.Security; namespace Org.BouncyCastle.Crypto.Operators { public class Asn1DigestFactory : IDigestFactory { public static Asn1DigestFactory ...
27.394366
89
0.587661
[ "MIT" ]
straight-coding/EmbedTools
crypto/src/crypto/operators/Asn1DigestFactory.cs
1,947
C#
// // TensorFlow.cs; Bindings to the TensorFlow C API for .NET // // Authors: // Miguel de Icaza (miguel@microsoft.com) // ㄴThank you! (AinL // // Strongly typed API // The API generally takes a TF_Status that defaults to null, if the value is null, on error, this raises an exception, otherwise, the error is re...
42.092696
319
0.615521
[ "MIT" ]
JaridKG/TensorFlowSharp
TensorFlowSharp/Tensorflow.cs
128,513
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("Cub...
37.72973
84
0.748567
[ "MIT" ]
VeselinBPavlov/programming-fundamentals
10. Methods. Debugging and Troubleshooting Code - Exercises/CubeProperties/Properties/AssemblyInfo.cs
1,399
C#
/* * Copyright 2011-2018 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 "lic...
41.395722
196
0.63028
[ "Apache-2.0" ]
AltairMartinez/aws-sdk-unity-net
src/Core/Amazon.Runtime/EndpointDiscoveryEnabled.cs
7,743
C#
using System; using System.Linq; using System.Linq.Expressions; using System.Reflection; using FluentNHibernate.Conventions; using FluentNHibernate.Conventions.Inspections; using FluentNHibernate.MappingModel; using FluentNHibernate.Utils.Reflection; using NUnit.Framework; namespace FluentNHibernate.Testing....
26.330579
88
0.535782
[ "BSD-3-Clause" ]
JamesKovacs/fluent-nhibernate
src/FluentNHibernate.Testing/ConventionsTests/Inspection/KeyInspectorMapsToKeyMapping.cs
3,186
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RuriLib.Interfaces { /// <summary> /// Interface for requesting user interaction (e.g. confirmations). /// </summary> public interface IAlerter { /// <summary> ...
27.869565
71
0.628705
[ "MIT" ]
BLACKOB/SilverBullet
RuriLib/Interfaces/IAlerter.cs
643
C#
using System.Collections.Generic; namespace Logging.Constants { public static class WebConstants { public const string ParentObject = "parentObject"; public const string RequestUserSecurityProfile = "UserSecurityProfile"; public const string PatchMethod = "PATCH"; publ...
35.458333
115
0.720329
[ "MIT" ]
sreejankumar/Logging
src/libs/Logging/Constants/WebConstants.cs
853
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.Diagnostics; using Microsoft.Build.Shared; using BuildResult = Microsoft.Build.Execution.BuildResult; namespace Microsoft.Build.BackEnd { /// <summa...
33.387097
154
0.614251
[ "MIT" ]
0xced/msbuild
src/Build/BackEnd/Shared/BuildRequestUnblocker.cs
4,142
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; using Xunit; using VerifyCS = Test.Utilities.CSharpCodeFixVerifier< Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.Ove...
26.747126
161
0.718522
[ "Apache-2.0" ]
LingxiaChen/roslyn-analyzers
src/Microsoft.CodeQuality.Analyzers/UnitTests/ApiDesignGuidelines/OverloadOperatorEqualsOnOverridingValueTypeEqualsTests.Fixer.cs
2,329
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
22.814433
112
0.678717
[ "Apache-2.0" ]
VAllens/aliyun-openapi-sdk-net-core
src/aliyun-net-sdk-cloudapi/Model/V20160714/DescribeAppsRequest.cs
2,213
C#
namespace I.SimpleHandmadeFramework.Server.Http.Responses { using Enums; public class HttpViewResponse : HttpResponse { public HttpViewResponse(string content) : base(HttpStatusCode._200_OK) { this.Content = content; } } }
21.307692
78
0.646209
[ "MIT" ]
spzvtbg/05-Web
I.SimpleHandmadeFramework/I.SimpleHandmadeFramework.Server/Http/Responses/HttpViewResponse.cs
279
C#
using System; using Microsoft.Maui.Controls; namespace Microsoft.Maui.Controls.ControlGallery { internal class ScaleRotate : ContentPage { public ScaleRotate() { Label label = new Label { Text = "SCALE AND\nROTATE", HorizontalTextAlignment = TextAlignment.Center, HorizontalOptions = LayoutOpti...
26.805405
79
0.688445
[ "MIT" ]
jongalloway/maui
src/ControlGallery/src/Xamarin.Forms.Controls/GalleryPages/ScaleRotate.cs
4,961
C#
using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; namespace VaccineVerify.Controllers { ///{ /// "presentationType": "QueryByFrame", /// "challengeId": "RhOtpTa8vNh1EId6sJ7AVD3prerMMDSkfWZrUPzt", /// "claims": { /// "id": "did:key:z6MkmGHPW...
40.4
105
0.597772
[ "MIT" ]
swiss-ssi-group/MattrZeroKnowledgeProofsAspNetCore
src/VaccineVerify/Controllers/VerifiedVaccinationData.cs
1,618
C#
// Copyright (c) Teroneko. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; namespace Teronis.Extensions { public static class EnumExtensions { public const bool IgnoreZeroWhenCrush...
38.354167
166
0.66214
[ "MIT" ]
Teroneko-NET-Tools/Teronis.NetStandard.Core
src/Core/src/Extensions/EnumExtensions.cs
1,843
C#
// ====================================== // Copyright © 2019 Vadim Prokopchuk. All rights reserved. // Contacts: mailvadimprokopchuk@gmail.com // License: http://opensource.org/licenses/MIT // ====================================== using System.Web.Http; namespace LR3 { public class WebApiApplication : System....
25.421053
65
0.569358
[ "MIT" ]
VadimProkopchuk/PRM
LR3/Global.asax.cs
486
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // 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: Asse...
50.881356
225
0.775816
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/Lex/Properties/AssemblyInfo.cs
3,002
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; namespace Zenva.VR { [RequireComponent(typeof(Collider))] [RequireComponent(typeof(Rigidbody))] public class Grabbable : MonoBehaviour { // options when releasing the item public en...
26.891304
89
0.55322
[ "MIT" ]
ReanSchwarzer1/VR-FPRPG-Proto
Assets/ZenvaVR/ZenvaVR/Toolkit/Scripts/Grabbable.cs
3,713
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using SmallCode_Website.Data; using SmallCode_Website.Models; namespace SmallCode_Website.Pages { public class HomeModel : PageModel { ...
20.6
53
0.642395
[ "MIT" ]
saliherdemk/Smallcode-Website
SmallCode Website/Pages/Home.cshtml.cs
618
C#
using EPAS.DataEntity.Entity.Common; using System.ComponentModel; namespace EPAS.DataEntity.Enum { //生产物料预约状态 public enum RegisterWarehouseAppointmentStatus { [DescriptionAttribute("zh-CN,成功;en-US,Success;")] Success = 1, [DescriptionAttribute("zh-CN,失败;en-US,Fail")] Fa...
17.25
57
0.63285
[ "MPL-2.0" ]
whw0828/EPASServer
EPASFramework/EPAS.DataEntity/Enum/RegisterWarehouseAppointmentStatus.cs
444
C#
using System; using System.Collections.Generic; using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; using ProtoBuf; namespace ET { [ProtoContract] [Config] public partial class SkillConfigCategory : ProtoObject { public static SkillConfigCategory Instance; [ProtoIgnore] ...
27
87
0.590924
[ "MIT" ]
chengxu-yh/ET
Unity/Assets/Model/Generate/Config/SkillConfig.cs
3,023
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.Diagnostics; using System.IO; using System.Text; using System.Xml.XPath; using ILLink.Shared; using Mono.Cecil; namespace Mono.Linker.Steps { public ...
39.931741
201
0.606667
[ "MIT" ]
333fred/runtime
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ReferenceSource/DescriptorMarker.cs
11,700
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.Collections; using System.Collections.Generic; namespace System.ServiceModel.Channels { public sealed class UnderstoodHeaders : IEnumerable<MessageHea...
26.962963
101
0.626374
[ "MIT" ]
777Eternal777/wcf
src/System.Private.ServiceModel/src/System/ServiceModel/Channels/UnderstoodHeaders.cs
1,456
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MDC.Domain.Entities; using MDC.Domain.Interfaces.Repository; using MDC.Domain.Tools; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace MDC.WebApi.Controllers { [Produces("application/jso...
24.065574
64
0.575613
[ "MIT" ]
MoniqueOliveiraApostolo/mdc
MDC/MDC.WebApi/Controllers/StoreController.cs
1,470
C#
namespace Kaffee.Models { public class RefreshTokenRequest { public string RefreshToken { get; set; } } }
15.875
48
0.637795
[ "MIT" ]
wel-shy/kaffee-api
src/Kaffee/Models/Requests/RefreshTokenRequest.cs
127
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TRec.BusinessLayer { public class Goal : IComparable<Goal> { public Guid GoalId { get; set; } public Guid UserId { get; set; } public string Description { get; set; } ...
23
81
0.597101
[ "MIT" ]
PaulBenfield/TRec
TRec.BusinessLayer/Goal.cs
1,037
C#
using SEDC.Class07.MovieStore.Entities.BaseModels; using SEDC.Class07.MovieStore.Entities.Enumerations; using System; using System.Collections.Generic; using System.Text; namespace SEDC.Class07.MovieStore.Entities.Models { public class Employee : Member { private double Salary { get; set; } p...
24.352941
151
0.555556
[ "MIT" ]
vladimir-koloski/C-Homeworks
Homework01/SEDC.Class07.MovieStore/SEDC.Class07.MovieStore.BaseModels/Models/Employee.cs
1,244
C#
using System; using System.Collections.Generic; using System.Text; namespace FluentFTP { /// <summary> /// The result of an upload or download operation /// </summary> public enum FtpStatus { /// <summary> /// The upload or download failed with an error transfering, or the source file did not exist /// </s...
20.857143
95
0.666096
[ "MIT" ]
0xced/FluentFTP
FluentFTP/Enums/FtpStatus.cs
586
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...
49.672897
290
0.645456
[ "Apache-2.0" ]
QPC-database/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/Redshift/Basic/Edit-RSScheduledAction-Cmdlet.cs
26,575
C#
using System; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using System.Security.Claims; using System.IdentityModel.Tokens.Jwt; using Microsoft.IdentityModel.Tokens; using System.Text; using KiancaAPI.DTOs; namespace KiancaAPI.Controllers { [Produces("application/json")] [Route("a...
33.083333
91
0.597397
[ "MIT" ]
ricardotondello/KiancasApi-BackEnd
src/Controllers/AutorizaController.cs
2,385
C#
// Copyright (c) Microsoft. All rights reserved. [assembly: System.Runtime.CompilerServices.InternalsVisibleToAttribute("Microsoft.Azure.Devices.Edge.Agent.Diagnostics.Test")] namespace Microsoft.Azure.Devices.Edge.Agent.Diagnostics { using System; using System.Collections; using System.Collections.Generic...
41.707182
162
0.592131
[ "MIT" ]
zasherif/iotedge
edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Diagnostics/MetricsWorker.cs
7,549
C#
using System; namespace Craftgate.Response { public class WalletResponse { public long Id { get; set; } public DateTime? CreatedDate { get; set; } public DateTime? UpdatedDate { get; set; } public decimal Amount { get; set; } public decimal WithdrawalAmount { get; set; }...
27.733333
53
0.605769
[ "MIT" ]
craftgate/craftgate-dotnet-client
Craftgate/Response/WalletResponse.cs
416
C#
/* * MIT License * * Copyright(c) 2018 thrzn41 * * 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, modif...
35.292683
81
0.737388
[ "MIT" ]
thrzn41/WebexTeamsAPIClient
CSharp/MultiTarget.Thrzn41.WebexTeams/Version1/SpaceList.cs
1,449
C#
using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Xml.Serialization; using CsvHelper; using DataImportApp.Application.Common; using DataImportApp.Domain.Entities; using DataImportApp.Domain.Enums; using Microsoft.AspNetCore.Http; namespace DataImportApp.Applicat...
34.326389
145
0.510621
[ "Apache-2.0" ]
TanvirArjel/DataImportApp
src/Api/DataImportApp.Application/Implementations/Common/TransactionDataImporter.cs
4,945
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Cofoundry.Core.DependencyInjection; using Cofoundry.Domain.Internal; namespace Cofoundry.Domain.Registration { public class CustomEntitiesDependencyRegistration : IDependencyRegistration {...
50.425
112
0.724839
[ "MIT" ]
OliveiraLands/cofoundry
src/Cofoundry.Domain/Domain/CustomEntities/Bootstrap/CustomEntitiesDependencyRegistration.cs
2,019
C#
using _0_Framework.Infrastructure; namespace DiscountManagement.Infrastructure.Configuration.Permissions { public class DiscountPermissionExposer: IPermissionExposer { public Dictionary<string, List<PermissionDto>> Expose() { return new Dictionary<string, List<PermissionDto>> { ...
56.321429
114
0.615092
[ "MIT" ]
AmirhosseinKeshtkar/Lampshade
DiscountManagement.Configuration/Permissions/DiscountPermissionExposer.cs
1,720
C#
// Copyright 2020-2021 Mykhailo Shevchuk & Contributors // // Licensed under the MIT license; // you may not use this file except in compliance with the License. // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WAR...
43.139535
123
0.627134
[ "MIT" ]
MaximPopov/serilog-sinks-grafana-loki
src/Serilog.Sinks.Grafana.Loki/LoggerConfigurationLokiExtensions.cs
5,567
C#
using System; using System.Threading.Tasks; using System.Collections.Generic; using System.Text; using System.IO; using NumSharp; namespace Tensorflow { public class MnistModelLoader : IModelLoader<MnistDataSet> { private const string DEFAULT_SOURCE_URL = "https://storage.googleapis.com/cvdf-datasets/...
44.016216
213
0.627656
[ "Apache-2.0" ]
BlueCode2019/TensorFlow.NET
src/TensorFlowNET.Core/Data/MnistModelLoader.cs
8,145
C#
namespace Minsk.CodeAnalysis.Syntax { public abstract class StatementSyntax : SyntaxNode { } }
17.666667
54
0.716981
[ "MIT" ]
Neme12/minsk
src/Minsk/CodeAnalysis/Syntax/StatementSyntax.cs
106
C#
using NUnit.Framework; using NUnit.Framework.TUnit; using System; using Tizen.NUI; using Tizen.NUI.BaseComponents; namespace Tizen.NUI.Devel.Tests { using tlog = Tizen.Log; [TestFixture] [Description("public/Events/GestureDetector")] class PublicGestureDetectorTest { private const string...
37.639535
123
0.580064
[ "Apache-2.0", "MIT" ]
SaraMohSamara/TizenFX
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Events/TSGestureDetector.cs
9,713
C#
namespace TableOfNothing.Configuration.EsotericStrategies { public interface IEsotericStrategy { string GetConfiguration(); } }
21
57
0.734694
[ "Apache-2.0" ]
allenmichael/TableOfNothing
TableOfNothing/Configuration/EsotericStrategies/IEsotericStrategy.cs
147
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 ...
38.636364
105
0.683529
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.Talent.V4/Google.Cloud.Talent.V4.GeneratedSnippets/CompanyServiceClient.GetCompanyRequestObjectSnippet.g.cs
1,700
C#
using System.Collections.Generic; using System.IO; namespace Winforms.Cartesian.Linq { public static class DataBase { static DataBase() { var reader = new StreamReader(File.OpenRead(@"cities.csv")); var read = new List<City>(); while (!reader.EndOfStream) ...
24.184211
72
0.420022
[ "MIT" ]
Coding-Enthusiast/Live-Charts
Examples/WinForms/Cartesian/Linq/DataBase.cs
921
C#
using System; using System.Collections.Generic; using Microsoft.EntityFrameworkCore.Migrations; namespace imperugo.aspnet.core.training.Migrations { public partial class addedComments : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.Cre...
35.829787
77
0.507126
[ "MIT" ]
imperugo/.NET-Core-Training
011 - EntityFramework/imperugo.aspnet.core.training/Migrations/20160707145203_addedComments.cs
1,686
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace SharpGLTF.Schema2 { using ROOT = ModelRoot; static class BinarySerialization { #region constants public const uint GLTFHEADER = 0x46546C67; public const uint GLTFVERSION2 =...
36.466667
259
0.549512
[ "MIT" ]
jcansdale-test/SharpGLTF
src/SharpGLTF.Core/IO/BinarySerialization.cs
6,566
C#
namespace tv.Crystal.UI.CustomControls { partial class BaseForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary...
35.87037
139
0.628807
[ "MIT" ]
kottamam/Crystal
infoSoft.Crystal.UI/CustomControls/BaseForm.Designer.cs
1,939
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.UI.Input.Inking { #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ public enum InkManipulationMode { #if __ANDROID__ || __IOS__ || NET461 || __WA...
33
99
0.704545
[ "Apache-2.0" ]
AbdalaMask/uno
src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Input.Inking/InkManipulationMode.cs
660
C#
using System.Runtime.InteropServices; namespace IctBaden.PiXtend.WiringPi { /// <summary> /// Provides access to the Thread priority and interrupts for IO /// </summary> public class PiThreadInterrupts { [DllImport("libwiringPi.so", EntryPoint = "piHiPri")] public static extern int...
32.59375
113
0.641419
[ "MIT" ]
FrankPfattheicher/PiXtendV2
IctBaden.PiXtend.NET40/WiringPi/PiThreadInterrupts.cs
1,045
C#
using System; namespace BonusScore { class BonusScore { static void Main(string[] args) { int number = int.Parse(Console.ReadLine()); double bonus = 0.0; if (number <= 100) { bonus = 5; } else if (number >...
19.571429
55
0.352798
[ "MIT" ]
delbusque/My-SoftUni-projects-homework-and-exercises
Basics/02-ConditionalStatementsExercise/BonusScore/BonusScore.cs
824
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; namespace WithoutHaste.DataFiles.DotNet { /// <summary> /// Represents a link in the comments to an internal generic-type parameter. /// </summary> public class DotNetCommentTypeParameterLink : DotNetComme...
26.394737
111
0.739781
[ "MIT" ]
WithoutHaste/WithoutHaste.DataFiles
DataFiles/DotNet/DotNetCommentTypeParameterLink.cs
1,005
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace VideoStore { class Beutor { public static void Main(string[] args) { M().GetAwaiter().GetResult(); ...
26.627119
87
0.561426
[ "MIT" ]
pgrigoro/training
kata/kata-videostore-cs/VideoStore/Class5.cs
1,573
C#
namespace Server { partial class Form { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <...
49.362416
173
0.591027
[ "MIT" ]
Icemaush/Multi-Client_ChatApplication
Server/Form.Designer.cs
14,712
C#
/* * SCORM Cloud Rest API * * REST API used for SCORM Cloud integrations. * * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections; ...
31.531915
140
0.549933
[ "Apache-2.0" ]
RusticiSoftware/scormcloud-api-v2-client-net
src/Com.RusticiSoftware.Cloud.V2/Model/DispatchIdSchema.cs
4,446
C#