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 Corporation. All rights reserved. // Licensed under the MIT License. namespace CassandraQuickstart.CosmosDBUtils { using System; using System.Threading; using Cassandra; /// <summary> /// The retry policy performs growing/fixed back-offs for overloaded exceptions based ...
33.150943
152
0.582812
[ "MIT" ]
sivethe/cassandra-driver-examples
dotnet/CosmosDBMultipleRetryPolicy.cs
3,516
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace TechnicalInterview.Exercice2.Tests { [TestClass] public class ClosestToZeroDeterminatorTest { [TestMethod] public void One_Number() { var inputs = new int[] { 0 }; ...
23.42268
82
0.488556
[ "Unlicense" ]
ismailnguyen/TechnicalInterview
csharp/TechnicalInterview.Exercice2/TechnicalInterview.Exercice2.Tests/ClosestToZeroDeterminatorTest.cs
2,274
C#
using Lykke.SettingsReader.Attributes; namespace Lykke.Frontend.WampHost.Settings { public class SessionServiceSettings { [HttpCheck("/api/isalive")] public string SessionServiceUrl { get; set; } } }
20.909091
53
0.691304
[ "MIT" ]
LykkeCity/Lykke.Frontend.WampHost
src/Lykke.Frontend.WampHost/Settings/SessionServiceSettings.cs
232
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; public class MapHandler { public int max = 30; const int width = 40; const int height = 40; // bool[, ] cellmap = new bool[width, height]; float chanceToStartAlive = 0.4f; int numberOfSteps = 10; int deathLimit = 3; int birthLimi...
36.24375
113
0.498405
[ "MIT" ]
BrennerLittle/voxelengine_unity
Assets/voxel_engine/MapHandler.cs
23,198
C#
using EngineeringUnits.Units; namespace EngineeringUnits { //This class is auto-generated, changes to the file will be overwritten! public partial class Power { /// <summary> /// Get Power from SI. /// </summary> /// <exception cref="ArgumentExcepti...
44.721311
103
0.547581
[ "MIT" ]
AtefeBahrani/EngineeringUnits
EngineeringUnits/CombinedUnits/Power/PowerSet.cs
13,640
C#
using System.Threading.Tasks; namespace Opw.PineBlog.FeatureManagement { /// <summary> /// Used to evaluate whether a feature is enabled or disabled. /// </summary> public interface IFeatureManager { FeatureState IsEnabled(FeatureFlag featureFlag); Task<FeatureState> IsEnabledAsync...
23.666667
67
0.701408
[ "MIT" ]
ofpinewood/pineblog
src/Opw.PineBlog.Abstractions/FeatureManagement/IFeatureManager.cs
355
C#
// Copyright (c) 2015 Alachisoft // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
40.066204
214
0.518326
[ "Apache-2.0" ]
NCacheDev/NCache
Src/NCCache/Caching/Topologies/Local/LocalCacheBase.cs
63,545
C#
// <auto-generated /> using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage; using Microsoft.EntityFrameworkCore.Storage.Internal; using System; u...
32.743902
117
0.447747
[ "MIT" ]
davidm5963/Vinyl-Stop
VinylStop/Migrations/AppDbContextModelSnapshot.cs
13,427
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Azure.Core; using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; namespace Azure.Identity { /// <summary> /// Pro...
54.718254
290
0.676699
[ "MIT" ]
AikoBB/azure-sdk-for-net
sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredential.cs
13,789
C#
using UnityEngine; namespace ProceduralToolkit.Examples.Primitives { [RequireComponent(typeof(MeshRenderer), typeof(MeshFilter))] public class Tetrahedron : MonoBehaviour { public float radius = 1f; private void Start() { GetComponent<MeshFilter>().mesh = MeshE.Tetrahe...
23.4
72
0.649573
[ "MIT" ]
Henri-J-Norden/DxR
Assets/External/ProceduralToolkit/Examples/Primitives/Tetrahedron.cs
353
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mediapipe/calculators/image/opencv_image_encoder_calculator.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Goog...
38.538462
331
0.684631
[ "Apache-2.0" ]
SeedV/SeedAvatarStudio
Packages/com.github.homuler.mediapipe/Runtime/Scripts/Protobuf/Calculators/Image/OpencvImageEncoderCalculator.cs
25,551
C#
using BookStore.Common.Models; namespace BookStore.Repository.Interfaces { public interface IBookRepository { Task CreateBook(Book book); Task DeleteBook(string bookId); Task<List<Book>> GetAllBooks(); Task<Book> GetBook(string bookId); Task UpdateBook(string bookId, Bo...
24.142857
50
0.668639
[ "MIT" ]
willvelida/bookstore-containerapps
src/BookStore/BookStore.Repository/Interfaces/IBookRepository.cs
340
C#
using System; using System.Collections.Generic; using System.Text; using Ketchup.Profession.ORM.EntityFramworkCore.Repository; namespace Ketchup.Zero.Application.Domain.Repos { public interface IRoleMenuRepos : IEfCoreRepository<SysRoleMenu, int> { /// <summary> /// 批量添加 /// </summary>...
25.5
73
0.657952
[ "MIT" ]
DotNetExample/ketchup.zero
src/Ketchup.Zero.Application/Domain/Repos/IRoleMenuRepos.cs
469
C#
using Microsoft.AspNetCore.Mvc; using System.Buffers; using WebApp.Models; namespace WebApp.Controllers; [Produces("application/json")] [ApiController] [Route("api/[controller]")] public class UploadController : ControllerBase { private readonly ILogger<UploadController> _logger; public UploadController(ILo...
26.09434
84
0.605929
[ "MIT" ]
JanneMattila/326-webapp-and-folders
src/WebApp/Controllers/UploadController.cs
1,385
C#
using System; using System.Collections.Generic; using System.Text; using Csla.Core; using Csla.Rules; using Microsoft.AspNetCore.Components.Forms; namespace Csla.Blazor { /// <summary> /// Implements extension methods for edit context. /// </summary> public static class EditContextCslaExtensions { /// <...
37.471074
131
0.683502
[ "MIT" ]
Alstig/csla
Source/Csla.Blazor/EditContextCslaExtensions.cs
4,536
C#
namespace Gu.TwinCat.Tests { using System; using NUnit.Framework; using TwinCAT.Ads; public static class AdsClientTests { [Test] public static void ReadInActiveThrows() { using var client = new AdsClient( new AutoReconnectSettings( ...
43.333333
209
0.608753
[ "MIT" ]
GuOrg/Gu.TwinCat
Gu.TwinCat.Tests/AdsClientTests.cs
3,772
C#
using NUnit.Framework; using SouthernBug.App.Model; namespace SB_Test_Cli.Tests { [TestFixture] public class DateAverageTest { [SetUp] public void SetUp() { dateAverage = new DateAverage(new DateParser(2010)); } private DateAverage dateAverage; ...
27.787879
85
0.560523
[ "MIT" ]
vsh-odeku/southern-bug-app
SB_Test_Cli/Tests/DateAverageTest.cs
919
C#
namespace AutoMapper { using System; using System.Collections; using System.Collections.Generic; public class ReflectionUtils { private static readonly HashSet<string> types = new HashSet<string> { "System.String", "System.Int32", "System.Decimal", "System.Double", "System....
39.043478
182
0.575167
[ "MIT" ]
zrusev/SoftUni_2016
16. Databases Advanced - Entity Framework - Feb 2019/08. Automapper Implementation/Automapper/Automapper/ReflectionUtils.cs
1,798
C#
using UnityEngine; using UnityEngine.Assertions; using System; using System.Linq; using System.Collections.Generic; namespace WishfulDroplet { /// <summary> /// A Singleton manager. /// </summary> public static class Singleton { private static Dictionary<Type, object> _singletons = new Dictionary<Type...
24.09434
93
0.658575
[ "MIT" ]
admoraguilar/supermariobros-unity
Assets/_Project/_Common/Scripts/WishfulDroplet/Singleton.cs
1,279
C#
using System; using System.Collections.Generic; using System.IO; using UnityEngine; public class BGI_DEF { public BGI_DEF() { this.name = String.Empty; this.orgPos = new BGI_VEC_DEF(); this.curPos = new BGI_VEC_DEF(); this.minPos = new BGI_VEC_DEF(); this.maxPos = new BGI_VEC_DEF(); this.charPos = new BG...
28.302083
94
0.712735
[ "MIT" ]
Iamgoofball/Memoria
Assembly-CSharp/Global/BGI_DEF.cs
5,434
C#
namespace WPF.Update.Squirrel.Core { public struct CheckForUpdateResult { public string CurrentVersion { get; set; } public string FutureVersion { get; set; } public ReleaseToApply[] ReleasesToApply { get; set; } } }
25.4
61
0.653543
[ "MIT" ]
Liklainy/WPF.Update
Squirrel/Core/CheckForUpdateResult.cs
256
C#
using ITGlobal.MarkDocs.Extensions; using ITGlobal.MarkDocs.Tools.Serve.Controllers; namespace ITGlobal.MarkDocs.Tools.Serve.Extensions { public sealed class CompilationReportExtensionFactory : IExtensionFactory { private readonly DevConnectionManager _manager; private readonly bool _quiet; ...
29.272727
90
0.694099
[ "MIT" ]
ITGlobal/MarkDocs
src/markdocs/Serve/Extensions/CompilationReportExtensionFactory.cs
644
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/d3d12.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop.DirectX; ...
46.52381
145
0.75435
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
sources/Interop/Windows/DirectX/um/d3d12/D3D12_INDEX_BUFFER_VIEW.cs
979
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Xml; using System.Text.RegularExpressions; using Wonton.Common; using Wonton.CrossUI.Web.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using...
34.275449
115
0.450646
[ "MIT" ]
WangyuHello/FudanFPGAInterface
Wonton.CrossUI.Web/Controllers/FPGAController.cs
23,388
C#
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using DDDSouthWest.Domain.Features.Public.ProposedTalkDetail; using DDDSouthWest.Domain.Features.Public.ProposedTalks; using DDDSouthWest.Website.Framework; using DDDSouthWest.Website.ImageHandlers; using MediatR; using Microsoft.AspNet...
35.863636
112
0.618927
[ "MIT" ]
JoeStead/dddsouthwest-web
src/DDDSouthWest.Website/Features/Public/ProposedTalks/ProposedTalksController.cs
2,369
C#
/* * MIT License * * Copyright (c) Microsoft Corporation. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy...
32.685185
81
0.745609
[ "MIT" ]
Archish27/playwright-dotnet
src/Playwright/API/Generated/Enums/SameSiteAttribute.cs
1,765
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ParameterAPI.Models { public class AS400AppSettingModel : ParameterResponseModel { public string File { get; set; } } }
19.666667
62
0.724576
[ "MIT" ]
LHB-Deposit/CoreBankAPI
ParameterAPI/Models/AS400AppSettingModel.cs
238
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace OSS.PaySdk.Samples { public class Startup { public Startup(IHostingEnvironment env) { ...
31.452055
109
0.5527
[ "Apache-2.0" ]
fly4312/OSS.PaySdk
Samples/OSS.PaySdk.Samples/Startup.cs
2,298
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { #pragma warning disable CS8618 [JsiiByValue(fqn: "aws.DataAwsKmsKeyConfig")] public class DataAwsKmsKeyConfig : aws.IDataAwsKmsKeyConfig { [JsiiProperty(name: "keyId", typeJson: "{\"primitive\":\"st...
30.847222
185
0.549752
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/DataAwsKmsKeyConfig.cs
2,221
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> //--...
63.177151
1,371
0.605509
[ "MIT" ]
tragonez/BelediyeYonetim
Belediye_Otomasyonu/belediyeDataSet1.Designer.cs
589,508
C#
using StoreDB; using StoreDB.Models; using StoreDB.Repos; using System.Collections.Generic; namespace StoreLib { public class LocationService : ILocationService { private ILocationRepo repo; public LocationService(ILocationRepo repo) { this.repo = repo; } p...
22.647059
63
0.58355
[ "MIT" ]
201019-UiPath/WeberLindsey-Project1
API/StoreLib/Location/LocationService.cs
1,155
C#
using System; using CryptoApisLibrary.DataTypes; using CryptoApisLibrary.ResponseTypes.Blockchains; namespace CryptoApisSnippets.Samples.Blockchains { partial class BlockchainSnippets { public void GenerateAddressBch() { var manager = new CryptoManager(ApiKey); var response = manager.Blockchai...
31.714286
93
0.737237
[ "MIT" ]
Crypto-APIs/.NET-Library
CryptoApisSnippets/Samples/Blockchains/Addresses/GenerateAddressBch.cs
668
C#
using HL7Data.Contracts.Segments.Patient.Health; using HL7Data.Models.Base; using HL7Data.Models.Types; namespace HL7Data.Models.Segments.Patient.Health { public class PatientAdverseReactionInformationSegment : BaseSegment, IPatientAdverseReactionInformationSegment { public override SegmentTypes Segmen...
32.181818
114
0.805085
[ "MIT" ]
amenkes/HL7Parser
Models/Segments/Patient/Health/PatientAdverseReactionInformationSegment.cs
354
C#
using System; namespace _004.NumberOperations { class Program { static void Main(string[] args) { int N1 = int.Parse(Console.ReadLine()); int N2 = int.Parse(Console.ReadLine()); char operation = char.Parse(Console.ReadLine()); double result = 0;...
33.621212
80
0.328977
[ "MIT" ]
yangra/SoftUni
ProgrammingBasics/04.ComplexConditions/003.NumberOperations/Program.cs
2,221
C#
using System; namespace ClubHouse.Domain.Models { public class ChannelUser : BaseUserInfo { public int Skintone { get; set; } public bool Is_new { get; set; } public bool Is_speaker { get; set; } public bool Is_moderator { get; set; } public bool Is_muted { get; set; } ...
35.117647
67
0.628141
[ "MIT" ]
Zahragheaybi/ClubHouse-Windows
Domain/ClubHouse.Domain/Models/ChannelUser.cs
599
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.Runtime.InteropServices; internal static partial class Interop { internal static partial class Globalization { [GeneratedDllImport(Librari...
33.8
151
0.771203
[ "MIT" ]
MatthewJohn/runtime
src/libraries/Common/src/Interop/Interop.ICU.iOS.cs
507
C#
namespace SqlDatabase.IO { internal interface IFileSystemFactory { IFileSystemInfo FileSystemInfoFromPath(string path); IFileSystemInfo FromContent(string name, string content); } }
21.2
65
0.721698
[ "MIT" ]
max-ieremenko/SqlDatabase
Sources/SqlDatabase/IO/IFileSystemFactory.cs
214
C#
using Enums; using System.Collections.ObjectModel; using System.Diagnostics; namespace DesktopReload.Widget { public class CPUListWidget : BasicWidget { PerformanceCounterCategory cat = new System.Diagnostics.PerformanceCounterCategory("Processor"); public ObservableCollection<string> LabelTe...
24.688889
104
0.526553
[ "MIT" ]
bouldeterre/DesktopReload
DesktopReload/Widget/CPU/CPUListWidget.cs
1,113
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
34.387097
151
0.581614
[ "Unlicense" ]
usmanshamsi/base_plate_01
BasePlate01/Properties/SETTINGS.DESIGNER.cs
1,068
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net.Mail; using System.Reflection; using System.Text; using System.Threading; using System.Web; namespace CalbucciLib { public class Logger { private static readonly string[] Sens...
34.426843
140
0.453314
[ "MIT" ]
calbucci/CalbucciLib.Logger
src/CalbucciLib.Logger/Logger.cs
31,296
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---------------------------------------------...
25.145161
88
0.576652
[ "MIT" ]
HFX-93/luban_examples
Projects/Csharp_DotNet5_json/Gen/error/ErrorStyle.cs
1,559
C#
using DialogueSystem.GamePlay; using Module; using UICore; using UnityEngine; using UnityEngine.UI; public class MainGameView : BaseUIPanel { [SerializeField] private Button _optionButton; [SerializeField] private Button _questionnaireButton; [SerializeField] private Button _startNewDialogueButton; ...
36.9
129
0.760163
[ "MIT" ]
FeiFeinb/BrightTown
Assets/Scripts/UI/GameMain/MainGameView.cs
740
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.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE; using Microsoft.CodeAnalysis.CSharp....
55.427039
219
0.665608
[ "Apache-2.0" ]
JieCarolHu/roslyn
src/Compilers/CSharp/Test/Emit/Emit/OptionalArgumentsTests.cs
25,831
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.D...
29.966667
107
0.606785
[ "MIT" ]
MarkoMajamaki/istio_demo
services/Service3/Startup.cs
1,798
C#
using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Text; namespace TFABot { static public class clsExtenstions { static Regex UTCMatch = new Regex(@"(?<=UTC)\s{0,}[\+\-]\d*"); static clsExtenstions() { ...
30.988636
115
0.506784
[ "MIT" ]
patlacroix/TFA-Bot
TFA-Bot/clsExtenstions.cs
2,729
C#
using System; namespace ImageSquirrel.DataSources.FolderData { /// <summary> /// Represents a file search pattern. /// </summary> public class SearchPattern { /// <summary> /// Instantiates a <see cref="SearchPattern"/> instance using the supplied parameters. /// </summary>...
31.111111
94
0.575893
[ "MIT" ]
ltnublet/ImageSquirrel
ImageSquirrel.DataSources.FolderData/SearchPattern.cs
1,122
C#
using System; using System.Text; using System.Threading.Tasks; using AsyncAwaitBestPractices; using Microsoft.Azure.Devices.Client; using Newtonsoft.Json; namespace XamarinIoTWorkshop { public static class IoTDeviceService { readonly static WeakEventManager<string> _ioTDeviceServiceFailedEventManager...
34.523077
146
0.66533
[ "MIT" ]
brminnick/XamarinIoTWorkshop
Source/XamarinIoTWorkshop/Services/IoTDeviceService.cs
2,246
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 MDPlayer.form { public partial class frmSegaPCM : Form { public bool isClosed ...
37.116
178
0.481194
[ "MIT" ]
BouKiCHi/MDPlayer
MDPlayer/MDPlayer/form/frmSegaPCM.cs
9,281
C#
using System; using System.Threading; using System.Threading.Tasks; using CircuitBreaker.Net.Exceptions; namespace CircuitBreaker.Net.Sample { public class Program { public static void Main() { var externalService = new ExternalService(); var circuitBreaker = new Circ...
30.486111
100
0.563554
[ "MIT" ]
alexandrnikitin/CircuitBreaker.Net
samples/CircuitBreaker.Net.Sample/Program.cs
2,197
C#
using ConsoleTables; using Microsoft.AspNetCore.Mvc.Infrastructure; using Newtonsoft.Json; using RoutesList.Build.Services.StaticFileBuilder; using RoutesList.Interfaces; using RoutesList.Build.Models; using System.Collections.Generic; using System.Threading.Tasks; using System; using System.ComponentModel.DataAnnotat...
36.496
130
0.547567
[ "MIT" ]
JanoPL/Routeslist
src/RoutesList.Build/Services/TableBuilder.cs
4,564
C#
using System.Text; using GraphicsComposerLib.SVG.Paths.Segments; namespace GraphicsComposerLib.SVG.Paths { public abstract class SvgSegmentsPathCommand<T> : SvgPathCommand where T : ISvgPathSegment { public abstract char CommandSymbol { get; } public bool IsRelative { get; set; } pub...
25.166667
94
0.53532
[ "MIT" ]
ga-explorer/GMac
GraphicsComposerLib/GraphicsComposerLib/SVG/Paths/SvgSegmentsPathCommand.cs
908
C#
using Zpp.ZppSimulator; namespace Zpp.Test.Integration_Tests.Verification { public class AbstractVerification: AbstractTest { protected AbstractVerification() : base(initDefaultTestConfig: false) { } protected void InitThisTest(string testConfiguration) { In...
31.583333
109
0.664908
[ "Apache-2.0" ]
pascalschumann/Master-4.0
Zpp/Test/Integration_Tests/Verification/AbstractVerification.cs
758
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using RepoDb.Enumerations; using RepoDb.Exceptions; using RepoDb.UnitTests.CustomObjects; using System; namespace RepoDb.UnitTests.StatementBuilders { [TestClass] public class BaseStatementBuilderCreateQueryTest { [TestInitialize] public ...
38.761566
149
0.57657
[ "Apache-2.0" ]
RepoDb/RepoDb
RepoDb.Core/RepoDb.Tests/RepoDb.UnitTests/StatementBuilders/CreateQueryTest.cs
10,894
C#
using System; using System.Collections.Generic; using System.Linq; namespace TabularCsv { public class PrefaceEndDetector { public string Separator { get; set; } private Configuration Configuration { get; } private List<string> ExpectedColumnHeaders { get; } = new List<string>(); ...
33
166
0.584416
[ "Apache-2.0" ]
AquaticInformatics/tabular-field-data-plugin
src/TabularCsv/PrefaceEndDetector.cs
1,850
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -----------------------------------------------------------...
33.173913
101
0.500655
[ "MIT" ]
ChimpPACS/dicom-server
src/Microsoft.Health.Dicom.Core/Messages/Store/StoreResponse.cs
765
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; namespace System.Text.Tests { // GetCharCount(System.Byte[],System.Int32,System.Int32) public class DecoderGetCharCount3 { #region Private Fields ...
35.455172
101
0.560397
[ "MIT" ]
belav/runtime
src/libraries/System.Text.Encoding/tests/Decoder/DecoderGetCharCount3.cs
5,141
C#
using System; using System.Collections.Generic; using System.Text; namespace Purchase.Core { public class Constants { public class MessageQueues { public const string PurchasedQueue = "product-purchased"; } public class EmailAddressess { public ...
20.35
87
0.628993
[ "MIT" ]
foyzulkarim/TheMicroServices
Src/PurchaseMicroservice/PurchaseCore/Constants.cs
409
C#
using System.Linq; using System.Web.Mvc; using MvcDynamicForms.Fields; using MvcDynamicForms.Utilities; namespace MvcDynamicForms { class DynamicFormModelBinder : IModelBinder { public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext) { ...
40.565574
114
0.39018
[ "Apache-2.0" ]
cdc-dpbrown/Epi-Info-Cloud-Data-Capture
Epi.DynamicForms.Core/DynamicFormModelBinder.cs
4,951
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using System.Web.Http; using System.Web.Http.Description; using CSA_Project.Models; namespace ...
26.546218
93
0.533397
[ "MIT" ]
Turgibot/FinalProject
CSA_Project/CSA_Project/Controllers/LoggerController.cs
3,161
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from include/vulkan/vulkan_beta.h in the KhronosGroup/Vulkan-Headers repository for tag v1.2.198 // Original source is Copyright © 2015-2021 The Khronos Group Inc....
30.342857
145
0.728814
[ "MIT" ]
tannergooding/terrafx.interop.vulkan
sources/Interop/Vulkan/Vulkan/vulkan/vulkan_beta/VkVideoCapabilitiesKHR.cs
1,064
C#
using System; namespace Codeless.Ecma.Runtime.Intrinsics { [IntrinsicObject(WellKnownObject.MapConstructor)] internal static class MapConstructor { [IntrinsicConstructor(NativeRuntimeFunctionConstraint.DenyCall, ObjectType = typeof(EcmaMap), Prototype = WellKnownObject.MapPrototype)] [IntrinsicMember(Func...
35.538462
140
0.707792
[ "MIT" ]
misonou/codeless-ecma
src/Codeless.Ecma/Runtime/Intrinsics/MapConstructor.cs
926
C#
//--------------------------------------------------------------------------- // This file is part of the following project: // Mesh Diagram 3D // Author: Maciej Zbrzezny // // This source is subject to the Microsoft Public License (Ms-PL) // See http://meshdiagram3d.codeplex.com/license // // For more infor...
37.548673
113
0.66321
[ "MIT" ]
BiancoRoyal/ASMD
ModelDesigner.MeshDiagram3D/TreeViewTo3DView.cs
4,245
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace Time.Data.EntityModels.Install { [MetadataType(typeof(LiftFamilyMetadata))] public partial class LiftFamily { } public class LiftFamilyMetadata ...
27.291667
66
0.654962
[ "BSD-3-Clause" ]
pmillsaps/zone.timemfg.com
src/Orchard.Web/Modules/Time.Data/Models/Install/LiftFamily.cs
657
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. /****************************************************************************** * This file is auto-generated from ...
38.501408
185
0.554507
[ "MIT" ]
MSHOY/coreclr
tests/src/JIT/HardwareIntrinsics/X86/Sse2/Insert.Int16.1.cs
13,668
C#
using AutoMapper; using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; using System.Web; using System.Web.Http; using WebAPI.BLL.Interfaces.Services; using WebAPI.Models; using WebAPI.BLL.Entities; using System.Linq; using System.IO; using Microsoft.AspNet.Identity; namespac...
29.854749
117
0.500749
[ "MIT" ]
AlexanderVieira/WebApiSocialNetwork-Ioc-Identity
WebAPI/Controllers/ImageController.cs
5,346
C#
using System; using System.Collections.Generic; using System.Linq; using DotNetCore.CAP.Messages; using Microsoft.Extensions.Logging; namespace Savorboard.CAP.InMemoryMessageQueue { internal class InMemoryQueue { private readonly ILogger<InMemoryQueue> _logger; private static readonly object L...
32.538462
130
0.529078
[ "MIT" ]
yang-xiaodong/Savorboard.CAP.InMemoryMessageQueue
src/Savorboard.CAP.InMemoryMessageQueue/InMemoryQueue.cs
2,117
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; using System.Text; using Microsoft.Data.DataView; using Microsoft.ML; using Microsoft.ML.CommandLine; ...
39.563786
151
0.585084
[ "MIT" ]
PaulTFreedman/machinelearning
src/Microsoft.ML.Data/Transforms/LabelIndicatorTransform.cs
9,614
C#
namespace MyCoolWebServer.Server.Routing.Contracts { using System; using System.Collections.Generic; using Enums; using Handlers; using Http.Contracts; public interface IAppRouteConfig { IReadOnlyDictionary<HttpRequestMethod, IDictionary<string, RequestHandler>> Routes { get; } ...
28.5
99
0.706539
[ "MIT" ]
pirocorp/CSharp-Web-Basics
Workshop/WebServer/MyCoolWebServer/Server/Routing/Contracts/IAppRouteConfig.cs
629
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.55102
207
0.634511
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/ConfigService/Generated/Model/Internal/MarshallTransformations/RemediationExceptionResourceKeyUnmarshaller.cs
3,680
C#
//*******************************************************************************************// // // // Download Free Evaluation Version From: https://bytescout.com/download/web-installer // // ...
39.45614
127
0.49711
[ "Apache-2.0" ]
atkins126/ByteScout-SDK-SourceCode
PDF.co Web API/Add Text And Images To PDF/C#/Add Images to Existing PDF/Program.cs
4,499
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.Unicode; using System.Threading.Tasks; namespace GZTimeServer.Models { public static class Coding { public static class BASE64 { public static...
30.671429
90
0.544481
[ "MIT" ]
GZTimeHacker/PuzzleGame-v1
Models/Coding.cs
2,223
C#
using Microsoft.AspNetCore.Mvc; namespace Trencadis.AspNetCoreDemoApp.Controllers { public class HomeController : Controller { public IActionResult Index() { return View(); } public IActionResult About() { ViewData["Message"] = "Your application description page."; return V...
16.4375
65
0.610266
[ "MIT" ]
Trencadis-Labs/Trencadis.AspNetCoreDemoApp
src/Trencadis.AspNetCoreDemoApp/Controllers/HomeController.cs
528
C#
/// This code was generated by /// \ / _ _ _| _ _ /// | (_)\/(_)(_|\/| |(/_ v1.0.0 /// / / /// <summary> /// AwsResource /// </summary> using Newtonsoft.Json; using System; using System.Collections.Generic; using Twilio.Base; using Twilio.Clients; using Twilio.Converters; using Twilio.Exceptions; ...
44.991718
124
0.566196
[ "MIT" ]
garethpaul/twilio-csharp
src/Twilio/Rest/Accounts/V1/Credential/AwsResource.cs
21,731
C#
namespace Microsoft.Web.Http.Description { using Microsoft.Web.Http.Versioning.Conventions; using Models; using Simulators; using System.Collections; using System.Collections.Generic; using System.Web.Http; using System.Web.Http.Dispatcher; using static System.Web.Http.RouteParameter; ...
42.184615
112
0.572575
[ "MIT" ]
lurumad/aspnet-api-versioning
test/Microsoft.AspNet.WebApi.Versioning.ApiExplorer.Tests/Description/TestConfigurations.cs
2,744
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Json.Serialization; using System.Threading.Tasks; namespace user.domain; public class UserProfile { [JsonPropertyName("email")] public string Email { get; set; } [JsonPropertyName("role")] public s...
25.173913
42
0.704663
[ "MIT" ]
developersamim/vending-machine
src/services/user/user.domain/UserProfile.cs
581
C#
using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using PermissionsService.Data.Repositories; using PermissionsService.Data.Repositories.Base; using PermissionsService.Models; using System.Threading.Tasks; namespace PermissionsService.Extensions { ...
51.6125
154
0.553887
[ "MIT" ]
AlexeyBuryanov/MicroservicesSimpleTask
Source/PermissionsService/Extensions/IWebHostExtensions.cs
4,131
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
37.164384
232
0.6561
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/DomainRegistration/Latest/ListTopLevelDomainAgreements.cs
2,713
C#
using UnityEngine; namespace Toolnity { public class Singleton<T> : MonoBehaviour where T : MonoBehaviour { private static bool shuttingDown; private static readonly object Lock = new object(); private static T myInstance; public static T Instance { get { if (shuttingDown) { Debug.LogW...
18.328767
80
0.635277
[ "Unlicense" ]
DTeruel/Toolnity
Runtime/Misc/Singleton.cs
1,340
C#
// *********************************************************************** // Assembly : IronyModManager.Parser // Author : Mario // Created : 02-16-2020 // // Last Modified By : Mario // Last Modified On : 02-13-2021 // ***********************************************************************...
41.517647
116
0.634741
[ "MIT" ]
SANagisa/IronyModManager
src/IronyModManager.Parser/DIPackage.cs
3,531
C#
using System.Linq; using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Text; public class Generator : ElectricalObject, IElectricitySupplier { public override IShape Shape { get { return _shape; } } public float MaxCharge { get { return 1000000; } } publ...
24.309524
64
0.628795
[ "MIT" ]
DanielEverland/Dead-Air-Blueprint-Prototype
Assets/Scripts/Electricity/Generator.cs
1,023
C#
/*Created by Layla aka Galantha * MIT license * no warranty * * Copyright 2020-12-27 * * email: gal_0xff@outlook.com */ using System; using System.Windows.Forms; namespace GalsPassHolder { static class GalInputDialog { public static DialogResult Show(out String answer, Form parent, string qu...
42.058282
284
0.523813
[ "MIT" ]
Galantha/GalanthasEncryptedNotes
GalDialogs.cs
13,713
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections; using System.Globalization; using System.Resources; namespace GitHub.VisualStudio.TestAutomation { [TestClass] public class ResourceValueTest { [TestMethod] public void ValueAndNameAreTheSame() { ...
30.848485
131
0.637525
[ "MIT" ]
editor-tools/GitHubVSTestAutomationIDs
GithubVSTestAutomationIDs.Tests/ResourceValueTests.cs
1,020
C#
using MacomberMapClient.Data_Elements.Physical; using MacomberMapClient.Properties; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.Linq; using System.Text; using System.Thre...
43.386861
195
0.536423
[ "MIT" ]
geek96/MacomberMap
Client/MacomberMapClient/User Interfaces/OneLines/MM_OneLine_Synchroscope.cs
23,783
C#
using HMA.DAL.Factories; using HMA.DAL.Options; using HMA.DAL.Repositories; using HMA.DAL.Repositories.Interfaces; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using MongoDB.Driver; namespace HMA.DI.Pr...
34
100
0.705882
[ "MIT" ]
illja96/hma-api
HMA.DI/Projects/DalDiStartup.cs
1,090
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> //--...
39.518519
151
0.582006
[ "MIT" ]
CAlex-Wilson/FlatlineDDNS
FlatlineDDNS/FlatlineDDNS/Properties/Settings.Designer.cs
1,069
C#
using FishNet.Managing.Logging; using UnityEngine; namespace FishNet.Object { public abstract partial class NetworkBehaviour : MonoBehaviour { /// <summary> /// True if can log for loggingType. /// </summary> /// <param name="loggingType">Type of logging being filtered.</para...
23.909091
89
0.614068
[ "MIT" ]
Clear-Voiz/Spell
SpellDuel/Assets/FishNet/Runtime/Object/NetworkBehaviour.Logging.cs
528
C#
namespace ExampleGame.Assets.BSP.Types { class Edge { public ushort[] vertexIndices = new ushort[2]; } }
15.75
54
0.619048
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
xezno/Engine
Source/ExampleGame/Assets/BSP/Types/Edge.cs
128
C#
using UnityEngine; using System.Collections; [RequireComponent(typeof(MeshFilter))] public class LoadingOverlay : MonoBehaviour { private bool fading; private float fade_timer; public bool fadecomplete=false; public float in_alpha = 1.0f; public float out_alpha = 0.0f; private Color from_colo...
30.890244
90
0.566522
[ "Apache-2.0" ]
ThibautHumblet/VRExperience
HandsAndVideo/Assets/Fade/LoadingOverlay.cs
2,533
C#
using System.Collections.Generic; using JetBrains.Application; using JetBrains.Application.DataContext; using JetBrains.Application.UI.Actions.ActionManager; using JetBrains.Diagnostics; using JetBrains.Lifetimes; using JetBrains.ReSharper.Plugins.Unity.AsmDef.Psi.DeclaredElements; using JetBrains.ReSharper.Plugins.Un...
42.811321
114
0.676069
[ "Apache-2.0" ]
JetBrains/resharper-unity
resharper/resharper-unity/src/AsmDef/Feature/Services/DataConstants/AsmDefDataRules.cs
2,271
C#
// Copyright (c) 2012 DotNetAnywhere // // 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...
41.758621
80
0.761354
[ "MIT" ]
kaby76/Campy
Campy.Runtime/Corlib/System/MarshalByRefObject.cs
1,211
C#
using System.Threading.Tasks; using FluentAssertions; using OmniSharp.Extensions.JsonRpc.Generators; using Xunit; using Xunit.Sdk; using static Generation.Tests.GenerationHelpers; namespace Generation.Tests { public class JsonRpcGenerationTests { [Fact] public async Task Supports_Generating_Not...
61.7905
517
0.82644
[ "MIT" ]
SeeminglyScience/csharp-language-server-protocol
test/Generation.Tests/JsonRpcGenerationTests.cs
72,851
C#
/* * Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System; namespace S...
25.669565
78
0.634485
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
junbaor/seb-win-refactoring
SafeExamBrowser.Settings/Monitoring/KeyboardSettings.cs
2,955
C#
using System; using System.Reflection; using NHibernate.Properties; namespace Agiil.Data.ConventionMappings { public class SourceCollectionAccessor : IPropertyAccessor { public bool CanAccessThroughReflectionOptimizer => false; public IGetter GetGetter(Type theClass, string propertyName) { var ...
30.761905
89
0.71517
[ "MIT" ]
csf-dev/agiil
Agiil.Data/ConventionMappings/SourceCollectionAccessor.cs
1,294
C#
using System; using System.Diagnostics; using System.IO; using System.Net; using FluentFTP; using System.Threading; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Linq; #if !NOASYNC using System.Threading.Tasks; #endif using System.IO.Compression; using System.Text; using FluentFT...
29.176421
262
0.630491
[ "MIT" ]
kolorotur/FluentFTP
FluentFTP.Tests/Tests.cs
34,910
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace HackerFerretSoftware.SendOwl.Model { public class License { public int id { get; set; } public int order_id { get; set; } public int product_id { get; set; } public strin...
28.333333
54
0.603096
[ "Unlicense", "MIT" ]
musicm122/AuthenticationService
src/SendOwlService/Model/JsonModels.cs
1,617
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
43.259091
160
0.607649
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/DeviceAppManagementManagedAppRegistrationsCollectionRequest.cs
9,517
C#
using System.IO; using System.Runtime.Serialization; using WolvenKit.CR2W.Reflection; using FastMember; using static WolvenKit.CR2W.Types.Enums; namespace WolvenKit.CR2W.Types { [DataContract(Namespace = "")] [REDMeta] public class W3Effect_POIGorA10Effect : CBaseGameplayEffect { public W3Effect_PO...
31.130435
136
0.75
[ "MIT" ]
DerinHalil/CP77Tools
CP77.CR2W/Types/W3/RTTIConvert/W3Effect_POIGorA10Effect.cs
694
C#
namespace Capstone.Net.X86 { /// <summary> /// X86 Encoding. /// </summary> public sealed class X86Encoding { /// <summary> /// Get Displacement Offset. /// </summary> public byte DisplacementOffset { get; } /// <summary> /// Get Displacement...
30.6
72
0.5374
[ "MIT" ]
csersoft/Capstone.NET
Capstone.Net/X86/X86Encoding.cs
1,379
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 fil...
28.80531
89
0.543164
[ "Apache-2.0" ]
sunshinele/npoi
main/HSSF/Record/NumberRecord.cs
3,255
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.AcademicFoundation { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace...
19.74359
136
0.715909
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.AcademicFoundation/Custom_ID_DataType.cs
3,080
C#