content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------...
38.09901
161
0.595374
[ "Apache-2.0" ]
LightosLimited/RailML
v2.4/Models/XsdConvert/genericRailML/TOperationControlPoint.cs
3,848
C#
using ESR.Global; using System.ComponentModel; namespace ESR.UI { public class ToastMessageItem : INotifyPropertyChanged { public ESRState State { get; set; } = ESRState.Stop; public string ToastMessage { get; set; } = string.Empty; public string ToastImageSource { get; set; } = stri...
28.53125
83
0.644031
[ "MIT" ]
scanhand/EasyRecorder
Src/EasyRecorder/UI/ToastMessageItem.cs
915
C#
namespace WinIO.FluentWPF.Utility { sealed class VersionInfos { public static VersionInfo Windows7 { get { return new VersionInfo(6, 1, 7600); } } public static VersionInfo Windows7_SP1 { get { return new VersionInfo(6, 1, 7601); } } public static VersionInfo Windows8 { get { return new...
67.153846
110
0.678121
[ "Apache-2.0" ]
sak9188/WinIO2
WinIO/WinIO/FluentWPF/Utility/VersionInfos.cs
1,746
C#
using Signals.Aspects.DI.Attributes; using Signals.Core.Processes.Base; using Signals.Core.Processing.Results; namespace Signals.Core.Processes.Business { /// <summary> /// Represents a business process /// </summary> public interface IBusinessProcess { } /// <summary> /// Represents a busine...
30.578275
90
0.533382
[ "MIT" ]
acid996/Signals
src/10 Core/Signals.Core/Processes/Business/BusinessProcess.cs
9,573
C#
namespace FileUtils { public interface IAppConfig { } public class AppConfig { public string User; public string Pass; public string Domain; public string Path; public bool IsLocalFileSystem; public string DBConnectionString; } }
15.611111
41
0.661922
[ "MIT" ]
valueduser/FileUtils
FileUtils/AppConfig.cs
283
C#
using API.Configurations; using API.Middlewares; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Domain; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Serilog; using Micros...
34.302521
143
0.580353
[ "MIT" ]
omikolaj/odiam-dot-net-api-starter
API/Startup.cs
4,082
C#
namespace CallTargetNativeTest { // *** With3Arguments class With3Arguments { public void VoidMethod(string arg1, int arg2, object arg3) { } public int ReturnValueMethod(string arg1, int arg2, object arg3) => 42; public string ReturnReferenceMethod(string arg, int arg21, object arg3)...
51.057143
106
0.689424
[ "Apache-2.0" ]
backjo/dd-trace-dotnet
test/test-applications/instrumentation/CallTargetNativeTest/With3Arguments.cs
1,787
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace Hanselman.Portable.Views { public partial class TwitterPage : ContentPage { private TwitterViewModel ViewModel { get { return BindingC...
27.860465
133
0.581803
[ "MIT" ]
wk-j/hanselman-forms
Hanselman.Portable/Views/TwitterPage.xaml.cs
1,200
C#
using System; using System.IO; using System.Linq; using System.Threading.Tasks; using EventFeed.Producer.EventFeed; using EventFeed.Producer.EventFeed.Atom; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using Microsoft.Ne...
31.254545
112
0.578243
[ "MIT" ]
heemskerkerik/EventFeedDemo
EventFeed.Producer/Controllers/EventFeedController.cs
3,438
C#
using System; using UnityEngine; namespace AnilTools { // an object pool system for components public class ComponentPool<C> where C : Component { private readonly C[] components; private int index; // Pops a component in pool public C Get() { ...
32.934783
146
0.524752
[ "MIT" ]
benanil/Bukra_Game
Utils/heleper/ComponentPool.cs
1,517
C#
namespace SampleWebApi.Inheritance.WebApi.Areas.HelpPage { /// <summary> /// Indicates whether the sample is used for request or response /// </summary> public enum SampleDirection { Request = 0, Response } }
22.545455
68
0.633065
[ "MIT" ]
ERobishaw/trackable-entities
Samples/VS2013/WebApiSample.Inheritance/SampleWebApi.Inheritance.WebApi/Areas/HelpPage/SampleGeneration/SampleDirection.cs
248
C#
using System; using Client.UI; namespace Server.Actions { /// <summary> /// 单机版,读取内圈有钱有闲随机卡牌 /// </summary> public class RelaxAction : ActionBase { protected override void _OnStart() { // var list = CardManager.Instance.innerRelaxList; // var id =...
24.025
82
0.616025
[ "Apache-2.0" ]
rusmass/wealthland_client
arpg_prg/client_prg/Assets/Code/Client/VirtualServer/BattleVirtualServer/Behaviour/Actions/Inner/RelaxAction.cs
995
C#
using ProjetoFilmes.Domains; using ProjetoFilmes.Interfaces; using System.Collections.Generic; using System.Linq; namespace ProjetoFilmes.Repositories { /// <summary> /// Repositório que implementa os métodos de usuários /// </summary> public class UsuarioRepository : IUsuarioRepository { ...
30.592233
93
0.563631
[ "MIT" ]
Carlos-Henrique98/React-ListaFilme
backend/01.filmes/backend/ProjetoFilmes/ProjetoFilmes/Repositories/UsuarioRepository.cs
3,174
C#
using System; using System.Windows.Forms; using EAValidator; namespace EAValidatorApp { public partial class frmEAValidator : Form { private EAValidatorController controller { get; set; } public frmEAValidator(EAValidatorController controller) { InitializeComponent(); ...
28.366667
80
0.647474
[ "BSD-2-Clause" ]
CuchulainX/Enterprise-Architect-Toolpack
EAValidationFramework/frmEAValidator.cs
853
C#
// <auto-generated /> using System; using LearningAbp.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; ...
33.626947
125
0.461125
[ "MIT" ]
IAmWhoAmI007/LearningAbp
aspnet-core/src/LearningAbp.EntityFrameworkCore/Migrations/20190208051931_Upgrade_ABP_4_2_0.Designer.cs
43,179
C#
// DO NOT EDIT: GENERATED BY BitCountFromRangeTestGenerator.cs using System; using System.Collections; using Mirage.Serialization; using Mirage.Tests.Runtime.ClientServer; using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; namespace Mirage.Tests.Runtime.Generated.BitCountFromRangeAttributeTests.sh...
31.718563
127
0.555598
[ "MIT" ]
GTextreme169/Mirage
Assets/Tests/Generated/BitCountFromRangeTests/BitCountFromRange_short_N10_10.cs
5,297
C#
using System; using System.Xml.Serialization; using System.ComponentModel.DataAnnotations; using BroadWorksConnector.Ocip.Validation; using System.Collections.Generic; namespace BroadWorksConnector.Ocip.Models { /// <summary> /// Request the user level data associated with Third-Party Voice Mail Support. /...
32.108696
131
0.660799
[ "MIT" ]
JTOne123/broadworks-connector-net
BroadworksConnector/Ocip/Models/UserThirdPartyVoiceMailSupportGetRequest13mp16.cs
1,477
C#
namespace AutoMapper.QueryableExtensions.Impl { using System.Collections.Generic; using System.Linq.Expressions; public class CustomProjectionExpressionBinder : IExpressionBinder { public bool IsMatch(PropertyMap propertyMap, TypeMap propertyTypeMap, ExpressionResolutionResult result) {...
46.782609
238
0.765799
[ "MIT" ]
hegemon70/AutoMapper
src/AutoMapper/QueryableExtensions/Impl/CustomProjectionExpressionBinder.cs
1,076
C#
using System.Collections.Generic; using System.Globalization; using BenchmarkDotNet.Analysers; using BenchmarkDotNet.Columns; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Diagnosers; using BenchmarkDotNet.Exporters; using BenchmarkDotNet.Filters; using BenchmarkDotNet.Jobs; using BenchmarkDotNet.Loggers; using ...
27.27381
76
0.670886
[ "MIT" ]
skarllot/StringPrefixSearchBenchmark
perf/StringPrefixSearchBenchmark/BenchmarkConfig.cs
2,291
C#
using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.Dynamic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using Prep.Problems.DataStructures; //https://leetcode.com/problems/number-of-distinct-islands-ii/ namespace Prep.Problems.Problems.num...
30.875
97
0.500289
[ "MIT" ]
michaelwda/Prep
Prep.Problems/Problems/number_of_islands_hard/Solution.cs
1,731
C#
using MediatR; using SS.Organizations.Application.Configuration.Services; using SS.Organizations.Domain.Exceptions; using SS.Organizations.Domain.Repositories; using System.Threading; using System.Threading.Tasks; namespace SS.Organizations.Application.Commands.AddUserToOrganization { public class AddUserToOrgani...
41.974359
155
0.703115
[ "MIT" ]
KamilKarpus/SecretStorage
src/SS.Organization.Application/Commands/AddUserToOrganization/AddUserToOrganizationCommandHandler.cs
1,639
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VeurmaClassifier { public class C45Algorithm { private DecisionTree tree; private int maximumHeight; private int step; //split step ...
34.271845
127
0.466799
[ "MIT" ]
AdoraNwodo/AI-Concepts
VeurmaClassifier/C45Algorithm.cs
17,652
C#
// Copyright (C) 2008 Jesse Jones // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, /...
33.068493
86
0.720795
[ "MIT" ]
afrog33k/mcocoa
source/appkit/NSView.cs
2,414
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; namespace LB15 { public partial class Form1 : Form { ...
46.022529
235
0.380849
[ "Apache-2.0" ]
StrongerProgrammer7/Graph_topologicalSort
LB15/Form1.cs
67,300
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Services.Functions; namespace Domain.Entity { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotatio...
24.840909
107
0.653248
[ "MIT" ]
shpsyte/CRMFx
Libraries/Domain/Entity/Dashboard.cs
1,095
C#
using ObjectManager.Rest.Tests.Integration.Common.TestFixtures; using Xunit; namespace ObjectManager.Rest.V1.Tests.Integration { [CollectionDefinition(CollectionName)] public class WorkspaceSetupFixture : WorkspaceSetupFixtureHelper, ICollectionFixture<WorkspaceSetupFixture> { } }
27.272727
111
0.806667
[ "MIT" ]
Heretik-Corp/Objectmanager-Rest
ObjectManager.Integration/WorkspaceSetupFixture.cs
302
C#
using System.Text; namespace Capgemini.Xrm.CdsDataMigratorLibrary.Models { public class DeserializationSettings { public string XmlFolderPath { get; set; } public bool FailedValidation { get; set; } public string FailedValidationMessage { get; set; } public void Validate() ...
27.846154
82
0.603591
[ "MIT" ]
Capgemini/xrm-datamigration-xrmtoolbox
Capgemini.Xrm.CdsDataMigrator/Capgemini.Xrm.CdsDataMigratorLibrary/Models/DeserializationSettings.cs
726
C#
namespace Cacti.Web.Features.Shared.ViewModels { public class BlogPostsRequestViewModel { public int page { get; set; } = 1; public int pageSize { get; set; } = 20; public string tag { get; set; } = string.Empty; public string q { get; set; } = string.Empty; } }
28
55
0.597403
[ "MIT" ]
felsig/Cacti
src/Cacti.Web/Features/Shared/ViewModels/BlogPostsRequestViewModel.cs
308
C#
using Abp.Authorization; using Abp.Localization; using Abp.MultiTenancy; namespace Volo.SqliteDemo.Authorization { public class SqliteDemoAuthorizationProvider : AuthorizationProvider { public override void SetPermissions(IPermissionDefinitionContext context) { context.CreatePermis...
34.409091
125
0.718626
[ "MIT" ]
OzBob/aspnetboilerplate-samples
SqliteDemo/aspnet-core/src/Volo.SqliteDemo.Core/Authorization/SqliteDemoAuthorizationProvider.cs
759
C#
using System; using Confuser.Core; namespace Confuser.DynCipher { internal class DynCipherComponent : ConfuserComponent { public const string _ServiceId = "Confuser.DynCipher"; public override string Name { get { return "Dynamic Cipher"; } } public override string Description { get { return "Provides...
23.65625
99
0.733157
[ "MIT" ]
000x0/neo-ConfuserEx
Confuser.DynCipher/DynCipherComponent.cs
759
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 may ...
37.893939
82
0.644142
[ "MIT" ]
baohaojun/beagrep
beagrepd/Lucene.Net/Analysis/PorterStemFilter.cs
2,501
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Microsoft.Azure.II...
32.833333
99
0.510152
[ "MIT" ]
Azure/Industrial-IoT
common/src/Microsoft.Azure.IIoT.Abstractions/src/Storage/IDatabaseServer.cs
788
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is...
33.109375
154
0.606418
[ "MIT" ]
Azure/azure-powershell-common
src/Graph.Rbac/MicrosoftGraph/Version1_0/DirectoryObjects/Models/MicrosoftGraphEntity.cs
2,119
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> //--...
35.032258
151
0.588398
[ "MIT" ]
Vavro/Tests
LuceneNetCzechSupport/LuceneNetCzechSupport.WpfClient/Properties/Settings.Designer.cs
1,088
C#
namespace Epam.JDI.Core.Logging { public enum LogLevels { Off =-1, Fatal = 0, Error = 3, Warning = 4, Info = 6, Debug = 7, Trace = 8, All = 100 } }
16.733333
32
0.370518
[ "MIT" ]
elv1s42/jdi-csharp
JDI/Core/Logging/LogLevels.cs
253
C#
using System; using System.Data; using System.Linq; using System.Threading.Tasks; using BenchmarkDotNet.Attributes; using LinqToDB.Benchmarks.Mappings; using LinqToDB.Benchmarks.TestProvider; using LinqToDB.Data; using LinqToDB.DataProvider.SqlServer; using LinqToDB.Linq; using LinqToDB.Mapping; namespace...
27.550296
162
0.584407
[ "MIT" ]
Kshitij-Kafle-123/linq2db
Tests/Tests.Benchmarks/Benchmarks/Queries/Issue3268Benchmark.cs
4,490
C#
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved. // 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 full license information. namespace ReactiveUI.Tests { ...
32.5
77
0.751282
[ "MIT" ]
benchabot2/ReactiveUI
src/ReactiveUI.Tests/Mocks/ExampleWindowViewModel.cs
392
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 Xunit; namespace System.Tests { public static class BadImageFormatExceptionTests { private c...
40.610526
149
0.630638
[ "MIT" ]
1shekhar/runtime
src/libraries/System.Runtime/tests/System/BadImageFormatExceptionTests.cs
3,860
C#
using Chilicki.StarWars.Data.Entities; using Chilicki.StarWars.Data.Helpers.Paging; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Chilicki.StarWars.Data.Repositories { public interface IBaseRepository<TEntity> where TEntity : BaseNamedEntity { Task<IEnumerable...
31.882353
77
0.736162
[ "MIT" ]
mchilicki/star-wars-rest-api
Chilicki.StarWars/Chilicki.StarWars.Data/Repositories/IBaseRepository.cs
544
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/winnt.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop.Windows; ...
45.153846
145
0.740204
[ "MIT" ]
reflectronic/terrafx.interop.windows
sources/Interop/Windows/Windows/um/winnt/SE_IMPERSONATION_STATE.cs
1,176
C#
namespace k8s { /// <summary> /// Object that allows self validation /// </summary> public interface IValidate { /// <summary> /// Validate the object. /// </summary> void Validate(); } }
17.428571
42
0.504098
[ "Apache-2.0" ]
admilazz/csharp
src/KubernetesClient/IValidate.cs
244
C#
/******************************************************************************* * Copyright (C) 2015 AgGateway and ADAPT Contributors * Copyright (C) 2015 Deere and Company * Copyright (C) 2019 Syngenta * All rights reserved. This program and the accompanying materials * are made available under the terms o...
41.69697
118
0.625
[ "EPL-1.0" ]
AnkitGupta777/ADAPT
source/ADAPT/Products/ProductComponent.cs
1,378
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; namespace System.ComponentModel.Design.Serialization { /// <summary> /// This interface may be optionally implemented by the designer loader to pro...
48.479167
89
0.681994
[ "MIT" ]
2m0nd/runtime
src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/Design/Serialization/IDesignerLoaderService.cs
2,327
C#
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Security; using System.Text; using static _3dprobe.Bridge.DXGI; using static _3dprobe.Bridge.Direct3D11; using BOOL = System.Int32; using UINT = System.UInt32; namespace _3dprobe.Bridge { public static class Direct3D12...
29.547579
111
0.776033
[ "BSD-3-Clause" ]
daramkun/3dprobe
3dprobe/Bridge/Direct3D12.cs
18,895
C#
using UnityEngine; using System.Collections; public class JetpackVisuals : MonoBehaviour { [SerializeField] CharacterControllerBase m_Character = null; [SerializeField] Transform m_JetpackModel = null; [SerializeField] ParticleSystem m_JetpackParticles = null; [SerializeField] SpriteRenderer m_UIBarF...
29.221053
160
0.633285
[ "MIT" ]
StefanZaufl/ggj2022-torn
Assets/CharacterEditorPackage/Code/Game/Equipment/JetpackVisuals.cs
2,778
C#
using System; using System.Collections.Generic; using System.Text; namespace MCSharp { class CmdPlayers : Command { // Constructor public CmdPlayers(CommandGroup g, GroupEnum group, string name) : base(g, group, name) { blnConsoleSupported = false; /* By default no console support*/ } ...
29.577778
162
0.500376
[ "MIT" ]
Hedwig7s/MCSharp-Betacraft
MCSharp/Commands/Information/CmdPlayers.cs
1,331
C#
using UnityEngine; using UnitySteer.Events ; [AddComponentMenu("UnitySteer/Steer/... for Arrive")] public class SteerForArrive : Steering { enum TargetCategory{ point=1,vehi=2}; [SerializeField] TargetCategory tc; [SerializeField] Vector3 _targetPoint = Vector3.zero; [SerializeField] Vehicle.Decelerate...
15.513158
65
0.666667
[ "MIT" ]
xinghu0164/GroupAnimation
Assets/Code/Steer/SteerForArrive.cs
1,193
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> //--...
29.769231
81
0.5
[ "MIT" ]
NathanClouseAX/AAXDataEntityPerfTest
Projects/AAXDataEntityPerfTest/ODataUtility/Connected Services/D365/BudgetTransactionWorkflowStatus.cs
776
C#
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace SSRD.Audit.Data { public interface IAuditDbContext { DbSet<AuditEntity> Audit { get; set; } int SaveChanges(); Task<int> SaveChangesAsync(); ...
19.294118
46
0.698171
[ "MIT" ]
faizu-619/IdentityUI
src/SSRD.Audit/Data/IAuditDbContext.cs
330
C#
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.LayoutRules { using System.Collections.Generic; using System.Threading; using System.Threadin...
43.095694
166
0.630843
[ "Apache-2.0" ]
Andreyul/StyleCopAnalyzers
StyleCop.Analyzers/StyleCop.Analyzers.Test/LayoutRules/SA1502/SA1502UnitTests.TypeDeclarations.cs
9,009
C#
using System; using System.Collections.Generic; using System.Linq; using QuickGraph; namespace GraphX.Logic.Algorithms { internal class GraphHideHelper<TVertex, TEdge> : ISoftMutableGraph<TVertex, TEdge> where TEdge : IEdge<TVertex> { private readonly IMutableBidirectionalGraph<TVertex, TEdge> _graph; #regio...
21.995807
121
0.670034
[ "Apache-2.0" ]
Devangsinh/GraphX
GraphX.Standard.Logic/Algorithms/GraphHideHelper.cs
10,494
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
32.847619
97
0.590316
[ "Apache-2.0" ]
kimii/tencentcloud-sdk-dotnet
TencentCloud/Cme/V20191029/Models/ImportMaterialRequest.cs
3,895
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace NewsRssWeb.Entity { public class TuningGenerator { [Key] [ForeignKey("Generator")] public int ...
29.25
68
0.65812
[ "MIT" ]
PiterPoker/NewsRssWeb
NewsRssWeb/Entity/TuningGenerator.cs
704
C#
using System; using System.Threading.Channels; namespace Foreach { class Program { static void Main(string[] args) { string[] vect = new string[] { "Maria", "Alex", "Bob" }; // Método com for para percorrer o vetor for (int i = 0; i < vect.Length; i++) { ...
25.791667
68
0.463651
[ "MIT" ]
midnightbr/CSharp
ws-rider/Foreach/Foreach/Program.cs
623
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; namespace WebAddressbookTests { [TestFixture] public class LoginTests : AuthTestBase { [Test] public void LoginWithValidCredentials() { ...
21.976744
69
0.555556
[ "Apache-2.0" ]
kursvelox/csharp_kurs
addressbook-web-tests/addressbook-web-tests/tests/LoginTests.cs
947
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.Generic; using System.Collections.Immutable; using System.Linq; using System.Threading; us...
47.862903
196
0.691154
[ "MIT" ]
BertanAygun/roslyn
src/Workspaces/CSharp/Portable/Extensions/SemanticModelExtensions.cs
5,937
C#
using System; using System.Drawing; using System.IO; using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Wordprocessing; using A = DocumentFormat.OpenXml.Drawing; using DW = DocumentFormat.OpenXml.Drawing.Wordprocessing; using PIC = DocumentFormat.OpenXml.Drawing.Pictures...
45.848
123
0.401326
[ "MIT" ]
ST-Cito/Q-Construction
backend/Citolab.QConstruction.Logic/HelperClasses/OpenXmlHelper.cs
5,733
C#
using System.Collections.Generic; using System.Text.Json.Serialization; namespace Application.DTOs.Account { public class AuthenticationResponse { public string Id { get; set; } public string UserName { get; set; } public string Email { get; set; } public List<string> Roles { g...
27.666667
48
0.626506
[ "MIT" ]
chenzuo/CleanArchitecture.WebApi
Application/DTOs/Account/AuthenticationResponse.cs
500
C#
using System.Linq.Expressions; namespace RepoDb.Extensions { /// <summary> /// Contains the extension methods for <see cref="MemberBinding"/> object. /// </summary> internal static class MemberBindingExtension { /// <summary> /// Gets a value from the current instance of <see cref=...
42.066667
127
0.62916
[ "Apache-2.0" ]
RepoDb/RepoDb
RepoDb.Core/RepoDb/Extensions/MemberBindingExtension.cs
1,895
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Difficulty.Preprocessing; using osu.Game.Rulesets.Objects; namespace osu.Game.Rulese...
43.975
134
0.705514
[ "MIT" ]
RocketMaDev/osu
osu.Game.Rulesets.Catch/Difficulty/Preprocessing/CatchDifficultyHitObject.cs
1,720
C#
// // ProjectItemDefinitionElement.cs // // Author: // Leszek Ciesielski (skolima@gmail.com) // // (C) 2011 Leszek Ciesielski // // 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 ...
43.090909
109
0.646976
[ "Apache-2.0" ]
121468615/mono
mcs/class/Microsoft.Build/Microsoft.Build.Construction/ProjectItemDefinitionElement.cs
2,846
C#
using System; using umbraco.interfaces; using umbraco.BasePages; using Umbraco.Core; using Umbraco.Core.CodeAnnotations; namespace umbraco.BusinessLogic.Actions { /// <summary> /// This action is used as a security constraint that grants a user the ability to view nodes in a tree /// that has pe...
25.342857
145
0.567644
[ "MIT" ]
Abhith/Umbraco-CMS
src/umbraco.cms/Actions/ActionBrowse.cs
1,774
C#
//Write a program that finds how many times a substring is contained in a given text (perform case insensitive search). // Example: The target substring is "in". The text is as follows: //We are living in an yellow submarine. We don't have anything else. Inside the submarine is very tight. //So we are drinking all t...
31.9375
193
0.642857
[ "MIT" ]
dzhenko/TelerikAcademy
CSharp Part2/C2-8-StringsTextProcessing-Homework/04. HowManyTimesASubstring/HowManyTimesASubstring.cs
1,024
C#
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using PureCloudPlatform.Client.V2.Client; namespace PureClo...
27.229412
260
0.459927
[ "MIT" ]
maxwang/platform-client-sdk-dotnet
build/src/PureCloudPlatform.Client.V2/Model/CallbackConversationNotificationDialerPreview.cs
9,258
C#
using System.ComponentModel.DataAnnotations; using static OnlineStore.Models.Common.ModelConstants; namespace OnlineStore.Common.ViewModels.Product { public class ProductCreateViewModel { public ProductCreateViewModel(string categoryId) { this.CategoryId = categoryId; } ...
25.081081
92
0.631466
[ "MIT" ]
msotiroff/Online-Store
src/OnlineStore.Common/ViewModels/Product/ProductCreateViewModel.cs
930
C#
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (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.mozilla.org/MPL/ *...
36.135135
154
0.707928
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
OS2CPRbroker/CPRbroker
PART/Source/Core/Schemas/Intervals/CannotCloseOpenEndIntervalsAttribute.cs
2,676
C#
// Copyright 2020 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
64.953835
526
0.676166
[ "Apache-2.0" ]
Global19/google-cloud-dotnet
apis/Google.Cloud.Dialogflow.Cx.V3/Google.Cloud.Dialogflow.Cx.V3/EnvironmentsClient.g.cs
87,233
C#
namespace TrainSystem.Models { using System.Data.Entity; public class TrainSystemDbContext : DbContext { public virtual IDbSet<Trip> Trips { get; set; } public TrainSystemDbContext() : base("TrainSystem") { } } }
20.230769
59
0.61597
[ "MIT" ]
jeliozver/SoftUni-Software-Technologies
Exams/Retake-Exam-8-January-2018/CSharp/TrainSystem/Models/TrainSystemDbContext.cs
265
C#
using System.Text.RegularExpressions; using Abp.Extensions; namespace AbpCompanyName.AbpProjectName.Validation { public static class ValidationHelper { public const string EmailRegex = @"^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"; public static bool IsEmail(string value) { ...
22.565217
91
0.535645
[ "MIT" ]
ngthaiquy/abplus-zero-template
aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Validation/ValidationHelper.cs
521
C#
namespace AS91892.Data.Entities; /// <summary> /// Represents an <see cref="Album"/> in the database /// </summary> public class Album : BaseEntity { /// <summary> /// An image for the album covers /// </summary> [JsonPropertyName("albumCover")] public Image? AlbumCover { get; set; } #nullable dis...
24.297297
53
0.602892
[ "MIT" ]
ac111897/AS91892
AS91892.Data/Entities/Album.cs
901
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.Core...
77.642857
580
0.671376
[ "MIT" ]
KurnakovMaksim/azure-sdk-for-net
sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileSharesRestOperations.cs
60,872
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; namespace CommandCraft.Views.ValueConverters { class StringToEnumConverter : IValueConverter { public object Convert(object value, Type targetType, object para...
27.875
124
0.704036
[ "Apache-2.0" ]
mcw256/CommandCraft
CommandCraft/CommandCraft/Views/ValueConverters/StringToEnumConverter.cs
671
C#
using System; using System.Data.SqlClient; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.Practices.EnterpriseLibrary.Data.Sql; using Microsoft.Practices.EnterpriseLibrary.Logging.Database; using Microsoft.Practices.EnterpriseLibrary.Logging.Formatters; usin...
45.703947
150
0.615949
[ "Apache-2.0" ]
Microsoft/logging-application-block
BVT/Logging.BVT/Async/AsynchronousListenerWrapperFixture.cs
6,949
C#
namespace HareDu.Snapshotting.Model { public record DiskSnapshot : Snapshot { public string NodeIdentifier { get; init; } public DiskCapacityDetails Capacity { get; init; } public ulong Limit { get; init; } public bool AlarmInEffect { get; init; } ...
22.4375
58
0.576602
[ "Apache-2.0" ]
ahives/HareDu3
src/HareDu.Snapshotting/Model/DiskSnapshot.cs
359
C#
using System; using System.ComponentModel.DataAnnotations.Schema; namespace EIP.System.Models.Entities { /// <summary> /// System_Permission表实体类 /// </summary> [Serializable] [Table("System_Permission")] public class SystemPermission { /// <summary> /// 权限归属(0菜单、1按钮等) ...
23.358974
54
0.531284
[ "MIT" ]
edwinhuish/eipcore2
Api/Service/System/EIP.System.Models/Entities/SystemPermission.cs
1,013
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class SettingsTXTPrintOut : MonoBehaviour { public Text GPUAPIText, ResolutionText; void Start() { PrintOut(); } void PrintOut() { ResolutionText.text = "Current Resolut...
22.380952
95
0.693617
[ "Unlicense" ]
j-mano/VolvoTruck
Assets/Scripts/SettingsTXTPrintOut.cs
470
C#
using System; using System.Windows; using System.Windows.Shapes; namespace WpfApp1 { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { // Instantiate the dialog box private readonly Settings dlg = new() { }; pu...
33.048387
108
0.565154
[ "MIT" ]
CMHAS/RealtimeSolver
Dialog/MainWindow.xaml.cs
2,051
C#
using System; namespace _01.BiscuitFactory { class Program { static void Main(string[] args) { int amountOfBiscuits = int.Parse(Console.ReadLine()); // worker produce a day int countWorkers = int.Parse(Console.ReadLine()); // in factory int biscuitsProduced...
33.595745
94
0.495883
[ "MIT" ]
martinsivanov/CSharp-Fundamentals---May-2020
Exams/Programming Fundamentals Mid Exam - 2 November 2019 Group 1/01.BiscuitFactory/Program.cs
1,581
C#
using Xamarin.Forms; namespace MobileSnapp.Controls { public enum ShadowType { None = 0, Top, Bottom } public class ShadowBoxView : BoxView { public static readonly BindableProperty ShadowTypeProperty = BindableProperty.Create( nameof(ShadowType), ...
21.769231
93
0.59364
[ "MIT", "BSD-3-Clause" ]
maidsafe/sn_app_mobile
MobileSnapp/MobileSnapp/Controls/ShadowBoxView.cs
568
C#
using System.IO; using DotnetExlib.Properties; namespace DotnetExlib.Yeckthone.CAP { [Author("Takym", copyright: "Copyright (C) 2017 Takym.")] public class CapAnalyzer : ILexicalAnalyzer, ISyntaxAnalyzer { public CapAnalyzer(string filename) { } public CapAnalyzer(Stream stream) { } public CapAna...
11.85
61
0.675105
[ "MIT" ]
Takym/DotnetExlib
DotnetExlib/Yeckthone/CAP/CapAnalyzer.cs
476
C#
/* * Tencent is pleased to support the open source community by making xLua available. * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lice...
45.004164
354
0.510139
[ "BSD-3-Clause" ]
dongyanyan/xLua
Assets/XLua/Src/Editor/Generator.cs
75,790
C#
using LiteDB; namespace ttime { public class DataFormatVersion { public ObjectId Id { get; set; } public int Version { get; set; } } }
16.4
40
0.591463
[ "MIT" ]
nickdurcholz/ttime
ttime/DataFormatVersion.cs
166
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.IO.Ports; using System.IO; namespace Arduno2 { class Program { static void Main(string[] args) { //start here ArduinoControllerApp app = new ArduinoControllerApp(); ...
21.47619
66
0.408721
[ "MIT" ]
Thitipun/Arduino-AutomaticMedicBox
ArdunoComm/Arduno2/Program.cs
1,355
C#
using System; using System.ServiceModel; using System.ServiceModel.Channels; using System.ServiceModel.Dispatcher; namespace Onvif.Core.Client.Security { public class SoapSecurityHeaderInspector : IClientMessageInspector { readonly string username; readonly string password; readonly TimeSpan time_shift; publ...
24.34375
91
0.774069
[ "MIT" ]
Jazea/Jazea.Edge
Client/Security/SoapSecurityHeaderInspector.cs
779
C#
using System; using System.Collections.Generic; using System.Text; namespace ETModel { [ObjectSystem] public class RayUnitComponentAwakeSystem : AwakeSystem<RayUnitComponent> { public override void Awake(RayUnitComponent self) { self.Awake(); } } public class R...
18.793103
76
0.6
[ "MIT" ]
xfs81150082/TumoET
Server/Model/Tumo/Components/Units/RayUnitComponent.cs
547
C#
using System; using System.Linq; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Input; namespace UITests.Windows_UI_Xaml_Controls.FrameTests; public sealed partial class FrameTests_RedPage : Page { public FrameTests_RedPage() { this.InitializeComponent(); } /// <inheritdoc /> protected override void O...
19.894737
58
0.769841
[ "Apache-2.0" ]
HavenDV/uno
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/FrameTests/FrameTests_RedPage.xaml.cs
380
C#
/* Copyright (c) 2017 Marcin Szeniak (https://github.com/Klocman/) Apache License Version 2.0 */ using System; using System.IO; using Klocman.Resources; using Klocman.Tools; using UninstallTools.Properties; namespace UninstallTools.Startup.Normal { /// <summary> /// Starup entries st...
32.797619
116
0.520327
[ "Apache-2.0" ]
swipswaps/Bulk-Crap-Uninstaller
source/UninstallTools/Startup/Normal/StartupEntry.cs
5,510
C#
using Microsoft.Azure.Management.ResourceManager; using Microsoft.Azure.Management.ResourceManager.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WebApp.Operations; using WebApp.Providers.Templates; namespace AzureRenderHub.WebApp.Arm.Deploying { pub...
40.707317
134
0.618334
[ "MIT" ]
Azure/azure-render-farm-manager
src/AzureRenderHub/AzureRenderHub.WebApp/Arm/Deploying/DeploymentCoordinator.cs
5,009
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
26.307692
153
0.503899
[ "MIT" ]
ScriptBox99/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/model/AndroidDeviceOwnerPlayStoreMode.cs
1,026
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; namespace Demo.Shared.Models.User { public class RegisterRequest { [Required] [EmailAddress] [Display(Name = "Email")] ...
28.457143
125
0.631526
[ "MIT" ]
MukeshBisht/Demo
Demo.Shared/Models/User/RegisterRequest.cs
998
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.Immutable; using System.Globalization; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CShar...
55.333333
245
0.707307
[ "Apache-2.0" ]
20chan/roslyn
src/Compilers/CSharp/Portable/Errors/MessageProvider.cs
15,274
C#
using System; using System.Drawing; using System.ComponentModel; using System.Collections.Generic; using FastReport.Utils; using System.Windows.Forms; using System.Drawing.Drawing2D; using System.Drawing.Design; namespace FastReport { /// <summary> /// Base class for all bands. /// </summary> public ab...
34.027804
175
0.486349
[ "MIT" ]
ammogcoder/FastReport
FastReport.Base/BandBase.cs
35,491
C#
using System; namespace Umbraco.Core.Services.Changes { [Flags] public enum ContentTypeChangeTypes : byte { None = 0, Create = 1, // item type has been created, no impact RefreshMain = 2, // changed, impacts content (adding property or composition does NOT) RefreshOther = 4...
27
94
0.634568
[ "MIT" ]
AndersBrohus/Umbraco-CMS
src/Umbraco.Core/Services/Changes/ContentTypeChangeTypes.cs
407
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiClass(nativeType: typeof(aws.LambdaFunction), fullyQualifiedName: "aws.LambdaFunction", parametersJson: "[{\"name\":\"scope\",\"type\":{\"fqn\":\"constructs.Construct\"}},{\"name\":\"id\",\"type\":{\"primitive\":\"...
38.787819
307
0.588918
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/LambdaFunction.cs
19,743
C#
 namespace NextGenSoftware.Holochain.HoloNET.Client.MessagePack { public class BoolHandler : ITypeHandler { public object Read(Format format, FormatReader reader) { if(format.IsFalse) return false; if(format.IsTrue) return true; if(format.IsNil) return default(bool); throw new FormatException(this, f...
21.75
62
0.726437
[ "CC0-1.0" ]
HirenBodhi/Our-World-OASIS-API-HoloNET-HoloUnity-And-.NET-HDK
NextGenSoftware.Holochain.HoloNET.Client.MessagePack/TypeHandlers/BoolHandler.cs
437
C#
using Jobs; using NPC; namespace Pipliz.Mods.BaseGame.Construction { using JSON; [AreaJobDefinitionAutoLoader] public class ConstructionAreaDefinition : AbstractAreaJobDefinition { public ConstructionAreaDefinition () : base() { base.UsedNPCType = NPCType.GetByKeyNameOrDefault("pipliz.constructor"); ba...
26.538462
117
0.692754
[ "Unlicense" ]
BrightExistence/ColonySurvival
gamedata/mods/Pipliz/BaseGame/src/BuilderDigger/ConstructionAreaDefinition.cs
1,382
C#
namespace Assets.Scripts.Events { using System; using System.Collections; using Assets.Scripts.Components; /// <summary> /// Navigation event arguments. /// </summary> public class NavigationEventArgs : EventArgs { /// <summary> /// Gets or sets the previous view. /// </summary> /// <value>The previo...
24.527778
51
0.636467
[ "MIT" ]
BrettMStory/MatchJoy
MatchJoyUnity/Assets/Scripts/Events/NavigationEventArgs.cs
885
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.663265
161
0.632617
[ "Apache-2.0" ]
EbstaLimited/aws-sdk-net
sdk/src/Services/Translate/Generated/Model/Internal/MarshallTransformations/OutputDataConfigUnmarshaller.cs
3,397
C#
using System; using System.Collections.Generic; using System.Text; namespace BeetleX.ConcurrentTest { public class StatisticTag { public StatisticTag(string label) { ID = label.GetHashCode(); Label = label; mDetail = new long[3600 * 24 * 10]; } ...
24.013889
131
0.441874
[ "Apache-2.0" ]
DomoYao/ConcurrentTest
BeetleX.ConcurrentTest/StatisticTag.cs
1,731
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("Gi...
38.763158
84
0.75017
[ "Apache-2.0" ]
Keepun/GitTools
GitLineTrim/Properties/AssemblyInfo.cs
1,476
C#