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; using System.Collections.Generic; using UnityEngine; public class ClearColorSweet : ClearedSweet { private ColorSweet.ColorType clearColor; public ColorSweet.ColorType ClearColor { get { return clearColor; } set { ...
17.035714
49
0.589099
[ "MIT" ]
IlchKhailtuud/GAME3011_A3_YiliqiXu
Assets/Scripts/ClearColorSweet.cs
479
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using Cake.Core.IO; namespace Cake.Core.Tooling { /// <summary...
42.40708
145
0.567821
[ "MIT" ]
Acidburn0zzz/cake
src/Cake.Core/Tooling/ToolSettings.cs
4,794
C#
using UnityEngine; using System; using System.Text; using System.IO; using System.Collections; using System.Diagnostics; using UnityEngine.SceneManagement; using UnityEditor; public class AutoForward_City : MonoBehaviour { Rigidbody m_Rigidbody; float AutoMoveSpeed = 1f; public static float m_dista...
27.932371
226
0.68862
[ "MIT" ]
RealBrandonChen/VisualDisabilitySim
AutoForward_City.cs
36,761
C#
namespace NumberChecker { using System; public class StartUp { public static void Main() { try { int m = Int32.Parse(Console.ReadLine()); Console.WriteLine("It is a number."); } catch (FormatException e) ...
19.5
56
0.41958
[ "MIT" ]
VeselinBPavlov/programming-fundamentals
03. C# Conditional Statements and Loops - Lab/NumberChecker/StartUp.cs
431
C#
using Aino.Agents.Core; using Aino.Agents.Core.Config; using NUnit.Framework; namespace AinoTests { [TestFixture] class TransactionDataBufferTest { private AgentConfig config; [OneTimeSetUp] public void SetUp() { config = new AgentConfig(); config.G...
34.732394
89
0.64193
[ "Apache-2.0" ]
Aino-io/aino-io-agent-net
AinoTests/TransactionDataBufferTest.cs
2,468
C#
namespace DragonsUwU.Database.Models { class DragonTag { public int DragonId { get; set; } public Dragon Dragon { get; set; } public int TagId { get; set; } public Tag Tag { get; set; } } }
19.583333
42
0.561702
[ "MIT" ]
ScuroGuardiano/DragonUwU
src/DragonsUwU.Database/Models/DragonTag.cs
235
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using System.Diagnostics; using ThridWolrdShooterGame.Managers; namespace ThridWolrdShooterGame.Entites.Enemies { public class Worm:Entity { private Enemy[] components = new ...
30.515152
88
0.463754
[ "MIT" ]
AlanSosa/Infinite-pew-pew-PC-Version
Infinite pew pew 60fps/Infinite pew pew 60fps/Game/Entites/Enemies/Worm.cs
2,014
C#
#region [ License information ] /* ************************************************************ * * @author Couchbase <info@couchbase.com> * @copyright 2021 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
33.297297
78
0.612419
[ "Apache-2.0" ]
endercode99/Akka.Persistence.Couchbase
src/Akka.Persistence.Couchbase/CouchbaseSettings.cs
2,466
C#
/* http://www.cgsoso.com/forum-211-1.html CG搜搜 Unity3d 每日Unity3d插件免费更新 更有VIP资源! CGSOSO 主打游戏开发,影视设计等CG资源素材。 插件如若商用,请务必官网购买! daily assets update for try. U should buy the asset from home store if u use it in your project! */ #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) using System; names...
23.666667
108
0.765685
[ "MIT" ]
zhoumingliang/test-git-subtree
Assets/RotateMe/Scripts/Best HTTP (Pro)/BestHTTP/SecureProtocol/security/cert/CertificateNotYetValidException.cs
875
C#
// Copyright (C) 2003-2010 Xtensive LLC. // All rights reserved. // For conditions of distribution and use, see license. // Created by: Alex Yakunin // Created: 2009.03.23 using System; using System.Collections.Generic; using System.Text; using Xtensive.Collections; using Xtensive.Core; using Xtensive.Reflection; ...
26
90
0.626219
[ "MIT" ]
NekrasovSt/dataobjects-net
Orm/Xtensive.Orm/Modelling/Actions/NodeAction.cs
3,692
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. #if FEATURE_COMPILE using System.Collections.Generic; using System.Reflection; using System.Runtime.CompilerServic...
37.244831
281
0.470755
[ "MIT" ]
hgGeorg/corefx
src/System.Linq.Expressions/tests/StackSpillerTests.cs
34,230
C#
using Apstory.ApstoryTsqlCodeGen.Shared.Repositories; using Apstory.ApstoryTsqlCodeGen.Shared.Models; using Apstory.ApstoryTsqlCodeGen.Shared.Repositories; using Microsoft.Extensions.CommandLineUtils; using System; using System.IO; using System.Linq; using System.Text; namespace Apstory.ApstoryTsqlCodeGen.DapperGener...
43.50495
136
0.533227
[ "MIT" ]
apstory/apstory-tsql-code-gen
Apstory.ApstoryTsqlCodeGen.DapperGenerator/Program.cs
4,396
C#
using System.Collections; namespace Word2Vec.Util { public class DictionaryEnumerator<TKey, TValue> : IDictionaryEnumerator, IDisposable { readonly IEnumerator<KeyValuePair<TKey, TValue>> _impl; public void Dispose() { _impl.Dispose(); } public DictionaryEnumerator(IDictionary<TKey, TVa...
32.392857
88
0.585447
[ "MIT" ]
ButterscotchV/Word2Vec.Net
Word2Vec/Util/DictionaryEnumerator.cs
907
C#
using BitSharp.Common; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.IO; using System.Linq; namespace BitSharp.Node.Domain { public class AddressPayload { public readonly ImmutableArray<NetworkAddressWithTime> Net...
26.448276
100
0.658409
[ "Unlicense" ]
dthorpe/BitSharp
BitSharp.Node/Domain/AddressPayload.cs
769
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using Microsoft.MixedReality.Toolkit.Input; using Microsoft.MixedReality.Toolkit.Utilities; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.OpenVR.Input...
80.264706
217
0.762917
[ "MIT" ]
Icbyone/MRDL_Unity_Surfaces
Assets/MixedRealityToolkit.Providers/OpenVR/WindowsMixedRealityOpenVRMotionController.cs
5,460
C#
using System; using NUnit.Framework; namespace DryIoc.IssuesTests { [TestFixture] public class Issue178_FallbackContainerDisposesInstanceRegisteredInParent { [Test] public void Test_WithPreventDisposal() { var container = new Container(); var a = new A(); ...
24.833333
112
0.510515
[ "MIT" ]
0000duck/DryIoc
test/DryIoc.IssuesTests/Issue178_FallbackContainerDisposesInstanceRegisteredInParent.cs
2,235
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Allgemeine Informationen über eine Assembly werden über die folgenden // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // die mit einer Assembly verknüpft sind. [assembly: A...
41.891892
106
0.76129
[ "MIT" ]
DominikPalo/NetOffice
Examples/Access/C#/Standard Examples/AccessExamples/Properties/AssemblyInfo.cs
1,568
C#
namespace Bearded.Utilities { public sealed class Box<T> where T : struct { public T Value { get; } public Box(T value) { Value = value; } } }
15.384615
47
0.49
[ "MIT" ]
MaurizioPz/utilities
Bearded.Utilities/Core/Box.cs
200
C#
using System.Text; namespace test { public class Test { public static int Main() { StringBuilder b = new StringBuilder(); /*b.Append ('A'); b.Append ('b'); b.Append ('r');*/ b.Append("Abr"); if (b.ToString() != "Abr") { ...
22.8
65
0.399123
[ "MIT" ]
belav/runtime
src/mono/mono/tests/stringbuilder.cs
684
C#
// Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT // 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...
37.560284
138
0.671828
[ "Apache-2.0" ]
Giovanni-Russo-Boscoli/NakedObjectsFramework
Core/NakedObjects.ParallelReflector.Test/FacetFactory/NotNavigableAnnotationFacetFactoryTest.cs
5,296
C#
namespace GoogleMapsServices.Client; [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public partial class TimeZoneResponse { /// <summary>The offset for daylight-savings time in seconds. This will be zero if the time zone is not in Daylight Savings Time during the s...
71.195122
463
0.762933
[ "MIT" ]
Jonathan-Hickey/GoogleMapsServices
src/GoogleMapsServices.Client/TimeZoneResponse.cs
2,921
C#
using Diadoc.Api.Http; using Diadoc.Api.Proto.Events; using Diadoc.Api.Proto.Invoicing; namespace Diadoc.Api { public partial class DiadocHttpApi { public GeneratedFile GenerateUniversalTransferDocumentXmlForSeller( string authToken, UniversalTransferDocumentSellerTitleInfo info, bool disableValidation =...
45.085714
161
0.82256
[ "MIT" ]
kostghost/diadocsdk-csharp
src/DiadocHttpApi.UniversalTransferDocument.cs
3,158
C#
/* The MIT License (MIT) Copyright (c) 2016 Roaring Fangs Entertainment 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,...
31.948276
79
0.711819
[ "MIT" ]
Tarocco/roaring-fangs-unity
Source/RoaringFangs/Motion/BouncyFollower.cs
1,855
C#
using System.IO; using NiDump; namespace SMPEditor { public static class NifFileEx { public static string GetNiNodeName(this NiHeader hdr,int id) { try { int typeIndex = hdr.GetBlockTypeIdxByName("NiNode"); } catch (System.Except...
23.76
68
0.491582
[ "MIT" ]
Yu5h1/Skyrim-SMPdocEditor
SMPEditor/SMPEditor/NifFileEx.cs
596
C#
namespace MassTransit.RabbitMqTransport.Tests { using System; using System.Threading.Tasks; using NUnit.Framework; using ObserverableMessages; namespace ObserverableMessages { class SomethingHappened { public string Caption { get; set; } } ...
25.41791
116
0.574281
[ "ECL-2.0", "Apache-2.0" ]
Aerodynamite/MassTrans
tests/MassTransit.RabbitMqTransport.Tests/Observer_Specs.cs
1,705
C#
using MagicalLifeAPI.Networking.Client; using MagicalLifeGUIWindows.GUI.Reusable; using Microsoft.Xna.Framework; using MonoGame.Extended.Input.InputListeners; namespace MagicalLifeGUIWindows.GUI.MainMenu.Buttons { public class NewGameButton : MonoButton { public NewGameButton() : base("MenuButton", Ge...
29.410256
142
0.646905
[ "MIT" ]
Batarian711/MagicalLife
MagicalLifeGUIWindows/GUI/MainMenu/Buttons/NewGameButton.cs
1,149
C#
using Lidgren.Network; using LmpCommon.Enums; using LmpCommon.Message.Types; namespace LmpCommon.Message.Data.Admin { public class AdminReplyMsgData : AdminBaseMsgData { /// <inheritdoc /> internal AdminReplyMsgData() { } public override AdminMessageType AdminMessageType => AdminMessag...
29.970588
84
0.667321
[ "MIT" ]
211network/LunaMultiplayer
LmpCommon/Message/Data/Admin/AdminResponseMsgData.cs
1,021
C#
using MySqlConnector; using RepoDb.Interfaces; using System.Data; namespace RepoDb.Resolvers { /// <summary> /// A class used to resolve the <see cref="DbType"/> into its equivalent database string name. /// </summary> public class MySqlConnectorDbTypeToMySqlStringNameResolver : IResolver<MySqlDbType,...
42.08
113
0.557747
[ "Apache-2.0" ]
aTiKhan/RepoDb
RepoDb.MySqlConnector/RepoDb.MySqlConnector/Resolvers/MySqlConnectorDbTypeToMySqlStringNameResolver.cs
4,210
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...
34.527473
237
0.594526
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/hybridcompute/Microsoft.Azure.Management.HybridCompute/src/Generated/Models/MachineExtensionInstanceViewStatus.cs
3,142
C#
using StackExchange.Redis; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RedisBlue.Models { internal class ExpressionContext { public ExpressionContext(IDatabaseAsync db, string collectionName, string partitionKey, TypeCac...
29.642857
149
0.663855
[ "MIT" ]
danielgerlag/redisblue
RedisBlue/Models/ExpressionContext.cs
832
C#
using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Options; using System.Linq; using TrafficComet.Core.Configs; namespace TrafficComet.Core.Extensions { public static class OptionsExtensions { public static bool IgnoreRequest<TMiddlewareConfig>(this IOptionsSnapshot<TMiddlewareConfig> optionsSnapshot,...
32.972222
135
0.587195
[ "Apache-2.0" ]
maciur/TrafficComet
TrafficComet.Core/Extensions/OptionsExtensions.cs
1,189
C#
using Microsoft.AspNetCore.Mvc.Rendering; namespace Ding.Ui.Services { /// <summary> /// 组件服务 /// </summary> public class UiServiceBase<TModel> : IContext<TModel> { /// <summary> /// 初始化组件服务 /// </summary> /// <param name="helper">HtmlHelper</param> public UiSer...
24
60
0.534091
[ "MIT" ]
EnhWeb/DC.Framework
src/Ding.Ui.Core/Services/UiServiceBase.cs
552
C#
using System.ComponentModel.DataAnnotations; using DynamicVML; namespace Tests { public class NestedRoot { public int Id { get; set; } public string SomePropertyR { get; set; } public virtual DynamicList<NestedA> Children { get; set; } public NestedRoot(int nA, int nB, int ...
27.046875
96
0.456384
[ "MIT" ]
cesarsouza/dvml
tests/ViewModels/NestedRoot.cs
1,733
C#
using System; namespace R5T.D0116.X001 { /// <summary> /// Recommended extensions. /// </summary> public static class Documentation { } }
13.583333
37
0.595092
[ "MIT" ]
SafetyCone/R5T.D0116
source/R5T.D0116.X001/Code/Documentation.cs
163
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.IO; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Host; using Microsoft.Cod...
37.556818
174
0.616339
[ "MIT" ]
douglasg14b/roslyn
src/VisualStudio/CSharp/Test/PersistentStorage/SQLitePersistentStorageTests.cs
3,307
C#
using Shared.Core.Dtos; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Shared.Core.Services { public interface ICheckedListReaderService<T> where T : CheckedDto { List<T> ReadCheckedDto(Guid id); } }
20.066667
70
0.740864
[ "Apache-2.0" ]
MurielSoftware/MyArt
Shared.Core/Services/ICheckedListReaderService.cs
303
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace P01_HospitalDatabase.Data.Models { public class Doctor { [Key] public int DoctorId { get; set; } [Required] [MaxLength(100)] public string Name { get; set; } [Required] ...
21.045455
64
0.613391
[ "MIT" ]
nikistoianov/CSharp-DB-Fundamentals-Homeworks
Database Advanced - Entity Framework/04.CodeFirst/P01_HospitalDatabase/Data/Models/Doctor.cs
465
C#
namespace ClearHl7.Codes.V282 { /// <summary> /// HL7 Version 2 Table 0396 - Coding System. /// </summary> /// <remarks>https://www.hl7.org/fhir/v2/0396</remarks> public enum CodeCodingSystem { /// <summary> /// 99zzz - Local general code where z is an alphanumeric character. ...
27.335828
278
0.481144
[ "MIT" ]
davebronson/clear-hl7-net
src/ClearHl7.Codes/V282/CodeCodingSystem.cs
29,224
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace AlibabaCloud.SDK.ROS.CDK.Cloudfw { #pragma warning disable CS8618 /// <summary>Properties for defining a `ALIYUN::CLOUDFW::ControlPolicy`.</summary> [JsiiByValue(fqn: "@alicloud/ros-cdk-cloudfw.RosControlPolicyProps"...
45.837838
204
0.583137
[ "Apache-2.0" ]
aliyun/Resource-Orchestration-Service-Cloud-Development-K
multiple-languages/dotnet/AlibabaCloud.SDK.ROS.CDK.Cloudfw/AlibabaCloud/SDK/ROS/CDK/Cloudfw/RosControlPolicyProps.cs
8,480
C#
using Domain.Entities; using MediatR; using ProjectManagement.Core.Base.Mappings; namespace ProjectManagement.Core.UseCases.ProjectAssignments.Commands.UpdateProjectAssignment { public class UpdateProjectAssignmentCommand : IRequest, IMapFrom<ProjectAssignment> { public int UserId { get; set; } ...
33.368421
93
0.692429
[ "MIT" ]
GoToWinThat/ProjectManagementApi
ProjectManagement/ProjectManagement.Core/UseCases/ProjectAssignments/Commands/UpdateProjectAssignment/UpdateProjectAssignmentCommand.cs
636
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
34.741935
151
0.585887
[ "MIT" ]
makcimbx/NovelAutoParseAndTranslate
Novel Google Translate/Properties/Settings.Designer.cs
1,079
C#
using Newtonsoft.Json.Bson; using System; using System.Collections.Concurrent; #if DEBUG_LIMITS using System.Diagnostics; #endif using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Discord.Net.Queue { internal class RequestQueue : IDisposable, IAsyncDisposable { ...
41.115207
136
0.602555
[ "MIT" ]
Misha-133/Discord.Net
src/Discord.Net.Rest/Net/Queue/RequestQueue.cs
8,922
C#
namespace SkylineBatch { partial class DataServerForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary...
47.647059
147
0.60727
[ "Apache-2.0" ]
CSi-Studio/pwiz
pwiz_tools/Skyline/Executables/SkylineBatch/SkylineBatch/DataServerForm.Designer.cs
7,292
C#
// ************************************************************* // project: graphql-aspnet // -- // repo: https://github.com/graphql-aspnet // docs: https://graphql-aspnet.github.io // -- // License: MIT // ************************************************************* namespace GraphQL.AspNet.Tests.Middleware { ...
35.423729
98
0.622967
[ "MIT" ]
NET1211/aspnet-archive-tools
src/tests/graphql-aspnet-tests/Middleware/QueryPipelineComponentTests.cs
2,092
C#
namespace AGS.Types { partial class StringListUIEditorControl { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary>...
36.265625
111
0.582077
[ "Artistic-2.0" ]
AlanDrake/ags
Editor/AGS.Types/PropertyGridExtras/StringListUIEditorControl.Designer.cs
2,323
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
38.120773
170
0.541123
[ "MIT" ]
4yn/Ched
Ched/Properties/Resources.Designer.cs
15,784
C#
using Crash; using System.Windows.Forms; namespace CrashEdit { public sealed class OldSLSTSourceBox : UserControl { private ListBox lstValues; public OldSLSTSourceBox(OldSLSTSource slstitem) { lstValues = new ListBox { Dock = DockStyle.Fill ...
28
99
0.568681
[ "MIT", "BSD-3-Clause" ]
AraHaan/CrashEd
CrashEdit/Controls/OldSLSTSourceBox.cs
728
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
32.021505
83
0.594023
[ "Apache-2.0" ]
Darkfaker/tencentcloud-sdk-dotnet
TencentCloud/Soe/V20180724/Models/WordRsp.cs
3,312
C#
namespace iRacing.Enums { public enum ReplaySearchModeTypes { ToStart = 0, ToEnd, PreviousSession, NextSession, PreviousLap, NextLap, PreviousFrame, NextFrame, PreviousIncident, NextIncident } }
17.588235
38
0.531773
[ "MIT" ]
byBlurr/IR.NET
src/irsdkSharp/Enums/ReplaySearchModeTypes.cs
301
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. // </auto-generated> namespace Microsoft.Azure.Management.EventHub.Fluent { ...
46.632687
416
0.560114
[ "MIT" ]
graemefoster/azure-libraries-for-net
src/ResourceManagement/EventHub/Generated/NamespacesOperations.cs
166,059
C#
// Copyright 2004-2021 Castle Project - http://www.castleproject.org/ // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
36.460177
99
0.42767
[ "Apache-2.0" ]
belav/Core
src/Castle.Core/Components.DictionaryAdapter/Attributes/OnDemandAttribute.cs
8,240
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.Immutable; using System.Data.Entity; using System.Data.Entity.Core.Mapping; using System.Data.Entity.Core.Metadata.Edm; using System.Data.Entity.Infrastructure; using System.Linq; namespace Abp.EntityFramework...
43.824561
161
0.622898
[ "MIT" ]
12321/aspnetboilerplate
src/Abp.EntityFramework/EntityFramework/DbContextHelper.cs
2,498
C#
using System; namespace Hertzole.CecilAttributes { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] public sealed class MarkInProfilerAttribute : Attribute { } }
25.875
87
0.772947
[ "MIT" ]
Hertzole/cecil-attributes
Runtime/Attributes/MarkInProfilerAttribute.cs
209
C#
using HarmonyLib; using System; namespace ArenaOverhaul.Helpers { internal static class HarmonyHelper { public static bool PatchAll(ref Harmony? harmonyInstance, string sectionName, string logMessage, string chatMessage = "") { try { if (harmonyInstance...
27.64
129
0.549928
[ "MIT" ]
Aragas/Bannerlord.ArenaOverhaul
src/ArenaOverhaul/Helpers/HarmonyHelper.cs
693
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace VsxFactory.Modeling.VisualStudio.Synchronization { public sealed class ProjectEventsDisabler : IDisposable { private bool _disposing; private readonly IVsSolutionExplorer _solutionManager; ...
31.62963
116
0.620609
[ "MIT" ]
t4generators/t4-SolutionManager
src/VisualStudio.ParsingSolution/Hierarchies/Synchronization/ProjectEventsDisabler.cs
1,710
C#
// <auto-generated /> namespace LearnWord.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")] public sealed partial class Upd...
28.333333
106
0.635294
[ "MIT" ]
xChivalrouSx/LearnWord
LearnWord/Migrations/201902170034318_UpdateUserIdOnWordModel.Designer.cs
850
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 "li...
32.890909
107
0.681592
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Pinpoint/Generated/Model/CreateEmailTemplateResponse.cs
1,809
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace ResidentsSocialCarePlatformApi.V1.Infrastructure.Migrations { public partial class AddVisitsTable : Migration { protected override void Up(MigrationBuilder migrationBuilder) ...
57.12766
127
0.60149
[ "MIT" ]
LBHackney-IT/residents-social-care-platform-api
ResidentsSocialCarePlatformApi/V1/Infrastructure/Migrations/20210325141726_AddVisitsTable.cs
2,685
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using SharpDX; namespace SpaceSimulator.Common.Models { /// <summary> /// The vertex format used by the geometry /// </summary> [StructLayout(LayoutKind.Sequent...
34.507273
129
0.607566
[ "MIT" ]
svenslaggare/SpaceSimulator.NET
SpaceSimulator.Common/Models/GeometryGenerator.cs
18,981
C#
using BookstoreSystem.Data.API; namespace BookstoreSystem.Data { internal class EventReturn : IEvent { private IState state; private ICustomer customer; private DateTime eventDate; public EventReturn(IState _state, ICustomer _client) { this.state = _state; ...
26.73913
68
0.614634
[ "MIT" ]
ArtJSON/PT
BookstoreSystem/Data/EventReturn.cs
617
C#
using System; using System.Collections.Generic; using MenuPlanner.Common.Popups.Models; namespace MenuPlanner.Common.Popups.Managers { public interface IPopupManager { IEnumerable<Popup> Popups { get; } Popup CurrentPopup { get; } event EventHandler<Popup> PopupChanged; IPop...
23.818182
86
0.711832
[ "MIT" ]
TomCortinovis/MenuPlanner
MenuPlanner.Common/Popups/Managers/IPopupManager.cs
526
C#
namespace ImageContestSystem.Web { using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; using Infrastructure.Mapping; public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { AutoMapperConfig.Execute()...
29.1
70
0.675258
[ "MIT" ]
TeamHOOPRINGHA/ImageContestSystem
Source/Web/ImageContestSystem.Web/Global.asax.cs
584
C#
namespace BingoGameCore4.Forms { partial class SessionBrowser { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if ...
39.637795
158
0.705205
[ "MIT" ]
d3x0r/xperdex
OpenSkiePOS/bingo_odds/BingoGameCore4/Forms/SessionBrowser.Designer.cs
5,034
C#
namespace EltradeProtocol.Requests { public enum DiscountType { Absolute, Relative } }
12.888889
35
0.603448
[ "Apache-2.0" ]
MahametH/eltrade-fiscal-device-protocol
EltradeProtocol/EltradeProtocol/Requests/DiscountType.cs
118
C#
using System; using System.Threading; using System.Windows.Threading; using Squiggle.UI.Helpers; using Squiggle.Utilities; using Squiggle.Utilities.Threading; using Squiggle.Plugins; using System.Threading.Tasks; namespace Squiggle.UI.Components { class NetworkSignout: IDisposable { bool autoSignout; ...
29.838235
136
0.604731
[ "MIT" ]
Angellomix/Squiggle
Squiggle.UI/Components/NetworkSignout.cs
2,031
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data.SqlClient; using System.Drawing.Printing; using bv.model.BLToolkit; using DevExpress.XtraPrinting; using DevExpress.XtraReports.UI; using eidss.model.Reports; using eidss.model.Reports.AZ; using EIDSS.Reports.BaseC...
42.851301
121
0.583239
[ "BSD-2-Clause" ]
EIDSS/EIDSS-Legacy
EIDSS v6.1/vb/EIDSS/EIDSS.Reports/Parameterized/Human/AJ/Reports/VetSummaryReport.cs
11,529
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace MVCServer { public class WebApiApplication : System.Web.HttpApplication { protected voi...
31.285714
124
0.722603
[ "Apache-2.0" ]
Bigsby/PoC
Web/Certifying/Tests/MVCServer/Global.asax.cs
878
C#
using MoreMountains.Tools; using UnityEngine; using TMPro; using System.Collections; namespace MoreMountains.Feedbacks { /// <summary> /// This feedback lets you control the color of a target TMP's outline over time /// </summary> [AddComponentMenu("")] [FeedbackHelp("This feedback lets you contro...
42.506024
175
0.585034
[ "MIT" ]
DuLovell/Battle-Simulator
Assets/Imported Assets/Feel/MMFeedbacks/MMFeedbacksForThirdParty/TextMeshPro/Feedbacks/MMFeedbackTMPOutlineColor.cs
7,058
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Runtime.InteropServices; using System.Drawing.Imaging; namespace WinFormsA...
22.294118
65
0.671504
[ "Apache-2.0" ]
cjh3020889729/The-PaddleX-QT-Visualize-GUI
deploy/cpp/docs/csharp_deploy/c#/Program.cs
758
C#
using System; using UIKit; namespace CustomTransitions { public partial class CPFirstViewController : UIViewController { public CPFirstViewController (IntPtr handle) : base (handle) { } partial void ButtonAction (UIButton sender) { UIViewController secondVC = Storyboard.InstantiateViewController ("Sec...
27.047619
107
0.788732
[ "MIT" ]
Art-Lav/ios-samples
CustomTransitions/CustomTransitions/CustomPresentation/CPFirstViewController.cs
570
C#
// ReSharper disable all #pragma warning disable 67 #pragma warning disable 414 using System; using TestLibrary.Interfaces; namespace TestLibrary.Classes { public class InheritingClass : IInheritedInterface { public delegate void MyDelegate(); public event EventHandler MyEvent = null!; /// <inher...
20.677419
51
0.661466
[ "MIT" ]
hailstorm75/MarkDoc.Core
tests/TestLibrary/Classes/InheritingClass.cs
643
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...
28.507463
81
0.560733
[ "MIT" ]
thangnguyen2001/azure-sdk-for-net
src/SDKs/Batch/DataPlane/Azure.Batch/GeneratedProtocol/Models/JobAction.cs
1,910
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace timw255.Sitefinity.RestClient.Model { public class FieldViewModel { public string ContentType { get; set; } public string FieldTypeN...
26.454545
70
0.678694
[ "MIT" ]
timw255/timw255.Sitefinity.RestClient
timw255.Sitefinity.RestClient/Model/FieldViewModel.cs
584
C#
using Newtonsoft.Json; namespace ESI.NET.Models.Character { public class Affiliation { [JsonProperty("alliance_id")] public int AllianceId { get; set; } [JsonProperty("character_id")] public int CharacterId { get; set; } [JsonProperty("corporation_id")] public...
22.1
46
0.608597
[ "MIT" ]
Slazanger/ESI.NET
ESI.NET/Models/Character/Affiliation.cs
444
C#
namespace Server.Utils { public enum UserRole { MANAGER, CLIENT } }
12
24
0.53125
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
ruialmeida51/ARQSI.Catalog
Server/Utils/UserRole.cs
96
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MOE.Common.Business { public class RLMDetectorCollection { private List<MOE.Common.Business.Detector> NBdetectors = new List<Detector>(); public List<MOE.Common.Business.Detector> NBDetectors ...
37.954545
163
0.629461
[ "Apache-2.0" ]
AndreRSanchez/ATSPM
MOE.Common/Business/RLM/RLMDetectorCollection.cs
12,527
C#
namespace WindowsFormsApp11 { partial class Form1 { /// <summary> ///Gerekli tasarımcı değişkeni. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> ///Kullanılan tüm kaynakları temizleyin. /// </summary> ...
50.50566
175
0.580992
[ "Apache-2.0" ]
ZEHLAND/Matematik-Hesaplar
WindowsFormsApp11/WindowsFormsApp11/Form1.Designer.cs
13,408
C#
// Copyright © Pixel Crushers. All rights reserved. using UnityEngine; using System.Collections; namespace PixelCrushers { /// <summary> /// Manages localization settings. /// </summary> public class UILocalizationManager : MonoBehaviour { [Tooltip("The PlayerPrefs key to store the play...
29.755319
122
0.569896
[ "MIT" ]
desdemonhu/Bad-Behavior
Assets/Plugins/Pixel Crushers/Common/Scripts/UI/UILocalizationManager.cs
2,800
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...
25.071429
81
0.665242
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Web/V20181101/Outputs/FileSystemApplicationLogsConfigResponse.cs
702
C#
using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Text; using System.Threading.Tasks; using Amazon.S3; using Amazon.S3.Model; using Amazon.S3.Transfer; using Branch.Apps.ServiceHalo4.Enums.Waypoint; using Branch.Clients.Cache; using Branch.Clients.Token; using ...
36.918239
162
0.727428
[ "MIT" ]
sgrakeshm/branch
dotnet/Apps/ServiceHalo4/Services/WaypointClient.cs
5,872
C#
using System.Collections.Generic; namespace ScientificReport.DTO.Models.Conference { public class ConferenceIndexModel : PageModel { public IEnumerable<DAL.Entities.Conference> Conferences { get; set; } } }
21.3
71
0.788732
[ "MIT" ]
lnupmi11/ScientificReport
ScientificReport.DTO/Models/Conference/ConferenceIndexModel.cs
213
C#
using System.Linq; using AutoQueryable.Core.Clauses; namespace AutoQueryable.Core.Models { public class AutoQueryableContext : IAutoQueryableContext { private readonly IAutoQueryHandler _autoQueryHandler; public IQueryable<dynamic> TotalCountQuery { get; private set; } public IClauseVa...
35.518519
75
0.687174
[ "MIT" ]
Appsum/AutoQueryable
src/AutoQueryable/Core/Models/AutoQueryableContext.cs
961
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...
30.857143
118
0.715278
[ "ECL-2.0", "Apache-2.0" ]
AdminTurnedDevOps/pulumi-azure
sdk/dotnet/AppService/Outputs/AppServiceLogsApplicationLogs.cs
864
C#
using AzurePipelinesToGitHubActionsConverter.Core.AzurePipelines; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; namespace AzurePipelinesToGitHubActionsConverter.Core.Conversion.Serialization { public class AzurePipelinesSerialization<TTriggers, TVari...
50.407407
218
0.569434
[ "MIT" ]
bytemech/AzurePipelinesToGitHubActionsConverter
src/AzurePipelinesToGitHubActionsConverter.Core/Conversion/Serialization/AzurePipelinesSerialization.cs
8,168
C#
using System; using System.Collections.Generic; using System.Text; namespace ChatBotPrime.Core.Events.EventArguments { public class ChatCommandReceivedEventArgs : EventArgs { public ChatCommandReceivedEventArgs(ChatCommand chatCommand) { ChatCommand = chatCommand; } public ChatCommand ChatCommand { get;...
20.058824
62
0.782991
[ "MIT" ]
CrypticEngima/ChatBotPrime
ChatBotPrime.Core/Events/EventArguments/ChatCommandReceivedEventArgs.cs
343
C#
// // Copyright DataStax 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 applic...
39.69697
126
0.642366
[ "Apache-2.0" ]
MendelMonteiro/csharp-driver
src/Cassandra/Exceptions/BusyPoolException.cs
2,622
C#
using System; using System.ComponentModel; using System.Windows.Forms; using System.IO; using HSDRaw; using HSDRawViewer.Tools; using HSDRawViewer.Sound; using System.Linq; namespace HSDRawViewer.GUI.Extra { public partial class SSMTool : Form { private string FilePath; private int StartIndex...
28.396226
162
0.462569
[ "MIT" ]
Ploaj/HSDLib
HSDRawViewer/GUI/Extra/SSMTool.cs
9,032
C#
using RACSMicroservice.Models; using System.Collections.Generic; using System.Threading.Tasks; namespace RACSMicroservice.Repository { public interface IRACSSpecialOffer : IGenericRepository<CarSpecialOffer> { Task<IEnumerable<CarSpecialOffer>> GetSpecialOffersOfRacs(int racsId); Task<IEnumera...
34.538462
78
0.783964
[ "MIT" ]
bojanpisic/PP_WEB
Web2-Microservices/RACSMicroservice/Repository/IRACSSpecialOffer.cs
451
C#
using static AleaTK.Library; using static AleaTK.ML.Library; namespace AleaTK.ML.Operator { public class IteratedRnnCell<T> : Differentiable { public RnnType RnnType { get; } public bool IsTraining { get; } public int InputSize { get; } public int BatchSize { get; } publ...
42.494071
172
0.552135
[ "Apache-2.0" ]
fastai/AleaTK
src/AleaTK/ML/Operator/IteratedRnnCell.cs
10,751
C#
using Microsoft.Extensions.DependencyInjection; using Ocelot.Configuration; using Ocelot.Configuration.Creator; using Ocelot.Configuration.File; using Shouldly; using System; using TestStack.BDDfy; using Xunit; namespace Ocelot.UnitTests.Configuration { using Microsoft.AspNetCore.Http; using Ocelot.Logging; ...
35.351648
152
0.609263
[ "MIT" ]
AliWieckowicz/Ocelot
test/Ocelot.UnitTests/Configuration/HttpHandlerOptionsCreatorTests.cs
6,436
C#
/* * This is to print 2 threads alternatively. * It can be used to print 2 strings or print even and odd numbers alternatively */ using System; using System.Threading; namespace MultiThreading { public class TikTok { private readonly AutoResetEvent _autoEventTik = new AutoResetEvent(false); ...
23.933333
82
0.395079
[ "MIT" ]
Divya1384/BasicPrograms
MultiThreading/TikTok.cs
2,156
C#
/* * Copyright 2018 JDCLOUD.COM * * 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...
27.444444
117
0.604396
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Vm/Apis/DeleteInstanceTemplateRequest.cs
1,867
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...
42.230769
87
0.710838
[ "MIT" ]
yugangw-msft/azure-powershell
src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Properties/AssemblyInfo.cs
2,148
C#
using System.Collections.Generic; using System.Linq; namespace PoESkillTree.Computation.Common { /// <summary> /// The context for accessing the values of other calculation graph nodes in <see cref="IValue.Calculate"/>. /// </summary> public interface IValueCalculationContext { /...
43.962963
113
0.642376
[ "MIT" ]
ManuelOTuga/PoE
PoESkillTree.Computation.Common/IValueCalculationContext.cs
2,323
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _04_Trainlands { class lands { static void Main(string[] args) { var input = Console.ReadLine(); var trains = new Dictionary<string, Dictionary<string, int>>(); while (input...
25.565217
109
0.57398
[ "MIT" ]
Tcetso/Fundamentals
Exam August 2017/04 Trainlands/lands.cs
2,354
C#
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. // The software and associated documentation supplied hereunder are the // prop...
45.11236
157
0.588792
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy/Krypton-NET-5.461
Source/Krypton Components/ComponentFactory.Krypton.Ribbon/ButtonSpec/ButtonSpecViewRibbon.cs
4,018
C#
using System; using System.Linq; using System.Collections.Generic; using Functional.Test; namespace Functional.Implementation { public static partial class F { // A better cross-type reducer /// <summary>applies a acc function to items in seq of T. fn(x,y) x is the accumulation, y is the item f...
54.189189
253
0.657357
[ "Apache-2.0" ]
codecore/Functional
Functional/Implementation/Reduce.cs
2,005
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using BenchmarkDotNet.Configs; using BenchmarkDotNet.ConsoleArguments; using BenchmarkDotNet.ConsoleArguments.ListBenchmarks; using BenchmarkDotNet.Environments; using BenchmarkDotNet.Exte...
46.592308
174
0.678884
[ "MIT" ]
m-mccormick/BenchmarkDotNet
src/BenchmarkDotNet/Running/BenchmarkSwitcher.cs
6,059
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...
41.216216
102
0.758689
[ "MIT" ]
uialberto/uidapperusers
SolutionUibasoft/Community.DataAccess/Properties/AssemblyInfo.cs
1,543
C#
using CleanArchitectureCosmosDB.Infrastructure.CosmosDbData.Interfaces; using Microsoft.Azure.Cosmos; namespace CleanArchitectureCosmosDB.Infrastructure.CosmosDbData { public class CosmosDbContainer : ICosmosDbContainer { public Container _container { get; } public CosmosDbContainer(CosmosCli...
31.166667
85
0.663102
[ "MIT" ]
AndoxADX/clean-architecture-azure-cosmos-db
src/CleanArchitectureCosmosDB.Infrastructure/CosmosDbData/CosmosDbContainer.cs
563
C#