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
using System; using System.Collections.Generic; using Newtonsoft.Json; namespace greenergy.chatbot_fulfillment.Models { public class DialogFlowResponseDTO { public string fulfillmentText { get; set; } public List<FulfillmentMessage> fulfillmentMessages { get; set; } public string source...
27.727749
84
0.568731
[ "MIT" ]
sorbra/greenergy
emissions-chatbot/emissions-chatbot.fulfillment/Models/DialogFlowModels.cs
5,296
C#
#region License, Terms and Conditions // // Jayrock - JSON and JSON-RPC for Microsoft .NET Framework and Mono // Written by Atif Aziz (atif.aziz@skybow.com) // Copyright (c) 2005 Atif Aziz. All rights reserved. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU L...
32.7125
93
0.668705
[ "MIT" ]
ArcherTrister/LeXun.Alipay.AopSdk
src/Alipay.AopSdk/Jayrock/Json/Json/Conversion/Converters/ImportAwareImporter.cs
2,617
C#
// Copyright © William Sugarman. // Licensed under the MIT License. using System; using System.Threading; using System.Threading.Tasks; using Microsoft.WindowsAzure.Storage.Auth; namespace Keda.Scaler.DurableTask.AzureStorage.Cloud; internal interface ITokenCredentialFactory { ValueTask<TokenCredential> CreateA...
27.4
126
0.817518
[ "MIT" ]
wsugarman/durabletask-azurestorage-external-scaler
src/Keda.Scaler.DurableTask.AzureStorage/Cloud/ITokenCredentialFactory.cs
414
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Bot.Builder.Adapters; using Microsoft.Extensions.DependencyI...
34.740385
182
0.584002
[ "MIT" ]
JiayueHu/botbuilder-dotnet
libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/BotMessageHandlerBase.cs
3,615
C#
using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using QlikView_CLI.QMSAPI; namespace QlikView_CLI.PWSH { [Cmdlet(VerbsCommon.Get, "QVServerObjectMetaDataForUser")] public class GetQVServerObjectMetaDataForUser : PSClient { [Parameter] ...
26.982143
193
0.590338
[ "MIT" ]
QlikProfessionalServices/QlikView-CLI
PWSH/Generated/Get/ServerObjectMetaDataForUser.cs
1,513
C#
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Npgsql; namespace Discount.API.Extensions { public static class HostExtensions { public static IHost MigrateDatabase<TContext>(this IH...
38.3
144
0.512868
[ "MIT" ]
ritzm1974/AspnetMicroservices
src/Services/Discount/Discount.API/Extensions/HostExtensions.cs
2,683
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using Elasticsearch.Net.Connection.RequestState; using Elasticsearch.Net.ConnectionPool; using Elasticsearch.Net.Exceptions; using Elasticsearch.Net.Providers; using Elasticsearch.Net.Serialization; using System.Threading.Tasks; using E...
36.120623
146
0.749111
[ "Apache-2.0" ]
bgiromini/NEST
src/Elasticsearch.Net/Connection/RequestHandlers/RequestHandlerBase.cs
9,283
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.Events; using UnityEngine.UI; using HarmonyLib; namespace Explorer { public class Hooks { // *************** FIX DEBUG AREA SWITCH NAMES **********...
39.046784
123
0.519545
[ "MIT" ]
botchi09/Outward-Mods
Explorer/Explorer/Hooks.cs
6,691
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.Coyote.Actors; using Microsoft.Coyote.Runtime; using Microsoft.Coyote.SystematicTesting; namespace Microsoft.Coyote.Samples.CloudMessaging { public static class Program { [Test] public static void Execu...
23.9
57
0.677824
[ "MIT" ]
Bhaskers-Blu-Org2/coyote-samples
CloudMessaging/Raft.Mocking/Program.cs
480
C#
#region License // Copyright (c) 2007 James Newton-King // // 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.995585
165
0.49438
[ "MIT" ]
CallumCarmicheal/Keyboard-Tracker
dep/JSON.Net/Source/Src/Newtonsoft.Json.Tests/Linq/JsonPath/JPathExecuteTests.cs
29,894
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://ww...
32.519481
86
0.525958
[ "MIT" ]
AlanFlorance/azure-powershell
src/NetAppFiles/NetAppFiles/Models/PSNetAppFilesAccount.cs
2,428
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Eto.Forms; using aa = Android.App; using ac = Android.Content; using ao = Android.OS; using ar = Android.Runtime; using av = Android.Views; using aw = Android.Widget; using ag = Android.Graphics; namespace Eto.Android.Forms.Co...
25.033333
90
0.720373
[ "BSD-3-Clause" ]
745564106/Eto
src/Eto.Android/Forms/Controls/PanelHandler.cs
751
C#
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace SkorubaIdentityServer4Admin.STS.Identity.Quickstart.Consent { public class ProcessConsentResult { public bool IsRed...
33.368421
107
0.697161
[ "MIT" ]
H-Ahmadi/GodOfWar
STS/templates/template-publish/content/src/SkorubaIdentityServer4Admin.STS.Identity/Quickstart/Consent/ProcessConsentResult.cs
636
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using SGEP.Banco; namespace SGEP.Migrations { [DbContext(typeof(Contex...
29.151899
76
0.477638
[ "MIT" ]
RevolverOcelotIII/SGEP
SGEP/Migrations/20190911173637_Migracao.Designer.cs
2,305
C#
using System; using System.Collections.Generic; using System.Text; using System.Configuration; namespace XecMe.Configuration { /// <summary> /// Custom configuration element that has just 2 properties viz. name and value /// </summary> public class KeyValueConfigurationElement: ConfigurationElement ...
28.625
92
0.59738
[ "MIT" ]
slolam/xecme
src/Configuration/KeyValueConfigurationElement.cs
1,147
C#
using System.Text.Json.Serialization; namespace Horizon.Payment.Alipay.Domain { /// <summary> /// AlipayDataDataserviceDmpserviceCreateModel Data Structure. /// </summary> public class AlipayDataDataserviceDmpserviceCreateModel : AlipayObject { /// <summary> /// 转化id event_type = 1...
29.493976
131
0.553513
[ "Apache-2.0" ]
bluexray/Horizon.Sample
Horizon.Payment.Alipay/Domain/AlipayDataDataserviceDmpserviceCreateModel.cs
2,808
C#
namespace Service { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; [Table("Wonder")] public partial class Wonder { public int Id { get; set; } ...
21.684211
55
0.645631
[ "MIT" ]
bashnia007/Citadels
CitadelsApp/Service/Wonder.cs
412
C#
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.IO; using System.Threading; using System.Threading.Tasks; using System.ComponentModel; using System.Reflection; using Microsoft.Win32; /...
20.828571
105
0.683128
[ "MIT" ]
alexfordc/Au
_Au/Util/Internal/ActCtx_.cs
1,460
C#
// <auto-generated /> // Built from: hl7.fhir.r4.core version: 4.0.1 using System; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; using Fhir.R4.Serialization; namespace Fhir.R4.Models { /// <summary> /// Describes a comparison of an immunization event against publi...
30.588636
177
0.610892
[ "MIT" ]
QPC-database/fhir-codegen
test/perfTestCS/R4/Models/ImmunizationEvaluation.cs
13,459
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace UiPath.Web.Client20181.Models { using Newtonsoft.Json; using System.Linq; public partial class IEdmTerm ...
33.666667
310
0.595583
[ "MIT" ]
AFWberlin/orchestrator-powershell
UiPath.Web.Client/generated20181/Models/IEdmTerm.cs
2,626
C#
#if !NET20 using System; using System.Collections.Generic; using KellermanSoftware.CompareNetObjects; namespace AggregateSource.Testing.Comparers { /// <summary> /// Compares exception using a <see cref="ICompareLogic"/> object and reports the differences. /// </summary> public class CompareNetObjects...
37.8
127
0.6
[ "BSD-3-Clause" ]
ChrisMcKee/AggregateSource
src/Testing/AggregateSource.Testing/Comparers/CompareNetObjectsBasedExceptionComparer.cs
1,892
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...
31.5
119
0.609053
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/MachineLearningServices/V20210301Preview/Inputs/BanditPolicyArgs.cs
1,701
C#
/* * Copyright (c) 2015 Andrew Johnson * * 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, ...
32.505051
85
0.597265
[ "MIT" ]
helios2k6/MobileImageProcessor
Indexer/IndexFile.cs
3,220
C#
using System; using DexNetwork.DexInterpreter.Commands; namespace DexNetwork.DexInterpreter { public class CommandResolver { public CommandBase ResolveCommand(string input, IDexPromise dexPromise) { if (input.Contains("\n")) return new MacroCommand(dexPromise); ...
38.431373
87
0.638265
[ "Apache-2.0" ]
Krivda/gUmMY
DexNetwork/DexInterpreter/CommandResolver.cs
1,962
C#
using OpenKh.Common; using System.Collections.Generic; using System.IO; using System.Linq; using Xe.BinaryMapper; namespace OpenKh.Kh2 { public class ObjectCollision { [Data] public byte Group { get; set; } [Data] public byte Parts { get; set; } [Data] public short Argument { get; set; ...
32.177778
88
0.571823
[ "Apache-2.0" ]
1234567890num/OpenKh
OpenKh.Kh2/ObjectCollision.cs
1,448
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNetCor...
39.855721
133
0.564848
[ "Apache-2.0" ]
AhmedKhalil777/aspnetcore
src/Http/Authentication.Core/test/TokenExtensionTests.cs
8,011
C#
using System; using System.IO; // this one needs a lot of work to move to System.IO.Abstractions using NGenerics.DataStructures.Trees; using NUnit.Framework; using Autofac; using PicklesDoc.Pickles.DirectoryCrawler; using PicklesDoc.Pickles.DocumentationBuilders.JSON; using PicklesDoc.Pickles.Test.Helpers; using Shoul...
34.206349
113
0.62877
[ "Apache-2.0" ]
marcusoftnet/pickles
src/Pickles/Pickles.Test/Formatters/JSON/when_formatting_a_folder_structure_with_features.cs
2,157
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Diagnostics.CodeAnalysis; using System.IO; using FluentAssertions; using Microsoft.Common.Core.Test.Utility; using Microsoft.R.Core.Format...
41.23913
121
0.67844
[ "MIT" ]
AlexanderSher/RTVS-Old
src/R/Core/Test/Formatting/FormatFilesFiles.cs
1,899
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AlibabaCloud.SDK.Ram20150501.Models { public class UnbindMFADeviceRequest : TeaModel { [NameInMap("UserName")] [Validation(Required=false)] public s...
18.894737
54
0.690808
[ "Apache-2.0" ]
atptro/alibabacloud-sdk
ram-20150501/csharp/core/Models/UnbindMFADeviceRequest.cs
359
C#
namespace Exrin.Insights { using System; using System.Threading; using System.Threading.Tasks; internal sealed class Timer : CancellationTokenSource { internal Timer(Action<object> callback, object state, int millisecondsDueTime, int millisecondsPeriod, bool waitForCallbackBeforeNextPeriod...
36.486486
187
0.608148
[ "MIT" ]
adamped/exrin
Exrin/Exrin.Framework/Insights/Timer.cs
1,352
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.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.Commands; using Microsoft.CodeAnalysis.Editor.Host; using M...
44.358491
160
0.684815
[ "Apache-2.0" ]
jbevain/roslyn
src/EditorFeatures/Test/FindReferences/FindReferencesCommandHandlerTests.cs
2,351
C#
using System; using System.Collections.Generic; using UnityEngine; public class SearchSave { public uint unitCtrlrUid; public global::UnityEngine.Vector3 pos; public global::System.Collections.Generic.List<global::ItemSave> items; public bool wasSearched; }
17.8
72
0.794007
[ "CC0-1.0" ]
FreyaFreed/mordheim
Assembly-CSharp/SearchSave.cs
269
C#
namespace Pierres.ViewModels { public class LoginViewModel { public string Email { get; set; } public string Password { get; set; } public string Name { get; set; } } }
20.666667
40
0.655914
[ "Unlicense" ]
Medeirosseth/MonsieurPierres.Solution
Pierres/ViewModels/LoginViewModel.cs
186
C#
using BeatPulse; using FluentAssertions; using FunctionalTests.Base; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; using Xunit; namespace Functiona...
30.252874
96
0.543313
[ "Apache-2.0" ]
BTDevelop/BeatPulse
tests/FunctionalTests/BeatPulse.Kafka/BeatPulseLivenessTests.cs
2,634
C#
using JPProject.Sso.Domain.Commands.UserManagement; namespace JPProject.Sso.Domain.Validations.UserManagement { public class ChangePasswordCommandValidation : PasswordCommandValidation<ChangePasswordCommand> { public ChangePasswordCommandValidation() { ValidateUsername(); ...
28.214286
99
0.691139
[ "MIT" ]
abdullahgb/JPProject.Core
src/SSO/JPProject.Sso.Domain/Validations/UserManagement/ChangePasswordCommandValidation.cs
397
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Mvc.ApiExplorer; using Swashbuckle.AspNetCore.SwaggerUI; namespace Byndyusoft.AspNetCore.Mvc.Formatters.ProtoBuf.Swagger { /// <summary> /// ApplicationBuilderExtensions /// </summary> public static class ApplicationBuilderExtensions ...
36.969697
163
0.621311
[ "MIT" ]
Byndyusoft/Byndyusoft.AspNetCore.Mvc.Formatters.ProtoBuf
example/Swagger/ApplicationBuilderExtensions.cs
1,222
C#
using Extensible.Interfaces; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; namespace Extensible.Loaders { public class DirectoryLoader<T> : ILoader<T> where T : class { private readonly string[] _paths; private readonly ...
32.216495
113
0.49504
[ "MIT" ]
mrb0nj/Extensibility
src/Extensible/Loaders/DirectoryLoader.cs
3,125
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...
35.46875
128
0.570925
[ "MIT" ]
ahmetcanaydemir/Herbarium
Database/Model/family.cs
1,137
C#
using System; using System.Collections.Generic; using System.Text; using ProtoBuf.Meta; namespace AgGateway.ADAPT.ADMPlugin.Protobuf.V2.Logistics { public static class GpsSourceType { public static void Configure(RuntimeTypeModel model) { var type = model.Add(typeof(AgGateway.ADAPT.ApplicationDataMod...
46.227273
116
0.794494
[ "EPL-1.0" ]
ADAPT/ADMPlugin
ADMPlugin/Protobuf/V2/Logistics/GpsSourceType.cs
1,017
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TradeAndTravel { public class Forest : Location, IGatheringLocation { public Forest(string name) : base(name, LocationType.Forest) { } publ...
18.368421
54
0.505731
[ "MIT" ]
Valsinev/C-OOP
Exams/12 december 2013/2/TradeAndTravel-Skeleton/TradeAndTravel/Forest.cs
700
C#
using Mazes; using Mazes.Algorithms; using System.Threading.Tasks; namespace AldousBroderDemo { class Program { static async Task Main(string[] args) { var grid = new Grid(20, 20); new AldousBroder().On(grid); var image = await grid.ToImageAsync(); ...
19.684211
50
0.569519
[ "MIT" ]
Nekketsu/MazesForProgrammers
src/AldousBroderDemo/Program.cs
376
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace EliteTradingGUI { public class EdInfo : IDisposable { private IntPtr _instance; private GCH...
32.87963
126
0.479442
[ "BSD-2-Clause" ]
Helios-vmg/EliteTrading
EliteTradingGUI/EdInfo.cs
7,104
C#
using System; using System.Collections.Generic; /* struct ContentView : View { @State var celsius: Double = 0 var body: some View { VStack { Slider(value: $celsius, from: -100, through: 100, by: 0.1) Text("\(celsius) Celsius is \(celsius * 9 / 5 + 32) Fahrenheit") ...
29.555556
130
0.50188
[ "MIT" ]
BenBtg/HotUI
sample/HotUI.Samples/SliderSample1.cs
1,066
C#
using System; using System.Collections.Generic; using Microsoft.Extensions.Options; using Orleans.Configuration; using Orleans.Versions.Selector; namespace Orleans.Runtime.Versions.Selector { internal class VersionSelectorManager { private readonly VersionSelectorStrategy strategyFromConfig; pr...
37.440678
150
0.672703
[ "MIT" ]
1007lu/orleans
src/Orleans.Runtime/Versions/Selector/VersionDirectorManager.cs
2,209
C#
using AutoMapper; using Chat.Web.Data; using Chat.Web.Models; using Chat.Web.ViewModels; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.SignalR; using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Chat.W...
35.302632
110
0.544167
[ "MIT" ]
AKouki/SignalR-Chat
Chat.Web/Hubs/ChatHub.cs
5,368
C#
using System.Collections.Generic; public class Team { private string name; private List<Person> firstTeam; private List<Person> reserveTeam; public Team(string name) { this.name = name; this.firstTeam = new List<Person>(); this.reserveTeam = new List<Person>(); } ...
17.458333
53
0.544153
[ "MIT" ]
msotiroff/Softuni-learning
C# DB Module/DB Advanced - Entity Framework Core/C# OOP Intro - Encapsulation and Validation/Homework/OOP-Encapsulation-Lab/04.FirstAndReserveTeam/Team.cs
840
C#
using Ammy.Build; using Ammy.Language; namespace Ammy.VisualStudio.Service.Compilation { public interface ICompilationListener { string FilePath { get; } void Update(AmmyFile<Top> file); } }
20.818182
48
0.659389
[ "MIT" ]
AmmyUI/AmmyUI
src/IDE/Ammy.VisualStudio.Service/Compilation/ICompilationListener.cs
229
C#
using System; using Xamarin.Essentials; using Xamarin.Forms; namespace Notes.Views { public partial class AboutPage : ContentPage { public AboutPage() { InitializeComponent(); } async void OnButtonClicked(object sender, EventArgs e) { // Launch ...
21.619048
74
0.605727
[ "Apache-2.0" ]
1ostrich/xamarin-forms-samples
GetStarted/Notes/App/Notes/Views/AboutPage.xaml.cs
456
C#
using System; using System.Transactions; using Microsoft.EntityFrameworkCore; using Abp.Dependency; using Abp.Domain.Uow; using Abp.EntityFrameworkCore.Uow; using Abp.MultiTenancy; using TigerAdmin.EntityFrameworkCore.Seed.Host; using TigerAdmin.EntityFrameworkCore.Seed.Tenants; namespace TigerAdmin.EntityFrameworkCo...
31.571429
113
0.645766
[ "Apache-2.0" ]
AllenHongjun/ddu
TigerAdminZero/5.8.1/aspnet-core/src/TigerAdmin.EntityFrameworkCore/EntityFrameworkCore/Seed/SeedHelper.cs
1,549
C#
/* * Ory APIs * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * * The version of the OpenAPI document: v0.0.1-alpha.30 * Contact: support@ory.sh * Generated by: https://github.com/...
42.26455
179
0.61342
[ "Apache-2.0" ]
ory/sdk
clients/client/dotnet/src/Ory.Client/Model/ClientSubmitSelfServiceSettingsFlowWithPasswordMethodBody.cs
7,988
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using IdentityModel; using Microsoft.AspNetCore.Authentication; namespace IdentityServer.Extensions { public static class AuthenticateResultExtensions { public static (string provider, string providerUserI...
38.947368
143
0.664189
[ "Apache-2.0" ]
bozhiqian/ASP.NET-Core-Auth
TodoWithIdentityServer/IdentityServer/Extensions/AuthenticateResultExtensions.cs
1,482
C#
using System; using System.Collections.Generic; using System.Data.Linq.Mapping; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Com.ChinaPalmPay.Platform.RentCar.Model { [Table(Name = "T_Cup")] [Serializable] public class Cup { [Column(IsPrimaryKey = true, IsDbGen...
24.71831
60
0.517949
[ "MIT" ]
gp15237125756/Blog
Com.ChinaPalmPay.Platform.RentCar/Com.ChinaPalmPay.Platform.RentCar.Model/Cup.cs
1,907
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...
38.712766
134
0.544014
[ "MIT" ]
Philippe-Morin/azure-powershell
src/Common/Commands.Common.Authentication/Authentication/UserTokenProvider.Netcore.cs
10,638
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...
34.857143
115
0.640369
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/ServiceDiscovery/Generated/Model/Internal/MarshallTransformations/ServiceChangeMarshaller.cs
2,928
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// Clase que representa el estado de "patrulla" /// del soldado. Es su estado por defecto, /// realiza un recorrido entre los distintos /// puntos establecidos en Unity. /// </summary> public class PatrollingState : Stat...
34.528302
132
0.689071
[ "Apache-2.0" ]
gerlogu/Shooter
Game/Assets/Game/Scripts/IA/Enemy/Soldier/PatrollingState.cs
1,832
C#
using AutoMapper; using DIGNDB.App.SmitteStop.Core.Contracts; using DIGNDB.App.SmitteStop.DAL.Repositories; using DIGNDB.App.SmitteStop.Domain; using DIGNDB.App.SmitteStop.Domain.Db; using DIGNDB.App.SmitteStop.Domain.Settings; using FederationGatewayApi.Config; using FederationGatewayApi.Contracts; using Fede...
43.661818
220
0.593487
[ "MIT" ]
folkehelseinstituttet/Fhi.Smittestopp.Backend
DIGNDB.App.SmitteStop.Testing/ServiceTest/Gateway/SetupMockedServices.cs
12,009
C#
namespace Sitecore.Feature.Catalog.Models.JsonResults { using Foundation.CommerceServer.Extensions; using Foundation.CommerceServer.Managers; using Sitecore.Commerce.Entities.GiftCards; using Sitecore.Commerce.Services; using Sitecore.Diagnostics; using Sitecore.Feature.Base.Models.JsonResults;...
30.376
89
0.537003
[ "Apache-2.0" ]
epam/Sitecore-Reference-Storefront-on-Habitat
src/Feature/Catalog/code/Models/JsonResults/GiftCardBaseJsonResult.cs
3,799
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...
28.482759
81
0.673123
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/EventGrid/V20200401Preview/Outputs/EventChannelSourceResponse.cs
826
C#
// Uncomment the following to provide samples for PageResult<T>. Must also add the Microsoft.AspNet.WebApi.OData // package to your project. ////#define Handle_PageResultOfT using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using ...
57.60177
149
0.666462
[ "MIT" ]
Code-Inside/Samples
2016/IdentityTest/IdentityTest.WebApp/Areas/HelpPage/App_Start/HelpPageConfig.cs
6,509
C#
// Author: Gennady Gorlachev (ggorlachev@roiss.ru) //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Globalization; using System.Windows; using System.Windows.Data; using System.Windows.Media.Imaging; namespace WL { public class ...
26.691932
103
0.468902
[ "MIT" ]
RadOncSys/WL
WL/Data.cs
12,023
C#
/* 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 https://mozilla.org/MPL/2.0/. */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using A...
25.21875
99
0.728625
[ "MPL-2.0-no-copyleft-exception", "MPL-2.0", "Apache-2.0" ]
zipperpull/cocoa
Covid19Radar/Covid19Radar.Android/MainApplication.cs
809
C#
using System.Reflection; 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("CDirectory")] [assembly: AssemblyDescripti...
37.472222
84
0.743514
[ "MIT" ]
repletsin5/xTerminal
CDirectory/Properties/AssemblyInfo.cs
1,352
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class Borders : MonoBehaviour { void OnTriggerEnter(Collider other) { //colisión de cabeza de la serpiente a una pared if (other.CompareTag("SnakeHead")){ SceneManager.LoadScene(SceneMan...
24.266667
68
0.771978
[ "MIT" ]
lytves/snake
Assets/Scripts/Borders.cs
367
C#
using System; using System.Collections.Generic; using System.Linq; using System.Numerics.Tensors; using System.Text; using NnCase.Converter.K210.Model.Layers; using NnCase.Converter.Model; using NnCase.Converter.Model.Layers; namespace NnCase.Converter.Transforms { public class K210EliminateConv2dUploadTransform ...
29.375
96
0.499468
[ "Apache-2.0" ]
svija/nncase
src/NnCase.Converter.K210/Transforms/K210EliminateConv2dUploadTransform.cs
1,882
C#
namespace HumanResources { public sealed class Person { public string Name; public string MBTI; public string Descriptor; } }
18
33
0.617284
[ "MIT" ]
Timwi/KtaneHumanResources
Assets/Person.cs
164
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: AssemblyTi...
41.594595
85
0.736842
[ "MIT" ]
CorrelatorSharp/CorrelatorSharp.ApplicationInsights
CorrelatorSharp.ApplicationInsights/Properties/AssemblyInfo.cs
1,542
C#
namespace PetStore.Models { using System; using Newtonsoft.Json; public class Order { [JsonProperty("id")] public Int64 Id { get; set; } [JsonProperty("petId")] public Int64 PetId { get; set; } [JsonProperty("quantity")] public int Quantity { get; se...
20
52
0.548333
[ "Apache-2.0" ]
bghadami/HomeChallenge
Task 3/Petstore-ApiTest/Models/Order.cs
602
C#
using System; using System.Collections.Generic; using Emeraude.Configuration.Exceptions; using Emeraude.Configuration.Options; using Emeraude.Infrastructure.Identity.ExternalProviders; using Microsoft.AspNetCore.Identity; namespace Emeraude.Infrastructure.Identity.Options; /// <summary> /// Options for identity infr...
40.37931
146
0.71392
[ "Apache-2.0" ]
emeraudeframework/emeraude
src/Emeraude.Infrastructure.Identity/Options/EmIdentityOptions.cs
3,515
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EF13 { class Program { static void Main(string[] args) { } } }
14.1875
39
0.634361
[ "MIT" ]
zmrbak/EntityFramework
配套代码/EF13/EF13/Program.cs
229
C#
using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace awesome_site { public class Program { public static void Main(string[] args) { BuildWebHost(args).Run(); } public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStar...
18.894737
57
0.662953
[ "Unlicense" ]
aa-festival/awesome-site
src/awesome-site/Program.cs
359
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization.Converters; namespace System.Text.Json.Node ...
34.850427
149
0.521153
[ "MIT" ]
Saran51/runtime
src/libraries/System.Text.Json/src/System/Text/Json/Node/JsonObject.cs
8,157
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.Collections.Generic; using System.Linq; using Cake.Common.IO.Paths; using Cake.Core; usi...
37.860427
151
0.55571
[ "MIT" ]
AsiaRudenko/cake
src/Cake.Common/IO/DirectoryAliases.cs
23,059
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.Data.Common; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Microsoft.EntityFrameworkCo...
32.596317
139
0.455264
[ "Apache-2.0" ]
belav/efcore
src/EFCore.Relational/Storage/RelationalTransaction.cs
23,013
C#
using Microsoft.Toolkit.Mvvm.Input; namespace DtKata.ViewModel; public partial class VmKata { [ICommand] private void ButtonTaster(string taster) { switch (taster) { case "S1": (_modelKata.S1, ClickModeS1) = ButtonClickMode(ClickModeS1); break; case "S2": (_modelKa...
31.290323
100
0.612371
[ "MIT" ]
AutomatisierungsLabor/PlcDigitalTwinAutoTest
PlcDigitalTwinAutoTest/DtKata/ViewModel/VmKommandos.cs
972
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; namespace DiagnosticsNet.Tests { [TestClass] public sealed class DiagnosticObserver_Tests : TestClassBase { [TestMethod] public void TestMethod() { var listener = CreateDiagnosticListener(); var ...
27.130435
78
0.566506
[ "MIT" ]
Chakrygin/DiagnosticsNet
tests/DiagnosticsNet.Tests/DiagnosticObserver_Tests.cs
1,248
C#
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace PushNotification.ApnFcmHttpV2 { /// <summary> ...
36.441818
271
0.591079
[ "MIT" ]
badpaybad/push-notification-dotnetcore-for-apn-fcm
APN_FCM_PushNotification/PushNotification.ApnFcmHttpV2/Fcm/FCMsClient.cs
20,045
C#
using System.CodeDom; using System.CodeDom.Compiler; using System.IO; using System.Text; namespace System.Web.Razor.Test { internal static class CodeCompileUnitExtensions { public static string GenerateCode<T>(this CodeCompileUnit ccu) where T : CodeDomProvider, new() { StringBuild...
28.869565
120
0.618976
[ "Apache-2.0" ]
douchedetector/mvc-razor
test/System.Web.Razor.Test/CodeCompileUnitExtensions.cs
666
C#
namespace Rollbar.DTOs { using System; using System.Collections.Generic; using System.Text; using Rollbar.Common; /// <summary> /// Class Notifier. /// Implements the <see cref="Rollbar.DTOs.ExtendableDtoBase" /> /// </summary> /// <seealso cref="Rollbar.DTOs.ExtendableDtoBase" /> ...
30.918919
88
0.543415
[ "MIT" ]
jamesthurley/Rollbar.NET
Rollbar/DTOs/Notifier.cs
3,434
C#
#region references using acDb = Autodesk.AutoCAD.DatabaseServices; using AeccShapeStyle = Autodesk.Civil.DatabaseServices.Styles.ShapeStyle; #endregion namespace Camber.Civil.Styles.Objects { public sealed class ShapeStyle : Style { #region properties internal AeccShapeStyle AeccShapeStyle => ...
31.925926
128
0.693735
[ "BSD-3-Clause" ]
mzjensen/Camber
Camber/Civil/Styles/Objects/ShapeStyle.cs
864
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace Api.NSwag { public class Program { public stat...
28.482759
88
0.627119
[ "MIT" ]
MaxymGorn/IdentityServer4-Swagger-Integration
Api.NSwag/Program.cs
826
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using act.core.data; using Amazon.Lambda; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace act.core.etl.lambda { ...
47.126761
119
0.530185
[ "MIT" ]
Saravanandss/assetcompliancetracker
src/act.core.etl.lambda/Bootstrap.cs
3,348
C#
using System; using System.Threading; using System.Threading.Tasks; namespace ComposableAsync.Concurrent.DispatcherManagers { internal sealed class SharedThreadFiberManager : IDispatcherManager { public bool DisposeDispatcher => false; private readonly IMonoThreadFiber _Fiber; public ...
26.772727
71
0.696095
[ "MIT" ]
David-Desmaisons/ComposableAsync
ComposableAsync.Concurrent/DispatcherManagers/SharedThreadFiberManager.cs
591
C#
using System; using System.Collections.Generic; using System.Linq; using AutoMapper; using Quantumart.QP8.BLL.Factories; using Quantumart.QP8.BLL.Factories.FolderFactory; using Quantumart.QP8.BLL.Repository; using Quantumart.QP8.BLL.Repository.ArticleRepositories; using Quantumart.QP8.BLL.Repository.ArticleRepositories...
49.950355
210
0.624521
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
QuantumArt/QP
bll/Services/EntityObjectService.cs
15,402
C#
/* Copyright 2016 Esri 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, ...
40.126582
320
0.675079
[ "Apache-2.0" ]
hnasr/arcgis-pro-sdk-community-samples
Geodatabase/AddDeleteFieldToFromFeatureClass/Module1.cs
3,170
C#
using System; using System.Collections.Generic; using Newtonsoft.Json; using Comformation.IntrinsicFunctions; namespace Comformation.S3.Bucket { /// <summary> /// AWS::S3::Bucket CorsRule /// https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-cors-corsrule.html /// ...
36.518519
114
0.604124
[ "MIT" ]
stanb/Comformation
src/Comformation/Generated/S3/Bucket/CorsRule.cs
2,958
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using WLW.Twitter.Bitly.Plugin.TwitterConfig; namespace WLW.Twitter.Bitly.Plugin { public partial class SettingsForm :...
32.169399
132
0.566672
[ "MIT" ]
sstjean/WLWTwitterBitlyPlugin
WLW.Twitter.Bitly.Plugin/SettingsForm.cs
5,889
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Text; namespace Microsoft.Azure.Services.AppAuthentication.Unit.Tests { /// <summary> /// Helper class to generate tokens for...
102.950617
1,794
0.818983
[ "MIT" ]
Aishwarya-C-S/azure-sdk-for-net
sdk/mgmtcommon/AppAuthentication/Azure.Services.AppAuthentication.Unit.Tests/TokenHelper.cs
16,680
C#
using System; using System.Collections.Generic; namespace Cats.Models { public partial class Delivery { public Delivery() { this.DeliveryDetails = new List<DeliveryDetail>(); } public System.Guid DeliveryID { get; set; } public string ReceivingNumber { get; ...
41.116279
102
0.628959
[ "Apache-2.0" ]
IYoni/cats
Models/Cats.Models/Delivery.cs
1,768
C#
using OrchardCore.Workflows.Display; using OrchardCore.Workflows.Activities; using OrchardCore.Workflows.Models; using OrchardCore.Workflows.ViewModels; namespace OrchardCore.Workflows.Drivers { public class IfElseTaskDisplay : ActivityDisplayDriver<IfElseTask, IfElseTaskViewModel> { protected override...
32.952381
94
0.745665
[ "BSD-3-Clause" ]
1426463237/OrchardCore
src/OrchardCore.Modules/OrchardCore.Workflows/Drivers/IfElseTaskDisplay.cs
692
C#
 namespace CI.HttpClient { public enum HttpAction { Delete, Get, Patch, Post, Put } }
11.5
26
0.449275
[ "MIT" ]
Omoikane-llc/pjExp20180722
MRTK_practice20180722/Assets/HttpClient/Enums/HttpAction.cs
140
C#
using Microsoft.AspNetCore.Hosting; using Ninject; using Ninject.Web.AspNetCore.Hosting; using Ninject.Web.Common.SelfHost; using System; using System.Linq; namespace SampleApplication_AspNetCore { public class Program { public static void Main(string[] args) { // The hosting model can be explicitly configur...
29.232877
117
0.730084
[ "MIT" ]
DominicUllmann/Ninject.Web.AspNetCore
src/SampleApplication-AspNetCore31/Program.cs
2,136
C#
#pragma warning disable CS8618 // Non-nullable field is uninitialized. Validators gurantee that. namespace Zapdate.Server.Models.Request { public class ExchangeRefreshTokenRequestDto { public string AccessToken { get; set; } public string RefreshToken { get; set; } } }
27.181818
96
0.715719
[ "MIT" ]
Anapher/Zapdate
src/Zapdate.Server/Models/Request/ExchangeRefreshTokenRequestDto.cs
299
C#
using System; namespace MRRCManagement { public class Navigation { private string currentMenu { set; get; } = "Home"; private Program program = new Program(); public void navigation(Program program) { // controls the navigation of the program and determines what men...
37.611111
93
0.229321
[ "MIT" ]
jackgl2001/Vehicle-Fleet-Management-Tool
MRRCManagement/Navigation.cs
10,834
C#
using System.Linq; using L2dotNET.model.npcs; using L2dotNET.model.player; using L2dotNET.Network.serverpackets; using L2dotNET.tables; namespace L2dotNET.Network.clientpackets { class RequestBuyItem : PacketBase { private readonly GameClient _client; private readonly int _listId; priv...
26.285714
63
0.566304
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
SamerMoustafa/L2Ninja
src/L2dotNET/Network/clientpackets/RequestBuyItem.cs
922
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; using OpenCvSharp.Util; // ReSharper disable UnusedMember.Global namespace OpenCvSharp { /// <summary> /// XML/YAML File Storage Class. /// </summary> public class FileStorage : DisposableCvObject { ...
30.592625
105
0.479638
[ "MIT" ]
nrandell/openvinoopencvsharp
OpenVinoOpenCvSharp/Modules/core/FileStorage.cs
34,973
C#
int arrayMaximalAdjacentDifference(int[] inputArray) { int max = 0; for(int i = 0; i < inputArray.Length - 1; i++){ int higherNo = Math.Max(inputArray[i], inputArray[i+1]); int lowerNo = Math.Min(inputArray[i], inputArray[i+1]); if(higherNo - lowerNo > max) max = higherNo -...
27.615385
64
0.579387
[ "Unlicense" ]
DKLynch/CodeSignal-Tasks
Intro/5. Island Of Knowledge/20. Array Maximal Adjacent Differences/arrayMaximalAdjacentDifference.cs
359
C#
// ----------------------------------------------------------------------- // <copyright file="AboutControlViewModel.cs" company=""> // // The MIT License (MIT) // // Copyright (c) 2014 Christoph Gattnar // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
41.428571
118
0.693103
[ "MIT" ]
bzquan/GherkinEditor
GherkinEditor/GherkinEditor/ViewModel/AboutSample.cs
2,032
C#
namespace SampleFix { using System; using System.ComponentModel; using System.Windows.Media; using StockSharp.Algo; using StockSharp.Algo.Candles; using StockSharp.Fix; using StockSharp.Messages; using StockSharp.Xaml.Charting; partial class ChartWindow { private readonly FixTrader _trader; private rea...
25.520548
103
0.742888
[ "Apache-2.0" ]
1M15M3/StockSharp
Samples/Fix/SampleFix/ChartWindow.xaml.cs
1,865
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable enable using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace Microsoft.Extensions.Internal; internal ...
21.77707
106
0.585551
[ "MIT" ]
Akarachudra/kontur-aspnetcore-fork
src/Shared/CopyOnWriteDictionary/CopyOnWriteDictionary.cs
3,419
C#
// Uncomment the following to provide samples for PageResult<T>. Must also add the Microsoft.AspNet.WebApi.OData // package to your project. ////#define Handle_PageResultOfT using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using ...
57.513274
149
0.665949
[ "MIT" ]
dingyuliang/jenkins-examples
src/DotNet/DotNet.Jenkins/Areas/HelpPage/App_Start/HelpPageConfig.cs
6,499
C#