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; using System.IO; using Cottle.Values; namespace Cottle.Documents.Simple.Nodes { abstract class AssignNode : INode { #region Attributes private readonly StoreMode mode; private readonly string name; #endregion #region Constructors protected AssignNode (string name, St...
17.83
77
0.626472
[ "MIT" ]
nicotruchi/cottle
Cottle/src/Documents/Simple/Nodes/AssignNode.cs
1,785
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 * ...
30.272727
83
0.664414
[ "Apache-2.0" ]
ImEdisonJiang/tencentcloud-sdk-dotnet
TencentCloud/Yunjing/V20180228/Models/DeleteTagsResponse.cs
1,390
C#
using Kickstart.Pass2.CModel.Code; namespace Kickstart.Interface { public interface ICInterfaceVisitor { ICodeWriter CodeWriter { get; } void Visit(IVisitor visitor, CInterface cclass); } }
20
56
0.695455
[ "MIT" ]
videa-tv/kickstart
src/Kickstart/Kickstart.Core/Interface/ICInterfaceVisitor.cs
222
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34209 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
42.825397
174
0.617494
[ "BSD-3-Clause" ]
brainling/shibang
src/ShIBANG/Properties/Resources.Designer.cs
2,700
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ModLibrary; namespace CloneDroneModdedMultiplayer.Patches { public class GetLevelDescriptionsPatches { public static void Prefix(ref Tuple<GameMode, bool> __state) { ...
30.21978
130
0.542909
[ "MIT" ]
X606/CloneDroneModdedMultiplayer
CloneDroneModdedMultiplayer/Patches.cs
2,752
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See the LICENSE file in the project root for more information. using ILSpy.Host.Providers; using Microsoft.AspNetCore.Http; using System.Reflection.Metadata.Ecma335; namespace ILSpy.Host { public class ListMembersMidd...
37.482759
147
0.715731
[ "MIT" ]
crazyrex/ilspy-vscode
backend/src/ILSpy.Host/MiddleWare/Endpoints/ListMembersMiddleware.cs
1,089
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entity { public class Order { public int OrderID { get; set; } public string OrderNumber { get; set; } public int UserID { get; set; } public int Rehers...
20.705882
48
0.647727
[ "Unlicense" ]
fhrr-sht/Rehersal_Reservation
Entity/Order.cs
354
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; using System.Data.Entity.ModelConfiguration; using System.Data.Entity.ModelConfiguration.Conventions; using APPBASE.Helpers; using APPBASE.Models; namespace APPBASE.Models { public partial class DBMAINCo...
29.411765
72
0.782
[ "MIT" ]
arinsuga/posup
APPBASE/BASEStock/Support/Summary_sell/Models/APPContext_stok.cs
502
C#
using System.Collections.Generic; using Newtonsoft.Json; namespace ProjBobcat.Class.Model.YggdrasilAuth { public class UserInfoModel { [JsonProperty("id")] public string Id { get; set; } [JsonProperty("username")] public string UserName { get; set; } [JsonProperty("properties")] publ...
26.785714
88
0.68
[ "MIT" ]
mcoo/ProjBobcat
ProjBobcat/ProjBobcat/Class/Model/YggdrasilAuth/UserInfoModel.cs
377
C#
using System; using System.Diagnostics; using System.Security.Principal; using System.Web; using Newtonsoft.Json; using SFA.DAS.Support.Portal.ApplicationServices.Services; using SFA.DAS.Support.Portal.Core.Services; using SFA.DAS.Support.Portal.Web.Models; using SFA.DAS.Support.Portal.Web.Settings; namespace SFA.DAS...
35.458824
114
0.639681
[ "MIT" ]
SkillsFundingAgency/das-support-portal
src/SFA.DAS.Support.Portal.Web/Services/PermissionCookieProvider.cs
3,016
C#
using NHapi.Base.Parser; using NHapi.Base; using NHapi.Base.Log; using System; using System.Collections.Generic; using NHapi.Model.V251.Segment; using NHapi.Model.V251.Datatype; using NHapi.Base.Model; namespace NHapi.Model.V251.Group { ///<summary> ///Represents the MFN_M04_MF_CDM Group. A Group is an ordered collec...
26.609272
152
0.655799
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
AMCN41R/nHapi
src/NHapi.Model.V251/Group/MFN_M04_MF_CDM.cs
4,018
C#
using RedFolder.ActivityTracker.BeyondPod.Converters.Handlers; using RedFolder.ActivityTracker.Models.BeyondPod; using Xunit; namespace RedFolder.ActivityTracker.BeyondPod.UnitTests.Converters.Handlers { public class ReactRoundUpUnitTests { private readonly ReactRoundup _sut; private readonly...
30.883721
118
0.613705
[ "MIT" ]
Red-Folder/activity-tracker-azure-function
RedFolder.ActivityTracker.BeyondPod.UnitTests/Converters/Handlers/ReactRoundupUnitTests.cs
1,330
C#
// 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 regenerated. namespace Mi...
68.953704
312
0.700013
[ "MIT" ]
Agazoth/azure-powershell
src/Purview/Purviewdata.Autorest/generated/api/Models/Api20211001Preview/AzureDataExplorerSystemScanRuleset.json.cs
7,340
C#
using System; using System.Collections.Generic; using System.Text; namespace Payment.Events { public class PaymentFailedEvent { } }
13.272727
35
0.726027
[ "Unlicense" ]
jasprem/adlibris
src/contracts/Payment.Events/PaymentFailedEvent.cs
148
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace Ordering.Infrastructure.Persistence.Migrations { public partial class OrderingQuantity : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_...
33.644737
71
0.481619
[ "MIT" ]
NikolayPIvanov/Hive
src/Ordering/Ordering.Infrastructure/Persistence/Migrations/20210608104322_OrderingQuantity.cs
10,230
C#
using Serenity.ComponentModel; using Serenity.Data; using System; using System.Collections.Generic; namespace Serenity.PropertyGrid { public partial class BasicPropertyProcessor : PropertyProcessor { private void SetEditing(IPropertySource source, PropertyItem item) { va...
40.706522
127
0.515354
[ "MIT" ]
DucThanhNguyen/Serenity
Serenity.Data.Entity/PropertyGrid/BasicPropertyProcessor/BasicPropertyProcessor.Editing.cs
3,747
C#
using SharpDX; using SharpDX.Direct3D; using SharpDX.Direct3D11; using SharpDX.DXGI; //using _sc_core_systems.SC_Graphics.SC_Textures.SC_VR_Touch_Textures; using System.Linq; using System; using Jitter.Collision; using Jitter; using Jitter.Dynamics; using Jitter.DataStructures; using Jitter.Collision.Shapes; u...
40.800425
392
0.505854
[ "MIT" ]
ninekorn/SCCoreSystems-rerelease
sccsv10/_sc_graphics/_sc_models/human_rig/SC_modL_rght_elbow_target.cs
38,436
C#
namespace Ryujinx.Graphics.Gpu { /// <summary> /// General GPU and graphics configuration. /// </summary> public static class GraphicsConfig { /// <summary> /// Resolution scale. /// </summary> public static float ResScale = 1f; /// <summary> /// Max ...
35.116667
99
0.589938
[ "MIT" ]
CrusadingNinja/Ryujinx
Ryujinx.Graphics.Gpu/GraphicsConfig.cs
2,107
C#
using UnityEngine; public class SpawnCommander : MonoBehaviour { public Unit unitPrefab; public UnitScriptableObject CommanderUnitSO; public SpawnEnemyUnits spawnEnemyUnits; void Start () { Unit newUnit = Instantiate (unitPrefab, this.transform); Destroy (newUnit.GetComponent<Attack> (...
42.333333
99
0.709974
[ "MIT" ]
h-Nystrom/IdleRpg
Assets/Scripts/_IdleRPG/BattleField/SpawnCommander.cs
764
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Biz.Morsink.Identity.Test.WebApplication.Domain { /// <summary> /// This class represents a comment on a blog entry. /// </summary> public class Comment { /// <summary> ...
30.628571
72
0.546642
[ "MIT" ]
joost-morsink/Identity
Biz.Morsink.Identity.Test.WebApplication/Domain/Comment.cs
1,074
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; public class DecisionSystem : MonoBehaviour { int Dijkstra = 0, Astar = 1, Bfs = 2, Dfs = 3, Bestfs = 4; float[] ArraySort; int[] indexOfTie; int[] WinCount; int i, j; float temp; int rank = 5, EqualCount = 0, max0, max1, max2, max3...
25.671698
154
0.545642
[ "MIT" ]
aparant777/Artificial-Intelligence-Modules
Final/Path Optimization april 6 - Copy/Assets/Scripts/DecisionSystem.cs
6,805
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading.Tasks; using GovUk.Education.ExploreEducationStatistics.Admin.Services; using GovUk.Education.ExploreEducationStatistics.Admin.Services.Interfaces; using GovUk.Education.ExploreEducationStatistics.Admin...
40.690151
123
0.520495
[ "MIT" ]
benoutram/explore-education-statistics
src/GovUk.Education.ExploreEducationStatistics.Admin.Tests/Services/ReleaseServiceTests.cs
56,600
C#
using UnityEngine; namespace ScriptableVariablesAndReferences { public class TransformReference : Reference<Transform> { } }
16.333333
58
0.707483
[ "MIT" ]
Maximilian-Winter/CSCS-Unity
Assets/Scripts/ScriptableObjects/ScriptableArchitecture/Runtime/References/TransformReference.cs
149
C#
using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using NSubstitute; using RestEase; using Rsi.DependencyInjection.Testing; using Xunit; namespace Rsi.DependencyInjection.SampleWebApi.Tests { [Collection(nameof(FixtureCollection))] public class SampleControllerTests { private readonly...
30.75
85
0.777531
[ "MIT" ]
volodin-danila/Rsi.DependencyInjection
tests/Rsi.DependencyInjection.SampleWebApi.Tests/SampleControllerTests.cs
1,355
C#
namespace _8._1._2_objekt { internal class Nastavnik { private string ime = "Antonije Marcus"; private int oib; public string Ime { get => ime; // READ ONLY. } public int Oib { set => oib = value; // WRITE ONLY. } ...
22.75
77
0.453546
[ "MIT" ]
mmikleusevic/AlgebraCSharp2019-1
ConsoleApp1/8.1.2_objekt/Nastavnik.cs
1,006
C#
/* * convertapi * * Convert API lets you effortlessly convert file formats and types. * * OpenAPI spec version: v1 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using NUnit.Framework; using System; using System.Linq; using System.IO; using System.Collections.Generic; using Cloudme...
28.404494
150
0.644778
[ "Apache-2.0" ]
Cloudmersive/Cloudmersive.APIClient.NET.DocumentAndDataConvert
client/src/Cloudmersive.APIClient.NET.DocumentAndDataConvert.Test/Model/RemoveDocxHeadersAndFootersResponseTests.cs
2,528
C#
// Copyright (c) Alexandre Mutel. All rights reserved. // This file is licensed under the BSD-Clause 2 license. // See the license.txt file in the project root for more information. using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerService...
31.605178
195
0.470408
[ "BSD-2-Clause" ]
ForNeVeR/markdig
src/Markdig/Helpers/StringLineGroup.cs
9,766
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; namespace Microsoft.AspNetCore.Components { public static partial class BindConverter { public static bool FormatValue(bool value, S...
97.475694
409
0.781178
[ "MIT" ]
dotnet/razor-compiler
src/test/Microsoft.AspNetCore.Razor.Test.ComponentShim/Microsoft.AspNetCore.Components.netstandard2.0.cs
56,146
C#
namespace ZohoBooksExporter; using System; using System.Net.Http; using System.Threading.Tasks; using System.Web; using Newtonsoft.Json.Linq; public class OAuthClient { private readonly string _domain; private readonly string _clientId; private readonly string _clientSecret; public OAuthClient(strin...
32.636364
102
0.632776
[ "MIT" ]
Flavien/zoho-books-exporter
ZohoBooksExporter/OAuthClient.cs
2,156
C#
namespace PandaWebApp.Controllers { public class BasePackageViewModel { public string Description { get; set; } public int Id { get; set; } } }
19.222222
47
0.624277
[ "MIT" ]
svetlimladenov/C-Sharp-Web-Development-Basics
Exam/Apps/PandaWebApp/ViewModels/Home/BasePackageViewModel.cs
175
C#
namespace Hjerpbakk.DIPSBot.Model.BikeSharing { public readonly struct BikeSharingStationsInformation { public BikeSharingStationsInformation(string[] response, LabelledBikeSharingStation[] labelledBikeSharingStations) { Response = response; LabelledBikeSharingStations = labelledBik...
40
124
0.727083
[ "MIT" ]
Sankra/DIPSbot
src/Hjerpbakk.DIPSBot/Model/BikeSharing/BikeSharingStationsInformation.cs
482
C#
// <auto-generated /> using System; using LibraryWebsite; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Librar...
36.843342
125
0.453476
[ "MIT" ]
Euphoric/LibraryWebsite
LibraryWebsite/Migrations/20200105081306_IdentityServer.Designer.cs
14,113
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace FrameworksViewerApp.Models { public class STIGRuleFix { public int id { get; set; } public string uifixtext { get; set; } public string clifixtext { get; set; } public str...
23.294118
46
0.646465
[ "MIT" ]
seccodingguy/securityframeworkmapper
Models/STIGRuleFix.cs
398
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using HTC.UnityPlugin.Vive; using UnityEngine.SceneManagement; // Script written by Kyle Mas on Nov 12, 2019. // Deals with all the button functionalities like play, pause, back, reset. public class buttonScript : MonoBehaviour { // Rese...
26.92
75
0.743685
[ "MIT" ]
ubcemergingmedialab/Jupyter3D-Unity
Assets/Scripts/gridDemo2/buttonScript.cs
1,346
C#
using Sandbox.Game.EntityComponents; using Sandbox.ModAPI.Ingame; using Sandbox.ModAPI.Interfaces; using SpaceEngineers.Game.ModAPI.Ingame; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Text; using System; using VRage.Collections; using VRage.Game.Components; using VRage.G...
60.52
254
0.645737
[ "MIT" ]
MerlinofMines/EasyCommands
EasyCommands/BlockHandlers/TextSurfaceHandlers.cs
4,541
C#
using System; namespace ENode.Domain.Impl { public class SnapshotOnlyAggregateStorage : IAggregateStorage { private readonly IAggregateSnapshotter _aggregateSnapshotter; public SnapshotOnlyAggregateStorage(IAggregateSnapshotter aggregateSnapshotter) { _aggregateSnapshotter...
41.264706
269
0.670706
[ "MIT" ]
ChenQianPing/enode-master
src/ENode/Domain/Impl/SnapshotOnlyAggregateStorage.cs
1,405
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Project2_Cooperation.Models.ManageViewModels { public class SetPasswordViewModel { [Required] [StringLength(100, ErrorMessage = "The {0} must ...
32.96
125
0.680825
[ "MIT" ]
michailvarouchas/project2-razors-coop
Project2-Cooperation/Models/ManageViewModels/SetPasswordViewModel.cs
826
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 Xunit; namespace System.Collections.Tests { public class HashtableBasicTests : HashtableIDictionaryTestBa...
41.171875
134
0.681214
[ "MIT" ]
2E0PGS/corefx
src/System.Collections.NonGeneric/tests/Hashtable/Hashtable.IDictionary.Tests.cs
2,635
C#
using System; using System.ComponentModel; using System.Runtime.CompilerServices; using AndroidLogViewer.Models; using AndroidLogViewer.Properties; namespace AndroidLogViewer { public class LogEntry : INotifyPropertyChanged { public string Time { get; set; } = string.Empty; public int Process...
28.909091
87
0.680294
[ "MIT" ]
MarkusPalcer/AndroidLogViewer
AndroidLogViewer/Models/LogEntry.cs
956
C#
using System.Drawing; namespace AltoControls { public static class ExtensionMethods { public static Color FromHex(this string hex) { return ColorTranslator.FromHtml(hex); } } }
17.461538
52
0.621145
[ "MIT" ]
LambertOVO/AltoControls-For.NetWinForm
AltoControls/Helpers/ExtensionMethods.cs
229
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Text; using Silk.NET.Core; using Silk.NET.Core.Native; using Silk.NET.Core.At...
27.643836
89
0.571853
[ "MIT" ]
DmitryGolubenkov/Silk.NET
src/Vulkan/Silk.NET.Vulkan/Structs/WriteDescriptorSetInlineUniformBlockEXT.gen.cs
2,018
C#
using System; using System.Collections.Generic; using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualBasic.FileIO; using CarsonDB; namespace CarsonDBTest { [TestClass] public class TreatmentUnitTest { private string _legacySourcePath = Path.Combine(Directory.GetCurrentDirect...
31.597015
252
0.692726
[ "MIT" ]
ksanchezm/CarsonDB_demo
CarsonDBTest/TreatmentUnitTest.cs
4,236
C#
/** * Copyright (c) 2001-2019 Mathew A. Nelson and Robocode contributors * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * https://robocode.sourceforge.io/licen...
25.933333
85
0.575835
[ "Apache-2.0" ]
Delawen/robocode
plugins/dotnet/robocode.dotnet.api/src/robocode/exception/RobotException.cs
1,167
C#
namespace ParentLoadRO.Business.ERLevel { public partial class A07_Country_Child { #region OnDeserialized actions /*/// <summary> /// This method is called on a newly deserialized object /// after deserialization is complete. /// </summary> /// <par...
26.030303
102
0.593714
[ "MIT" ]
CslaGenFork/CslaGenFork
trunk/Samples/DeepLoad/DAL-DR/ParentLoadRO.Business/ERLevel/A07_Country_Child.cs
859
C#
using System; namespace Print_Part_Of_ASCII_Table { class Program { static void Main(string[] args) { int startAsci = int.Parse(Console.ReadLine()); int SecondAsci =int.Parse(Console.ReadLine()); for (int i = startAsci; i <= SecondAsci; i++) { ...
19.9
58
0.494975
[ "MIT" ]
VladimirDikovski/C-Fundamentals-May-2019
Data Types and Variables Exercise/Print Part Of ASCII Table/Print Part Of ASCII Table/Program.cs
400
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TradeAndTravel { public class Merchant : Shopkeeper, IShopkeeper, ITraveller { public Merchant(string name, Location location) : base(name, location) { ...
20.952381
63
0.631818
[ "MIT" ]
ykomitov/Homeworks-TA
03.OOP/89.OOP_Exam_Preparation/2. Trade and Travel/TradeAndTravel/Person/Merchant.cs
442
C#
namespace WinFormsTestApp { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
50.262128
159
0.595703
[ "Apache-2.0" ]
cuongnq/White
src/TestApplications/WinFormsTestApp/Form1.Designer.cs
57,884
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace ConferenceDTO { public class Speaker { public int Id { get; set; } [Required] [StringLength(200)] public string Name { get; set; } [StringLength(4000)] publi...
19.863636
51
0.610984
[ "MIT" ]
AnzhelikaKravchuk/aspnetcore-app-workshop
src/ConferenceDTO/Speaker.cs
439
C#
using System; using System.Numerics; using Lykke.AzureStorage.Tables.Entity.Serializers; namespace Lykke.Service.EthereumClassicApi.Repositories.Serializers { public class BigIntegerSerializer : IStorageValueSerializer { public string Serialize(object value) { return value.ToString...
23.633333
67
0.629055
[ "MIT" ]
LykkeCity/Lykke.Service.EthereumClassic.Api
src/Lykke.Service.EthereumClassicApi.Repositories/Serializers/BigIntegerSerializer.cs
711
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace NuGetConsole { internal interface IHostInitializer { void Start(); void SetDefaultRunspace(); } }
23.538462
111
0.696078
[ "Apache-2.0" ]
BdDsl/NuGet.Client
src/NuGet.Clients/NuGet.Console/IHostInitializer.cs
308
C#
using System; using System.Collections.Generic; using UnityEditor; using UnityLocalize.DataStorage; namespace UnityLocalize.Editor { internal abstract class LocalizationProviderBase { public List<Type> TypesToLocalization { get; set; } public LocalizationProviderCache LocalizationProviderCach...
31.774194
124
0.652792
[ "MIT" ]
anvoro/ULocalize
Assets/Plugins/UnityLocalize/Editor/EditorCore/LocalizationExport/LocalizationProviderBase.cs
987
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.Integrations { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace = "ur...
23.383721
216
0.751119
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.Integrations/Integration_Message_DataType.cs
4,022
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace SparkServer.Application.Enum { /// <summary> /// Identifies various site sections. /// </summary> public enum MainMenu { Home = 0, Article = 1, Category = 2, Resources = 3...
18.25
41
0.569863
[ "MIT" ]
bmbruno/SparkServer
Application/SparkServer/Application/Enum/MainMenu.cs
367
C#
using AutoMapper; using CommandModels.Data; using CommandModels.Dtos; using CommandModels.Models; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace CommandService.Controllers; [Route("api/c/platforms/{platformId}/[controller]")] [ApiController] public class CommandsController : ControllerBas...
25.566265
111
0.669651
[ "MIT" ]
Altairseven/NetMicroservices
Command/CommandService/Controllers/CommandsController.cs
2,124
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> //---...
41.416667
80
0.651911
[ "MIT" ]
aruna09/alert-to-care-s21b9
AlertToCareApi/obj/Release/netcoreapp3.1/AlertToCareApi.AssemblyInfo.cs
994
C#
using Assets.Scripts.CooldownButtonTest; using Assets.Scripts.Serialization; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using UnityEngine; using Object = UnityEngine.Object; namespace Assets.Scripts.Binding { public abstract class ResourceManagerBase : MonoBehaviou...
38.270968
125
0.545516
[ "MIT" ]
JackTheRipper42/Binding
Assets/Scripts/Binding/ResourceManagerBase.cs
5,934
C#
using Newtonsoft.Json; namespace Canvas.v1.Models.Analytics { public class TardinessBreakdown { [JsonProperty("total")] public int Total { get; set; } [JsonProperty("on_time")] public int OnTime { get; set; } [JsonProperty("late")] public int Late { get; set; } ...
26.555556
41
0.577406
[ "Apache-2.0" ]
thatsnotmylane/canvas-windows-sdk-v1
Canvas.v1/Models/Analytics/TardinessBreakdown.cs
478
C#
using System.Diagnostics; using FubuMVC.Core.Registration; using FubuMVC.Core.UI.Navigation; using NUnit.Framework; using System.Linq; using FubuTestingSupport; using System.Collections.Generic; namespace FubuMVC.Tests.UI.Navigation { [TestFixture] public class MenuItemAttributes_integrated_Tester ...
28.09434
129
0.584956
[ "Apache-2.0" ]
ketiko/fubumvc
src/FubuMVC.Tests/UI/Navigation/MenuItemAttributes_integrated_Tester.cs
1,489
C#
using FFXIVRelicTracker.Models.Helpers; using System; using System.Collections.Generic; using System.Text; namespace FFXIVRelicTracker._04_SB.Main { public class SBModel : ObservableObject { #region Fields #endregion #region Constructor public SBModel() { } ...
14.264706
43
0.597938
[ "Apache-2.0" ]
Hezkezl/FFXIVRelicTracker
04-SB/Main/SBModel.cs
487
C#
using System.ComponentModel; using System.Windows.Forms; namespace interactive_audio { public class ImageForm : Form { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Cl...
32.020408
107
0.579987
[ "MIT" ]
James-Frowen/led-strip-gui
interactive-audio/ImageForm.cs
1,571
C#
using System.Collections; using System.Collections.Generic; using System; using UnityEngine; using HuaweiMobileServices.Ads; #if HMS_BUILD namespace HmsPlugin { public class RewardAdManager : MonoBehaviour { private class RewardAdListener : IRewardAdStatusListener { private readon...
30.326923
131
0.542803
[ "MIT" ]
EvilMindDevs/hms-reference-game
RefGame/Assets/Huawei/Scripts/Ads/RewardAdManager.cs
3,156
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190801 { using Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PowerShell; /// <summary>String dictionary resource.</summary> [System.ComponentModel.TypeConverter(typeof(ConnectionStringDictionaryTypeConverter))] public parti...
78.156028
520
0.723866
[ "MIT" ]
Arsasana/azure-powershell
src/Functions/generated/api/Models/Api20190801/ConnectionStringDictionary.PowerShell.cs
10,880
C#
using java.lang; using stab.query; using stab.tree; public class ExpressionTreeReturn { public static int test() { ExpressionTree<FunctionIntInt> expr = p => { return 1; }; return (int)((ValueExpression)((ReturnStatement)((BlockStatement)expr.Body).Statements.first()).Value).Value; } }
28.363636
117
0.692308
[ "Apache-2.0" ]
monoman/cnatural-language
tests/resources/LibraryTest/sources/ExpressionTreeReturn.stab.cs
312
C#
using System; using System.Collections.Generic; using System.Text; namespace ESFA.DC.ILR.ReportService.Model.ReportModels { public sealed class FundingClaim1619HeaderModel { public string ProviderName { get; set; } public int Ukprn { get; set; } public string IlrFile { get; set; } ...
20.444444
54
0.663043
[ "MIT" ]
SkillsFundingAgency/DC-ILR-1819-ReportService
src/ESFA.DC.ILR.ReportService.Model/ReportModels/FundingClaim1619HeaderModel.cs
370
C#
using System.Collections.Generic; public class SettlementSection { public List<Lot> Lots; public SettlementSection() { } public SettlementSection(SettlementSectionSdo sdo) { if (sdo == null) { return; } Lots = LotSdo.ConvertToLots(sdo.LotSdos); ...
15.571429
54
0.584098
[ "Apache-2.0" ]
SchwiftyPython/PizzalikeRL
Assets/Resources/Scripts/World/Settlements/SettlementSection.cs
329
C#
using DCL.Configuration; using System; using DCL; using DCL.Helpers; using UnityEngine; public class DCLCharacterPosition { private Vector3 worldPositionValue; private Vector3 unityPositionValue; private Vector3 offset; private int lastRepositionFrame = 0; public Vector3 worldPosition { ...
30.620253
135
0.651922
[ "Apache-2.0" ]
0xBlockchainx0/unity-renderer
unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/CharacterController/DCLCharacterPosition.cs
2,419
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // 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: Asse...
81.389831
525
0.78863
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/EBS/Properties/AssemblyInfo.cs
4,802
C#
using System; namespace NextGenSoftware.OASIS.API.Providers.IPFSOASIS { public class HolonResume { public Guid Id { get; set; } public string login { get; set; } public string password { get; set; } } }
20.083333
55
0.622407
[ "CC0-1.0" ]
neurip/Our-World-OASIS-API-HoloNET-HoloUnity-And-.NET-HDK
NextGenSoftware.OASIS.API.Providers.IPFSOASIS/HolonResume.cs
243
C#
// This file is part of YamlDotNet - A .NET library for YAML. // Copyright (c) Antoine Aubry and contributors // 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, inc...
48.298507
139
0.694994
[ "BSD-2-Clause" ]
4Rtrtr/Unity3DTemplateProject
{{cookiecutter.project_name}}/src/{{cookiecutter.project_name}}/Assets/Editor/Plugins/YamlDotNet/Serialization/IYamlConvertible.cs
3,236
C#
namespace AnnoSavegameViewer.Structures.Savegame.Generated { using AnnoSavegameViewer.Serialization.Core; public class InfectionChanceTrackerListList { #region Public Properties [BinaryContent(Name = "Counter", NodeType = BinaryContentTypes.Attribute)] public object Counter { get; set; } [Binary...
31.5625
97
0.768317
[ "MIT" ]
Veraatversus/AnnoSavegameViewer
src/AnnoSavegameViewer/GeneratedA7s/Structures/Savegame2/Generated/Content/InfectionChanceTrackerListList.cs
505
C#
// Copyright (c) Xenko contributors (https://xenko.com) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. using System; using System.Runtime.InteropServices; namespace Xenko.Video { /// <summary> /...
26.272727
114
0.547405
[ "MIT" ]
Aminator/xenko
sources/engine/Xenko.Video/VideoImage.cs
1,445
C#
using Engine; using Engine.ECS; using Engine.Input; using PovertySTG.ECS.Components; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Text; using Engine.Resource; using PovertySTG.Factories; namespace PovertySTG.ECS.Systems { public class LevelScriptSystem : CSystem ...
41.132653
99
0.420367
[ "MIT" ]
Karob2/PovertySTG
Source/ECS/Systems/LevelScriptSystem.cs
8,064
C#
namespace RedSpark.Thot.Api.Domain.Entities.Example { public class Product { public int Id { get; set; } public string Name { get; set; } public override bool Equals(object obj) { if (obj is null) return false; var compareTo = obj is Product ? (Product)...
23.6
68
0.557627
[ "MIT" ]
rmstreet/RedSpark.Thot
src/RedSpark.Thot.Api/Domain/Entities/Example/Product.cs
592
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.Practices.DataPipeline.ColdStorage.BlobWriter.Tests { using System; using System.Configuration; using System.Text; using System.Thre...
35.93038
113
0.558922
[ "MIT" ]
averyspa/data-pipeline
src/Implementation/ColdStorage/ColdStorage.BlobWriter.Tests/GivenARollingBlobWriterOnExistingBlobs.cs
5,679
C#
namespace HtmlGenerator { public class HtmlProgressElement : HtmlElement { public HtmlProgressElement() : base("progress") { } public HtmlProgressElement WithMax(string value) => this.WithAttribute(Attribute.Max(value)); public HtmlProgressElement WithValue(string value) => this.WithAt...
30.083333
105
0.714681
[ "MIT" ]
hughbe/HtmlGenerator
src/Elements/HtmlProgressElement.cs
361
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.652778
179
0.603665
[ "Apache-2.0" ]
shipinm1/MwCapture
WindowCapture/WindowCapture/Properties/Resources.Designer.cs
2,785
C#
using ShellLink.DataObjects; using ShellLink.DataObjects.ExtraData; using ShellLink.Internals; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace ShellLink.Actuators.ExtraData { public sealed class EnvironmentVariableDataBlockActuator : ExtraDataBlockActuator<Environment...
41.931818
132
0.706233
[ "MIT" ]
masbicudo/MS-SHLLINK.Net
ShellLink/Actuators.ExtraData/EnvironmentVariableDataBlockActuator.cs
1,847
C#
using System; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json.Linq; using System.Runtime.Serialization; namespace XBMCRPC.Settings { }
18
35
0.820988
[ "MIT" ]
RyanMelenaNoesis/ElveKodiDriver
src/NoesisLabs.Elve.Kodi/XBMCRPC/XBMCRPC/Settings/GetCategoriesResponse_categories.cs
162
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Security.DataProtection { #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] #endif public en...
27.26087
63
0.708134
[ "Apache-2.0" ]
JTOne123/uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Security.DataProtection/UserDataAvailability.cs
627
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 Microsoft.Data.DataView; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.EntryPoints; ...
35.692308
128
0.667385
[ "MIT" ]
IndigoShock/machinelearning
src/Microsoft.ML.EntryPoints/DataViewReference.cs
1,394
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.Runtime.InteropServices; internal static partial class Interop { internal static partial class Cry...
29.777778
71
0.640547
[ "MIT" ]
06needhamt/runtime
src/libraries/Common/src/Interop/Windows/Crypt32/Interop.CRYPT_RC2_CBC_PARAMETERS.cs
804
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BGFolklore.Data.Models.Calendar { public class Town { [Key] [DatabaseGe...
22.962963
66
0.672581
[ "MIT" ]
Margi13/BGFolklore
BGFolklore.Data/BGFolklore.Models/Calendar/Town.cs
622
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using YourPlace.Web.Models.StoreService; namespace YourPlace.Web.Services.StoreService { public interface IStoreServiceService { bool Create(string name, string description, decimal price, string storeId, ...
32.461538
170
0.753555
[ "MIT" ]
RadoslavDimitrov/YourPlace
YourPlace.Web/YourPlace.Web/Services/StoreService/IStoreServiceService.cs
846
C#
using DeveImageOptimizer.FileProcessing; using DeveImageOptimizer.Helpers; using DeveImageOptimizer.State; using DeveImageOptimizer.State.StoringProcessedDirectories; using DeveImageOptimizer.Tests.ExternalTools; using DeveImageOptimizer.Tests.TestHelpers; using System.IO; using System.Linq; using System.Threading.Tas...
54.408907
208
0.676315
[ "MIT" ]
devedse/DeveImageOptimizer
DeveImageOptimizer.Tests/FileProcessing/FileProcessorDirTests.cs
13,441
C#
using System.Collections.Generic; using ProjectZero.Library.Interfaces; using ProjectZero.DataAccess.Model; using System; using Microsoft.EntityFrameworkCore; using System.Threading.Tasks; namespace ProjectZero { internal class ProZeroRepo : IProZeroRepo { private static readonly List<IDisposable> _dis...
29.646154
127
0.600415
[ "MIT" ]
2006-jun15-net/william-project0
ProjectZero/ProjectZero/ProZeroRepo.cs
1,927
C#
using Microsoft.Xna.Framework; using Zeds.Engine; namespace Zeds.Graphics.Background { static class RenderBackground { public static void DrawBackground() { var backgroundRec = new Rectangle(0, 0, Engine.Engine.MapSizeX, Engine.Engine.MapSizeY); Engine.Engine.SpriteBatc...
26.8
100
0.681592
[ "MIT" ]
Ratstool/Zeds
Graphics/Background/RenderBackground.cs
404
C#
using UnityEngine; using System.Collections; public class PlayerDirectionController : MonoBehaviour { private Camera gameCamera; /// <summary> /// MONOBEHAVIOUR Start /// </summary> void Start() { gameCamera = GameObject.Find("Main Camera").GetComponent<Camera>(); } /// <summary>...
28.741935
92
0.674523
[ "MIT" ]
Zanice/2D-Game-Framework
project/Scripts/Player/PlayerDirectionController.cs
893
C#
using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using MusicStore.Models; namespace MusicStore.Controllers { [Authorize] public class ManageController : Cont...
37.179558
137
0.572851
[ "MIT" ]
Digid-GMAO/MyTested.AspNet.TV
src/Clean Code Best Practices/Code/Before/MusicStore.Web/Controllers/ManageController.cs
13,459
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Version 4.5.0.0 www.ComponentFactory.com // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
39.277147
197
0.564207
[ "BSD-3-Clause" ]
ALMMa/Krypton
Source/Krypton Components/ComponentFactory.Krypton.Design/Properties/Resources.Designer.cs
24,236
C#
using ServiceWerXBusiness; using System.Threading.Tasks; using System.Security.Claims; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Cors; namespace ServiceWerXAspNetCore { [ServiceFilter(typeof(ApiExcept...
31.421875
121
0.616609
[ "MIT" ]
jbryanmiller/ServiceWerX
src/ServiceWerXASPNetCore/Controllers/AccountController.cs
2,013
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable enable using System.Collections.Concurrent; using System.Collections.Immutable; using System.Composition...
32.947368
89
0.718051
[ "Apache-2.0" ]
HenrikWM/roslyn
src/Workspaces/CSharp/Portable/CaseCorrection/CSharpCaseCorrectionService.cs
1,254
C#
using DotNetBay.Core.Execution; using DotNetBay.Data.Provider.FileStorage; using DotNetBay.Interfaces; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Configuration; using System.Data; using System.Linq; using System.Security.Cryptography.X509Certificates; using System...
28.540984
81
0.61861
[ "MIT" ]
NevacFHNW/dotnetbay-hs18
source/DotNetBay.WPF/App.xaml.cs
1,741
C#
using System; using NUnit.Framework; using dexter_vs.Defects; using dexter_vs.Config; namespace dexter_vs.Analysis { [TestFixture] public class DexterTest { private Dexter dexter; [SetUp] public void Init() { var config = new Configuration() { ...
29.985714
109
0.540257
[ "BSD-2-Clause" ]
marchpig/Dexter
project/dexter-vs/dexter-vs-tests/Analysis/DexterTest.cs
2,101
C#
/* * Copyright (c) Contributors, http://whitecore-sim.org/, http://aurora-sim.org, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
53.075188
119
0.684375
[ "BSD-3-Clause" ]
WhiteCoreSim/WhiteCore-Dev
WhiteCore/Framework/Modules/IGroupsModule.cs
7,059
C#
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated w...
42.607143
98
0.711232
[ "MIT" ]
mwhite102/MVVMModalDialogDemo
MVVMModalDialogDemo/Properties/AssemblyInfo.cs
2,389
C#
#if UNITY_EDITOR || UNITY_EDITOR_BETA using System.Collections.Generic; using System.IO; using migrationtool.controllers; using migrationtool.models; using migrationtool.utility; using migrationtool.windows; using Newtonsoft.Json; using UnityEditor; using UnityEngine; namespace migrationtool.views { public class...
38.046729
118
0.593712
[ "MIT" ]
WouterVanmulken/Unity-Migration-Tool
Assets/MigrationTool/MigrationTool/MigrationTool/Views/MappingView.cs
4,073
C#
using NHSD.BuyingCatalogue.Solutions.Contracts; namespace NHSD.BuyingCatalogue.Solutions.API.ViewModels.Solution.Hosting { public sealed class OnPremiseSection { internal OnPremiseSection(IHosting hosting) => Answers = new OnPremiseSectionAnswers(hosting?.OnPremise); public OnPremiseSectionAn...
30.857143
113
0.74537
[ "MIT" ]
nhs-digital-gp-it-futures/BuyingCatalogueService
src/NHSD.BuyingCatalogue.Solutions.API/ViewModels/Solution/Hosting/OnPremiseSection.cs
434
C#
using Acme.BookStore.BackgroundJobs; using Acme.BookStore.EntityFrameworkCore; //using MahApps.Metro.Controls.Dialogs; using Microsoft.Extensions.DependencyInjection; using Volo.Abp.Auditing; using Volo.Abp.Autofac; using Volo.Abp.BackgroundJobs; using Volo.Abp.BackgroundWorkers; using Volo.Abp.Modularity; namespace A...
36.4
117
0.803297
[ "MIT" ]
kfrancis/abp-wpf
src/Acme.BookStore.Wpf/BookStoreWpfModule.cs
910
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace JN.Services.CustomException { public class CustomException : ApplicationException { //记录异常的类型 private CustomExceptionType exceptionT...
25.625
106
0.61115
[ "MIT" ]
fisherLB/NX1222
www/JN.Services/CustomException/CustomException.cs
1,527
C#
using System; using System.Linq; using System.Collections.Generic; namespace QuickSort { public class Quick { static void Main() { //* //Implementation Quick Sort algorithm numbers in Array!!! //* int[] arr = Console.ReadLine().Split().Select(int...
24.345238
79
0.409291
[ "MIT" ]
PavelRunchev/Dot.Net-Advanced
C# Advanced/15. Basic Algorithms/6. Quick Sort/Quick.cs
2,047
C#