content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System.Collections.Generic; using System.IO.Abstractions.TestingHelpers; namespace Prepend.Tests.TestData { public class Fakes { public MockFileSystem BuildFakeFileSystemWithoutPrepend() { var fakeFileSystem = new MockFileSystem(new Dictionary<string, MockFileData> { { ...
46.764706
106
0.583648
[ "MIT" ]
joelcaples/Prepend
prepend.tests/TestData/Fakes.cs
1,592
C#
using System; using Akavache.Sqlite3; // Note: This class file is *required* for iOS to work correctly, and is // also a good idea for Android if you enable "Link All Assemblies". namespace BetterChoiceShared { [Preserve] public static class LinkerPreserve { static LinkerPreserve() { ...
21.409091
76
0.666667
[ "MIT" ]
vivekgits/BetterChoiceApp
BetterChoice/AkavacheSqliteLinkerOverride.cs
471
C#
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace System.IO.Ports { public class SerialDevice:IDisposable { public const int READING_BUFFER_SIZE = 1024; private readonly CancellationTokenSource ...
28.847561
94
0.480659
[ "MIT" ]
JawadJaber/serialapp-master
nuget/SerialDevice.cs
4,731
C#
namespace Lockstep.Network { public interface IMessage { ushort opcode { get; set; } } public interface IRequest : IMessage { int RpcId { get; set; } } public interface IResponse : IMessage { int Error { get; set; } string Message { get; set; } int RpcId { g...
26.571429
46
0.560932
[ "MIT" ]
JulyXm/UnityBuilder
Assets/Code/Framework/Network/IMessage.cs
558
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
35.831776
133
0.581116
[ "MIT" ]
Squidex/squidex
backend/tests/Squidex.Domain.Apps.Entities.Tests/Schemas/DomainObject/Guards/FieldProperties/NumberFieldPropertiesTests.cs
3,836
C#
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Reflection; namespace QuickJS.Binding { public class PlainMethodCodeGen : IDisposable { protected CodeGenerator cg; public PlainMethodCodeGen(CodeGenerator cg, string sig) { ...
35.954545
196
0.615676
[ "MIT" ]
ialex32x/unity-jsb
Assets/jsb/Source/Binding/Editor/Codegen/CodeGenHelper_PlainMethod.cs
1,582
C#
using System; using System.Collections.Generic; using System.Linq; using Api.Game.ValueObjects; namespace Api.Game.Aggregates { public class Board { public static BoardState State { get; private set; } public static void Initialize(List<Colour> colours = null) { Pattern.Gen...
31.630769
125
0.558852
[ "Apache-2.0" ]
vferras/MasterMind
src/Api/Game/Aggregates/Board.cs
2,056
C#
namespace AnimalFarm { using System; using AnimalFarm.Models; class Program { static void Main(string[] args) { string name = Console.ReadLine(); int age = int.Parse(Console.ReadLine()); try { Chicken chicken ...
24.37931
74
0.432815
[ "MIT" ]
delbusque/My-SoftUni-projects-homework-and-exercises
C#OOP/EncapsulationExercise/AnimalFarm/AnimalFarm/Program.cs
709
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
33.463918
99
0.601972
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Vod/V20180717/Models/MediaContentReviewSegmentItem.cs
3,554
C#
namespace Alpaca.Markets; /// <summary> /// Encapsulates request parameters for <see cref="AlpacaDataClient.ListNewsArticlesAsync(NewsArticlesRequest,System.Threading.CancellationToken)"/> call. /// </summary> public sealed class NewsArticlesRequest : Validation.IRequest, IHistoricalRequest<NewsArticlesRequest, INews...
39.402174
154
0.666207
[ "Apache-2.0" ]
ooples/alpaca-trade-api-csharp
Alpaca.Markets/Parameters/NewsArticlesRequest.cs
3,627
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class QuestSystem : MonoBehaviour { private static ArrayList quests = new ArrayList(); public static QuestSystem instance; private void Awake() { instance = this; } // Start is called before the first ...
20.53125
54
0.592846
[ "MIT" ]
esl1350/PaperPlanes
Assets/Scripts/Quests/QuestSystem.cs
1,314
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using SULS.Data; using SULS.Models; namespace SULS.Services { public class UserService : IUserService { private readonly SULSContext context; public UserService(SULSContex...
25.611111
118
0.566161
[ "MIT" ]
KostadinovK/CSharp-Web
01-C# Web Basics/07-Exam 16.06.2019/SULS/Apps/SULS/SULS.Services/UserService.cs
1,385
C#
using System.Web; using System.Web.Optimization; namespace LoggerService { public class BundleConfig { // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new Scr...
38.833333
112
0.571674
[ "Apache-2.0" ]
rahulmaddineni/Error-Logger
LoggerService/App_Start/BundleConfig.cs
1,167
C#
using Microsoft.Maui.Controls.CustomAttributes; using Microsoft.Maui.Controls.Internals; #if UITEST using Microsoft.Maui.Controls.Compatibility.UITests; using Xamarin.UITest; using NUnit.Framework; #endif namespace Microsoft.Maui.Controls.Compatibility.ControlGallery.Issues { #if UITEST [Category(UITestCategories.M...
26.37931
152
0.703268
[ "MIT" ]
Eilon/maui
src/Compatibility/ControlGallery/src/Issues.Shared/Issue8988.cs
2,297
C#
/* * This file is part of logview4net (logview4net.sourceforge.net) * Copyright 2008 Johan Idstam * * * This source code is released under the Artistic License 2.0. */ using System; using System.Data; using System.Data.SqlClient; using System.IO; using System.Windows.Forms; using System.Xml.Serial...
33.486486
130
0.542603
[ "Artistic-2.0" ]
idstam/logview4net
src/logview4net.mslisteners/SqlListenerConfigurator.cs
8,673
C#
// MapTileSource.cs // Script#/Libraries/Microsoft/BingMaps // This source code is subject to terms and conditions of the Apache License, Version 2.0. // using System; using System.Runtime.CompilerServices; namespace Microsoft.Maps { // TODO: Other members [ScriptImport] [ScriptName("TileSource")] p...
19.363636
90
0.610329
[ "Apache-2.0" ]
AmanArnold/dsharp
src/Libraries/Microsoft/BingMaps/MapTileSource.cs
639
C#
// <copyright file="ExistedUserSignInTest.cs" company="Mozilla"> // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, you can obtain one at http://mozilla.org/MPL/2.0/. // </copyright> namespace FirefoxPrivateVPNUITest { u...
32.921875
195
0.611296
[ "MPL-2.0" ]
Conjuror/guardian-vpn-windows
test/smoke/FirefoxPrivateVPNUITest/FirefoxPrivateVPNUITest/Tests/ExistedUserSignInTest.cs
2,109
C#
namespace Huten.App.Examples { using System; public sealed class Example_02 : Example { public override void Execute() { var a = QueryStringBuilder.Create() .AppendSection("document") .AppendSection(666.ToString()) .Build(); ...
27.459459
67
0.482283
[ "MIT" ]
do-loop/huten
src/Huten/Huten.App/Examples/Example_02.cs
1,018
C#
using Arragro.Common.Repository; using Arragro.TestBase; using System; using System.Linq; using Xunit; namespace Arragro.EF6.IntegrationTests { public class IntegrationTests { private void WithDbContext(Action<FooContext> action) { using (var context = new FooContext()) ...
29.549296
94
0.534795
[ "BSD-3-Clause" ]
Arragro/Arragro
tests/Arragro.EF6.IntegrationTests/IntegrationTests.cs
2,100
C#
using System; namespace Serilog.Sinks.Amazon.Kinesis { /// <summary> /// Args for event raised when log sending errors. /// </summary> public class LogSendErrorEventArgs : EventArgs { /// <summary> /// Initializes a new instance of the <see cref="LogSendErrorEventArgs"/> class. ...
27.967742
88
0.554787
[ "Apache-2.0" ]
Boostability/serilog-sinks-amazonkinesis
src/Serilog.Sinks.Amazon.Kinesis/Common/LogSendErrorEventArgs.cs
869
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace GabyCakes.API.Models { public enum Category { Cupcakes, Brownies, Cookies, Cakes } public class Product { public int Id { get; set; } public C...
21.212121
61
0.541429
[ "MIT" ]
ciband/gabycakes
GabyCakes.API/Models/Products.cs
702
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using Jerrycurl.Cqs.Sessions; using Jerrycurl.Relations; namespace Jerrycurl.Cqs.Language { public class ParameterStore : Collection<IParameter> { private readonly Dictionary<IField, IParameter> in...
28.303571
104
0.596845
[ "MIT" ]
rhodosaur/jerrycurl
src/Mvc/Jerrycurl.Cqs/Language/ParameterStore.cs
1,587
C#
namespace CoreGame.Models { public enum PlayerSideSelection { SavePigeons, BurnPigeons } }
21.4
37
0.691589
[ "BSD-3-Clause" ]
Devin0xFFFFFF/singed-feathers
CoreGame/Models/PlayerSideSelection.cs
109
C#
// // ISeparatorMenuItemBackend.cs // // Author: // Lluis Sanchez <lluis@xamarin.com> // // Copyright (c) 2012 Xamarin Inc // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software wit...
37.771429
80
0.75416
[ "MIT" ]
Bert1974/xwt
Xwt/Xwt.Backends/ISeparatorMenuItemBackend.cs
1,322
C#
using System.IO; using System.Linq; using Vs.VoorzieningenEnRegelingen.Core.TestData; using Xunit; using YamlDotNet.RepresentationModel; using YamlDotNet.Serialization; namespace Vs.Rules.Core.Tests { /// <summary></summary> public class YamlTests { private string Order(string s) { ...
38.221053
196
0.592399
[ "MIT" ]
sjefvanleeuwen/morstead
src/rules/Vs.Rules.Core.Tests/YamlTests.cs
3,631
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
43.952381
188
0.613218
[ "MIT" ]
JYang17/SampleCode
Samples/Wpf1/WpfUserControlLibrary1/Properties/Resources.Designer.cs
2,771
C#
using Microsoft.EntityFrameworkCore; using TrafficSignal.Web.DomainModels; namespace TrafficSignal.API.DbContexts { public class TrafficSignalDBContext : DbContext { public TrafficSignalDBContext(DbContextOptions<TrafficSignalDBContext> options) : base(options) { } public DbSe...
27.857143
103
0.697436
[ "MIT" ]
gaureshph/TrafficSignalTest
TrafficSignal.API/DbContexts/TrafficSignalDBContext.cs
587
C#
namespace scrapy.net; public class EngineStartedEventArgs { public EngineStartedEventArgs(ScrapyApplication scrapyApplication, IEnumerable<Spider<IResponse>> spiders) { ScrapyApplication = scrapyApplication; Spiders = spiders; } public ScrapyApplication ScrapyApplication { get; } ...
28.923077
110
0.742021
[ "MIT" ]
malisancube/scrapydev
src/scrapy.net/core/events/EngineStartedEventArgs.cs
378
C#
using Bottlecap.Net.GraphQL.Generation; using System.IO; using Xunit; namespace IntegrationTests.Bottlecap.Net.GraphQL.Generation { public class BaseTests { protected const string NAMESPACE = "Tests"; protected void ActAndAssertGeneratedResult(Generator generator, string testName) { ...
30.827586
163
0.591723
[ "MIT" ]
BottlecapDave/Bottlecap.Net.GraphQL.Generation
src/Tests/IntegrationTests.Bottlecap.Net.GraphQL.Generation/BaseTests.cs
896
C#
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Diagnostics; using Roslynator...
20.541667
160
0.57931
[ "Apache-2.0" ]
RickeyEstes/Roslynator
src/Tests/Analyzers.Tests/RCS1123AddParenthesesWhenNecessaryTests.cs
2,467
C#
#nullable enable using System; using System.Linq; using System.Threading.Tasks; using Content.Server.GameObjects.Components.Mobs; using Content.Server.GameObjects.Components.Observer; using Content.Server.GameObjects.Components.Power.ApcNetComponents; using Content.Server.GameObjects.EntitySystems; using Content.Serve...
35.012876
118
0.611915
[ "MIT" ]
AlphaQwerty/space-station-14
Content.Server/GameObjects/Components/Medical/CloningPodComponent.cs
8,160
C#
using UnityEngine; using System.Collections; public class Player : MonoBehaviour { public string playerName; void Start () { } void Update () { } }
9.823529
37
0.652695
[ "MIT" ]
hau5tastic/zombies
Assets/Scripts/Player.cs
169
C#
using System; namespace HunterPie.Core.LPlayer.Jobs { public class ChargeBladeEventArgs : EventArgs { public float VialChargeGauge; public float ShieldBuffTimer; public float SwordBuffTimer; public float PoweraxeTimer; public int Vials; public ChargeBla...
30.028302
102
0.514609
[ "MIT" ]
pedrodelapena/HunterPie
HunterPie/Core/LPlayer/Jobs/ChargeBlade.cs
3,185
C#
using System; namespace GuruComponents.Netrix.WebEditing.Elements { /// <summary> /// This enumaration is used to determine the rules between cells. /// </summary> /// <remarks> /// Rules are /// an HTML 4.0 feature to control lines between rows and columns separatly. /// The default value ...
26.95
85
0.505566
[ "MIT" ]
andydunkel/netrix
Netrix2.0/NetRixMain/NetRix/WebEditing/Elements/Tables/RulesType_Enum.cs
1,078
C#
using System.Xml.Linq; namespace WixSharp.Bootstrapper { /// <summary> /// Defines a registry search based on WiX RegistrySearch element (Util Extension). /// </summary> /// <example>The following is an example of adding a UtilRegistrySearch fragment into a Bundle definition. /// <code> /// bo...
37.029703
200
0.537701
[ "MIT" ]
Bajotumn/wixsharp
Source/src/WixSharp/Bootstrapper/UtilRegistrySearch.cs
3,740
C#
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/ // Portions Copyright 2000-2004 Jonathan de Halleux // // 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:...
32.957143
84
0.598179
[ "ECL-2.0", "Apache-2.0" ]
Gallio/mbunit-v3
src/Gallio/Gallio/Runner/RunnerException.cs
2,307
C#
#region licence // ===================================================== // EfSchemeCompare Project - project to compare EF schema to SQL schema // Filename: Test44MockCompareEfChangeSql.cs // Date Created: 2016/04/06 // // Under the MIT License (MIT) // // Written by Jon Smith : GitHub JonPSmith, www.thereformedpro...
55.254762
290
0.643427
[ "MIT" ]
britebit/EfSchemaCompare
Tests/UnitTests/Test44MockCompareEfChangeSql.cs
23,209
C#
using System; using System.Text; using Microsoft.Extensions.Logging; using Xunit.Abstractions; namespace Http2Tests { /// <summary> /// A logger implementation that writes to the XUnit Test output /// </summary> public class XUnitOutputLogger : ILogger { private static readonly object _loc...
29.771028
99
0.509967
[ "MIT" ]
DotNetUz/http2dotnet
Http2Tests/XUnitOutputLogger.cs
6,371
C#
using NeteaseCloudMusic.Global.Model; using NeteaseCloudMusic.Wpf.Model; using Prism.Commands; using Prism.Events; using Prism.Interactivity.InteractionRequest; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; nam...
30.75
129
0.626016
[ "Apache-2.0" ]
trycatchfinnally/NeteaseCloudMusic
NetEasy/NeteaseCloudMusic.Wpf/Context.cs
1,995
C#
/// MIT License /// Copyright © 2021 pmcgoohan /// 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, publi...
61.12
465
0.610929
[ "MIT" ]
pmcgoohan/alex-latency-width
Program.cs
6,115
C#
#pragma warning disable 1591 //------------------------------------------------------------------------------ // <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 regenerate...
31.643529
138
0.730825
[ "Apache-2.0" ]
humrs/MDHandbook
src/MDHandbookApp.Droid/Resources/Resource.Designer.cs
188,279
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using MangoBlog.Model; namespace MangoBlog.Entity { public interface ICommentDao { Task AddCommentAsync(string articleId,CommentModel comment); Task DeleteCommentAsync(string id); Task<ILis...
30.666667
95
0.744565
[ "Apache-2.0" ]
HahaMango/Mango-Blog-
MangoBlog/Entity/ICommentDao.cs
554
C#
// This file was automatically generated and may be regenerated at any // time. To ensure any changes are retained, modify the tool with any segment/component/group/field name // or type changes. namespace Machete.HL7Schema.V26 { using HL7; /// <summary> /// ORL_O34 (Message) - /// </summary> publ...
22.081633
104
0.476895
[ "Apache-2.0" ]
ahives/Machete
src/Machete.HL7Schema/V26/Messages/ORL_O34.cs
1,082
C#
using Microsoft.EntityFrameworkCore; using Senparc.Ncf.Core.Models; using Senparc.Ncf.XncfBase; using Senparc.Ncf.XncfBase.Functions; using System; using Microsoft.Extensions.DependencyInjection; using Senparc.Ncf.Service; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; using System.Componen...
35.481481
117
0.587335
[ "Apache-2.0" ]
NeuCharFramework/NcfPackageSources
src/Extensions/Senparc.Xncf.DatabaseToolkit/Senparc.Xncf.DatabaseToolkit/Functions/SetConfig.cs
3,048
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
31.863636
116
0.671184
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet-intl-en
TencentCloud/Yunjing/V20180228/Models/DeleteLoginWhiteListResponse.cs
1,402
C#
using System; // Mark this assembly as "CLS compliant" or "not CLS compliant". // // You should always mark an assembly as "CLS compliant", if possible (this is also the default in "Project.Code.props"). // // The only reason to mark an assembly as "not CLS compliant" is if it's using "not CLS compliant" // de...
42.190476
122
0.722348
[ "Apache-2.0" ]
skrysmanski/hdvp
_ProjectCommons/CommonAssemblyInfo.cs
888
C#
namespace VXDesign.Store.DevTools.Common.Core.Constants { public static class MemoryCacheKey { public const string GitHubUserRepositories = "GitHubUserRepositories"; public const string GitHubRepositoryLanguages = "GitHubRepositoryLanguages"; public const string CamundaVersion = "Camunda...
37.444444
84
0.750742
[ "MIT" ]
GUSAR1T0/VXDS-DEV-TOOLS
DevTools/Common/Core/Constants/MemoryCacheKey.cs
337
C#
using BuildingBlocks.Core.Exceptions; namespace OnlineStore.Modules.Identity.Domain.Aggregates.Users.DomainExceptions { public class InvalidEmailException : DomainException { public string Email { get; } public InvalidEmailException(string email) : base($"Invalid email: {email}.") { ...
27.769231
85
0.66759
[ "MIT" ]
mehdihadeli/Modular-Monolith-Template
src/Modules/Identity/src/OnlineStore.Modules.Identity.Domain/Aggregates/Users/DomainExceptions/InvalidEmailException.cs
361
C#
/* * RepoUploadOptions.cs * * Copyright (C) 2010-2015 by Microsoft Corporation * * This program is licensed to you under the terms of Version 2.0 of the * Apache License. This program is distributed WITHOUT * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, * MERCHANTABILITY OR FITNESS FOR ...
25.398148
100
0.458075
[ "Apache-2.0" ]
jamesbascle/DeployR-dotnet-client-library
src/RepoUploadOptions.cs
5,486
C#
#region Copyright // <<<<<<< HEAD <<<<<<< HEAD ======= ======= >>>>>>> update form orginal repo // DotNetNuke® - https://www.dnnsoftware.com // Copyright (c) 2002-2018 // by DotNetNuke Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // do...
33.688889
152
0.598065
[ "MIT" ]
DnnSoftwarePersian/Dnn.Platform
DNN Platform/DotNetNuke.Web/UI/WebControls/DnnRibbonBar.cs
4,549
C#
// <copyright file="MeterProviderSdk.cs" company="OpenTelemetry Authors"> // Copyright The 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.apach...
38.296296
162
0.574192
[ "Apache-2.0" ]
joaopgrassi/opentelemetry-dotnet
src/OpenTelemetry/Metrics/MeterProviderSdk.cs
7,238
C#
using System.Text.Json.Serialization; namespace Essensoft.Paylink.Alipay.Domain { /// <summary> /// AlipayOfflineMarketingVoucherCreateModel Data Structure. /// </summary> public class AlipayOfflineMarketingVoucherCreateModel : AlipayObject { /// <summary> /// 预算信息 /// </su...
27.106383
72
0.564364
[ "MIT" ]
Frunck8206/payment
src/Essensoft.Paylink.Alipay/Domain/AlipayOfflineMarketingVoucherCreateModel.cs
1,390
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.Collections.Generic; using Internal.Text; using Internal.TypeSystem; namespace ILCompiler.DependencyAnalysis { /// <summary> /// Represents a frozen object tha...
33.568182
121
0.634056
[ "MIT" ]
333fred/runtime
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/FrozenObjectNode.cs
2,954
C#
namespace StockManager.Src.Views.Forms { partial class ProductForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. ...
54.490991
168
0.590642
[ "MIT" ]
ricardotx/StockManager
StockManager/Src/Views/Forms/ProductForm.Designer.cs
12,099
C#
using System; namespace GateMQ.Db.Drivers.Sqlite { public static class SqliteGateDbTypeMapper { public static Type MapToNetType(string dbType, bool notNull) { if (dbType == "BOOLEAN" && notNull) { return typeof(bool); } ...
25.558036
90
0.355284
[ "Apache-2.0" ]
gighen76/gatemq
src/GateMQ.Db/Drivers/Sqlite/SqliteGateDbTypeMapper.cs
5,725
C#
using System; using System.Configuration; using System.Globalization; public static class Settings { public static TimeSpan WarmupDuration = TimeSpan.Parse(ConfigurationManager.AppSettings["WarmupDuration"]); public static TimeSpan RunDuration = TimeSpan.Parse(ConfigurationManager.AppSettings["RunDurat...
46.230769
214
0.798669
[ "Apache-2.0" ]
Particular/EndToEnd
src/PerformanceTests/Utils/Settings.cs
591
C#
using System; using System.Collections.Generic; using System.Text; namespace AzureB2C.PolicyAnalyzer.Core.Models { public class Reference<T> where T : BaseItem { public Reference(BaseItem item, string id, ObjectIndex references) { Id = id; _references = references; ...
23.514286
96
0.561361
[ "MIT" ]
roberchi/AzureB2C-PolicyAnalyzer
src/AzureB2C.PolicyAnalyzer.Core/Models/Reference.cs
825
C#
using MpcCore.Contracts; using MpcCore.Contracts.Mpd; using MpcCore.Response; using System.Collections.Generic; namespace MpcCore.Commands.Outputs { /// <summary> /// Returns a list of all outputdevices available /// <seealso cref="https://www.musicpd.org/doc/html/protocol.html#audio-output-devices"/> /// </summa...
26.407407
90
0.73352
[ "MIT" ]
LEdoian/mpcCore
src/MpcCore/Commands/Outputs/GetOutputList.cs
715
C#
using System.Collections; using DistantWorlds2.ModLoader; using Json.Schema; using Json.Schema.Generation; using Json.Schema.Generation.Intents; namespace ModDevToolsMod; public class Dw2ContentDefinitionSchemaRefiner : ISchemaRefiner { private static readonly RefIntent ExprLangRefIntent = new(Mod.ExprLangRefUri);...
34.97076
124
0.68194
[ "MIT" ]
DW2MC/DW2ModLoader
ModDevToolsMod/Dw2ContentDefinitionSchemaRefiner.cs
5,980
C#
namespace Libgpgme { public class InvalidPtrException : GpgmeException { public InvalidPtrException(string message) : base(message) { } } }
20.777778
54
0.588235
[ "MIT" ]
Daniel15/gpgme-sharp
gpgme-sharp/Exceptions/InvalidPtrException.cs
187
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
44.954887
131
0.596755
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DataBoxEdge/V20190701/Trigger.cs
5,979
C#
namespace GraphShape.Algorithms.Layout { /// <summary> /// Enumeration of possible layout modes. /// </summary> public enum LayoutMode { /// <summary> /// Simple layout mode without compound vertices. /// </summary> Simple, /// <summary> /// Compound...
21.888889
57
0.535533
[ "MIT" ]
GerHobbelt/GraphShape
src/GraphShape/Algorithms/Layout/LayoutMode.cs
396
C#
//----------------------------------------------------------------------- // <copyright company="Metamorphic"> // Copyright (c) Metamorphic. All rights reserved. // Licensed under the Apache License, Version 2.0 license. See LICENCE.md file in the project root for full license information. // </copyright> //----------...
34
128
0.582233
[ "Apache-2.0" ]
metamorpher/Metamorphic
src/Test.Unit.Core/Actions/ActionParameterDefinitionTest.cs
1,668
C#
using System.Collections.Generic; /// <summary> /// Class for a graph with generic data type /// </summary> /// <typeparam name="T">any</typeparam> public class Graph<T> { private List<GraphNode<T>> nodes; private Dictionary<T, GraphNode<T>> map; public Graph() { nodes = new List<GraphNode<T>...
25.949045
82
0.480118
[ "MIT" ]
polylith/PlumploriGame
Assets/Scripts/Helper/Graph.cs
4,076
C#
using System; using System.Collections.Generic; using System.Linq; using Bugsnag.Payload; using Xunit; namespace Bugsnag.Tests.Payload { public class EventTests { [Fact] public void HasExpectedPayloadVersion() { var app = new App("version", "releaseStage", "type"); var device = new Device("...
33.197674
101
0.677408
[ "MIT" ]
tremlab/bugsnag-dotnet
tests/Bugsnag.Tests/Payload/EventTests.cs
2,855
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.ComponentModel; using Pulumi; namespace Pulumi.AzureNextGen.DocumentDB.V20200901 { /// <summary> /// Describes the mode of backu...
43.543033
125
0.684079
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/DocumentDB/V20200901/Enums.cs
21,249
C#
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Builder SDK Github: // https://github.com/Microsoft/BotBuilder // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License: // Permission ...
36.937662
206
0.5783
[ "MIT" ]
dewadaru/botbuilder
CSharp/Library/Microsoft.Bot.Builder/Scorables/Scorables.cs
14,223
C#
// *********************************************************************** // Copyright (c) 2008-2018 Charlie Poole, Rob Prouse // // 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 r...
32.58858
217
0.529293
[ "MIT" ]
BrianDiggs/nunit
src/NUnitFramework/framework/Attributes/RandomAttribute.cs
22,260
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...
34.291139
106
0.653008
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Snowball/Generated/Model/Internal/MarshallTransformations/NotificationMarshaller.cs
2,709
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. using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; namespace Roslyn.Utilit...
32.80778
126
0.47897
[ "MIT" ]
belav/roslyn
src/Compilers/Core/Portable/FileSystem/FileUtilities.cs
14,339
C#
using ee.iLawyer.Db.Entities; using FluentNHibernate.Mapping; namespace ee.iLawyer.Db.Mappings { public class ProjectTodoListMap : ClassMap<ProjectTodoItem> { public ProjectTodoListMap() { Table("ProjectTodoList"); LazyLoad(); Id(x => x.Id) .Gene...
26.892857
79
0.50996
[ "Apache-2.0" ]
Egoily/iLawyer
02.Domain/ee.iLawyer.Db/Mappings/ProjectTodoListMap.cs
755
C#
using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Ocuda.Ops.Models.Entities; using Ocuda.Ops.Service.Filters; using Ocuda.Ops.Service.Models; namespace Ocuda.Ops.Service.Interfaces.Ops.Services { public interface IFileService { Task<int> GetFileCoun...
40.133333
94
0.728128
[ "MIT" ]
iafb/ocuda
src/Ops.Service/Interfaces/Ops/Services/IFileService.cs
1,808
C#
#pragma warning disable CS0649 namespace Dissonance.Framework.Graphics { partial class GL { [MethodImport("glClearBufferData")] private static ClearBufferDataDelegate glClearBufferData; [MethodImport("glClearBufferSubData")] private static ClearBufferSubDataDelegate glClearBufferSubData; [MethodImport("g...
36
91
0.847121
[ "Unlicense" ]
Mirsario/DissonanceFramework
Src/Graphics/Implementation/Generated/GL.43.Fields.cs
4,932
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ModestTree.Util; using Zenject; using NUnit.Framework; using ModestTree; using Assert=ModestTree.Assert; namespace Zenject { // Inherit from this and mark you class with [TestFixture] attribute to do some unit ...
27.375
96
0.647489
[ "MIT" ]
codemaster/LD42
Assets/Plugins/Zenject/OptionalExtras/TestFramework/Editor/ZenjectUnitTestFixture.cs
1,097
C#
namespace FoodControl.DataAccessLayer { using System; using FoodControl.Model; /// <summary> /// The DALContext ensures that only one instance of the database connection will be used in all repositories. /// The class holds a generic property ![CDATA[ Repository<T> ]]> for each model class. //...
35.194631
126
0.598017
[ "MIT" ]
MatthiasHoldorf/FoodControl
FoodControl/DataAccessLayer/DALContext.cs
5,246
C#
// // System.Web.UI.IResourceUrlGenerator.cs // // Authors: // Sanjay Gupta (gsanjay@novell.com) // // (C) 2004-2010 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"), ...
34.725
73
0.74658
[ "Apache-2.0" ]
121468615/mono
mcs/class/System.Web/System.Web.UI/IResourceUrlGenerator.cs
1,389
C#
using AnnoSavegameViewer.Serialization.Core; using System.Collections.Generic; namespace AnnoSavegameViewer.Structures.Savegame.Generated { public class CityLayoutBlockType { [BinaryContent(Name = "value", NodeType = BinaryContentTypes.Node)] public CityLayoutBlockTypeValue Value { get; set; } } }
26.166667
71
0.783439
[ "MIT" ]
brumiros/AnnoSavegameViewer
AnnoSavegameViewer/Structures/Savegame/Generated/NoContent/CityLayoutBlockType.cs
314
C#
using Assets.Scripts.GameLogic.Animation; namespace Assets.Scripts.GameLogic.ActionLoop.ActionEffects { public class KnockOutEffect : IActionEffect { public KnockOutEffect(ActorData actorData) { ActorData = actorData; } public ActorData ActorData { get; private set; } public virtual void Process() ...
22.041667
59
0.750473
[ "MIT" ]
azsdaja/7drl-2018
Assets/Scripts/GameLogic/ActionLoop/ActionEffects/KnockOutEffect.cs
531
C#
using UnityEngine; using System.Collections; public class InputKeyboard : IInput { float inputReturn = 0; public float InputReturn { get { return inputReturn; } } public InputKeyboard (float iReturn) { inputReturn = iReturn; } }
16.388889
41
0.59661
[ "MIT" ]
oneseedfruit/LD33_MYCUPOFFURY
Assets/My Assets/Scripts/Input Classes/InputKeyboard.cs
297
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. namespace NuGet.Common { internal static class CommandLineConstants { internal static string ReferencePage = "https://github.com/NuGet/N...
34.5
111
0.736232
[ "Apache-2.0" ]
DevlinSchoonraad/NuGetGallery
src/NuGetGallery.Operations/Common/CommandLineConstants.cs
347
C#
// <copyright file="CommandLine.cs" company="Google Inc."> // Copyright (C) 2016 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.apac...
41.757475
99
0.505888
[ "Unlicense" ]
Motts182/xilophon
Assets/PlayServicesResolver/Editor/CommandLine.cs
25,138
C#
using UnityEngine; using System.Collections.Generic; using System.IO; using System; using System.Linq; using UnityEditor; #if UNITY_EDITOR using UnityEditor.Callbacks; #endif namespace Utils { public static class Configuration { private static IDictionary<string, string> _config; private stat...
34.016484
160
0.541916
[ "MIT" ]
CGVG-Poli/BIOPACInterface
Assets/BIOPACInterface/Runtime/Utils/Configuration.cs
6,193
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://...
41.891304
87
0.629476
[ "MIT" ]
AzureDataBox/azure-powershell
src/ResourceManager/RecoveryServices.SiteRecovery/Commands.RecoveryServices.SiteRecovery/AlertSetting/GetAzureRmRecoveryServicesAsrAlertSetting.cs
1,884
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using lm.Comol.Core.DomainModel; namespace lm.Comol.Modules.EduPath.Domain { public class dtoCertificateStat { public Int64 PathId { get; set; } public Int64 ActivityId { get; set; } public Int64 Sub...
25.818182
73
0.621479
[ "MIT" ]
EdutechSRL/Adevico
3-Business/3-Modules/lm.Comol.Modules.EduPath/Domain/DTO/Certifications/dtoCertificateStat.cs
1,138
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 System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using ILLink.Shared; using Mono.Cecil; using Mono.Cecil.Cil; namespa...
44.363636
198
0.755812
[ "MIT" ]
Mu-L/linker
src/linker/Linker.Dataflow/FlowAnnotations.cs
29,768
C#
using System.Windows.Controls; using ACT.UltraScouter.resources; using FFXIV.Framework.Globalization; namespace ACT.UltraScouter.Config.UI.Views { /// <summary> /// GeneralView.xaml の相互作用ロジック /// </summary> public partial class EnmityConfigView : Page, ILocalizable { public Enmit...
26.380952
86
0.646209
[ "BSD-3-Clause" ]
Noisyfox/ACT.Hojoring
source/ACT.UltraScouter/ACT.UltraScouter.Core/Config/UI/Views/EnmityConfigView.xaml.cs
572
C#
using System.Collections.Generic; namespace PeopleCompetences.Api.DataStore { /// <summary> /// Dummy data store containing a few competences - image that this is coming from an external service call :-) /// </summary> public class CompetencesStore { public IEnumerable<Competence> Competen...
45.75
115
0.541894
[ "MIT" ]
KevinDockx/CleanCodeResultFilterSample
src/PeopleCompetences.Api/DataStore/CompetencesStore.cs
1,100
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Mvc.Mailer; using System.Net.Mail; namespace SocialGoal.Web.Mailers { public class UserMailer : MailerBase, IUserMailer { public UserMailer() : base() { MasterName = "_Layout...
33.467742
90
0.603373
[ "MIT" ]
26596/Home
source/SocialGoal/Mailers/UserMailer.cs
2,075
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 disable using System; using System.Collections.Generic; using System.Composition; using System.Linq; usi...
46.210526
153
0.594844
[ "MIT" ]
333fred/roslyn
src/Workspaces/Remote/ServiceHub/Services/ProjectTelemetry/ApiUsageIncrementalAnalyzerProvider.cs
9,660
C#
#pragma warning disable CS0672,CS0809,CS1591 namespace AlibabaCloud.SDK.ROS.CDK.Privatelink { /// <remarks> /// <h2>Aliyun ROS PRIVATELINK Construct Library</h2> /// /// This module is part of the AliCloud ROS Cloud Development Kit (ROS CDK) project. /// /// <code><![CDATA[ /// import * as ...
28.736842
93
0.661172
[ "Apache-2.0" ]
piotr-kalanski/Resource-Orchestration-Service-Cloud-Development-Kit
multiple-languages/dotnet/AlibabaCloud.SDK.ROS.CDK.Privatelink/AlibabaCloud/SDK/ROS/CDK/Privatelink/NamespaceDoc.cs
546
C#
using System; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Net; using System.Reflection; using System.Web.Http; using System.Web.Http.Cors; using System.Web.Http.Description; using EventFeedback.Common; using EventFeedback.Domain; using EventFeedback.Web.Api.Models; namespace ...
74.472637
193
0.602579
[ "MIT" ]
vip32/eventfeedback
Web.Api/Controllers/EventReportsController.cs
14,971
C#
#region License /* * Copyright 2002-2012 the original author or 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.apache.org/licenses/LICENSE-2.0 * * Unl...
34.794444
159
0.540077
[ "Apache-2.0" ]
kamiff/spring-net-rest
netstandard/Spring.Rest/Http/Client/Interceptor/InterceptingClientHttpRequest.cs
12,528
C#
using System; using System.CodeDom; using System.Collections.Generic; using Fhi.Controls.Indicators.EcosystemVitality; using Fhi.Controls.Indicators.EcosystemVitality.DamWizard; using FhiModel.Common; using FhiModel.EcosystemVitality.DendreticConnectivity; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ...
31.122642
92
0.470446
[ "MIT" ]
sustainable-software/FHI-Toolbox
Desktop/Tests/ConnectivityIndicatorTests.cs
3,299
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Panosen.CodeDom.Tag.Vue.Element { /// <summary> /// el-pagination /// </summary> public class ElPaginationComponent : ElementComponent { /// <summary> /// e...
30.666667
168
0.606669
[ "MIT" ]
panosen/panosen-codedom-tag-vue
Panosen.CodeDom.Tag.Vue.Element/ElPaginationComponent.cs
5,440
C#
using System.Collections; using System.Collections.Generic; using UnityEngine.UI; using UnityEngine; // Needed namespace using GameSpark; public class SparkSoundDemo : GameSparkDemoSceneTemplate { // Maneger Instance SoundManeger soundManeger; UIManager ui; [SerializeField] Slider musicSlider, soundS...
19.226087
66
0.616915
[ "CC0-1.0" ]
yusufkaraaslan/GameSpark
Assets/yUSyUS/Game Spark/Demo/Scrips/Sound Demo/SparkSoundDemo.cs
2,211
C#
namespace org.secc.Equip.Migrations { using Rock.Plugin; [MigrationNumber( 3, "1.8.0" )] public partial class CourseImage : Migration { public override void Up() { AddColumn( "dbo._org_secc_Equip_Course", "ImageId", c => c.Int( nullable: true ) ); } public ...
22.947368
95
0.561927
[ "ECL-2.0" ]
secc/RockPlugins
Plugins/org.secc.Equip/Migrations/003_CourseImage.cs
438
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("01...
38.189189
84
0.743808
[ "MIT" ]
viktor4o4o/Homework
Exam Preparation II -Taking a Sample Exam/01. Charity Marathon/Properties/AssemblyInfo.cs
1,416
C#
// // Copyright 2015 Blu Age Corporation - Plano, Texas // // 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...
49.651365
158
0.645843
[ "Apache-2.0" ]
Andrey-Ostapenko/SummerBatch
Summer.Batch.CoreTests/Util/StringUtilsTest.cs
40,044
C#
// <auto-generated> // 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 // re...
27.241379
74
0.632911
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/Code.cs
790
C#
using HarmonyLib; using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using static SolastaCommunityExpansion.Models.Level20Context; namespace SolastaCommunityExpansion.Patches.Level20 { // replaces the hard coded experience [HarmonyPatch(typeof(RulesetCharacterHero), "Regist...
35.222222
132
0.700315
[ "MIT" ]
BackupForksForReference/SolastaCommunityExpansion
SolastaCommunityExpansion/Patches/Level20/RulesetCharacterHeroPatcher.cs
953
C#