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 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...
59.738314
201
0.685949
[ "Apache-2.0" ]
alefranz/aws-sdk-net
sdk/src/Services/WorkSpaces/Generated/_bcl35/IAmazonWorkSpaces.cs
143,133
C#
using System; using System.Collections.Generic; using WJStore.Domain.Interfaces.Validation; namespace WJStore.Domain.Validation { public class Validation<TEntity> : IValidation<TEntity> where TEntity : class { private readonly Dictionary<string, IValidationRule<TEntity>> _validationsRules; ...
30.95
88
0.613086
[ "MIT" ]
MrWooJ/WJStore
WJStore.Domain/Validation/Validation.cs
1,240
C#
using System; namespace FontAwesome { /// <summary> /// The unicode values for all FontAwesome icons. /// <para/> /// See https://fontawesome.com/cheatsheet /// <para/> /// This code was automatically generated by FA2CS (https://github.com/michaelswells/fa2cs a modified fork from https://github...
36.803279
154
0.598664
[ "MIT" ]
michaelswells/FontAwesomeAttribute
FontAwesome/FontAwesome.BaseballBall.cs
2,245
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
47.487013
203
0.576918
[ "MIT" ]
3quanfeng/azure-powershell
src/RecoveryServices/RecoveryServices.Backup/Cmdlets/RecoveryPoint/GetAzureRmRecoveryServicesBackupRecoveryLogChain.cs
7,162
C#
using System; namespace DataManager.Areas.HelpPage.ModelDescriptions { /// <summary> /// Use this attribute to change the name of the <see cref="ModelDescription"/> generated for a type. /// </summary> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultip...
31.222222
136
0.66726
[ "MIT" ]
inanfatih/retail-manager
DataManager/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs
562
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by \generate-code.bat. // // Changes to this file will be lost when the code is regenerated. // The build server regenerates the code before each build and a pre-build // step ...
52.896104
125
0.708569
[ "MIT-feh" ]
AIKICo/UnitsNet
UnitsNet.NumberExtensions/GeneratedCode/NumberToReciprocalAreaExtensions.g.cs
4,073
C#
using System; using System.Drawing; using System.Windows.Forms; namespace WebCam { public class Calibration { #region declerations public bool EnableContinualCalibration = true; /// <summary>How far tracker must move in the x or y direction to be considered an actual move</summary> ...
40.328358
129
0.586047
[ "MIT" ]
ScienceExp/Web-Cam-Marker-Tracker
WebCam/Calibration.cs
5,406
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TileMap : MonoBehaviour { /// <summary> /// ProceduralWall Model /// </summary> [Range(0.01f,10)] [SerializeField] private float mapCellScale = 1.0f; [Range(1,10)] [Serialize...
39.106557
133
0.440998
[ "CC0-1.0" ]
rohitwesley/CityBuilder
Assets/Scripts/TileMap.cs
4,773
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System; namespace Microsoft.Owin.Hosting.Starter { /// <summary> /// Performs any necessary environment setup prior to executing the IHostingEngine. /// </summ...
32.4
133
0.645062
[ "Apache-2.0" ]
mickey2009/KatanaProject
src/Microsoft.Owin.Hosting/Starter/IHostingStarter.cs
648
C#
namespace TomsToolbox.Wpf { using System.Collections.Generic; using System.Windows; using TomsToolbox.Essentials; /// <summary> /// Helper methods to interchange data via clipboard. /// </summary> public static class ClipboardHelper { /// <summary> /// Gets the clipboa...
34.224138
163
0.592947
[ "MIT" ]
ali50m/TomsToolbox
src/TomsToolbox.Wpf/ClipboardHelper.cs
1,987
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 Silk.NET.Core.Attributes; #pragma warning disable 1591 namespace Silk.NET.DXVA { [NativeName("Name", "_DXVA_VideoProcessCaps")] public enum VideoProces...
36.594595
71
0.693501
[ "MIT" ]
DmitryGolubenkov/Silk.NET
src/Microsoft/Silk.NET.DXVA/Enums/VideoProcessCaps.gen.cs
1,354
C#
 // cannot get exported types of Anonymously Hosted DynamicMethods Assembly namespace CallSharp { using System; using System.Diagnostics; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; public class StaticMemberDatabase : IMemberDatabase { priv...
34.040779
165
0.55337
[ "MIT" ]
nesteruk/CallSharp
src/CallSharp/Db/StaticMemberDatabase.cs
410,704
C#
using System.Collections; using UnityEngine.Assertions; using Video.Plugin; namespace Video.Plugin { public class VideoPluginWrapper_Mock : IVideoPluginWrapper { public bool isCreated = false; public bool isReady = false; public float currentTime = 0; private VideoState state;...
26.298246
89
0.548699
[ "MIT" ]
BrianAmadori/unity-web-hls-plugin
Assets/WebVideoPlayer/Tests/VideoPluginWrapper_Mock.cs
3,000
C#
$PostFXManager::Settings::ColorCorrectionRamp = "scripts/client/postFx/null_color_ramp.png"; $PostFXManager::Settings::DOF::BlurCurveFar = "50"; $PostFXManager::Settings::DOF::BlurCurveNear = "50"; $PostFXManager::Settings::DOF::BlurMax = "0.15"; $PostFXManager::Settings::DOF::BlurMin = "0.07"; $PostFXManager::Settings...
52.017544
92
0.728836
[ "Unlicense" ]
Duion/Uebergame
levels/Pazifik/Pazifik_Watertown/Pazifik_Watertown_dawn.postfxpreset.cs
2,965
C#
using UnityEngine; using UnityEngine.Events; #if UNITY_EDITOR using UnityEditor; #endif namespace Lean.Transition.Extras { /// <summary>This component executes the specified transitions at regular intervals.</summary> [HelpURL(LeanTransition.HelpUrlPrefix + "LeanAnimationRepeater")] [AddComponentMenu(LeanTransitio...
25.676056
207
0.737795
[ "MIT" ]
DrScatman/vr-mod
Assets/Lean/Transition/Extras/Scripts/LeanAnimationRepeater.cs
1,825
C#
using System; using CSharpFunctionalExtensions; namespace Logic.Entities { public class CustomerName : ValueObject<CustomerName> { public string Value { get; } private CustomerName(string value) { this.Value = value; } public static Result<CustomerName> Cre...
28.339623
97
0.616511
[ "MIT" ]
luis-eduardo/AnemicDomainModel
BeforeCore/src/Logic/Entities/CustomerName.cs
1,502
C#
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\d3dumddi.h(789,9) using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct _D3DDDI_COLORFILLFLAGS { public _D3DDDI_COLORFILLFLAGS__union_0 __union_0; } }
25.583333
84
0.742671
[ "MIT" ]
bbday/DirectN
DirectN/DirectN/Generated/_D3DDDI_COLORFILLFLAGS.cs
309
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. #nullable disable using System.Drawing; using System.Windows.Forms.VisualStyles; namespace System.Windows.Forms {...
30.883721
112
0.609187
[ "MIT" ]
ArtemTatarinov/winforms
src/System.Windows.Forms/src/System/Windows/Forms/DataGridViewRowHeaderCell.DataGridViewRowHeaderCellRenderer.cs
1,330
C#
using MahApps.Metro.Controls; using Seemon.Vault.Core.Contracts.ViewModels; using Seemon.Vault.Core.Contracts.Views; using System.Windows; namespace Seemon.Vault.Helpers.Views { public class WindowBase : MetroWindow, IWindow { public IViewModel ViewModel => DataContext as IViewModel; public v...
23.24
65
0.621343
[ "MIT" ]
mattseemon/Vault
src/UX/Helpers/Views/WindowBase.cs
583
C#
// Copyright (c) Six Labors. // Licensed under the Apache License, Version 2.0. using SixLabors.ImageSharp.Textures.Formats.Dds; using SixLabors.ImageSharp.Textures.Tests.Enums; using SixLabors.ImageSharp.Textures.Tests.TestUtilities.Attributes; using SixLabors.ImageSharp.Textures.Tests.TestUtilities.TextureProviders;...
37.4375
111
0.722871
[ "Apache-2.0" ]
SixLabors/ImageSharp.Textures
tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderVolumeTests.cs
1,198
C#
using PlayersAndMonsters.Repositories.Contracts; using System; using System.Collections.Generic; using System.Text; namespace PlayersAndMonsters.Models.Players { public class Advanced : Player { private const int HEALTH = 250; public Advanced(string username) : base(username, HEALT...
19.5
49
0.666667
[ "MIT" ]
ITonev/SoftUni
C#-OOP/Exams/18 April 2019/Structure_Business_Logic/PlayersAndMonsters/Models/Players/Advanced.cs
353
C#
using Shared.Common.Enums; using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; namespace Shared.Models.Base { /// <summary> /// Generic repsonse class /// </summary> /// <typeparam name="T"></typeparam> public class ApiResponses<T> { /// <sum...
32.90411
168
0.609908
[ "MIT" ]
kishanchdry/Core5.0Dapper
Shared/Models/Base/ApiResponses.cs
2,404
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Globalization { /// <summary> /// JapaneseCalendar is based on Gregorian calendar. The month and day values are the same as /// Gregorian calendar. Howe...
33.695187
125
0.478654
[ "MIT" ]
belav/runtime
src/libraries/System.Private.CoreLib/src/System/Globalization/JapaneseCalendar.cs
12,602
C#
// Released under the MIT License. // // Copyright (c) 2018 Ntreev Soft co., Ltd. // Copyright (c) 2020 Jeesu Choi // // 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, i...
45.740331
167
0.656963
[ "MIT" ]
s2quake/JSSoft.Crema
client/JSSoft.Crema.Presentation.Users/BrowserItems/ViewModels/UserBrowserViewModel.cs
8,307
C#
using System; using Windows.UI.Xaml.Data; namespace Famoser.BeerCompanion.Presentation.WindowsUniversal.Converter.Format { public class FormatDouble : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { var dub = (double) valu...
29.583333
99
0.619718
[ "MIT" ]
famoser/BeerCompanion
Famoser.BeerCompanion.Presentation.WindowsUniversal/Converter/Format/FormatDouble.cs
712
C#
using ReClassNET.Controls; namespace ReClassNET.Forms { partial class ProcessBrowserForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="dis...
46.460432
161
0.758284
[ "MIT" ]
Akandesh/ReClass.NET
ReClass.NET/Forms/ProcessBrowserForm.Designer.cs
12,916
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.Globalization; using System.Text; namespace SpecificationTranslator.Query { /// <summary> /// This API supports ...
50.113821
120
0.647469
[ "MIT" ]
ShadowTracker/SpecificationTranslator
src/SpecificationTranslator/Query/SqlServerSqlGenerationHelper.cs
6,164
C#
namespace BezelEngineArchiveEditor { partial class Credits { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
40.352201
107
0.547382
[ "BSD-3-Clause" ]
CVFireDragon/BEA-Library-Editor
BezelEngineArchiveEditor/Credits.Designer.cs
6,418
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.Security.Attestation...
50.503759
190
0.621706
[ "MIT" ]
ChenglongLiu/azure-sdk-for-net
sdk/attestation/Azure.Security.Attestation/src/Generated/AttestationRestClient.cs
13,434
C#
namespace Sudoku.Data; /// <summary> /// Defines a chain node, with basic information about the node. At the same time you can get the root node /// of the chain, using the current node as the tail node. /// </summary> /// <remarks> /// The data structure uses an <see cref="int"/> value to represent an instance. The ...
27.048
116
0.625752
[ "MIT" ]
SunnieShine/Sudoku
src/Sudoku.Core/Data/ChainNode.cs
10,145
C#
// <copyright file="DivergenceStopCriteriumTest.cs" company="Math.NET"> // Math.NET Numerics, part of the Math.NET Project // http://numerics.mathdotnet.com // http://github.com/mathnet/mathnet-numerics // http://mathnetnumerics.codeplex.com // // Copyright (c) 2009-2013 Math.NET // // Permission is hereby granted, fre...
40.291803
142
0.602978
[ "MIT" ]
Plankankul/Framework-w-WebApp
Original/mathnet-numerics/src/UnitTests/LinearAlgebraTests/Complex32/Solvers/StopCriterium/DivergenceStopCriteriumTest.cs
12,289
C#
// SPDX-License-Identifier: Apache-2.0 // Licensed to the Ed-Fi Alliance under one or more agreements. // The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. // See the LICENSE and NOTICES files in the project root for more information. using System; using System.Globalization; using S...
29.108696
86
0.606423
[ "Apache-2.0" ]
stephenfuqua/Ed-Fi-ODS-AdminApp
Application/EdFi.Ods.AdminApp.Web/Helpers/StringExtensions.cs
1,341
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; namespace Azure.Core.Amqp { /// <summary> /// Represents the AMQP message properties. /// <seealso href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-propert...
30.929412
120
0.56105
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/core/Azure.Core.Amqp/src/AmqpMessageProperties.cs
2,631
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace albion_data_reader_new.handlers { public class PartyJoinEvent { public string PlayerJoinedId { get; set; } public string PlayerJoinedName { get; set; } } }
20.8
52
0.721154
[ "MIT" ]
ItsNotMyFault/AlbionDataReader
albion-data-reader-new/handlers/party/events/PartyJoinEvent.cs
314
C#
using System; using slang.Compilation; using slang.Compiler.Core.Compilation; using System.Linq; using sc.Terminal; namespace sc { class MainClass { public static void Main (string[] args) { Messages.WriteLogo (); Messages.WriteHeader (); ValidateArgs (args)...
28.6
111
0.554002
[ "MIT" ]
jagrem/slang
src/Tools/sc/Program.cs
1,289
C#
using System; using System.Text.RegularExpressions; namespace _1.ExtractPersonsInformationME { class Program { static void Main(string[] args) { int numberOfLines = int.Parse(Console.ReadLine()); for (int i = 0; i < numberOfLines; i++) { str...
29.607143
95
0.496984
[ "MIT" ]
deedeedextor/Software-University
C#TechnologyFundamentals/StringAndTextProcessingLEME/1.ExtractPersonsInformationME/Program.cs
831
C#
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.AccessApi { #region Delegates #pragma warning disable #pragma warning restore #endregion /// <summary> /// CoClass TempVar /// SupportByVersion Access, 12,14,15,16 /// </summary> //...
27.862319
162
0.655917
[ "MIT" ]
DominikPalo/NetOffice
Source/Access/Classes/TempVar.cs
3,847
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...
37.947368
192
0.625751
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/OpsWorks/Generated/Model/Internal/MarshallTransformations/CreateAppResponseUnmarshaller.cs
4,326
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System...
37.318182
145
0.713764
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
tests/Interop/Windows/Windows/um/MsHTML/HTMLNextIdElementTests.cs
1,644
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.c...
221.341463
16,252
0.640331
[ "MIT" ]
finbourne/lusid-sdk-csharp-preview
sdk/Lusid.Sdk/Model/AssetClass.cs
18,150
C#
namespace GenericGameBridge.Service { using System.Collections.Generic; public delegate bool NetSegmentHandler(ushort segmentId, ref NetSegment segment); public delegate bool NetSegmentLaneHandler(uint laneId, ref NetLane lane, ...
43.678571
187
0.55785
[ "MIT" ]
MightyWizard/TMPE
TLM/TMPE.GenericGameBridge/Service/INetService.cs
4,892
C#
using System; namespace Plugin.FilePicker.Abstractions { public class FilePickerEventArgs : EventArgs { public byte [] FileByte { get; set; } public string FileName { get; set; } public string FilePath { get; set; } public FilePickerEventArgs () { } ...
21.828571
87
0.551047
[ "MIT" ]
Happypig375/FilePicker-Plugin-for-Xamarin-and-Windows
src/Plugin.FilePicker/Plugin.FilePicker.Abstractions/FilePickerEventArgs.cs
766
C#
using System; using Eto.Forms; using Eto.Drawing; using System.Diagnostics; #if XAMMAC2 using AppKit; using Foundation; using CoreGraphics; using ObjCRuntime; using CoreAnimation; using CoreImage; #else using MonoMac.AppKit; using MonoMac.Foundation; using MonoMac.CoreGraphics; using MonoMac.ObjCRuntime; using MonoMac....
24.674556
114
0.708633
[ "BSD-3-Clause" ]
Fullbrik/Eto
src/Eto.Mac/Forms/Controls/MacEventView.cs
4,170
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 ...
45.606557
151
0.692308
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.Compute.V1/Google.Cloud.Compute.V1.GeneratedSnippets/NetworkEndpointGroupsClient.InsertAsyncSnippet.g.cs
2,782
C#
using System.Collections; using System.Collections.Generic; using JetBrains.Annotations; using UnityEngine; public static class MathExtensions { [PublicAPI] public static float Distance(this MonoBehaviour from, in Vector3 to) => Vector3.Distance(a: from.transform.position, b: to); [PublicAPI]...
28.95
72
0.699482
[ "MIT" ]
Walter-Haynes/vrtwix-unchained
Assets/_VRtwix/Scripts/Utilities/MathExtensions.cs
581
C#
#pragma warning disable CS0618 using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; us...
41.796008
266
0.574986
[ "MIT" ]
xt449/DSharpPlus
DSharpPlus/DiscordClient.cs
123,551
C#
//------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.12 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //----...
69.701299
468
0.798025
[ "BSD-3-Clause" ]
x-xing/Quantlib-SWIG
CSharp/csharp/MCDiscreteArithmeticAPEngine.cs
5,367
C#
using System; using System.Globalization; using System.Linq; using System.Reflection; namespace WebAPI_01.Areas.HelpPage.ModelDescriptions { internal static class ModelNameHelper { // Modify this to provide custom model name mapping. public static string GetModelName(Type type) ...
40.916667
141
0.620502
[ "MIT" ]
jacking75/semina_MobileServer_WCF
Code_AspNetWebAPI/WebAPI_01/WebAPI_01/Areas/HelpPage/ModelDescriptions/ModelNameHelper.cs
1,473
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...
71.430769
2,697
0.714409
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Insights/Latest/Inputs/RecurrentScheduleArgs.cs
4,643
C#
using System; using Yung.Exceptions; namespace Yung.AST { public class Float : INumber { public Float(float value) { Value = value; } public float Value { get; } public INumber Negate() { return new Float(-Value); } pub...
23.273504
68
0.429673
[ "MIT" ]
Daouki/yung
Yung/AST/Float.cs
2,725
C#
extern alias oldmsgpack; extern alias newmsgpack; using System.Collections.Generic; using ProtoBuf; namespace Benchmark.Models { [ProtoContract, System.Serializable, System.Runtime.Serialization.DataContract, oldmsgpack::MessagePack.MessagePackObject, newmsgpack::MessagePack.MessagePackObject] public class Fl...
52.106061
169
0.657168
[ "BSD-2-Clause" ]
alefranz/MessagePack-CSharp
benchmark/SerializerBenchmark/Models/FlagOption.cs
3,441
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Uavcan.NET.IO.Can.Drivers.Slcan { /// <summary> /// Represents a CAN filter chain. /// </summary> public class FilterChain { /// <summary> /// Create filter...
24.694444
66
0.554556
[ "MIT" ]
kolos450/Uavcan.NET
Source/Uavcan.NET.IO.Can.Drivers.Slcan/FilterChain.cs
891
C#
/* * Copyright 2011-2015 Numeric Technology * * 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 l...
37.046512
153
0.617493
[ "Apache-2.0" ]
NumericTechnology/Platanum.Net
KPComponents/KPGlobal/KPGlobal.cs
4,782
C#
/* =============================================================================== EntitySpaces 2009 by EntitySpaces, LLC Persistence Layer and Business Objects for Microsoft .NET EntitySpaces(TM) is a legal trademark of EntitySpaces, LLC http://ww...
28.766667
79
0.494786
[ "Unlicense" ]
EntitySpaces/EntitySpaces-CompleteSource
Tests/CSharp/TestAllDatabases/TestAllDatabases/BusinessObjects/Custom/Oracle/OracleTestCollection.cs
863
C#
// Copyright (c) "Neo4j" // Neo4j Sweden AB [http://neo4j.com] // // This file is part of Neo4j. // // 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/license...
35.702703
85
0.742619
[ "Apache-2.0" ]
AndyHeap-NeoTech/neo4j-dotnet-driver
Neo4j.Driver/Neo4j.Driver/Internal/Connector/ISocketClient.cs
1,321
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using KModkit; using rnd = UnityEngine.Random; public class simonScratches : MonoBehaviour { public new KMAudio audio; public KMBombInfo bomb; public KMBombModule module; public KMSelectable...
29.625
162
0.621861
[ "MIT" ]
tasthing/Simon-Scratches
Assets/simonScratches.cs
4,977
C#
#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. ////////////////////////////////////////////////////////////////////// // // Copyright (c) 2017 Audiokinetic Inc. / All Rights Reserved // ///////////////...
33.321168
428
0.725301
[ "MIT" ]
Anreol/ReleasedFromTheVoid
Assets/Wwise/Deployment/Components/AkSpatialAudioListener.cs
4,565
C#
#nullable disable using FluentNHibernate.Mapping; using VocaDb.Model.Domain.Discussions; namespace VocaDb.Model.Mapping.Discussions { public class DiscussionFolderMap : ClassMap<DiscussionFolder> { public DiscussionFolderMap() { Schema("discussions"); Table("DiscussionFolders"); Cache.Read...
23.740741
77
0.661466
[ "MIT" ]
AgFlore/vocadb
VocaDbModel/Mapping/Discussions/DiscussionFolderMap.cs
641
C#
using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace SignalRCore2Chat { public class Program { public static void Main(string[] args) { BuildWebHost(args).Run(); } public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuild...
23.0625
128
0.655827
[ "MIT" ]
hasan190889/SignalRCore2Chat
Program.cs
371
C#
using System.Collections.Generic; using System; using FluentValidation; using System.ComponentModel.DataAnnotations.Schema; using FluentValidation.Attributes; namespace Shared.Models { [Validator(typeof(MenuViewModelValidator))] public class MenuViewModel { public int Id { get; set; } publ...
32.428571
74
0.605727
[ "MIT" ]
duyxaoke/Solution
Shared/Models/MenuViewModel.cs
1,364
C#
using AdventOfCode.Days.Tools.Day25; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AdventOfCode.Days { public class Day25 : DayBase { public override string Title => "Combo Breaker"; RfidClient Card; RfidC...
29.225806
78
0.629139
[ "MIT" ]
Crazymine-hub/AdventOfCode
AoC2020/Days/Day25.cs
908
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...
41.009524
178
0.659545
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/SageMakerRuntime/Generated/AmazonSageMakerRuntimeException.cs
4,306
C#
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/ // Portions Copyright 2000-2004 Jonathan de Halleux // // 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.a...
37.643192
145
0.565478
[ "ECL-2.0", "Apache-2.0" ]
citizenmatt/gallio
src/Gallio/Gallio/Common/Reflection/AssemblySignature.cs
8,018
C#
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Storage; using MSDF.StudentEngagement.Persistence.EntityFramework; using MSDF.StudentEngagement.Persistence.Models; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; namespac...
29.088889
89
0.640183
[ "Apache-2.0" ]
ValerieRobateau/Ed-Fi-X-StudentEngagement
MSDF.StudentEngagement.Web/MSDF.StudentEngagement.Persistence/CommandsAndQueries/Queries/LearningAppQueries.cs
1,311
C#
// Copyright 2017 the original author or 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
33.333333
75
0.745714
[ "Apache-2.0" ]
Karql/steeltoe
src/Stream/test/StubBinder2/StubBinder2Dependency.cs
702
C#
using System.Collections; using System.Collections.Generic; using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; using System.Linq; namespace Hinode.Tests.Input { /// <summary> /// <seealso cref="AppendTouchInputData"/> /// </summary> public class TestAppendTouchInputData : TestBase ...
33.493333
90
0.607484
[ "Apache-2.0" ]
tositeru/hinode
Tests/Runtime/Input/FrameInputData/MonoBehaviour/TestAttachTouchInputData.cs
2,514
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace DanmakU.Fireables { [Serializable] public class Spiral : Fireable { /// <summary> /// Spiral shot count /// </summary> public Range Count; /// <summary> /// Spiral start angle /// ...
23.841121
107
0.575069
[ "MIT" ]
hdmmY/DanmakU
Assets/DanmakU/Runtime/Fireables/Shapes/Spiral.cs
2,553
C#
namespace ResidentBookmark.Services { public class QueryService { public async Task<List<Label>> RetrieveAllLabels(ResidentBookmarkContext context) { List<Label> labels = await context.Labels.ToListAsync(); if (labels == null) { throw new Find...
31.688312
126
0.539754
[ "MIT" ]
residentsystem/residentbookmark
Services/QueryService.cs
2,440
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.Goog...
39.304348
398
0.669801
[ "Apache-2.0" ]
AaronFriel/pulumi-google-native
sdk/dotnet/CloudScheduler/V1/Outputs/PubsubTargetResponse.cs
1,808
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.Drawing; using Xunit; using static Interop.UiaCore; namespace System.Windows.Forms.Tests { public...
44.736559
141
0.693186
[ "MIT" ]
AndreRRR/winforms
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ToolStripItemAccessibleObjectTests.cs
8,323
C#
// System.Globalization.Calendar.cs // // (C) Ulrich Kunitz 2002 // // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // 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...
31.235351
75
0.667241
[ "Apache-2.0" ]
3-1415926/mono
mcs/class/corlib/System.Globalization/Calendar.cs
32,516
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...
29.217391
74
0.71131
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/websites/Microsoft.Azure.Management.WebSites/src/Generated/Models/InAvailabilityReasonType.cs
672
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("Co...
37.756757
84
0.745168
[ "MIT" ]
KrasimirStoyanov/Telerik-Academy
Homeworks/C# 1/Intro-Programming-Homework/7.CodeReformat/CodeReformat/Properties/AssemblyInfo.cs
1,400
C#
using FluentAssertions; using Xunit; namespace SimpleValidatorBuilder.Tests.Parser; public class ValueIsGreaterThanOrEqualTests { [Fact] public void With_equal_value() { // Arrange const int minValue = 12; const string error = "error"; Validator<int, string> sut = Validat...
23.688889
65
0.590056
[ "MIT" ]
gagnedavid25/SimpleValidatorBuilder
src/SimpleValidatorBuilder.Tests/Parser/ValueIsGreaterThanOrEqualTests.cs
1,068
C#
using Microsoft.Maui.Graphics; using Microsoft.Maui.Primitives; namespace Microsoft.Maui.UnitTests { class ViewStub : IViewStub { public bool IsEnabled { get; set; } public Visibility Visibility { get; set; } public double Opacity { get; set; } public Rectangle Frame { get; set; } public IViewHandler H...
21.547945
73
0.694215
[ "MIT" ]
IgorPRZ/maui
src/Core/tests/UnitTests/TestClasses/ViewStub.cs
1,573
C#
#region License // Copyright (c) 2018-2021, exomia // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #endregion #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member /...
23.44
89
0.730375
[ "BSD-3-Clause" ]
exomia/vulkan-api
src/Exomia.Vulkan.Api.Core/Enums/VkPipelineCacheHeaderVersion.cs
588
C#
using System.Drawing; namespace DayGame { public class ConsumableItem : Item { public ConsumableItem(int id, string name, string description, Image image, int price) : base(id, name, description, image, price) { } } }
21.333333
138
0.640625
[ "MIT" ]
YorgosBas/DayGame
Source/Item/Consumable/ConsumableItem.cs
258
C#
/* * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) * See https://github.com/openiddict/openiddict-core for more information concerning * the license and the contributors participating to this project. */ using System.ComponentModel; using Microsoft.AspNetCore; using M...
44.242775
123
0.743402
[ "Apache-2.0" ]
Thodor12/openiddict-core
src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlerFilters.cs
7,656
C#
using System; using System.Globalization; using System.IO; using System.Linq; using System.Text; namespace ScriptPad { public class DelegateTextWriter : TextWriter { private readonly Action<string> appendTextAction; public DelegateTextWriter(Action<string> appendTextAction) : base(CultureInfo...
24.977273
101
0.591447
[ "MIT" ]
kongdetuo/RevitTools
src/ScriptPad/DelegateTextWriter.cs
1,101
C#
using UnityEngine; // Controls ships, parent class to all ship types public abstract partial class Ship { // GameObjects and Components public GameObject ShipObject { get; protected set; } protected GameObject ShipObjectPrefab; protected Rigidbody ShipRigidbody; // Engine Objects protected Gam...
42.877766
213
0.625667
[ "MIT" ]
AliTsuki/Leviathan
Assets/Scripts/Ships/Ship.cs
40,698
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright company="Aspose" file="PermissionsFlags.cs"> // Copyright (c) 2021 Aspose.PDF Cloud // </copyright> // <summary> // Permission is hereby granted, free of charge, to any person obtain...
36.871287
120
0.619227
[ "MIT" ]
aspose-pdf-cloud/aspose-pdf-cloud-dotnet
src/Aspose.Pdf.Cloud.Sdk/Model/PermissionsFlags.cs
3,726
C#
using System; using System.Collections.Generic; using DataBuddy; namespace Graffiti.Core { public class CategoryPage : TemplatedThemePage { protected override string ViewLookUp(string baseName, string defaultViewName) { Category category = new CategoryController().GetCachedCategory...
37.882883
137
0.557432
[ "MIT" ]
harder/GraffitiCMS
src/Graffiti.Core/UI/Pages/CategoryPage.cs
4,205
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public struct ADSR_WaveStruct { public float intensity; public float delay; } public class ADSR_WaveShape { public ADSR_WaveStruct attack; public ADSR_WaveStruct delay; public ADSR_WaveStruct sustain; public ADSR_W...
18.115385
36
0.732484
[ "MIT" ]
RMSHR/VirtualMotionTools
Assets/Scenes/Proto_ADSR/Scripts/ADSR_Structures.cs
473
C#
// // IconSize.cs // // Author: // Lluis Sanchez <lluis@xamarin.com> // // Copyright (c) 2011 Xamarin Inc // // 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,...
33.763158
80
0.740452
[ "MIT" ]
Bert1974/xwt
Xwt/Xwt/IconSize.cs
1,283
C#
//********************************************************* // Copyright (c) Microsoft. All rights reserved. // // Apache 2.0 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 writing, so...
43.080292
113
0.622331
[ "MIT" ]
Allen-Xiao/orleans
test/TesterInternal/StorageTests/StorageProviders/BaseJSONStorageProvider.cs
5,902
C#
using System.ComponentModel.DataAnnotations; using Abp.Authorization.Roles; using Jiesen.Dispatcher.Authorization.Users; namespace Jiesen.Dispatcher.Authorization.Roles { public class Role : AbpRole<User> { public const int MaxDescriptionLength = 5000; public Role() { } ...
23.068966
67
0.626308
[ "MIT" ]
sachem1/3.6.0
src/Jiesen.Dispatcher.Core/Authorization/Roles/Role.cs
671
C#
namespace ClassLib068 { public class Class095 { public static string Property => "ClassLib068"; } }
15
55
0.633333
[ "MIT" ]
333fred/performance
src/scenarios/weblarge2.0/src/ClassLib068/Class095.cs
120
C#
#pragma checksum "E:\USR\Projects\GitHub\MyHome\MyHome\Areas\Identity\Pages\Account\Register.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "b6ad618138168a6258c5ca299ad66dd8c86f9849" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(type...
71.69727
350
0.714439
[ "MIT" ]
SnailUpUpUp/MyHome
MyHome/obj/Release/netcoreapp2.1/Razor/Areas/Identity/Pages/Account/Register.g.cshtml.cs
28,894
C#
using System; using System.Threading.Tasks; using Windows.Devices.Enumeration; using Windows.Devices.Spi; using Windows.Foundation; using System.Numerics; using System.Threading; namespace TouchPanels { public sealed class Tsc2046 { private const int MAX_PRESSURE = 254; private const int CS_P...
39.631944
196
0.586648
[ "MIT" ]
korsarNek/WindowsIotTsc2046Uwp
TouchPanels/Tsc2046.cs
5,709
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; using System.IO; namespace Lab_final_Result_system { public partial class Form1 : Form ...
38.758454
164
0.352861
[ "MIT" ]
Ryuzaki-L-07/SWE-4202-Lab
Lab final Result system/Form1.cs
8,025
C#
using System.Linq; using Plainion.Wiki.AST; namespace Plainion.Wiki.UnitTests { internal static class AstExtensions { /// <summary> /// Returns the containing plain text if there is only one child /// which is of type PlainText, otherwise null. /// </summary> ...
25.103448
81
0.498626
[ "BSD-3-Clause" ]
plainionist/Plainion.Notes
src/Plainion.Wiki.Tests/AstExtensions.cs
730
C#
using Shop.Module.Catalog.Abstractions.Models; using System.Collections.Generic; namespace Shop.Module.Catalog.Abstractions.ViewModels { public class ProductGetOptionResult { public int Id { get; set; } public string Name { get; set; } public OptionDisplayType DisplayType { get; set;...
26.235294
113
0.701794
[ "MIT" ]
cn-cam/module-shop
src/server/src/Modules/Shop.Module.Catalog.Abstractions/ViewModels/ProductGetOptionResult.cs
448
C#
// <copyright file="TransitionExceptionEventArgs.cs" company="Appccelerate"> // Copyright (c) 2008-2016 // // Licensed under the Apache License, Version 2.0 (the "License"); // // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // htt...
38.638298
118
0.639317
[ "Apache-2.0" ]
ursenzler/statemachine
source/Appccelerate.StateMachine/Machine/Events/TransitionExceptionEventArgs.cs
1,816
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlatformDependentButtonRenderer : MonoBehaviour { [SerializeField] List<GameObject> crashButtons; void Start() { var shouldButtonsBeActive = true; #if !UNITY_STANDALONE_WIN shouldButtonsBeActiv...
19.375
60
0.683871
[ "MIT" ]
BugSplat-Git/my-unity-crasher
Assets/PlatformDependentButtonRenderer.cs
465
C#
using System.Resources; 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. [ass...
35.387097
84
0.746582
[ "MIT" ]
tonysneed/Experimental
vNext/VS2015/AspNet5/HelloAspNet5/src/HelloAspNet5.Client.Entities/Properties/AssemblyInfo.cs
1,100
C#
namespace SoftUniBlog.Migrations { using System.Data.Entity.Migrations; using Models; internal sealed class Configuration : DbMigrationsConfiguration<BlogDbContext> { public Configuration() { AutomaticMigrationsEnabled = true; AutomaticMigrationDataLossAllowed = ...
25.526316
82
0.645361
[ "MIT" ]
jeliozver/SoftUni-Software-Technologies
13-CSharp-Blog-Basic-Functionality/SoftUniBlog/Migrations/Configuration.cs
485
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Dynamic; using System.Reflection; using System.Threading; using System.Timers; using Abot.Core; using Abot.Poco; using Abot.Util; using log4net; using Timer = System.Timers.Timer; namespace Abot.Crawler { public interface IWebC...
45.46696
376
0.617072
[ "Apache-2.0" ]
CerebralMischief/abot
Abot/Crawler/WebCrawler.cs
51,607
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using HoloToolkit.Unity.Receivers; using HoloToolkit.Unity.InputModule; using UnityEngine.UI; public class ImplicitBtnReceiver : InteractionReceiver { private InputField inputField; private GameObject implicitMenu; private Man...
31.788462
110
0.620085
[ "MIT" ]
rebas777/3D-Function-Visualization
Assets/Scripts/ImplicitButtons/ImplicitBtnReceiver.cs
1,655
C#
using System; using ClientBuilder.Common; using ClientBuilder.Core.Modules; using ClientBuilder.Core.Scanning; using ClientBuilder.Options; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace ClientBuilder.Extensions; /// <summary> /// Ext...
35.538462
136
0.661472
[ "MIT" ]
clientbuilder/clientbuilder
src/ClientBuilder/Extensions/WebApplicationBuilderExtensions.cs
2,312
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.37931
44
0.71129
[ "MIT" ]
LinZong/WPF-SeletableTextBox
TriggleTextBox/MainWindow.xaml.cs
632
C#