content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. namespace EFDesigner.FunctionalTests { using System; using EFDesignerTestInfrastructure; using EFDesignerTestInfrastructure.EFDesigner; using Microsoft.Data....
44.320755
145
0.631332
[ "MIT" ]
dotnet/ef6tools
test/EFTools/FunctionalTests/UpdateModelFromDatabaseTests.cs
4,700
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Iot.Device.Media { /// <summary> /// The connection settings of a sound device. /// </summary> public class SoundConnectionSettings { /// <summa...
31.428571
74
0.575758
[ "MIT" ]
Manny27nyc/nanoFramework.IoT.Device
src/devices_generated/Media/SoundDevice/SoundConnectionSettings.cs
1,320
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Pro_Swapper.API; using System.Threading.Tasks; using CUE4Parse.FileProvider; namespace Pro_Swapper { public static class Swap { private static string PaksLocation = global.CurrentConfig.Paks; ...
40.933649
131
0.547181
[ "MIT" ]
Tamely/ProSwapper
src/Classes/Swap.cs
8,640
C#
using Flowmaker.ViewModels; using Flowmaker.ViewModels.Mappers; using Flowmaker.ViewModels.Views; using Microsoft.AspNetCore.Mvc; namespace Flowmaker.Web.Components { public class Footer : ViewComponent { //public async Task<IViewComponentResult> InvokeAsync(int maxPriority, bool isDone) publi...
25.882353
91
0.713636
[ "MIT" ]
mindmakr/flowmaker
src2/Flowmaker.Web/Components/Footer.cs
442
C#
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you 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...
45.469586
146
0.601295
[ "MIT" ]
maksimkim/SpanNetty
src/DotNetty.Codecs.Http2/Http2MultiplexHandler.cs
18,690
C#
using System.Collections.Generic; using System.ComponentModel; namespace FormUI.Domain.BestStartGrantForms.Dto { public class ExistingChildren { public ExistingChildren() { Children = new List<ExistingChild>(); } [DisplayName("Do you have any children you're respon...
27.777778
91
0.624
[ "MIT" ]
sg-deu/social-security-alpha-2
SgAlpha2/FormUI/Domain/BestStartGrantForms/Dto/ExistingChildren.cs
502
C#
using System.Data.Entity; using FarmerBazzar.Models; using FarmerBazzar.Repositories; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace CVAnalyzer.Repositories { public class RatingRepository { private AppContext _appContext; private ProductReposito...
29.216667
115
0.615516
[ "Apache-2.0" ]
IITDU-Spartans/IITDU.SIUSC
CVAnalyzer/CVAnalyzer/Repositories/RatingRepository.cs
1,755
C#
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// <summary> /// AOP API: alipay.platform.userid.get /// </summary> public class AlipayPlatformUseridGetRequest : IAopRequest<AlipayPlatformUseridGetResponse> { /// <su...
23.390909
94
0.603187
[ "MIT" ]
BJDIIL/DiiL
Sdk/AlipaySdk/Request/AlipayPlatformUseridGetRequest.cs
2,581
C#
// Dudi265 v1.0 [Example Usage] // By : VickyAziz // Version : 1.0 // Release : // --> v1.0 (13/10/2017) // - First Release "Dudi265 - StringCrypto" // - Simple UI, proof of concept algorithm // - Can only encrypt-decrypt string // - Example Usage // Library Used using Syst...
27.130435
66
0.540064
[ "MIT" ]
misagani/rijndael-dudi265
sources/EnryptDecryptDudi265/MainForm.cs
1,250
C#
namespace DNTFrameworkCore.Mapping { using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; /// <summary> /// <see cref="IMapper{TSource, TDestination}"/> extension methods. /// </summary> public static class MapperExtensions { ...
42.165986
125
0.5635
[ "Apache-2.0" ]
amir-ashy/DNTFrameworkCore
src/DNTFrameworkCore/Mapping/MapperExtensions.cs
30,992
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Runtime....
45.395522
275
0.681078
[ "MIT" ]
reflectronic/terrafx.interop.windows
sources/Interop/Windows/Windows/um/MsHTML/IHTMLRect2.cs
6,085
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using EventDrivenThinking.EventInference.Abstractions; using EventDrivenThinking.EventInference.Abstractions.Write; using EventDrivenThinking.EventInference.EventStore; using Ev...
40.533333
153
0.666118
[ "MIT" ]
eventmodeling/eventdriventhinking
EventDrivenThinking/EventInference/EventStore/AggregateEventStream.cs
4,258
C#
using System; using System.Collections.Generic; using System.Data; using System.Linq; using OpenTap.Tui.Views; using OpenTap.Tui.Windows; using Terminal.Gui; using Attribute = System.Attribute; namespace OpenTap.Tui.PropEditProviders { public class DataGridEditProvider : IPropEditProvider { public int ...
39.445205
154
0.500695
[ "MIT" ]
StefanHolst/opentap-tui
OpenTAP.TUI/PropEditProviders/DataGridEditProvider.cs
11,518
C#
using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEngine; /// <summary> /// Unity Editor Primitives creation menu items /// </summary> public class PrimitivesMenuItems { #region menu items methods /// <summary> /// Create Plane Primitive in Unity Editor /// </...
23.958333
67
0.656522
[ "MIT" ]
HulioVRD/Creative-Coding-Unity
Assets/[CREATIVE CODING]/Scripts/Primitives/Menus/PrimitivesMenuItems.cs
1,152
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using MoviesAPI.Entities; using MoviesAPI.Filters; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace MoviesAPI.Controllers { [Route("api/genres")] [ApiController] public class GenresController: Contro...
25.181818
81
0.599278
[ "MIT" ]
mkotto/CinemaHub
MoviesAPI/MoviesAPI/Controllers/GenresController.cs
1,387
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("Wire.PerfTest")] [assembly: AssemblyDesc...
34.948718
84
0.738811
[ "Apache-2.0" ]
philiplaureano/Wire
Wire.PerfTest/Properties/AssemblyInfo.cs
1,366
C#
// Copyright (c) 2018 Daniel A Hill. 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
33.510638
107
0.63746
[ "Apache-2.0" ]
DanielAHill/ApiActions
src/ApiActions.Swagger/Specification/SwaggerResponse.cs
1,575
C#
using System.Collections.Generic; using System.Linq; namespace Mallet.DataStructures.Geometric { // Ported from: https://github.com/evanw/csg.js/ // Copyright (c) 2011 Evan Wallace (http://madebyevan.com/) // MIT license public class CsgNode { private List<Polygon> Polygons { get; set; } ...
35.29703
81
0.506872
[ "BSD-3-Clause" ]
jspicer-code/mallet
Mallet.DataStructures/Geometric/CsgNode.cs
3,567
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NGettext.Plural; using Translatable; namespace Translation { public class GettextPluralBuilder : IPluralBuilder { private readonly IPluralRule _pluralRule; p...
25.666667
80
0.650531
[ "MIT" ]
pdfforge/translatable
Source/Translatable.NGettext/GettextPluralBuilder.cs
817
C#
// // Copyright (c) Microsoft and contributors. 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. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requi...
27.419355
76
0.604118
[ "Apache-2.0" ]
CerebralMischief/azure-sdk-for-net
src/ResourceManagement/Resource/ResourceManagement/Generated/Models/TenantIdDescription.cs
1,700
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Optimization; using System.Web.UI; namespace BookstoreWebForms { public class BundleConfig { // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkID=303951 public sta...
45.23913
111
0.565113
[ "MIT" ]
PhilipYordanov/BookstoreService
BookstoreService/BookstoreWebForms/App_Start/BundleConfig.cs
2,085
C#
using System.Globalization; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; namespace PTR { public class CustomDataGridTextColumn : DataGridTextColumn { public CustomDataGridTextColumn() : base() { }...
28.678571
111
0.618306
[ "MIT" ]
tcd1nc/ProjectRep-PTR
Controls/CustomDataGridTextColumn.cs
1,608
C#
using PropertyChanged; using System.ComponentModel; using System.Runtime.CompilerServices; namespace XCalendarFormsSample.ViewModels { [AddINotifyPropertyChangedInterface] public abstract class BaseViewModel : INotifyPropertyChanged { #region Events public event PropertyChangedEventHandler...
27.818182
95
0.720588
[ "MIT" ]
ME-MarvinE/XCalendar
XCalendarFormsSample/XCalendarFormsSample/ViewModels/BaseViewModel.cs
614
C#
using System; using System.Text; using System.Windows.Forms; namespace DevExpress.XtraCharts.Wizard.ChartAxesControls { public class AxisScaleOptionsControl : UserControl { } }
20.111111
58
0.80663
[ "Unlicense" ]
broteam168/QuizContest-broteam
DoAn_thitracnghiem/bin/Debug/vi/Sources/DevExpress.XtraCharts.Wizard/ChartAxesControls/AxisScaleOptionsControl.cs
181
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.Staffing { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace = "urn:co...
20.185714
136
0.721868
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.Staffing/Certification_Qualification_Profile_Replacement_DataType.cs
2,826
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace CELA_Tags_Service { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.a...
24.375
99
0.591453
[ "MIT" ]
Bhaskers-Blu-Org2/CELA-Outlook-Tag-Management
CELA-Tags_Service/App_Start/RouteConfig.cs
587
C#
using System.Drawing; namespace SimpleDnsCrypt.Extensions { /// <summary> /// ColorConverterExtensions. /// </summary> /// <see cref="https://stackoverflow.com/a/37821008/1837988"/> public static class ColorConverterExtensions { public static string ToHexString(this Color c) => $"#{c.R...
27.4375
87
0.621868
[ "MIT" ]
instantsc/SimpleDnsCrypt
SimpleDnsCrypt/Extensions/ColorConverterExtensions.cs
441
C#
namespace libwaifu2x { /// <summary> /// waifu2x processor /// </summary> public enum Waifu2xProcessors { /// <summary> /// CPU /// </summary> CPU = -1, /// <summary> /// AUTO /// </summary> AUTO = 0, /// <summary> /// GPU /// </summary> GPU = 1 } /// <summary> /// waifu2x model ///...
14.486486
35
0.544776
[ "MIT" ]
Soju06/libwaifu2x
wrapper/csharp/Waifu2xEnums.cs
538
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. using IdentityModel; using IdentityServer4.Models; using System.Collections.Generic; namespace MyIdentityServer.Configuration { ...
33.28169
118
0.427
[ "MIT" ]
carathorys/MyIdentity
Quickstart/Seed/Resources.cs
2,363
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using Azure.Core; using Azure.ResourceManager.Models; using Azure.ResourceManager.Workloads.Models; namespace Azure.ResourceManager.Workloads { /// <summary> A cla...
47.259259
306
0.676332
[ "MIT" ]
damodaravadhani/azure-sdk-for-net
sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/WordPressInstanceResourceData.cs
2,552
C#
// This file constitutes a part of the SharpMedia project, (c) 2007 by the SharpMedia team // and is licensed for your use under the conditions of the NDA or other legally binding contract // that you or a legal entity you represent has signed with the SharpMedia team. // In an event that you have received or obtained ...
32.268293
97
0.670446
[ "Apache-2.0" ]
zigaosolin/SharpMedia
SharpMedia/Components/IPublishedInfo.cs
1,323
C#
using Leak.Common; namespace Leak.Events { public class MetafileVerified { public FileHash Hash; public Metainfo Metainfo; public int Size; } }
14.076923
33
0.622951
[ "MIT" ]
amacal/leak
sources/Leak.Events/MetafileVerified.cs
185
C#
namespace Beacon.Sdk.Beacon.Permission { /// <summary> /// The threshold is not enforced on the dapp side. It's only as an information to the user /// </summary> public record Threshold(string Amount, string Timeframe) { /// <summary> /// The amount of mutez that can be spent...
33
99
0.587542
[ "MIT" ]
baking-bad/beacon-dotnet-sdk
Beacon.Sdk/Beacon/Permission/Threshold.cs
594
C#
namespace Mantle.Plugins.Caching.Redis { public static class LocalizableStrings { public static class Settings { public const string ConnectionString = "Mantle.Plugins.Caching.Redis/Settings.ConnectionString"; } } }
26.4
108
0.666667
[ "MIT" ]
gordon-matt/MantleCMS
Plugins/Mantle.Plugins.Caching.Redis/LocalizableStrings.cs
266
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 Microsoft.CodeAnalysis.CodeGeneration; using Microsoft.CodeAnalysis...
38.725
161
0.636217
[ "Apache-2.0" ]
20chan/roslyn
src/Workspaces/CSharp/Portable/CodeGeneration/ParameterGenerator.cs
6,198
C#
using System; namespace Assman { public interface IFinderExcluder { bool ShouldExclude(IResource resource); } }
15.666667
48
0.638298
[ "BSD-3-Clause" ]
muslumbozan27/demirbas
src/Assman/IFinderExcluder.cs
143
C#
using System; namespace Login { class Program { static void Main(string[] args) { string username = Console.ReadLine(); string password = string.Empty; for (int i = username.Length - 1; i >= 0; i--) { password += username[i]; ...
24
68
0.430208
[ "MIT" ]
Wa4e7o/C--Fundamentals
Basic Syntax, Conditional Statements and Loops - Exercise/Login/Program.cs
960
C#
using System.Linq; namespace Infrastructure.Ddd { public interface IFilter<TQueryable, TPredicate> { IQueryable<TQueryable> Filter(IQueryable<TQueryable> queryable, TPredicate predicate); } }
23.666667
94
0.737089
[ "MIT" ]
Aleksandr-Naumov/DotNext-Moscow-2020
infrastructure/Infrastructure/Ddd/IFilter.cs
215
C#
using WellEngineered.CruiseControl.Remote; namespace WellEngineered.CruiseControl.Core { /// <summary> /// Defines a mechanism for storing data from a project. /// </summary> public interface IDataStore { #region Public methods #region StoreProjectSnapshot() /// <su...
34.1875
83
0.604205
[ "MIT" ]
wellengineered-us/cruisecontrol
src/WellEngineered.CruiseControl.Core/IDataStore.cs
1,096
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Gooios.UserServiceHost.Models { public class VerifyCookAppPartnerLoginUserByAuthCodeModel { //[JsonProperty("authCode")] public string AuthorizationCode { get; set;...
22.066667
61
0.740181
[ "Apache-2.0" ]
hccoo/gooios
netcoremicroservices/Gooios.UserServiceHost/Models/VerifyCookAppPartnerLoginUserByAuthCodeModel.cs
333
C#
using System; namespace KyoshinMonitorLib.UrlGenerator { /// <summary> /// 長周期地震動モニタのURL生成器 /// </summary> public static class LpgmWebApiUrlGenerator { /// <summary> /// JsonEewのベースURL /// <para>0:時間</para> /// </summary> public const string JsonEewBase = "https://www.lmoni.bosai.go.jp/monitor/webservi...
43.246575
190
0.699398
[ "MIT" ]
iedred7584/KyoshinMonitorLib
src/KyoshinMonitorLib/UrlGenerator/LpgmWebApiUrlGenerator.cs
3,519
C#
using DevExpress.Mvvm; using DevExpress.Mvvm.UI.Interactivity; using DevExpress.Xpf.Dialogs; using DevExpress.Xpf.Editors; using DevExpress.Xpf.Grid; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace DXVisual...
35.727273
95
0.685327
[ "MIT" ]
Xarlot/DXVisualTestFixer
DXVisualTestFixer.UI/Behaviors/BrowseDirBehavior.cs
1,181
C#
using Quartz; using Quartz.Impl; using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using System.Linq; using System.Xml; using System.Xml.Linq; using System.Xml.XPath; using Wexflow.Core.Db; namespace Wexflow.Core { /// <summary> /// Database type /// </...
35.84964
174
0.478584
[ "MIT" ]
janborup/Wexflow
src/net/Wexflow.Core/WexflowEngine.cs
69,622
C#
using System; using System.Collections.Generic; using System.Diagnostics; using CCLLC.Telemetry.DataContract; namespace CCLLC.Telemetry.Implementation { internal static class ExceptionConverter { public const int MaxParsedStackLength = 32768; internal static IExceptionDetails Convert...
39.771429
143
0.58501
[ "MIT" ]
ScottColson/CCLCC
Telemetry/Implementation/ExceptionConverter.cs
4,178
C#
using System; using UnityEngine; namespace AC { public class Singleton<T> : MonoBehaviour where T :MonoBehaviour { private static T _instance; public static T Instance { get { return _instance; } } private void Awake...
16.73913
68
0.480519
[ "Apache-2.0" ]
eighthoursleep/AirCraftCombat
Assets/Scripts/Utils/Singleton.cs
387
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Microsoft.EntityFrameworkCore; namespace test { public class NoBaseTypeContext : DbContext { public DbSet<CatTest1> Cats { get; set; } public DbSet<DogTest1> Dogs { get; set; } protected...
22.170732
85
0.641364
[ "MIT" ]
kolesnikovav/FluidNames
test/NoBaseTypeContext.cs
909
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Hangfire.HttpJob.Agent; using Hangfire.HttpJob.Agent.Attribute; using Microsoft.Extensions.Logging; namespace TestSqlserverHangfireAgent.Jobs { [HangJobUntilStop(true)] public class TestHangJob : JobAgent ...
28.075
92
0.646483
[ "MIT" ]
573000126/Hangfire.HttpJob
Test/TestSqlserverHangfireAgent/Jobs/TestHangJob.cs
1,125
C#
using System.Web.Http; using WebActivatorEx; using WebApplication2; using Swashbuckle.Application; [assembly: PreApplicationStartMethod(typeof(SwaggerConfig), "Register")] namespace WebApplication2 { public class SwaggerConfig { public static void Register() { var thisAssembly = ty...
67.082031
133
0.533395
[ "MIT" ]
abenbrahim88/ficheperso
Application/WebApplication2/App_Start/SwaggerConfig.cs
17,173
C#
using System; using System.Diagnostics; using System.IO; namespace scg.Utils { public static class FileHelper { public static void OpenFile(string filename) { var pi = new ProcessStartInfo(Path.Combine(Environment.CurrentDirectory, filename)) { Arguments...
27
99
0.592593
[ "MIT" ]
MadCowDevelopment/SoloChallengeGenerator
scg/Utils/FileHelper.cs
596
C#
namespace PIHidDotName_Csharp_Sample { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
46.998711
114
0.570108
[ "MIT" ]
cschaftenaar/ATEM_Switcher_Deluxe
PIEngineeringSDK(v1047)/XK-68 Joystick/C# Express/PIHidDotName Csharp Sample/Form1.Designer.cs
72,897
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using Xunit; namespace JitTest_s_ldfld_mulovf_signed_cs { public class Test { private long _op1,_op2; private bool check(long product, bool ove...
33.333333
71
0.523846
[ "MIT" ]
Ali-YousefiTelori/runtime
src/tests/JIT/Methodical/int64/signed/s_ldfld_mulovf.cs
2,600
C#
// *** WARNING: this file was generated by crd2pulumi. *** // *** 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.Kubernetes.Types.I...
31.585366
120
0.64556
[ "Apache-2.0" ]
eljoth/pulumi-kubernetes-operator
lib/dotnet/Pulumi/V1Alpha1/Inputs/StackStatusArgs.cs
1,295
C#
 namespace iTin.Core.ComponentModel.Patterns { using System.Diagnostics; /// <summary> /// /// </summary> /// <typeparam name="T"></typeparam> public class AndNotSpecification<T> : CompositeSpecification<T> { [DebuggerBrowsable(DebuggerBrowsableState.Never)] private readon...
27.945946
133
0.577369
[ "MIT" ]
iAJTin/iCPUID
src/lib/net/iTin.Core/iTin.Core/ComponentModel/Patterns/Specification/AndNotSpecification.cs
1,036
C#
using System.Collections.Generic; namespace MessagePack.Tests.SharedTestItems.Successes.Collections { internal sealed class TestPopulatedStringList : SuccessTestItem<List<string>> { public TestPopulatedStringList() : base(new List<string> { "abc", "def" }) { } } }
31.777778
86
0.727273
[ "BSD-2-Clause" ]
ProductiveRage/MsgPack5.H5
Tests/SharedTestItems/Successes/Collections/TestPopulatedStringList.cs
288
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using VideoGameDBServices.Models; namespace VideoGameDBServices.Interfaces { public interface IRatingRepository { IEnumerable<Ratings> GetAll(); Task<Ratings> Find(int id); Task<bool> Exi...
17.947368
40
0.709677
[ "MIT" ]
JoeEager/VideoGameDBServices
VideoGameDBServices/Interfaces/IRatingRepository.cs
343
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using System.Web; using NuGet.Services.Search.Models; using QueryInterceptor; namespace NuGetGallery { public static class SearchAdaptor { /// <summary> /// Determines...
37.456621
163
0.539681
[ "ECL-2.0", "Apache-2.0" ]
rrudduck/NuGetGallery
src/NuGetGallery/DataServices/SearchAdaptor.cs
8,205
C#
// Copyright (c) IEvangelist. All rights reserved. // Licensed under the MIT License. using System; using System.IO; using Microsoft.Azure.CosmosRepository; using Newtonsoft.Json; namespace Microsoft.Azure.CosmosRepositoryTests.Stubs { public class TestItem : FullItem { public string Property { get; ...
23.066667
56
0.725434
[ "MIT" ]
filipmhpersson/azure-cosmos-dotnet-repository
tests/Microsoft.Azure.CosmosRepositoryTests/Stubs/TestItem.cs
348
C#
// Copyright 2021 The NATS Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
47.392593
125
0.539387
[ "Apache-2.0" ]
JohannesEH/nats.net
src/Samples/JetStreamPublishWithOptionsUseCases/JetStreamPublishWithOptionsUseCases.cs
6,400
C#
//***************************************************************************** //* Code Factory SDK //* Copyright (c) 2020 CodeFactory, LLC //***************************************************************************** using System; using System.Collections.Generic; namespace CodeFactory { /// <summary> //...
32.846154
112
0.540203
[ "MIT" ]
CodeFactoryLLC/CodeFactory
src/CodeFactoryVisualStudio/CodeFactory/IModel.cs
1,283
C#
using ExtraOptions; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using UnityEngine; using UnityEngine.UI; using Upgrade; public class StatsUI : MonoBehaviour { public static StatsUI Instance { get; private set; } private void Start() ...
29.576271
112
0.686533
[ "MIT" ]
97saundersj/FlyCasual
Assets/Scripts/MainMenu/View/StatsUI.cs
1,747
C#
using System.Collections.Generic; using System.Linq; namespace Saquib.Utils.Naming { internal static class NameSplitter { private static readonly char[] SPLIT_CHARS = new[] { '_', '-' }; /// <summary> /// Splits a name into logical parts, lowercasing them. /// </summary> pu...
38.186047
87
0.51218
[ "MIT" ]
j3parker/Saquib.Utils.Naming
Saquib.Utils.Naming/NameSplitter.cs
1,642
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using OpenQA.Selenium; using OpenQA.Selenium.Firefox; using OpenQA.Selenium.Support.UI; namespace WebAddressbookTests { public class ApplicationManager { protecte...
23.827273
99
0.514689
[ "Apache-2.0" ]
kiralyubimova/csharp_training
addressbook_web_tests/addressbook_web_tests/appmanager/ApplicationManager.cs
2,623
C#
using System.Collections.Specialized; using System.Globalization; using System.Linq; using Machine.Fakes; using Machine.Specifications; using Moolah.PayPal; namespace Moolah.Specs.PayPal { public abstract class PayPalRequestBuilderContext : WithFakes { Establish context = () => { C...
43.402827
157
0.593666
[ "Apache-2.0" ]
davidduffett/Moolah
Moolah/Moolah.Specs/PayPal/PayPalRequestBuilderSpec.cs
24,568
C#
using System.Collections.Generic; using System.Threading.Tasks; using ResearchXBRL.Application.DTO.ReverseLookupAccountItems; namespace ResearchXBRL.Application.QueryServices.ReverseLookupAccountItems; public interface IReverseLookupQueryService { ValueTask<IReadOnlyCollection<ReverseLookupResult>> Lookup...
32.636364
97
0.846797
[ "MIT" ]
Seibi0928/ResearchXBRL
ResearchXBRL.Application/QueryServices/ReverseLookupAccountItems/IReverseLookupQueryService.cs
359
C#
using System.Drawing; using Reactive.Bindings; namespace MvvmTetris.Engine.ViewModels { /// <summary> /// セル描画用のモデルを提供します。 /// </summary> public class CellViewModel { #region 定数 /// <summary> /// 既定の色を表します。 /// </summary> public static readonly Color Defau...
20.896552
106
0.580858
[ "MIT" ]
xin9le/MvvmTetris
src/MvvmTetris.Engine/ViewModels/CellViewModel.cs
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 "li...
34.027273
108
0.59845
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/MediaLive/Generated/Model/Internal/MarshallTransformations/AacSettingsMarshaller.cs
3,743
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("Chiro.CiviSync.Logic.Test")] [assembly: A...
38.444444
84
0.742052
[ "Apache-2.0" ]
Chirojeugd-Vlaanderen/gap
tools/Chiro.CiviSync/Chiro.CiviSync.Logic.Test/Properties/AssemblyInfo.cs
1,387
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18444 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
38.179487
151
0.568167
[ "MIT" ]
BuloZB/CurveLock
src/CurveLock/Properties/Settings.Designer.cs
1,491
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; public struct doublesStruct { public double f1; public double f2; public double f3; public double f4; } public class A { static bool foo(doublesS...
26.132353
95
0.435566
[ "MIT" ]
2m0nd/runtime
src/tests/JIT/Methodical/Invoke/hfa_params/hfa_params.cs
1,777
C#
namespace TailwindTraders.Mobile.Features.Product.Detail { public partial class ProductDetailPage { public ProductDetailPage(int productId) { InitializeComponent(); BindingContext = new ProductDetailViewModel(productId); } protected override void OnAppe...
23.05
71
0.62256
[ "MIT" ]
Lazareena/TailwindTraders-Mobile
Source/TailwindTraders.Mobile/TailwindTraders.Mobile/Features/Product/Detail/ProductDetailPage.xaml.cs
463
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.UnitTesting; using NUnit.Framework; namespace UnitTesting...
24.765306
103
0.71611
[ "MIT" ]
Plankankul/SharpDevelop-w-Framework
src/AddIns/Analysis/UnitTesting/Test/Utils/Tests/MockFileServiceTestFixture.cs
2,429
C#
// Rigidbody Follow|Utilities|90061 namespace VRTK { using UnityEngine; /// <summary> /// Changes one game object's rigidbody to follow another game object's rigidbody. /// </summary> [AddComponentMenu("VRTK/Scripts/Utilities/Object Follow/VRTK_RigidbodyFollow")] public class VRTK_Rig...
34.458716
132
0.54819
[ "MIT" ]
AmrMKayid/Wheelchair-Waiter
Assets/VRTK/Scripts/Utilities/ObjectFollow/VRTK_RigidbodyFollow.cs
3,758
C#
using System; using System.Runtime.InteropServices; namespace LibGit2Sharp.Core { /// <summary> /// Structure for git_remote_callbacks /// </summary> [StructLayout(LayoutKind.Sequential)] internal struct GitRemoteCallbacks { internal uint version; internal NativeMethods.remote...
29.325581
84
0.768438
[ "MIT" ]
MikeTV/libgit2sharp
LibGit2Sharp/Core/GitRemoteCallbacks.cs
1,263
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...
48.027397
179
0.665573
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/SimpleEmail/Generated/Model/TrackingOptionsDoesNotExistException.cs
7,012
C#
/* --------------------------- * SharePoint Manager 2010 v2 * Created by Carsten Keutmann * --------------------------- */ using System; using Microsoft.SharePoint; using Microsoft.SharePoint.Administration; using SPM2.Framework; namespace SPM2.SharePoint.Model { [Title(PropertyName="DisplayName")] [Icon(Small...
22.136364
80
0.687885
[ "MIT" ]
keutmann/SPM
Libraries/SPM2.SharePoint/Model/Custom/SPServiceApplicationProxyNode.cs
487
C#
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Microsoft.SqlServer.Management.Assessment; namespace Microsoft.SqlTools.ServiceLayer.Migration.Contracts { /// <summary> /// Describes an item retu...
30.193548
101
0.560541
[ "MIT" ]
microsoft/sqltoolsservice
src/Microsoft.SqlTools.ServiceLayer/Migration/Contracts/MigrationAssessmentInfo.cs
2,808
C#
using System; using System.Collections.Generic; using System.Linq; using qcloudsms_csharp; using Shashlik.Kernel.Attributes; using Shashlik.Sms.Exceptions; using Shashlik.Sms.Options; using Shashlik.Utils.Extensions; namespace Shashlik.Sms.Domains { /// <summary> /// 手机短信 /// </summary> [ConditionOnPr...
37.075
148
0.593392
[ "MIT" ]
dotnet-shashlik/shashlik
src/Shashlik.Sms/Domains/TencentSms.cs
1,493
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable disable using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Smallprogram.Server.Areas.Identity.Pages.Account { /// <summary...
36.346154
116
0.68254
[ "MIT" ]
smallprogram/Openiddict_Samples
ZhuSir_Openiddict_Samples/Smallprogram.Server/Areas/Identity/Pages/Account/ResetPasswordConfirmation.cshtml.cs
947
C#
using System.Collections.Generic; using System.Linq; using AuthorBookGraphQLAPI.Data; using AuthorBookGraphQLAPI.Models; namespace AuthorBookGraphQLAPI.Repositories { public class LibraryRepository : ILibraryRepository { private LibraryContext _context; public LibraryRepository(LibraryContext...
28.273684
100
0.571482
[ "MIT" ]
gfawcett22/AuthorBookGraphQLAPI
Repositories/LibraryRepository.cs
2,688
C#
using BobTheBuilder.Syntax; using AutoFixture.Xunit2; using Xunit; namespace BobTheBuilder.Tests { public class ObjectLiteralSyntaxFacts { [Theory, AutoData] public void SetStringStateByNameUsingObjectLiteral(string Name) { var sut = A.BuilderFor<Person>(); su...
33.615385
203
0.632151
[ "Apache-2.0" ]
alastairs/BobTheBuilder
BobTheBuilder.Tests/ObjectLiteralSyntaxFacts.cs
1,750
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace MovieApp.API.Models { public class MovieModel { [Key] public Guid Id { get; set; } ...
30.757576
70
0.635468
[ "MIT" ]
Iamkemical/-MovieApp
MovieApp.API/Models/MovieModel.cs
1,017
C#
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace booksapi.Models { [NotMapped] public class AuthenticateModel { [Required] public string Email { get; set; } [Required] public string Password { get; set; } } }
19.875
51
0.663522
[ "MIT" ]
vimendes/NetCoreAngular
booksapi/Models/AuthenticateModel.cs
320
C#
#region License // Copyright (c) 2009, ClearCanvas Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright not...
43.477273
87
0.739676
[ "Apache-2.0" ]
econmed/ImageServer20
Dicom/ServiceModel/Streaming/StreamingSettings.cs
1,915
C#
namespace quotes.Areas.HelpPage.ModelDescriptions { public class KeyValuePairModelDescription : ModelDescription { public ModelDescription KeyModelDescription { get; set; } public ModelDescription ValueModelDescription { get; set; } } }
29.444444
67
0.739623
[ "Apache-2.0" ]
DonSchenck/quotes
quotes/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs
265
C#
using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// <summary> /// <para>表示 [POST] /customservice/kfaccount/del 接口的请求。</para> /// </summary> public class CustomServiceKfAccountDeleteRequest : WechatApiRequest { /// <summary> /// 获取或...
28.736842
71
0.64652
[ "MIT" ]
KimMeng2015/DotNetCore.SKIT.FlurlHttpClient.Wechat
src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/KfAccount/CustomServiceKfAccountDeleteRequest.cs
584
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace EnglishStartServer.Database.Models { public class Course { public Guid Id { get; set; } [Required] [MaxLength(40)] public string Name { get; set; } [Required] ...
25.62963
105
0.621387
[ "MIT" ]
vladkolodka/english_start_server
EnglishStartServer.Database/Models/Course.cs
694
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.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Roslyn...
34.153846
161
0.55148
[ "Apache-2.0" ]
DavidKarlas/roslyn
src/Workspaces/Core/Portable/Utilities/Async/AsyncEnumerable_Concat.cs
3,110
C#
// // Author: // Aaron Bockover <abock@xamarin.com> // // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Windows.Input; namespace Xamarin.Interactive.TreeM...
28.236264
101
0.459039
[ "MIT" ]
Bhaskers-Blu-Org2/workbooks
Clients/Xamarin.Interactive.Client/TreeModel/TreeNode.cs
5,139
C#
using System.Collections.Generic; namespace GoogleMapsApiDotNet.GeocodingApi.Domain.Response { public class GeocodingResponse { public List<Result> Results { get; set; } public string Status { get; set; } } }
21.7
58
0.75576
[ "MIT" ]
UraPortuga/GoogleMapsApiDotNet
GoogleMapsApiDotNet/GoogleMapsApiDotNet.GeocodingApi/Domain/Response/GeocodingResponse.cs
219
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("Sta...
37.783784
84
0.747496
[ "MIT" ]
DevlinLiles/PresentationMaterials
ObjectDesignBasics/StageOne.Domain/Properties/AssemblyInfo.cs
1,401
C#
using System.Web.Mvc; using DotNetNuke.Common; using Connect.DNN.Modules.Conference.Common; using Connect.Conference.Core.Repositories; using Connect.Conference.Core.Models.Conferences; using Connect.Conference.Core.Common; using System.Web; namespace Connect.DNN.Modules.Conference.Controllers { public class Conf...
47.56
152
0.683067
[ "BSD-3-Clause" ]
DNN-Connect/Conference
Server/Conference/Controllers/ConferenceController.cs
7,136
C#
#pragma checksum "C:\My Projects\ColdStart-Challenge-2021\challenges\challenge\ColdStartApp\ColdStart-UI\ColdStart-UI\Pages\Footer.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "ca30b37164fb35c5ac6dfe98dbf5d55833481dcc" // <auto-generated/> #pragma warning disable 1591 namespace ColdStart_UI.Pages { #line hidden ...
35.08
245
0.798746
[ "MIT" ]
sumitkharche/ColdStart-Challenge-2021
challenges/challenge/ColdStartApp/ColdStart-UI/ColdStart-UI/obj/Debug/netstandard2.1/Razor/Pages/Footer.razor.g.cs
3,508
C#
namespace TimCodes.ApiAbstractions.Http.TestModels; public class TestResponse2 { public string? Response1 { get; set; } public int? Response2 { get; set; } }
21
52
0.720238
[ "MIT" ]
timcodesdotnet/api-abstractions
test/TimCodes.ApiAbstractions.Http.TestModels/TestResponse2.cs
170
C#
using System; using System.ComponentModel; using System.Collections; using System.Collections.Generic; using System.Text; using NUnit.Framework; using ASPNET_MVC_Store.ApplicationLogic; using ASPNET_MVC_Store.Model; using MVCSharp.Core; using MVCSharp.Core.Views; using MVCSharp.Core.Tasks; namespace Tests { [Test...
28.032787
80
0.626901
[ "MIT" ]
zherar7ordoya/AP3
(CSharp)/3) MVP Pattern/MVCSharp/Examples/ASP.NET MVC Store/Tests/TestApplicationLogic/TestProductCategoriesController.cs
1,712
C#
using System; namespace Microsoft.Maui.Handlers { public partial class EntryHandler : AbstractViewHandler<IEntry, object> { protected override object CreateNativeView() => throw new NotImplementedException(); public static void MapText(IViewHandler handler, IEntry entry) { } public static void MapTextColor(I...
47.842105
87
0.788779
[ "MIT" ]
JanNepras/maui
src/Core/src/Handlers/Entry/EntryHandler.Standard.cs
911
C#
using System.Collections.Generic; using Essensoft.AspNetCore.Payment.Alipay.Response; namespace Essensoft.AspNetCore.Payment.Alipay.Request { /// <summary> /// alipay.open.lottery.region.batchquery /// </summary> public class AlipayOpenLotteryRegionBatchqueryRequest : IAlipayRequest<AlipayOpenLotteryR...
22.895161
117
0.55125
[ "MIT" ]
lzw316/payment
src/Essensoft.AspNetCore.Payment.Alipay/Request/AlipayOpenLotteryRegionBatchqueryRequest.cs
2,865
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> //--...
35.16129
151
0.568807
[ "MIT" ]
Aptacode/Aptacode.TaskPlex
WPF/WPFGraphics/Properties/Settings.Designer.cs
1,092
C#
// <auto-generated /> using System; using BlindDateBot.Data.Contexts; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; name...
33.625
82
0.467032
[ "MIT" ]
Bardin08/Blind-Date-Bot
BlindDateBot.Data/Migrations/20210205072901_UpdateMessageTableIdentityColumn.Designer.cs
5,113
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization; using System.Runtime.Serialization.Json; using System.Text; namespace ElectrumXClient.Request { public class RequestBase { [JsonProperty("id")] public int MessageId { get...
23.558824
83
0.611735
[ "MIT" ]
hashland/ElectrumXClient
src/ElectrumXClient/Request/RequestBase.cs
803
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...
36.219512
132
0.684175
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Logic/Inputs/RosettaNetPipActivitySettingsArgs.cs
1,485
C#