content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VHVisualisation { public class ImageExtractor { string path; List<Result> loaded; Size imgSize = new Si...
38.66055
152
0.534884
[ "MIT" ]
ixometac/VHVisualization
SearchEngine/ImageExtractor.cs
4,216
C#
using Khernet.UI.IoC; using System; using System.Collections.Concurrent; using System.Collections.ObjectModel; using System.Linq; namespace Khernet.UI.Cache { public class ChatCache : IChatList { /// <summary> /// Contains the chat list of users. /// </summary> private Concurre...
33.608696
163
0.602199
[ "MIT" ]
lemalcs/Khernet
Khernet.UI/Khernet.UI.Presentation/Cache/ChatCache.cs
3,094
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Diagnostics.ContractsLight; using System.Linq.Expressions; namespace BuildXL.Cache.ContentStore.Interfaces.Results { /// <summa...
35.544974
117
0.50387
[ "MIT" ]
AzureMentor/BuildXL
Public/Src/Cache/ContentStore/Interfaces/Results/ErrorResult.cs
6,718
C#
using AutoMapper; using Sfa.Tl.Matching.Application.Mappers.Resolver; using Sfa.Tl.Matching.Domain.Models; using Sfa.Tl.Matching.Models.ViewModel; namespace Sfa.Tl.Matching.Application.Mappers { public class ServiceStatusHistoryMapper : Profile { public ServiceStatusHistoryMapper() { ...
39.277778
151
0.695898
[ "MIT" ]
SkillsFundingAgency/tl-matching
src/Sfa.Tl.Matching.Application/Mappers/ServiceStatusHistoryMapper.cs
709
C#
using qBittorrentTray.Core; using System; using System.Collections.Generic; using System.IO; using System.IO.Pipes; using System.Reflection; using System.Threading; using System.Windows; namespace qBittorrentTray { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial clas...
23.795918
79
0.607204
[ "MIT" ]
teug91/qBittorrentTray
qBittorrentTray/App.xaml.cs
2,334
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Modularity.Core.Configurations; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespa...
34.58
122
0.670908
[ "MIT" ]
enisn/AspNetCore.Modularity
src/Modularity.AspNetCore/Configuration/ConfigurationExtensions.cs
1,731
C#
using System.Collections.Generic; using System.Collections.ObjectModel; namespace Trollbridge.WebApi.Areas.HelpPage.ModelDescriptions { public class EnumTypeModelDescription : ModelDescription { public EnumTypeModelDescription() { Values = new Collection<EnumValueDescription>(); ...
27.466667
76
0.711165
[ "Apache-2.0" ]
trollbridge/trollbridge-webapi
src/Trollbridge.WebApi/Areas/HelpPage/ModelDescriptions/EnumTypeModelDescription.cs
412
C#
using UnityEditor; using UnityEngine; namespace AutoCustomEditor { public class TextureAreaItemDrawer : SerializedPropertyItemDrawerBase { private float _width; private float _height; public TextureAreaItemDrawer(ItemParameter parameter, SerializedObject target) : base(parameter, targ...
27.965517
164
0.638718
[ "MIT" ]
Tanakancolle/AutoCustomEditor
Assets/GUICustomEditor/Editor/Item/ItemDrawer/SerializedPropertyItemDrawers/TextureAreaItemDrawer.cs
813
C#
// // Copyright (c) Microsoft Corporation. All rights reserved. // namespace Microsoft.CortexM3OnCMSISCore.Drivers { using ChipsetModel = Microsoft.DeviceModels.Chipset.CortexM3; public abstract class InterruptController : ChipsetModel.Drivers.InterruptController { } }
19.6
88
0.748299
[ "MIT" ]
NETMF/llilum
Zelig/Zelig/RunTime/DeviceModels/CortexM3OnCMSIS-Core/HardwareModel/Drivers/InterruptController.cs
296
C#
// // HttpResponse.cs // // Author: // Martin Baulig <martin.baulig@xamarin.com> // // Copyright (c) 2014 Xamarin Inc. (http://www.xamarin.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // i...
31.227979
129
0.717604
[ "MIT" ]
stefb965/web-tests
Xamarin.WebTests.Framework/Xamarin.WebTests.HttpFramework/HttpResponse.cs
6,031
C#
// © 2021 Steve Cheng. // See LICENSE.txt for copyright licensing of this work. using System; using System.Runtime.CompilerServices; namespace GoldSaucer.BTree { internal static partial class BTreeCore { /// <summary> /// Delete an entry at the given index in a node without regard ...
52.309365
119
0.478182
[ "MIT" ]
SteveKCheng/BTreeDotNet
BTree/BTree.Delete.cs
31,284
C#
namespace Teference.Zoho.Api { #region Namespace using Newtonsoft.Json; #endregion internal sealed class ZsAddonJson : ZsErrorJson { [JsonProperty("addon")] public ZsAddon Addon { get; set; } } }
17.071429
51
0.627615
[ "MIT" ]
teference/zoho-dotnet
source/Zoho.Api/Internals/ZsAddonJson.cs
241
C#
using System.Diagnostics; namespace DataGridExtensions { using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Contracts; using System.Linq; using System.Windows; using System.Windows.Cont...
42.856448
222
0.609799
[ "MIT" ]
anwar-moj/DataGridExtensions
DataGridExtensions/DataGridFilterColumnControl.cs
17,616
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Immutable; using System.IO; namespace Microsoft.Dnx.Compilation.CSharp { internal static class SnkUtils ...
36.727273
117
0.582611
[ "Apache-2.0" ]
aspnet/DNX
src/Microsoft.Dnx.Compilation.CSharp.Common/SnkUtils.cs
3,234
C#
#region using System; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Security.Cryptography; using System.Text; using System.Threading; #endregion namespace ESS.Framework.Common.Utilities { /// <summary> /// Represents an ObjectId /// </summary> [Serializable] p...
31.95122
98
0.610687
[ "Apache-2.0" ]
wh-ess/ess
Framework/ESS.Framework.Common/Utilities/ObjectId.cs
1,312
C#
#region License // Copyright 2022 AppMotor Framework (https://github.com/skrysmanski/AppMotor) // // 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/lice...
28.539823
148
0.529302
[ "Apache-2.0" ]
skrysmanski/AppWeave
src/AppMotor.Core/Colors/CmykColor.cs
6,452
C#
using MediatR; using Artemis.Web.Shared.EventUpdates; namespace Artemis.Web.Server.EventUpdates { public class GetEventUpdate : IRequest<EventUpdate> { public int EventId { get; set; } public int UpdateId { get; set; } public int OrganizationId { get; set; } } }
25.916667
56
0.643087
[ "MIT" ]
joro550/Artemis
Artemis/Artemis.Web/Server/EventUpdates/GetEventUpdate.cs
313
C#
// Copyright (c) Russlan Akiev. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace IdentityBase { using System; using IdentityBase.Services; using IdentityServer4.Services; using IdentityServer4.Stores; ...
30.851064
108
0.567586
[ "Apache-2.0" ]
IdentityBaseNet/IdentityBase
src/IdentityBase.Shared/Startup/StartupDataLayer.cs
1,450
C#
using System; using System.Collections.Generic; using Game_Snake.Helpers; using Game_Snake.Interface; using Game_Snake.Interface.LinkedList.Helpers; namespace Game_Snake { public class Snake : IDrawable { public Snake(Possition headPossition, Action spawnFood) { this.SpawnFood = sp...
27.156863
97
0.485199
[ "MIT" ]
StefanPetrov7/CSharpAdvanceModule
WorkShop/Game_Snake/Snake.cs
2,772
C#
using System; using System.Linq; using NUnit.Framework; namespace JetBlack.Monads.Test { [TestFixture] public class PromiseNoArgsTest { [Test] public void CanResolveSimplePromise() { var promise = Promise.Resolved(); var completed = 0; promise.T...
26.201914
108
0.455754
[ "MIT" ]
rob-blackbourn/JetBlack.Monads
JetBlack.Monads.Test/PromiseNoArgsTest.cs
27,383
C#
using OrchardCore.DisplayManagement.Manifest; [assembly: Theme( Name = "The Agency Theme", Author = "The Orchard Team", Website = "http://orchardproject.net", Version = "2.0.0", Description = "A theme adapted for agency websites." )]
25.5
56
0.670588
[ "BSD-3-Clause" ]
AlexGuedes1986/FutbolCubano
src/OrchardCore.Themes/TheAgencyTheme/Manifest.cs
255
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...
36.120482
120
0.658105
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/GlueDataBrew/Generated/Model/Internal/MarshallTransformations/StatisticsConfigurationMarshaller.cs
2,998
C#
/** * Point.cs * Copyright 2020 Innovatics Inc. 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...
24.482051
136
0.572825
[ "MIT" ]
edragoev1/pdfjet
net/pdfjet/Point.cs
14,322
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Xunit.Sdk; namespace Xunit { // Similar to WpfFactAttribute https://github.com/xunit/samples.xunit/blob/969d9f7e887836f01a6c52...
39.8125
151
0.77865
[ "Apache-2.0" ]
Chatina73/AspNetCore-Tooling
src/Razor/test/Microsoft.VisualStudio.Editor.Razor.Test.Common/Xunit/ForegroundFactAttribute.cs
639
C#
//--------------------------------------------------------------------------- // // File: TextContainerChangeEventArgs.cs // // Description: The arguments sent when a Change event is fired in a TextContainer. // //--------------------------------------------------------------------------- using System; namespace Syst...
26.107143
178
0.462654
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/wpf/src/Framework/System/Windows/Documents/TextContainerChangeEventArgs.cs
3,655
C#
namespace Dev.DevKit.Shared.Entities { public partial class UII_savedsession { #region --- PROPERTIES --- //public DateTime? DateTime { get { return GetAliasedValue<DateTime?>("c.birthdate"); } } #endregion #region --- STATIC METHODS --- #endregion } }
18.294118
97
0.588424
[ "MIT" ]
Kayserheimer/Dynamics-Crm-DevKit
test/v.2.12.31/TestAllEntities/All-DEMO/Dev.DevKit.Shared/Entities/UII_savedsession.cs
313
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...
40.671429
109
0.586758
[ "Apache-2.0" ]
brudo/activemq-nms-amqp
test/Apache-NMS-AMQP-Test/ConnectionFactoryTest.cs
5,696
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 ...
36.560976
82
0.757839
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-r-kvstore/R_kvstore/Transform/V20150101/SwitchNetworkResponseUnmarshaller.cs
1,499
C#
using System; namespace MediatR.Dynamic.Example.Test { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
19.3125
69
0.614887
[ "Apache-2.0" ]
BMGDigitalTech/MediatR.Dynamic
src/Example/MediatR.Dynamic.Example.Test/WeatherForecast.cs
309
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; // ReSharper disable CompareOfFloatsByEqualityOperator namespace ImageFramework.Utility { public struct Float2 { public float X; public flo...
26.22973
67
0.457754
[ "MIT" ]
hnjm/ImageViewer
ImageFramework/Utility/Float2.cs
3,884
C#
/* * Copyright 2018 JDCLOUD.COM * * 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...
27.35
94
0.657526
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Kms/Client/EncryptExecutor.cs
1,995
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
43.289474
220
0.68693
[ "ECL-2.0", "Apache-2.0" ]
chivandikwa/pulumi-aws
sdk/dotnet/WafV2/Inputs/WebAclRuleStatementOrStatementStatementAndStatementStatementNotStatementStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs.cs
1,645
C#
// This is an independent project of an individual developer. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com using System; using NetExtender.Types.Network; namespace NetExtender.Utilities.IO { public class UrlUtilities { public stat...
30.354839
175
0.599362
[ "MIT" ]
Rain0Ash/NetExtender
NetExtender.Core/Utilities/IO/UrlUtilities.cs
941
C#
////////////////////////////////////////////////////////////////////////// // Criacao...........: 06/2014 // Sistema...........: Loja Virtual // Analistas.........: Marilene Esquiavoni & Denny Paulista Azevedo Filho // Desenvolvedores...: Marilene Esquiavoni & Denny Paulista Azevedo Filho // Copyright.........: Marile...
32.708333
76
0.569427
[ "MIT" ]
MDsolucoesTI/LojaVirtual
MD.LojaVirtual.Web.V2/App_Start/FilterConfig.cs
787
C#
using Authorization; using Authorization.Models; using Moq; using System.Collections.Generic; namespace Functions.Tests.Mocks { internal static class MockIAccessTokenValidator { internal static Mock<IAccessTokenValidator> Get() { var mock = new Mock<IAccessTokenValidator>(MockBeh...
26.571429
111
0.657258
[ "MIT" ]
yuriys-kentico/ConsultingTransfers
Functions.Tests/Mocks/MockIAccessTokenValidator.cs
746
C#
using System; using System.Collections.Generic; using EventFly.Aggregates.Snapshot; using EventFly.Tests.Data.Abstractions; namespace EventFly.Tests.Data.Domain.Snapshots { public class TestAggregateSnapshot : IAggregateSnapshot<TestAggregate, TestAggregateId> { public List<TestModel> Tests { get; } ...
22.703704
91
0.597064
[ "MIT" ]
Sporteco/EventFly
test/EventFly.TestHelpers/Data/Domain/Snapshots/TestAggregateSnapshot.cs
613
C#
#if !NETSTANDARD13 /* * 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 ...
37.538462
150
0.657494
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/AlexaForBusiness/Generated/Model/_bcl45+netstandard/SearchUsersPaginator.cs
3,416
C#
/** * Copyright 2018 IBM Corp. 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 applicable law o...
43.670429
253
0.579293
[ "Apache-2.0" ]
Juleffel/unity-sdk
Scripts/Services/Assistant/v2/Assistant.cs
19,346
C#
namespace DotNext.Net.Cluster.Consensus.Raft; /// <summary> /// Represents buffering options used for batch processing of log entries. /// </summary> public class RaftLogEntriesBufferingOptions : RaftLogEntryBufferingOptions { private const int DefaultMemoryLimit = 10 * 1024 * 1024; private int memoryL...
35.181818
103
0.669251
[ "MIT" ]
copenhagenatomics/dotNext
src/cluster/DotNext.Net.Cluster/Net/Cluster/Consensus/Raft/RaftLogEntriesBufferingOptions.cs
774
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...
45.004926
188
0.654335
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/test/Services/RestJsonTest/Generated/_bcl45/AmazonRestJsonTestClient.cs
18,272
C#
/* * This class was auto-generated from the API references found at * https://epayments-api.developer-ingenico.com/s2sapi/v1/ */ using Ingenico.Connect.Sdk.Domain.Definitions; using System; using System.Collections.Generic; namespace Ingenico.Connect.Sdk.Domain.Payment.Definitions { public class Order { ...
32.071429
90
0.603007
[ "MIT" ]
Ingenico-ePayments/connect-sdk-dotnet
connect-sdk-dotnet/Domain/Payment/Definitions/Order.cs
1,796
C#
using System.Collections.Generic; using System.Linq; using App.Models; using App.Models.Project; using App.Mongo; using MongoDB.Bson; using MongoDB.Driver; namespace App.Services { public interface IProjectService { ObjectId Create(ProjectModel model); void AddMember(ObjectId id, RegisterViewM...
31.173913
104
0.553231
[ "Apache-2.0" ]
yrshaikh/Project-Management
App/Services/IProjectService.cs
2,153
C#
using System.Runtime.Serialization; namespace Slack.NetStandard { public enum TextType { [EnumMember(Value="plain_text")] PlainText, [EnumMember(Value="mrkdwn")] Markdown } }
18.333333
40
0.622727
[ "MIT" ]
AbsShek/Slack.NetStandard
Slack.NetStandard/TextType.cs
222
C#
using System; using System.IO; using System.Threading; using EventStore.Common.Utils; using EventStore.Projections.Core.v8; using NUnit.Framework; namespace EventStore.Projections.Core.Tests.Services.v8 { [TestFixture] public class v8_internals { private static readonly string _jsPath = Path.Combi...
40.169231
139
0.564535
[ "Apache-2.0", "CC0-1.0" ]
BertschiAG/EventStore
src/EventStore.Projections.Core.Tests/Services/v8/v8_internals.cs
2,611
C#
using System; using System.Collections.Generic; using System.Text; namespace DasContract.Editor.Entities.Exceptions { public class InvalidProcessCountException : EditorContractException { public InvalidProcessCountException(string message) : base(message) { } public InvalidPro...
23.090909
117
0.685039
[ "MIT" ]
drozdik-m/DasContractEditor
DasContract.Editor/DasContract.Editor.Entities/Exceptions/InvalidProcessCountException.cs
510
C#
using System.Collections.Generic; namespace ITunesLibraryParser.Tests.TestObjects { public static class TestPlaylist { public static Playlist Create() { return new Playlist { PlaylistId = 456, Name = "Jazz Ballads", Tracks = new List<Track> { ...
34.071429
54
0.383648
[ "MIT" ]
mmedic/iTunesLibraryParser
ITunesLibraryParserTests/TestObjects/TestPlaylist.cs
956
C#
using System.Collections.Generic; using System.Composition; using System.Composition.Hosting; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using OmniSharp.Models; using OmniSharp.Services; namespace OmniSharp.Roslyn { [Export] public class ProjectEventForwarder { private readonly Omn...
35.568966
146
0.530538
[ "MIT" ]
razzmatazz/omnisharp-roslyn
src/OmniSharp.Roslyn/ProjectEventForwarder.cs
4,126
C#
using System; using System.Diagnostics; using System.IO; using System.Security.Cryptography; using System.Windows; using Microsoft.Win32; namespace LoginManager { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { private const...
33.153285
109
0.489432
[ "Unlicense" ]
ololonly/LoginManager
LoginManager/MainWindow.xaml.cs
4,564
C#
namespace PetsLostAndFoundSystem.Domain.Common.Models { using Reporting.Models.Reports; using FluentAssertions; using Xunit; public class EntitySpecs { [Fact] public void EntitiesWithEqualIdsShouldBeEqual() { // Arrange var first = new Pet(PetType.Do...
28.37931
97
0.526731
[ "MIT" ]
Dimitvp/PetsLostAndFoundSystem-DDD
PetsLostAndFoundSystem/Domain/Common/Models/Entity.Specs.cs
1,648
C#
using idb.Backend.DataAccess.Models; using idb.Backend.Providers; using MongoDB.Driver; using System.Collections.Generic; using System.Threading.Tasks; using Tag = idb.Backend.DataAccess.Models.Tag; namespace idb.Backend.DataAccess.Repositories { public interface IUserRepository : IBaseRepository<User> { ...
41.883721
160
0.65769
[ "MIT" ]
pavlepiramida/idb.Backend
src/DataAccess/Repositories/Repositories.cs
3,604
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...
41.612903
182
0.608786
[ "Apache-2.0" ]
Bynder/aws-sdk-net
sdk/src/Services/Redshift/Generated/Model/Internal/MarshallTransformations/CreateClusterParameterGroupRequestMarshaller.cs
3,870
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 IdentityServer4.Models; using Microsoft.Extensions.Logging; using System.Threading.Tasks; using IdentityServer4.Stores; using IdentityS...
39.223214
115
0.548372
[ "Apache-2.0" ]
mathewspjacob/IdentityServer4
src/IdentityServer4/Services/DefaultPersistedGrantService.cs
4,395
C#
using System; using System.Collections.Generic; using System.Text; namespace CStubMKGui.ViewModel { public class ViewModelBase : ViewModelCommonBase { /// <summary> /// Action to notify the result ok. /// </summary> public Action<string, string> NotifyOk { get; set; ...
24.45
61
0.572597
[ "MIT" ]
CountrySideEngineer/CStubMk
dev/dev/CStubMKGui/ViewModel/ViewModelBase.cs
491
C#
using System; using System.Collections.Generic; using StackExchange.Redis.MultiplexerPool.Infra.Common; namespace StackExchange.Redis.MultiplexerPool.Infra.Collections { /// <summary> /// Extension methods for <see cref="IEnumerable{T}"/> /// </summary> internal static class EnumerableExtensi...
39.484848
138
0.537606
[ "MIT" ]
mataness/StackExchange.Redis.MultiplexerPool
src/StackExchange.Redis.MultiplexerPool/Infra/Collections/EnumerableExtensions.cs
2,608
C#
using System; namespace q58 { class Program { static void Main(string[] args) { Console.WriteLine("Enter value of A :"); int a = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter value of B :"); int b = Convert.ToInt32(Cons...
36.766917
133
0.323926
[ "MIT" ]
muntahamaqsood/IT
Q58.cs
4,892
C#
/* * Lyzard Modeling and Simulation System * * Copyright 2019 William W. Westlake Jr. * * 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/LICENS...
30.991379
110
0.700695
[ "Apache-2.0" ]
wwestlake/Lyzard
ICSharpCode.AvalonEdit/Highlighting/Xshd/XshdColor.cs
3,597
C#
namespace Heat.Elements { public class LabelsElement : ILabelsElement { public string All { get { return "labels"; } } public string Icon { get { return "icon"; } } public ITextElement Text { get { return new TextElement(); } } } }
29.777778
70
0.608209
[ "MIT" ]
v-bright/Heat
Heat/Elements/LabelsElement.cs
270
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...
44.402778
188
0.636221
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/GuestConfiguration/V20210125/GuestConfigurationHCRPAssignment.cs
6,394
C#
using System; namespace Editor_Mono.Cecil { internal enum FieldDefinitionTreatment { None, Public } }
11.8
40
0.694915
[ "MIT" ]
2823896/cshotfix
CSHotFix_SimpleFramework/Assets/CSHotFixLibaray/Editor/Injector/MonoCecil/Mono.Cecil/FieldDefinitionTreatment.cs
118
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...
49.187778
143
0.648891
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/test/Services/AccessAnalyzer/UnitTests/Generated/Marshalling/AccessAnalyzerMarshallingTests.cs
177,076
C#
using LocationAPI.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace LocationAPI.Controllers { [ApiController] [Route("[controller]")] public class LocationController : ControllerBase { private readonly ILogger<LocationController> _logger; public Lo...
24.275862
69
0.585227
[ "MIT" ]
Depechie/OpenTelemetryGrafana
LocationAPI/Controllers/LocationController.cs
706
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> //---...
54.317073
151
0.649753
[ "MIT" ]
mmcdermott011/Fit.Natic
Fit.Natic/obj/Debug/netstandard2.0/MealLogPage.xaml.g.cs
2,227
C#
using System.Web; using System.Web.Mvc; namespace EPages { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
19.846154
80
0.651163
[ "MIT" ]
MHarisMumtaz/E-Pages
EPages/App_Start/FilterConfig.cs
260
C#
#pragma checksum "D:\ders\homeworks\OOP\Final\general_information_system\gis_final\gis_final\Views\TeacherFieldCourseResearchAssistants\Details.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "97dd3dc2934e6f7e6d7ba9bcb34b5bacd8ca600b" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNe...
60.866279
298
0.745821
[ "MIT" ]
YAVATAN-Official/oop_final
gis_final/obj/Debug/netcoreapp3.1/Razor/Views/TeacherFieldCourseResearchAssistants/Details.cshtml.g.cs
10,469
C#
using System; using System.Net; using System.Net.Http; using System.Web.Http.Controllers; using System.Web.Http.Filters; namespace WebApiDoodle.Web.Filters { public class RequireHttpsAttribute : AuthorizationFilterAttribute { public override void OnAuthorization(HttpActionContext actionContext...
29.619048
93
0.649518
[ "MIT" ]
WebAPIDoodle/WebAPIDoodle
src/WebApiDoodle.Web/Filters/RequireHttpsAttribute.cs
624
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
38.142857
194
0.752809
[ "ECL-2.0", "Apache-2.0" ]
chivandikwa/pulumi-aws
sdk/dotnet/WafV2/Outputs/WebAclRuleStatementRateBasedStatementScopeDownStatementOrStatement.cs
1,068
C#
// Copyright (c) Bottlenose Labs Inc. (https://github.com/bottlenoselabs). All rights reserved. // Licensed under the MIT license. See LICENSE file in the Git repository root directory for full license information. using System.Collections.Immutable; namespace C2CS.Contexts.ReadCodeC.Domain.Parse; public class Clang...
32.761905
118
0.757267
[ "MIT" ]
lithiumtoast/c-2-cs
src/cs/production/contexts/C2CS.Contexts.ReadCodeC/Domain/Parse/ClangArgumentsBuilderResult.cs
688
C#
using System.Data.Entity; using Walltage.Domain.Entities; namespace Walltage.Domain.Repositories { public class WallpaperRepository : Repository<Wallpaper> { public WallpaperRepository(DbContext context) : base(context) { } } }
19.857143
60
0.661871
[ "MIT" ]
abdurrahman/walltage
src/Walltage.Domain/Repositories/WallpaperRepository.cs
280
C#
using System; using System.IO; using net.r_eg.MvsSln.Projects; namespace MvsSlnTest._svc { internal sealed class TempPackagesConfig: PackagesConfig, IDisposable { public TempPackagesConfig(string path, PackagesConfigOptions options) : base(path, options) { } #regi...
18.763158
77
0.534362
[ "MIT" ]
3F/MvsSln
MvsSlnTest/_svc/TempPackagesConfig.cs
715
C#
using System.ComponentModel.DataAnnotations; namespace Accounts.Web.ViewModels.Account { public class LoginViewModel { [Required] public string Login { get; set; } [Required] public string Password { get; set; } public bool RememberMe { get; set; } } }
23.538462
45
0.630719
[ "MIT" ]
CWISoftware/accounts
src/Accounts.Web/ViewModels/Account/LoginViewModel.cs
308
C#
using HotelService.Domain; using MediatR; namespace HotelService.Infrastructure.Requests.CreateHotel; public record CreateHotelRequest(short Rooms, string Country, string City, string Address) : IRequest<Hotel?>;
35.666667
110
0.831776
[ "Apache-2.0" ]
jokk-itu/BookVacation
HotelService/HotelService.Infrastructure/Requests/CreateHotel/CreateHotelRequest.cs
214
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class MainMenuManager : MonoBehaviour { public GameObject newGamePanel; public GameObject GameDatabase; // Start is called before the first frame update void Start() { ...
22.325843
65
0.600403
[ "Apache-2.0" ]
Clara0428/Unity-2-RPG-Tempate
Assets/Main/Scripts/UI/MainMenuManager.cs
1,989
C#
using System.Collections; using NUnit.Framework; using Unity.InteractiveTutorials; using Unity.InteractiveTutorials.Tests; using UnityEditor; using UnityEngine; using UnityEngine.TestTools; using UnityEngine.Windows; namespace Unity.InteractiveTutorials.Tests { public class BuildStartedCriterionTests : CriterionT...
27.09434
86
0.623955
[ "MIT" ]
CristianCamilo04/tson1
trod1-game/Library/PackageCache/com.unity.learn.iet-framework@0.2.3-preview.1/Tests/Editor/BuildStartedCriterionTests.cs
1,438
C#
/* Copyright (c) 2003-2006 Niels Kokholm and Peter Sestoft 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, me...
35.163265
94
0.592861
[ "MIT" ]
TrevorDArcyEvans/EllieWare
Code/C5/C5/ViewSupport.cs
3,446
C#
using System; using System.Threading.Tasks; using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; using Avalonia.Rendering; using BEditor.Models; namespace BEditor.Views.ManagePlugins { public partial class ManagePluginsWindow : FluentWindow { public ManagePluginsWindow() { ...
18.857143
59
0.655303
[ "MIT" ]
tomo0611/BEditor
src/executable/BEditor.Avalonia/Views/ManagePlugins/ManagePluginsWindow.axaml.cs
528
C#
using System; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; namespace RechargeSharp.Entities.Discounts { public class DiscountListResponse : IEquatable<DiscountListResponse> { public bool Equals(DiscountListResponse other) { if (ReferenceEquals(null, o...
30.068182
93
0.618292
[ "MIT" ]
mattgenious/RechargeSharp
RechargeSharp/Entities/Discounts/DiscountListResponse.cs
1,325
C#
//------------------------------------------------------------------------------ // <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> //----------------------------------------...
35.029412
93
0.532326
[ "MIT" ]
HotcakesCommerce/core
Website/DesktopModules/Hotcakes/Core/Admin/Marketing/Actions/AdjustOrderTotalEditor.ascx.designer.cs
1,193
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Northwind.Dal.Models { [Table("Product", Schema = "Production")] public partial class Product { public Product() { BillOfMa...
46.521008
97
0.653902
[ "BSD-3-Clause", "MIT" ]
MalikWaseemJaved/presentations
.NETCore/WhatsNewInDotNetCore3/Northwind.DAL/Models/Product.cs
5,538
C#
namespace Operations { using System; public class StartUp { public static void Main(string[] args) { IMathOperations mathOperations = new MathOperations(); Console.WriteLine(mathOperations.Add(2, 3)); Console.WriteLine(mathOperations.Add(2.2, 3.3, 5.5))...
24.058824
68
0.586797
[ "MIT" ]
vesy53/SoftUni
C# Advanced/C# OOP/LabAndExercises/09.PolymorphismLab/Operations/StartUp.cs
411
C#
/*** Copyright (C) 2018-2019. dc-koromo. All Rights Reserved. Author: Koromo Copy Developer ***/ using Koromo_Copy.Fs; using Koromo_Copy.Interface; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Koromo_Copy.Co...
33.582222
128
0.451826
[ "MIT" ]
Terkiss/Koromo-Copy
Koromo Copy/Console/Utility/AutoConsole.cs
7,618
C#
namespace MagazineProject.Web.Models.Manage { using System.ComponentModel.DataAnnotations; public class SetPasswordViewModel { [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] [Di...
36.277778
110
0.656968
[ "MIT" ]
Xzq70r4/MagazineProject-Rewritten
Source/Web/MagazineProject.Web.Models/Manage/SetPasswordViewModel.cs
655
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...
25.674419
81
0.599638
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Portal/V20200901Preview/Outputs/ViolationResponseResult.cs
1,104
C#
using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using Common.Constants; using Common.Interfaces; namespace Common.Structs { public abstract class BaseCharacter : ICharacter { public abstract int Build { get; set; } public ulong Guid { get;...
32.559211
117
0.53041
[ "MIT" ]
Ghaster/AIO-Sandbox
Common/Structs/BaseCharacter.cs
4,951
C#
using System.Net; using System.Net.Mail; using System.Configuration; using System.Threading.Tasks; namespace SalveMariaJf.Models { public class Email { SmtpClient smtpClient; public Email() { smtpClient = new SmtpClient() { Host = "smtp.gmai...
30.727273
136
0.535503
[ "MIT" ]
filipejesse/HelpButton
SalveMariaJf/SalveMariaJf/Models/Email.cs
1,356
C#
using myClient.service; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Web.Services; using System.Windows.Forms; namespace myClient { public partial class Client : Form { ...
36.610526
101
0.549741
[ "MIT" ]
manglaneso/Webberservice
client/myClient/Form1.cs
3,480
C#
using System; using System.Text.RegularExpressions; using IotHome.RaspberryPi.Interface; using IotHome.RaspberryPi.Interface.Sensor; using IotHome.RaspberryPi.Model; using IotHome.RaspberryPi.Model.Exception; namespace IotHome.RaspberryPi.Implementation.Sensor { public class DS18B20Thermometer : ISensor { ...
33.52
123
0.624702
[ "MIT" ]
jjankowski87/IotHome.RaspberryPi
IotHome.RaspberryPi.Implementation/Sensor/DS18B20Thermometer.cs
1,678
C#
using System; using System.Runtime.InteropServices; using System.Text; namespace Ankh.Chocolatey { static class NativeMethods { const string MsiDll = "Msi.dll"; [DllImport(MsiDll, CharSet = CharSet.Unicode, ExactSpelling = true)] public extern static uint MsiOpenPackageW(st...
32.380952
127
0.611765
[ "Apache-2.0" ]
AnkhSVN/AnkhSVN
src/tools/Ankh.Chocolatey/NativeMethods.cs
1,362
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; using TP.AutoDeploy.Extension; namespace TP.AutoDeploy.Models { public class UserMetadata { /// <summary> /// Gets or sets the common target. ...
26.768293
86
0.507062
[ "Unlicense" ]
phamtuanit/DeployProjectOutputExtensibility
src/DeployProjectOutputExtensibility/Models/UserMetadata.cs
2,197
C#
using System; using System.Collections.Generic; using System.Threading; using EasyNetQ.Producer; using EasyNetQ.Scheduler.Mongo.Core.Logging; using EasyNetQ.SystemMessages; using EasyNetQ.Topology; namespace EasyNetQ.Scheduler.Mongo.Core { public class SchedulerService : ISchedulerService { private re...
37.805085
127
0.578121
[ "MIT" ]
Eu-JinOoi/EasyNetQ
Source/EasyNetQ.Scheduler.Mongo.Core/SchedulerService.cs
4,463
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Schema; using System.Xml.Serialization; namespace Workday.FinancialManagement { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStep...
22.29078
136
0.739421
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.FinancialManagement/Get_Budget_Fringe_Rate_Tables_ResponseType.cs
3,143
C#
using Domain.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Persistence.Configurations { public class UserFollowingConfiguration : IEntityTypeConfiguration<UserFollowing> { public void Configure(EntityTypeBuilder<UserFollowing> builder) ...
34.346154
98
0.628219
[ "MIT" ]
krzysztoftalar/Instagram
src/Persistence/Configurations/UserFollowingConfiguration.cs
895
C#
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // namespace Microsoft.PowerShell.EditorServices.VSCode.CustomViews { /// <summary> /// Contains details about the HTML content to be /// displayed in an...
29.875
101
0.599372
[ "MIT" ]
APA2527/PowerShellEditorServices
src/PowerShellEditorServices.VSCode/CustomViews/HtmlContent.cs
956
C#
//----------------------------------------------------------------------------- // Copyright : (c) Chris Moore, 2020 // License : MIT //----------------------------------------------------------------------------- namespace Z0 { using System; using System.Runtime.CompilerServices; using static Root...
37.403226
125
0.539457
[ "BSD-3-Clause" ]
0xCM/z0
src/calc/src/calcs/abs.cs
2,319
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Threading.Tasks; using System.Timers; using Avalonia; using Avalonia.Controls; using Avalonia.LogicalTree; using Avalonia.Controls.Primitives; using Avalonia.Threading; using Material.Styles.Models; n...
33.337143
125
0.550394
[ "MIT" ]
hahn-kev/Material.Avalonia
Material.Styles/SnackbarHost.xaml.cs
5,836
C#
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //============================================================================= // // Class: SynchronizationLockException // // Purpose: Wait(), Notify() or NotifyAll() was called from an unsynchronized // block...
33.2
109
0.558735
[ "MIT" ]
sphinxlogic/Singularity-RDK-2.0
base/Applications/Runtime/Full/System/Threading/SynchronizationLockException.cs
1,328
C#
// <Area> Generics - Expressions - specific catch clauses </Area> // <Title> // catch type parameters bound by Exception or a subclass of it in the form catch(T) // </Title> // <RelatedBugs> </RelatedBugs> //<Expects Status=success></Expects> // <Code> using System; public class GenException<T> : Exception {} ...
18.164384
86
0.655354
[ "MIT" ]
CyberSys/coreclr-mono
tests/src/baseservices/exceptions/generics/typeparameter012.cs
1,326
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq.Expressions; using Microsoft.EntityFrameworkCore.Diagnostics...
51.573171
135
0.687228
[ "Apache-2.0" ]
theolymp/efcore
test/EFCore.Tests/ModelBuilding/ModelBuilderTestBase.cs
29,603
C#
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution...
39.547619
110
0.588802
[ "Apache-2.0" ]
nanshuiyu/pytools
Python/Product/Profiling/ProvideFileFilterAttribute.cs
1,663
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...
33.411765
103
0.653169
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/WAFV2/Generated/Model/Internal/MarshallTransformations/JsonBodyMarshaller.cs
2,840
C#
using FluiTec.AppFx.Data.NMemory.Repositories; using FluiTec.AppFx.Data.NMemory.UnitsOfWork; using FluiTec.AppFx.Data.Repositories; using FluiTec.AppFx.Data.TestLibrary.Entities; using Microsoft.Extensions.Logging; namespace FluiTec.AppFx.Data.TestLibrary.Repositories { /// <summary> /// A memory date time du...
36.25
139
0.686207
[ "Apache-2.0", "MIT" ]
FluiTec/FluiTec.AppFx.Data
src/tests/FluiTec.AppFx.Data.TestLibrary/Repositories/NMemoryDateTimeDummyRepository.cs
872
C#