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 Basket.API.Entities; using System.Threading.Tasks; namespace Basket.API.Respositories { public interface IBasketRepository { Task<ShoppingCart> GetBasket(string userName); Task<ShoppingCart> UpdateBasket(ShoppingCart basket); Task DeleteBasket(string userName); } }
23.846154
61
0.725806
[ "MIT" ]
kwler123/AspNetMicroservices
src/Services/Basket/Basket.API/Respositories/IBasketRepository.cs
312
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...
35.582418
101
0.646387
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/SimpleSystemsManagement/Generated/Model/ListResourceDataSyncRequest.cs
3,238
C#
using Microsoft.Extensions.Configuration; namespace DeckHub.Shows.Services { public class IdentityPaths : IIdentityPaths { private readonly string _prefix; public IdentityPaths(IConfiguration configuration) { _prefix = configuration["Runtime:IdentityPathPrefix"];...
30.92
77
0.588616
[ "MIT" ]
DeckHubApp/Shows
src/DeckHub.Shows/Services/IdentityPaths.cs
775
C#
// GraphView // // Copyright (c) 2015 Microsoft Corporation // // All rights reserved. // // MIT License // // 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 restrict...
31.351724
101
0.592829
[ "MIT" ]
GerHobbelt/GraphView
GraphView/TSQL Syntax Tree/WSchemaObjectName.cs
4,548
C#
#region header // -------------------------------------------------------------------------------------------------------------------- // <copyright company="Robert Vandehey" file="ParsingException.cs"> // MIT License // // Copyright(c) 2020 Robert Vandehey // // Permission is hereby granted, free of charge, to any ...
38.265306
119
0.620267
[ "MIT" ]
SynchroFeed/SynchroFeed
src/SynchroFeed.Library/Exceptions/ParsingException.cs
1,877
C#
#region License // Copyright 2004-2012 John Jeffery <john@jeffery.id.au> // // 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 // // Un...
25.933333
84
0.712725
[ "Apache-2.0" ]
jjeffery/Cesto
src/Cesto.Data/Data/SqlQuery.cs
1,558
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="NetworkingPeer.cs" company="Exit Games GmbH"> // Part of: Photon Unity Networking (PUN) // </copyright> // ------------------------------------------------------------------...
41.781242
334
0.563142
[ "MIT" ]
wendellpbarreto/glitch
Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs
164,829
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using dotnetcorecrud.DomainModel; using dotnetcorecrud.Processors; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Caching.Memory; namespace dotnetcorecrud.Controllers { [Route("api/[controller]"...
32.626761
99
0.597885
[ "Unlicense" ]
andremacdowell/dotnetcore-crud-api
src/Controllers/PeopleController.cs
4,635
C#
using System.Linq; namespace System.Windows.Forms { public static class ListViewExtensions { /// <summary> /// Move the selected items by <seealso cref="MoveDirection"/> /// </summary> /// <param name="sender">The ListView</param> /// <param name="direction">The move di...
35.019608
147
0.475364
[ "MIT" ]
SDClowen/SDUI
SDUI/Extensions/ListViewExtensions.cs
1,788
C#
using System.Dynamic; using ServiceStack.ServiceHost; using ServiceStack.ServiceInterface; using WebDavClientTest.csharp; namespace WebDavClientTest { [Route("/testwebdav")] public class WebdavClientDTO { public string davurl { get; set; } public string filename { get; set; } publ...
30.758065
150
0.575249
[ "MIT" ]
TomasKulhanek/west-life-wp6
wp6-virtualfolder/src/VFMetadata/WebDavClientTest/testui/WebDavClientService.cs
1,909
C#
/*using System; using System.Net.Http; using System.Net.Mime; using System.Text; using FakeItEasy; using FluentAssertions; using Xunit; namespace Dalion.HttpMessageSigning.SigningString { public class DigestHeaderAppenderTests { private readonly IBase64Converter _base64Converter; private readonly H...
38.111111
115
0.598761
[ "MIT" ]
DavidLievrouw/HttpMessageSigning
src/HttpMessageSigning.Tests/SigningString/DigestHeaderAppenderTests.cs
2,744
C#
#region YeaJur.Core.Handlers 4.0 /*** * 本代码版权归 侯兴鼎(YeaJur) 所有,All Rights Reserved (C) 2017 * CLR版本:4.0.30319.42000 * 唯一标识:caceaf9c-5a15-4ae7-b7b1-43b136ce8c47 ** * 所属域:DESKTOP-Q9MAAK4 * 机器名称:DESKTOP-Q9MAAK4 * 登录用户:houxi * 创建时间:2017/7/25 21:19:01 * 创建人:侯兴鼎(YeaJur) * E_mail:houxingding@hotmail.com ** * 命名...
31.849558
116
0.523896
[ "Apache-2.0" ]
YeaJur/YeaJur.Core
YeaJur.Core/Handlers/ExcelHandler.cs
7,842
C#
//----------------------------------------------------------------------------- // Copyright : (c) Chris Moore, 2020 // License : MIT //----------------------------------------------------------------------------- namespace Z0 { using System.Reflection; public interface IApiAssets : IAppService { ...
31.473684
116
0.483278
[ "BSD-3-Clause" ]
0xCM/z0
src/api/src/services/contracts/IApiAssets.cs
598
C#
#region License // Copyright (c) 2013, ClearCanvas Inc. // All rights reserved. // http://www.clearcanvas.ca // // This file is part of the ClearCanvas RIS/PACS open source project. // // The ClearCanvas RIS/PACS open source project is free software: you can // redistribute it and/or modify it under the terms of the ...
48.344526
196
0.621633
[ "MIT" ]
Sharemee/Dicom
ClearCanvas.Dicom/Tests/DicomPixelDataTests.cs
33,118
C#
using System; namespace CenterPoint { class Program { public static void Main(string[] args) { double p1x = double.Parse(Console.ReadLine()); double p1y = double.Parse(Console.ReadLine()); double p2x = double.Parse(Console.ReadLine()); double p2...
32.6
115
0.573006
[ "MIT" ]
AsenAsenow/SoftUni---Tech-Modile-Programing-Fundamentals
MethodsDebuggingAndTroubleshootingCode/CenterPoint/Program.cs
817
C#
using System.Linq; using Content.Shared.Body.Components; using Content.Shared.Body.Part; using Content.Shared.Damage; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.CustomControls; using Robust.Shared.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Localization; using static Rob...
35.032258
136
0.459484
[ "MIT" ]
AJCM-git/space-station-14
Content.Client/Body/UI/BodyScannerDisplay.cs
6,516
C#
#nullable enable using System; using System.Linq; using System.Text; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Text; using Svg.CodeGen.Skia; using Svg.Model; using Svg.Skia; namespace Svg.SourceGenerator.Skia { [Generator] public class SvgSourceGenerator : ISourceGenerator { privat...
40.563492
161
0.531403
[ "MIT" ]
inforithmics/Svg.Skia
src/Svg.SourceGenerator.Skia/SvgSourceGenerator.cs
5,111
C#
//------------------------------------------------------------------------------ // <auto-generated> // O código foi gerado por uma ferramenta. // Versão de Tempo de Execução:4.0.30319.42000 // // As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se // o código for gerado ...
41.958333
90
0.653426
[ "MIT" ]
Alexssandro-hub/Digital_InnovationOne
obj/Debug/net5.0/Revisao.AssemblyInfo.cs
1,016
C#
using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace IdentityServer.Services { // This class is used by the application to send email for account confirmation and password reset. // For more details see https://go.microso...
32.44
103
0.683107
[ "Apache-2.0" ]
chiennt1612/IdentityServer4-ID
Services/EmailSender.cs
811
C#
using System; using System.Data; using Microsoft.VisualStudio.TestTools.UnitTesting; using FluentAssertions; using SimpleETL.Extract; namespace SimpleETL.Tests { [TestClass] public class DelimitedFileReaderTests { [TestMethod] [TestCategory("Reader")] public void Delimited_File_Rea...
36.04717
113
0.529704
[ "MIT" ]
syedraihan/SimpleETL
SimpleETL.Tests/Extract/DelimitedFileReaderTests.cs
3,823
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
20.821429
40
0.698113
[ "MIT" ]
CACBridge/ChromeCAC
NativeApps/ChromeCAC.NET/Popup.xaml.cs
585
C#
// // Copyright (c) 2018 Rokas Kupstys // // 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, publ...
36.189189
80
0.742345
[ "MIT" ]
urho3d-archive/Urho3D-rebelfork
Source/Tools/Editor.Net/Tabs/TabInterfaces.cs
1,341
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.Collections.Specialized; using System.Globalization; using System.Linq; using System.Net.H...
40.457447
154
0.586817
[ "Apache-2.0" ]
anuraj/WebHooks
src/Microsoft.AspNet.WebHooks.Custom/WebHooks/WebHookManager.cs
11,411
C#
using System; using System.Security.Cryptography; using System.Text; using Cosmos.Conversions; // ReSharper disable once CheckNamespace namespace Cosmos.Security.Verification { internal partial class MdFunction { private class Md5Worker : IMessageDigestWorker { private readonly MdTy...
29.333333
91
0.508741
[ "Apache-2.0" ]
CosmosLoops/OneMore
src/Cosmos.Security.Verification/Cosmos/Security/Verification/MD/MdFunction.Worker5.cs
1,146
C#
using System; using System.Data; using System.IO; using ActiveQueryBuilder.Core; using ActiveQueryBuilder.Web.Core; using ActiveQueryBuilder.Web.Server; using ActiveQueryBuilder.Web.Server.Services; using ASP.NET_Core.Helpers; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsof...
41.93913
151
0.502384
[ "MIT" ]
ActiveDbSoft/active-query-builder-3-asp-net-core-samples-csharp
MVC/Controllers/LoadMetadataDemoController.cs
14,471
C#
namespace UblTr.Common { [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2...
51.090909
169
0.768683
[ "MIT" ]
enisgurkann/UblTr
Ubl-Tr/Common/CommonBasicComponents/RegisteredTimeType.cs
562
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // This source file is machine generated. Please do not change the code manually. using System; using System.Collections.Generic; usin...
29.63202
423
0.639234
[ "Apache-2.0" ]
Aliceljm1/openxml
DocumentFormat.OpenXml/src/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_diagram.cs
477,522
C#
using System; namespace SKIT.FlurlHttpClient.Wechat.OpenAI { /// <summary> /// <para>微信智能对话第三方接入 API 接口域名。</para> /// </summary> public static class WechatOpenAIThirdPartyEndpoints { /// <summary> /// 主域名(默认)。 /// </summary> public const string DEFAULT = "https://op...
22
72
0.588068
[ "MIT" ]
ZUOXIANGE/DotNetCore.SKIT.FlurlHttpClient.Wechat
src/SKIT.FlurlHttpClient.Wechat.OpenAI/WechatOpenAIThirdPartyEndpoints.cs
402
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 ...
33.892308
134
0.698593
[ "Apache-2.0" ]
bitType/aliyun-openapi-net-sdk
aliyun-net-sdk-green/Green/Model/V20180509/DeletePersonRequest.cs
2,203
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.285714
107
0.65632
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/KinesisFirehose/Generated/Model/RedshiftRetryOptions.cs
2,223
C#
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; namespace BlankApp.Desktop { /// <summary> /// This is the main type for your game. /// </summary> public class Game1 : Game { GraphicsDeviceManager graphics; SpriteBatch spr...
32.440476
132
0.58789
[ "MIT" ]
Adrriii/MonoGame
ProjectTemplates/DotNetTemplate/MonoGame.Templates.CSharp/content/BlankApp.DesktopGL/Game1.cs
2,727
C#
using FluentAssertions; using GitLabApiClient.Internal.Queries; using GitLabApiClient.Models.Groups.Requests; using Xunit; namespace GitLabApiClient.Test.Internal.Queries { public class GroupsQueryBuilderTest { [Fact] public void NonDefaultQueryBuilt() { var sut = new Group...
32.230769
74
0.445505
[ "MIT" ]
0x4D616E75/GitLabApiClient
test/GitLabApiClient.Test/Internal/Queries/GroupsQueryBuilderTest.cs
1,259
C#
// Copyright (c) 2013-2021 Jean-Philippe Bruyère <jp_bruyere@hotmail.com> // // This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) using System; using System.Diagnostics; using Crow; namespace CrowEditBase { [DebuggerDisplay("{" + nameof(GetDebuggerDisplay) + "(),nq}")] public a...
20.248062
89
0.630934
[ "MIT" ]
jpbruyere/CrowEd
CrowEditBase/src/Debug/Watch.cs
2,615
C#
namespace WATF.Compiler { public struct GlobalDefine { public struct Keyword { public struct Executive { public const string Root = "Executive"; public const string Import = "Import"; public const string Package = "Package";...
37.595238
60
0.49715
[ "BSD-3-Clause" ]
huangchaosuper/watf
WATF.Compiler/GlobalDefine.cs
1,579
C#
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved. using UnrealBuildTool; public class Pinball : ModuleRules { public Pinball(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Eng...
19.32
99
0.695652
[ "MIT" ]
TheHoodieGuy02/pinball-construction-kit
Source/Pinball/Pinball.Build.cs
483
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
34.012195
160
0.598422
[ "Unlicense" ]
luciochen233/CSE483-code
repo/Layout_Canvas/MainWindow.xaml.cs
2,791
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.Jag.Embc.Interfaces.Models { using Newtonsoft.Json; using System.Collections; using System.Collections.G...
33.46
193
0.672445
[ "Apache-2.0" ]
CodingVelocista/embc-ess
embc-interfaces/Dynamics-Autorest/Models/MicrosoftDynamicsCRMDependentOptionMetadataCollection.cs
1,673
C#
using System; using System.Linq; using System.Security.Cryptography; using System.Text; namespace Grains.Utility { // // http://stackoverflow.com/questions/2642141/how-to-create-deterministic-guids // public static class GuidUtility { /// <summary> /// Creates a name-based UUID usi...
46.254545
171
0.603184
[ "MIT" ]
Maarten88/rrod
src/Grains/Utility/GuidUtility.cs
5,092
C#
using System ; using JetBrains.Annotations ; namespace Idasen.BluetoothLE.Linak.Interfaces { public interface IDeskDetector : IDisposable { /// <summary> /// Notifies when a desk was detected. /// </summary> IObservable < IDesk > DeskDetected { get ; } /// ...
31.073171
79
0.5
[ "MIT" ]
7orlum/idasen-desk
src/Idasen.BluetoothLE.Linak/Interfaces/IDeskDetector.cs
1,276
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
39.324324
85
0.72646
[ "MIT" ]
Telerik-Homework-ValentinRangelov/Homework
C#/C# 2/Homework Strings and Text Processing/Problem 20. Palindromes/Properties/AssemblyInfo.cs
1,458
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Mim.V4200</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDat...
37.034884
1,358
0.546389
[ "MIT" ]
Kusnaditjung/MimDms
src/Mim.V4200/Generated/COCT_MT050012UK04Patient.cs
12,740
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Reflection.Emit; using Harmony; using Newtonsoft.Json.Linq; using Overload; using UnityEngine; using UnityEngine.Networking; using UnityEngine.Networking.NetworkSystem; namespace GameMod { public static class ...
40.188209
185
0.602438
[ "MIT" ]
sjackso/olmod
GameMod/MPModPrivateData.cs
17,725
C#
namespace Eklee.Azure.Functions.Http.Example { public interface IMyRequestScope { string Id { get; } } }
15.75
45
0.634921
[ "MIT" ]
seekdavidlee/Eklee-Azure-Functions-Http
Examples/Eklee.Azure.Functions.Http.Example/IMyRequestScope.cs
128
C#
using Microsoft.Extensions.Logging; using Ninja.WebSockets; using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; namespace WebSockets.DemoServer { class Program { static ILogger _logger; static ILoggerFactory _loggerFactory; static IWebSocketSe...
31.270833
120
0.563624
[ "MIT" ]
Katori/Ninja.WebSockets-Upgraded
Ninja.WebSockets.DemoServer/Program.cs
1,503
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SparqlExplorer.Tests { using Microsoft.VisualStudio.TestTools.UnitTesting; using Model; using System.IO; [TestClass] public class GraphManagerTests { private G...
50.027933
292
0.664545
[ "MIT" ]
andrewstellman/sparql-explorer
Tests/GraphManagerTests.cs
8,957
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. namespace Microsoft.Psi.Imaging { using System; /// <summary> /// Set of static functions for manipulating pixel formats. /// </summary> internal static class PixelFormatHelper { /// <summa...
39.238532
142
0.594108
[ "MIT" ]
Bhaskers-Blu-Org2/psi
Sources/Imaging/Microsoft.Psi.Imaging/PixelFormatHelper.cs
4,279
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 to modify a Network Server in the system. /// The response is either ...
28.426573
157
0.559902
[ "MIT" ]
cwmiller/broadworks-connector-net
BroadworksConnector/Ocip/Models/SystemNetworkSynchingServerModifyRequest22.cs
4,065
C#
using Alex.Blocks.Materials; using Alex.Common.Items; using Alex.Utils; namespace Alex.Blocks.Minecraft { public class DiamondBlock : Block { public DiamondBlock() : base() { Solid = true; Transparent = false; base.BlockMaterial = Material.Metal.Clone().WithMapColor(MapColor.Diamond).SetRequiredTool(Ite...
21.470588
132
0.739726
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
codingwatching/Alex
src/Alex/Blocks/Minecraft/DiamondBlock.cs
365
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("Da...
34.8
84
0.739464
[ "MIT" ]
PacktPublishing/Creating-Cross-Platform-C-Sharp-Applications-with-Uno-Platform
Chapter06/Dashboard.UWP/Properties/AssemblyInfo.cs
1,047
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Orchard.Settings.ViewModels { public class SiteSettingsViewModel { public string SiteName { get; set; } public string TimeZone { get; set; } public IEnumerable<TimeZoneInfo> TimeZ...
23.133333
64
0.697406
[ "BSD-3-Clause" ]
ChipSoftTech/CST-CMS
src/OrchardCore.Modules/Orchard.Settings/ViewModels/SiteSettingsViewModel.cs
349
C#
// Copyright 2019 Google Inc. 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...
40.919753
149
0.599789
[ "Apache-2.0" ]
0x09AL/sandbox-attacksurface-analysis-tools
NtApiDotNet/Win32/Rpc/RpcClientBase.cs
13,260
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...
32.183673
261
0.613824
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Devices/V20190701Preview/GetIotHubResourceEventHubConsumerGroup.cs
3,154
C#
// Copyright 2021-2022 Nikita Fediuchin. 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...
37.444444
90
0.696588
[ "Apache-2.0" ]
cfnptr/pack
wrappers/csharp/PackWriter.cs
1,348
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UsingStructs { internal class Coffee { //public Coffee() //{ // Name = "Coffee"; //} public string Name { get; set; } public string ...
23.475
80
0.553781
[ "MIT" ]
skiryazov/20483-extended-demos
20483C_04_demos/3. UnitTest/DemoStart/UsingStructs/Program.cs
941
C#
namespace Core.Module.Player { public enum SystemMessageId { ///<summary>You have been disconnected from the server.</summary> YouHaveBeenDisconnected = 0, ///<summary>The server will be coming down in $1 seconds. Please find a safe place to log out.</summary> TheServerWillBeCo...
41.21342
241
0.664806
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
dr3dd/L2Interlude
Core/Module/Player/SystemMessageId.cs
248,148
C#
namespace CapSharp { public interface ICapSharp { /// <summary> /// Try to solve the captcha /// </summary> /// <param name="AccessToken"></param> /// <returns></returns> public bool TrySolveCaptcha(out string AccessToken); /// <summary> /// Atte...
37.157895
215
0.606232
[ "Apache-2.0" ]
biitez/CapSharp
CapSharp/ICapSharp.cs
708
C#
namespace DataObjects.DTOS.lookups { public class HarvestingOptionsDTO : GenericLookup, IComboBoxValue { } }
28.25
73
0.787611
[ "MIT" ]
GeorgeThackrayWT/GraphQLSample
ED/DataObjects/DTOS/lookups/HarvestingOptionsDTO.cs
115
C#
using MediatR; namespace SESMTTech.Gestor.PlanosDeAcao.WebApi.Queries.PlanoDeAcao { public class ObterItensDePlanoDeAcaoPendentesAtribuidosAoUsuarioQuery : IRequest<ObterItensDePlanoDeAcaoPendentesAtribuidosAoUsuarioQueryResult> { public string Email { get; set; } } }
32.222222
148
0.8
[ "MIT" ]
sesmt-tecnologico/gestor-planodeacao
src/SESMTTech.Gestor.PlanosDeAcao.WebApi/Queries/PlanoDeAcao/ObterItensDePlanoDeAcaoPendentesAtribuidosAoUsuarioQuery.cs
292
C#
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace CSharpForMarkupExample.iOS { public class Application { // This is the main entry point of the application. static void Main(string[] args) { // if you want to use a...
23.52381
91
0.6417
[ "MIT" ]
BretJohnson/CSharpForMarkup
Example/iOS/Main.cs
496
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AntChain.SDK.ENT.Models { public class GetUserSharecodeResponse : TeaModel { // 请求唯一ID,用于链路跟踪和问题排查 [NameInMap("req_msg_id")] [Validation(Required=fa...
22.828571
54
0.614518
[ "MIT" ]
alipay/antchain-openapi-prod-sdk
ent/csharp/core/Models/GetUserSharecodeResponse.cs
879
C#
// Copyright © 2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp.Enums { /// <summary> /// Cursor type values. /// </summary> public enum CursorType { /// <summary> ...
31.186916
100
0.52742
[ "BSD-3-Clause" ]
591094733/CefSharp
CefSharp/Enums/CursorType.cs
6,675
C#
using Nest; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ElasticToolCon { public class KuromojiRomajiTokenFilter : TokenFilterBase { public KuromojiRomajiTokenFilter() : base("kuromoji_readingform") { ...
19.809524
60
0.658654
[ "Apache-2.0" ]
chenchenick/RESTJsonPlayer
ElasticToolCon/KuromojiRomajiTokenFilter.cs
418
C#
 using MinesweeperBeta.Models; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.P...
35.4775
118
0.502079
[ "MIT" ]
kojo12228/MinesweeperBetaUWP
MinesweeperBeta/MainPage.xaml.cs
14,193
C#
namespace Ferarri { public abstract class Car : ICar { public abstract string Model { get; } public string Driver { get; private set; } protected Car(string driver) { this.Driver = driver; } } }
18.714286
50
0.538168
[ "MIT" ]
amartinn/SoftUni
C# Advanced September 2019/C# OOP/exercises/Interfaces and Abstraction - Exercise/Ferarri/Car.cs
264
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace WebLoadTest { /// <summary> /// Summary description for StockWebService /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles....
25.851852
107
0.716332
[ "Apache-2.0" ]
DavidChristiansen/MassTransit
src/Samples/WebLoadTest/WebLoadTest/StockWebService.asmx.cs
700
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using FantasyData.Api.Client.NetCore.Model.NBA; namespace FantasyData.Api.Client.NetCore { public partial class NBAv2Client : BaseClient { public NBAv2Client(string apiKey) : base(apiKey) { } public NBAv2Client(Guid ...
42.903692
215
0.575405
[ "MIT" ]
scottspiller/fantasydata-api-csharp
FantasyData.Api.Client.NetCore/Clients/NBA/NBAv2.cs
26,731
C#
using System; using FluentAssertions; using Machine.Specifications; using Xunit; namespace SecurityHeadersMiddleware.Tests { public class CspAncestorSourceListTests { private CspAncestorSourceList CreateSUT() { return new CspAncestorSourceList(); } [Fact] public void W...
37.512605
112
0.610663
[ "MIT" ]
StefanOssendorf/SecurityHeadersMiddleware
src/OwinContrib.SecurityHeaders.Tests/CspAncestorSourceListTests.cs
4,466
C#
using System; namespace Zoth.BehaviourTree { public interface IBehaviourTreeNode<TTickData, TState> { string Name { get; } ITickProfiler<TTickData> Profiler { get; set; } Func<TTickData, TState, BehaviourTreeState> Compile(); } }
19.285714
62
0.659259
[ "MIT" ]
sad1y/Zoth.BehaviourTree
src/Zoth.BehaviourTree/IBehaviourTreeNode.cs
272
C#
using System.Collections.Generic; using System.Collections.Immutable; using System.Text.RegularExpressions; using Microsoft.Recognizers.Definitions.Chinese; namespace Microsoft.Recognizers.Text.DateTime.Chinese { public enum PeriodType { /// <summary> /// Represents a ShortTime. ...
36.442857
119
0.650333
[ "MIT" ]
ParadoxARG/Recognizers-Text
.NET/Microsoft.Recognizers.Text.DateTime/Chinese/Extractors/TimePeriodExtractorChs.cs
2,587
C#
using System; using System.Linq; using System.Collections.Generic; namespace _03.SafeManipulation { class SafeManipulation { static void Main() { string[] input = Console.ReadLine().Split(); string text = Console.ReadLine(); while (text != "END") ...
27
60
0.371111
[ "MIT" ]
paykova/TEST
ProgrammingFundamentals/ArraysAndMethodsMORE EX/03.SafeManipulation/SafeManipulation.cs
1,352
C#
using System; using System.Runtime.InteropServices; namespace CSGL.GLFW { public struct VideoMode { public readonly int width; public readonly int height; public readonly int redBits; public readonly int greenBits; public readonly int blueBits; public readonly int r...
25.625
85
0.573659
[ "MIT" ]
vazgriz/CSharpGameLibrary
CSharpGameLibrary/GLFW/structs.cs
1,027
C#
using HousingRegisterApi.V1.Boundary.Request; using HousingRegisterApi.V1.UseCase.Interfaces; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; namespace HousingRegisterApi.V1.Controllers { [...
44.403101
107
0.681564
[ "MIT" ]
LBHackney-IT/lbh-housing-api
HousingRegisterApi/V1/Controllers/ReportingApiController.cs
5,728
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/codecapi.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using System.Runtime.InteropServi...
39.933333
145
0.792988
[ "MIT" ]
reflectronic/terrafx.interop.windows
sources/Interop/Windows/Windows/um/codecapi/CODECAPI_AVEncDDRFPreEmphasisFilter.cs
601
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; namespace WebbShop.Models { public class User { public int ID { get; set; } public string Name { get; set; } [DefaultValue("Codic2021")] public string Password { get; set; } ...
22.68
50
0.608466
[ "MIT" ]
marcusjobb/NET20D
OOPA/WebbshopProjekt/Mostafa/WebbShop/WebbShop/Models/User.cs
569
C#
using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis; using NUnit.Framework; using System.Collections.Immutable; using System; using System.Linq; namespace PartiallyApplied.Tests { public static class PartiallyAppliedGeneratorTests { [Test] public static void GenerateWhenGenericsExistForStandardMet...
25.657371
148
0.710093
[ "MIT" ]
JasonBock/PartiallyApplied
src/PartiallyApplied.Tests/PartiallyAppliedGeneratorTests.cs
6,442
C#
using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Collections.Generic; using NDesk.Options; using Sep.Git.Tfs.Core; using Sep.Git.Tfs.Core.TfsInterop; using StructureMap; namespace Sep.Git.Tfs.Commands { [Pluggable("branch")] [Description("branch\n\n" + ...
41.333333
336
0.571213
[ "Apache-2.0" ]
visaodeempresa/git-tfs
GitTfs/Commands/Branch.cs
13,888
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Foodie1.Data; using Foodie1.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace Foodie1.Controllers { public class AdministratorController : Controller { [Auth...
31.571429
79
0.542986
[ "MIT" ]
AdemTsranchaliev/FoodieNOIT
Controllers/AdministratorController.cs
1,991
C#
using System; using System.Reflection; using CSF.Validation.RuleExecution; using Microsoft.Extensions.DependencyInjection; namespace CSF.Validation.Manifest { /// <summary> /// A factory service which gets a validator from a validation manifest. /// </summary> public class ValidatorFromManifestFactory ...
41.304348
138
0.638947
[ "MIT" ]
csf-dev/CSF.Validation
CSF.Validation/Manifest/ValidatorFromManifestFactory.cs
1,900
C#
//------------------------------------------------------------------------------ // <auto-generated> // Dieser Code wurde von einem Tool generiert. // Laufzeitversion:4.0.30319.42000 // // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn // der Code erneut generi...
37.570175
164
0.528874
[ "MIT" ]
georghinkel/ttc2017smartGrids
generator/Schema/IEC61970/Informative/InfAssets/OrgAssetRole.cs
25,700
C#
// <auto-generated /> namespace IronJS.Tests.UnitTests.Sputnik.Conformance.NativeECMAScriptObjects.NumberObjects { using System; using NUnit.Framework; [TestFixture] public class TheNumberConstructorTests : SputnikTestFixture { public TheNumberConstructorTests() : base(@"Conform...
42.764706
215
0.674461
[ "Apache-2.0" ]
Varshit07/IronJS
Src/Tests/UnitTests/Sputnik/Conformance/NativeECMAScriptObjects/NumberObjects/TheNumberConstructorTests.cs
2,181
C#
using System.Diagnostics.CodeAnalysis; using AuthMe.IdentityMsrv.Application.Common.Interfaces; using AuthMe.IdentityMsrv.Application.Identities.Commands.DeleteIdentity; using AuthMe.IdentityMsrv.Application.Identities.Commands.UpdateIdentity; using FluentValidation; namespace AuthMe.IdentityMsrv.Application.Identiti...
44.947368
100
0.791569
[ "MIT" ]
R46narok/AuthMe
src/dotnet/AuthMe.Identity/AuthMe.Identity.Application/Identities/Commands/UpdateIdentityTrusted/UpdateIdentityTrustedCommandValidator.cs
856
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using Silk.NET.Core.Attributes; #pragma warning disable 1591 namespace Silk.NET.Direct3D11 { [Flags] [NativeName("Name", "D3D11_SHADER_MIN_PRECISION_SUPPORT"...
26.916667
71
0.693498
[ "MIT" ]
Libertus-Lab/Silk.NET
src/Microsoft/Silk.NET.Direct3D11/Enums/ShaderMinPrecisionSupport.gen.cs
646
C#
/* //----------------------------------------------------------------------- // <copyright> // // Copyright (c) TU Chemnitz, Prof. Technische Thermodynamik // Written by Noah Pflugradt. // Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condit...
55.378151
157
0.656601
[ "MIT" ]
kyleniemeyer/LoadProfileGenerator
Calculation.Tests/Logfile/ActionLogFileTests.cs
6,596
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerCamCntrl : MonoBehaviour { public enum RotationAxes { MouseXAndY = 0, MouseX = 1, MouseY = 2 } public RotationAxes axes = RotationAxes.MouseXAndY; public float sen...
32.56
80
0.591523
[ "Apache-2.0" ]
DavilkusGames/The_Basement_Of_Fear
The Basement Of Fear/Assets/Scripts/PlayerCamCntrl.cs
1,630
C#
//----------------------------------------------------------------------- // <copyright file="Helios.Concurrency.DedicatedThreadPool.cs" company="Akka.NET Project"> // Copyright (C) 2009-2021 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2021 .NET Foundation <https://github.com/akkadotnet/akk...
36.315013
164
0.511203
[ "Apache-2.0" ]
Aaronontheweb/akka.net
src/core/Akka/Helios.Concurrency.DedicatedThreadPool.cs
27,093
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.Sql....
73.2375
333
0.680765
[ "MIT" ]
Ramananaidu/dotnet-sonarqube
sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestOperations/TransparentDataEncryptionsRestOperations.cs
29,295
C#
#region using System.IO; using System.Linq; using System.Net; using System.Threading.Tasks; using System.Web; using System.Web.Http; using Microsoft.Azure.Documents; using Microsoft.Azure.Documents.Client; using Swashbuckle.Swagger.Annotations; using TRex.Metadata; #endregion namespace LADocDbAPI.Con...
41.306569
282
0.59074
[ "MIT" ]
HowardEdidin/LADocDbAPI
LADocDbAPI/Controllers/AttachmentsController.cs
5,663
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> //--...
42.516484
182
0.60093
[ "Apache-2.0" ]
zhhyu/NuGet.Services.Metadata
src/Catalog/Strings.Designer.cs
3,871
C#
/* Copyright (C) 2015 Electronic Arts Inc. All rights reserved. This software is solely licensed pursuant to the Hackathon License Agreement, Available at: [URL to Hackathon License Agreement]. All other use is strictly prohibited. */ using System; using System.Collections; using System.Collections.Generic; us...
26.027778
113
0.64952
[ "MIT" ]
ddiep003/DANK-TANKZ
PROJECTTANKS/Assets/EA Pathfinders/Scripts/BladeCast/BCLibProvider.cs
4,685
C#
using Microsoft.EntityFrameworkCore; using SIO.EntityFrameworkCore.DbContexts; using SIO.Infrastructure.EntityFrameworkCore.DbContexts; using SIO.Infrastructure.EntityFrameworkCore.Migrations; namespace SIO.Migrations { public static class MigratorExtensions { public static Migrator AddContexts(this M...
61.25
223
0.754082
[ "Apache-2.0" ]
sound-it-out/sio-eventpublisher
src/SIO.Migrations/MigratorExtensions.cs
982
C#
/* Copyright (c) 2011-2012, HL7, Inc All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditio...
40.18
104
0.744649
[ "BSD-3-Clause" ]
AreebaAroosh/fhir-net-api
src/Hl7.Fhir.Core/Model/Id.cs
2,011
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace UI.Web.Models.ManageViewModels { public class ChangePasswordViewModel { [Required] [DataType(DataType.Password)] [Display(...
33.1
126
0.640483
[ "MIT" ]
matheus-vieira/OracleExample
src/UniOpet/UI.Web/Models/ManageViewModels/ChangePasswordViewModel.cs
995
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using ProblemSolving; namespace TEST { [TestClass] public class FindPointTest { [TestMethod] public void ShouldReturnTrueIfPointLiesInsideTriangle() { var fp = new FindPoint(); var p1 = new FindPoint.Point...
26.318182
65
0.535406
[ "MIT" ]
pavithrarani/problem-solving-c-
TEST/FindPointTest.cs
1,160
C#
using Xamarin.Forms; namespace XF.Material.Forms.UI.Dialogs.Configurations { /// <summary> /// A class that provides properties specifically for styling input dialogs. /// </summary> public class MaterialInputDialogConfiguration : MaterialAlertDialogConfiguration { /// <summary> //...
33.243902
86
0.600147
[ "MIT" ]
SagarPanwala/XF-Material-Library
XF.Material/XF.Material.Forms/Ui/Dialogs/Configurations/MaterialInputDialogConfiguration.cs
1,365
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.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Web.Mvc; using Microsoft.In...
34.126437
175
0.539688
[ "Apache-2.0" ]
belav/AspNetWebStack
src/System.Web.WebPages/Html/HtmlHelper.Validation.cs
8,909
C#
using IntersectionLibrary; using NUnit.Framework; using System.Collections.Generic; using System.Linq; namespace NUnitTestProject1 { [TestFixture] public class TestStraightLine { public StraightLine test; public StraightLine straightLine; public RayLine rayLine1; public RayL...
29.377953
68
0.530153
[ "MIT" ]
TheSoundWorld/SimpleIntersectionProject
TestIntersectionLibrary/TestStraightLine.cs
3,731
C#
namespace Xamarin.Forms.Controls.GalleryPages.CollectionViewGalleries { internal class ObservableCollectionGallery : ContentPage { public ObservableCollectionGallery() { var desc = "Observable Collection Galleries"; var descriptionLabel = new Label { Text = desc, Margin = new Thickness(2, 2, 2, 2) }; ...
43.186441
189
0.722135
[ "MIT" ]
Alan-love/Xamarin.Forms
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ObservableCollectionGallery.cs
2,550
C#
using ExpenseTracer.Domain.Common; namespace ExpenseTracer.Domain.Entities { /// <summary> /// Represents an expense category /// </summary> public class Category : IEntity { /// <summary> /// Gets or sets the unique identifier of the category /// </summary> public ...
23.142857
62
0.559671
[ "Unlicense" ]
adanek/ExpenseTracer
ExpenseTracer.Domain/Entities/Category.cs
488
C#
using System; using System.Collections.Generic; using System.Linq; using AutoMapper; using DatabaseExtension.Translator; using UserService.Proto; namespace UserService.Main.Automapper { /// <summary> /// Конвертер сущности NotificationSetting /// </summary> public class RoleNotificationSettingConver...
42.4
187
0.642598
[ "Apache-2.0" ]
BergenIt/user-service
UserService.Main/UserService.Main/Automapper/RoleNotificationSettingConvertor.cs
5,614
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Research.EntityFrameworkCore; namespace Research.Migrations { [DbCon...
31.657576
108
0.439408
[ "MIT" ]
PowerDG/Hundred-Micro
PropertyTools/4.6.0/aspnet-core/src/Research.EntityFrameworkCore/Migrations/ResearchDbContextModelSnapshot.cs
41,790
C#