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
#pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.ComponentModel; namespace Efl { namespace Ui { ///<summary>Event argument wrapper for event <see cref="Efl.Ui.ImageZoomable.DownloadProgressEvt"/>.</summary> public class...
54.23119
519
0.669125
[ "Apache-2.0" ]
wantfire/TizenFX
internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable.eo.cs
168,659
C#
using UnityEngine; public class RepeatBackground : MonoBehaviour { private Vector3 backgroundStartPosition; private float backgroundWidth; private void Start() { backgroundStartPosition = transform.position; backgroundWidth = GetComponent<BoxCollider>().size.x; } ...
29.782609
86
0.659854
[ "MIT" ]
azimmomin/CreateWithCodeWeek3
Prototype3/Assets/Scripts/RepeatBackground.cs
687
C#
using System.Collections.Generic; using System.Linq; namespace WebApi.Models { public class DictionaryCommentRepository : ICommentRepository { private int nextID = 0; private Dictionary<int, Comment> comments = new Dictionary<int, Comment>(); public IEnumerable<Comment> Get() ...
25.125
83
0.567164
[ "MIT" ]
huruiyi/CSharpExample
CSharpExample/WebApiDemo/WebApi/Models/DictionaryCommentRepository.cs
1,007
C#
using UnityEngine; public class StartWith : MonoBehaviour { [SerializeField] private Item item; [SerializeField] private CurrentGameState gameState; public void Start() => Message.Publish(new GainItem(item)); }
25
63
0.746667
[ "MIT" ]
EnigmaDragons/LDJam46
src/LDJam46/Assets/Scripts/Inventory/StartWith.cs
227
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace ProductCodeValidator { public static class IsbnValidator { public static bool IsValidIsbn(String isbn) { return IsValidIs...
28.980952
310
0.457443
[ "MIT" ]
ThomasPe/ProductCodeValidator
ProductCodeValidator/IsbnValidator.cs
3,045
C#
using System; using System.Collections.Generic; static class RC4 { static void Main(string[] args) { // Operating on a 3-bit key as an example. var k = new int[] { 2, 6, 1, 5 }; var text = new int[] { 1, 3, 1, 2 }; var s = new List<int>() { 0, 1, 2, 3, 4, 5, 6, 7 }; var...
24.1
62
0.437068
[ "MIT" ]
taylorflatt/rc4-cipher
rc4.cs
1,446
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.777778
224
0.628968
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Purview/V20210701/GetPrivateEndpointConnection.cs
3,245
C#
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MP...
36.843023
107
0.539214
[ "MIT" ]
Klug76/flashdevelop
PluginCore/UdeLibrary/Ude.Core/SBCharsetProber.cs
6,166
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 ...
25.253521
134
0.667038
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-smartag/Smartag/Model/V20180313/DetachNetworkOptimizationSagsRequest.cs
3,586
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace LiftOff.Models.ManageViewModels { public class TwoFactorAuthenticationViewModel { public bool HasAuthenticator { get; set; } public int Recov...
22.388889
50
0.727047
[ "MIT" ]
phucodes/LiftOff
LiftOff/Models/ManageViewModels/TwoFactorAuthenticationViewModel.cs
405
C#
using Bittrex.Net.Objects; using System; using System.Collections.Generic; using System.Linq; namespace BotTraderCore { /// <summary> /// Stores a range summary (between two flat segments) that includes /// the high and low in that range. Used to render more accurate graphs /// with fewer data points. /// </summ...
22.333333
72
0.683582
[ "MIT" ]
KidzCode1/StockAnalysis
BotTraderCore/ChangeSummary.cs
672
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FlatRedBall.Glue.SaveClasses; using FlatRedBall.Glue.Controls; using FlatRedBall.Glue.Elements; namespace FlatRedBall.Glue.Plugins.Interfaces { public interface INewFile : IPlugin { void AddNewFileOptions(NewFi...
30.111111
131
0.780443
[ "MIT" ]
coldacid/FlatRedBall
FRBDK/Glue/Glue/Plugins/Interfaces/INewFile.cs
544
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;...
25.226415
62
0.557966
[ "MIT" ]
vain0/playground
2016-10-27-wpf-record-grid/DotNetKit.Wpf.RecordGrid.Sample/Control/DecorationSampleControl.xaml.cs
1,357
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...
28.883871
105
0.566451
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Connect/Generated/Model/QuickConnect.cs
4,477
C#
using System; using System.Collections.Concurrent; using System.Linq; using System.Threading; using System.Threading.Tasks; using ITVComponents.Helpers; using ITVComponents.InterProcessCommunication.InMemory.Hub.Communication; using ITVComponents.InterProcessCommunication.InMemory.Hub.ProtoExtensions; using ITVCompone...
34.411348
142
0.484955
[ "MIT" ]
ITVenture/ITVComponents
ITVComponents.InterProcessCommunication.InMemory/Hub/Channels/MemoryServiceChannel.cs
9,706
C#
using Elastic.Xunit.XunitPlumbing; using Nest; namespace Examples.Ml.AnomalyDetection.Apis { public class PutCalendarPage : ExampleBase { [U(Skip = "Example not implemented")] public void Line45() { // tag::e61b5abe85000cc954a42e2cd74f3a26[] var response0 = new SearchResponse<object>(); // end::e61b5a...
23.611111
66
0.738824
[ "Apache-2.0" ]
AnthAbou/elasticsearch-net
src/Examples/Examples/Ml/AnomalyDetection/Apis/PutCalendarPage.cs
425
C#
/* _BEGIN_TEMPLATE_ { "id": "LOOTA_802", "name": [ "裁决者之戒", "Justicar's Ring" ], "text": [ "<b>被动</b>\n你的英雄技能变得更强,且法力值消耗变为(1)点。", "<b>Passive</b>\nYour Hero Power is upgraded and costs (1)." ], "cardClass": "NEUTRAL", "type": "SPELL", "cost": 0, "rarity": null, "set": "LOOTAPALOOZA",...
20.517241
66
0.581513
[ "MIT" ]
chi-rei-den/Silverfish
cards/LOOTAPALOOZA/LOOTA/Sim_LOOTA_802.cs
713
C#
namespace Gerrit.Api.Domain.Changes { public enum ChangeInfoStatus { New, Submitted, Merged, Abandoned, Draft } }
15.090909
36
0.536145
[ "Apache-2.0" ]
GerritApiDotNet/Gerrit.Api.Net
src/Gerrit.Api.Domain/Changes/ChangeInfoStatus.cs
168
C#
using System; using Calamari.Common.Plumbing.Deployment; namespace Calamari.Common.Features.Packages { public interface IExtractPackage { void ExtractToStagingDirectory(PathToPackage? pathToPackage, IPackageExtractor? customPackageExtractor = null); void ExtractToStagingDirectory(PathToPackage?...
45.307692
122
0.809847
[ "Apache-2.0" ]
OctopusDeploy/Calamari
source/Calamari.Common/Features/Packages/IExtractPackage.cs
589
C#
using System.Threading.Tasks; #pragma warning disable 1591 namespace Ianitor.Osp.Backend.CoreServices.Services { public interface IUserSchemaService { Task SetupAsync(); } }
19.4
51
0.731959
[ "MIT" ]
ianitor/ObjectServicePlatform
Osp/Backend/Ianitor.Osp.Backend.CoreServices/Services/IUserSchemaService.cs
194
C#
// // The Open Toolkit Library License // // Copyright (c) 2006 - 2010 the Open Toolkit library. // // 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 ...
38.199482
150
0.492031
[ "BSD-3-Clause" ]
MiraiSubject/osuTK
src/osuTK/Platform/Windows/WinRawMouse.cs
14,747
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MS-PL license. // See the LICENSE file in the project root for more information. using MvvmCross.Base; using Xunit; namespace MvvmCross.UnitTest.Base { public class MvxPropertyNameFromExpr...
25.65
73
0.574074
[ "MIT" ]
Nivaes/Nivaes.App.Cross
Nivaes.App.Cross.UnitTest/Base/MvxPropertyParsingExpressionTest.cs
1,028
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...
46.27972
178
0.67528
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/APIGateway/Generated/Model/ServiceUnavailableException.cs
6,618
C#
using DevelopmentInProgress.TradeView.Core.Enums; using System.Collections.Generic; namespace DevelopmentInProgress.TradeView.Core.Model { public class Symbol { public string Name { get; set; } public Exchange Exchange { get; set; } public string NameDelimiter { get; set; } pub...
36.565217
62
0.655172
[ "Apache-2.0" ]
CasparsTools/tradeview
src/DevelopmentInProgress.TradeView.Core/Model/Symbol.cs
843
C#
using System.Collections.Generic; using System.Drawing; using System.IO; using System.Threading; using de.fearvel.io.DataTypes; using PdfSharp.Pdf; using PdfSharp.Pdf.Advanced; using PdfSharp.Pdf.IO; using Tesseract; namespace de.fearvel.io.File { /// <summary> /// EXPERIMENTAL /// Ocr Class /// <copy...
36.766355
122
0.477123
[ "MIT" ]
Fearvel/FileTools
de.fearvel.io/File/Ocr.cs
3,936
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("10....
38
84
0.748933
[ "MIT" ]
gmanolov/Programming-Basics
02.SimpleCalculations/10.RadiansToDegrees/Properties/AssemblyInfo.cs
1,409
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TextEditor.Document { internal class Table { #region subclass internal class TTitle { } internal class TGroup { } internal class THeader { } internal class TBody { } internal class TFo...
16.707547
53
0.636364
[ "Apache-2.0" ]
hobosoft/TextEditor
TextEditor/Document/SDTable.cs
1,789
C#
using System.IO; using System.Threading; using FirebirdSql.Data.FirebirdClient; namespace FluentMigrator.Tests.Integration.Processors.Firebird { public class FbDatabase { public static void CreateDatabase(string connectionString) { var connectionStringBuilder = new FbConnectionStri...
27.642857
90
0.51938
[ "Apache-2.0" ]
BartDM/fluentmigrator
src/FluentMigrator.Tests/Integration/Processors/Firebird/FbDatabase.cs
1,163
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
76.216667
307
0.701618
[ "MIT" ]
Agazoth/azure-powershell
src/CloudService/generated/api/Models/Api20210301/PrivateLinkServiceConnection.json.cs
9,027
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Bleak.Tests.x64")] [assembly: AssemblyDes...
38.942857
84
0.740279
[ "MIT" ]
danielkrupinski/Bleak
Bleak.Tests.x64/Properties/AssemblyInfo.cs
1,366
C#
using System.Runtime.InteropServices; namespace THNETII.WinApi.Native.WinNT { // C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\um\winnt.h, line 18430 [StructLayout(LayoutKind.Sequential)] public struct IMAGE_ARCHITECTURE_ENTRY { /// <summary> /// RVA of instruction to fixu...
26.631579
89
0.616601
[ "MIT" ]
couven92/thnetii-windows-api
src-native/THNETII.WinApi.Headers.WinNT/IMAGE_ARCHITECTURE_ENTRY.cs
506
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Extensions { public static class Extensions { public static void Print(this IEnumerable collection) { Console.WriteLine("-".Repea...
22.571429
87
0.526899
[ "MIT" ]
DimitarDKirov/Data-Bases
19. Redis-and-Redis-with-.NET/Demo/RedisAndRedisWithDotNet/Extensions/Extensions (Minkov-pc's conflicted copy 2014-09-02).cs
1,266
C#
#region License /* Copyright © 2014-2018 European Support Limited 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 a...
28.852941
73
0.767584
[ "Apache-2.0" ]
DebasmitaGhosh/Ginger
Ginger/GingerCore/Actions/ActWithoutDriver.cs
982
C#
using ShopsRUs.Application.Repository; using ShopsRUs.Domain.Entities; using ShopsRUs.Persistence.Contexts; namespace ShopsRUs.Persistence.Repository { public class InvoiceRepository : Repository<Invoice>, IInvoiceRepository { public InvoiceRepository(ApplicationDbContext context) : base(context) ...
23
78
0.73913
[ "MIT" ]
multecipenguen/ShopsRUs
ShopsRUs.Persistence/Repository/InvoiceRepository.cs
347
C#
using Microsoft.AspNetCore.Authorization; using System.Text; using System.Threading.Tasks; using BeeTex.Data.Entity; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.UI.Services; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.WebUtilities; ...
34.333333
110
0.616274
[ "MIT" ]
kalinailieva/BeeTex
BeeTex.Web/BeeTex.Web/Areas/Identity/Pages/Account/RegisterConfirmation.cshtml.cs
2,165
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/MsHTML.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Runtime....
52.637931
275
0.696037
[ "MIT" ]
reflectronic/terrafx.interop.windows
sources/Interop/Windows/Windows/um/MsHTML/IHTMLOpsProfile.cs
12,214
C#
using System; using System.Collections; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Text.RegularExpressions; partial class dbg { public static bool publicOnly = true; public static bool propsOnly = false; public static int max_items = 25; public static i...
31.90873
129
0.439871
[ "MIT" ]
cnark/cs-script
Source/dbg.cs
8,041
C#
using System.Collections.Generic; using System.Xml.Serialization; using Essensoft.AspNetCore.Payment.Alipay.Domain; using Newtonsoft.Json; namespace Essensoft.AspNetCore.Payment.Alipay.Response { /// <summary> /// KoubeiItemCategoryChildrenBatchqueryResponse. /// </summary> public class KoubeiItemCateg...
29.318182
78
0.694574
[ "MIT" ]
AkonCoder/Payment
src/Essensoft.AspNetCore.Payment.Alipay/Response/KoubeiItemCategoryChildrenBatchqueryResponse.cs
669
C#
/* * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 20220523 * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; using System.Collections.Generic; using System.Collections.Objec...
43.386139
282
0.616796
[ "MIT" ]
cliffano/pokeapi-clients
clients/csharp-netcore/generated/src/Org.OpenAPITools/Api/GrowthRateApi.cs
21,910
C#
// Copyright (c) Brett Lyle Mahon. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Raz...
40.306604
167
0.584201
[ "Apache-2.0" ]
BrettMahon/BladeRazor
BladeRazor/TagHelpers/FormIndexTagHelper.cs
8,547
C#
/* * This file is part of AceQL C# Client SDK. * AceQL C# Client SDK: Remote SQL access over HTTP with AceQL HTTP. * Copyright (C) 2020, KawanSoft SAS * (http://www.kawansoft.com). All rights reserved. * ...
41.486364
140
0.580147
[ "Apache-2.0" ]
kawansoft/AceQL.Client
AceQL.Client/Src/Api.Metadata/ForeignKey.cs
9,134
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; //using CG.Web.MegaApiClient; // MEGA Api ! namespace DalvicUWPCSharp.Model { public class DataItem { //public int Id { get...
27.772727
46
0.648118
[ "Apache-2.0" ]
mediaexplorer74/AstoriaUWP
AstoriaUWP/Model/DataItem.cs
611
C#
using System; using System.ComponentModel.DataAnnotations; using FutureState.Specifications; namespace FutureState.Domain { public interface IFSEntity { Guid Id { get; } string DisplayName { get; } string Description { get; } } /// <summary> /// Base entity definitio...
25.075
77
0.559322
[ "Apache-2.0" ]
arisanikolaou/futurestate
src/FutureState.Domain/IFSEntity.cs
1,005
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Persistence.Migrations.ConfigurationDb { public partial class InitialIdentityServerConfigDbMigration : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( ...
45.371711
99
0.493402
[ "MIT" ]
kheneahm-ares/travelog-identityserver
Persistence/Migrations/ConfigurationDb/20210216042446_InitialIdentityServerConfigDbMigration.cs
27,588
C#
namespace PCSC.Reactive.Events { /// <summary>Information about a smart card reader status change.</summary> public class CardStatusChanged : MonitorEvent { /// <summary>The new status of this reader.</summary> /// <remarks> /// <para>Is a bit mask containing one or more ...
109.931034
330
0.654015
[ "BSD-2-Clause" ]
JeremyOrionDev/ReadID
pcsc-sharp-rx/Events/CardStatusChanged.cs
6,378
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Yna.Engine; using Yna.Engine.Graphics; using SpaceGame.Data.Description; namespace SpaceGame.Player.Weapon { public class WeaponManager : YnGroup { private SpacePlayer _player; private YnTim...
29.447761
104
0.482007
[ "MIT" ]
demonixis/SpaceGame-XNA
SpaceGame/Player/Weapon/WeaponManager.cs
3,948
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.Linq; using System.Linq.Expressions; using System.Reflection; using JetBrains.Annotations;...
40.284946
126
0.54691
[ "Apache-2.0" ]
BionStt/EntityFrameworkCore
src/EFCore.Cosmos/Query/Internal/EntityShaper.cs
14,988
C#
// Copyright 2016-2040 Nino Crudele // // 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 agr...
26.838235
81
0.55726
[ "Apache-2.0" ]
ninocrudele/SnapGate
Framework.Contracts/Bubbling/Parameter.cs
1,827
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Threading.Tasks; namespace System.Collections.Extensions { internal static class ObjectExtensions { public static byte[] Serialize(t...
22.68
56
0.608466
[ "MIT" ]
brandondahler/Collections.BloomFilter
Collections.BloomFilter/Extensions/ObjectExtensions.cs
569
C#
namespace Stryker.Core.ProjectComponents { public interface IFileLeaf<T> : IProjectComponent { T SyntaxTree { get; set; } T MutatedSyntaxTree { get; set; } } }
19
53
0.631579
[ "Apache-2.0" ]
Bforslund/stryker-net
src/Stryker.Core/Stryker.Core/ProjectComponents/IFileLeaf.cs
192
C#
// // http://code.google.com/p/servicestack/wiki/TypeSerializer // ServiceStack.Text: .NET C# POCO Type Text Serializer. // // Authors: // Demis Bellot (demis.bellot@gmail.com) // // Copyright 2011 Liquidbit Ltd. // // Licensed under the same terms of ServiceStack: new BSD license. // using System; using ...
30.753247
95
0.706503
[ "BSD-3-Clause" ]
scopely/ServiceStack.Text
src/ServiceStack.Text/Reflection/StaticAccessors.cs
2,368
C#
#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Gene...
38.996603
341
0.509608
[ "MIT" ]
gdgeek/GGJ2017
Assets/XLua/Gen/UnityEngineVector3Wrap.cs
57,405
C#
namespace DomainDispatcher { using System; using System.Collections.Generic; using System.Linq; using Abstractions; using Abstractions.Events; public partial class InMemoryEventBusSubscriptionsManager : IEventBusSubscriptionsManager { private readonly Dictionary<string, List<Subscr...
33.062016
114
0.576084
[ "MIT" ]
blocshop/domain-dispatcher
DomainDispatcher/InMemoryEventBusSubscriptionsManager.cs
4,267
C#
#region License /* * Ktos.AspNetCore.Authentication.ApiKeyHeader * * Copyright (C) Marcin Badurowicz <m at badurowicz dot net> 2018 * * * 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 Softwa...
41.527778
172
0.653645
[ "MIT" ]
ktos/Ktos.AspNetCore.Authentication.ApiKeyHeader
test/ApiKeyHeaderAuthenticationHandlerTests.cs
14,952
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class Virtue { public string m_Name; public int m_Rating; public Virtue(string p_Name, int p_Rating) { m_Name = p_Name; m_Rating = p_Rating; } }
19.2
48
0.694444
[ "MIT" ]
SonKatarina23/HellYea
Assets/Script/Virtue.cs
290
C#
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.CSharp7.DocumentationRules { using StyleCop.Analyzers.Test.DocumentationRules; public class SA16...
30.916667
107
0.770889
[ "Apache-2.0" ]
Andreyul/StyleCopAnalyzers
StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp7/DocumentationRules/SA1625CSharp7UnitTests.cs
373
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Mi...
63.542373
210
0.649773
[ "MIT" ]
Arsasana/azure-powershell
src/Functions/generated/api/Support/ResourceScopeType.TypeConverter.cs
3,691
C#
using System.Collections.Generic; using System.Linq; using Domain.Common; using Domain.Exceptions; namespace Domain.ValueObjects { public class Colour : ValueObject { static Colour() { } private Colour() { } private Colour(string code) { ...
23.284091
70
0.524646
[ "MIT" ]
petrubocsanean/CleanGraphQL
src/Domain/ValueObjects/Colour.cs
2,049
C#
namespace TrainsOnline.Desktop.ViewModels.Station { using System.Threading.Tasks; using Caliburn.Micro; using TrainsOnline.Desktop.Application.Interfaces.RemoteDataProvider; using TrainsOnline.Desktop.Common.GeoHelpers; using TrainsOnline.Desktop.Domain.DTO.Station; using TrainsOnline.Desktop.D...
36.388889
102
0.641527
[ "MIT" ]
adambajguz/TrainsOnline
frontend/TrainsOnline.Desktop/ViewModels/Station/StationMasterDetailDetailViewModel.cs
3,277
C#
using System; using UnityEngine; using UnityStandardAssets.Vehicles.Car; internal enum CarDriveType { FrontWheelDrive, RearWheelDrive, FourWheelDrive } internal enum SpeedType { MPH, KPH } public class CarController : Photon.MonoBehaviour { ...
36.547074
139
0.552879
[ "Apache-2.0" ]
spuller7/Truck-Project
Assets/Standard Assets/Vehicles/Car/Scripts/CarController.cs
14,363
C#
namespace SOSOWJB.Framework.Editions.Dto { //Mapped in CustomDtoMapper public class LocalizableComboboxItemDto { public string Value { get; set; } public string DisplayText { get; set; } } }
19.9
41
0.743719
[ "Apache-2.0" ]
sosowjb/framework
src/main/SOSOWJB.Framework.Application.Shared/Editions/Dto/LocalizableComboboxItemDto.cs
199
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace IoTConnect.Model { /// <summary> /// Update OTA Status Model /// </summary> public class UpdateOTAStatusModel { /// <summary> /// Device Guid. Call Device.All(...
30.078947
108
0.608924
[ "MIT" ]
iotconnect-apps/AppConnect-AirQualityMonitoring
iot.solution.iotconnect/Model/Firmware/Request/UpdateOTAStatusModel.cs
1,145
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // This RegexNode class is internal to the Regex package. // It is built into a parsed tree for a regular expression. // Implementation notes: // // Since the node tree is a tempora...
44.821851
172
0.47024
[ "MIT" ]
AntonLapounov/runtime
src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexNode.cs
109,948
C#
using System; using System.Net; using System.Security.Cryptography.X509Certificates; using JetBrains.Annotations; namespace Vostok.Clusterclient.Transport { /// <summary> /// A class that represents <see cref="SocketsTransport" /> settings. /// </summary> [PublicAPI] public class SocketsTransportSe...
41.709302
158
0.630611
[ "MIT" ]
bymse/clusterclient.transport
Vostok.ClusterClient.Transport/SocketsTransportSettings.cs
3,587
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="HalfEdgeMeshVisual3D.cs" company="Helix 3D Toolkit"> // http://helixtoolkit.codeplex.com, license: MIT // </copyright> // ---------------------------------------------------...
35.14726
720
0.419809
[ "MIT" ]
smallholexu/helix-toolkit
Source/Examples/WPF/ExampleBrowser/Examples/HalfEdgeMesh/HalfEdgeMesh.cs
20,528
C#
using System; using System.Collections.Generic; namespace RCi.Tutorials.Gfx.Utils { public static class U { /// <summary> /// Clamp value (ensure it falls into a given range). /// </summary> public static int Clamp(this int value, int min, int max) { if (val...
32.121212
129
0.522877
[ "MIT" ]
rciworks/RCi.Tutorials.Gfx
Tutorial 018 - GDI Rasterize Triangle/Utils/U.cs
4,242
C#
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LiquidTransformationLib { public class Transformer { public readonly string Template; public readonl...
31.637681
111
0.607421
[ "MIT" ]
skastberg/LiquidTransformation
Code/LiquidTransformationLib/Transformer.cs
2,185
C#
namespace Exemplo3.Areas.HelpPage.ModelDescriptions { public class EnumValueDescription { public string Documentation { get; set; } public string Name { get; set; } public string Value { get; set; } } }
21.818182
51
0.641667
[ "MIT" ]
siecola/WebAPIBook2
Exemplo3/Areas/HelpPage/ModelDescriptions/EnumValueDescription.cs
240
C#
//----------------------------------------------------------------------- // <copyright file="EmptyTypeFormatter.cs" company="Sirenix IVS"> // Copyright (c) 2018 Sirenix IVS // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You ...
36.55814
127
0.587786
[ "Apache-2.0" ]
johnbrandle/odin-serializer
OdinSerializer/Core/Formatters/EmptyTypeFormatter.cs
1,574
C#
namespace AncientMysteries.AmmoTypes { public class AT_FerociousPredator : AMAmmoType { public AT_FerociousPredator() { accuracy = 1f; penetration = 0.35f; bulletSpeed = 9f; rangeVariation = 0f; speedVariation = 0f; range =...
28.352941
64
0.498963
[ "MIT" ]
BThree496/AncientMysteriesMod
AncientMysteries/AmmoTypes/AT_FerociousPredator.cs
966
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...
42.445578
148
0.603494
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/MachineLearningServices/V20200101/Workspace.cs
12,479
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace BlazingPizza.Server { [Route("orders")] [ApiController] [A...
35.698276
126
0.585124
[ "MIT" ]
Aletho95/blazor-workshop
save-points/00-get-started/BlazingPizza.Server/OrdersController.cs
4,143
C#
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
42.52
100
0.584039
[ "Apache-2.0" ]
googleads/google-ads-dotnet
examples/Billing/GetAccountBudgetProposals.cs
6,378
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Problem_5.Word_in_Plural { class WordInPlural { static void Main(string[] args) { //Input string word = Console.ReadLine(); //Logic...
22.707317
52
0.404941
[ "MIT" ]
Badjanak/C-Sharp-Project
Programming Fundamentals/02. Conditional Statements and Loops-Exercise/Problem 5. Word in Plural/WordInPlural.cs
933
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using Mono.Cecil; using ILRuntime.Runtime.Intepreter; using ILRuntime.Runtime.Enviorment; using ILRuntime.CLR.TypeSystem; using ILRuntime.Runtime.Stack; using ILRuntime.CLR.Utils; namespace ILRun...
34.432692
153
0.428372
[ "MIT" ]
naivetang/2019MiniGame22
Unity/Assets/ThirdParty/ILRuntime/ILRuntime/CLR/Method/CLRMethod.cs
14,326
C#
using UnityEngine; using System.Collections; /* ---------------------------------------- * class to demonstrate how to control a * character using Character Controller and the Mecanim system */ public class BasicController: MonoBehaviour { // reference to character's Animator component private Animator anim; ...
33.579439
149
0.690231
[ "MIT" ]
Brian-Holmes/Unity-2018-Cookbook-Third-Edition
Chapter10_3DAnimation/10_03_mix_mask_anims/BasicController.cs
3,595
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 01.05.2021. using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.S...
32.68323
155
0.570886
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D1/Query/Operators/SET_001/GreaterThan/Complete/NullableInt16/DECIMAL_6_1/TestSet_001__fields__03__NV.cs
5,264
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Wangkanai.Architecture.Shared; namespace Wangkanai.Architecture.Server.Controllers { [Authorize] ...
29.209302
110
0.621019
[ "Apache-2.0" ]
wangkanai/Architecture
src/Server/Controllers/WeatherForecastController.cs
1,258
C#
using System; using Deveroom.VisualStudio.Common; using Deveroom.VisualStudio.Discovery; namespace Deveroom.VisualStudio.ProjectSystem.Actions { public class SourceLocationContextMenuItem : ContextMenuItem { private readonly string _originalLabel; private readonly SourceLocation _sourceLocatio...
40.21875
138
0.705517
[ "MIT" ]
Philip-Gullick/deveroom-visualstudio
Deveroom.VisualStudio/ProjectSystem/Actions/SourceLocationContextMenuItem.cs
1,289
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace VersionDB { class Program { static int LoadConfigurations() { try { ConfigReader.ReadConfig(); } catch (Exception ex) { ...
51.064257
269
0.530161
[ "MIT" ]
m-nasif/VersionDB
Source/Program.cs
12,717
C#
using System; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// <summary> /// <para>表示 [POST] /componenttcb/getbucket 接口的响应。</para> /// </summary> public class ComponentTcbGetBucketResponse : WechatApiResponse { public static class Types { public class File ...
38.854839
141
0.557493
[ "MIT" ]
OrchesAdam/DotNetCore.SKIT.FlurlHttpClient.Wechat
src/SKIT.FlurlHttpClient.Wechat.Api/Models/ComponentTcb/COS/ComponentTcbGetBucketResponse.cs
2,571
C#
using System; using System.Text.RegularExpressions; namespace _06.SentenceExtractor { public class SentenceExtractor { public static void Main() { var word = Console.ReadLine(); var text = Console.ReadLine(); var pattern = string.Format(@"[^.?!]+\b{0}\b.*?[!...
26.045455
73
0.534031
[ "MIT" ]
mdamyanova/C-Sharp-Web-Development
08.C# Fundamentals/08.01.C# Advanced/11.Regular Expressions - Exercise/06.SentenceExtractor/SentenceExtractor.cs
575
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.Owin; using Owin; using Microsoft.Owin.Security.Cookies; using System.Security.Claims; using System.Threading.Tasks; using Kentor.OwinCookieSaver; [assembly: OwinStartup(typeof(SampleWebApp.App_Start.Startup))] names...
36.397059
105
0.566869
[ "MIT" ]
AndreiZe/owin-cookie-saver
SampleWebApp/App_Start/Startup.Auth.cs
2,477
C#
using WhoPK.GameLogic.Character; using WhoPK.GameLogic.World.Room; using System; using System.Collections.Generic; using System.Text; namespace WhoPK.GameLogic.Commands { public interface ICommands { void CommandList(string key, string options, Player player, Room room); void ProcessCommand(st...
24.6
79
0.742547
[ "MIT" ]
mbevier/ArchaicQuest-II
WhoPK.GameLogic/Commands/ICommands.cs
371
C#
using Relo; using System.Runtime.InteropServices; namespace SageBinaryData { [StructLayout(LayoutKind.Sequential)] public struct TemporalSineWave { public Time WaveLength; public float Amplitude; } [StructLayout(LayoutKind.Sequential)] public struct CameraShift { p...
24.103448
66
0.706724
[ "MIT" ]
Qibbi/BinaryAssetBuilder
source/SageBinaryData/SageBinaryData/PhaseEffect.cs
701
C#
namespace WebWarehouse.Services.Messaging { using System.Collections.Generic; using System.Threading.Tasks; public class NullMessageSender : IEmailSender { public Task SendEmailAsync( string from, string fromName, string to, string subject, ...
23.75
60
0.593684
[ "MIT" ]
iltodbul/WebWarehouse
Services/WebWarehouse.Services.Messaging/NullMessageSender.cs
477
C#
#region Usings using System; using System.Collections.Generic; using System.Linq; using System.Threading; using Stomp.Net.Messaging; using Stomp.Net.Stomp.Commands; using Stomp.Net.Util; using Stomp.Net.Utilities; #endregion namespace Stomp.Net.Stomp { /// <summary> /// An object capable ...
34.650667
164
0.506849
[ "MIT" ]
DaveSenn/Stomp.Net
.Src/Stomp.Net/NMS.Stomp/MessageConsumer.cs
25,239
C#
// <copyright file="LoggingTextFormat.cs" company="OpenTelemetry Authors"> // Copyright 2018, OpenTelemetry Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.a...
34.071429
99
0.682041
[ "Apache-2.0" ]
andy-g/opentelemetry-dotnet
samples/LoggingTracer/LoggingTracer/LoggingTextFormat.cs
1,433
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Door : MonoBehaviour { //public Button button; public bool openDoor; public Collider coolCollider; public float doorSpeed; Vector3 startPosition; // Start is called before the first frame...
26.864865
130
0.626761
[ "MIT" ]
Plaonder/2d-3d-platformer
Assets/Scripts/Door.cs
996
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v7/errors/keyword_plan_error.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobu...
39.603571
303
0.681937
[ "Apache-2.0" ]
deni-skaraudio/google-ads-dotnet
src/V7/Types/KeywordPlanError.cs
11,089
C#
using System.Globalization; using System.Windows; namespace TeamProjectManager.Modules.Activity { public partial class ActivityViewerDialog : Window { public TeamProjectActivityInfo Activity { get; private set; } public ActivityViewerDialog(TeamProjectActivityInfo activity) ...
31.708333
135
0.628121
[ "MIT" ]
BobSilent/TfsTeamProjectManager
TeamProjectManager.Modules.Activity/ActivityViewerDialog.xaml.cs
763
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using SolidWorks.Interop.sldworks; using SolidWorks.Interop.swcommands; using SolidWorks.Interop.swconst; using SolidWorks.Interop.swp...
51.412186
177
0.581776
[ "BSD-3-Clause" ]
Timbama/chrono-solidworks
ClassLibrary1/EditChBody.cs
14,346
C#
using System; using System.Collections.Generic; using System.Linq; class LinqSearch { static void Main() { var colors = new List<string> { "Red", "Green", "Blue" }; var newColors = colors.Where(c => c.Contains("e")); foreach (var color in newColors) { Console.Write...
20.666667
65
0.534274
[ "MIT" ]
VisualAcademy/DotNet
DotNet/DotNet/30_LINQ/25_LinqSearch/LinqSearch.cs
498
C#
namespace FootballBettingModels { using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; public class BetGame { [Key] [Column(Order = 0)] public Game Game { get; set; } [Key] [Column(Order = 1)] public Bet Bet {...
21.315789
62
0.607407
[ "MIT" ]
evgeni-tsn/CSharp-Entity-ASP-Web-Development
5.EntityFramework-ORM-DB-Advanced/06.EntityFramework-Relations/FootballBettingDatabase/FootballBettingDatabase/FootballBettingModels/BetGame.cs
407
C#
using System; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using GR.Audit.Abstractions.Extensions; using GR.Core; using GR.Core.Events; using GR.Core.Extensions; using GR.Core.Helpers; using GR.Identity.Abstractions; using GR.Notifications.Abstractions.Models.Notifications; usin...
42.323077
190
0.590876
[ "MIT" ]
indrivo/GEAR
src/GR.Extensions/GR.Notifications.Extension/GR.Notifications.Abstractions/Extensions/ServiceCollectionExtensions.cs
5,504
C#
namespace OneNoteDev.Models.JsonHelpers { public class ParentNotebookJson { public string id { get; set; } public string name { get; set; } public string self { get; set; } } }
24.125
40
0.668394
[ "MIT" ]
OfficeDev/TrainingContent-Archive
O3653/O3653-7 Deep Dive into the Office 365 APIs for OneNote services/Completed project/Exercise 2/OneNoteDev/Models/JsonHelpers/ParentNotebookJson.cs
195
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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://w...
44.3875
100
0.601521
[ "MIT" ]
Acidburn0zzz/azure-powershell
src/ResourceManager/MachineLearning/Commands.MachineLearning/Cmdlets/WebServices/GetAzureMLWebServiceKeys.cs
3,474
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...
28.405063
106
0.600713
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/CodeStar/Generated/Model/UntagProjectRequest.cs
2,244
C#
using System; namespace GeofenceSDK.Common.Models { public class GeofenceLocation { public double Latitude { get; set; } public double Longitude { get; set; } public DateTime Date { get; set; } public double Accuracy { get; set; } public GeofenceLocation() { ...
24.72
66
0.600324
[ "MIT" ]
MarianHristov92/Geofence-Xamarin-SDK
GeofenceSDK.Core/Common/Models/GeofenceLocation.cs
620
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.EC2")] [assembly: AssemblyDescripti...
48.5
295
0.752577
[ "Apache-2.0" ]
EbstaLimited/aws-sdk-net
sdk/code-analysis/ServiceAnalysis/EC2/Properties/AssemblyInfo.cs
1,552
C#