content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
//------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.10 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //----...
31.862745
114
0.699692
[ "MIT" ]
WaveEngine/Extensions
WaveEngine.NoesisGUI/Shared/Proxies/LinearGradientBrush.cs
3,250
C#
using System; using System.Security.Cryptography; using Firebase.Auth; using Firebase.Crashlytics; using UnityEngine; using Random = System.Random; namespace Hamster.States { /// <summary> /// This utility is meant to throw a random type of exception /// to generate a few different types of issues in Crashlytics...
31.518182
120
0.659071
[ "Apache-2.0" ]
ErnestoGonzalez96/mechahamster
Assets/Hamster/Scripts/States/Exceptions/PseudoRandomExceptionChooser.cs
3,467
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections.Generic; using System.Linq; using Azure.AI.TextAnalytics; namespace Azure.AI.TextAnalytics.Models { /// <summary> The EntitiesResult. </su...
43.090909
208
0.650211
[ "MIT" ]
ChenTanyi/azure-sdk-for-net
sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntitiesResult.cs
2,370
C#
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.eShopOnContainers.Services.Marketing.API.Dto; using Microsoft.eShopOnContainers.Services.Marketing.API.Infrastructure; using Microsoft.eShopOnContainers.Services.Marketing.API.Infrastructure.R...
36.150407
115
0.600585
[ "MIT" ]
spring-operator/eShopOnContainers
src/Services/Marketing/Marketing.API/Controllers/CampaignsController.cs
8,895
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. #nullable enable using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSha...
37.570764
223
0.592424
[ "MIT" ]
Jay-Madden/roslyn
src/Compilers/CSharp/Test/Symbol/Symbols/Source/RecordTests.cs
56,546
C#
using SrtVideoPlayer.Shared.Models.Theming; using System.Threading.Tasks; namespace SrtVideoPlayer.Mobile.DependencyServices { public interface IThemingDependencyService { bool DeviceSupportsManualDarkMode(); bool DeviceSupportsAutomaticDarkMode(); bool DeviceRequiresPagesRedraw(); ...
34.066667
146
0.74364
[ "MIT" ]
EdgeLatitude/SrtVideoPlayer
SrtVideoPlayer.Mobile/SrtVideoPlayer.Mobile/DependencyServices/IThemingDependencyService.cs
513
C#
using UnityEngine; public class Hoge43 : MonoBehaviour{ void Start(){ Debug.Log(Hoge43.GetIndex()); } void Update(){ } public static int GetIndex(){ return 43; } public int GetIndex0(){ return 0; } public int GetIndex1(){ return 1; } public int GetIndex2(){ return 2; } public int GetIndex3(){ return 3; } pu...
40.545545
43
0.705673
[ "MIT" ]
mao-test-h/SamplePackage
Runtime/Generated/Hoge43.generated.cs
40,951
C#
using System; public enum Directions { None = 0, Up = 1, Down = 2, Left = 3, Right = 4, } public static class Program { public static void Main (string[] args) { var d = Directions.Up; Console.WriteLine("{0}", ++d); Console.WriteLine("{0}", d); Console.WriteLin...
22.125
45
0.506591
[ "MIT" ]
RedpointGames/JSIL
Tests/SimpleTestCases/EnumPrePostIncrement.cs
531
C#
/* Copyright 2021 CrypTool 2 Team <ct2contact@CrypTool.org> 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 app...
31.958333
75
0.750978
[ "Apache-2.0" ]
CrypToolProject/CrypTool-2
LibSource/CrypAnalysisViewControl/SectionViewLabelsControl.cs
769
C#
using System; using System.Collections.Generic; using System.Linq; using RestSharp; using KeyPayV2.Common; using KeyPayV2.Common.Models; using KeyPayV2.Nz.Enums; using KeyPayV2.Nz.Models.Common; using KeyPayV2.Nz.Models.PayRun; namespace KeyPayV2.Nz.Functions { public class PayRunFunction : BaseFunctio...
40.820711
170
0.589111
[ "MIT" ]
KeyPay/keypay-dotnet-v2
src/keypay-dotnet/Nz/Functions/PayRunFunction.cs
26,411
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class NecrotomyManager : MonoBehaviour { public enum GameState { TIMEUP, } private GameState state; private Timer timer; // Use this for initialization void Start () { PlayerPrefs.SetInt...
18.055556
63
0.6
[ "MIT" ]
milkteabread/Assets
Script/prof/NecrotomyManager.cs
652
C#
using System; namespace AdventOfCode { class Program { static void Main(string[] args) { while (true){ int years = 1; int selectedYear = 0; while (true) { Console.WriteLine("Type in a number corrosp...
31.488636
83
0.348971
[ "MIT" ]
CreatorOfFame/AOC
AdventOfCode/AdventOfCode/Program.cs
2,773
C#
namespace PdfCraft.Contents.Text { internal class BreakPoint { private readonly bool _hasToBreak; private readonly int _lengthInPoints; private readonly string _text; public BreakPoint(bool hasToBreak, int lengthInPoints, string text) { _hasToBreak = hasToBre...
22.129032
75
0.54519
[ "Unlicense" ]
W0dan/PdfCraft
PdfCraft/Contents/Text/BreakPoint.cs
686
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Globalization; using Xunit; namespace System.Globalization.Tests { public class DateTimeFormatInfoFirstDayOfWeek { // PosTes...
30.766234
102
0.557619
[ "MIT" ]
bpschoch/corefx
src/System.Globalization/tests/DateTimeFormatInfo/DateTimeFormatInfoFirstDayOfWeek.cs
2,369
C#
using ShareFile.Api.Client.Extensions; using ShareFile.Api.Client.Extensions.Tasks; using System; using System.IO; using System.Collections.Generic; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using ShareFile.Api.Client.Enums; using ShareFile.Api.Client.Exceptions; namespace ShareFil...
36.732877
133
0.590528
[ "MIT" ]
Dan-Avel/ShareFile-NET
src/ShareFile.Api.Client/Transfers/Uploaders/ScalingFileUploader.cs
5,365
C#
namespace BotsDotNet.Palringo.SubProfile.Parsing { public interface IParsable { void Process(DataMap data); } }
16.625
49
0.676692
[ "MIT" ]
JTOne123/botsdotnet
BotsDotNet.Palringo/SubProfile/Parsing/IParsable.cs
135
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Framework.Core.Helpers { public static class AsyncHelpers { /// <summary> /// Execute's an async Task<T> method which has a void return value synchronously ...
32.37037
120
0.45881
[ "Apache-2.0" ]
lneninger/quickbookdesktop-integrator
src/Framework/Framework.Core/Helpers/AsyncHelpers.cs
4,372
C#
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Windows; namespace AVGUI.Windows.Messages { /// <summary> /// Логика взаимодействия для MessagesWindow.xaml /// </summary> public partial class MessagesWindow : Window { PipeCli...
29.134831
153
0.463556
[ "MIT" ]
AVDevTeam/AVCore
AVGUI/Windows/Messages/MessagesWindow.xaml.cs
2,653
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace ListBox.MultiSelectItems { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Applicat...
18.777778
42
0.713018
[ "MIT" ]
ChrisDiky/MaterialDesignInXaml.Examples
ListBox/ListBox.MultiSelectItems/App.xaml.cs
340
C#
using JTNE.Protocol.Attributes; using JTNE.Protocol.Formatters; using System; using System.IO; namespace JTNE.Protocol { /// <summary> /// 新能源包 /// 只做简单的头部解析不做复杂的业务逻辑 /// 例如:不同的厂商可能加密方式不同,所以消息数据体不做加解密的判断。 /// </summary> [JTNEFormatter(typeof(JTNEHeaderPackage_PlatformFormatter))] public cl...
30.457627
86
0.543684
[ "MIT" ]
SmallChi/GBNewEnergy
src/JTNE.Protocol/JTNEHeaderPackage_Platform.cs
2,269
C#
// © 2019 Koninklijke Philips N.V. See License.md in the project root for license information. using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.VisualStudio.TestTools.UnitTesting; using Philips.CodeAnalysis.Common; using Philips.CodeAnalysis.MaintainabilityAnalyzers.Maintainability; namespace Philips...
29.444444
280
0.706918
[ "MIT" ]
philips-software/roslyn-analyzers
Philips.CodeAnalysis.Test/Maintainability/Maintainability/AvoidStaticMethodAnalyzerTest.cs
3,978
C#
namespace Logary.CSharpExample { using System; using System.Threading; using System.Threading.Tasks; using Configuration; using CSharp; using Targets; using Adapters.Facade; public static class Program { public static Task<LogManager> StartLiterate() { r...
34.673077
116
0.540488
[ "ECL-2.0", "Apache-2.0" ]
causiq/logary
examples/Logary.CSharpExample/Program.cs
3,608
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("Get...
37.783784
84
0.748927
[ "MIT" ]
StingyJack/DevCommIssueScraper
GetIssueDetails/Properties/AssemblyInfo.cs
1,401
C#
using System; using System.Web.Http; using System.Web.Mvc; using SRMAPI.Areas.HelpPage.ModelDescriptions; using SRMAPI.Areas.HelpPage.Models; namespace SRMAPI.Areas.HelpPage.Controllers { /// <summary> /// The controller that will handle requests for the help page. /// </summary> public clas...
30.777778
116
0.575554
[ "MIT" ]
DrSophistry/SophisRetailManager
SRMAPI/Areas/HelpPage/Controllers/HelpController.cs
1,939
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace WebApp { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { Are...
25.681818
70
0.704425
[ "MIT" ]
1804-Apr-USFdotnet/ram-adhikari-project1
ProjectOne/WebApp/Global.asax.cs
567
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. namespace Microsoft.Telepathy.ServiceBroker.Common { using System; /// <summary> /// Define broker's states /// </summary> [Serializable] public enum BrokerState { /// <summary> /// The broker is no...
19.34
50
0.474664
[ "MIT" ]
dubrie/Telepathy
src/soa/CcpWSLB/Common/BrokerState.cs
969
C#
// ----------------------------------------------------------------------------- // 让 .NET 开发更简单,更通用,更流行。 // Copyright © 2020-2021 Furion, 百小僧, Baiqian Co.,Ltd. // // 框架名称:Furion // 框架作者:百小僧 // 框架版本:2.8.3 // 源码地址:Gitee: https://gitee.com/dotnetchina/Furion // Github:https://github.com/monksoul/Furion // 开源协议:...
23.735849
81
0.459459
[ "Apache-2.0" ]
dannylincn/Furion
framework/Furion/DependencyInjection/Enums/InjectionPatterns.cs
1,507
C#
using System; using CoreGraphics; using CoreGraphics; using SpriteKit; using UIKit; namespace ButtonTapper3000 { public class BasicScene : SKScene { protected UIColor SelectedColor { get; private set; } protected UIColor UnselectedColor { get; private set; } protected UIColor ButtonColor { get; private set; }...
25.711111
81
0.711322
[ "Apache-2.0" ]
dannycabrera/monotouch-samples
ButtonTapper3000/ButtonTapper3000/Scenes/BasicScene.cs
1,157
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 Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Twitter; using Microsoft.AspNetCore.Http; namespace ...
38.777778
111
0.636512
[ "Apache-2.0" ]
ghstahl/P7
src/TwitterAuth/TwitterOptions.cs
2,443
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace src { public class Program { ...
23.769231
62
0.631068
[ "MIT" ]
fafg/teamcity-cake-ci-cd-docker-swarm
src/myapi/Program.cs
620
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MVCFrog { class FrogController { Frog frog = new Frog(); public void growFrog() { frog.grow(); } public void shri...
15.741935
35
0.487705
[ "MIT" ]
Trev61/MVCFrog
MVCFrog/MVCFrog/FrogController.cs
490
C#
using OsmSharp; using System; namespace OsmDataKit { public class RelationMemberObject { public GeoObject Geo { get; } public string? Role { get; } public OsmGeoType Type => Geo.Type; public long Id => Geo.Id; public string Url => Geo.Url; public RelationMe...
23.2
74
0.597701
[ "MIT" ]
chubrik/OsmDataKit
OsmDataKit/Models/RelationMemberObject.cs
698
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #if ES_BUILD_STANDALONE using System; #endif #if ES_BUILD_STANDALONE namespace Microsoft.Diagnostics.Tracing #else namespace System.Diagnostics.Tracing #endif { /// <summary> ...
28.758621
86
0.677458
[ "MIT" ]
belav/runtime
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/TraceLoggingEventTraits.cs
834
C#
using System; using System.Collections.Generic; using System.Text; namespace Plugin.XamarinExtentions { /// <summary> /// Interface for $safeprojectgroupname$ /// </summary> public class XamarinExtentionsImplementation : IXamarinExtentions { } }
19.428571
69
0.709559
[ "MIT" ]
chachamaru0802/Plugin.XamarinExtentions
src/XamarinExtentions/XamarinExtentions/XamarinExtentionsImplementation.android.cs
274
C#
// #[license] // SmartsheetClient SDK for C# // %% // Copyright (C) 2014 SmartsheetClient // %% // 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 // // ...
32.634146
152
0.638266
[ "Apache-2.0" ]
JTP3XP/smartsheet-csharp-sdk
main/Smartsheet/Api/OAuth/AccessDeniedException.cs
1,340
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Web.Mvc; using Nop.Core; using Nop.Core.Domain.Catalog; using Nop.Services.Catalog; using Nop.Services.Localization; using Nop.Web.Framework.Mvc; using Nop.Web.Framework.UI.Paging; namespace Nop.Web.Models.Cata...
40.433414
155
0.530271
[ "Apache-2.0" ]
atiq-shumon/DotNetProjects
Vialinker Source/BaseVialinkerCommerceApps/Presentation/Nop.Web/Models/Catalog/CatalogPagingFilteringModel.cs
16,701
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Runtime.Serialization; namespace Microsoft.Web.Http.Data.Te...
31.859016
162
0.524545
[ "Apache-2.0" ]
Daniel-Svensson/OpenRiaServices
src/archive/OpenRiaServices.DomainControllers.Server/Test/Models/Cities.cs
9,719
C#
using System; using System.Collections.Generic; using System.IO; using System.Reflection; using Wyam.Common.Caching; using Wyam.Common.Configuration; using Wyam.Common.Documents; using Wyam.Common.IO; using Wyam.Common.JavaScript; using Wyam.Common.Meta; using Wyam.Common.Modules; using Wyam.Common.Tracing; namespace...
55.213389
171
0.64421
[ "MIT" ]
glennawatson/Wyam
src/core/Wyam.Common/Execution/IExecutionContext.cs
13,198
C#
using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Text; namespace CefNet.Internal { public partial class WebViewGlue { public void CreateOrDestroyFocusGlue() { if (AvoidOnTakeFocus() && AvoidOnSetFocus() && AvoidOnGotFocus()) { this.FocusGlue =...
27.591549
103
0.698315
[ "MIT" ]
CefNet/CefNet
CefNet/Internal/WebViewGlue.CefFocusHandlerGlue.cs
1,961
C#
//////////////////////////////////////////////////////////////////////////////// /// @file SettingWindow.xaml.cs /// @brief SettingWindowクラス /// @author Yuta Yoshinaga /// @date 2017.10.20 /// $Version: $ /// $Revision: $ /// /// Copyright (c) 2017 Yuta Yoshinaga. All Rights reserved. /// /// - 本ソフトウェアの一部又は全...
38.568182
212
0.647238
[ "MIT" ]
yuta-yoshinaga/reversiwpf
ReversiWpf/SettingWindow.xaml.cs
19,817
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by avrogen.exe, version 0.9.0.0 // Changes to this file may cause incorrect behavior and will be lost if code // is regenerated // </auto-generated> // --------------------------------------------...
63.368098
147
0.513312
[ "MIT" ]
DRIVER-EU/csharp-test-bed-adapter
src/StandardMessages/schemas/eu/driver/model/geojson/photo/FeatureCollection.cs
10,329
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...
37.312977
147
0.605565
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/ElasticMapReduce/Generated/Model/Internal/MarshallTransformations/DescribeJobFlowsRequestMarshaller.cs
4,888
C#
/** * Copyright 2015 IBM Corp. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
42.472527
153
0.650453
[ "MIT" ]
iamdakshak/faceAR
Assets/Watson/Scripts/UnitTests/TestLanguageTranslatorV3.cs
7,732
C#
using ModernWpf.Controls; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; usin...
21.862069
43
0.716088
[ "MIT" ]
wherewhere/ModernWpf
ModernWpf.SampleApp/ControlPages/WebViewPage.xaml.cs
646
C#
/* * Copyright (c) 2016 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 requi...
42.9125
130
0.733761
[ "Apache-2.0", "MIT" ]
AchoWang/TizenFX
src/Tizen.Multimedia.Util/Interop/Interop.ThumbnailExtractor.cs
3,433
C#
#pragma warning disable CS1591 namespace Elements.Geometry.Profiles { public enum SHSProfileType { SHS50xs00x1_6, SHS50xs00x2, SHS50xs00x2_3, SHS50xs00x2_5, SHS50xs00x3, SHS50xs00x3_2, SHS50xs00x4, SHS50xs00x4_5, SHS50xs00x5, SHS50x...
22.454545
36
0.564777
[ "MIT" ]
Autonomation/Elements
Elements/src/Geometry/Profiles/SHSProfileType.cs
3,952
C#
using System; using System.Runtime.InteropServices; using System.Text; namespace Millarow.Win32.User32 { internal static class User32Native { private const string LibraryFileName = "user32.dll"; [DllImport(LibraryFileName, SetLastError = true)] public static extern bool Reg...
45.1875
176
0.704011
[ "MIT" ]
mcculic/millarowframework
src/Millarow.Win32/User32/User32Native.cs
2,171
C#
using System; using System.Threading.Tasks; namespace Steepshot.Core.Services { public interface ILogService { Task Fatal(Exception ex); Task Error(Exception ex); Task Warning(Exception ex); Task Info(Exception ex); } }
16.75
35
0.645522
[ "MIT" ]
Chainers/steepshot-mobile
Sources/Steepshot/Steepshot.Core/Services/ILogService.cs
270
C#
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using VendingMachine.Core.Models; using VendingMachine.DAL.Data; using VendingMachine.DAL.Entities; using VendingMachine.DAL.Repositories; using Xunit; namespace VendingMachine.Tests.VM.DAL { public class UserDepositRepositoryTest...
37.051948
119
0.581143
[ "MIT" ]
alexey-gorshkov/VendingMachineWebAPIAngular
VendingMachine.Tests/VM.DAL/UserDepositRepositoryTests.cs
2,853
C#
using GrEmit.InstructionParameters; namespace GrEmit.StackMutators { internal class SwitchStackMutator : StackMutator { public override void Mutate(GroboIL il, ILInstructionParameter parameter, ref EvaluationStack stack) { var labels = ((LabelsILInstructionParameter)parameter).Label...
38.25
137
0.661765
[ "MIT" ]
JTOne123/gremit
GrEmit/StackMutators/SwitchStackMutator.cs
612
C#
using Dapper; using System; using System.Data.SqlClient; using System.Linq; using System.Net; using System.Net.WebSockets; namespace Server.Data { public class DapperDb { public static void Main(string[] args) { using var connection = new SqlConnection("Server=.;Database=DapperDB;...
29.560606
133
0.519733
[ "MIT" ]
Drakojan/SoftUni_C-_Web_Basics
Exercise_1_simple_web_server/Server.Data/DapperDb.cs
1,953
C#
#nullable disable using System; using System.Collections.Generic; using System.Linq; using VocaDb.Model.Database.Repositories; using VocaDb.Model.Domain; using VocaDb.Model.Domain.Albums; using VocaDb.Model.Domain.Artists; using VocaDb.Model.Domain.ExtLinks; using VocaDb.Model.Domain.Globalization; using Vo...
40.778243
240
0.723579
[ "MIT" ]
AgFlore/vocadb
VocaDbModel/Service/QueryableExtensions/AlbumQueryableExtensions.cs
9,746
C#
using System; using System.Linq; using System.Collections.Generic; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Microsoft.Extensions.Configuration; using NBitcoin.DataEncoders; using Newtonsoft.Json.Linq; using Xunit; using System.IO; namespace BTCPayServer.Tests { /// <summary> ...
43.606383
280
0.604782
[ "MIT" ]
Deimoscoin/btcpayserver
BTCPayServer.Tests/UtilitiesTests.cs
4,101
C#
namespace Hexure { public interface IAggregateRoot<out TIdentifier> { TIdentifier Id { get; } } }
16.857143
52
0.627119
[ "MIT" ]
sygnowskip/modular-monolith
Source/Hexure/IAggregateRoot.cs
120
C#
using Multichat_Client.API; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Multichat_Client { class Program { static void Main(string[] args) { ClientAPI client = new ClientAPI(); client.Say(...
18.6
47
0.61828
[ "BSD-3-Clause" ]
OlehMarchenko95/ort_csharp_js
Other solutions/Multichat/Multichat_Client/Program.cs
374
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace FalconNet.Sim { public class SimACDefinition : SimMoverDefinition { #if USE_SH_POOLS public: // Overload new/delete to use a SmartHeap pool void *operator new(size_t size) { return MemAllocPtr(gReadInMemPool,s...
29.84507
91
0.598867
[ "MIT" ]
agustinsantos/FalconNet
Sim/AcDef.cs
2,121
C#
using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Razor.TagHelpers; using System; using System.Collections.Generic; using LazZiya.TagHelpers.Alerts; using System.Threading.Tasks; using LazZiya.TagHelpers.Utilities; using Microsoft.AspNetCore.Mvc.ViewFeatures; namespace LazZiya.TagHelpers { /// ...
36.861386
172
0.585818
[ "MIT" ]
alimon808/TagHelpers
LazZiya.TagHelpers/AlertTagHelper.cs
3,725
C#
using Codeizi.CQRS.Saga.Context; using Codeizi.CQRS.Saga.Data; using Codeizi.CQRS.Saga.Logs; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json; using System; using System.Threading.Tasks; namespace Codeizi.CQRS.Saga.DAO { public class SagaLogDAO { private readonly IServiceProvider ...
27.085714
83
0.619198
[ "MIT" ]
JDouglasMendes/codeizi-cqrs-saga
src/Codeizi.CQRS.Saga/DAO/SagaLogDAO.cs
950
C#
// Copyright (c) Lex Li. All rights reserved. // // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.ComponentModel; using System.Net; using System.Net.Sockets; using System.Runtime.InteropServices; using System.Windows.Forms; using System....
29.637566
238
0.429349
[ "MIT" ]
jexuswebserver/JexusManager
Microsoft.Web.Administration/Binding.cs
11,205
C#
using Git.Services; using Git.ViewModels.Users; using SUS.HTTP; using SUS.MvcFramework; using System.ComponentModel.DataAnnotations; using System.Text.RegularExpressions; namespace Git.Controllers { public class UsersController : Controller { private readonly IUsersService usersService; publi...
28.430894
117
0.529597
[ "MIT" ]
Paulina-Dyulgerska/CSharp_Web_Lectures
Exam/Apps/Git/Controllers/UsersController.cs
3,499
C#
using System.Collections.Generic; using System.Dynamic; using System.Linq; using TauCode.Data; namespace TauCode.Db.Data { public class DynamicRow : DynamicObject { private readonly IDictionary<string, object> _values; public DynamicRow(object original = null) { IDictionar...
25.387755
89
0.509646
[ "Apache-2.0" ]
taucode/taucode.db
src/TauCode.Db/Data/DynamicRow.cs
2,490
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Serialization.Formatters.Binary; using System.Threading.Tasks; using Microsoft; using Microsoft.VisualStudio.Settings; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell...
30.082902
125
0.732001
[ "Apache-2.0" ]
VictorLoktev/TameVisualStudioTooltips
TameVisualStudioTooltips/TameQuickInfoBaseOptions.cs
5,808
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using StackExchange.Redis; namespace Tests.Issues { [TestFixture] public class SO10825542 { [Test] public void Execute() { using (var muxer = Config.GetUnsecuredC...
30.4
87
0.554511
[ "Apache-2.0" ]
luberg/StackExchange.Redis
MigratedBookSleeveTestSuite/Issues/SO10825542.cs
1,066
C#
// HO=False using System; // using System; using System.Collections.Generic; // using System.Collections.Generic; using System.Linq; // using System.Linq; using System.Text; // using System.Text; // namespace Charlotte // namespace Charlotte { // { public class ScheduleMinorIodineWrapper // public class GameStatus...
62.747619
619
0.859452
[ "MIT" ]
soleil-taruto/Hatena
a20201226/Confused_01/tmpsol_mid/Elsa20200001/Games/GameStatus.cs
13,179
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("Do...
38.945946
84
0.746704
[ "MIT" ]
dotJEM/json-nunit
DotJEM.NUnit.Json/Properties/AssemblyInfo.cs
1,444
C#
using System.Collections; using System.Collections.Generic; using Microsoft.Maui.Graphics; namespace Microsoft.Maui.DeviceTests.Stubs { public partial class PickerStub : StubBase, IPicker { public string Title { get; set; } public IList<string> Items { get; set; } = new List<string>(); public IList ItemsSou...
22.24
64
0.69964
[ "MIT" ]
JoonghyunCho/maui
src/Core/tests/DeviceTests/Stubs/PickerStub.cs
558
C#
using AutoMapper; using EasyStore.ProductAPI.Models; using EasyStore.ProductAPI.Models.Dto; namespace EasyStore.ProductAPI.Mappers { public class MappingConfig { public static MapperConfiguration RegisterMaps() { var mappingConfig = new MapperConfiguration(c => { ...
24.3
60
0.600823
[ "Apache-2.0" ]
thiagocruzrj/EasyStore.Microservices
EasyStore/EasyStore.ProductAPI/Mappers/MappingConfig.cs
488
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Web; [assembly: PreApplicationStartMethod (typeof (Test_09.Tests.PreStart), "FormsAuthenticationSetUp")] // General Information about an assembly is controlled through the following // set of attribute...
37.897436
99
0.746279
[ "Apache-2.0" ]
121468615/mono
mcs/class/System.Web/Test/standalone/EnableFormsAuthentication/Test_09/Properties/AssemblyInfo.cs
1,481
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 Y...
41.853474
163
0.560833
[ "Apache-2.0" ]
68681395/npoi
testcases/main/SS/UserModel/BaseTestSheetUpdateArrayFormulas.cs
27,707
C#
using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("OpenTelemetry.AutoInstrumentation.ClrProfiler.Managed, PublicKey=0024000004800000140100000602000000240000525341310008000001000100652bb911930d33a4f67cfd6c712abf77978de155dbdb07b01c08df4f5615af4753b4a5fac5d4d2143ecc8ea6aaab9b3a2fef845a2698139356bf1d1a...
541.315789
675
0.977248
[ "Apache-2.0" ]
anuragvajpayee/opentelemetry-dotnet-instrumentation
src/Datadog.Trace/AssemblyInfo.cs
10,285
C#
using System.Collections.Generic; using System.Security.Cryptography.X509Certificates; using Diadoc.Api; using Diadoc.Api.Cryptography; using Diadoc.Api.Proto; using Diadoc.Api.Proto.Events; namespace Diadoc.Console { public class ConsoleContext { public ICrypt Crypt { get; set; } public DiadocApi DiadocApi { g...
24.083333
52
0.711649
[ "MIT" ]
24twelve/diadocsdk-csharp
Samples/Diadoc.Console/ConsoleContext.cs
869
C#
// // System.ActivationContext class // // Author: // Sebastien Pouliot <sebastien@ximian.com> // // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"),...
26.801653
119
0.721554
[ "Apache-2.0" ]
121468615/mono
mcs/class/corlib/System/ActivationContext.cs
3,243
C#
namespace CollectionsOnline.Tasks { public class AppSettings { public const string APP_SETTINGS = "AppSettings"; public string DatabaseUrl { get; set; } public string DatabaseName { get; set; } public string WebSitePath { get; set; } pu...
26.478261
57
0.561576
[ "MIT" ]
museumsvictoria/collections-online
src/CollectionsOnline.Tasks/AppSettings.cs
609
C#
using System; using EIP.Common.Entities; using EIP.Common.Entities.CustomAttributes; namespace EIP.System.Models.Entities { /// <summary> /// System_Field表实体类 /// </summary> [Serializable] [Table(Name = "System_Field")] public class SystemField: EntityBase { /// <summary> /...
21.104167
44
0.427937
[ "MIT" ]
woshisunzewei/EIP
Service/System/EIP.System.Models/Entities/SystemField.cs
2,160
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ManejoDeActivos { public partial class Form1 : Form { public Form1() {...
22.101449
73
0.577705
[ "MIT" ]
KarlaRjc/DisAppsSoft
AssetsManagement/AssetsManagement/GUI/ManejoDeActivos/ManejoDeActivos/Form1.cs
1,527
C#
// Copyright (c) MOSA Project. Licensed under the New BSD License. using Xunit; using Xunit.Extensions; namespace Mosa.UnitTest.Collection.xUnit { public class DoubleFixture : TestFixture { //private static double Tolerance = 0.000001d; //private static IComparer<double> target = new ApproximateComparer(Tolera...
30.011905
116
0.688814
[ "BSD-3-Clause" ]
carverh/ShiftOS
Source/Mosa.UnitTest.Collection.xUnit/DoubleFixture.cs
5,044
C#
using System.Collections.Generic; using System.Threading.Tasks; namespace FluffySpoon.Automation.Web.Fluent.Context { public interface IMethodChainContext : IAwaitable { Task RunAllAsync(); Task RunNextAsync(); int NodeCount { get; } IEnumerable<IWebAutomationFrameworkInstance> Frameworks { get; } IWebA...
28.294118
114
0.798337
[ "MIT" ]
ffMathy/FluffySpoon.Automation
src/FluffySpoon.Automation.Web/Fluent/Context/IMethodChainContext.cs
483
C#
// <auto-generated /> namespace BIMStore.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] public sealed partial class v1 :...
26.2
85
0.605598
[ "MIT" ]
x3n0r/BIMStore
BIMStore/Migrations/201810050955480_v1.Designer.cs
786
C#
// ---------------------------------------------------------------------------------- // // Copyright 2011 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://ww...
45.369919
191
0.645731
[ "Apache-2.0" ]
dineshkummarc/azure-sdk-tools
WindowsAzurePowershell/src/Management.CloudService/Model/AzureService.cs
11,163
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * 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 r...
45.568468
147
0.554556
[ "BSD-3-Clause" ]
Ideia-Boa/diva-distribution
OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
50,581
C#
using System; using System.IO; public class NgFile { public static string PathSeparatorNormalize(string path) { char[] array = path.ToCharArray(); for (int i = 0; i < path.get_Length(); i++) { if (path.get_Chars(i) == '/' || path.get_Chars(i) == '\\') { array[i] = '/'; } } path = new string(ar...
19.568182
102
0.590302
[ "MIT" ]
corefan/tianqi_src
src/NgFile.cs
3,444
C#
namespace Demo.Reviews { public record Author(int Id, string Name); }
18.25
46
0.726027
[ "MIT" ]
glucaci/elastic-apm-poc
src/reviews/Author.cs
73
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // System.Net.HttpEndPointManager // // Author: // Gonzalo Paniagua Javier (gonzalo@ximian.com) // // Copyright (c) 2005 Novell, Inc. (http://www.novell.com) // // Permission is ...
35.364055
167
0.545478
[ "MIT" ]
333fred/runtime
src/libraries/System.Net.HttpListener/src/System/Net/Managed/HttpEndPointManager.cs
7,674
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace PartsUnlimited.Models { public class ConfigSettings { public ConnectionStringsSettings ConnectionStrings { get; set; } } public class ConnectionStringsSettings { public strin...
20.444444
72
0.720109
[ "MIT" ]
ganeshtodkar20/GDBC-PartsUnlimited
src/PartsUnlimited.Models/ConfigSettings.cs
370
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading; using Microsoft.Applications....
34.715818
173
0.547301
[ "MIT" ]
ScriptBox99/qsharp-compiler
src/Telemetry/Library/OutOfProcess/OutOfProcessLogger.cs
12,949
C#
using System; namespace FontAwesome { /// <summary> /// The unicode values for all FontAwesome icons. /// <para/> /// See https://fontawesome.com/cheatsheet /// <para/> /// This code was automatically generated by FA2CS (https://github.com/michaelswells/fa2cs a modified fork from https://github...
37.098361
154
0.597879
[ "MIT" ]
michaelswells/FontAwesomeAttribute
FontAwesome/FontAwesome.FilesMedical.cs
2,263
C#
/* * Copyright (c) Contributors, http://vision-sim.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * For an explanation of the license of each contributor and the content it * covers please see the Licenses directory. * * Redistribution and use in source and binary forms, with or without...
48.788571
132
0.586671
[ "MIT" ]
VisionSim/Vision-Sim
Vision/Services/GenericServices/LLLoginService/LoginModules/BannedUserLoginModule.cs
8,540
C#
namespace Definux.Emeraude.Resources { /// <summary> /// Default system formats in the Emeraude. /// </summary> public static class SystemFormats { /// <summary> /// Default date format used by Emeraude. /// </summary> public const string DateFormat = "dddd, dd/MM/yy...
28.323529
70
0.554517
[ "Apache-2.0" ]
Definux/Emeraude
src/Core/Definux.Emeraude.Resources/SystemFormats.cs
965
C#
using System; using System.Collections.Generic; using System.Text; using Microsoft.Extensions.DependencyInjection; using WorkflowCore.IntegrationTests.Scenarios; using Xunit; namespace WorkflowCore.Tests.PostgreSQL.Scenarios { [Collection("Postgres collection")] public class PostgresForeachScenario : ForeachS...
29.631579
113
0.74778
[ "MIT" ]
201512130144/demo
test/WorkflowCore.Tests.PostgreSQL/Scenarios/PostgresForeachScenario.cs
565
C#
using System; using System.ComponentModel; using System.Threading.Tasks; using Xamarin.Forms; using Connectivity.Plugin; using Microsoft.WindowsAzure.MobileServices; namespace Moments { public class App : Application { public App () { Styles.RegisterGlobalStyles (); if (AccountService.Instance.ReadyToSi...
29.12766
122
0.686998
[ "MIT" ]
BrotherBrett/moments
Moments - CSharp/Moments.Shared/Moments.cs
2,738
C#
using System; using System.IO; using System.Text; using System.Threading.Tasks; namespace Parse.Internal.Utilities { /// <summary> /// A collection of utility methods and properties for writing to the app-specific persistent storage folder. /// </summary> internal static class StorageManager { ...
58.741573
285
0.675593
[ "BSD-3-Clause" ]
alexnaldo/Parse-SDK-dotNET
Parse/Internal/Utilities/StorageManager.cs
5,228
C#
// Copyright Epic Games, Inc. All Rights Reserved. using EOSCSharpSample.Helpers; using EOSCSharpSample.Services; using EOSCSharpSample.ViewModels; namespace EOSCSharpSample.Commands { public class FriendsSubscribeUpdatesCommand : CommandBase { public override bool CanExecute(object parameter) ...
29.272727
178
0.703416
[ "MIT" ]
EpicGames/EOS-Getting-Started
CSharp/EOSCSharpSample_10/EOSCSharpSample/EOSCSharpSample/Commands/FriendsSubscribeUpdatesCommand.cs
646
C#
using Xamarin.Forms; using Xamarin.Forms.PlatformConfiguration; using Xamarin.Forms.PlatformConfiguration.iOSSpecific; namespace PlatformSpecifics { public class iOSModalPagePresentationStyleCS : ContentPage { public iOSModalPagePresentationStyleCS() { On<iOS>().SetModalPresentatio...
30.4
114
0.573465
[ "Apache-2.0" ]
15217711253/xamarin-forms-samples
UserInterface/PlatformSpecifics/PlatformSpecifics/iOS/CS/iOSModalPagePresentationStyleCS.cs
914
C#
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated ...
41.245614
93
0.76308
[ "MIT" ]
KohrAhr/Asn1Editor.WPF
Asn1Editor/Properties/AssemblyInfo.cs
2,354
C#
using BaGet.Core.Entities; namespace BaGet.Core.Legacy.OData { public class PackageWithUrls { private readonly string resourceIdUrl; private readonly string packageContentUrl; private readonly ODataPackage pkg; public PackageWithUrls(ODataPackage pkg, string resourceIdUrl, stri...
28.875
96
0.659091
[ "MIT" ]
ai-traders/BaGet
src/BaGet.Core/Legacy/OData/PackageUrls.cs
924
C#
using System; using System.Linq.Expressions; namespace QiBuBlog.Util { internal static class PredicateBuilder { private static Expression<Func<T, bool>> BaseAnd<T>() { return f => true; } private static Expression<Func<T, bool>> BaseOr<T>() { re...
32.048
136
0.562906
[ "Apache-2.0" ]
icodemaker/qibublog
Code/QiBuBlog.Util/PredicatePack.cs
4,008
C#
using GSD.Common; using GSD.Tests.Should; using Moq; using Moq.Protected; using NUnit.Framework; using System; using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; namespace GSD.UnitTests.Common { [TestFixture] public class OrgInfoServ...
39.711712
209
0.591425
[ "MIT" ]
derrickstolee/VFSForG
GSD/GSD.UnitTests/Common/OrgInfoApiClientTests.cs
4,408
C#
using System; using System.Collections.Generic; using System.Linq; namespace Launchpad { public partial class DeviceInfo { public static DeviceInfo LaunchpadMini { get; } = new DeviceInfo( DeviceType.LaunchpadMini, "Launchpad Mini", "MIDI 1", new byte[,] ...
38.193548
73
0.403716
[ "MIT" ]
DKingAlpha/Launchpad.Net
src/Launchpad.Net/Devices/LaunchpadMini.cs
2,368
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...
26.321429
81
0.675712
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Sql/V20201101Preview/Outputs/ManagedInstancePrivateEndpointPropertyResponse.cs
737
C#
using System.Windows; namespace PunkOrgan { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { private PunkHammond synth = new PunkHammond(); public MainWindow() { synth.LoadState(); syn...
25.482759
125
0.585927
[ "MIT" ]
MiklosPathy/zplusnth
PunkOrgan/MainWindow.xaml.cs
741
C#