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.Text.RegularExpressions; using System.Configuration; using EnvDTE; namespace Sql2Poco { /// <summary> /// Provides strongly typed access to the hosting EnvDTE.Project and app.config/web.config /// configuration file, if present. /// /// Typical usage from T4 template: ...
46.532338
298
0.613814
[ "MIT" ]
charlieknoll/sql2poco
Sql2Poco/ConfigurationAccessor.cs
9,355
C#
namespace ImageToIcon { using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Windows.Forms; using Properties; using SilDev; using SilDev.Drawing; using SilDev.Forms; public p...
40.219697
135
0.549444
[ "MIT" ]
ali50m/ImageToIcon
src/MainForm.cs
5,311
C#
using Blazored.LocalStorage; using BlazorHero.CleanArchitecture.Application.Requests.Identity; using BlazorHero.CleanArchitecture.Application.Responses.Identity; using BlazorHero.CleanArchitecture.Client.Infrastructure.Authentication; using BlazorHero.CleanArchitecture.Client.Infrastructure.Extensions; using BlazorHer...
45.739837
164
0.683434
[ "MIT" ]
Aryajasdev/PNC_Blazor
src/Client.Infrastructure/Managers/Identity/Authentication/AuthenticationManager.cs
5,628
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace ServerResourcesDataAccess.Migrations { public partial class removed_test_table : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Test_Entity"); ...
30.566667
71
0.527808
[ "MIT" ]
guidou44/ServerResourceMonitoring
ServerResourcesDataAccess/Migrations/20191123171659_removed_test_table.cs
919
C#
using System; using System.Threading; using RabbitMQ.Client; namespace MessageBus.Binding.RabbitMQ.Clent.Extensions { public class NoAckMessageReceiver : IMessageReceiver { private readonly IModel _model; private readonly string _queue; private const int MinimalThreadSleepTickTime = 1...
23.355932
70
0.546444
[ "Apache-2.0" ]
parshim/MessageBus
Sources/Binding/RabbitMQ/Clent.Extensions/NoAckMessageReceiver.cs
1,380
C#
using UnityEngine; public abstract class SimpleMenuScaleInOut<T> : Menu<T> where T : SimpleMenuScaleInOut<T> { readonly Vector3 START_SCALE = Vector3.one * .25f; private bool animatingIn = false; private float currentAnimInTime = 0; private bool animatingOut = false; private float currentAnimOutT...
24.228916
133
0.598707
[ "Apache-2.0" ]
tellemstevedave/UnityMenuSystem
Assets/Scripts/MenuSystem/SimpleMenuScaleInOut.cs
2,013
C#
using System; using System.Collections; using System.Collections.Generic; using System.Reflection; using System.Linq; using NHibernate; using ORM.Initiator.Classes; using ORM.Initiator.Classes.Elements; using ORM.Initiator.Helpers; namespace ORM.Initiator.EntityConstructors { public class HibernateEntityConstruct...
44.527197
156
0.514753
[ "Apache-2.0" ]
nickun/orm_initiator
ORM.Initiator/EntityConstructors/HibernateEntityConstructor.cs
10,644
C#
namespace Assignment2.game.winStrategy { public interface IWinStrategy { bool HasWinner(); string GetWinner(); } }
16
39
0.625
[ "MIT" ]
henrybeen/-GEP-OOP-Assignment2-Example-
Assignment2/game/winStrategy/IWinStrategy.cs
146
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.653846
81
0.708725
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/RecoveryServices/Latest/Inputs/InstantRPAdditionalDetailsArgs.cs
745
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace AlibabaCloud.SDK.ROS.CDK.Cxapi { /// <summary>Can be used to build a cloud assembly.</summary> [JsiiClass(nativeType: typeof(AlibabaCloud.SDK.ROS.CDK.Cxapi.CloudAssemblyBuilder), fullyQualifiedName: "@alicloud/ros-cdk-cxa...
69.857143
341
0.677914
[ "Apache-2.0" ]
aliyun/Resource-Orchestration-Service-Cloud-Development-K
multiple-languages/dotnet/AlibabaCloud.SDK.ROS.CDK.Cxapi/AlibabaCloud/SDK/ROS/CDK/Cxapi/CloudAssemblyBuilder.cs
4,890
C#
// Copyright (c) Microsoft Corporation. All rights reserved using Microsoft.WindowsAzure.MobileServices; using System; using System.Runtime.Serialization; namespace Doto.Model { /// <summary> /// Represents a Todo (or Doto) item stored in Windows Azure Mobile Service /// </summary> [DataContract(Name...
25.833333
79
0.610323
[ "MIT" ]
Ranin26/msdn-code-gallery-microsoft
Official Windows Platform Sample/Windows 8.1 Store app samples/99866-Windows 8.1 Store app samples/Doto Windows Azure Mobile Services sample/C#/Model/Item.cs
777
C#
using System; using System.Net.Http; using System.IO; using System.Collections; using System.Collections.Generic; namespace PayPalHttp { public class MultipartSerializer : ISerializer { public string GetContentTypeRegexPattern() { return "^multipart/.*$"; } public object Decod...
41.710526
150
0.530284
[ "Apache-2.0" ]
MAKS-IT-COM/Checkout-NET-SDK
PayPalHttp/MultipartSerializer.cs
3,172
C#
namespace PasswordlessAuthentication { public abstract class PasswordlessAuthenticationDomainTestBase : PasswordlessAuthenticationTestBase<PasswordlessAuthenticationDomainTestModule> { } }
26.375
149
0.805687
[ "MIT" ]
271943794/abp-samples
PasswordlessAuthentication/test/PasswordlessAuthentication.Domain.Tests/PasswordlessAuthenticationDomainTestBase.cs
213
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace BagOfHolding { public partial class SpellBox : UserControl { Spell spell; ...
27.458015
78
0.572143
[ "Apache-2.0" ]
Kronschnabel/BagOfHolding
BagOfHolding/Controls/Boxes/SpellBox.cs
3,599
C#
using System; using System.Threading; using System.Threading.Tasks; namespace Nest { public static partial class ElasticClientExtensions { [Obsolete("Moved to client.Security.DeleteRoleMapping(), please update this usage.")] public static DeleteRoleMappingResponse DeleteRoleMapping(this IElasticClient client, N...
44
133
0.804408
[ "Apache-2.0" ]
EamonHetherton/elasticsearch-net
src/Nest.7xUpgradeAssistant/ElasticClient-DeleteRoleMapping.cs
1,454
C#
using System.Collections.Generic; using System.Data.Entity; namespace Suppliers.DataAccess { public class SuppliersInitializer : DropCreateDatabaseIfModelChanges<SuppliersContext> { protected override void Seed(SuppliersContext context) { var supplierGroups = new List<SqlS...
53.529412
183
0.629121
[ "MIT" ]
drmacm/suppliers
Suppliers.DataAccess/EntityFramework/SuppliersInitializer.cs
1,833
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Makaretu.Bridge { public enum Risk : byte { None = 0, Doubled, Redoubled } /// <summary> /// The statement of the pair who has won the bidding, that they will take at least the given number o...
30.109091
117
0.54529
[ "MIT" ]
richardschneider/bridge-net
Core/Contract.cs
1,658
C#
#region License Header /* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
41.244681
167
0.627031
[ "Apache-2.0" ]
Quantler/Core
Quantler.Indicators/CandlestickPatterns/EveningDojiStar.cs
7,756
C#
using Microsoft.EntityFrameworkCore.Migrations; using System; using System.Collections.Generic; namespace EntityModeler.Migrations { public partial class Upgraded_To_Abp_v3_6_1 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColum...
32.228571
71
0.510638
[ "MIT" ]
Ppiwow/EntityModeler
aspnet-core/src/EntityModeler.EntityFrameworkCore/Migrations/20180509121141_Upgraded_To_Abp_v3_6_1.cs
2,258
C#
using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Web.Mvc; using System.Web.Routing; using Orchard.ContentManagement; using Orchard.Core.Settings.Models; using Orchard.DisplayManagement; using Orchard.Localization; using Orchard.Mvc; using Orchard.Security; using Or...
42.664804
193
0.581904
[ "BSD-3-Clause" ]
IndivisibleTacoma/website
src/Orchard.Web/Modules/Orchard.Users/Controllers/AdminController.cs
15,274
C#
// Copyright 2018 by JCoder58. See License.txt for license // Auto-generated --- Do not modify. using System; using System.Collections.Generic; using System.Runtime.InteropServices; using UE4.Core; using UE4.CoreUObject; using UE4.CoreUObject.Native; using UE4.InputCore; using UE4.Native; #pragma warning disable CS01...
44.117647
147
0.744667
[ "MIT" ]
UE4DotNet/Plugin
DotNet/DotNet/UE4/Generated/PolygonModeling/QuadrangulateMeshCommand.cs
1,500
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Composition; using System.Linq; using System.Waf.Applications; using System.Waf.Presentation.Controls; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Input; usi...
42.742105
167
0.647334
[ "MIT" ]
Bhaskers-Blu-Org2/AppConsult-WinAppsModernizationWorkshop
Samples-NetCore/MusicManager/MusicManager.Presentation/Views/ManagerView.xaml.cs
8,123
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
29.744681
134
0.695279
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-live/Live/Model/V20161101/DescribeLiveDomainFrameRateAndBitRateDataRequest.cs
2,796
C#
using System; using System.Threading.Tasks; namespace Supermarket.API.Domain.Repositories { public interface IUnitOfWork { Task CompleteAsync(); } }
16.363636
46
0.666667
[ "MIT" ]
zgo23/learn-programming
backend/Supermarket.API/Domain/Repositories/IUnitOfWork.cs
180
C#
using GitHub.Extensions; using GitHub.Primitives; using System; namespace GitHub.VisualStudio.Menus { public class LinkMenuBase: MenuBase { public LinkMenuBase(IServiceProvider serviceProvider) : base(serviceProvider) { } protected UriString GenerateLink() ...
26.916667
107
0.642415
[ "MIT" ]
SPikeVanz/VisualStudio
src/GitHub.VisualStudio/Menus/LinkMenuBase.cs
648
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
190.563636
8,493
0.782464
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-core.Tests/Units/Reader/XmlReader.cs
10,483
C#
using System.Threading.Tasks; namespace stratfaucet.Lib { public interface IWalletUtils { Task<Balance> GetBalance(); Task<Transaction> SendCoin(Recipient recipient); bool newRecipient(Recipient recipient); } }
19.153846
56
0.686747
[ "MIT" ]
MithrilMan/BlockExplorer
Faucet/Lib/IWalletUtils.cs
249
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.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Azure.Core.Testing; using NUnit.Framework; namesp...
32.992519
123
0.598413
[ "MIT" ]
mllab-nl/azure-sdk-for-net
sdk/keyvault/Azure.Security.KeyVault.Keys/tests/KeyClientLiveTests.cs
13,232
C#
namespace FunEngGames { partial class Home { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param n...
53.128049
157
0.623551
[ "MIT" ]
Padigapati/My-stuff
FunEngGames/1_Home.Designer.cs
8,717
C#
using System.Web; using System.Web.Optimization; namespace MyInfoIntegration { public class BundleConfig { // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(ne...
38.774194
113
0.584859
[ "MIT" ]
techyao/MyInfoIntegration
MyInfoIntegration/App_Start/BundleConfig.cs
1,204
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/mfreadwrite.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Run...
49.083333
234
0.701613
[ "MIT" ]
john-h-k/terrafx.interop.windows
sources/Interop/Windows/um/mfreadwrite/IMFSinkWriterEncoderConfig.cs
2,358
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace CurrencyFetcher.Core.Migrations { public partial class identity_tables : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "AspNetRo...
44.613333
372
0.504682
[ "Apache-2.0" ]
kmaraszkiewicz86/currency_fetcher
webAPI/CurrencyFetcherApi/CurrencyFetcher.Core/Migrations/20200504140519_identity_tables.cs
10,040
C#
using TMPro; using UnityEngine; public class ItemInfoPopup : MonoBehaviour, ISubscriber { public TextMeshProUGUI Name; public TextMeshProUGUI Description; public TextMeshProUGUI Modifiers; public TextMeshProUGUI Rarity; public void Start() { EventMediator.Instance.SubscribeToEvent(Glo...
25.74026
162
0.602926
[ "Apache-2.0" ]
SchwiftyPython/PizzalikeRL
Assets/Resources/Scripts/UI/ItemInfoPopup.cs
1,984
C#
using System; using BinarySerializer; namespace R1Engine.Jade { public class TEXPRO_Photo : BinarySerializable { public uint FileSize { get; set; } // Set in onPreSerialize public uint UInt_00_Editor { get; set; } public byte Unknown { get; set; } public override void SerializeIm...
35.35
123
0.640736
[ "MIT" ]
Adsolution/Ray1Map
Assets/Scripts/DataTypes/Jade/TEX/TEXPRO/TEXPRO_Photo.cs
709
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
31.7875
106
0.624066
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/Redshift/Generated/Model/DeleteTagsRequest.cs
2,543
C#
namespace Bhbk.Lib.DataAccess.EF.Tests.Models { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; public partial class Users { [System.Diagnostics.CodeAna...
28.4
128
0.635368
[ "Apache-2.0" ]
bhbk/3as8kpsf
Arch(.NetFramework)/Bhbk.Lib.DataAccess.EF.Tests/Models/Users.cs
1,278
C#
namespace Telstra.Twins.Semantics { public static class PressureUnit { public const string Pascal = "pascal"; public const string Kilopascal = "kilopascal"; public const string Bar = "bar"; public const string Millibar = "millibar"; public const string MillimetresOfMercu...
39.5
74
0.688969
[ "Apache-2.0" ]
PTW-Freiburg/DigitalTwins-CodeFirst-dotnet
Telstra.Twins/Semantics/PressureUnit.cs
555
C#
namespace CommandService.Dtos { public class CommandCreateDto { public string HowTo { get; set; } public string CommandLine { get; set; } } }
19
47
0.619883
[ "MIT" ]
6895mahfuzgit/MicroservicesGrpcApp
CommandService/Dtos/CommandCreateDto.cs
173
C#
namespace Validot.Tests.Unit.Specification { using System; using FluentAssertions; using Validot.Specification; using Validot.Specification.Commands; using Xunit; public class WithExtraMessageExtensionTests { [Fact] public void Should_ForbiddenWithExtraMessage_Add...
36.592593
151
0.564777
[ "MIT" ]
JeremySkinner/Validot
tests/Validot.Tests.Unit/Specification/WithExtraMessageExtensionTests.cs
2,964
C#
using System; using System.Collections.Generic; namespace FlatFiles { /// <summary> /// Represents a class that can dynamically provide the schema based on the shape of a read record. /// </summary> public sealed class FixedLengthSchemaSelector { private readonly List<SchemaMatcher> matche...
35.131783
121
0.571933
[ "Unlicense" ]
Hoflnauix/FlatFiles
FlatFiles/FixedLengthSchemaSelector.cs
4,534
C#
using System; using System.Globalization; using System.Text; using Mariana.AVM2.Core; using Mariana.CodeGen; namespace Mariana.AVM2.Compiler { /// <summary> /// Generates mangled names for dynamic types and members emitted by the compiler. /// </summary> internal class NameMangler { private c...
43.024896
118
0.558877
[ "MIT" ]
jfd16/Mariana
Mariana.AVM2/src/Compiler/NameMangler.cs
10,369
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using ILRuntime.CLR.TypeSystem; using ILRuntime.CLR.Method; using ILRuntime.Runtime.Enviorment; using ILRuntime.Runtime.Intepreter; using ILRuntime.Runtime.Stack; using ILRuntime.Reflection...
33.981132
185
0.705719
[ "MIT" ]
306739889/guessGame
Unity/Assets/Mono/ILRuntime/Generate/ET_NetworkHelper_Binding.cs
1,801
C#
// /* // See https://github.com/Microsoft/CardinalityEstimation. // The MIT License (MIT) // // Copyright (c) 2015 Microsoft // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // ...
46.948718
127
0.687056
[ "MIT" ]
Microsoft/CardinalityEstimation
CardinalityEstimation/Hash/HashFunctionId.cs
1,833
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace AdaptiveXamarinFormsDemo { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class GridContentViewPage : ContentPage { publi...
19.2
55
0.786458
[ "MIT" ]
duanenewman/AdaptiveXamarinForms
AdaptiveXamarinFormsDemo/AdaptiveXamarinFormsDemo/GridContentViewPage.xaml.cs
386
C#
using System.Threading.Tasks; using Esfa.Recruit.Employer.Web.Configuration.Routing; using Esfa.Recruit.Employer.Web.Extensions; using Esfa.Recruit.Employer.Web.Orchestrators.Part1; using Esfa.Recruit.Employer.Web.RouteModel; using Esfa.Recruit.Employer.Web.ViewModels.Part1.Location; using Esfa.Recruit.Shared.Web.Exten...
43.391304
122
0.652555
[ "MIT" ]
SkillsFundingAgency/das-recru
src/Employer/Employer.Web/Controllers/Part1/LocationController.cs
3,992
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...
39.216216
85
0.729841
[ "MIT" ]
honzajscz/visual_profiler
Source/VisualProfilerUITests/Properties/AssemblyInfo.cs
1,454
C#
using System; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Hosting; using R5T.Plymouth.ProgramAsAService; namespace R5T.Plymouth.Construction { public class ProgramAsAService : ProgramAsAServiceBase { #region Static public static Task SubMain() {...
23.553191
82
0.615176
[ "MIT" ]
SafetyCone/R5T.Plymouth
source/R5T.Plymouth.Construction/Code/ProgramAsAService.cs
1,109
C#
using System; using System.Threading.Tasks; namespace TinaX.Services { public interface IAssetService : IBuiltInService { #region VFS IO T Load<T>(string assetPath) where T : UnityEngine.Object; UnityEngine.Object Load(string assetPath, Type type); Task<T> LoadAsync<T>(stri...
23.608696
101
0.685083
[ "MIT" ]
binesiyu/TinaX.Core
Runtime/Scripts/Services/BuiltIn/IAssetService.cs
545
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> //---...
28.35
80
0.623457
[ "MIT" ]
scantegra/scantegra
src/Scantegra.Core/Entities/OptionSets/Campaign_StatusCode.cs
1,134
C#
// ------------------------------------------------------------------------------ // <copyright file="OriginFrameType.cs" company="Drake53"> // Licensed under the MIT license. // See the LICENSE file in the project root for more information. // </copyright> // ----------------------------------------------------------...
29.277778
140
0.518501
[ "MIT" ]
Bia10/War3Net
src/War3Net.Runtime.Core/Enums/OriginFrameType.cs
2,110
C#
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Linq.Expressions; using System.Reflection; using SQLite.Net.Attributes; using SQLite.Net.Expressions; using SQLite.Net.Helpers; namespace SQLite.Net.Translation { internal class QueryBi...
34.045556
158
0.71871
[ "MIT" ]
Dominaezzz/sqlite-helper
SQLite.Net/Translation/QueryBinder.cs
30,647
C#
using AddIn.Audio; using Communication; using PlayProjectGame.Data; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Linq; using System.Threading; using System.Windows; namespace PlayProjectGame.PlayList { delegate void PlayingChanged(SongInfoExpe...
37.800712
160
0.541047
[ "MIT" ]
windafar/OSU-NetcloudMusic-player
PlayProjectGame/PlayList/PlayListBaes.cs
11,188
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace KilyCore.WEB.Areas.WebMerchantManage.Controllers { [Area("WebMerchantManage")] public class RepastBasicController : Controller { #region 商家资料 public IA...
22.652893
58
0.497993
[ "Apache-2.0" ]
EmilyEdna/KilyCore
KilyCore.WEB/Areas/WebMerchantManage/Controllers/RepastBasicController.cs
2,823
C#
namespace KnightBus.Redis { public static class RedisHashKeys { public const string DeliveryCount = "dcount"; public const string Errors = "errors"; } }
22.625
53
0.651934
[ "MIT" ]
BookBeat/knightbus
knightbus-redis/src/KnightBus.Redis/RedisHashKeys.cs
183
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace R5T.Goteborg.Default.Testing { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { } } }
17.071429
52
0.585774
[ "MIT" ]
MinexAutomation/R5T.Goteborg.Default
source/R5T.Goteborg.Default.Testing/UnitTest1.cs
239
C#
/* * The MIT License (MIT) * * Copyright (c) 2013 Alistair Leslie-Hughes * * 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 ...
30.411765
83
0.722115
[ "MIT" ]
alesliehughes/monoDX
Microsoft.DirectX.Direct3DX/Microsoft.DirectX.Direct3D/CharacterSet.cs
1,551
C#
using CoreZipCode.Interfaces; using System; using System.Net.Http; namespace CoreZipCode.Services { [Obsolete("This class was deprecated since version 1.1.0 and will be removed in next version, please use Services.ViaCepApi.ViaCep", false)] public class ViaCep : ZipCodeBaseService { public ViaCep()...
31.846154
150
0.611111
[ "MIT" ]
danilolutz/CoreCEP
CoreZipCode/Services/ViaCep.cs
828
C#
/*The MIT License (MIT) Copyright (c) 2014 PMU Staff 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, pub...
47.073529
384
0.606998
[ "MIT" ]
PMUniverse/PMU-Client
Client/Graphics/Renderers/Players/PlayerRenderer.cs
9,605
C#
using OpenQA.Selenium; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace eShopOnWeb.UITests.PagesModels { public class BasketPage { private IWebDriver _driver; public BasketPage(IWebDriver driver) => _driver = driver; public IWebElement Qu...
30.451613
116
0.674788
[ "MIT" ]
Rumcajsbury/TestApp
eShopOnWeb.UITests/PagesModels/BasketPage.cs
946
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HRBEU_HIUnattendedReport { class URBaseException : Exception { public URBaseException(string msg) : base(msg) { } public URBaseException(string msg, string pos) : base...
19.888889
88
0.692737
[ "MIT" ]
Skeleton321/HRBEU_HIUnattendedReport
Exceptions.cs
366
C#
using System.ComponentModel.DataAnnotations; namespace Microsoft.eShopWeb.Web.ViewModels.Account { public class ResetPasswordViewModel { [Required] [EmailAddress] public string Email { get; set; } [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {...
31.125
125
0.639893
[ "MIT" ]
1010699607/eShopOnWeb
src/Web/ViewModels/Account/ResetPasswordViewModel.cs
749
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.AspNetCore.Http; using Microsoft.Azure.WebJobs.Host; using System; using System.Collections.Generic; namespace Serverless { public static class MessagesApi { // Yes,...
33.340909
98
0.593729
[ "MIT" ]
thinktecture/yad-msp-2018-serverless-wasm
chat-sample/functions/MessagesApi.cs
1,467
C#
namespace WebPlex.Web.Security { using System; using System.Security.Principal; public sealed class FakePrincipal : IPrincipal { public FakePrincipal() { Identity = new FakeIdentity(); } public bool IsInRole(string role) { throw new NotSupportedException(); } public IIdentity Identity { get; priv...
20.9375
49
0.719403
[ "MIT" ]
m-sadegh-sh/WebPlex
src/WebPlex.Web/Security/FakePrincipal.cs
337
C#
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/ // Portions Copyright 2000-2004 Jonathan De Halleux, Jamie Cansdale // // 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 // // ...
40.842498
164
0.613043
[ "ECL-2.0", "Apache-2.0" ]
citizenmatt/gallio
src/Extensions/VisualStudio/Gallio.VisualStudio.Shell/Reflection/CodeModelReflectionPolicy.cs
43,824
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; usi...
47.777778
156
0.742442
[ "MIT" ]
JoeRobich/roslyn-analyzers
src/NetAnalyzers/CSharp/Microsoft.NetCore.Analyzers/Runtime/CSharpPreferAsSpanOverSubstring.Fixer.cs
1,722
C#
// // System.Diagnostics.DiagnosticsConfigurationHandler.cs // // Comments from John R. Hicks <angryjohn69@nc.rr.com> original implementation // can be found at: /mcs/docs/apidocs/xml/en/System.Diagnostics // // Authors: // John R. Hicks <angryjohn69@nc.rr.com> // Jonathan Pryor <jonpryor@vt.edu> // // (C) 2002, 2005...
30.243816
132
0.675663
[ "Apache-2.0" ]
121468615/mono
mcs/class/System/System.Diagnostics/DiagnosticsConfigurationHandler.cs
17,118
C#
// MIT License // // Copyright (c) Microsoft Corporation. All rights reserved. // // 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 r...
36.803922
110
0.63479
[ "MIT" ]
Bhaskers-Blu-Org2/InsiderDevTour18-Labs
pwa/source code final/src/1. WebApp/Microsoft.Knowzy.WebApp/Startup.cs
3,754
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 // 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 // 이러한 특성 값을 변경하세요. [assembly: AssemblyTitle("CmlLibSample")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assemb...
29.594595
57
0.676712
[ "MIT" ]
AlphaBs/MinecraftLauncherLibrary
CmlLibSample/Properties/AssemblyInfo.cs
1,536
C#
using leetcodesln; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace leetcodesln_test { [TestClass] public class UniqueEmailAddressesUnitTest { [TestMethod] public void UniqueEmailAddressesTestMethod() { var uniqueEmailAddresses = new UniqueEmailAddresses(); ...
33.157895
140
0.666667
[ "MIT" ]
matwming/TrialOfTheGrasses
CSharp/leetcodesln_test/UniqueEmailAddressesUnitTest.cs
630
C#
/// @file TestInitialAssignment_newSetters.cs /// @brief InitialAssignment unit tests for new set function API /// @author Frank Bergmann (Csharp conversion) /// @author Akiya Jouraku (Csharp conversion) /// @author Sarah Keating /// /// ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WA...
25.428571
82
0.564503
[ "Apache-2.0" ]
0u812/roadrunner
third_party/libSBML-5.10.0-Source/src/bindings/csharp/test/sbml/TestInitialAssignment_newSetters.cs
4,806
C#
using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.EntityFrameworkCore; using Zrozumcsharp.Data; using Zrozumcsharp.Models; namespace Zrozumcsharp.Pages.Courses { public class IndexModel : PageModel { private readonly Zrozumcsharp...
23.074074
57
0.674157
[ "MIT" ]
gjuszczak/zrozumcsharp
Zrozumcsharp/Zrozumcsharp/Pages/Courses/Index.cshtml.cs
625
C#
using System.Web.Mvc; namespace Numbers.Controllers { public class HomeController : Controller { public ActionResult Index() { return View(); } } }
16.416667
44
0.568528
[ "MIT" ]
lyubohd/Software-Technologies
15. ASP.NET - Lab/Numbers/Numbers/Controllers/HomeController.cs
199
C#
using System; using System.ComponentModel; using System.Diagnostics; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Threading.Tasks; using SharpBrick.PoweredUp.Protocol; using SharpBrick.PoweredUp.Protocol.Knowledge; using SharpBrick.PoweredUp.Protocol.Messages; namespace SharpBrick.Powere...
37.711538
154
0.619752
[ "MIT" ]
dkurok/powered-up
src/SharpBrick.PoweredUp/Devices/Mode.cs
5,883
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ApiExplorer; namespace SimpleCalculator { public static class CalculatorConventions { [ApiConventionNameMatch(ApiConventionNameMatchBehavior.Prefix)] [ProducesDefaultResponseType(typeof(string))] [ProducesResponseType(200)]...
26.142857
71
0.729508
[ "MIT" ]
joergjo/azure-apim-samples
dotnet/SimpleCalculator/SimpleCalculator/CalculatorConventions.cs
368
C#
//----------------------------------------------------------------------- // <copyright file="HelpParagraphBuilder.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // <summary> // Implements HelpParagraphBuilder. // </summary> //--------------------------------...
39.666667
168
0.539506
[ "Apache-2.0", "MIT" ]
HydAu/PowerShell
src/Microsoft.PowerShell.GraphicalHost/HelpWindow/HelpParagraphBuilder.cs
39,034
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...
34.663462
141
0.626352
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/GameLift/Generated/Model/Internal/MarshallTransformations/DescribeAliasRequestMarshaller.cs
3,605
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web.Security; namespace KeyHub.Model { /// <summary> /// Defines the user for this application /// </summary> pub...
31.050633
149
0.484713
[ "Apache-2.0" ]
imazen/keyhub
src/KeyHub.Model/Logic/Application/User.cs
2,455
C#
using Common.Schema; using Player.Strategy; namespace Player.Net { public interface IMessageHandler { void HandleMessage(RegisteredGames message); void HandleMessage(ConfirmJoiningGame message); void HandleMessage(RejectJoiningGame message); void HandleMessage(Common.Schema.Gam...
32
61
0.730263
[ "BSD-3-Clause" ]
jasinskib/Software_Engineering_2_ProjectGame
src/Player/Net/IMessageHandler.cs
610
C#
using Prism.Mvvm; using Prism.Navigation; namespace Teams.ViewModels { public class BaseViewModel : BindableBase, INavigationAware { public readonly INavigationService NavigationService; public BaseViewModel() { } public BaseViewModel(INavigationService navigationSer...
20.697674
77
0.598876
[ "MIT" ]
jbtamaresgit/DPC_RE-Design
dpc_app/Teams/ViewModels/BaseViewModel.cs
892
C#
using System.Diagnostics.Contracts; using System.Reactive; using System.Reactive.Threading.Tasks; namespace System.Net.Sockets { /// <summary> /// Provides <see langword="static"/> methods for asynchronously connecting a <see cref="TcpClient"/> object to a remote host. /// </summary> public static partial cla...
46.09375
128
0.687119
[ "MIT" ]
slorion/multiagent-system-example
DLC.Multiagent/Rxx/System/Net/Sockets/TcpClientExtensions.cs
2,952
C#
using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace Eleven { public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBuilder(string[] args) => ...
22.777778
76
0.621951
[ "MIT" ]
PowerDG/Dg.KMS.Web
Dg.KMS/InitModule/Eleven/Program.cs
412
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="LoggerExtensions.Auto.cs" company="nGratis"> // The MIT License (MIT) // // Copyright (c) 2014 - 2021 Cahya Ong // // Permission is hereby granted, free of charge, to any perso...
33
120
0.541977
[ "MIT" ]
cahyaong/cop.olympus
Source/Olympus.Framework/Logging/LoggerExtensions.Auto.cs
8,054
C#
// Copyright(c) Microsoft Corporation. // All rights reserved. // // Licensed under the MIT license. See LICENSE file in the solution root folder for full license information. namespace Infrastructure.Identity.Proxy { public class DownstreamServiceProxyOptions { public string BaseUrl { get; set; } ...
26.5
109
0.706199
[ "MIT" ]
kulado/ProposalManager
Infrastructure/Identity/Proxy/DownstreamServiceProxyOptions.cs
373
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.Diagnostics.Tracing; using System.Linq; using Microsoft...
73.925926
188
0.655311
[ "MIT" ]
davidwrighton/diagnostics
src/Tools/dotnet-counters/KnownData.cs
3,992
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 enable using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSha...
37.56636
223
0.591892
[ "MIT" ]
bilsaboob/roslyn
src/Compilers/CSharp/Test/Symbol/Symbols/Source/RecordTests.cs
57,178
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace Markdown.Avalonia.Utils { static class TextUtil { /// <summary> /// Count the number of leading whilte-spaces. /// tab is treated as 4-spaces. /...
33.188235
101
0.409075
[ "MIT" ]
Al-Dyachkov/Markdown.Avalonia
Markdown.Avalonia/Utils/TextUtil.cs
5,644
C#
// -------------------------------------------------- // <copyright file="Command.cs" company="GMS"> // Copyright (c) GMS. All rights reserved. // </copyright> // -------------------------------------------------- namespace DotNet.Framework.Constants { /// <summary> /// Provides constants for CLI commands. ...
24.9
54
0.451807
[ "MIT" ]
GelmoScript/dotnet-client
DotNet.Framework/Constants/Command.cs
500
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 Newtonsoft.Json; namespace Dnn.PersonaBar.SiteSettings.Services.Dto { [JsonObject] public class L...
28.058824
72
0.685535
[ "MIT" ]
MaiklT/Dnn.Platform
Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Services/DTO/SiteSettings/LanguageTabDto.cs
479
C#
using System; namespace ShopSharp.Domain.Models { public class StockOnHold { public int Id { get; set; } public string SessionId { get; set; } public int StockId { get; set; } public Stock Stock { get; set; } public int Quantity { get; set; } public DateTime ...
20.705882
48
0.579545
[ "MIT" ]
joffarex/ShopSharp
ShopSharp.Domain/Models/StockOnHold.cs
354
C#
using System; using Csla; namespace SelfLoadSoftDelete.Business.ERLevel { public partial class G11_City_Child { #region OnDeserialized actions /*/// <summary> /// This method is called on a newly deserialized object /// after deserialization is complete. /...
26.975
102
0.559314
[ "MIT" ]
CslaGenFork/CslaGenFork
trunk/Samples/DeepLoad/SelfLoadSoftDelete.Business/ERLevel/G11_City_Child.cs
2,158
C#
using _Scripts.Color; using Photon.Pun; using Photon.Realtime; using UnityEngine; using UnityEngine.UI; namespace _Scripts.UI { class LobbyCallbacks : MonoBehaviourPunCallbacks { [SerializeField] private LobbyChat _chat; [SerializeField] private PreviewPeons _previewPeons; [SerializeFi...
38.785714
157
0.624309
[ "MIT" ]
ofeerist/PeonRogue-2
peon/Assets/_Scripts/UI/LobbyCallbacks.cs
4,346
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; // For more information on enabling Web API for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 namespace PTICloudTestWeb.Controllers.APIControllers { public class ...
53.845528
168
0.68851
[ "MIT" ]
efonsecab/PTICloud
PTICloudSln/src/PTICloudTestWeb/Controllers/APIControllers/AzureVMsController.cs
6,625
C#
using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace SmallOauth1 { public interface ISmallOauth { Task<AccessTokenInfo> GetAccessTokenAsync(string requestToken, string requestTokenSecret, string verifier); AuthenticationHeaderValue GetAuthorizationHeader(string acc...
38.5
132
0.826299
[ "MIT" ]
jekstrom/SmallOauth1
SmallOauth1/ISmallOauth.cs
618
C#
using System; using System.Collections.Generic; using Top.Api.Response; using Top.Api.Util; namespace Top.Api.Request { /// <summary> /// TOP API: taobao.wlb.replenish.statistics /// </summary> public class WlbReplenishStatisticsRequest : ITopRequest<WlbReplenishStatisticsResponse> { /// <s...
26.578947
92
0.550495
[ "MIT" ]
objectyan/MyTools
OY.Solution/OY.TopSdk/Request/WlbReplenishStatisticsRequest.cs
2,102
C#
#pragma warning disable 1591 //------------------------------------------------------------------------------ // <auto-generated> // O código foi gerado por uma ferramenta. // Versão de Tempo de Execução:4.0.30319.42000 // // As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas s...
61.929654
1,359
0.813294
[ "MIT" ]
Ramon91rm/xamarin-forms-workshop
app/XFormsWorkshop/XFormsWorkshop.Android/Resources/Resource.designer.cs
768,556
C#
using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata; namespace _04DataFirstCore.Models { public partial class CodeFirstDBContext : DbContext { public CodeFirstDBContext() { } public CodeFirstDBContext(DbContextOptions<CodeFirstDBCont...
32.604651
213
0.626248
[ "Unlicense" ]
rusky65/HowToCSharp
11Day/04DataFirstCore/Models/CodeFirstDBContext.cs
1,404
C#
using System; namespace AndcultureCode.CSharp.Sitefinity.Core.Models.Content { public class SitefinityContent { public DateTime DateCreated { get; set; } public Guid Id { get; set; } public DateTime PublicationDate { get; set; } } }
22.583333
62
0.660517
[ "Apache-2.0" ]
Stefanie899/AndcultureCode.CSharp.Sitefinity.Core
src/AndcultureCode.CSharp.Sitefinity.Core/Models/Content/SitefinityContent.cs
273
C#
#pragma checksum "C:\Users\DRAGON\Downloads\eShop-master\eShop-master\eShop-master\MyShop\MyShopK6\Views\Shared\_Newsletter.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "03dcae22f80a66805622e13aa7dce22db37797ef" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosti...
76.24
434
0.725166
[ "Apache-2.0" ]
yennhi2404/k6shoponline
MyShop/MyShopK6/obj/Debug/netcoreapp2.2/Razor/Views/Shared/_Newsletter.g.cshtml.cs
11,446
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.Collections; using System.Diagnostics; using System.Drawing; using System.Runtime.InteropServices; usi...
49.227523
811
0.595121
[ "MIT" ]
SeppPenner/winforms
src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/DesignerActionUI.cs
53,660
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...
31.793388
108
0.606707
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Comprehend/Generated/Model/SentimentDetectionJobFilter.cs
3,847
C#