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
#if !NETSTANDARD13 /* * 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 ...
32.4
112
0.706349
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/PinpointEmail/Generated/Model/_bcl45+netstandard/IGetDedicatedIpsPaginator.cs
1,134
C#
using SIL.Machine.WebApi.Models; namespace SIL.Machine.WebApi.DataAccess { public enum EntityChangeType { None, Insert, Update, Delete } public struct EntityChange<T> where T : class, IEntity<T> { public EntityChange(EntityChangeType type, T entity) { Type = type; Entity = entity; } publi...
15.4
58
0.685714
[ "MIT" ]
sillsdev/machine
src/SIL.Machine.WebApi/DataAccess/EntityChange.cs
387
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class Pausable:MonoBehaviour { public virtual void Pause(bool value) { // do nothing } }
17.25
46
0.710145
[ "Apache-2.0" ]
aprithul/Nukem
Assets/Scripts/Controller/Pausable.cs
209
C#
using System.Collections.Generic; using System.IO; using template.Api.DataAccess; using template.Api.Infrastructure.Configuration; using template.Api.Models; using template.Api.Services; using Microsoft.AspNetCore.Http; using Moq; using NUnit.Framework; namespace Mcg.Webservice.UnitTests { [System.Diagnostics.Cod...
34.342857
137
0.47188
[ "MIT" ]
MCGHealth/mcg.webservice.template.datatdog
template/template.unittests/Helpers.cs
6,012
C#
using System.IO; using System.Runtime.Serialization; namespace BroadcastMessaging { public abstract class Persistable { public abstract void Save(BinaryWriter writer); public abstract void Load(BinaryReader reader); } }
21.166667
55
0.712598
[ "MIT" ]
mtaulty/HoloSharingUDPAzure
MessagingLibrary/Shared/SharedCode/Persistable.cs
256
C#
#nullable enable using System; using System.Collections.Generic; namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty { public class T01_NullableRefTypes { private string field_string; private string? field_nullable_string; private dynamic? field_nullable_dynamic; private Dictionary<string?, string> fie...
26.104348
210
0.706862
[ "MIT" ]
derek221028/ILSPY
ICSharpCode.Decompiler.Tests/TestCases/Pretty/NullableRefTypes.cs
3,004
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Radilovsoft.Rest.Data.Core.Contract { public interface IAsyncHelpers { Task<T> SingleOrDefaultAsync<T>(IQueryable<T> queryable, CancellationToken token = default); ...
52.153846
200
0.733776
[ "MIT" ]
Nemo-Illusionist/REST-ASP.NET
Core/Data/Radilovsoft.Rest.Data.Core/Contract/IAsyncHelpers.cs
1,356
C#
using FavourAPI.Data.Dtos.Favour; using FavourAPI.Dtos; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace FavourAPI.Services.Contracts { public interface IOfferingService { Task<OfferingDto> AddOffering(string Guid, OfferingDto offering); ...
26.48
94
0.749245
[ "MIT" ]
indeavr/favour-api
FavourAPI.Services/Contracts/IOfferingService.cs
664
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SelectionMessage : BaseMessage { }
18.428571
45
0.813953
[ "MIT" ]
palpitatertot/UnityMessaging
Assets/MessageSystemExample/Scripts/SelectionMessage.cs
131
C#
using System; using DataPowerTools.Extensions; using DataPowerTools.Extensions.Objects; namespace DataPowerTools.DataReaderExtensibility.TransformingReaders { public static class DataTransformGroups { /// <summary> /// Applies no transformation. /// </summary> /// <param nam...
36.991379
227
0.571429
[ "MIT" ]
nh43de/DataPowerTools
src/DataPowerTools/DataReaderExtensibility/Transformations/DataTransformGroups.cs
4,293
C#
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET. // Licensed under the Apache License, Version 2.0. using System; using System.IO; using ImageMagick; using Xunit; #if Q8 using QuantumType = System.Byte; #elif Q16 using QuantumType = System.UInt16; #elif Q16HDRI using QuantumType = System.Single; #el...
38.011734
104
0.394409
[ "Apache-2.0" ]
jianyuyanyu/Magick.NET
tests/Magick.NET.Tests/MagickImageTests/TheReadPixelsMethod.cs
29,157
C#
using System; using UnityEngine; namespace RFG { [CreateAssetMenu(fileName = "New Weapon Fired State", menuName = "RFG/Platformer/Items/Equipable/Weapon/States/Fired")] public class WeaponFiredState : WeaponState { public override Type Execute(Weapon weapon) { return typeof(WeaponIdleStat...
24.142857
122
0.695266
[ "Apache-2.0" ]
retro-fall-games/PermitDenied
Assets/RFG/Platformer/Items/Equipables/Weapon/States/WeaponFiredState.cs
338
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.ComponentModel.Composition; using System.Diagnostics; ...
44.645551
231
0.557095
[ "Apache-2.0" ]
am11/project-system
src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/UpToDate/BuildUpToDateCheck.cs
28,940
C#
using System; using System.Runtime.InteropServices; /* * Copyright (c) 2021 All Rights Reserved. * Description:Finalizer * Author: Chance_写代码的厨子 * Create Time:2021-08-27 10:24:50 */ namespace CookPopularCSharpToolkit.Communal { /// <summary> /// 终结器(以前称为析构函数) /// </summary> /// <remarks> //...
25.236842
90
0.540667
[ "Apache-2.0" ]
Muzsor/CookPopularControl
CookPopularCSharpToolkit/Communal/Disposes/Finalizer.cs
2,304
C#
using DG.Tweening; using System.Collections; using UnityEngine; namespace MagiCloud.KGUI { public class KGUI_TurnPage : MonoBehaviour { public RectTransform content; public KGUI_Backpack kGUI_Backpack; public KGUI_Button buttonNext; public KGUI_Button buttonPre; priva...
27.560976
83
0.428614
[ "MIT" ]
LiiiiiWr/MagiCloudSDK
Assets/MagiCloud/Expansion/KGUI/Scripts/Backpack/KGUI_TurnPage.cs
3,392
C#
//----------------------------------------------------------------------------- // (c) 2020 Ruzsinszki Gábor // This code is licensed under MIT license (see LICENSE for details) //----------------------------------------------------------------------------- using BookGen.Gui.Mvvm; using BookGen.Gui.XmlEntities; using...
29.278689
87
0.482643
[ "MIT" ]
webmaster442/BookGen
BookGen.Gui/ConsoleUi.cs
3,575
C#
using System.Collections.Generic; namespace SharedLibraryCore.Formatting { public enum ColorCodes { Black, Red, Green, Yellow, Blue, Cyan, Purple, Pink, White, Map, Grey, Wildcard, Accent } public ...
15.153846
62
0.5
[ "MIT" ]
LelieL91/IW4M-Admin
SharedLibraryCore/Formatting/ColorCodes.cs
396
C#
using System; class ZeroSubset { static void Main() { Console.Write("Write a first number: "); int firstNum = Int32.Parse(Console.ReadLine()); Console.Write("Write a second number: "); int secondNum = Int32.Parse(Console.ReadLine()); Console.Write("Write a third number:...
35.045161
116
0.476068
[ "MIT" ]
glifada/High-Quality-Code-Homeworks
C#-Part1/05. ConditionalStatements/12-ZeroSubset/ZeroSubset.cs
5,434
C#
/* * PA Engine API * * Allow clients to fetch Analytics through APIs. * * The version of the OpenAPI document: 3 * Contact: analytics.api.support@factset.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; using System.Collections; using System.Collections.Generic; using...
45.438695
241
0.580913
[ "Apache-2.0" ]
factset/enterprise-sdk
code/dotnet/PAEngine/v3/src/FactSet.SDK.PAEngine/Client/ApiClient.cs
40,395
C#
using System.Collections.Generic; using Dnn.PersonaBar.Pages.Components.Dto; using Dnn.PersonaBar.Pages.Services.Dto; using DotNetNuke.Entities.Modules; using DotNetNuke.Entities.Tabs; using DotNetNuke.Entities.Portals; namespace Dnn.PersonaBar.Pages.Components { public interface IPagesController { bo...
44.147059
200
0.693205
[ "MIT" ]
DnnSoftwarePersian/Dnn.Platform
Dnn.AdminExperience/Extensions/Content/Dnn.PersonaBar.Extensions/Components/Pages/IPagesController.cs
3,004
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace AutoMapperDemo.Models { public class CustomerDto { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string Com...
21.6875
45
0.651297
[ "Apache-2.0" ]
miggymail/AutoMapperAspNetCoreDemo
AutoMapperDemo/Models/CustomerDto.cs
349
C#
using Microsoft.AspNetCore.Mvc; using SpeedTestApi.Models; using SpeedTestApi.Services; using System.Threading.Tasks; namespace SpeedTestApi.Controllers { [Route("[controller]")] [ApiController] public class SpeedTestController : ControllerBase { private readonly ISpeedTestEvents _eventHub; ...
25.717949
131
0.626122
[ "MIT" ]
martitv/az-speedtest-api
SpeedTestApi/Controllers/SpeedTestController.cs
1,005
C#
// Copyright 2018 by JCoder58. See License.txt for license // Auto-generated --- Do not modify. using System; using System.Collections.Generic; using System.Runtime.InteropServices; using UE4.Core; using UE4.CoreUObject; using UE4.CoreUObject.Native; using UE4.InputCore; using UE4.Native; namespace UE4.UMG { ///<...
27.521739
59
0.71248
[ "MIT" ]
UE4DotNet/Plugin
DotNet/DotNet/UE4/Generated/UMG/EDesignPreviewSizeMode.cs
633
C#
using System; namespace ServicePrincipleApp.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
19.083333
71
0.646288
[ "MIT" ]
PacktPublishing/Exam-Ref-AZ-304-Microsoft-Azure-Architect-Design-Certification-and-Beyond
ch6/ServicePrincipleApp/Models/ErrorViewModel.cs
229
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.617021
143
0.64536
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/IoT/Generated/Model/Internal/MarshallTransformations/ListThingTypesRequestMarshaller.cs
3,254
C#
using System; using System.IO; using System.Reflection; using System.Threading; using System.Threading.Tasks; using Microsoft.Maui; using Microsoft.Maui.Controls; using Microsoft.Maui.Controls.Internals; using Microsoft.Maui.Graphics; namespace Controls.Sample.Tests { public class MockPlatformServices : IPlatform...
29.730769
121
0.691462
[ "MIT" ]
Kahbazi/maui
src/Controls/samples/Controls.Sample.Tests/MockPlatformServices.cs
1,548
C#
using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using Abstractions.Serialization; using Abstractions.DB; using Abstractions.Models; namespace DB { /// <summary> /// Unit of work for ProcessingData logic. /// </summary> public class ProcessingDataUnitOfWork : UnitOfWork<Outbox...
33.013889
137
0.583929
[ "MIT" ]
ntulenev/SimpleTransactionalOutbox
src/DB/ProcessingDataUnitOfWork.cs
2,379
C#
// https://docs.microsoft.com/en-us/visualstudio/modeling/t4-include-directive?view=vs-2017 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.IO; using System.Runtime.CompilerServices; using Microsoft.Bot.Solutions.Dialogs; namespace ToDoSkill.Dialogs.MarkToD...
35.425
96
0.704305
[ "MIT" ]
AllcryptoquickDevelopment/AI
solutions/Virtual-Assistant/src/csharp/skills/todoskill/todoskill/Dialogs/MarkToDo/Resources/MarkToDoResponses.cs
1,419
C#
using System; namespace _05_Birthday_Party { class Program { static void Main(string[] args) { double rent = double.Parse(Console.ReadLine()); double cakePrice = rent * 0.20; double drinks = cakePrice - (cakePrice * 0.45); double animatorPrice = ...
25.444444
70
0.556769
[ "MIT" ]
NeSh74/Programing-Basic-CSharp-October-2020
02_First Steps In Coding - Exercise/05_Birthday_Party/Program.cs
460
C#
using System.Collections.Generic; using UnityEngine; public class WeightedRandom { private float[] weights; private float[] additiveWeights; private readonly int count; private bool calculatedAdditiveWeights; public WeightedRandom(params float[] weights) { count = weights.Length; t...
27.166667
69
0.563054
[ "MIT" ]
TeodorVecerdi/saxion_procedural_art
Assets/Procedural Art/Scripts/Misc/WeightedRandom.cs
1,467
C#
using System.Collections.Generic; using Essensoft.Paylink.Alipay.Response; namespace Essensoft.Paylink.Alipay.Request { /// <summary> /// alipay.iservice.ccm.ols.chatrecord.query /// </summary> public class AlipayIserviceCcmOlsChatrecordQueryRequest : IAlipayRequest<AlipayIserviceCcmOlsChatrecordQuery...
23.724638
121
0.542456
[ "MIT" ]
Frunck8206/payment
src/Essensoft.Paylink.Alipay/Request/AlipayIserviceCcmOlsChatrecordQueryRequest.cs
3,302
C#
// Copyright(c) 2018 Google Inc. // // 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 ...
38.673469
109
0.651715
[ "ECL-2.0", "Apache-2.0" ]
AdrianaDJ/dotnet-docs-samples
applications/googlehome-meets-dotnetcontainers/GoogleHomeAspNetCoreDemoServer/Dialogflow/Intents/Vision/BaseVisionHandler.cs
1,897
C#
using System; using System.Reflection; using System.Threading.Tasks; using DSharpPlus; using DSharpPlus.SlashCommands; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using MomentumDiscordBot.Models; using MomentumDiscordBot.Utilities; using Serilog; using ILogger = Serilog.ILogger;...
32.576271
96
0.633715
[ "MIT" ]
vDokkaebi/discord-bot
MomentumDiscordBot/Bot.cs
1,924
C#
using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Zoo.Web { public class Program { public static...
25.518519
70
0.641509
[ "MIT" ]
MomchilAngelovv/ZooTask
Zoo/Zoo.Web/Program.cs
689
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 ...
16.300699
63
0.587302
[ "Apache-2.0" ]
brightness007/unofficial-aliyun-openapi-net-sdk
aliyun-net-sdk-imm/Imm/Model/V20170906/ListTagSetsResponse.cs
2,331
C#
using System; using System.Collections.Generic; using System.Text; namespace P01.Stream_Progress { public class StreamProgressInfo { private IStreamble stream; // If we want to stream a music file, we can't public StreamProgressInfo(IStreamble stream) { this.stream...
21.130435
70
0.613169
[ "MIT" ]
Alexxx2207/CSharpOOP
SOLID/P01.Stream_Progress/StreamProgressInfo.cs
488
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...
32.383562
106
0.646362
[ "Apache-2.0" ]
Bynder/aws-sdk-net
sdk/src/Services/Pinpoint/Generated/Model/AttributeDimension.cs
2,368
C#
using System.Windows.Forms; using RaynMaker.Modules.Import.Documents; namespace RaynMaker.Modules.Import.Design { public class HtmlMarkupAutomationProvider { public static void SimulateClickOn( HtmlDocument document, string clickedElementId ) { document.Body.SetAttribute( ...
29.911765
93
0.602753
[ "BSD-3-Clause" ]
Tball40/RaynMaker
src/RaynMaker.Modules.Import/Design/HtmlMarkupAutomationProvider.cs
1,019
C#
public class Program { static int TheBomb = 90; public static void Method1(ref int i, ref string str) { System.Console.WriteLine(i); System.Console.WriteLine(str); i += 32; str = "Test2"; } public static void Main() { int i = 8; string str = "Te...
21.566667
57
0.57187
[ "MIT" ]
FrankLIKE/SharpNative
Tests/Basics/CallByReferenceTest.cs
649
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
34.609195
153
0.577881
[ "MIT" ]
DamienTehDemon/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/WorkbookFunctionsVarARequest.cs
3,011
C#
using MatterHackers.VectorMath; //---------------------------------------------------------------------------- // Anti-Grain Geometry - Version 2.4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) // // C# port by: Lars Brubaker // larsbrubaker@gmail.com // Copyright (C) 2007 // ...
25.5
96
0.60866
[ "BSD-2-Clause" ]
Frank-Buss/utest
Assets/agg/VertexSource/VertexSourceAdapter.cs
4,896
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; using System.Threading.Tasks; using Remotion.Linq.Parsing.ExpressionVisitors.Transformation; namespace Couchbase.Linq.QueryGeneration.ExpressionTransformers { /// <summary>...
36.365854
122
0.581265
[ "Apache-2.0" ]
RossMerr/CouchbaseNetLinq
Src/src/Couchbase.Linq/QueryGeneration/ExpressionTransformers/EnumComparisonExpressionTransformer.cs
4,475
C#
namespace RememBeer.Data.Migrations { using System.Data.Entity.Migrations; public partial class Initial : DbMigration { public override void Up() { this.CreateTable( "dbo.BeerReviews", c => new ...
52.513966
109
0.396064
[ "MIT" ]
J0hnyBG/RememBeerMe
src/RememBeer.Data/Migrations/201702081137574_Initial.cs
9,400
C#
//----------------------------------------------------------------------------- // Filename: DtlsSrtpServer.cs // // Description: This class represents the DTLS SRTP server connection handler. // // Derived From: // https://github.com/RestComm/media-core/blob/master/rtp/src/main/java/org/restcomm/media/core/rtp/...
37.998084
204
0.579027
[ "Apache-2.0" ]
ArcaneDevs/sipsorcery
src/net/DtlsSrtp/DtlsSrtpServer.cs
19,837
C#
using System.Reflection; namespace Uncontainer { /// <summary> /// Represents a type that determines the constructor that will be used to instantiate a particular service implementation. /// </summary> public interface IConstructorResolver { /// <summary> /// Determines w...
48.631579
129
0.690476
[ "MIT" ]
philiplaureano/Uncontainer
Uncontainer/IConstructorResolver.cs
926
C#
// // Copyright (c) Microsoft and contributors. 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...
43.415902
213
0.62323
[ "Apache-2.0" ]
CerebralMischief/azure-sdk-for-net
src/ResourceManagement/Automation/AutomationManagement/Generated/AutomationAccountOperationsExtensions.cs
14,197
C#
// 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 (C) LibreHardwareMonitor and Contributors. // Partial Copyright (C) Michael Möller <mmoeller@openhardwaremo...
23.553191
110
0.63505
[ "MPL-2.0" ]
Biztactix/LibreHardwareMonitor
LibreHardwareMonitorLib/Hardware/IHardware.cs
1,110
C#
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.ViewVariables; namespace Content.Shared.Construction { [Serializable] [DataDefinition] public sealed class ConstructionGraphNode { [D...
27.209677
98
0.577949
[ "MIT" ]
Alainx277/space-station-14
Content.Shared/Construction/ConstructionGraphNode.cs
1,689
C#
using Catalog.Entities; namespace Catalog.Repositories { public interface IProductRepository { Task<IEnumerable<Product>> GetProducts(); Task<Product> GetProduct(string id); Task<IEnumerable<Product>> GetProductByName(string name); Task<IEnumerable<Product>> GetProductByCategor...
30.8125
77
0.701826
[ "MIT" ]
AgileMark/MobilePhoneSales
src/services/Catalog/Catalog/Repositories/IProductRepository.cs
495
C#
using System; using NetOffice; namespace NetOffice.WordApi.Enums { /// <summary> /// SupportByVersion Word 12, 14, 15 /// </summary> ///<remarks> MSDN Online Documentation: http://msdn.microsoft.com/en-us/en-us/library/office/ff836958.aspx </remarks> [SupportByVersionAttribute("Word", 12,14,15)] [Ent...
27.666667
120
0.620482
[ "MIT" ]
NetOffice/NetOffice
Source/Word/Enums/WdStyleSort.cs
1,328
C#
using System.ComponentModel; namespace Imprint.IO.Runtime { public class ViewModelBase : IViewModelBase { #region Fields private PropertyChangedEventHandler _propertyChanged; private string _name; #endregion #region ** IViewModelBase public event PropertyChangedEventHandler PropertyChanged { ad...
14.811321
58
0.677707
[ "MIT" ]
VallarasuS/Imprint
Imprint.IO.Runtime/Types/ViewModelBase.cs
787
C#
using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Threading.Tasks; using JetBrains.Annotations; using Rsdn.JanusNG.Services; using Rsdn.JanusNG.Services.Connection; namespace Rsdn.JanusNG.Main.ViewModel { [UsedImplicitly] public partial class MainViewModel : INotify...
29.657143
110
0.721098
[ "MIT" ]
andrewvk/JanusNG
JanusNG/Main/ViewModel/MainViewModel.cs
2,078
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.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Text; using Microsoft....
42.448363
210
0.573107
[ "MIT" ]
AlexanderSemenyak/msbuild
src/Tasks/CreateManifestResourceName.cs
16,854
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.IO; using System.Text; using System.Text.Json; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsof...
35.320896
123
0.602366
[ "Apache-2.0" ]
NickDarvey/AspNetCore
src/Mvc/Mvc.Core/src/Infrastructure/SystemTextJsonResultExecutor.cs
4,735
C#
#if !NETSTANDARD13 /* * 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 ...
32.857143
113
0.683478
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/CloudDirectory/Generated/Model/_bcl45+netstandard/ILookupPolicyPaginator.cs
1,150
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Confluent.Kafka; using ClassLibrary1; namespace ComsumerApp1 { /// <summary> /// サブスクライバーの生成処理の基本実装。 /// </summary> public abstract class ...
27.41791
106
0.576483
[ "MIT" ]
mxProject/Misc
source/KafkaPubSub/ComsumerApp1/MessageSubscriberFactoryBase.cs
2,133
C#
/* Copyright (c) Citrix Systems Inc. * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted provided * that the following conditions are met: * * * Redistributions of source code must retain the above * copyright notice,...
38.067114
140
0.576869
[ "BSD-2-Clause" ]
cheng-z/xenadmin
XenAdmin/Controls/AD/LoggedInLabel.cs
5,674
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace HostelAllocationOptimization { public class HostelAllocationDTO { public int NumDays { get; set; } public int NumRooms { get; set; } public int[] GroupsSizes { get; set; } ...
24.434783
68
0.629893
[ "MIT" ]
alanwjunior/HostelAllocation
HostelAllocationOptimization/Model/HostelAllocationDTO.cs
564
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** 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; names...
37.94898
253
0.613875
[ "ECL-2.0", "Apache-2.0" ]
RafalSumislawski/pulumi-aws
sdk/dotnet/CloudTrail/Inputs/TrailAdvancedEventSelectorFieldSelectorArgs.cs
3,719
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class MainMenu : MonoBehaviour { public string firstlevel; public GameObject optionsScreen; public void StartGame() { SceneManager.LoadScene(firstlevel); } pub...
17.935484
44
0.647482
[ "MIT" ]
EricWRogers/ChallengerDeep
Assets/Scripts/UI/HUD/Example/Scripts/MainMenu.cs
558
C#
namespace RelationalGit { public class AbandonedFile { public string FilePath { get; set; } public int TotalLinesInPeriod { get; set; } public int AbandonedLinesInPeriod { get; set; } public int SavedLines => TotalLinesInPeriod - AbandonedLinesInPeriod; } }
21.857143
77
0.656863
[ "MIT" ]
CESEL/RelationalGit
src/RelationalGit.CommandLine/Commands/Models/AbandonedFile.cs
308
C#
using System; using System.ComponentModel; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace Entries.Views { // Learn more about making custom code visible in the Xamarin.Forms previewer // by visiting https://aka.ms/xamarinforms-previewer [DesignTimeVisible(false)] public partial class AboutPa...
24
81
0.678241
[ "MIT" ]
taublast/droidentrybug
Entries/Views/AboutPage.xaml.cs
434
C#
/* * Assembly API * * Assembly (formely PromisePay) is a powerful payments engine custom-built for platforms and marketplaces. * * The version of the OpenAPI document: 2.0 * Contact: support@assemblypayments.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using Xunit; using Syste...
26.567857
107
0.488641
[ "MIT" ]
tahirahmed76/AssemblyPay.Sdk
Org.OpenAPITools.Test/Model/ChargeTests.cs
7,439
C#
using System.Threading; using System.Threading.Tasks; using Lion.AbpPro.DataDictionaryManagement.DataDictionaries.Dtos; using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Services; namespace Lion.AbpPro.DataDictionaryManagement.DataDictionaries { public interface IDataDictionaryAppService : IApplicationSe...
30.038462
88
0.616517
[ "MIT" ]
tangjian826454/abp-vnext-pro
aspnet-core/modules/DataDictionaryManagement/src/Lion.AbpPro.DataDictionaryManagement.Application.Contracts/DataDictionaries/IDataDictionaryAppService.cs
1,652
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...
44.2125
300
0.560008
[ "MIT" ]
AME-Redmond/azure-sdk-for-net
sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseAccountRegionOperations.cs
14,148
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _03.Circles_Intersection { class Program { static void Main(string[] args) { } } }
15.4375
39
0.659919
[ "MIT" ]
AlexanderStanev/SoftUni
TechModule/ObjectsClassesExercises/03. Circles Intersection/Program.cs
249
C#
using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Threading.Tasks; using StackExchange.Redis; namespace TranscendenceChat.WorkerRole.SocketServer.Infrastructure.Persistence.Redis { public static class RedisExtensions { public static T Get<T>(this IDatabase cache, stri...
30.375
92
0.570988
[ "MIT" ]
tamifist/Transcendence
TranscendenceChatWorkerRole/TranscendenceChat.WorkerRole.SocketServer/Infrastructure/Persistence/Redis/RedisExtensions.cs
1,946
C#
using Toe.Scripting; namespace SpirVGraph.NodeFactories { public class OpEmitStreamVertexNodeFactory : AbstractNodeFactory { public static readonly OpEmitStreamVertexNodeFactory Instance = new OpEmitStreamVertexNodeFactory(); public OpEmitStreamVertexNodeFactory():base(new ScriptNode() ...
27.12
108
0.584071
[ "MIT" ]
gleblebedev/SpirVisualEditor
src/SpirVGraph/NodeFactories/OpEmitStreamVertexNodeFactory.cs
678
C#
using System.Linq; using System.Threading.Tasks; namespace eKart.Api.Data { public static class DbInitializer { public static async Task InitializeAsync(eKartContext context) { await context.Database.EnsureCreatedAsync(); if (context.Products.Any()) { ...
26.09375
70
0.505389
[ "MIT" ]
subhendu-de/eKart
eKart.api/Data/DbInitializer.cs
835
C#
using System.Collections.Generic; using PizzaBox.Domain.Abstracts; using PizzaBox.Domain.Models; namespace PizzaBox.Data { public interface IRepository { void AddPizza(CustomPizza pizza); CustomPizza GetPizzaByIndex(int Id); void UpdatePizza(CustomPizza pizza); void...
20.509804
57
0.645793
[ "MIT" ]
210329-UTA-SH-UiPath/p1_eduardo_reyes
PizzaBoxAPI/PizzaBox.Domain/Abstracts/IRepository.cs
2,092
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; using OpenConfigurator.Core.XmlDAL; namespace OpenConfigurator.Core.XmlDAL.ModelFile.DataEntities { [DataContract] internal class CompositionRule : iDataEntit...
20.692308
61
0.51487
[ "MIT" ]
rmitache/OpenConfigurator
XmlDAL/ModelFile/DataEntities/CompositionRule.cs
1,078
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
36.382353
117
0.636823
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/FMS/Generated/Model/NetworkFirewallPolicyDescription.cs
4,948
C#
//*************************************************** //* This file was generated by tool //* SharpKit //* At: 29/08/2012 03:59:42 p.m. //*************************************************** using SharpKit.JavaScript; namespace Ext.ux.ajax { #region DataSimlet /// <inheritdocs /> /// <summary> /// <p>Thi...
31.4
91
0.604299
[ "MIT" ]
SharpKit/SharpKit-SDK
Defs/ExtJs/Ext.ux.ajax.DataSimlet.cs
1,256
C#
#pragma checksum "..\..\NewPassenger.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "9FAD92B774025E71CBB29C27E1A5857F" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes ...
37.83908
141
0.613609
[ "MIT" ]
MTayabShafique/Airline-Ticket-Reservation-System
Passengers Activity/Airline_Reservation_System/Airline_Reservation_System/obj/Debug/NewPassenger.g.cs
9,878
C#
 namespace Standard { using System; using System.Diagnostics.CodeAnalysis; /// <summary> /// DoubleUtil uses fixed eps to provide fuzzy comparison functionality for doubles. /// Note that FP noise is a big problem and using any of these compare /// methods is not a complete solution,...
48.827068
101
0.611334
[ "Unlicense" ]
JeremyDurnell/ChromeTabs
Version2.0/AvalonDock/AvalonDock/Controls/Shell/Standard/DoubleUtil.cs
6,496
C#
using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; using System.Threading.Tasks; namespace RsCode { public sealed class VerifyCodeHelper { #region 单例模式 //创建私有化静态obj锁 private static readonly object _ObjLock = new object()...
39.240157
222
0.485402
[ "MIT" ]
kuiyu/RsCode
src/RsCode/Helper/VerifyCodeHelper.cs
10,457
C#
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2017 Intel Corporation. All Rights Reserved. namespace Intel.RealSense { using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; /// <summary>...
36.427481
148
0.571982
[ "Apache-2.0" ]
BenDavisson/librealsense
wrappers/csharp/Intel.RealSense/Frames/Frame.cs
9,546
C#
using Microsoft.AspNetCore.Components; using System.Net.Http; using System.Text.Json; using System.Threading.Tasks; namespace TrabalhoLeituraCepBootstrap.Pages { public class IndexBase:ComponentBase { [Inject] public HttpClient HttpClient { get; set; } public string CepInput { get; se...
26.192308
133
0.674009
[ "MIT" ]
KatharinaPedrosa/BuscadorCep
TrabalhoLeituraCepBootstrap/Pages/IndexBase.cs
683
C#
using Newtonsoft.Json.Linq; using Xunit; using Yaapii.Atoms.IO; namespace Yaapii.JSON.Test { public sealed class JSONPatchedTests { [Fact] public void Patches2() { var unpatched = new JSONOf( new ResourceOf( "Datum/data.json...
24.836364
67
0.338946
[ "MIT" ]
icarus-consulting/Yaapii.JSON
tests/Test.Yaapii.JSON/JSONPatchedTests.cs
1,366
C#
namespace SIS.MvcFramework { public class ErrorViewModel { public string Error { get; set; } } }
16.714286
41
0.615385
[ "MIT" ]
radrex/SoftuniCourses
C# Web Developer/C# Web/C# Web Basics/Softuni Information Services/SIS/SIS.MvcFramework/ErrorViewModel.cs
119
C#
using System; using System.Reflection; using AutoFixture.Kernel; namespace AutoFixture { /// <summary> /// Creates random <see cref="DateTime"/> specimens. /// </summary> /// <remarks> /// The generated <see cref="DateTime"/> values will be within /// a range of ± two years from today's date, ...
37.8625
103
0.607791
[ "MIT" ]
AutoFixture/AutoFixture
Src/AutoFixture/RandomDateTimeSequenceGenerator.cs
3,032
C#
using UnityEngine; using UnityEngine.UI; using MLAgents; using MLAgents.Sensors; using MLAgents.SideChannels; public class TennisAgent : Agent { [Header("Specific to Tennis")] public GameObject ball; public bool invertX; public int score; public GameObject myArea; public float angle; public...
34.515625
131
0.6555
[ "Apache-2.0" ]
Oningyo/ml-agents
Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs
4,418
C#
// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.P2P { /// <summary> /// Structure containing information about who would like to close connections, and by what socket ID /// </summary> public class Cl...
24.863636
115
0.720293
[ "MIT" ]
CreepyAnt/EpicOnlineTransport
Mirror/Runtime/Transport/EpicOnlineTransport/EOSSDK/Generated/P2P/CloseConnectionsOptions.cs
1,641
C#
using Microsoft.AspNetCore.Mvc; using RobustErrorHandler.AspNetCore; using RobustErrorHandler.AspNetCore.Sample.DTO; using RobustErrorHandler.AspNetCore.ShapeDomain; using RobustErrorHandler.Core; namespace RobustErrorHandler.AspNetCore.Sample.Controllers { [ApiController] [Route("[controller]")] public c...
29.243243
97
0.512015
[ "MIT" ]
arvylagunamayor/RobustErrorHandler.AspNetCore
sample/RobustErrorHandler.AspNetCore.Sample/Controllers/RobustErrorHandlerControllercs.cs
1,084
C#
using DbConnector.Core.Extensions; using DbConnector.Tests.Entities; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Data.SqlClient; using System.Linq; using System.Threading; using System.Threading.Tasks; using Xunit; namespace DbConnector.Tests { public class ReadCusto...
33.65641
151
0.523541
[ "Apache-2.0" ]
SavantBuffer/DbConnector
DbConnector.Tests/ReadCustomTests.cs
6,563
C#
using IdentityServer4.Models; using IdentityServer4.Services; using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using static IdentityServer4.IdentityServerConstants; namespace IdentityServerCustomClaims { public class CustomProfileServic...
26.371429
74
0.625135
[ "Apache-2.0" ]
Mallekoppie/IdentityServer
IdentityServerCustomClaims/CustomProfileService.cs
925
C#
using System.Collections; using System.Collections.Generic; using FairyAnalyzer.Package; using UnityEngine; using UnityEditor; using System.IO; public class Menu { [MenuItem("工具/打开GUI项目")] public static void Process() { var argPath = Path.Combine("UIProject/UIProject", "FairyGUI-Exampl...
32.129032
93
0.661647
[ "MIT" ]
Minamiyama/FairyGUI-unity
Examples.Unity5/Assets/FairyAnalyzer/Editor/Analyzer/Menu.cs
1,018
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("kc...
36.241379
84
0.740247
[ "MIT" ]
AlienArc/kcdnug
src/kcdnug.Mobile.UWP/Properties/AssemblyInfo.cs
1,054
C#
using Microsoft.ApplicationInsights; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.Extensions.Logging; using SampleAutofacFunction.Services; using SampleAutofacFunction.Settings; using System; using System.C...
31.205479
105
0.643986
[ "MIT" ]
junalmeida/autofac-azurefunctions
SampleAutofacFunction/Functions/Function2.cs
2,278
C#
namespace RabbitMQEventbus.IntegrationEvents.Events; public record NewPulseDataPosted : Event { public string DeviceId { get; private init; } public uint Pulse { get; private init; } public uint Systolic { get; private init; } public uint Diastolic { get; private init; } public DateTime Time { get...
28
89
0.668367
[ "MIT" ]
AbeneAb/MembershipManagement
src/EventBus/RabbitMQEventbus/IntegrationEvents/Events/NewPulseDataPosted.cs
590
C#
using LibPDBinding.Managed.Data; using LibPDBinding.Managed.Utils; using LibPDBinding.Native; namespace LibPDBinding.Managed { /// <summary> /// Array in Pd. /// </summary> public sealed class PdArray { readonly string _name; /// <summary> /// Gets the name of the array in Pd. /// </summary> /// <valu...
25.445946
71
0.635688
[ "MIT" ]
Tiltification/sonic-tilt
android/PdCore/src/main/jni/libpd/csharp/Managed/PdArray.cs
1,885
C#
using System; using System.Collections.ObjectModel; using System.ComponentModel; using System.Runtime.CompilerServices; using Xamarin.Forms; using Xamarin.Forms.Internals; using EssentialUIKit.Models.Navigation; using System.Runtime.Serialization; namespace EssentialUIKit.ViewModels.Navigation { /// <summary> ...
25.763889
113
0.555526
[ "MIT" ]
Humphryshikunzi/essential-ui-kit-for-xamarin.forms
EssentialUIKit/ViewModels/Navigation/AlbumViewModel.cs
3,712
C#
using System; using System.Collections.Generic; using System.Numerics; using System.Runtime.CompilerServices; using BepuPhysics.Collidables; using BepuPhysics.CollisionDetection; using BepuPhysics.Constraints; using BepuUtilities; using BepuUtilities.Collections; using BepuUtilities.Memory; namespace BepuPhysics { ...
43.216667
212
0.645584
[ "Apache-2.0" ]
FEETB24/bepuphysics2
BepuPhysics/DefaultCallbacks.cs
7,781
C#
#region Copyright //////////////////////////////////////////////////////////////////////////////// // The following FIT Protocol software provided may be used with FIT protocol // devices only and remains the copyrighted property of Dynastream Innovations Inc. // The software is being provided on an "as-is" basis and a...
32.732394
83
0.57315
[ "MIT" ]
wpbest/CodeTest
FitSDKRelease_20.38.00/cs/Dynastream/Fit/Profile/Types/TurnType.cs
2,324
C#
// ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by SpecFlow (https://www.specflow.org/). // SpecFlow Version:3.9.0.0 // SpecFlow Generator Version:3.9.0.0 // // Changes to this file may cause incorrect behavior and w...
43.129252
302
0.642587
[ "MIT" ]
SkillsFundingAgency/tl-results-and-certification-automation-suite
src/Sfa.Tl.ResultsAndCertificationAutomation/Tests/Features/AssessmentEntries/1917_AssessmentEntryUploadSuccessful.feature.cs
6,342
C#
using Nethereum.ABI.FunctionEncoding; using Nethereum.ABI.Model; using Nethereum.Hex.HexConvertors.Extensions; using Nethereum.JsonRpc.Client; using Newtonsoft.Json.Linq; using System.Collections.Generic; namespace Nethereum.Contracts { public static class ErrorExtensions { private static FunctionCall...
39.633333
116
0.688394
[ "MIT" ]
CryptoProject0417/P2E-UnityGameExample
Assets/MoralisWeb3ApiSdk/Nethereum/Nethereum.Contracts/Extensions/ErrorExtensions.cs
2,380
C#
//~ Generated by SearchStubs/SearchRowBasic using System; using System.Collections.Generic; namespace SuiteTalk { partial class EmployeeSearchRowBasic { // TODO: Make this Lazy and Weak referenced so that it can be garbaged collected private static readonly Lazy<ColumnFactory> columnFactoryLo...
117.535135
183
0.576849
[ "Apache-2.0" ]
cloudextend/contrib-netsuite-servicemgr
Celigo.SuiteTalk/src/SuiteTalk/Generated/EmployeeSearchRowBasic.gen.cs
21,744
C#
using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using MudBlazor.Examples.Data; using MudBlazor.Examples.Data.Models; namespace Server.Controllers { [Route("wasm/webapi/[controller]")] [Route("webapi/[controller]")] [ApiController] public class PeriodicTa...
27.323529
82
0.675996
[ "MIT" ]
BananaRush/MudBlazor
src/MudBlazor.Docs.Server/Controllers/PeriodicTableController.cs
931
C#
using System.ComponentModel.DataAnnotations; namespace HowIMeter.Cli { enum ApplicationErrorKind { NoError = 0, GeneralError = -1, [Display(Description = "Invalid arguments")] InvalidCliArgument = -2, [Display(Description = "The provided uri is invalid")] Invali...
22.2
62
0.630631
[ "MIT" ]
jaenyph/howimeter
HowIMeter.Cli/ApplicationErrorKind.cs
335
C#
using strange.extensions.context.impl; namespace Server.Contexts { public class AppServerRoot : ContextView { private void Awake() { context = new AppServerContext(this); } } }
18.833333
49
0.606195
[ "MIT" ]
gellios3/Simple-Battle-Cards-Server
Assets/Scripts/Server/Contexts/AppServerRoot.cs
228
C#