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
//------------------------------------------------------------------------------ // <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> //--...
34.83871
151
0.584259
[ "MIT" ]
Rimac48/bertozzi.mattia.Gatto.4H
bertozzi.mattia.Gatto.4H/Properties/Settings.Designer.cs
1,082
C#
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Threading.Tasks; using Newtonsoft.Json; namespace CloudStack.Net { public class UpgradeRouterTemplateRequest : APIRequest { public UpgradeRouterTemplateRequest() : base("upgradeRouterTemplate") {} ...
36.565789
144
0.628643
[ "Apache-2.0" ]
chaeschpi/cloudstack.net
src/CloudStack.Net/Generated/UpgradeRouterTemplate.cs
2,779
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...
28.101449
88
0.56885
[ "ECL-2.0", "Apache-2.0" ]
pulumi/pulumi-aiven
sdk/dotnet/Inputs/GetGrafanaGrafanaUserConfigSmtpServerArgs.cs
1,939
C#
// // Copyright (c) .NET Foundation and Contributors // See LICENSE file in the project root for full license information. // using System; using System.Collections.Generic; namespace nanoFramework.Tools.Debugger.WireProtocol { public class WireProtocolRequestsStore { private readonly object _request...
28.851852
159
0.531023
[ "MIT" ]
Eclo/nf-debugger
nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/WireProtocolRequestsStore.cs
2,339
C#
using System; namespace AsmResolver.DotNet.Builder { /// <summary> /// Provides a context in which a PE image construction takes place in. /// </summary> public class PEImageBuildContext { /// <summary> /// Creates a new empty build context. /// </summary> public PEI...
28.6
100
0.567433
[ "MIT" ]
Anonym0ose/AsmResolver
src/AsmResolver.DotNet/Builder/PEImageBuildContext.cs
1,001
C#
using NetTools; using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Net; using System.Text; using System.Web; namespace Hexasoft { public class BasicAuthentication : IHttpModule { public void Init(HttpApplication context) { co...
33.014085
136
0.576365
[ "MIT" ]
zurichversicherung/Hexasoft.BasicAuthentication
Hexasoft.BasicAuthentication/Hexasoft.BasicAuthentication/BasicAuthentication.cs
4,690
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...
35.247619
143
0.631181
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/src/Services/CodeDeploy/Generated/Model/Internal/MarshallTransformations/GetApplicationRequestMarshaller.cs
3,701
C#
using System; using System.Diagnostics; using TMPro; using UnityEngine; using UnityEngine.Events; using UnityEngine.SceneManagement; public class TimerUtil : MonoBehaviour { public UnityAction OnTimerStopped; public UnityAction<string> OnTimerUpdate; public string timerOutput; public bool HasStarted {...
25.57971
88
0.647025
[ "MIT" ]
olchyk98/deadmind
Assets/Scripts/TimerUtil.cs
1,765
C#
using System; using System.Threading; using Telegram.Bot.Types.Enums; using static pmcenter.Conf; namespace pmcenter { public partial class Methods { public static async void ThrUpdateChecker() { Log("Started!", "UPDATER"); while (true) { Vars...
41.057692
98
0.428571
[ "Apache-2.0" ]
ModerRAS/pmcenter
pmcenter/Methods/Threads/ThrUpdateChecker.cs
2,135
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...
30.289474
103
0.735013
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/SimpleEmailV2/Generated/Model/DeleteEmailIdentityPolicyResponse.cs
1,151
C#
//****************************************************************************************************** // SI2.cs - Gbtc // // Copyright © 2012, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NOTICE ...
47.582133
247
0.587851
[ "MIT" ]
gemstone/common
src/Gemstone/Units/SI2.cs
16,515
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/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using Syst...
41.714286
145
0.74726
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
tests/Interop/Windows/Windows/um/winioctl/SCM_PD_PASSTHROUGH_INVDIMM_OUTPUTTests.cs
1,462
C#
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com // ReSharper disable CheckNamespace // ReSharper disable CommentTypo // ReSharper disable IdentifierTypo // ReSharper disable LocalizableElement // ReSharper ...
24.605769
84
0.527159
[ "MIT" ]
amironov73/ManagedIrbis5
Source/Tests/FormsTests/Source/Tests/BusyControllerTest.cs
2,561
C#
namespace Mikabrytu.LD46.Events { public class PlayerChangeBPMEvent : BaseEvent { public bool isIncreasing; public PlayerChangeBPMEvent(bool isIncreasing) { this.isIncreasing = isIncreasing; } } }
21.166667
54
0.629921
[ "MIT" ]
mikabrytu/ldj46-ghost-game
Ludum Dare 46/Assets/Scripts/Event/PlayerChangeBPMEvent.cs
256
C#
namespace RecepiesProject.Web.Tests { using System; using System.Linq; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using Xunit; public class SeleniumTests : IClassFixture<SeleniumServerFactory<Startup>>, IDisposable { private readonly SeleniumServerFactory<Startup> serve...
27.901961
100
0.572734
[ "Apache-2.0" ]
AKermanov/recipes-project
src/Tests/RecepiesProject.Web.Tests/SeleniumTests.cs
1,425
C#
/* Copyright 2010-2013 10gen Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing...
33.245283
90
0.629966
[ "Apache-2.0" ]
ExM/mongo-csharp-driver
MongoDB.BsonUnitTests/IO/MultiChunkBufferTests.cs
1,764
C#
using log4net; using log4net.Config; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Nssol.Platypus.Infrastructure; using System; using System.IO; using System.Reflection; using System.Text; using System.Text.RegularExp...
34.424242
97
0.552523
[ "Apache-2.0" ]
yonetatuu/kamonohashi
web-api/platypus/platypus/Program.cs
3,636
C#
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated> using System; using System.Collections.Generic; namespace EFCore_12_Samurai_01.Models { public partial class Company { public Company() { Users = new HashSet<User>(); } ...
24.842105
96
0.627119
[ "MIT" ]
philanderson888/c-sharp
EFCore_12_Samurai_01/Models/Company.cs
474
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Diagnostics.ContractsLight; using System.Linq; using System.Text; using BuildXL.Cache.ContentStore.Hashing; using BuildXL.Cache.ContentStore.Tracing.Internal; using BuildXL....
38.224543
210
0.585314
[ "MIT" ]
Microsoft/BuildXL
Public/Src/Cache/ContentStore/Distributed/NuCache/EventStreaming/ContentLocationEventData.cs
14,640
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.md file in the project root for more information. using System.Collections.Immutable; using System.ComponentModel.Composition; using Microsoft.VisualStudio.ProjectS...
47.897638
201
0.673681
[ "MIT" ]
brunom/project-system
src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Tree/Dependencies/Subscriptions/DependencySharedProjectsSubscriber.cs
5,959
C#
// <auto-generated/> // Contents of: hl7.fhir.r2.core version: 1.0.2 using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using Hl7.Fhir.Introspection; using Hl7.Fhir.Serialization; using Hl7.Fhir.Specification; using Hl7.Fhir.Utility; using Hl7.Fhir.Validation; /* ...
36.2035
132
0.635574
[ "MIT" ]
FirelyTeam/fhir-codegen
generated/CSharpFirely2_R2/Generated/Contract.cs
72,407
C#
using Harmony12; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using UnityEngine; using UnityEngine.UI; using UnityModManagerNet; using static UnityModManagerNet.UnityModManager; namespace BuriedTreasureDetector { public class Work { private static Work _i...
41.144231
182
0.5104
[ "MIT" ]
410998623/Taiwu_mods
BuriedTreasureDetector/Work.cs
4,455
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.ComponentModel; namespace System.Windows.Forms { public class ColumnReorderedE...
27.814815
111
0.684421
[ "MIT" ]
Amy-Li03/winforms
src/System.Windows.Forms/src/System/Windows/Forms/ColumnReorderedEventArgs.cs
753
C#
using ElasticUp.Helper; using Nest; using static ElasticUp.Validations.IndexValidations; using static ElasticUp.Validations.StringValidations; namespace ElasticUp.Operation.Alias { public class CreateAliasOperation : AbstractElasticUpOperation { protected string Alias; protected string IndexNa...
29.375
77
0.655319
[ "MIT" ]
XPCegeka/ElasticUp
ElasticUp/ElasticUp/Operation/Alias/CreateAliasOperation.cs
1,177
C#
/* Status: Solved Imported: 2020-05-02 12:48 By: Casper Url: https://app.codesignal.com/arcade/code-arcade/book-market/MX94DWTrwQw2gLrTi Description: You are implementing your own HTML editor. To make it more comfortable for developers you would like to add an auto-comp...
33.534884
89
0.636616
[ "Apache-2.0" ]
casper-a-hansen/CodeSignal
CodeSignalSolutions/TheCore/BookMarket/htmlEndTagByStartTagClass.cs
1,446
C#
using System; using System.Collections.Generic; using System.Linq; using Naveego.Sdk.Logging; using Naveego.Sdk.Plugins; using Newtonsoft.Json.Linq; namespace PluginAthenaHealth.API.Discover { public static partial class Discover { /// <summary> /// Gets the Naveego type from the provided recor...
37.876289
101
0.397115
[ "MIT" ]
naveego/plugin-athena-health
PluginAthenaHealth/API/Discover/GetPropertyTypesFromRecords.cs
3,674
C#
namespace Lightweight.Scheduler.Abstractions { using System.Threading; using System.Threading.Tasks; public interface IClusterStateMonitor<TSchedulerKey> { Task MonitorClusterState(TSchedulerKey ownerSchedulerId, CancellationToken cancellationToken); } }
25.909091
102
0.77193
[ "MIT" ]
ivankaurov/ligthweight-scheduler
src/Lightweight.Scheduler.Abstractions/IClusterStateMonitor.cs
287
C#
namespace jumpfs.EnvironmentAccess { /// <summary> /// Provides a way of abstracting the file system and environment which is handy for testing /// </summary> public interface IEnvironment { ShellType ShellType { get; } bool DirectoryExists(string path); bool FileExists(...
35.411765
100
0.674419
[ "MIT" ]
gitter-badger/jumpfs
jumpfs/EnvironmentAccess/IEnvironment.cs
604
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
34.1
85
0.532258
[ "MIT" ]
Bhaskers-Blu-Org2/YETI
YammerApplication/YammerLibrary/Yammer_Compress_GetProcessingCount_Result.cs
682
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("Akk...
42.875
84
0.783285
[ "MIT" ]
HIPERCUBE/Akka.Interfaced
plugins/Akka.Interfaced.Persistence/Properties/AssemblyInfo.cs
1,032
C#
using MyBlog.Posts; using System.Collections.Generic; namespace MyBlog.ViewProjections.AdminPost { /// <summary> /// 所有博文视图绑定模型 /// </summary> public class AllBlogPostViewModel { /// <summary> /// 博文集合 /// </summary> public IEnumerable<Post> Posts { get; set; } ...
18.176471
52
0.414239
[ "Apache-2.0" ]
NobleKiss/MyBlog.NetCore
MyBlog.Core/ViewProjections/AdminPost/AllBlogPostViewModel.cs
991
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("Gen...
37.388889
84
0.750371
[ "MIT" ]
secretGeek/dungeon.css
Generator/Properties/AssemblyInfo.cs
1,349
C#
using Library.Data.Entities; using System.Data.Entity.ModelConfiguration; namespace Library.Data.Mapping { public class ReviewMap : EntityTypeConfiguration<REVIEW> { public ReviewMap() { HasKey(t => t.ReviewId); ToTable("REVIEW"); Property(t => t.ReviewId)...
23.947368
88
0.613187
[ "MIT" ]
JBeni/TSP.NET
WCF/Library.Data/Mapping/ReviewMap.cs
457
C#
using System; using NUnit.Framework; using Unity.Collections.Tests; #if !UNITY_DOTSPLAYER public class GcAllocRecorderTest { [Test] public void TestBeginEnd () { GCAllocRecorder.BeginNoGCAlloc(); GCAllocRecorder.EndNoGCAlloc(); } // NOTE: Causing GC allocation with new requires...
23.982301
112
0.565683
[ "MIT" ]
k77torpedo/ForgeECS
Library/PackageCache/com.unity.collections@0.1.0-preview/Unity.Collections.Tests/GcAllocRecorderTest.cs
2,710
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/winnetwk.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using Syst...
35.795455
145
0.632381
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
tests/Interop/Windows/um/winnetwk/DISCDLGSTRUCTATests.cs
1,577
C#
using System; using System.Collections.Generic; using System.Text; namespace Project.Domain.Exceptions { public class ProjectDomainException : Exception { public ProjectDomainException() : base() { } public ProjectDomainException(string msg) : base(msg) { } ...
18.12
103
0.631347
[ "Apache-2.0" ]
gyw1309631798/User.API
Project.Domain/Exceptions/ProjectDomainException.cs
455
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.Generic; using System.Runtime; using System.Runtime.Serialization; using System.Security; using System.Reflection; using System.Xml; namespace...
45.257534
339
0.56995
[ "MIT" ]
mellinoe/corefx
src/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonDataContract.cs
16,519
C#
#region License // Copyright (c) 2011, ClearCanvas Inc. // All rights reserved. // http://www.clearcanvas.ca // // This software is licensed under the Open Software License v3.0. // For the complete license, see http://www.clearcanvas.ca/OSLv3.0 #endregion using System; using System.ComponentModel; usin...
24.223214
72
0.570955
[ "Apache-2.0" ]
SNBnani/Xian
Desktop/View/WinForms/TextAreaField.cs
2,713
C#
namespace advisor.Features { using System.IO; using System.Threading; using System.Threading.Tasks; using advisor.Model; using advisor.Persistence; using MediatR; using Microsoft.EntityFrameworkCore; public record ImportMap(long PlayerId, string Source) : IRequest; public class Imp...
32.860465
104
0.634112
[ "MIT" ]
gelzis/atlantis-economy-adivsor
server/Features/ImportMap.cs
1,413
C#
using UnityEngine; namespace ST.Play { public class ShipMarker : MonoBehaviour { #region Editor customization #pragma warning disable 0649 public bool ownedByClient; public ShipView shipView; [SerializeField] private GameObject forLocalPlayer; ...
21.594595
55
0.60826
[ "Unlicense" ]
ganlhi/saganami-tactics
Saganami Tactics/Assets/ST/Play/ShipMarker.cs
801
C#
using System; using System.Collections.Generic; using System.IO; using JetBrains.Annotations; using UnityEditor; using UnityEditor.Build; using UnityEditor.Build.Reporting; using UnityEditor.Callbacks; #if UNITY_IOS using UnityEditor.iOS.Xcode; #endif using UnityEngine; // Starting with Unity 2019.3, plugins are built...
39.949045
148
0.618463
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
singularity-group/mobile-build-scripts
Packages/com.gamingforgood.mobile_build_scripts/Editor/PreprocessBridgingHeader.cs
6,272
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Media.Imaging; using Flow.Launcher.Core; using Flow.Launcher.Core.Configuration; using...
33.410359
151
0.516277
[ "MIT" ]
XavBryant/Flow.Launcher
Flow.Launcher/ViewModel/SettingWindowViewModel.cs
16,772
C#
namespace P04_InfernoInfinity.Core { using System; using System.Collections.Generic; using Contracts; public class Inventory : IInventory { private Dictionary<string, IWeapon> weaponStorage; public IReadOnlyDictionary<string, IWeapon> Weapons => weaponStorage; public Inve...
25.674419
81
0.605072
[ "MIT" ]
teodortenchev/C-Sharp-Advanced-Coursework
C# OOP Advanced/Reflection-Exercises/P04_InfernoInfinity/Core/Inventory.cs
1,106
C#
namespace TeisterMask.Data { using Microsoft.EntityFrameworkCore; using TeisterMask.Data.Models; public class TeisterMaskContext : DbContext { public TeisterMaskContext() { } public TeisterMaskContext(DbContextOptions options) : base(options) { } protected overrid...
30
85
0.592381
[ "MIT" ]
martinsivanov/CSharp-Databases-January-2021
01 - Entity FrameworkCore/Exams Exercise/C# DB Advanced Exam - 04 April 2021/TeisterMask/Data/TeisterMaskContext.cs
1,052
C#
using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using NuGet.Configuration; using NuGet.ProjectModel; using NuGet.Test.Utility; using Xunit; namespace NuGet.Commands.Test { public class MinClientVersionTests { [Fact] public async Task MinClientVers...
34.93617
157
0.507308
[ "Apache-2.0" ]
MarkOsborneMS/NuGet.Client
test/NuGet.Core.Tests/NuGet.Commands.Test/MinClientVersionTests.cs
3,286
C#
using System; using System.Linq; using System.Text.RegularExpressions; using JetBrains.Annotations; using WireMock.Validation; namespace WireMock.Matchers { /// <summary> /// Regular Expression Matcher /// </summary> /// <inheritdoc cref="IStringMatcher"/> /// <inheritdoc cref="IIgnoreCaseMatcher"...
36.778846
177
0.585359
[ "Apache-2.0" ]
Bob11327/WireMock.Net
src/WireMock.Net/Matchers/RegexMatcher.cs
3,827
C#
using System.Threading.Tasks; using Abp.Dependency; namespace ThinkAM.ThinkEvent.Authentication.External { public abstract class ExternalAuthProviderApiBase : IExternalAuthProviderApi, ITransientDependency { public ExternalLoginProviderInfo ProviderInfo { get; set; } public void Initialize(Ex...
29.958333
102
0.698192
[ "MIT" ]
ThinkAM/ThinkEvent
aspnet-core/src/ThinkAM.ThinkEvent.Web.Core/Authentication/External/ExternalAuthProviderApiBase.cs
721
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Web.Models.MossViewModel { public class SendRequestViewModel { [Required] public long UserId { get; set; } [Required] public string Language { get; set; } p...
21.785714
95
0.604372
[ "MIT" ]
tabby336/Solution1
Solution1/Web/Models/MossViewModel/SendRequestViewModel.cs
917
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ESRI.ArcGIS.Catalog; namespace QuickFindArcCatalogAddin { public interface IFilterValue { string Filter { get; set; } } class GxFilterCustom:IGxObjectFilter,IFilterValue { public bool CanC...
23.576271
105
0.547088
[ "Apache-2.0" ]
awarrencaslys/ArcGIS-QuickFind.Net
source/QuickFindArcCatalogAddin/GxFilterCustom.cs
1,393
C#
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var userIps = new SortedDictionary<string, Dictionary<string, int>>(); while (true) { string input = Console.ReadLine(); if (input == "end") ...
23.795455
104
0.457498
[ "MIT" ]
MomchilSt/SoftUni
02-Programming-Fundamentals/Exercises/13. Dictionaries and Lambda - Exercises/User Logz/Program.cs
1,049
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Matrixes { class CalculatingMatrecies { static void Main() { int row = 4, col = 5; var matrix1 = new Matrix<int>(row, col); for (int...
26.611111
60
0.409186
[ "MIT" ]
zdzdz/Object-Oriented-Programming-Homeworks
02. Defining-Classes-Part-2-HW/Matrixes/CalculatingMatrecies.cs
1,439
C#
// Copyright (c) 2021 Jeevan James // This file is licensed to you under the MIT License. // See the LICENSE file in the project root for more information. using Datask.Providers.DbManagement; using Microsoft.Data.SqlClient; using Microsoft.SqlServer.Management.Common; using Microsoft.SqlServer.Management.Smo; name...
29.273973
100
0.708002
[ "MIT" ]
JeevanJames/Datask
provider/SqlServer/SqlServerDbManagementProvider.cs
2,139
C#
using System; using System.ComponentModel; using System.Diagnostics; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using AKITE.Contingent.Client.Utilities; using AKITE.Contingent.Helpers; using AKITE.Contingent.Models; namespace AKITE.Contingent.Client.Services { public class...
29.947368
110
0.591681
[ "BSD-3-Clause" ]
TrueMemer/AKITE.Contingent
Client/Services/SpecialtyDataService.cs
1,774
C#
namespace Humidifier.KinesisAnalytics { using System.Collections.Generic; using ApplicationOutputTypes; public class ApplicationOutput : Humidifier.Resource { public override string AWSTypeName { get { return @"AWS::KinesisAnalytics::ApplicationOu...
35.773148
227
0.555067
[ "BSD-2-Clause" ]
jakejscott/Humidifier
src/Humidifier/KinesisAnalytics/ApplicationOutput.cs
7,727
C#
#pragma checksum "C:\Users\Administrator\source\repos\aspdotnetcoreapp\Pages\_ViewImports.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8cedc425bb7c3e7729ec31eeb8d3b37fb5faf25d" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(...
57.285714
181
0.770989
[ "Apache-2.0" ]
MyLanPangzi/.Net
aspdotnetcoreapp/obj/Debug/netcoreapp2.2/Razor/Pages/_ViewImports.g.cshtml.cs
2,406
C#
using IdentityServerPlus.Plugin.Base.Models; using System.Collections.Generic; namespace IdentityServerPlus.Plugin.Base.Interfaces { public interface IPluginProvider { string Name { get; } string Description { get; } } }
22.454545
53
0.720648
[ "Apache-2.0" ]
IdentityServerPlus/IdentityServerPlus
IdentityServerPlus.Plugin.Base/Interfaces/IPluginProvider.cs
247
C#
using ElearnerApi.Data.DataContext; using ElearnerApi.Data.Models; using ElearnerApi.Data.Models.Authentication; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System.Sec...
31.282759
152
0.584215
[ "MIT" ]
joshuakaluba/ElearnerApi
ElearnerApi/Controllers/AccountController.cs
4,538
C#
using System; namespace AbstractFactory.Terrestres { public class Patinete : IVeiculoTerrestre { public void GetCarga() { Console.WriteLine("Motorista pegando carga!"); } public void InicieRota() { GetCarga(); Console.WriteLine("Liga...
19.736842
71
0.565333
[ "MIT" ]
mateusOliveiraBrito/designPatterns
AbstractFactory/Terrestres/Patinete.cs
377
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SpawnPipes : MonoBehaviour { public GameObject pipe; public float height; public float maxTime = 4f; private float timer = 0f; void Start() { GameObject newPipe = Instantiate(pipe); ...
23.30303
110
0.608583
[ "MIT" ]
paulohgs/flappy-bird-clone
Assets/Scripts/SpawnPipes.cs
769
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using DCL; public class AvatarAnimationEventHandler : MonoBehaviour { const string ANIM_NAME_KISS = "kiss", ANIM_NAME_MONEY = "money", ANIM_NAME_CLAP = "clap", ANIM_NAME_SNOWFLAKE = "snowfall", ANIM_NAME_HOHOHO = "hohoho"; const flo...
29.13089
156
0.643242
[ "Apache-2.0" ]
CarlosPolygonalMind/unity-renderer
unity-renderer/Assets/Scripts/MainScripts/DCL/Components/Avatar/AvatarAnimationEventHandler.cs
5,564
C#
/*********************************************************************** * Bachelor of Software Engineering * Media Design School * Auckland * New Zealand * * (c) 2018 Media Design School * * File Name : Note.cs * Description : A developer's note in the scene. * Project : FluxusPulse * Team Name : M Breakdown Studios...
20.5
73
0.538211
[ "MIT" ]
MBreakdown/FluxusPulse
Assets/FluxusPulse/Scripts/Utilities/Note.cs
617
C#
// #if REPORT_SN // 定义 REPORT_SN 会启用报表窗的序列号 using System; using System.Collections.Generic; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Xml; using System.IO; using System.Web; using System.Collections; using System.Diagnostics; using System.Threading; using ...
36.861857
377
0.444201
[ "Apache-2.0" ]
jasonliaocn/dp2
dp2Circulation/Statis/ReportForm.cs
551,528
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.Playables; using ScenarioController; /// <summary> /// Scenarioが表示されるかテストする /// </summary> public class ScenarioTest : MonoBehaviour { public ScenarioInput input; void Update() { ...
24.5
79
0.723562
[ "MIT" ]
NidoKota/UnityScenarioController
Assets/Scripts/ScenarioTest.cs
565
C#
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Ordering.Application.Contracts.Infrastructure; using Ordering.Application.Models; using SendGrid; using SendGrid.Helpers.Mail; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks...
28.913793
129
0.639237
[ "MIT" ]
Azilen/gRPC-API-Performance-Improvement
src/Services/Ordering/Ordering.Infrastructure/Mail/EmailService.cs
1,679
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...
32.677966
120
0.60944
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/Network/V20190701/Inputs/WebApplicationFirewallCustomRuleArgs.cs
1,928
C#
using System.Globalization; using System.Reflection; using ClosedXML.Excel; namespace Netcool.Excel; public class ExcelImporter<T> where T : class, new() { private IList<ExcelColumnMetadata> _columns; private string _sheetName; private XLWorkbook _workbook; private int _headerRowIndex; public Ex...
33.161677
120
0.591008
[ "Apache-2.0" ]
NeilQ/Netcool
src/extensions/Netcool.Excel/TypedExcelImporter.cs
5,540
C#
namespace ReflectionAnalyzers.Tests.REFL028CastReturnValueToCorrectTypeTests { using Gu.Roslyn.Asserts; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; using NUnit.Framework; public class ValidCode { public class ActivatorCreateInstance { priv...
23.626667
117
0.566591
[ "MIT" ]
jaggedSpire/ReflectionAnalyzers
ReflectionAnalyzers.Tests/REFL028CastReturnValueToCorrectTypeTests/ValidCode.ActivatorCreateInstance.cs
1,772
C#
using System.Collections.Generic; namespace RedFolder.ViewModels { public class RecentProject { public string Title { get; set; } public List<string> Description { get; set; } public Diciplines Diciplines { get; set; } public List<string> Technologies { get; set; } } }
24.307692
54
0.642405
[ "MIT" ]
Red-Folder/red-folder.com
src/Red-Folder.com/ViewModels/RecentProject.cs
318
C#
using Cosmos.Conversions.Common; using Cosmos.Reflection; using NodaTime; namespace Cosmos.Date; /// <summary> /// DateInfo <br /> /// 日期信息 /// </summary> public partial class DateInfo { // ReSharper disable once InconsistentNaming private DateTime _internalDateTime { get; set; } internal DateInfo() { }...
25.452077
119
0.522814
[ "Apache-2.0" ]
cosmos-loops/Cosmos.Standard
src/Cosmos.Extensions.DateTime/Cosmos/Date/DateInfo.cs
16,257
C#
using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.IdentityModel.Protocols.OpenIdConnect; using Microsoft.IdentityModel.Tokens; using Microsoft.IdentityModel.Protocols; namespace QianCash.Web.Configuration { public static class AuthenticationExtensions { public static IServiceCollect...
40.363636
217
0.602477
[ "MIT" ]
swizkon/xingzen
src/QianCash.Web/Configuration/AuthenticationExtensions.cs
1,778
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; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis.CSharp; using Microsoft.Co...
36.118143
160
0.589486
[ "Apache-2.0" ]
davidfowl/roslyn
src/EditorFeatures/CSharpTest/Squiggles/ErrorSquiggleProducerTests.cs
8,560
C#
using Up.NET.Api.Webhooks; using Up.NET.Api.Webhooks.Events; using Up.NET.Api.Webhooks.Logs; using Up.NET.Models; namespace Up.NET.Api; public partial class UpApi { public async Task<UpResponse<PaginatedDataResponse<WebhookResource>>> GetWebhooksAsync(int? pageSize = null) { var queryParams = new Dic...
39.5
118
0.721519
[ "MIT" ]
Hona/Up.NET
Up.NET/Api/WebhooksApi.cs
1,740
C#
using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; namespace Uragano.Abstractions { public class AsyncLock { private object _reentrancy = new object(); private int _reentrances = 0; //We are using this SemaphoreSlim like a posix condition vari...
36.307692
137
0.524153
[ "MIT" ]
1100100/Uragano
src/Uragano.Abstract/AsyncLock.cs
4,722
C#
using MasterServerToolkit.Networking; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace MasterServerToolkit.MasterServer { public class MstProperties { private Dictionary<string, string> properties; public MstProperties() { ...
23.176471
97
0.485667
[ "MIT" ]
itsnotyoutoday/MST
Assets/MasterServerToolkit/Tools/UI/Scripts/Generic/MstProperties.cs
6,700
C#
/* * Fatture in Cloud API v2 - API Reference * * Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. * * T...
35.865471
283
0.570268
[ "MIT" ]
fattureincloud/fattureincloud-csharp-sdk
src/It.FattureInCloud.Sdk/Model/CompanyInfoPlanInfo.cs
7,998
C#
using Microsoft.OData.Edm; using OdataToEntity.ModelBuilder; using OdataToEntity.Test.Model; using System; using System.IO; using System.Threading; using System.Threading.Tasks; namespace OdataToEntity.Test { public abstract class DbFixtureInitDb : DbFixture { private bool _initialized; privat...
42.948454
184
0.667787
[ "MIT" ]
DawidPotgieter/OdataToEntity
test/OdataToEntity.Test.EfCore.SqlServer/DbFixtureInitDb.cs
4,168
C#
using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace IdentityStandaloneMfa.Data; public class ApplicationDbContext : IdentityDbContext { public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options) { } } ...
24.692308
80
0.766355
[ "MIT" ]
damienbod/AspNetCoreAuthorizationCodeFlow
IdentityStandaloneMfa/Data/ApplicationDbContext.cs
323
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace GEMSNT.GEMSBinaryLoader { class GemsBin { public static bool LoadGemsBin(string path) { try { if (path.EndsWith(".bin")) { ...
25.84375
93
0.434099
[ "MIT" ]
sparksammy/GEMS-NT
GEMSNT/GemsBin.cs
829
C#
using System; namespace CSTest.Readonly { public class ReadonlyTest { public void Test() { var point1 = new PointNoReadonly { X = 1, Y = 1 }; var point2 = new Point { X = 1, ...
24.963415
72
0.434294
[ "MIT" ]
marchers/amadeus-learning
src/CSharp8/CSTest/Readonly/ReadonlyTest.cs
2,049
C#
using System; namespace _2._2 { public class List { public Node Head { get; set; } public int Length { get; set; } public bool IsEmpty => Length == 0; private bool IsContained(int position) => !(IsEmpty || position > Length || position < 1); public bool IsContainedB...
26.435028
98
0.353281
[ "Apache-2.0" ]
yuniyakim/Homework
Semester2/Homework2/2.2/2.2/List.cs
4,681
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; using System.Management.Automation.Host; using System.Management.Automation.Runspaces; namespace Microsoft.PowerShell.EditorServices { /// <sum...
31.803279
110
0.628866
[ "MIT" ]
Benny1007/PowerShellEditorServices
src/PowerShellEditorServices/Session/RunspaceHandle.cs
1,940
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...
30.290323
105
0.684771
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Web/V20210101/Outputs/BlobStorageTokenStoreResponse.cs
939
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using IdentityServer4.Events; using IdentityServer4.Extensions; using IdentityServer4.Services; using IdentityServer4.Stores; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Exten...
35.67
120
0.590973
[ "MIT" ]
sergiomcalzada/sereno
src/Sereno.STS.UI/Pages/Grants/Index.cshtml.cs
3,569
C#
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using PureCloudPlatform.Client.V2.Client; namespace PureClo...
32.120968
136
0.490836
[ "MIT" ]
nmusco/platform-client-sdk-dotnet
build/src/PureCloudPlatform.Client.V2/Model/Trustee.cs
7,966
C#
using System; using System.Threading; using System.Threading.Tasks; using Android.Content; using Android.Graphics; using FFImageLoading.Drawables; using FFImageLoading.Views; using Xamarin.Forms; using Xamarin.Forms.Platform.Android; namespace FFImageLoading.Forms.Droid { public class FFImageSourceHandler : IImag...
30.871795
155
0.671927
[ "MIT" ]
muak/FFImageSource
FFImageSource.Droid/FFImageSourceHandler.cs
1,206
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using DotVVM.Framework.ViewModel; namespace DotVVM.Samples.BasicSamples.ViewModels.ControlSamples.EnabledProperty { public class EnabledPropertyViewModel : DotvvmViewModelBa...
26.442308
79
0.613091
[ "Apache-2.0" ]
adamjez/dotvvm
src/DotVVM.Samples.Common/ViewModels/ControlSamples/EnabledProperty/EnabledProperty.cs
1,375
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using BDFramework.ScreenView; using BDFramework.Sql; using BDFramework.UFlux; using BDFramework.UI; using Code.Game; [ScreenView((int)ScreenViewEnum.Demo1)] public class ScreenView_Demo1_Screenview : IScreenView { public ...
21.659091
54
0.64638
[ "Apache-2.0" ]
AlanWeekend/BDFramework.Core
Assets/Code/Game@hotfix/ScreenView/ScreenView_Demo1_Screenview.cs
1,059
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...
30.88
101
0.609456
[ "ECL-2.0", "Apache-2.0" ]
ScriptBox99/pulumi-azure
sdk/dotnet/DataFactory/Inputs/DataFlowSourceArgs.cs
1,544
C#
//////////////////////////////////////////////////////////////////////////////////////////// // Implementation of the Google Cloud Spanner DBDriver for the LLBLGen Pro system. // (c) 2002-2019 Solutions Design, all rights reserved. // http://www.llblgen.com/ // // THIS IS NOT OPEN SOURCE SOFTWARE OF ANY KIND. // // ...
33.19084
161
0.682153
[ "MIT" ]
SolutionsDesign/LLBLGenProSpanner
Driver/SpannerCatalogRetriever.cs
4,348
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SOLIDPrinciples.Open_Close_Principle.TrueExample.Abstraction { public abstract class Coffee { public abstract double GetTotalPrice(double amount); } }
21.357143
70
0.772575
[ "MIT" ]
Xirzat1212/SOLIDPrinciples
SOLIDPrinciples/Open Close Principle/TrueExample/Abstraction/Coffee.cs
301
C#
// // TaskLoggingHelper.cs: Wrapper aroudn IBuildEngine. // // Author: // Marek Sieradzki (marek.sieradzki@gmail.com) // // (C) 2005 Marek Sieradzki // // 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...
29.40795
104
0.710393
[ "Apache-2.0" ]
radovanovic/monobsd
mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/TaskLoggingHelper.cs
14,057
C#
/******************************************************************************/ /* Project - Unity CJ Lib https://github.com/TheAllenChou/unity-cj-lib Author - Ming-Lun "Allen" Chou Web - http://AllenChou.net Twitter - @TheAllenChou Numeric Springs Intro - http://allenchou.net/2...
28.168724
124
0.640979
[ "MIT" ]
SuomiKP31/Project-Impetus
Assets/CjLib/Script/Math/NumericSpring.cs
13,692
C#
using CleanArchWeb.Application.TodoLists.Queries.GetTodos; using CleanArchWeb.Domain.Entities; using CleanArchWeb.Domain.ValueObjects; using FluentAssertions; using NUnit.Framework; using System.Linq; using System.Threading.Tasks; namespace CleanArchWeb.Application.IntegrationTests.TodoLists.Queries { using stati...
30.09434
71
0.529154
[ "MIT" ]
kkoziarski/dotnet-angular-identity-single-app-starter
tests/Application.IntegrationTests/TodoLists/Queries/GetTodosTests.cs
1,597
C#
namespace Microsoft.ApplicationInsights.DataContracts { using System.Collections.Generic; /// <summary> /// Represents an object that supports application-defined metrics. /// </summary> public interface ISupportMetrics { /// <summary> /// Gets a dictionary of application-defin...
30.0625
126
0.673597
[ "MIT" ]
304NotModified/ApplicationInsights-dotnet
BASE/src/Microsoft.ApplicationInsights/DataContracts/ISupportMetrics.cs
483
C#
 namespace DrumbleApp.Shared.Enums { public enum ApplicationSetting { AllowLocation = 0, UseMetric = 3, ShowWeather = 5, StoreLocation = 6, UseUber = 7, AutoPopulateLocation = 8, AutoPopulateMostRecent = 9, AutoPopulateMostFrequent = 10, S...
23
45
0.592133
[ "MIT" ]
CodeObsessed/drumbleapp
DrumbleApp.Shared/Enums/ApplicationSetting.cs
485
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("Rad...
37.621622
84
0.747845
[ "MIT" ]
vforteli/RadSec-Client
Properties/AssemblyInfo.cs
1,395
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
47.738397
200
0.651759
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/requests/AndroidForWorkVpnConfigurationRequest.cs
11,314
C#
using FluentValidation; using Microsoft.EntityFrameworkCore; using SW.Mtm.Domain; using SW.Mtm.Model; using SW.PrimitiveTypes; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.ExceptionServices; using System.Text; using System.Threading.Tasks; namespace SW.Mtm.Resources.Accounts...
30.985075
120
0.643545
[ "MIT" ]
simplify9/Mtm
SW.Mtm.Api/Resources/Accounts/ResetPassword.cs
2,078
C#
namespace LeetCode.Naive.Problems; /// <summary> /// Problem: https://leetcode.com/problems/concatenation-of-array/ /// Submission: https://leetcode.com/submissions/detail/525480252/ /// </summary> internal class P1929 { public class Solution { public int[] GetConcatenation(int[] nums) { ...
23.529412
70
0.63
[ "MIT" ]
viacheslave/algo
leetcode/c#/Problems/P1929.cs
400
C#
using System; namespace NBitcoin.BouncyCastle.Crypto { /// <remarks>Block cipher engines are expected to conform to this interface.</remarks> public interface IBufferedCipher { /// <summary>The name of the algorithm this cipher implements.</summary> string AlgorithmName { get; } /// <summary>...
35.088889
88
0.675744
[ "MIT" ]
dthorpe/NBitcoin
NBitcoin.BouncyCastle/crypto/IBufferedCipher.cs
1,579
C#