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
// <copyright file="RealtimeRoomConfigBuilder.cs" company="Google Inc."> // Copyright (C) 2014 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 // // h...
33.431579
98
0.677897
[ "Apache-2.0" ]
BUR58rus/play-games-plugin-for-unity
source/PluginDev/Assets/GooglePlayGames/Platforms/Native/PInvoke/RealtimeRoomConfigBuilder.cs
3,176
C#
using Application.Interfaces.Cadastro; using Domain.Entities.Cadastro; using Domain.Interfaces.Services.Cadastro; using System.Collections.Generic; namespace Application.Applications.Cadastro { public class ClienteAppService : AppServiceBase<Cliente>, InterfaceClienteAppService { private readonly Inte...
29.625
88
0.720113
[ "MIT" ]
PauloGaldino/SGFR_Identity
src/Application/Applications/Cadastro/ClienteAppService.cs
713
C#
using System; using System.Collections.Generic; using Android.App; using Android.Widget; using Android.OS; using Xamarin.Android.NUnitLite; namespace Xamarin.Android.BclTests { [Activity ( Label = "Xamarin.Android BCL Tests", MainLauncher = true, Name = "xamarin.android.bcltests.MainActivity")] public cl...
19.234043
70
0.709071
[ "BSD-3-Clause" ]
Acidburn0zzz/xamarin-android
tests/Xamarin.Android.Bcl-Tests/MainActivity.cs
906
C#
using System.Collections.Generic; using Xunit.v3; namespace Xunit.Sdk { /// <summary> /// Interface to be implemented by classes which are used to discover tests cases attached /// to test methods that are attributed with <see cref="FactAttribute"/> (or a subclass). /// </summary> public interface IXunitTestCase...
35.538462
91
0.734848
[ "Apache-2.0" ]
Xcodo/xun
src/xunit.v3.core/Sdk/IXunitTestCaseDiscoverer.cs
926
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Profiles.ORCID.Utilities.ProfilesRNSDLL.BLL.ORNG { public partial class AppRegistry { } }
16.666667
58
0.755
[ "BSD-3-Clause" ]
HSSC/ProfilesRNS
Website/SourceCode/Profiles/Profiles/ORCID/Utilities/ProfilesRNSDLL/BLL/ORNG/AppRegistry.cs
202
C#
//Copyright © 2014 Sony Computer Entertainment America LLC. See License.txt. using Sce.Atf.Dom; namespace CircuitEditorSample { /// <summary> /// Adapts the circuit to IDocument and synchronizes URI and dirty bit changes to the /// ControlInfo instance used to register the viewing control in the ...
35.9
105
0.672702
[ "Apache-2.0" ]
StirfireStudios/ATF
Samples/CircuitEditor/CircuitDocument.cs
702
C#
namespace Offeror.TelegramBot.Exceptions { public class FailDeleteCommandException : Exception { public FailDeleteCommandException() : this("Failed to free up resources occupied by commands") { } public FailDeleteCommandException(string? message) : base(m...
22.25
69
0.606742
[ "MIT" ]
TheWayToJunior/Offeror.TelegramBot
src/Offeror.TelegramBot/Offeror.TelegramBot/Exceptions/FailDeleteCommandException.cs
358
C#
namespace Example { using System; using System.Threading.Tasks; using FluentArgs; public static class Program { public static Task Main(string[] args) { return FluentArgsBuilder.New() .DefaultConfigsWithAppDescription("An app to convert png files to jpg f...
35.583333
104
0.461358
[ "BSD-3-Clause" ]
kutoga/FluentArgs
doc/examples/Simple02.cs
1,281
C#
// $Id: StudentModel.cs 1043 2006-07-19 22:48:12Z julenka $ using System; namespace UW.ClassroomPresenter.Model.Network { [Serializable] public class StudentModel : RoleModel { public StudentModel(Guid id) : base(id) { } } }
22.166667
60
0.631579
[ "Apache-2.0" ]
ClassroomPresenter/CP3
UW.ClassroomPresenter/Model/Network/StudentModel.cs
266
C#
using System; using System.Net; using PingPong.Common.Dtos; using PingPong.Validation.Abstractions; namespace PingPong.CreationPolicy { public class IPAdressFactory { private readonly IAddressValidator _addressValidator; private readonly IPortValidator _portValidator; public IPAdressF...
28.558824
96
0.61277
[ "Unlicense" ]
Electric1447/PingPong
PingPong/PingPong.CreationPolicy/IPAdressFactory.cs
973
C#
namespace FalseDotNet.Cli.SubCommandExtensions; public interface ISubCommand { Task<int> RunAsync(object opts); } public abstract class SubCommand<TOptions> : ISubCommand { public Task<int> RunAsync(object opts) { return RunAsync((TOptions)opts); } public abstract Task<int> RunAsync(TOpt...
20.8125
56
0.720721
[ "MIT" ]
MixusMinimax/falsedotnet
FalseDotNet.Cli/SubCommandExtensions/ISubCommand.cs
335
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // La información general de un ensamblado se controla mediante el siguiente // conjunto de atributos. Cambie estos valores de atributo para modificar la información // asociada con un ensamblado. [assembly: Assembl...
40.459459
106
0.755511
[ "MIT" ]
Ricardo221604/Calculo-de-dias-vividos
Edad/Edad/Properties/AssemblyInfo.cs
1,515
C#
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System.IO; using System.Linq; using System.Threading.Tasks; namespace MonicaBlazorZmqUI.Server.Controllers { [Route("[controller]")] [ApiController] public class UploadController : ControllerBase ...
27.815789
98
0.576159
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
zalf-rpm/mas-infrastructure
src/csharp/MonicaBlazorZmqUI/Services/UploadController.cs
1,059
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Metadata; namespace AllReady.Migrations { public partial class RemovingEventSignups : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropT...
40.533333
122
0.526316
[ "MIT" ]
7as8ydh/allReady
AllReadyApp/Web-App/AllReady/Migrations/20160901161922_RemovingEventSignups.cs
2,434
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...
45.357616
139
0.602278
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Kusto/V20200614/DataConnection.cs
6,849
C#
using System; namespace API.Entities { public sealed class Task { public Guid Id { get; set; } public bool IsDone { get; set; } public string Title { get; set; } public string Description { get; set; } public DateTime CreatedAt { get; set; } } }
23
47
0.578595
[ "MIT" ]
olaf-svenson/graphql-net-reproduction
graphql-demo/API/Entities/Task.cs
301
C#
// Copyright (c) 2016, SolidCP // SolidCP is distributed under the Creative Commons Share-alike license // // SolidCP is a fork of WebsitePanel: // Copyright (c) 2015, Outercurve Foundation. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted ...
35.777174
84
0.638767
[ "BSD-3-Clause" ]
Alirexaa/SolidCP
SolidCP/Sources/SolidCP.Providers.Base/Virtualization/VirtualMachine.cs
6,583
C#
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir & xuri 2021 // // 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 limitatio...
37.60396
193
0.615587
[ "MIT" ]
xuri02/SharpVk
src/SharpVk/NVidia/GraphicsShaderGroupCreateInfo.gen.cs
3,798
C#
namespace ClassifiedApp.WebApi.Areas.HelpPage.ModelDescriptions { public class DictionaryModelDescription : KeyValuePairModelDescription { } }
25.666667
74
0.798701
[ "MIT" ]
samibader/ClassifiedApp
ClassifiedApp.WebApi/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs
154
C#
using AutoMapper; using Microsoft.EntityFrameworkCore; using StoreManagement.Core.Dto; using StoreManagement.EF.Context; using StoreManagement.EF.Entities; using StoreManagement.Interface; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace St...
34.305556
108
0.537922
[ "MIT" ]
TheHappiness/LightpointTask
StoreManagement.Service/ProductService.cs
3,707
C#
// NoRealm licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using NoRealm.ExpressionLite.Parser; using System; namespace NoRealm.ExpressionLite.Generator { /// <summary> /// Represent a generator which convert the expression tree into a runtim...
45.857143
93
0.668744
[ "MIT" ]
norealm/expression-lite
src/lib/Generator/RuntimeMethodGenerator.cs
1,928
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable disable using System; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Linq; using System.Text; using System.Text.Encodings.Web; using...
39.587302
127
0.607191
[ "MIT" ]
mishelshaji/Asp-.Net-Core-Demo
ASPIdentity/Areas/Identity/Pages/Account/Manage/EnableAuthenticator.cshtml.cs
7,484
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; public class SpielprinzipMauMau : MonoBehaviour { public Kartenstapel stapel; public Karte offeneKarte; public GameObject spielerHandstapel; void Start() { ...
31.25
97
0.673412
[ "MIT" ]
renebuehling/gamedev-profi.de_card-game
Teil 10 - MauMau/10a Basis vor Spielparteien/Scripts/SpielprinzipMauMau.cs
2,127
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. /****************************************************************************** * This file is auto-generated from ...
36.772727
146
0.570457
[ "MIT" ]
06needhamt/runtime
src/coreclr/tests/src/JIT/HardwareIntrinsics/General/NotSupported/Vector128ToVector256.cs
1,618
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace Isaac.SampleMvc { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd...
24.291667
99
0.588336
[ "MIT" ]
Isaac-Shen/Isaac.Infrastracture
Isaac.Infrastructure.Framework/Isaac.SampleMvc/App_Start/RouteConfig.cs
585
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Ultraschall.Data.Abstractions; using Ultraschall.Data.Entities; using Ultraschall.Domain.Abstractions; using Ultraschall.Domain.Models; namespace Ultraschall.Domain.Services { public class CategoriesService : IC...
29.329412
110
0.580425
[ "MIT" ]
Ultraschall/ultraschall-playground
danlin/Ultraschall/Domain/Services/CategoriesService.cs
2,495
C#
using System; using System.Collections.Generic; using System.Text; using Entidades; namespace Persistencia.InterfazDao { public interface IAsistenciaDao { List<Asistencia> ListarAsistenciasPorSesionCurso(int idCurso, DateTime fechaActual); List<Asistencia> ListarAsistenciasPorSesion(int idSesi...
29.647059
92
0.761905
[ "MIT" ]
jonaav/Overseas5
Persistencia/InterfazDao/IAsistenciaDao.cs
506
C#
#region Copyright (c) 2009 S. van Deursen /* The CuttingEdge.Conditions library enables developers to validate pre- and postconditions in a fluent * manner. * * To contact me, please visit my blog at http://www.cuttingedge.it/blogs/steven/ * * Copyright (c) 2009 S. van Deursen * * Permission is hereby grante...
39.878788
182
0.651786
[ "MIT" ]
conditions/conditions
CuttingEdge.Conditions.UnitTests/StringTests/StringDoesNotHaveLengthTests.cs
5,264
C#
using System.Collections.Generic; namespace Pathoschild.Stardew.Automate.Framework.Models { /// <summary>The model for Automate's internal file containing data that can't be derived automatically.</summary> internal class DataModel { /// <summary>The name to use for each floor ID.</summary> ...
32.083333
118
0.706494
[ "MIT" ]
Alexhia/StardewMods
Automate/Framework/Models/DataModel.cs
385
C#
/* 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 writing, software * distribu...
36.166667
75
0.734255
[ "Apache-2.0" ]
18502079446/cusss
NActiviti/Sys.Bpm.Engine/Engine/IDynamicBpmnConstants.cs
653
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("04....
38.432432
84
0.747539
[ "MIT" ]
IvanKrivulev/Programming-Fundamentals
OBJECTS AND CLASSES/04. Distance between Points/Properties/AssemblyInfo.cs
1,425
C#
using System; using System.Collections.Generic; using Application.Models.Navigation; using Microsoft.AspNetCore.Mvc.Localization; using Microsoft.Extensions.Localization; namespace Application.Models.ViewModels { public interface ILocalizationViewModel : IViewModel { #region Properties INavigationNode Localizer...
26.148148
94
0.807365
[ "MIT" ]
RegionOrebroLan/.NET-Localization-Extensions
Source/Samples/Shared-Mvc/Models/ViewModels/ILocalizationViewModel.cs
706
C#
#pragma warning disable CS0618 // Type or member is obsolete namespace Gu.Wpf.Reactive.Tests.Collections.MutableViews.FilterTests { using System; using Microsoft.Reactive.Testing; using NUnit.Framework; public class FilteredViewTestsBase : FilterTests { [SetUp] public override void ...
33.52381
118
0.660511
[ "MIT" ]
forki/Gu.Reactive
Gu.Wpf.Reactive.Tests/Collections/MutableViews/FilterTests/FilteredViewTestsBase.cs
704
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using VkNet.Enums.Filters; using VkNet.Enums.SafetyEnums; using VkNet.Model; using VkNet.Model.RequestParams; using VkNet.Model.RequestParams.Groups; using VkNet.Utils; namespace VkNet.Abstractions { /// <summary> /// Методы для ра...
42.854545
124
0.76934
[ "MIT" ]
Azrael141/vk
VkNet/Abstractions/Category/IGroupsCategory.cs
7,107
C#
using Jane.Logging; using System.Threading.Tasks; namespace Jane.PushNotifications { public class NullPushNotificationService : IPushNotificationService { private readonly ILogger Logger; public NullPushNotificationService( ILoggerFactory loggerFactory ) ...
36.317073
124
0.599731
[ "Apache-2.0" ]
Caskia/Jane
src/Jane/PushNotifications/NullPushNotificationService.cs
1,491
C#
// CS1581: Invalid return type in XML comment cref attribute `explicit operator intp (Test)' // Line: 7 // Compiler options: -doc:dummy.xml -warnaserror -warn:1 using System; /// <seealso cref="explicit operator intp (Test)"/> public class Test { /// operator. public static explicit operator int (Test t) { return...
20.625
92
0.7
[ "Apache-2.0" ]
121468615/mono
mcs/errors/cs1581.cs
330
C#
using System.Reflection; using System.Runtime.InteropServices; // Les informations générales relatives à un assembly dépendent de // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations // associées à un assembly. [assembly: AssemblyTitle("InteractionsExercise")] [assem...
40.944444
103
0.749661
[ "MIT" ]
tristanles/moq-exercise
InteractionsExercise/Properties/AssemblyInfo.cs
1,499
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Numeria.IO { internal class IndexNode { public const int FILENAME_SIZE = 41; // Size of file name string public const int FILE_EXTENSION_SIZE = 5; // Size of file extension s...
33.92
113
0.574882
[ "MIT" ]
ChristianGutman/FileDB
FileDB/Structure/IndexNode.cs
1,698
C#
// Copyright © 2017 Dmitry Sikorsky. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace starsky.foundation.database.Models.Account { public class Credential { /// <summary> /// Database Id /// </summary>...
26.891892
111
0.523618
[ "MIT" ]
qdraw/starsky
starsky/starsky.foundation.database/Models/Account/Credential.cs
998
C#
/* Copyright 2010-2015 MongoDB 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 writin...
38.341463
133
0.722646
[ "Apache-2.0" ]
InternationNova/MEANJS
src/MongoDB.Driver/Linq/IMongoQueryProvider.cs
1,572
C#
using ToDo.Domain.Entities; namespace ToDo.Domain.Models { public class Endereco { public int PessoaId { get; set; } public string Cep { get; set; } public string Logradouro { get; set; } public int Numero { get; set; } public string Bairro { get; set; } public...
28.159091
125
0.541566
[ "MIT" ]
Cristianotx/ewave-livraria-senior
ToDo-API/src/ToDo.Domain/Models/Endereco.cs
1,241
C#
using System; using System.Web.Http; using System.Configuration; using System.Collections.Generic; using System.Threading.Tasks; using System.Threading; using NNanomsg.Protocols; using Newtonsoft.Json; using System.Net.Http; using System.Net; namespace DBServer { public class DBController : ApiController { ...
28.58
99
0.525892
[ "MIT" ]
alisa-teplouhova/distributed_systems
distributedDB/DistributedDB/DBServer/DBController.cs
2,860
C#
//------------------------------------------------------------------------------ // <auto-generated> // Dieser Code wurde von einem Tool generiert. // Laufzeitversion: 4.0.30319.42000 // // Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn // der Code neu gen...
41.069444
171
0.623943
[ "MIT" ]
MaikHo/myEVA
myEVA/Properties/Resources.Designer.cs
2,967
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.Editor; using System; using System.Collections.Generic; using UnityEditor; using UnityEngine; #if !UNITY_2019_3_OR_NEWER using System.IO; #endif // !UNITY_2019_3_OR_NEWER namespace Microsoft.MixedReality....
45.234043
298
0.642782
[ "MIT" ]
AdrianaMusic/MixedRealityToolkit-Unity
Assets/MRTK/Core/Utilities/Editor/Setup/MixedRealityProjectConfigurator.cs
19,136
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
40.027027
85
0.732613
[ "MIT" ]
jdm7dv/financial
windows/CsForFinancialMarketsPart2/Chapter25/Chapter25Project/Chapter25Project/Properties/AssemblyInfo.cs
1,484
C#
using ClientCore; using ClientCore.CnCNet5; using ClientGUI; using Microsoft.Xna.Framework; using Rampastring.XNAUI; using Rampastring.XNAUI.XNAControls; using System; using System.Collections.Generic; namespace DTAConfig.OptionPanels { class CnCNetOptionsPanel : XNAOptionsPanel { public ...
42.547794
115
0.624125
[ "MIT" ]
Metadorius/xna-cncnet-client
DTAConfig/OptionPanels/CnCNetOptionsPanel.cs
11,304
C#
using System; using System.Text; using System.Collections; using System.Collections.Generic; using UnityEngine.Networking; #if UNITY_EDITOR using UnityEditor; #endif namespace IRT.Unity { public class UnityTransportGeneric<C>: IClientTransport<C> where C: class, IClientTransportContext { private const str...
37.918033
123
0.571552
[ "BSD-2-Clause" ]
kaishh/izumi-r2
idealingua/idealingua-runtime-rpc-c-sharp/src/main/resources/runtime/csharp/irt/UnityTransport.cs
6,939
C#
namespace UniversalModels { public class Product { public int PartNumber { get; set; } public string PartName { get; set; } public string PartDescription { get; set; } public decimal UnitPrice { get; set; } public string UnitOfMeasure { get; set; } public decimal ...
36.965517
79
0.599813
[ "MIT" ]
03012021-dotnet-uta/MatthewGrimsley_p1
UniversalModels/Product.cs
1,072
C#
//This is a new class that represents a progress object. using System; using System.IO; using System.IO.Compression; public class ZipProgress { public ZipProgress(int total, int processed, string currentItem) { Total = total; Processed = processed; CurrentItem = currentItem; } ...
36.732394
147
0.662193
[ "MIT" ]
nmxi/Unity_iMobileDeviceNet_ClientBuilder
Assets/Scripts/ZipProgress.cs
2,610
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Primitives; using Yarp.ReverseProxy.Configuration; using Yarp.ReverseProxy.Model; namespac...
40.623188
163
0.688191
[ "MIT" ]
BennyM/reverse-proxy
src/ReverseProxy/SessionAffinity/CustomHeaderSessionAffinityPolicy.cs
2,803
C#
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using HuaweiCloud.SDK.Core; namespace HuaweiCloud.SDK.Nat.V2.Model { /// <summary> /// 创建DNAT规则的请求体。 /// </summary> public c...
26.934211
81
0.521251
[ "Apache-2.0" ]
cnblogs/huaweicloud-sdk-net-v3
Services/Nat/V2/Model/CreateNatGatewayDnatRuleOption.cs
2,065
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; // II.25 File format extensions to PE sealed class FileFormat : ICanRead { public PEHeader PEHeader; public Section[] Sections; public CodeNode Read(Stream stream) { ...
32.900198
402
0.693888
[ "MIT" ]
darthwalsh/dotNetBytes
Lib/FileFormat.cs
33,353
C#
using System; using System.Collections.Generic; using TechTalk.SpecFlow.Assist; namespace SpecFlowTests.Utils.Common.ValueRetrievers { public class StringToBoolValueRetriever : IValueRetriever { public bool GetValue(KeyValuePair<string, string> keyValuePair) { if (string.IsNullOrWh...
32.321429
120
0.678453
[ "BSD-3-Clause" ]
techtalk/CodingDojos
SpecFlowCodingDojo/eShopOnWeb/tests/SpecFlowTests/Utils/Common/ValueRetrievers/StringToBoolValueRetriever.cs
907
C#
using System.Collections.Generic; using System.Threading.Tasks; namespace Logging.Services { public interface IService<T> { Task<T> GetItemAsync(string id); Task<IEnumerable<T>> GetItemsAsync(); } }
19.083333
45
0.681223
[ "Apache-2.0" ]
jasonmacduffie/GraphQL
Orders/Services/IService.cs
231
C#
namespace MyFirstABPProject.EntityFrameworkCore.Seed.Host { public class InitialHostDbBuilder { private readonly MyFirstABPProjectDbContext _context; public InitialHostDbBuilder(MyFirstABPProjectDbContext context) { _context = context; } public void Create(...
27.086957
71
0.638844
[ "Apache-2.0" ]
HvaiY/MyCoreStudy
MyFirstABPProject/3.9.0/aspnet-core/src/MyFirstABPProject.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/InitialHostDbBuilder.cs
625
C#
using UnityEngine; namespace toio.tutorial { public class SimUI : MonoBehaviour { private int updateCnt = 0; void Update() { if (CubeScanner.actualTypeOfAuto == ConnectType.Simulator) { if (updateCnt < 3) updateCnt++; if (updateCn...
34.5
111
0.518841
[ "MIT" ]
comoc/toio-sdk-for-unity
toio-sdk-unity/Assets/toio-sdk/Tutorials/1.Basic/ex.Sample_UI/SimUI.cs
1,073
C#
using System; using System.Drawing; using System.Drawing.Imaging; using System.Drawing.Text; using System.IO; namespace YanZhiwei.DotNet2.Utilities.ValidateCode { /// <summary> /// 字体旋转(简单) /// </summary> public class ValidateCode_Style13 : ValidateCodeType { private Color backgroundColor...
29.083333
105
0.489207
[ "MIT" ]
wind2006/DotNet.Utilities
YanZhiwei.DotNet2.Utilities/ValidateCode/ValidateCode_Style13.cs
5,261
C#
using System; using System.Text; using System.Diagnostics; using System.Threading.Tasks; using WindowsGSM.Functions; using WindowsGSM.GameServer.Engine; using WindowsGSM.GameServer.Query; namespace WindowsGSM.Plugins { public class theforest : SteamCMDAgent // SteamCMDAgent is used because the_forest relies on Ste...
44.721649
166
0.631858
[ "MIT" ]
Inity949/WindowsGSM.theforest
theforest.cs/theforest.cs
4,341
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms...
29.284768
113
0.475124
[ "BSD-3-Clause" ]
sayakaanelli/ACT.Hojoring
source/ACT.XIVLog/XIVLogPlugin.cs
13,428
C#
using Shared.Application.Exceptions; using Modules.Todolist.Application.Commands.CreateTodoItem; using Modules.Todolist.Application.Commands.UpdateTodoItem; using Modules.Todolist.Application.Commands.UpdateTodoItemDetail; using Modules.Todolist.Application.Commands.CreateTodoList; using Modules.Todolist.Domain.Entiti...
30.514286
74
0.597846
[ "MIT" ]
tomaforn/clean-architecture
tests/Application.IntegrationTests/TodoItems/Commands/UpdateTodoItemDetailTests.cs
2,138
C#
using CUE4Parse.UE4.Readers; namespace CUE4Parse.UE4.Wwise.Objects { public abstract class AbstractHierarchy { public uint Id { get; } protected AbstractHierarchy(FArchive Ar) { Id = Ar.Read<uint>(); } } }
18.857143
48
0.590909
[ "MIT" ]
Mrzzbelladonna/ProSwapper
CUE4Parse/CUE4Parse/UE4/Wwise/Objects/AbstractHierarchy.cs
266
C#
// Copyright © Microsoft Corporation. All Rights Reserved. // This code released under the terms of the // Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.) // //Copyright (C) Microsoft Corporation. All rights reserved. using System.Collections.Generic; using System.ComponentModel; using...
37.008108
144
0.457512
[ "Apache-2.0" ]
superbee66/dcForm
dcForm/Util/Dynamic.cs
95,854
C#
using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class SelectedUnitPanel : MonoBehaviour { private TextMeshProUGUI infoText, unitNameText, actionText; private Unit unit; public TextMeshProUGUI healthText; public Slider health...
30.722892
223
0.633725
[ "CC0-1.0" ]
brainoverflow98/bandit-wars
src/Assets/Scripts/SelectedUnitPanel.cs
2,552
C#
using System; using System.Collections.Generic; using System.Text; namespace PizzaCalories { public static class DoughValidator { private static Dictionary<string, double> flourType = new Dictionary<string, double>(); private static Dictionary<string, double> bakingTech = new Dictiona...
29.849057
96
0.554994
[ "MIT" ]
tonkatawe/SoftUni-Advanced
OOP/Encapsulation - Exercise/PizzaCalories/DoughValidator.cs
1,584
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Controls; namespace Project.Validators { class AlphabetValidator: ValidationRule { pub...
27.153846
89
0.630312
[ "MIT" ]
Harikodapaka/Pizza-ordering-system-WAP
Project/Validators/AlphabetValidator.cs
708
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Tests { [TestClass] public class ETests { const int TimeLimit = 2000; const double RelativeError = 1e-9; [TestMethod, Timeout(TimeLimit)] public void Test1() { const string input = @"3 3 ... ....
16.896552
59
0.490816
[ "CC0-1.0" ]
AconCavy/AtCoder.Tasks.CS
PAST/PAST202012-OPEN/Tests/ETests.cs
980
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CalculadoraDoisPontoZero; namespace UsandoBibliotecaCalcExterna { class Program { static int valor1 = 0; static int valor2 = 0; static void Main(string[] args) ...
32.040404
94
0.499685
[ "MIT" ]
Daneugoncalves/GitC
SQL, Listas,Primeiros Forms/UsandoBibliotecaCalcExterna/Program.cs
3,174
C#
using UnityEngine; namespace Mirror.Experimental { [DisallowMultipleComponent] [AddComponentMenu("Network/Experimental/NetworkTransformExperimental")] [HelpURL("https://mirror-networking.gitbook.io/docs/components/network-transform")] public class NetworkTransform : NetworkTransformBase { ...
29.769231
87
0.762274
[ "MIT" ]
10allday/OpenMMO
Plugins/3rdParty/Mirror/Components/Experimental/NetworkTransform.cs
389
C#
namespace Craftsman.Builders { using Craftsman.Builders.Dtos; using Craftsman.Builders.Projects; using Craftsman.Helpers; using Craftsman.Models; using System; using System.IO; using System.IO.Abstractions; using AuthServer; using static Helpers.ConsoleWriter; public class Solu...
63.063291
206
0.731232
[ "MIT" ]
lukerogers/craftsman
Craftsman/Builders/SolutionBuilder.cs
9,966
C#
// // Swiss QR Bill Generator for .NET // Copyright (c) 2018 Manuel Bleichenbacher // Licensed under MIT License // https://opensource.org/licenses/MIT // using Codecrete.SwissQRBill.Generator; using Codecrete.SwissQRBill.Generator.Canvas; using System; using System.Reflection; using Xunit; namespace Codecrete.Swiss...
27.5
109
0.648485
[ "MIT" ]
0xced/SwissQRBill.NET
GeneratorTest/CleanupTest.cs
992
C#
using System; namespace Chess { public class King : Piece { public King(){} public King(Space space, string color) : base (space, color){} public override bool CheckAll(int x, int y) { return true; } } }
17.846154
66
0.62069
[ "MIT" ]
TSiu88/chess
QueenAttack/King.cs
232
C#
namespace Steamworks { public enum EUGCMatchingUGCType { k_EUGCMatchingUGCType_Items = 0, k_EUGCMatchingUGCType_Items_Mtx = 1, k_EUGCMatchingUGCType_Items_ReadyToUse = 2, k_EUGCMatchingUGCType_Collections = 3, k_EUGCMatchingUGCType_Artwork = 4, k_EUGCMatchingUGCType_Videos = 5, k_EUGCMatchingUGCType_Scr...
30.238095
48
0.820472
[ "MIT" ]
undancer/oni-data
Managed/firstpass/Steamworks/EUGCMatchingUGCType.cs
635
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
49.723529
185
0.653732
[ "MIT" ]
FosterMichelle/azure-powershell
src/ResourceManager/Resources/Commands.Resources/Providers/GetAzureProviderOperationCmdlet.cs
8,286
C#
using System; using Newtonsoft.Json; namespace Edison.ChatService.Models { /// <summary> /// Object that represents the channeldata for command EndConversation /// </summary> [Serializable] public class CommandEndConversation { [JsonProperty(PropertyName = "userId")] public str...
22.0625
74
0.66289
[ "MIT" ]
Mahesh1998/ProjectEdison
Edison.Web/Edison.Microservices.ChatService/Models/CommandEndConversation.cs
355
C#
using Actio.Common.Events; using Microsoft.Extensions.Logging; using System.Threading.Tasks; namespace Actio.Api.Handlers { public class UserAuthenticatedHandler : IEventHandler<UserAuthenticated> { private readonly ILogger<UserAuthenticatedHandler> _logger; public UserAuthenticatedHandler(IL...
26.608696
81
0.679739
[ "MIT" ]
msadeqsirjani/Actio
src/Actio.Api/Handlers/UserAuthenticatedHandler.cs
614
C#
/* Copyright (c) 2006 - 2008 The Open Toolkit library. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
36.370419
119
0.538597
[ "MIT" ]
Phyyl/opentk
src/OpenTK.Mathematics/Matrix/Matrix2d.cs
27,789
C#
using System; using System.Collections.Generic; using System.Text; namespace BoardGamer.BoardGameGeek.BoardGameGeekXmlApi2 { public class UserResponse { public UserResponse(User user) { this.Result = user; this.Succeeded = true; } public User Result { g...
30.530303
56
0.517618
[ "MIT" ]
Cobster/BoardGamer.BoardGameGeek
src/BoardGamer.BoardGameGeek/BoardGameGeekXmlApi2/UserResponse.cs
2,017
C#
using Caco.API.Models; using Microsoft.EntityFrameworkCore; namespace Caco.API.Persistence.Contexts { public class AppDbContext : DbContext { public DbSet<Board> Boards { get; set; } public DbSet<Column> Columns { get; set; } public DbSet<Card> Cards { get; set; } public AppDbCo...
49.257576
128
0.551523
[ "Unlicense" ]
alutrin/caco
api/Persistence/Contexts/AppDbContext.cs
3,251
C#
namespace Game { using UnityEngine; public class SoundManager : MonoBehaviour { public static SoundManager instance { get; private set; } public SoundFx[] soundFx = new SoundFx[0]; public AudioClip actionMusic; public AudioClip quietMusic; public AudioSource backgr...
23.335025
125
0.509463
[ "MIT" ]
RamiAhmed/NGJ16
Assets/Scripts/SoundManager.cs
4,599
C#
// ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by SpecFlow (http://www.specflow.org/). // SpecFlow Version:1.8.0.0 // SpecFlow Generator Version:1.8.0.0 // Runtime Version:4.0.30319.239 // // Changes to this fi...
36.155172
152
0.591082
[ "Apache-2.0" ]
madhudevops19/pickles
src/Pickles/Pickles.Example/Features/00BasicGherkin/BasicGherkin1.feature.cs
4,196
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using System.Xml; using System.Windows.Forms; namespace Termo { public class TermoSettings { public int RowCnt=0; public int ColCnt=0; // pub...
39.864662
152
0.496982
[ "MIT" ]
VINEET1234-CH/Kinetic-calculation
src/TermoSettings.cs
5,413
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Web; using System.Xml.Serialization; using NewLife; using NewLife.Data; using NewLife.Log; using NewLife.Model; using Ne...
29.869231
108
0.588205
[ "MIT" ]
xxred/IdentityServer4.XCode
Entities/ApiSecrets.Biz.cs
4,547
C#
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Drawing; using Duality; using Duality.Drawing; using Duality.Resources; using Duality.Editor.Plugins.CamView.CamViewStates; namespace Duality.Editor.Plugins.CamView.CamViewLayers { public class GridCamViewLa...
36.917197
141
0.648896
[ "MIT" ]
LukasPirkl/duality
Source/Plugins/EditorModules/CamView/CamViewLayers/GridCamViewLayer.cs
5,798
C#
using System; using System.Windows.Controls; namespace WpfBasicOptionalLogin.Contracts.Services { public interface INavigationService { event EventHandler<string> Navigated; Frame Frame { get; } bool CanGoBack { get; } void Initialize(Frame shellFrame); bool Navigat...
20.304348
95
0.668094
[ "MIT" ]
jpda/WpfForcedLogin
WpfBasicOptionalLogin/Contracts/Services/INavigationService.cs
469
C#
using System.Collections.Concurrent; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Options; using OrchardCore.Environment.Shell; using OrchardCore.ResourceManagement; using OrchardCore.Settings; namespace OrchardCore.Resources { public class ResourceManagementOptio...
73.21
209
0.673624
[ "BSD-3-Clause" ]
Ranger1230/OrchardCore
src/OrchardCore.Modules/OrchardCore.Resources/ResourceManagementOptionsConfiguration.cs
36,605
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Remotion.Linq.Clauses; namespace Lucene.Net.Linq.Translation.ResultOperatorHandlers { internal abstract class ResultOperatorHandler { public abstract IEnumerable<Type> SupportedTypes { get; } ...
35.210526
124
0.686846
[ "Apache-2.0" ]
tamasflamich/Lucene.Net.Linq
source/Lucene.Net.Linq/Translation/ResultOperatorHandlers/ResultOperatorHandler.cs
1,338
C#
//////////////////////////////////////////////////////////////////////////////// // ________ _____ __ // / _____/_______ _____ ____ ____ _/ ____\__ __ | | // / \ ___\_ __ \\__ \ _/ ___\_/ __ \\ __\| | \| | // \ \_\ \| |...
49.47619
80
0.290664
[ "MIT" ]
brad-jones/graceful
tests/Graceful.Tests/Models/EqualityExpressionTest.cs
1,039
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.4952 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated...
42.554348
178
0.578289
[ "MIT" ]
siddhesh-vartak98/Fire-Detection-Using-Infrared-Images
Backup/Properties/Resources.Designer.cs
3,917
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace SubitonAPI.Migrations { public partial class AddUsers : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Users", c...
31.484848
72
0.514918
[ "MIT" ]
Oktawian-L/Subiton
SubitonAPI/SubitonAPI/Migrations/20191006133549_AddUsers.cs
1,041
C#
namespace SkillMap.EventBus.Events; public abstract record IntegrationEvent : IIntegrationEvent { public string IntegrationEventId { get; } public string DomainEventId { get; } public string OccurredOn { get; } protected IntegrationEvent() { } protected IntegrationEvent(string integratio...
30.227273
98
0.721805
[ "MIT" ]
beyondnetPeru/Beyondnet.Product.SkillMap
src/BuildingBlocks/EventBus/SkillMap.EventBus/Events/IntegrationEvent.cs
667
C#
namespace SoundFingerprinting.Tests.Unit.LCS { using System.Linq; using System.Threading.Tasks; using NUnit.Framework; using SoundFingerprinting.Data; using SoundFingerprinting.DAO; using SoundFingerprinting.DAO.Data; using SoundFingerprinting.Query; [TestFixture] public class Gro...
39.05
185
0.59411
[ "MIT" ]
Nekromancer/soundfingerprinting
src/SoundFingerprinting.Tests/Unit/LCS/GroupedQueryResultTest.cs
3,126
C#
using System; using System.Net.Http; using System.Net.Http.Headers; using Microsoft.Extensions.Options; using ZendeskApi.Client.Extensions; using ZendeskApi.Client.Options; namespace ZendeskApi.Client { public class ZendeskApiClient : IZendeskApiClient { private readonly Func<HttpMessageHandler> _httpM...
30.382353
132
0.597773
[ "Apache-2.0" ]
AOOlivares/ZendeskApiClient
src/ZendeskApi.Client/ZendeskApiClient.cs
2,066
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. using AuthJanitor.UI.Shared.Models; using AuthJanitor.EventSinks; using AuthJanitor.IdentityServices; using AuthJanitor.Providers; using AuthJanitor.SecureStorage; using System; using System.Collections.Generic; using System.Linq; using System....
48.27907
176
0.627842
[ "MIT" ]
ConnectionMaster/AuthJanitor
src/AuthJanitor.AspNet/TaskExecutionMetaService.cs
10,382
C#
using System; using System.Collections.Generic; using System.Data.Common; namespace RepoDb.Contexts.Execution { /// <summary> /// /// </summary> internal class MergeExecutionContext { /// <summary> /// /// </summary> public string CommandText { get; set; } ...
21.666667
78
0.525874
[ "Apache-2.0" ]
RepoDb/RepoDb
RepoDb.Core/RepoDb/Contexts/Execution/MergeExecutionContext.cs
717
C#
//------------------------------------------------------------------------------ // <auto-generated> // 이 코드는 도구를 사용하여 생성되었습니다. // 런타임 버전:4.0.30319.42000 // // 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 // 이러한 변경 내용이 손실됩니다. // </auto-generated> //--------------------------------------------------------...
37.333333
151
0.560516
[ "MIT" ]
RyuaNerin/Topmost
Properties/Settings.Designer.cs
1,144
C#
using System; using StoreModel; using StoreController; using System.Collections.Generic; using System.Collections; using StoreData; using Serilog; namespace StoreView.Menus { /// <summary> /// This class serves as a host for any search features involving products. /// This includes both general product sea...
40.031034
171
0.530537
[ "MIT" ]
210215-USF-NET/Weston_Davidson-P0
StoreView/Menus/ProductSearch.cs
11,609
C#
namespace Reportr.IoC { /// <summary> /// Defines a contract for a dependency registrar /// </summary> public interface IDependencyRegistrar { /// <summary> /// Registers an implementation type against a specified type /// </summary> /// <typeparam name="TType">The r...
33.88
73
0.600945
[ "MIT" ]
craigbridges/Reportr
src/Reportr/IoC/IDependencyRegistrar.cs
849
C#
using Newtonsoft.Json; namespace PersonalCapital.Response { public class HeaderOnlyResponse { [JsonProperty(PropertyName = "spHeader")] public HeaderResponse Header { get; set; } } }
21.2
50
0.679245
[ "MIT" ]
pcartwright81/PersonalCapitalApi
PersonalCapital/Response/HeaderOnlyResponse.cs
214
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...
26.428571
88
0.651351
[ "ECL-2.0", "Apache-2.0" ]
JakeGinnivan/pulumi-aws
sdk/dotnet/ElasticLoadBalancing/Outputs/GetLoadBalancerHealthCheckResult.cs
1,110
C#
using UnityEditor; using UnityEngine; using UnityEngine.InputSystem; namespace DyrdaDev.FirstPersonController { #if UNITY_EDITOR [InitializeOnLoad] #endif public class DivideVector2ByDeltaTimeProcessor : InputProcessor<Vector2> { #if UNITY_EDITOR static DivideVector2ByDeltaTimeProcessor() ...
26.27027
114
0.634774
[ "MIT" ]
SariusGH/first-person-controller-for-unity
Packages/dev.dyrda.first-person-controller/Runtime/Utility/DivideVector2ByDeltaTimeProcessor.cs
974
C#