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.Collections.ObjectModel; using System.Net.Http.Headers; using System.Web.Http.Description; using FileUpload.Areas.HelpPage.ModelDescriptions; namespace FileUpload.Areas.HelpPage.Models { /// <summary> /// The model that represents an API displayed on the help page...
36.574074
123
0.614684
[ "MIT" ]
armitage03/Bitbucket
FileUpload/Areas/HelpPage/Models/HelpPageApiModel.cs
3,950
C#
using LogServices.Interfaces; using System; using System.Collections.Generic; namespace LogServices { public class LogService : ILogService { private List<ILogHandler> _logHandlers = new List<ILogHandler>(); public void AddHandler(ILogHandler handler) { _logHandlers.Add(ha...
22.186441
73
0.516425
[ "MIT" ]
Antihero-Studios/log-services
LogServices/Assets/LogServices/LogService.cs
1,311
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.Build.Framework; using Microsoft.Build.Shared; using Shouldly; using System; using System.Collections.Generic; using System.Collections.Concurrent; usin...
39.762421
237
0.466912
[ "MIT" ]
GaryPlattenburg/msbuild
src/Shared/UnitTests/FileMatcher_Tests.cs
106,454
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.Drawing; using System.Drawing.Drawing2D; using CommonGUI; namespace NeowUi { public class CompanyBrandingBottomBar : FlickerFreePanel { int logoRightEdge; public CompanyBrandingBottom...
17.065934
140
0.646491
[ "MIT-0" ]
business-sims-toolkit/business-sims-toolkit
dev/libraries/eboards/NeowUi/CompanyBrandingBottomBar.cs
1,555
C#
using System; using MySql.Data.MySqlClient; using System.Collections.Generic; namespace DMPDistributedDBBackend { public class DatabaseDriver { private DatabaseConnection databaseConnection; private Dictionary<ReferenceID, string> pairMatch = new Dictionary<ReferenceID, string>(); priv...
42.23506
314
0.549288
[ "Unlicense" ]
godarklight/DMPDistributedDBBackend
DMPDistributedDBBackend/DatabaseDriver.cs
10,603
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...
40.881356
202
0.666874
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/ApplicationInsights/Generated/Model/Internal/MarshallTransformations/DescribeComponentConfigurationRecommendationResponseUnmarshaller.cs
4,824
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Text; nam...
35.710037
135
0.488132
[ "Apache-2.0" ]
DaviGia/Steeltoe
src/Common/src/Common/Util/MimeTypeUtils.cs
9,608
C#
using System; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Jobs; namespace MithrilShards.Network.Benchmark.Benchmarks { [SimpleJob(RuntimeMoniker.NetCoreApp31)] [RankColumn, MarkdownExporterAttribute.GitHub, MemoryDiagnoser] public class DiscardThrow { object _data; [GlobalSetup] ...
19.875
66
0.601258
[ "MIT" ]
MithrilMan/MithrilShards
benchmarks/MithrilShards.P2P.Benchmark/Benchmarks/Spot/DiscardThrow.cs
797
C#
using System; using UnityEngine; namespace Sisus.Attributes { [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public sealed class RequireTriggerAttribute : RequireComponentsAttribute, IComponentModifiedCallbackReceiver<Collider> { /// <summary> /// Determines whether collider isTrigger value mu...
29.166667
158
0.759365
[ "MIT" ]
rafaeldolfe/MasterServerChess
Assets/Sisus/Attributes/RequireTriggerAttribute.cs
1,577
C#
using System; using System.Text.RegularExpressions; namespace Discord_Bot { public class Command { public Command(CommandAttribute attribute, Func<Input, Output> func) { Pattern = attribute.Pattern; Hint = attribute.Hint; Description = attribute.Description; Func = func; } ...
21.5
72
0.659619
[ "MIT" ]
ISmarsh/Discord-Bot
Discord-Bot.Core/Command.cs
475
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Net.Http; using System.Net.Http.Formatting; using System.Net.Http.Headers; using System.W...
47.211712
229
0.58649
[ "Apache-2.0" ]
davidbull931997/asp.net
WebAPI_Buoi2/WebAPI_Buoi2/Areas/HelpPage/SampleGeneration/HelpPageSampleGenerator.cs
20,962
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GunController : MonoBehaviour { public Gun gun; Player player; SpriteRenderer gunRenderer; Transform gunTransform; private void Start() { player = Player.instance; gunRenderer = GetCom...
25.753247
118
0.604639
[ "MIT" ]
BrendanStEsprit/CaveStoryUnityTutorial
CaveStoryTutorial E07/Assets/Scripts/Guns/GunController.cs
1,985
C#
// ------------------------------------------- // Control Freak 2 // Copyright (C) 2013-2016 Dan's Game Tools // http://DansGameTools.com // ------------------------------------------- #if UNITY_EDITOR using UnityEngine; using UnityEditor; using System.Collections.Generic; using ControlFreak2; using ControlFreak2....
29.482051
157
0.706384
[ "MIT" ]
ReiiYuki/Firebase-Unity-Realtime-Movement-Demo
Assets/Plugins/Control-Freak-2/Scripts/Editor-Scripts/Wizards/TouchButtonCreationWizard.cs
5,751
C#
using System; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using Onion.Application.Exceptions; using Xunit; using FluentAssertions; namespace Onion.Application.Tests.Exceptions { public partial class AccountExceptionTests { ...
32.041667
90
0.59883
[ "MIT" ]
tahq69/Onion
Onion.Application.Tests/Exceptions/AccountExceptionTests.cs
1,540
C#
using System.Collections.ObjectModel; using System.Runtime.Serialization; namespace MyWindowsMediaPlayer.Model { [DataContract] public class Playlist { #region Fields #endregion #region Properties [DataMember] public int Id { get; set; } [DataMember] ...
21.577778
63
0.556128
[ "Apache-2.0" ]
kortescode/My-Windows-Media-Player
MyWindowsMediaPlayer/Model/Playlist.cs
973
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Mim.V3109</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDat...
44.008032
1,358
0.596824
[ "MIT" ]
Kusnaditjung/MimDms
src/Mim.V3109/Generated/UKCT_MT140701UK01InFulfillmentOfTemplateId.cs
10,958
C#
using System; namespace Sfa.Tl.Matching.Domain { public class MergeKeyAttribute : Attribute { //this is a placeholder Attribute used to identify which column to use when comparing two tables for merge } }
25.111111
114
0.721239
[ "MIT" ]
SkillsFundingAgency/tl-matching
src/Sfa.Tl.Matching.Domain/MergeKeyAttribute.cs
228
C#
using System; namespace Gwen.UnitTest { public class UnitTestAttribute : Attribute { public string Category { get; set; } public int Order { get; set; } public string Name { get; set; } public UnitTestAttribute() { Order = Int32.MaxValue; } } }
15.647059
43
0.669173
[ "MIT" ]
Yeyti/Gwen.CS
Gwen.UnitTest/Attributes.cs
268
C#
//------------------------------------------------------------------------------ // <copyright file="LoginViewAdapter.cs" company="Aras Corporation"> // © 2017-2019 Aras Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------------------ namespace Ara...
29.090909
81
0.535938
[ "MIT" ]
FilenkoAndriy/ArasVSMethodPlugin
Aras.VS.MethodPlugin/Dialogs/Views/LoginViewAdapter.cs
643
C#
using MongoDB.Driver; using MongoDB.Driver.Linq; using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace MongoDB.Entities { public partial class Many<TChild> : IEnumerable<TChild> where TChild : IEntity { /// <summary> /// An IQueryabl...
43.810458
194
0.487095
[ "MIT" ]
cuongdo926/MongoDB.Entities
MongoDB.Entities/Relationships/Many.Queryable.cs
6,705
C#
using System; namespace nac.Forms.lib { public class Util { public static bool CanChangeType<T>(object val, out T valConvertedToT) { valConvertedToT = default(T); try { var result = Convert.ChangeType(val, typeof(T)); if (resu...
20.592593
78
0.413669
[ "MIT" ]
Nathan-TheGeek/dotnetCoreAvaloniaNCForms
nac.Forms/lib/Util.cs
558
C#
namespace OrdersApp.Domain.Core { public class OrderDetail { public Order Order { get; set; } public int Quantity { get; set; } public Product Product { get; set; } } }
20.6
44
0.587379
[ "Apache-2.0" ]
acnagrellos/NetCoreDemo
OrdersApp/4.Domain/OrdersApp.Domain.Core/OrderDetail.cs
208
C#
namespace Domain { public class Associado : Usuario { } }
10.142857
36
0.591549
[ "MIT" ]
WillaOnStenci/Arca
backend/ContaMicroservice/Domain/Associado.cs
73
C#
/******************************************************************************* * 类 名 称:SerializationHelper * 命名空间:HOTINST.COMMON.Serialization * 文 件 名:XMLSerializationHelper.cs * 创建时间:2014-10-9 * 作 者:谭玉 * 说 明:XML序列化及反序列化 * 修改时间: * 修改历史: * 2016.5.4 汪锋 添加注释 * 2016.5.25 汪锋 新增对象序列化成XML格...
33.506329
118
0.519078
[ "Apache-2.0" ]
tyeagle/Hotinst
Source/HOTINST.COMMON/HOTINST.COMMON/Serialization/XMLSerializationHelper.cs
5,924
C#
using BepInEx.Configuration; // ReSharper disable ConvertToConstant.Local namespace Pasukaru.DSP.AutoStationConfig { public static class Config { private static readonly string GENERAL_SECTION = "General"; private static readonly string PLS_SECTION = "Planetary Logistics Station"; ...
43.820513
140
0.537741
[ "MIT" ]
Pasukaru/DSP-Mods
AutoStationConfig/Config.cs
8,552
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using React_Demo.Models; namespace React_Demo.Controllers { public class HomeController : Controller { // GET: Home public ActionResult Index() { return View(GetData()...
31.362319
80
0.401571
[ "Unlicense" ]
JustinCoded/ReactJS_TS_MVC
React-Demo-Starter/React-Demo/Controllers/HomeController.cs
2,166
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Response { /// <summary> /// AlipayMarketingCampaignPrizeAmountQueryResponse. /// </summary> public class AlipayMarketingCampaignPrizeAmountQueryResponse : AopResponse { /// <summary> /// 奖品剩余数量,数值 /...
24.111111
79
0.612903
[ "Apache-2.0" ]
554393109/alipay-sdk-net-all
AlipaySDKNet.Standard/Response/AlipayMarketingCampaignPrizeAmountQueryResponse.cs
452
C#
using System; using Kopernicus.ConfigParser.BuiltinTypeParsers; using UnityEngine; using UnityEngine.UI; using static KittopiaTech.UI.Framework.Declaration.DialogGUI; using Object = System.Object; namespace KittopiaTech.UI.ValueEditors { public class NumericCollectionEditor<TNum, TEd> : ValueEditor where TEd : Va...
43.585366
167
0.38892
[ "MIT" ]
Kopernicus/KittopiaTech
src/UI/ValueEditors/NumericCollectionEditor.cs
5,363
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml; using Microsoft.Extensions.Configuration; namespace DevFlexer.RemoteConfigurationService.Client.Parsers { public class XmlConfigurationFileParser : IConfigurationFileParser { private const string Name...
36.071823
132
0.485526
[ "MIT" ]
devflexer/DevFlexer.RemoteConfigurationService
src/DevFlexer.RemoteConfigurationService.Client/Parsers/XmlConfigurationFileParser.cs
6,531
C#
namespace TheTankGame.Core { using System; using System.Collections.Generic; using System.Linq; using Contracts; using IO.Contracts; public class Engine : IEngine { private bool isRunning; private readonly IReader reader; private readonly IWriter writer; pri...
27.636364
124
0.553454
[ "MIT" ]
PETROV442518/SoftUni
TheTankGame/TheTankGame/Core/Engine.cs
1,218
C#
namespace SpellforceDataEditor.special_forms { partial class SaveDataEditorForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. ...
45.871166
160
0.601846
[ "MIT" ]
leszekd25/spellforce_data_editor
SpellforceDataEditor/special forms/SaveDataEditorForm.Designer.cs
7,479
C#
//---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. // All rights reserved. // // This code is licensed under the MIT License. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentat...
52.353862
181
0.615073
[ "MIT" ]
jpda/azure-activedirectory-library-for-dotnet
tests/Test.ADAL.NET.Unit/OboFlowTests.cs
50,157
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.ObjectModel; using System.Speech.Internal; namespace System.Speech.Recognition.SrgsGrammar { [Serializable] internal class SrgsItemList : Collection...
25.782609
71
0.686341
[ "MIT" ]
belav/runtime
src/libraries/System.Speech/src/Recognition/SrgsGrammar/SrgsItemList.cs
593
C#
using System; using System.Collections.Generic; using System.Text; namespace MXGP.Core.Contracts { public interface IEngine { } }
13.090909
33
0.715278
[ "MIT" ]
MrWeRtY/SoftUni-Repo
Exams/MotocrosWorldChampionshipMXGP/MXGP/Core/Contracts/IEngine.cs
146
C#
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using OrchardCore.Admin; using OrchardCore.DisplayManagement.Theming; using OrchardCore.Entities; using OrchardCore.Settings; using OrchardCore.Users.Models; namespace OrchardCore.Users.Services { /// <summary> /// Provides the theme ...
36.184211
124
0.594182
[ "BSD-3-Clause" ]
1051324354/OrchardCore
src/OrchardCore.Modules/OrchardCore.Users/Services/UsersThemeSelector.cs
2,750
C#
/******************************************************************************* * Copyright 2012-2019 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...
44.187726
282
0.606291
[ "Apache-2.0" ]
aws/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/IoTSiteWise/Basic/Update-IOTSWProject-Cmdlet.cs
12,240
C#
using System; using System.Collections.Generic; namespace Demo.EntityFramework.MySql.Models { public partial class OrdersTaxStatus { public OrdersTaxStatus() { Orders = new HashSet<Orders>(); } public sbyte Id { get; set; } public string TaxStatusName { get...
21.157895
63
0.614428
[ "MIT" ]
penCsharpener/Demo.EntityFramework.MySql
EntityFramework/Demo.EntityFramework.MySql/Models/OrdersTaxStatus.cs
404
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; using YamlDotNet.Serialization; namespace KubeClient.Models { /// <summary> /// ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). /// </summary>...
36.228571
149
0.643533
[ "MIT" ]
PhilippCh/dotnet-kube-client
src/KubeClient/Models/generated/ObjectMetricSourceV2Beta1.cs
1,268
C#
using OneOf; using System; using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; namespace AntDesign.Charts { public class FunnelConfig : IFunnelViewConfig, IPlotConfig { [JsonPropertyName("funnelStyle")] public object FunnelStyle { get; set; } [Json...
36.769231
99
0.570179
[ "Apache-2.0" ]
CAPCHIK/ant-design-charts-blazor
src/AntDesign.Charts/Components/Plots/Funnel/FunnelConfig.cs
5,258
C#
// lucene version compatibility level: 4.8.1 using Lucene.Net.Analysis.Cn.Smart.Hhmm; using Lucene.Net.Analysis.TokenAttributes; using System; using System.Collections.Generic; namespace Lucene.Net.Analysis.Cn.Smart { /* * Licensed to the Apache Software Foundation (ASF) under one or more * co...
40.276596
108
0.562951
[ "Apache-2.0" ]
10088/lucenenet
src/Lucene.Net.Analysis.SmartCn/WordTokenFilter.cs
5,541
C#
using System; using FilterPipelineExample.Filters; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; namespace FilterPipelineExample.Controllers { [ApiController] [LogResourceFilter, LogActionFilter, LogAuthorizationFilter, LogResultFilter, LogExceptionFilter, LogAlwaysRunResultFilter] ...
33.391304
127
0.630859
[ "MIT" ]
AnzhelikaKravchuk/asp-dot-net-core-in-action-2e
Chapter13/A_FilterPipelineExample/FilterPipelineExample/Controllers/ValuesController.cs
1,538
C#
namespace MotiNet.Entities { public interface IEntityCodeGenerator<in TEntity> where TEntity : class { string GenerateCode(object manager, TEntity entity); } }
21
60
0.68254
[ "MIT" ]
motix/MotiNet-Entities
src/MotiNet.Extensions.Entities.Core/_CodeGenerators/IEntityCodeGenerator.cs
191
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using StackExchange.Redis; namespace CoreCms.Net.Caching.AutoMate.RedisCache { public class RedisOperationRepository : IRedisOperationRepository { ...
32.25974
110
0.550859
[ "Apache-2.0" ]
XRJ1230663/CoreShop
CoreCms.Net.Caching/AutoMate/RedisCache/RedisOperationRepository.cs
8,022
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Nito.AsyncEx.Synchronous; namespace Nito.AsyncEx { /// <summary> /// An async-compatible producer/consumer queue. /// </summary> /// <typeparam name="T">The type of ele...
48.118457
244
0.627011
[ "MIT" ]
6bee/AsyncEx
src/Nito.AsyncEx.Coordination/AsyncProducerConsumerQueue.cs
17,469
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 ...
31.884058
134
0.695909
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-csb/CSB/Model/V20171118/FindAllLinkRuleRequest.cs
2,200
C#
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated> using System; using System.Collections.Generic; #nullable disable namespace T0002.Models { public partial class VCmdMstRgv { public string CmdSno { get; set; } public int WmsTskId { get;...
38.425532
97
0.569767
[ "MIT" ]
twoutlook/BlazorServerDbContextExample
BlazorServerEFCoreSample/T0002/Models/VCmdMstRgv.cs
1,808
C#
// <copyright file="InputButtonControlTestsEdge.cs" company="Automate The Planet Ltd."> // Copyright 2020 Automate The Planet Ltd. // 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...
37.490741
155
0.678933
[ "Apache-2.0" ]
alexandrejulien/BELLATRIX
tests/Bellatrix.Web.Tests/Controls/Button/InputButtonControlTestsEdge.cs
4,051
C#
namespace WebWarehouse.Services.Data.Warehouses { using System.Collections.Generic; using System.Threading.Tasks; public interface IWarehousesService { Task<IEnumerable<T>> GetAllAsync<T>(int? count = null); } }
22
63
0.702479
[ "MIT" ]
iltodbul/WebWarehouse
Services/WebWarehouse.Services.Data/Warehouses/IWarehousesService.cs
244
C#
/******************************************************* * * 作者:胡庆访 * 创建日期:20170914 * 说明:此文件只包含一个类,具体内容见类型注释。 * 运行环境:.NET 4.0 * 版本号:1.0.0 * * 历史记录: * 创建文件 胡庆访 20170914 14:06 * *******************************************************/ using System; using System.Collections.Generic; using System.Linq; using...
30.423077
116
0.639697
[ "MIT" ]
zgynhqf/trunk
Rafy/Rafy/Utils/Context/CallContextAppContextProvider.cs
1,822
C#
using UnityEngine; using UnityEditor; [InitializeOnLoad] public class HierarchyWindowGroupHeader : Editor { static HierarchyWindowGroupHeader() { EditorApplication.hierarchyWindowItemOnGUI += HierarchyWindowItemOnGUI; } static void HierarchyWindowItemOnGUI(int instanceID, Rect selectionRect) ...
37.105263
106
0.70922
[ "MIT" ]
Howard-Day/DrDoomthorne
Assets/_Scripts/Utils/Editor/HierarchyWindowGroupHeader.cs
707
C#
/*<FILE_LICENSE> * Azos (A to Z Application Operating System) Framework * The A to Z Foundation (a.k.a. Azist) licenses this file to you under the MIT license. * See the LICENSE file in the project root for more information. </FILE_LICENSE>*/ using System; using Azos.Instrumentation; using Azos.Serialization.Arow;...
28.507246
89
0.712761
[ "MIT" ]
JohnPKosh/azos
src/Azos/Log/Instrumentation/Gauges.cs
1,967
C#
using Nethereum.BlockchainProcessing.BlockStorage.Entities.Mapping; using Nethereum.Hex.HexTypes; using Nethereum.Model; using System; using System.Collections.Generic; using System.Text; namespace ProDerivatives.Ethereum { public class BlockInfo { public long BlockNumber { get; private set; } ...
28.75
105
0.668323
[ "Apache-2.0" ]
ProDerivatives/ProDerivatives.Ethereum
src/BlockInfo.cs
807
C#
using System.Collections.Generic; using System.Text; namespace BizHawk.Client.Common { internal partial class Bk2Movie { protected readonly Bk2Header Header = new Bk2Header(); private string _syncSettingsJson = ""; public IDictionary<string, string> HeaderEntries => Header; public SubtitleList...
20.386792
195
0.59602
[ "MIT" ]
RetroEdit/BizHawk
src/BizHawk.Client.Common/movie/bk2/Bk2Movie.HeaderApi.cs
4,324
C#
using Zinnia.Extension; namespace Test.Zinnia.Extension { using NUnit.Framework; using UnityEngine; using Assert = UnityEngine.Assertions.Assert; public class GameObjectExtensionsTest { [Test] public void TryGetComponentValid() { GameObject valid =...
34.845588
105
0.594218
[ "MIT" ]
Borck/Zinnia.Unity
Tests/Editor/Extension/GameObjectExtensionsTest.cs
9,480
C#
using System; using System.Text; namespace Lorem.Test.Framework.Optimizely.CMS.Utility { public static class IpsumGenerator { private static int Seed = 0; public static string GenerateMobilePhoneNumber() { Random random = new Random(Seed++ + DateTime.Now.Second); ...
24.71177
114
0.312219
[ "MIT" ]
Crasnam/episerver-testframework
src/net48/Lorem.Test.Framework.Optimizely.CMS/Utility/IpsumGenerator.cs
26,695
C#
namespace FoodShortage.Models { using Contracts; public class Citizen : Person, IIdentifiable { public Citizen( string name, int age, string id, string birthdate) : base(name, age, birthdate) { this.Id = id; ...
18.72
48
0.470085
[ "MIT" ]
DiyanApostolov/SoftUni-Software-Engineering
C# OOP/Homeworks-And-Labs/03.InterfacesAndAbstraction-Exercise/06.FoodShortage/Models/Citizen.cs
470
C#
using System.ComponentModel.DataAnnotations; namespace Kasp.Identity.Core.Entities.UserEntities.XEntities; public class UserEditModelBase { [MaxLength(100)] public string Name { get; set; } }
24.5
62
0.795918
[ "MIT" ]
mo3in/Kasp
src/Kasp.Identity.Core/Entities/UserEntities/XEntities/UserEditModelBase.cs
196
C#
// Copyright (c) SimpleIdServer. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using System; using System.IO; using System.IO.Compression; using System.Text; namespace SimpleIdServer.Saml.Helpers { public static class Compression ...
33.031746
109
0.551177
[ "Apache-2.0" ]
LaTranche31/SimpleIdServer
src/Saml/SimpleIdServer.Saml/Helpers/Compression.cs
2,083
C#
/* * Copyright 2020 Mikhail Shiryaev * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
33.510417
107
0.609263
[ "Apache-2.0" ]
Arvid-new/scada
ScadaWeb/ScadaWeb/ScadaWebShell/View.aspx.cs
3,421
C#
namespace SpaceInvaders.Models { public class ScoreValueDto { public int PlayerId { get; set; } public int score { get; set; } } }
17.777778
41
0.59375
[ "Unlicense" ]
BjarniPeturFridjonsson/SpaceInvaders
SpaceInvadersDotNet/Models/ScoreValueDto.cs
162
C#
namespace BDInSelfLove.Common { using System; using TimeZoneConverter; public static class TimezoneHelper { public static TimeZoneInfo GetUserWindowsTimezone(string timezone) { if (timezone == null) { return null; } retu...
26.380952
110
0.58213
[ "MIT" ]
ivanBalev/InSelfLove
BDInSelfLove.Common/TimezoneHelper.cs
1,110
C#
 namespace mrHelper.App.Forms { partial class ConfigureNotificationsForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
52.960396
166
0.696298
[ "MIT" ]
denis-adamchuk/mrHelper
src/App/src/Forms/ConfigureNotificationsForm.Designer.cs
10,700
C#
using System; using System.Windows.Forms; using DevOps.ReportsScreen; using GameManagement; using LibCore; namespace DevOps.OpsScreen.SecondaryDisplay { internal partial class SecondaryDisplayForm : Form { public SecondaryDisplayForm(NetworkProgressionGameFile gameFile) { FormBord...
23.517647
74
0.56078
[ "MIT-0" ]
business-sims-toolkit/business-sims-toolkit
dev/products/eboards/DevOps/DevOps/DevOps.OpsScreen/SecondaryDisplay/SecondaryDisplayForm.cs
2,001
C#
using System; using UMapx.Core; namespace UMapx.Distribution { /// <summary> /// Defines the log-logistic distribution. /// <remarks> /// More information can be found on the website: /// https://en.wikipedia.org/wiki/Log-logistic_distribution /// </remarks> /// </summary> [Serializabl...
27.420382
109
0.455285
[ "MIT" ]
UMapx/UMapx
sources/Distribution/LogLogistic.cs
4,307
C#
// <copyright file="AllureReportingSettings.cs" company="Automate The Planet Ltd."> // Copyright 2021 Automate The Planet Ltd. // 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.apa...
38.76
85
0.74613
[ "Apache-2.0" ]
48x16/BELLATRIX
src/Bellatrix.Allure/AllureReportingSettings.cs
971
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class Player : MonoBehaviour, IDropHandler { public Image playerImage = null; public Image mirrorImage = null; public Image healthNumberImage = null; public Image...
21.801724
97
0.584421
[ "MIT" ]
r00tMakesGames/XAMK-Card-Game
Assets/Scripts/Player.cs
2,531
C#
// Copyright (c) 2021 OPEN CASCADE SAS // // This file is part of the examples of the Open CASCADE Technology software 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 wit...
45.444444
90
0.708775
[ "MIT" ]
Open-Cascade-SAS/OCCT-samples-.NET
WinForms/AssemblyInfo.cs
3,601
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...
56.880873
269
0.682971
[ "Apache-2.0" ]
KenHundley/aws-sdk-net
sdk/src/Services/IoTWireless/Generated/_bcl45/AmazonIoTWirelessClient.cs
221,551
C#
using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; using System.Linq; using System.Text; using System.Reflection; using System.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace System.ComponentModel.Composit...
40.304659
132
0.651578
[ "MIT" ]
zhy29563/MyMEF
redist/test/RegistrationModelUnitTest/System/ComponentModel/Composition/PartBuilderUnitTests.cs
11,245
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, this li...
34.540741
131
0.597469
[ "BSD-2-Clause" ]
wdxgy136/xenadmin-yeesan
XenModel/XenAPI-Extensions/VGPU_type.cs
4,665
C#
namespace GW2Api.NET.V2.Items.Dto.ItemTypes.Tool { public record ToolDetails( ToolType Type, int Charges ); }
17.75
50
0.605634
[ "MIT" ]
RyanClementsHax/GW2Api.NET
GW2Api.NET/V2/Items/Dto/ItemTypes/Tool/ToolDetails.cs
144
C#
using MTools.Identifier; using System.Collections.Generic; using System.Diagnostics; namespace MTools.Trigger { public interface ITriggerEvent { } }
14.818182
34
0.748466
[ "MIT" ]
Swipeu/memma-tools
Assets/Plugins/MTools/Trigger/ITriggerEvent.cs
165
C#
using System.Threading.Tasks; using GovUk.Education.ExploreEducationStatistics.Admin.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace GovUk.Education.ExploreEdu...
29.02381
101
0.646432
[ "MIT" ]
benoutram/explore-education-statistics
src/GovUk.Education.ExploreEducationStatistics.Admin/Areas/Identity/Pages/Account/Logout.cshtml.cs
1,219
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using IdentityCustomization.Models; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace IdentityCustomization.Areas...
35.90625
156
0.632724
[ "MIT" ]
235u/proposals
IdentityCustomization/IdentityCustomization/Areas/Identity/Pages/Account/Manage/Disable2fa.cshtml.cs
2,300
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NMR { public class SignalDisplayView : View { } }
13.333333
41
0.7125
[ "MIT" ]
boba761/Amos_config
Src/Amos/Views/SignalDisplayView.cs
162
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Compute.Models { public partial class SourceVault : IUtf8JsonSerializable { void IUtf8JsonS...
26.195122
79
0.557728
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SourceVault.Serialization.cs
1,074
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using RuralAPI.Models; using RuralAPI.Services; namespace RuralAPI.Controllers { [Route("api/[controller]")] [A...
24.864407
70
0.593729
[ "MIT" ]
e310905-Saimia/rural-api
RuralAPI/RuralAPI/Controllers/PersonController.cs
1,469
C#
// http://careercup.com/question?id=4816567298686976 // // (Careercup really needs to step up their copy-paste game) // // Given a prime set, we call "prime expressible" if a number can be factorized only using given prime numbers. // Find n-th big expressible number. // // Example: // Set = { 2, 3 } // // Expressible...
25.933333
111
0.523565
[ "MIT" ]
Gerula/interviews
CareerCup/Google/prime_expressible.cs
1,167
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.135135
85
0.729293
[ "MIT" ]
head-first-csharp/second-edition
Chapter 8/p365 - Retired Jersey Numbers/p365 - Retired Jersey Numbers/Properties/AssemblyInfo.cs
1,488
C#
using Newtonsoft.Json; namespace LDtkUnity { /// <summary> /// This complex section isn't meant to be used by game devs at all, as these rules are /// completely resolved internally by the editor before any saving. You should just ignore /// this part. /// </summary> public partial class AutoL...
31.129032
102
0.541192
[ "MIT" ]
tuanminh3395/LDtkUnity
Assets/LDtkUnity/Runtime/Data/Schema/Definition/AutoLayerRuleDefinition.cs
3,862
C#
using System; using System.Globalization; using System.Linq; using System.Reflection; using System.Web.Http.Controllers; using System.Web.Http.Description; using System.Xml.XPath; using DemoSimpleApi.Areas.HelpPage.ModelDescriptions; namespace DemoSimpleApi.Areas.HelpPage { /// <summary> /// A custom <see cref...
43.395062
160
0.632717
[ "MIT" ]
horseracer/cross-platform-with-cloud
DemoBackend/DemoSimpleApi/Areas/HelpPage/XmlDocumentationProvider.cs
7,030
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from include/vulkan/vulkan_core.h in the KhronosGroup/Vulkan-Headers repository for tag v1.2.198 // Original source is Copyright © 2015-2021 The Khronos Group Inc....
36.4375
145
0.746141
[ "MIT" ]
tannergooding/terrafx.interop.vulkan
sources/Interop/Vulkan/Vulkan/vulkan/vulkan_core/VkImageTiling.cs
585
C#
// // Authors: // Marek Habersack <grendel@twistedcode.net> // // Copyright (C) 2011 Novell, Inc (http://novell.com) // // // 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 restri...
35.315789
73
0.753353
[ "Apache-2.0" ]
121468615/mono
mcs/class/System.Web/System.Web.Configuration_2.0/CustomErrorsRedirectMode.cs
1,342
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...
41.486486
120
0.619218
[ "MIT" ]
3quanfeng/azure-powershell
src/Automation/Automation.Test/UnitTests/NewAzureAutomationWebhookTest.cs
2,999
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Figuras_Geometricas { abstract class Triangulo : Figura { //Atributos de la clase private double altura; public double Altura { get; set; } p...
17.153846
50
0.539611
[ "Apache-2.0" ]
Daniel-Soto2001/POO
UNIDAD 4/Figuras Geometricas/Triangulo.cs
671
C#
using System; class CpuInfo { public static void Main(string[] args) { /* Retrieve information about processor architecture */ Yeppp.CpuArchitecture architecture = Yeppp.Library.GetCpuArchitecture(); Console.WriteLine("Architecture: {0}", architecture.Description); /* Retrieve information about pro...
46.956522
149
0.711111
[ "BSD-3-Clause" ]
rguthrie3/Yeppp-Mirror
examples/csharp/sources/CpuInfo.cs
2,160
C#
/* Copyright (c) 2019 Reakain & Bandit Bots LLC 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, publish,...
31.361111
78
0.656333
[ "MIT" ]
reakain/Broom-Racing
Broom-Racing/Assets/Broom-Racing/Scripts/InputContainer.cs
2,260
C#
 #if !NET35 && NETFRAMEWORK using System; using System.Diagnostics; using System.Threading; using Eneter.Messaging.Diagnostic; namespace Eneter.Messaging.MessagingSystems.SharedMemoryMessagingSystem { internal class EventWaitHandleExt { // Note: if openTimeout <= 0 then infinite loop tr...
31.155172
98
0.428888
[ "MIT" ]
ng-eneter/eneter-net
EneterMessaging/EneterMessagingFramework/MessagingSystems/SharedMemoryMessagingSystem/EventWaitHandleExt.cs
1,809
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("TygaSoft.MsmqMessaging")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("TygaSoft")] [a...
26.297297
56
0.720452
[ "MIT" ]
qq283335746/MyContentSystem
src/TygaSoft/MsmqMessaging/Properties/AssemblyInfo.cs
1,324
C#
namespace Orchard.Security { public static class MembershipSettingsExtensions { public static int GetMinimumPasswordLength(this IMembershipSettings membershipSettings) { return membershipSettings.EnableCustomPasswordPolicy ? membershipSettings.MinimumPasswordLength : 7; } public...
69.64
129
0.781735
[ "BSD-3-Clause" ]
OrchardCMS/orchard
src/Orchard.Web/Modules/Orchard.Users/Extensions/MembershipSettingsExtensions.cs
1,743
C#
using Mimp.SeeSharper.DependencyInjection.Abstraction; namespace Mimp.SeeSharper.DependencyInjection { public class EmptyDependencyProvider : IDependencyProvider { public IDependency? Provide(IDependencyContext context) => null; } }
18.5
72
0.760618
[ "MIT" ]
DavenaHack/SeeSharper.DependencyInjection
src/Mimp.SeeSharper.DependencyInjection/EmptyDependencyProvider.cs
261
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 Silk.NET.Core.Attributes; #pragma warning disable 1591 namespace Silk.NET.OpenGLES { [NativeName("Name", "PointParameterNameSGIS")] public enum PointPa...
38.816327
71
0.680862
[ "MIT" ]
Ar37-rs/Silk.NET
src/OpenGL/Silk.NET.OpenGLES/Enums/PointParameterNameSGIS.gen.cs
1,902
C#
using System.Collections.Generic; using StockportContentApi.ContentfulModels; using StockportContentApiTests.Unit.Builders; namespace StockportContentApiTests.Builders { public class ContentfulStartPageBuilder { private string _title { get; set; } = "Start Page"; private string _slug { get; set...
32.671642
86
0.56053
[ "MIT" ]
smbc-digital/iag-contentapi
test/StockportContentApiTests/Unit/Builders/ContentfulStartPageBuilder.cs
2,189
C#
// Uncomment the following to provide samples for PageResult<T>. Must also add the Microsoft.AspNet.WebApi.OData // package to your project. ////#define Handle_PageResultOfT using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using ...
57.60177
149
0.666462
[ "Apache-2.0" ]
jkruza/DevOpsDashboard
DevOpsDashboard.Web/Areas/HelpPage/App_Start/HelpPageConfig.cs
6,509
C#
using System; using UnityEngine; [Serializable] public class VCollisionCylinderSector : VCollisionShape { [HideInInspector, SerializeField] private VInt3 localPos = VInt3.zero; [HideInInspector, SerializeField] private int radius = 500; [HideInInspector, SerializeField] private int degree = 90; [HideInInspec...
22.523438
185
0.682449
[ "MIT" ]
lim1992/ET
Unity/Assets/Scripts/Base/Physics/VCollisionCylinderSector.cs
5,766
C#
// This code is distributed under MIT license. // Copyright (c) 2015 George Mamaladze // See license.txt or https://mit-license.org/ using System; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.InteropServices; using WindowsInput.Native; namespace WindowsInput.Events.Sources { ...
32.623656
177
0.591958
[ "MIT" ]
AlexCSDev/WindowsInput
WindowsInput/EventsSources/HookEventSource.cs
3,034
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Dental.Entities.Interface { public interface IEntity { } }
14.285714
35
0.745
[ "MIT" ]
hkmky/DentalProject
Back-End/Dental.Entities/Interface/IEntity.cs
202
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...
29.362069
106
0.661186
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/DataSync/Generated/Model/CreateLocationS3Response.cs
1,703
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace WizBot.Migrations { public partial class unbantimerreset : Migration { protected override void Up(MigrationBuilder migrationBuilder) { // I have to remove everything as it has been piling up for a year. migrationB...
24.842105
79
0.658898
[ "MIT" ]
fossabot/WizBot
WizBot.Core/Migrations/20181102094215_unban-timer-reset.cs
472
C#
// Copyright (c) 2017 Gwaredd Mountain, https://opensource.org/licenses/MIT #if !UNIUM_DISABLE && ( DEVELOPMENT_BUILD || UNITY_EDITOR || UNIUM_ENABLE ) using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace gw.gql { ////////////////////////////////////////...
39.624113
153
0.410954
[ "MIT" ]
DragonBox/unium
Assets/Unium/GQL/Query/ActionInvoke.cs
5,589
C#