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 DemoWebApi.Controllers.Client; using System; using Xunit; namespace IntegrationTests { public class BasicHealthIntegration { [Fact] public void TestNullHttpClientThrows() { Assert.Throws<ArgumentNullException>(() => new Values(null, new Uri("http://www.fonlow.com"))); ...
22.333333
107
0.563847
[ "MIT" ]
anthrax3/webapiclientgen
Tests/IntegrationTestsShared/BasicHealthIntegration.cs
605
C#
using System; using Xunit; using Exercism.Tests; public class WeighingMachineTests { [Fact] public void Set_weight_and_get_weight() { var wm = new WeighingMachine(); wm.InputWeight = 60m; Assert.Equal(60m, wm.InputWeight, precision: 3); } [Fact] public void Negative_wei...
24.795181
79
0.620505
[ "Apache-2.0" ]
ErikSchierboom/exercism
csharp/weighing-machine/WeighingMachineTests.cs
2,058
C#
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using Wyam.Common.Configuration; using Wyam.Common.Documents; using Wyam.Common.Meta; using Wyam.Common.Modules; using Wyam.Common.Execution; using Wyam.Core.Documents; using Wyam.Core.Meta; namespace Wyam.Core.Modu...
42.284615
134
0.592323
[ "MIT" ]
deanebarker/Wyam
src/core/Wyam.Core/Modules/Control/Paginate.cs
5,499
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SDPCRL.IBussiness; using SDPCRL.COM; using SDPCRL.CORE; namespace SDPCRL.BLL.BUS { public class BllBus { #region 私有属性 private IDALBus _bus = null; private IDALBus _dalBus { ...
30.297297
150
0.600357
[ "Apache-2.0" ]
zyylonghai/BWYSDP
SDPCRL.BLL.BUS/BllBus.cs
2,278
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/directmanipulation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; ...
38.075472
145
0.716056
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
tests/Interop/Windows/DirectX/um/directmanipulation/IDirectManipulationManager3Tests.cs
2,020
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. namespace Develappers.BillomatNet.Types { /// <summary> /// Represents the tax of an invoice. /// </sum...
25.628571
71
0.628763
[ "MIT" ]
DevelappersGmbH/BillomatNet
Develappers.BillomatNet/Types/InvoiceTax.cs
899
C#
using System; using System.Collections.Generic; using System.Linq; namespace LinqLib.Sequence { /// <summary> /// Provides methods that return a subset of provided sequences. /// </summary> public static class Subset { #region Take Pattern /// <summary> /// Takes all elements that are in odd in...
47.137226
185
0.674719
[ "Apache-2.0" ]
AmirLiberman/LinqLib
src/LinqLib/Sequence/Subset.cs
32,291
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...
21.163934
136
0.73354
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.FinancialManagement/Customer_Payment_Application_Rule_SetObjectIDType.cs
1,291
C#
/* * Payment Gateway API Specification. * * The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. * * The version of the OpenAPI document:...
73.98818
390
0.709812
[ "MIT" ]
mrtristan/DotNet
src/Org.OpenAPITools/Api/CurrencyConversionApi.cs
31,297
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> //--...
37.650735
169
0.557172
[ "MIT" ]
tonyrein/HolidayLabelsAndLists_Public
DAO/Properties/Resources.Designer.cs
10,243
C#
namespace WebPlex.Services.Impl.Configuration { using WebPlex.Core.Domain.Settings; public interface IContactFormSettingsService : IDbSettingsService<ContactFormSettings> {} }
35.8
90
0.837989
[ "MIT" ]
m-sadegh-sh/WebPlex
src/WebPlex.Services/Impl/Configuration/IContactFormSettingsService.cs
181
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using NuGet.Packaging.Core; namespace Sleet { /// <summary> /// A virtual catalog that is not written to the feed. /// </summary> public class VirtualCatalog : ISleetService, IRootIn...
31.382353
170
0.614808
[ "MIT" ]
biohazard999/Sleet
src/SleetLib/Services/VirtualCatalog.cs
3,201
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
58.228261
355
0.690312
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Models/Generated/MacOSEnterpriseWiFiConfiguration.cs
5,357
C#
using System; namespace _8._1.StringManipulator { class Program { static void Main(string[] args) { string text = Console.ReadLine(); string input = Console.ReadLine(); while (input != "End") { string[] command = input.Split(); ...
33.606061
92
0.317403
[ "MIT" ]
DeyanDanailov/SoftUniCSharpFundamentals
repos/9.1.StringManipulator1/Program.cs
2,220
C#
#pragma warning disable 649 using System; using System.Diagnostics; using UnityEngine; using UnityEngine.UI; using Debug = UnityEngine.Debug; namespace TriLib { namespace Samples { /// <summary> /// Represents the asset loader UI component. /// </summary> [RequireComponent(type...
42.234711
195
0.501252
[ "MIT" ]
davtamay/DecisionIntervention
DecisionIntervention/Assets/TriLib/TriLib/Samples/Scripts/AssetLoaderWindow.cs
25,554
C#
using Amazon.DynamoDBv2.DataModel; using Amazon.DynamoDBv2.DocumentModel; using System; namespace FinancialTransactionsApi.V1.Infrastructure.Converters { // TODO: This should go in a common NuGet package... /// <summary> /// Converter for enums where the value stored should be the enum value name (not the...
26.382353
104
0.580825
[ "MIT" ]
LBHackney-IT/financial-transactions-api
FinancialTransactionsApi/V1/Infrastructure/Converters/DynamoDbBooleanConverter.cs
897
C#
using Microsoft.Azure.NotificationHubs; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using NotificationHub.Sample.API.Models; using NotificationHub.Sample.API.Models.Dashboard; using NotificationHub.Sample.API.Models.Notifications; using System; using System.Collections.Generic; using System....
37.333333
142
0.613147
[ "Apache-2.0" ]
deepakrout/azure-notificationhubs-samples
NotificationHubSample/NotificationHub.Sample.API/NotificationHub.Sample.API/Services/Notifications/NotificationHubService.cs
6,496
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...
40.713287
149
0.560031
[ "Apache-2.0" ]
KyleSchoonover/avro
lang/csharp/src/apache/test/AvroGen/AvroGenHelper.cs
11,644
C#
namespace MassTransit.Azure.ServiceBus.Core { using System; using System.Threading.Tasks; public interface MessageLockContext { Task Complete(); Task Abandon(Exception exception); } }
15.928571
43
0.668161
[ "ECL-2.0", "Apache-2.0" ]
jahav/MassTransit
src/MassTransit.Azure.ServiceBus.Core/MessageLockContext.cs
223
C#
using System; using System.Collections.Generic; using VBScriptTranslator.StageTwoParser.ExpressionParsing; namespace VBScriptTranslator.UnitTests.Shared.Comparers { public class BuiltInValueExpressionSegmentComparer : IEqualityComparer<BuiltInValueExpressionSegment> { public bool Equals(BuiltI...
30.965517
106
0.621381
[ "MIT" ]
Magicianred/vbscripttranslator
UnitTests/Shared/Comparers/BuiltInValueExpressionSegmentComparer.cs
900
C#
using ECS; using UnityEngine; namespace Module.Components { public struct FollowTarget : IComponent { public GameObject Target; public bool HasBeenCalmDown; public FollowTarget(GameObject target, bool hasBeenCalmDown) { Target = target; HasBeenCalmDown = hasBeenCalmDown; } } }
17.588235
62
0.752508
[ "MIT" ]
Cewein/pecs-man
Assets/src/Tradional/Components/FollowTarget.cs
301
C#
using Microsoft.AspNet.SignalR.Client; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ReportLogRun { class Program { public static System.Random _random = new System.Random(); public static IList<string> _statuses =...
30.19403
150
0.539792
[ "CC0-1.0" ]
robcube/SingalRSilently
d3ssignalr/ReportLogRun/Program.cs
2,025
C#
/** * Copyright 2017-2021 Plexus Interop Deutsche Bank AG * SPDX-License-Identifier: Apache-2.0 * * 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/...
33.115385
75
0.730546
[ "Apache-2.0" ]
deutschebank/Plexus-interop
desktop/src/Plexus.Interop.Protocol.Contracts/IProtocolImplementation.cs
863
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GUIPopup : MonoBehaviour { float startY; public float appearDistance; public float appearDelay = 0; float delayTimer; public float lerpSpeed = 10; public bool affectedBySpeed; // Start is called before the first fr...
26.65625
122
0.724502
[ "MIT" ]
Suhbahstiejaan/Nichiware
Assets/Scripts/GUI/GUIPopup.cs
855
C#
//----------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // // The MIT License (MIT) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (...
41.628571
100
0.646534
[ "MIT" ]
Bhaskers-Blu-Org2/Appsample-Photosharing
PhotoSharingApp/PhotoSharingApp.Universal/Views/CategoriesChooserDialog.xaml.cs
2,916
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.45082
155
0.612548
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/src/Services/DAX/Generated/Model/Internal/MarshallTransformations/DescribeSubnetGroupsRequestMarshaller.cs
4,447
C#
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class ModCache { public static void RescanModCacheFolder() { Directory.CreateDirectory(Serializer.GetModsCacheFolder()); string[] modFiles = Directory.GetF...
29.190476
137
0.565525
[ "MIT" ]
HalcyonAlcedo/MHWModManager
MHW_ModManager/Classes/ModCache.cs
1,841
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace SysmonConfigPusher { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application ...
18.444444
42
0.710843
[ "MIT" ]
LaresLLC/SysmonConfigPusher
App.xaml.cs
334
C#
using System; using System.Text; namespace MarkdownToDocx { internal static class ExceptionTrapper { public static void UnhandledExceptionTrapper(object sender, UnhandledExceptionEventArgs e) { var ex = (Exception)e.ExceptionObject; var exceptionInfoText = BuildExceptio...
30.541667
98
0.517053
[ "MIT" ]
tksh164/MarkdownToDocx
MarkdownToDocx/MarkdownToDocx/ExceptionTrapper.cs
1,468
C#
using EasyAbp.Abp.WeChat.MiniProgram.Infrastructure.Models; using System; using System.Collections.Generic; using System.Text; namespace EasyAbp.Abp.WeChat.MiniProgram.Services.Broadcast.Response { public class DeleteInRoomGoodsResponse : IMiniProgramResponse { public string ErrorMessage { get; set; ...
23.375
68
0.743316
[ "MIT" ]
Jy1233456/Abp.WeChat
src/MiniProgram/EasyAbp.Abp.WeChat.MiniProgram/Services/Broadcast/Response/DeleteInRoomGoodsResponse.cs
376
C#
namespace SkuckCardGameCP.Cards; public class SkuckCardGameCardInformation : RegularTrickCard, IDeckObject { }
55
77
0.863636
[ "MIT" ]
musictopia2/GamingPackXV3
CP/Games/SkuckCardGameCP/Cards/SkuckCardGameCardInformation.cs
110
C#
using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using Data.DbClient.Fluent.Enums; using Data.DbClient.Fluent.Extensions; using Data.DbClient.Fluent.Model; namespace Data.DbClient.Fluent.Select { /* https://github.com/thoss/select-query-builder*/ public class Qu...
36.005263
284
0.565366
[ "MIT" ]
JohnPKosh/IODataBlock
IODataBlock/Data.DbClient/Fluent/Select/QueryBuilderBase.cs
20,525
C#
namespace MassEffect.Engine.Commands { using System; using Exceptions; using Interfaces; public class PlotJumpCommand : Command { public PlotJumpCommand(IGameEngine gameEngine) : base(gameEngine) { } public override void Execute(string[] commandArgs) ...
30.25
107
0.620753
[ "MIT" ]
pirocorp/C-OOP-Basics-
16. Projects/03. Mass Effect/MassEffect/Engine/Commands/PlotJumpCommand.cs
1,091
C#
using UnityEngine; namespace ThinkingAnalytics.Utils { public class TD_Log { private static bool enableLog; public static void EnableLog(bool enabled) { enableLog = enabled; } public static void d(string message) { if (enableLog) ...
19.459459
50
0.447222
[ "Apache-2.0" ]
ThinkingDataAnalytics/unity-sdk
Assets/ThinkingAnalytics/Utils/TD_Log.cs
722
C#
using Okra; using Okra.Navigation; using Okra.Sharing; using System; using System.Collections.Generic; using System.Composition; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.ApplicationModel.Resources; using Windows.UI.ApplicationSettings; namespace Okra.TodoSample { public cl...
38.781818
161
0.715893
[ "Apache-2.0" ]
OkraFramework/Okra-Todo
Okra-Todo/AppBootstrapper.cs
2,135
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Spellbook.Models { public class SpellList { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int SpellListId { get; set; } ...
23.888889
62
0.695349
[ "MIT" ]
1804-Apr-USFdotnet/project2-spellbook2
SpellbookAPI/Spellbook/Spellbook.Models/SpellList.cs
432
C#
//***** AUTO-GENERATED - DO NOT EDIT *****// using BlueprintCore.Blueprints.Configurators.Items.Equipment; using BlueprintCore.Utils; using Kingmaker.Blueprints; using Kingmaker.Blueprints.Items.Shields; using System; namespace BlueprintCore.Blueprints.Configurators.Items.Shields { /// <summary> /// Implements co...
35.676768
114
0.648641
[ "MIT" ]
TylerGoeringer/WW-Blueprint-Core
BlueprintCore/BlueprintCore/Blueprints/Configurators/Items/Shields/BaseItemShield.cs
3,532
C#
using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; namespace OpenCvSharp { /// <inheritdoc /> /// <summary> /// File Storage Node class /// </summary> public class FileNodeIterator : DisposableCvObject, IEquatable<File...
31.352941
152
0.529369
[ "BSD-3-Clause" ]
DiomedesDominguez/opencvsharp
src/OpenCvSharp/Modules/core/FileNodeIterator.cs
6,931
C#
using System; using Masb.Yai.Markers; namespace Masb.Yai { [Obsolete] public class RelativeTypeChangerExpressionFilter : TypeChangerExpressionFilter { protected override Type ChangeType(ExpressionFilterContext context, Type type) { var context2 = this.GetContext(context, type); ...
36.131579
103
0.628551
[ "Apache-2.0" ]
masbicudo/InterSiteLogin
Masb.Yai/RelativeTypeChangerExpressionFilter.cs
1,373
C#
using NHapi.Base.Parser; using NHapi.Base; using NHapi.Base.Log; using System; using System.Collections.Generic; using NHapi.Model.V271.Segment; using NHapi.Model.V271.Datatype; using NHapi.Base.Model; namespace NHapi.Model.V271.Group { ///<summary> ///Represents the CSU_C09_STUDY_PHASE Group. A Group is an ordered c...
30.345865
157
0.705897
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
AMCN41R/nHapi
src/NHapi.Model.V271/Group/CSU_C09_STUDY_PHASE.cs
4,036
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.Threading.Tasks; using Microsoft.EntityFrameworkCore.TestUtilities; using Xunit.Abstractions; namespace Microsoft.EntityFrameworkCore.Query { public class OwnedQuer...
62.686371
885
0.649348
[ "MIT" ]
SpaceChina/efcore
test/EFCore.SqlServer.FunctionalTests/Query/OwnedQuerySqlServerTest.cs
76,352
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using BTCPayServer.Data; using BTCPayServer.Events; using BTCPayServer.Logging; using BTCPayServer.Models; using BTCPayServer.Payments...
51.664671
296
0.615322
[ "MIT" ]
badever/btcpayserver
BTCPayServer/Controllers/InvoiceController.cs
17,258
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
31.658537
119
0.651772
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/BotService/V20180712/Inputs/EnterpriseChannelPropertiesArgs.cs
1,298
C#
using Domain.Common; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Text; namespace Domain.Entities { [Table("PRODUTO")] public class Product : AuditableBaseEntity { [Column("Nome")] public string Name { get; set; } ...
22.84
51
0.602452
[ "MIT" ]
MarcusLoyola/CleanArchitecture.WebApi
Domain/Entities/Product.cs
573
C#
using System.Threading.Tasks; using JetBrains.Annotations; namespace CreativeCoders.Core.Caching { [PublicAPI] public interface ICachedValue<TValue> { Task<TValue> GetValueAsync(); TValue Value { get; } } }
19.076923
41
0.657258
[ "Apache-2.0" ]
CreativeCodersTeam/Core
source/Core/CreativeCoders.Core/Caching/ICachedValue.cs
248
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...
51.952055
676
0.673434
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/MarketplaceCatalog/Generated/AmazonMarketplaceCatalogDefaultConfiguration.cs
7,585
C#
namespace BuilderScenario { [TagAlias("debugLog")] public class LogMessageJob : IBuildJob { public string Message { get; set; } public void Run(IBuildLogger logger) { logger.Log(Message); } } }
20.153846
44
0.553435
[ "MIT" ]
CTAPbIuKODEP/BuilderScenario
src/Jobs/LogMessageJob.cs
262
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 // 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 // 이러한 특성 값을 변경하세요. [assembly: AssemblyTitle("Interface_practice")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: ...
28.810811
56
0.702627
[ "MIT" ]
leeseojune53/BOJ
Cs_learn/Interface_practice/Properties/AssemblyInfo.cs
1,499
C#
using Contact.Entity.Concrete; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace contact.Business.Abstract { public interface IContactService { string AddContactMessage(MessageModel messageModel); } }
19.933333
60
0.769231
[ "Apache-2.0" ]
burakhalefoglu/ASP.NET-5.0.OcelotGatewayExamplewithSimpleMicroservices
Services/Contact.Service/contact.Business/Abstract/IContactService.cs
301
C#
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace Microsoft.Azure.Cosmos.Encryption { using System; using System.Collections.Generic; using System.IO; usi...
41.530612
214
0.603686
[ "MIT" ]
Arithmomaniac/azure-cosmos-dotnet-v3
Microsoft.Azure.Cosmos.Encryption/src/EncryptionContainer.cs
52,912
C#
// The MIT License (MIT) // Copyright 2015 Siney/Pangweiwei siney@yeah.net // // 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 right...
25.716626
135
0.516387
[ "Apache-2.0" ]
365082218/meteor_original_ios
Assets/Plugins/Slua_Managed/LuaState.cs
42,383
C#
using Microsoft.AspNetCore.Mvc; using System.Linq; using System.Threading.Tasks; using IdentityServer.Admin.Core.Constants; using IdentityServer.Admin.Core.Entities.Clients; using IdentityServer.Admin.Infrastructure.Mappers; using IdentityServer.Admin.Models.Client; using IdentityServer.Admin.Services.Client; using Id...
31.923077
117
0.619578
[ "MIT" ]
Olek-HZQ/IdentityServerManagement
src/IdentityServer.Admin/Controllers/ClientClaimController.cs
3,322
C#
using UnityEngine; public class Shadow : MonoBehaviour { }
10.166667
35
0.754098
[ "Apache-2.0" ]
BoringStudio/BurningBear
Assets/Scripts/Utils/Shadow.cs
63
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using System.Windows.Input; using System.Windows.Media; using System.Windows.Threading; using log4net; using lo...
29.372549
143
0.561582
[ "MIT" ]
Mechavian/node-service
src/NodeService.UI/ViewModels/NodeServiceViewModel.cs
5,994
C#
/* * Copyright (C) 2004 Bruno Fernandez-Ruiz <brunofr@olympum.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 in the Software without restriction, * including without limitation the rights to u...
20.663004
80
0.621876
[ "MIT" ]
olympum/caffeine
src/Caffeine.Caffeinator/Class.cs
5,641
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 02.05.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
28.116667
150
0.537937
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Query/Operators/SET_001/LessThanOrEqual/Complete/NullableInt32/NullableInt64/TestSet_504__param__02__VN.cs
3,376
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("OO...
38.135135
84
0.746279
[ "MIT" ]
PowerfullChild/CSharp-OOP
OOPPrinciples Part1/OOPPrinciples Part1/Properties/AssemblyInfo.cs
1,414
C#
using System.Collections.Generic; using System.Collections.ObjectModel; namespace HelloWorld.SOLID.WebApi.Areas.HelpPage.ModelDescriptions { public class EnumTypeModelDescription : ModelDescription { public EnumTypeModelDescription() { Values = new Collection<EnumValueDescription>()...
27.8
76
0.71223
[ "MIT" ]
jcrowegitHu8/HellowWorld.SOLID.Example
HelloWorld.SOLID.WebApi/Areas/HelpPage/ModelDescriptions/EnumTypeModelDescription.cs
417
C#
#region Using directives using Cureos.Measures; using Cureos.Measures.Quantities; using Sharp3D.Math.Core; using treeDiM.StackBuilder.Basics; #endregion namespace treeDiM.Basics { public partial class UnitsManagerEx { public static Vector2D ConvertLengthFrom(Vector2D value, UnitsManager.UnitSystem ...
45.963636
139
0.660601
[ "MIT" ]
metc/StackBuilder
Sources/TreeDim.StackBuilder.Basics/UnitsManager.cs
2,530
C#
using System; using System.Net; namespace BuildsAppReborn.Contracts.Models { public class DataResponse<T> { public T Data { get; set; } public Boolean IsSuccessStatusCode { get { if (StatusCode >= HttpStatusCode.OK) { ...
21.515152
72
0.491549
[ "MIT" ]
lgrabarevic/BuildsAppReborn
BuildsAppReborn.Contracts/Models/DataResponse.cs
712
C#
using GovUk.Education.ExploreEducationStatistics.Common.Extensions; using Newtonsoft.Json; namespace GovUk.Education.ExploreEducationStatistics.Data.Model { public class LocalAuthority : IObservationalUnit { public string Code { get; set; } [JsonIgnore] public string OldCode { get; set; } ...
27.137255
71
0.570809
[ "MIT" ]
benoutram/explore-education-statistics
src/GovUk.Education.ExploreEducationStatistics.Data.Model/LocalAuthority.cs
1,384
C#
using System; using System.IO; using System.Linq; namespace AoC { class Program { static void Main(string[] args) { var useTestData = args.Contains("--test"); var app = Bootstrap(useTestData); app.Solver.FindCorners ( ...
22.305556
108
0.49066
[ "MIT" ]
David-Rushton/AdventOfCode-Solutions
2020/Day20/Program.cs
805
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class Brick : MonoBehaviour { public BrickData Data; protected ItemDropController itemDrop; protected PointController pointController; protected ParticleSpawner particleSpawner; [SerializeField] pro...
25.472222
71
0.643948
[ "MIT" ]
kamitul/Breakout
Assets/Scripts/Bricks/Brick.cs
1,836
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Authorization; using EventFinder.Models.Repositories; using EventFinder.Models.Entity; namespace EventFinder.Controllers { [Authorize()] public class Setting : Controller { public IRepositoryBase<User> UserRepository {get;} public ...
23.580645
71
0.589603
[ "Apache-2.0" ]
NoskovEugene/EventFinder
Controllers/Setting.cs
731
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TO8CHTX_GraceNote { class TSSEntry { public uint[] Entry; public String StringJPN; public String StringENG; private int StringJPNIndex; private int StringENGIndex; p...
25.901961
113
0.576079
[ "MIT" ]
AdmiralCurtiss/ToVPatcher
Scripts/tools/Scenario_GraceNote_Mark360/TO8CHTX_GraceNote/TSSEntry.cs
1,323
C#
namespace System { /// <summary> /// Contains event data of a specified type <typeparamref name="T"/>. /// </summary> public class EventArgs<T> : EventArgs { /// <summary> /// Exposes the constructor as a delegate. /// </summary> public static readonly Func...
28.478261
96
0.519084
[ "MIT" ]
TylerKendrick/Sugar.Core
Sugar/EventArgs.cs
657
C#
using System; using System.Collections.Generic; using System.Text; using System.Numerics; using Slipe.MtaDefinitions; using Slipe.Shared.Utilities; namespace Slipe.Shared.Vehicles { /// <summary> /// Represents the set of all sirens on a vehicle /// </summary> public class SharedSirens { p...
29.496296
198
0.509292
[ "Apache-2.0" ]
Citizen01/Slipe-Core
Slipe/Core/Source/SlipeShared/Vehicles/SharedSirens.cs
3,984
C#
using System; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Sitecore.Demo.Init.Extensions; using Sitecore.Demo.Init.Jobs; using Sitecore.Demo.Init.Model; namespace Sitecore.Demo.Init.Services { public sealed class J...
42
121
0.646062
[ "MIT" ]
MadhavJ/Sitecore.Demo.Edge
docker/build/init/Services/JobManagementManagementService.cs
2,135
C#
/* This file is licensed 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 required by applicable law or agreed to in writing, software di...
33.991935
105
0.588612
[ "Apache-2.0" ]
bodewig/xmlunit.net
src/main/net-core/Input/CommentLessSource.cs
4,215
C#
// // Copyright (c) Microsoft. 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 l...
34.403226
111
0.654477
[ "Apache-2.0" ]
ailn/azure-sdk-for-net
src/ResourceManagement/SiteRecovery/SiteRecovery.Tests/ScenarioTests/SiteTests.cs
2,135
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Gov.Lclb.Cllb.Interfaces { using Microsoft.Rest; using Models; using System.Collections; using System.Co...
51.390698
556
0.590823
[ "Apache-2.0" ]
BrendanBeachBC/jag-lcrb-carla-public
cllc-interfaces/Dynamics-Autorest/AllowedfileextensionbulkdeletefailuresExtensions.cs
11,049
C#
using System.Text.Json.Serialization; namespace Topdev.Bittrex { public class NewTransfer { [JsonPropertyName("toSubaccountId")] public string ToSubaccountId { get; set; } [JsonPropertyName("requestId")] public string RequestId { get; set; } [JsonPropertyName("currenc...
25.36
65
0.648265
[ "MIT" ]
tomaspavlic/bittrex-api-clien
src/Entities/NewTransfer.cs
634
C#
using CsvHelper.Configuration; namespace CsvHelperDemo { public class PersonMapByIndex : ClassMap<PersonV1> { public PersonMapByIndex() { Map(p => p.FirstName).Index(0); Map(p => p.LastName).Index(1); Map(p => p.Age).Index(2); Map(p => p.IsActive...
21.875
54
0.531429
[ "MIT" ]
duongntbk/CsvHelperDemo
CsvHelperDemo/PersonMapByIndex.cs
352
C#
using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; using NUnit.Framework; public class Perf12 { //GetByTypeAndDamageRange [TestCase] public void GetByTypeAndDamageRangeOrderedByDamageThenById() { IArena ar = new RoyaleArena(); List<Battlecard>...
27.291667
88
0.570229
[ "Apache-2.0" ]
KostadinovK/Data-Structures
12-Exam-Prep/Exam-20.05.2018/02-RoyalArena/RoyaleArena.Tests/Performance/Perf12.cs
1,312
C#
using FailTracker.Web.Domain; using Microsoft.AspNet.Identity.EntityFramework; namespace FailTracker.Web.Data { public class ApplicationDbContext : IdentityDbContext<ApplicationUser> { public ApplicationDbContext() : base("DefaultConnection") { } protected override void Dispose(bool disposin...
21.555556
71
0.685567
[ "MIT" ]
mcarcini/FailTracker
FailTracker.Web/Data/ApplicationDbContext.cs
390
C#
using Haley.Abstractions; using Haley.Enums; using Haley.Events; using Haley.Models; using Haley.MVVM; using Haley.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace NotificationDemo { public class Dialog...
21.525424
73
0.594488
[ "MIT" ]
TheHaleyProject/HaleyMVVM
_TESTING/NotificationDemo/DialogVM.cs
1,272
C#
namespace Tailwind.Traders.ImageClassifier.Api.Mlnet { public struct TensorFlowModelSettings { // input tensor name public const string inputTensorName = "Placeholder"; // output tensor name public const string outputTensorName = "loss"; } }
24
60
0.670139
[ "MIT" ]
4villains/TailwindTraders-Backend-1
Source/Services/Tailwind.Traders.ImageClassifier.Api/Mlnet/TensorFlowModelSettings.cs
290
C#
// This file may be edited manually or auto-generated using IfcKit at www.buildingsmart-tech.org. // IFC content is copyright (C) 1996-2018 BuildingSMART International Ltd. using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentMo...
45.6
396
0.795322
[ "Unlicense", "MIT" ]
BuildingSMART/IfcDoc
IfcKit/schemas/IfcProductExtension/IfcRelContainedInSpatialStructure.cs
2,052
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Maui.Trading.Model { public class TimeRange : ClosedInterval<DateTime> { public static readonly TimeRange All = new TimeRange( DateTime.MinValue, DateTime.MaxValue ); public TimeRange( D...
22.944444
102
0.62954
[ "BSD-3-Clause" ]
bg0jr/Maui
src/Trading/Maui.Trading/Model/TimeRange.cs
415
C#
using dnsl48.SGF.Model; using dnsl48.SGF.Model.Property.Info; using dnsl48.SGF.Types; using Xunit; namespace dnsl48.SGF.Tests.Model.Property { public class BlackPlayerNameSuite { [Fact] public void TestColour() { Assert.Equal(Colour.Black, new BlackPlayerName(new SimpleText(...
24.655172
106
0.598601
[ "Apache-2.0", "MIT" ]
dnsl48/sharp-sgf-tools
SGF.Test/src/Model/Property/BlackPlayerNameSuite.cs
715
C#
// ***************************************************************************** // // © Component Factory Pty Ltd 2017. All rights reserved. // The software and associated documentation supplied hereunder are the // proprietary information of Component Factory Pty Ltd, 13 Swallows Close, // Mornington, Vic 3931...
30.728261
94
0.575875
[ "BSD-3-Clause" ]
ALMMa/Krypton
Source/Krypton Components/ComponentFactory.Krypton.Ribbon/ButtonSpec/ButtonSpecMdiChildFixed.cs
2,830
C#
using NExpect.Interfaces; // ReSharper disable ClassNeverInstantiated.Global // ReSharper disable MemberCanBePrivate.Global namespace NExpect.Implementations { internal class StringPropertyAnd : ExpectationContext<string>, IStringPropertyContinuation { public string Actual { get; } ...
34.272727
94
0.70557
[ "BSD-3-Clause" ]
tammylotter/NExpect
src/NExpect/Implementations/StringPropertyAnd.cs
1,131
C#
namespace TSST.NetworkNode.View { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow { public MainWindow() { InitializeComponent(); } } }
16.8
45
0.547619
[ "MIT" ]
atlasner/IPMPLSNetworkEmulator
TSST/TSST.NetworkNode/View/MainWindow.xaml.cs
254
C#
using System.Web; using System.Web.Mvc; namespace SecurityClaimsIntro { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
19.428571
80
0.665441
[ "MIT" ]
jespirit/bti420winter2017
Week_07/SecurityClaimsIntro/SecurityClaimsIntro/App_Start/FilterConfig.cs
274
C#
using System; using System.Collections.Generic; using System.IO; using System.Threading; using System.Threading.Tasks; using Telegram.Bot.Args; using Telegram.Bot.Requests.Abstractions; using Telegram.Bot.Types; using Telegram.Bot.Types.Enums; using Telegram.Bot.Types.InlineQueryResults; using Telegram.Bot.Types.InputF...
67.497684
546
0.663769
[ "MIT" ]
NA-002/NT7TelegramBot
src/Telegram.Bot/ITelegramBotClient.cs
131,170
C#
using System.ComponentModel.DataAnnotations; using Abp.Auditing; using Abp.Authorization.Users; using Abp.AutoMapper; using ImproveX.Authorization.Users; namespace ImproveX.Users.Dto { [AutoMapTo(typeof(User))] public class CreateUserDto { [Required] [StringLength(AbpUserBase.MaxUserNameLe...
26.315789
58
0.65
[ "MIT" ]
zchhaenngg/IWI
src/ImproveX.Application/Users/Dto/CreateUserDto.cs
1,002
C#
using Abp.Domain.Entities; using System; using System.Collections.Generic; using System.Text; namespace ABPsinglePageProj1.Entities { public class Department:Entity<Guid> { public string Name { get; set; } public string Description { get; set; } public string EstablishDate { get; set; }...
24.875
68
0.683417
[ "MIT" ]
Heba-Ahmed-Magdy/ABPSPProj1
aspnet-core/src/ABPsinglePageProj1.Core/Entities/Department.cs
400
C#
using System; using System.Threading.Tasks; using Microsoft.ApplicationInsights; using Microsoft.ApplicationInsights.Extensibility; using Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Diagnostics; using Microsoft.AspNetCore.Ho...
45.736196
120
0.617572
[ "Apache-2.0" ]
kalebpederson/AppInsightsTest
AppInsightsTest/Startup.cs
7,455
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Aspose.Cells.Charts; namespace Aspose.Cells.Examples.CSharp.Articles { public class FindDataPointsInPieBar { public static void Run() { // ExStart:FindDataPointsInPieBar // The p...
33.210526
115
0.547808
[ "MIT" ]
Aspose/Aspose.Cells-for-.NET
Examples/CSharp/Articles/FindDataPointsInPieBar.cs
1,895
C#
using Codeable.Foundation.Common; using Codeable.Foundation.Common.Aspect; using Codeable.Foundation.Common.Daemons; using Codeable.Foundation.Core.Caching; using Codeable.Foundation.Core.Unity; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threadi...
28.743119
108
0.5391
[ "MIT" ]
DanMasterson1/stencil
Source/Stencil.Server/Stencil.Primary/Health/Daemons/HealthReportDaemon.cs
3,135
C#
 #region using statements using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; #endregion namespace DataJuggler.UltimateHelper.Core { #region class DateHelper /// <summary> /// This class has methods to help parse date safely. ///...
35.029014
114
0.449034
[ "MIT" ]
DataJuggler/DataJuggler.UltimateHelper.Core
DateHelper.cs
18,112
C#
using System; using System.Xml.Serialization; namespace NPOI.OpenXmlFormats.Wordprocessing { [Serializable] [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IncludeInSchema = false)] public enum ItemsChoiceType27 { [XmlEnum("http://schemas.openxmlformats.org/officeDocument/200...
21.714286
111
0.778509
[ "MIT" ]
iNeverSleeeeep/NPOI-For-Unity
NPOI.OpenXmlFormats.Wordprocessing/ItemsChoiceType27.cs
912
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("StudentManger")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: Assembly...
25.594595
56
0.715945
[ "Apache-2.0" ]
soojade/StudentManger
StudentManger/Properties/AssemblyInfo.cs
1,288
C#
using LolApp.Models; using LolApp.Services; using Prism.Commands; using Prism.Navigation; using Prism.Services; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Windows.Input; using Xamarin.Essentials; namespace LolApp.ViewModels ...
35.543478
219
0.636086
[ "MIT" ]
DemetrioQ/LolApp
LolApp/LolApp/ViewModels/SummonerDetailViewModel.cs
4,907
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using lm.Comol.Modules.Standard.Glossary.Domain; namespace lm.Comol.Modules.Standard.Glossary.Model { public class EditGroup { public GlossaryGroup Group { get; set; } public Boolean CanShowDetailedLi...
21.105263
56
0.690773
[ "MIT" ]
EdutechSRL/Adevico
3-Business/3-Modules/lm.Comol.Modules.Standard/Glossary/Model/EditGroup.cs
403
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...
70.890365
288
0.677617
[ "MIT" ]
KurnakovMaksim/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs
21,338
C#
using System; using System.Net; using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; using Serilog; namespace MarketingBox.Bridge.SimpleTrading.Service.Services.Integrations.Contracts.Responses { public static class HttpResponseMessageExtensions { public static async Task<Respons...
44.317073
125
0.586131
[ "MIT" ]
MyJetMarketingBox/MarketingBox.Bridge.SimpleTrading.Service
src/MarketingBox.Bridge.SimpleTrading.Service/Services/Integrations/Contracts/Responses/HttpResponseMessageExtensions.cs
3,634
C#
using System.Reflection; using System.Runtime.InteropServices; using System.Security; // 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("Orchard.Pub...
37.805556
85
0.731815
[ "BSD-3-Clause" ]
akovsh/Orchard
build/MsDeploy/Orchard/Modules/Orchard.PublishLater/Properties/AssemblyInfo.cs
1,364
C#
/* * Copyright (c) 2019 Samsung Electronics Co., Ltd 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 a...
42.455285
155
0.593578
[ "Apache-2.0" ]
agnelovaz/TizenFX
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsInfo.cs
15,668
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...
35.076087
174
0.628757
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/JourneyCustomMessageUnmarshaller.cs
3,227
C#