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.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.Xml.Linq; using Orchard.FileSystems.AppData; using Orchard.ImportExport.Models; using Orchard.Logging; using Orchard.Services; namespace Orchard.ImportExport.Services { public class Imp...
41.37963
149
0.622958
[ "BSD-3-Clause" ]
Lombiq/Associativy
src/Orchard.Web/Modules/Orchard.ImportExport/Services/ImportExportService.cs
4,471
C#
using System.Collections.Generic; using NunitGo.NunitGoItems.Subscriptions; namespace NunitGo.NunitGoItems { public class NunitGoConfiguration { public string LocalOutputPath; public bool TakeScreenshotAfterTestFailed; public bool GenerateReport; public bool SendEmails; ...
28.173913
68
0.708333
[ "MIT" ]
codacy-review/NUnitGo
NunitGo/NunitGoItems/NunitGoConfiguration.cs
650
C#
using System; using System.Reflection; using System.Text; using MoonSharp.Interpreter.Interop.RegistrationPolicies; namespace MoonSharp.Interpreter.Interop.Converters { internal static class ClrToScriptConversions { /// <summary> /// Tries to convert a CLR object to a MoonSharp value, using "trivial" logic. /...
25.154696
107
0.69295
[ "MIT" ]
CommonTimeGames/Caminho-Unity
Assets/Plugins/MoonSharp/Interpreter/Interop/Converters/ClrToScriptConversions.cs
4,555
C#
using Magento.RestClient.Abstractions.Repositories; namespace Magento.RestClient.Abstractions.Abstractions { public interface IAdminContext : IContext { IProductAttributeGroupRepository ProductAttributeGroups { get; } IStoreRepository Stores { get; } IProductRepository Products { get; } IProductMediaReposi...
38.586207
66
0.785523
[ "BSD-3-Clause" ]
mlof/Magento.RestClient
source/Magento.RestClient.Abstractions/Abstractions/IAdminContext.cs
1,121
C#
using CachingManager.Abstraction; using Microsoft.Extensions.Caching.Memory; namespace CachingManager { public class Cache<TValue, TKey> : ICache<TValue, TKey> where TValue : IMesurable { #region Public Properties public TValue this[TKey key] { get => this.Get(key); ...
21.601942
85
0.497079
[ "MIT" ]
almez/CachingManager
src/CachingManager/Cache.cs
2,227
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Pds.Data; namespace Pds.Data.Mig...
33.843915
78
0.427265
[ "Apache-2.0" ]
SelitskiySergey/bloggers-cms
Pds/Pds.Data/Migrations/20210330174006_AddContentStatus.Designer.cs
12,795
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="JsonSerializationFacts.cs" company="Catel development team"> // Copyright (c) 2008 - 2015 Catel development team. All rights reserved. // </copyright> // -----------------------...
35.333333
120
0.544768
[ "MIT" ]
uQr/Catel
src/Catel.Test/Catel.Test.Shared/Runtime/Serialization/JsonSerialization/JsonSerializationFacts.cs
5,832
C#
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using Framework.Core; using Framework.DomainDriven.DAL.Sql; using Framework.DomainDriven.DBGenerator.Contracts; using Framework.DomainDriven.DBGenerator.Team; using Framework.DomainDri...
39.377143
263
0.556958
[ "MIT" ]
Luxoft/BSSFramework
src/_DomainDriven/Framework.DomainDriven.DBGenerator/ScriptGenerators/ScriptGeneratorStrategy/AddOrUpdateStrategy.cs
6,995
C#
/* * DivikResultTests.cs * Tests DivikResult class. * Copyright 2017 Grzegorz Mrukwa, Michał Gallus 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/lice...
35.143713
105
0.609303
[ "Apache-2.0" ]
spectre-team/DiviK-standalone-client
src/Spectre.Algorithms.Tests/Results/DivikResultTests.cs
5,872
C#
namespace ClearHl7.Codes.V280 { /// <summary> /// HL7 Version 2 Table 0242 - Primary Observer's Qualification. /// </summary> /// <remarks>https://www.hl7.org/fhir/v2/0242</remarks> public enum CodePrimaryObserversQualification { /// <summary> /// C - Health care consumer/patien...
26.886364
90
0.512257
[ "MIT" ]
davebronson/clear-hl7-net
src/ClearHl7.Codes/V280/CodePrimaryObserversQualification.cs
1,185
C#
namespace ESFA.DC.CollectionsManagement.Data.Entities { public partial class OrganisationCollection { public int OrganisationId { get; set; } public int CollectionId { get; set; } public Collection Collection { get; set; } public Organisation Organisation { get; set; } } ...
23
54
0.658385
[ "MIT" ]
SkillsFundingAgency/DC-CollectionsManagement
src/ESFA.DC.CollectionsManagement.Data/Entities/OrganisationCollection.cs
324
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.731518
281
0.606298
[ "Apache-2.0" ]
5u5hma/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/APIGateway/Basic/Get-AGMethod-Cmdlet.cs
11,496
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Pathfinder.Visualizer.Data { public class Node { public int Id { get; set; } public double X { get; set; } public double Y { get; set; } public State state { get; set; } ...
19.294118
40
0.625
[ "MIT" ]
MickJar/Pathfinder.Visualizer
GraphSolver/Services/Node.cs
330
C#
#if ENABLE_IL2CPP #define INLINE_METHODS #endif namespace ME.ECS.Collections { public struct IntrusiveHashSetBucket : IStructComponent { public IntrusiveList list; } public interface IIntrusiveHashSet { int Count { get; } void Add(in Entity entityData); bool Remove(in...
33.873333
135
0.609821
[ "MIT" ]
IgorAtorin/ecs-submodule
ECS/Core/Collections/Intrusive/IntrusiveHashSet.cs
10,164
C#
using System; namespace FluentInterface.Examples.Classes { internal class ForthService : IForthService { public ForthService(string someData) { } public void DestroyMe() { throw new NotImplementedException(); } } }
17
48
0.588235
[ "MIT" ]
tmaconko/FluentInterface
FluentInterface.Examples/Classes/ForthService.cs
289
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace TaskListMvc.Web.Models { public class ExternalLoginConfirmationViewModel { [Required] [Display(Name = "Email")] public string Email { get; set; } } public class ExternalLoginListViewModel ...
27.557522
110
0.588632
[ "MIT" ]
NCGTC/task-list-mvc
TaskListMvc.Web/Models/AccountViewModels.cs
3,116
C#
// <copyright file="RoomGenCross.cs" company="Audino"> // Copyright (c) Audino // Licensed under the MIT license. See LICENSE file in the project root for full license information. // </copyright> using System; using System.Collections.Generic; namespace RogueElements { [Serializable] public class RoomGenCro...
34.537815
117
0.595134
[ "MIT" ]
AntyMew/RogueElements
RogueElements/MapGen/Rooms/RoomGenCross.cs
4,112
C#
using System; namespace MetricsForceApp.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
17.833333
70
0.672897
[ "MIT" ]
christineschutz/MetricsForce
src/MetricsForceApp/Models/ErrorViewModel.cs
214
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. namespace mshtml { using System; using System.Collections; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices...
47.137931
170
0.744696
[ "MIT" ]
augustoproiete-forks/OpenLiveWriter--OpenLiveWriter
src/managed/OpenLiveWriter.Interop.Mshtml/mshtml/IHTMLFontSizesCollection.cs
1,367
C#
namespace WebServer.Server.Controllers { using HTTP; using Results; using System.Runtime.CompilerServices; using Contracts; using Identity; using Results.ViewEngine; public abstract class Controller { private UserIdentity user; private IViewEngine viewEngine; p...
29.037383
97
0.52945
[ "MIT" ]
GosuMonkeyManiak/CSharp-Web-Server
WebServer.Server/Controllers/Controller.cs
3,109
C#
//------------------------------------------------------------------------------ // <copyright file="TreeNodeBinding.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------------------ namespace Syst...
30.166096
163
0.472612
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/fx/src/xsp/system/Web/UI/WebControls/TreeNodeBinding.cs
17,617
C#
using System; using NightlyCode.Scripting.Data; using NightlyCode.Scripting.Extensions; namespace NightlyCode.Scripting.Operations.Values { /// <summary> /// shifts the bits of LHS by RHS to the right /// </summary> public class ShiftRight : ValueOperation { internal ShiftRight() { } ...
29.717949
90
0.58585
[ "Unlicense" ]
telmengedar/NightlyCode.Scripting
NightlyCode.Scripts/Operations/Values/ShiftRight.cs
1,161
C#
using System.Collections.Generic; using UnityEngine; namespace Hairibar.Ragdoll { public class RagdollBone { public PowerSetting PowerSetting { get => _powerSetting; set { PowerSetting oldValue = _powerSetting; _powerSetting =...
28.821782
123
0.5517
[ "MIT" ]
H-man/Hairibar.Ragdoll
Core/Runtime/Core/RagdollBone.cs
2,913
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...
26.701031
76
0.579537
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Monitor/Model/UpdatePanelSpec.cs
2,856
C#
using System; using WallF.BaseNEncodings.Inner; namespace WallF.BaseNEncodings { public partial class Base16Encoding : BaseEncoding { private Base16 b; private void InitAlgorithm(char[] alphabet) { this.b = new Base16(alphabet); } /// <summary> ///...
41.506173
139
0.624926
[ "Apache-2.0" ]
wujikui/BaseNEncodings.Net
BaseNEncodings/Base16Encoding_Algorithm.cs
3,364
C#
using System; using System.Linq; using Moq; using NModbus.Device; using NModbus.IO; using Xunit; namespace NModbus.UnitTests.Device { public class ModbusMasterFixture { private static IStreamResource StreamRsource => new Mock<IStreamResource>(MockBehavior.Strict).Object; private ...
41.546512
144
0.603974
[ "MIT" ]
matt-floyd-captiveaire/NModbus
NModbus.UnitTests/Device/ModbusMasterFixture.cs
3,575
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...
31.438356
182
0.554031
[ "Apache-2.0" ]
Melvinerall/aws-sdk-net
sdk/src/Services/Organizations/Generated/Model/PolicyTargetSummary.cs
4,590
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Serialization; using System.ComponentModel; using CommonUI; using Common; namespace ControlEngine { [Serializable] [XmlInclude(typeof(ControlButton))] [XmlInclude(typeof(ControlImage))] [XmlInclu...
31.932432
143
0.647905
[ "MIT" ]
twesd/editor
ControlEngine/ControlBase.cs
2,588
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace webfrontend { public class Startup { ...
27.58
106
0.591008
[ "MIT" ]
Azure/dev-spaces
samples/existingWindowsBackend/webfrontend-linux/Startup.cs
1,381
C#
using RimWorld; using RimWorld.BaseGen; using System; using Verse; namespace KCSG { internal class SymbolResolver_ScatterStuffAround : SymbolResolver { public override void Resolve(ResolveParams rp) { Map map = BaseGen.globalSettings.map; if (CGO.factionSettlement.scatt...
37.16129
124
0.554688
[ "MIT" ]
AndroidQuazar/VanillaFactionsExpanded-Core
Source/KCSG/SymbolResolvers/StructureRuining/SymbolResolver_ScatterStuffAround.cs
1,154
C#
using UnityEngine; using UnityEngine.UI; using TMPro; public class TechReference : MonoBehaviour { [SerializeField] private Image icon; [SerializeField] private TextMeshProUGUI nameText; [SerializeField] private TextMeshProUGUI description; [SerializeField] private Image b...
31.641509
151
0.623137
[ "Unlicense" ]
chrsjwilliams/Omino
Assets/Scripts/UI/TechReference.cs
1,679
C#
using Crt.Model.Dtos.RolePermission; using System; using System.Collections.Generic; using System.Text; using System.Text.Json.Serialization; namespace Crt.Model.Dtos.Permission { public class PermissionDto { [JsonPropertyName("id")] public decimal PermissionId { get; set; } public str...
24.777778
49
0.672646
[ "Apache-2.0" ]
AdvSol-Darrel/crt
api/Crt.Model/Dtos/Permission/PermissionDto.cs
448
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 * ...
29.698113
81
0.621347
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Vod/V20180717/Models/AiSampleWordInfo.cs
1,658
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...
33.885593
114
0.58722
[ "Apache-2.0" ]
UpendoVentures/aws-sdk-net
sdk/src/Services/Kendra/Generated/Model/QueryRequest.cs
7,997
C#
using System; using System.Globalization; using System.Linq; using System.Text.RegularExpressions; using Disruptor.PerfTests.Queue; namespace Disruptor.PerfTests { public class Program { public static void Main(string[] args) { if (!Options.TryParse(args, out var options)) ...
37.291971
164
0.516148
[ "Apache-2.0" ]
ikvm/Disruptor-net
src/Disruptor.PerfTests/Program.cs
5,111
C#
//--------------------------------------------------------------------------------------------------------- // ▽ Submarine Mirage Framework for Unity // Copyright (c) 2020 夢想海の水底より(from Seabed of Reverie) // Released under the MIT License : // https://github.com/FromSeabedOfReverie/SubmarineMirageFrameworkForUnity/...
36.277778
107
0.486983
[ "MIT" ]
TatemonSugorokuGame/TatemonSugorokuGame
Assets/SubmarineMirageFramework/Scripts/Setting/Application/SMFrameRate.cs
729
C#
using System.Windows.Controls; namespace PrestoCoverage.Options { /// <summary> /// Interaction logic for OptionsDialogPageControl.xaml /// </summary> public partial class OptionsDialogPageControl : UserControl { //public List<System.Drawing.Color> Colours = new List<System.Drawing.Color>(...
37.677419
133
0.653682
[ "Apache-2.0" ]
bobted/PrestoCoverage
PrestoCoverage/PrestoCoverage/Options/OptionsDialogPageControl.xaml.cs
4,674
C#
using Microsoft.Extensions.Options; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Table; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace LuckyDrawBot.Infrastructure.Database { ...
37.765152
158
0.602407
[ "MIT" ]
Office365DevOps/lucky-draw-bot
src/LuckyDrawBot/Infrastructure/Database/DataTable.cs
4,985
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20210201Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Extensions; /// <summary>Desktop properties that can be patched.</summary> public partial class DesktopPatchProperties : ...
46.365079
153
0.682985
[ "MIT" ]
AndriiKalinichenko/azure-powershell
src/DesktopVirtualization/generated/api/Models/Api20210201Preview/DesktopPatchProperties.cs
2,859
C#
using System; using UnityEngine; public class CustomerBehaviour : MonoBehaviour { private TextMesh text; public GameObject renderedCustomer; public ProgressBarBehaviour attachedBar; public Salad order; public Salad submittedFood = null; public GameObject powerUpPrefab; [NonSerialized...
33.581395
153
0.578428
[ "MIT" ]
seanboyy/Salad-Maker
Assets/AssetLibrary/Scripts/CustomerBehaviour.cs
5,778
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace UnitTests { using PandaSocialNetworkLibrary; [TestClass] public class UnitTests { [TestMethod, ExpectedException(typeof(ArgumentException))] public void EmailWithoutAtSign() { Panda panda = ...
21.304348
77
0.569388
[ "MIT" ]
ddyakov/PandaSocialNetwork
PandaSocialNetwork/UnitTests/UnitTests.cs
492
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.Buffers; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Threa...
42.502254
170
0.570447
[ "MIT" ]
333fred/runtime
src/libraries/System.Private.CoreLib/src/System/IO/Stream.cs
47,135
C#
using AllReady.Areas.Admin.Models; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using Xunit; namespace AllReady.UnitTest.ViewModels { public class TaskSummaryModelTests { [Fact] public void ValidationShouldFail_IfNoNameIsSupplied() {...
29.774194
112
0.654388
[ "MIT" ]
HydAu/AllReadyCopyJune10_2016
AllReadyApp/Web-App/AllReady.UnitTest/Models/TaskSummaryModelTests.cs
925
C#
using System.Linq; using Microsoft.EntityFrameworkCore; using Abp.Configuration; using Abp.Localization; using Abp.Net.Mail; namespace MyCore.BaseProject.EntityFrameworkCore.Seed.Host { public class DefaultSettingsCreator { private readonly BaseProjectDbContext _context; public DefaultSetting...
30.075
126
0.637573
[ "MIT" ]
liyahui520/BaseProject
aspnet-core/src/MyCore.BaseProject.EntityFrameworkCore/EntityFrameworkCore/Seed/Host/DefaultSettingsCreator.cs
1,205
C#
using System.Threading; using Construct.Admin.State; using NUnit.Framework; namespace Construct.Admin.Test.State { public class SessionTest { /// <summary> /// Session under test. /// </summary> private Session _session; /// <summary> /// Creates the test Sessio...
35.704545
104
0.581583
[ "MIT" ]
ChrisFigura/Makerspace-Database-Server
Construct.Admin.Test/State/SessionTest.cs
4,713
C#
using SFA.DAS.Commitments.Domain.Entities.TrainingProgramme; namespace SFA.DAS.Commitments.Infrastructure.Configuration { public class ApprenticeshipInfoServiceConfiguration : IApprenticeshipInfoServiceConfiguration { public string BaseUrl { get; set; } } }
31
97
0.784946
[ "MIT" ]
Ryan-Fitchett/Test
src/SFA.DAS.Commitments.Infrastructure/Configuration/ApprenticeshipInfoServiceConfiguration.cs
281
C#
using System.IO; using System; using UnityEngine; using KianCommons; namespace HideCrosswalks.Utils { using static TextureUtils; public static class DumpUtils { public static void LogUVs(NetInfo info1, NetInfo info2) { string m = "info1: " + info1.GetUncheckedLocalizedTitle() + "\n"; ...
41.275591
132
0.5248
[ "MIT" ]
CitiesSkylinesMods/HideCrosswalks
HideTMPECrosswalks/Utils/DumpUtils.cs
5,242
C#
#if __IOS__ || MACCATALYST using PlatformView = UIKit.UIStepper; #elif MONOANDROID using PlatformView = Microsoft.Maui.Platform.MauiStepper; #elif WINDOWS using PlatformView = Microsoft.Maui.Platform.MauiStepper; #elif (NETSTANDARD || !PLATFORM) || (NET6_0 && !IOS && !ANDROID) using PlatformView = System.Object; #endi...
27.777778
64
0.764
[ "MIT" ]
10088/maui
src/Core/src/Handlers/Stepper/IStepperHandler.cs
502
C#
using System; public class StartUp { public static void Main() { Book bookOne = new Book("Animal Farm", 2003, "George Orwell"); Book bookTwo = new Book("The Documents in the Case", 2002, "Dorothy Sayers", "Robert Eustace"); Book bookThree = new Book("The Documents in the Case", 1930); ...
25.904762
103
0.606618
[ "MIT" ]
GitHarr/SoftUni
Homework/C#Fundamentals/C# OOP Advanced/03. Iterators and Comparators/Lab/01.Library/StartUp.cs
546
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace eBordo.Api.Database { public class Pozicija { public int pozicijaId { get; set; } public string nazivPozicije { get; set; } public string skracenica { get; set; } } }
20.8
49
0.669872
[ "MIT" ]
harispandzic/eBordo-desktop-mobile
eBordo.Api/Database/Pozicija.cs
314
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace QRCoder { public class QRCodeGenerator : IDisposable { private static readonly char[] numTable = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' }; private static readonl...
48.579885
3,911
0.49183
[ "MIT" ]
riteshbxr/QRCoder
QRCoder/QRCodeGenerator.cs
76,319
C#
//----------------------------------------------------------------------------- // FILE: CancelRequest.cs // CONTRIBUTOR: Jeff Lill // COPYRIGHT: Copyright (c) 2005-2022 by neonFORGE LLC. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except...
31.197368
91
0.623366
[ "Apache-2.0" ]
codelastnight/neonKUBE
Lib/Neon.Temporal/Internal/ClientMessages/CancelRequest.cs
2,373
C#
using System; using System.Collections; using System.Collections.Generic; using TransactionService.Interfaces; namespace TransactionService { /// <summary> /// Validation Rules /// </summary> public class ValidationRules : IValidationRules { private Object _businessObject; private ...
34.04703
121
0.561323
[ "MIT" ]
mantnguyen/BudgetBalance
src/TransactionService/ValidationRules.cs
13,757
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VRCWorldPersistency { internal class Json { private const string JSON_FILE_NAME = "PersistentWorldData.json"; internal FileStructure ReadJsonFile() { ...
31.040816
120
0.582512
[ "MIT" ]
Reimajo/VRCWorldPersistency
VRCWorldPersistency/VRCWorldPersistency/Json.cs
1,523
C#
using OpenMysticSimpleTcp.Multithreading; using OpenMysticSimpleTcp.ReadWrite; using System; using System.Collections.Generic; using System.Net.Sockets; using System.Text; namespace OpenMysticSimpleTcp { public class ServerConnectedClient { public int UniqueId { get; private set; ...
27.3
82
0.669414
[ "Apache-2.0" ]
P3TE/OpenMysticSimpleTcp
OpenMysticSimpleTcp/Server/ServerConnectedClient.cs
1,094
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 ...
37.05
102
0.765857
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-emr/Emr/Transform/V20160408/DeleteClusterTemplateResponseUnmarshaller.cs
1,482
C#
namespace NewFormDB { public enum EditMode { Create, Edit, View } }
10.5
24
0.47619
[ "MIT" ]
DLPUIT/TrainingField2019
171NE_xiongxinqiang/StudentMansge/NewFormDB/EditMode.cs
107
C#
using MahApps.Metro.Controls; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using...
23.310345
56
0.727811
[ "MIT" ]
DaneSpiritGOD/SimpleEye
DisplayCenter.UI.Solution/Views/CachedImageWindow.xaml.cs
678
C#
using Microsoft.Management.Infrastructure; using Microsoft.Management.Infrastructure.Options; using SimCim.Core; using System; using System.Collections.Generic; using System.Linq; using System.Reactive.Linq; namespace SimCim.Root.StandardCimV2 { public struct MSFTNetConSecRuleMMAuthSetAssociation {...
47.75
192
0.702443
[ "Apache-2.0" ]
simonferquel/simcim
SimCim.Root.StandardCimV2/AssociationMSFTNetConSecRuleMMAuthSet.cs
2,294
C#
using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; using Altinn.Common.AccessTokenClient.Services; using Altinn.Studio.Designer.Configuration; using Altinn.Studio.Designer.TypedHttpClients.AltinnAuthentication; using Microsoft.Extensions.Options; namespace Altin...
45.481481
133
0.720684
[ "BSD-3-Clause" ]
TheTechArch/altinn-studio
src/studio/src/designer/backend/TypedHttpClients/DelegatingHandlers/PlatformBearerTokenHandler.cs
2,456
C#
using System.ComponentModel; namespace DataWF.Gui { public class ListEditorEventArgs : CancelEventArgs { public ListEditorEventArgs() : this(null) { } public ListEditorEventArgs(object item) { Item = item; } public object I...
17.55
55
0.529915
[ "MIT" ]
alexandrvslv/datawf
DataWF.Gui/Editors/ListEditorEventArgs.cs
353
C#
using System; using System.Collections.Generic; using System.Text; namespace Ace.AutoMapper { public class MapperDescritor { public MapperDescritor(Type sourceType, Type targetType, bool reverseMap) { this.SourceType = sourceType; this.TargetType = targetType...
30.869565
88
0.633803
[ "Apache-2.0" ]
a574676848/Ace
src/DotNetCore/Ace.AutoMapper/MapperDescritor.cs
712
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xam...
27.606061
106
0.723381
[ "Apache-2.0" ]
NoleHealth/xamarin-forms-book-preview-2
Chapter15/StepperDemo/StepperDemo/StepperDemo.UWP/MainPage.xaml.cs
913
C#
//----------------------------------------------------------------------------- // FILE: InternalPendingActivityInfo.cs // CONTRIBUTOR: Jeff Lill // COPYRIGHT: Copyright (c) 2005-2022 by neonFORGE LLC. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use th...
40.808
136
0.631249
[ "Apache-2.0" ]
codelastnight/neonKUBE
Lib/Neon.Cadence/Internal/InternalPendingActivityInfo.cs
5,103
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public interface ICar { void ApplySteer(); void Drive(); void Break(); }
15.090909
33
0.710843
[ "MIT" ]
ToniGalmes/GlobalGameJam2020
GlobalGameJam/Assets/Scripts/ICar.cs
168
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using Microsoft.Azure.Management.Compute; using Microsoft.Azure.Management.Compute.Models; using Microsoft.Azure.Management.Network; using Microsoft.Azure.Manage...
44.954155
216
0.544585
[ "MIT" ]
Mattlk13/azure-sdk-for-net
src/SDKs/Compute/Compute.Tests/ScenarioTests/VMTestBase.cs
47,069
C#
using System; namespace HallOfBeorn.Models.LotR.ProductGroups { public class ScenarioPackProductGroup : ProductGroup { public ScenarioPackProductGroup() : base("Scenario Packs") { AddChildProduct(Product.TheHuntForTheDreadnaught); AddChild...
25.066667
63
0.619681
[ "MIT" ]
danpoage/hall-of-beorn
src/HallOfBeorn/Models/LotR/ProductGroups/ScenarioPackProductGroup.cs
378
C#
using System.Threading; using System.Windows.Forms; namespace MFDExtractor { internal interface IInstrumentFactory { IInstrument Create(InstrumentType instrumentType); } class InstrumentFactory : IInstrumentFactory { private readonly IInstrumentStateSnapshotCache _instrumentStateS...
52.511628
200
0.735607
[ "MIT" ]
aliostad/deep-learning-lang-detection
data/train/csharp/90baa1f863a7674b0c601ff82e7b5ec9453771ecInstrumentFactory.cs
2,260
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 ...
39.3
129
0.779262
[ "Apache-2.0" ]
bbs168/aliyun-openapi-net-sdk
aliyun-net-sdk-adb/Adb/Transform/V20190315/ModifyDBClusterAccessWhiteListResponseUnmarshaller.cs
1,572
C#
using System; using System.Reactive; using System.Reactive.Linq; using System.Threading.Tasks; using Pirac.Commands; namespace Pirac { public static partial class PublicExtensions { public static void RaiseCanExecuteChanged(this System.Windows.Input.ICommand command) { v...
42.685185
149
0.661171
[ "MIT" ]
distantcam/Pirac
src/Pirac/Extensions/CommandExtensions.cs
2,252
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text.RegularExpressions; namespace ALE.Http { public class Route { public static readonly Regex PathParser = new Regex(@"\:(\w+?)(\W|$)"); public MethodInfo HandlerInfo; public reado...
40.686047
113
0.563304
[ "MIT" ]
benlesh/ALE
ALE.Http/Route.cs
3,499
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Te...
37.648649
84
0.744436
[ "MIT" ]
qine/ExSsdp
src/TestExSsdp/Properties/AssemblyInfo.cs
1,396
C#
namespace Generic.Delegates { class Animal { public string Name { get; set; } } }
13
40
0.557692
[ "MIT" ]
PrasadHonrao/Learn.CSharp
Language/Generics/Basic/Generic.Delegates/Animal.cs
106
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity.Core.Common.Internal.Materialization { using System.Data.Entity.Core.Objects.Internal; using System.Linq.Expressions; // <summary> // Type r...
33.451613
132
0.614272
[ "Apache-2.0" ]
CZEMacLeod/EntityFramework6
src/EntityFramework/Core/Common/internal/materialization/TranslatorResult.cs
2,074
C#
// <auto-generated /> namespace Lpp.Dns.Data.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] public sealed partial class ...
28.533333
107
0.635514
[ "Apache-2.0" ]
Missouri-BMI/popmednet
Lpp.Dns.Data/Migrations/201607131954474_AddRequestDocumentsTable.Designer.cs
856
C#
using System.Collections.Generic; using System.Text; namespace CtfTools { public static class EnumerableExtensions { public static string ToFlag(this IEnumerable<object> collection, string prefix = "") { var builder = new StringBuilder(); using (var e = collection.GetE...
24.457143
92
0.449766
[ "MIT" ]
michaeloyer/CtfTools
CtfTools/EnumerableExtensions.cs
858
C#
using Alabo.Datas.UnitOfWorks; using Alabo.Domains.Enums; using Alabo.Domains.Repositories; using Alabo.Domains.Repositories.EFCore; using Alabo.Extensions; using Alabo.Framework.Reports.Domain.Entities; using Alabo.Helpers; using Alabo.UI; using Alabo.UI.Design.AutoReports; using Alabo.UI.Design.AutoReports.Dtos; usi...
44.355748
144
0.484228
[ "MIT" ]
tongxin3267/alabo
src/01.framework/04-Alabo.Framework.Reports/Domain/Repositories/AutoReportRepository.cs
41,906
C#
using LinFx.Test.Domain.Models; using Microsoft.Extensions.Caching.Distributed; using Microsoft.Extensions.DependencyInjection; using System.Threading.Tasks; using Xunit; namespace LinFx.Test.Caching { public class MemoryCacheTest { private readonly IDistributedCache _cache; public MemoryCach...
24.472727
65
0.533432
[ "MIT" ]
ailuozhu/LinFx
test/LinFx.Test/Caching/MemoryCacheTests.cs
1,348
C#
namespace Curso.api.Business.Entities { public class Usuario { public int Codigo { get; set; } public string Login { get; set; } public string Email { get; set;} public string Senha { get; set; } } }
22.818182
44
0.561753
[ "MIT" ]
Raphael-Azevedo/Segunda-api-Dio
Curso.api/Business/Entities/Usuario.cs
253
C#
/* Copyright 2006-2015 Stefano Chizzolini. http://www.pdfclown.org Contributors: * Stefano Chizzolini (original code developer, http://www.stefanochizzolini.it) * Manuel Guilbault (code contributor [FIX:27], manuel.guilbault at gmail.com) This file should be part of the source code distribution of "PDF ...
29.813317
155
0.613489
[ "MIT" ]
diegolido/DanfeSharpCore
pdfclown.lib/src/org/pdfclown/documents/contents/fonts/Font.cs
25,073
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ChooseEnemy : MonoBehaviour { public enum Enemy { Rotate, Follow }; public Enemy ActiveState = Enemy.Rotate; public EnemyFollow enemyFollow; public LookAt enemyRotation; private void Start() { ...
23.15625
50
0.582996
[ "Apache-2.0" ]
Belijoha/vectores-belisario-unity
Assets/Scripts/ChooseEnemy.cs
741
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MP3ManagerBase.helpers; namespace MP3ManagerBase.manager.Export { /// <summary> /// Dient zum Export einer Playliste im Extneded M3U-Format /// </summary> internal class M3UExtende...
25.741935
80
0.537594
[ "MIT" ]
Kostarsus/MP3Manager
src/MP3ManagerBase/manager/Export/M3UExtended.cs
1,599
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("SqlServer.Rules.Generator")] [assembly: As...
40.171429
84
0.748933
[ "MIT" ]
Rogue-Archivists/SqlServer.Rules
SqlServer.Rules.Generator/Properties/AssemblyInfo.cs
1,409
C#
using UnityEngine; using System.Collections; using UnityEditor; namespace TerrainFromMesh { [CustomEditor(typeof(TerrainFromMeshComponent))] public class TerrainFromMeshInspector : Editor { void OnEnable() { EditorApplication.update += Update; } void OnDisable()...
31.387597
198
0.496172
[ "MIT" ]
kwnetzwelt/unity-blender-terrain-tools
Assets/TerrainFromMesh/scripts/Editor/TerrainFromMeshInspector.cs
4,049
C#
using Stump.DofusProtocol.Enums; using Stump.Server.WorldServer.Database.Items; using Stump.Server.WorldServer.Game.Actors.Look; using Stump.Server.WorldServer.Game.Actors.RolePlay.Characters; namespace Stump.Server.WorldServer.Game.Items.Player.Custom { [ItemId(ItemIdEnum.DOCTEUR_MINEUR_13754)] // ID ITEM - NOM ...
30.302326
96
0.56485
[ "Apache-2.0" ]
Daymortel/Stump
src/Stump.Server.WorldServer/game/items/player/Custom/SpellItem/roublard/Rebours.cs
1,304
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using Cysharp.Threading.Tasks; using static Helpers; public class GameManager : MonoBehaviour { public Texture2D cursorTexture; public Vector2 cursorHotSpot = Vector2.zero; public GameObject clockWidget; public GameObject sc...
28.904255
90
0.622378
[ "MIT" ]
letmaik/leafy
Assets/Scripts/GameManager.cs
2,717
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace Registru_Intrari_Iesiri.Migrations { public partial class CreateDocumentsNumbersSequence : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateSequence<int>("DocumentNumberSeque...
29.888889
106
0.710037
[ "MIT" ]
rododendron1001/Registru_Intrari_Iesiri_V1
Registru_Intrari_Iesiri/Registru_Intrari_Iesiri/Migrations/20200824165948_CreateDocumentsNumbersSequence.cs
540
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace AzurePipelines.TestLogger { internal class LoggerQueue { private readonly AsyncProducerConsumerCollection<ITestResult> _queue = new AsyncProducerConsume...
39.504545
208
0.563456
[ "MIT" ]
daveaglick/AzurePipelines.TestLogger
src/AzurePipelines.TestLogger/LoggerQueue.cs
8,693
C#
using System; using System.Collections.Generic; using System.Text; namespace TMS.ShopSimulator { internal class Cashier { private static Random rnd = new Random(); public int TimeToProcess { get; } public string Name { get; } public Cashier(int num) { this...
18.5
49
0.572482
[ "MIT" ]
tms-net/NET06
HomeWorks/HomeWork11/TMS.ShopSimulator/Cashier.cs
409
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 disable using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Test.Utilities; using X...
50.507692
223
0.629302
[ "MIT" ]
Acidburn0zzz/roslyn
src/Compilers/CSharp/Test/IOperation/IOperation/IOperationTests_IFromEndIndexOperation_IRangeOperation.cs
16,417
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.Generic; namespace Microsoft.AspNetCore.Razor.Language; public interface IImportProjectFeature : IRazorProjectEngineFeature { IReadOnlyList<RazorProje...
31
77
0.814516
[ "MIT" ]
MitrichDot/aspnetcore
src/Razor/Microsoft.AspNetCore.Razor.Language/src/IImportProjectFeature.cs
374
C#
namespace R1Engine { public class GBC_Knot : R1Serializable { public byte ActorsCount { get; set; } public ushort[] Actors { get; set; } public override void SerializeImpl(SerializerObject s) { ActorsCount = s.Serialize<byte>(ActorsCount, name: nameof(ActorsCount));...
30.571429
89
0.621495
[ "MIT" ]
rtsonneveld/Ray1Map
Assets/Scripts/DataTypes/GBC/Level/Scene/GBC_Knot.cs
430
C#
/* Generated By:CSharpCC: Do not edit this line. Token.cs Version 3.0 */ /// <summary> /// Describes the input token stream. /// </summary> public class Token { /// <summary> /// Gets an integer that describes the kind of this token. /// </summary> /// <remarks> /// This numbering system is determined by C...
34.658228
92
0.691015
[ "Apache-2.0" ]
apache/activemq-nms-msmq
src/main/csharp/Selector/Token.cs
2,738
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Maui.Internals; namespace System.Maui { internal sealed class ReadOnlyListAdapter : IList { readonly IReadOnlyCollection<object> _collection; readonly IReadOnlyList<object> _list; public ReadOnlyListAdapt...
17.346535
68
0.694635
[ "MIT" ]
AswinPG/maui
System.Maui.Core/ReadOnlyListAdapter.cs
1,752
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NewLife.Caching; using NewLife.Log; using Xunit; namespace XUnitTest { public class HashTest { private readonly FullRedis _redis; public HashTest() { _redis = new FullRedis("127.0.0...
25.282609
86
0.484953
[ "MIT" ]
JohnZhaoXiaoHu/NewLife.Redis
XUnitTest/HashTest.cs
2,364
C#
 namespace BrmsGeneratorResearcher { partial class CptForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
49.131579
107
0.602035
[ "MIT" ]
nadavWeisler/PopUpResearcher
PopUp_Researcher/cpt.Designer.cs
13,071
C#
 using MsgPack.Serialization; using System; namespace Stormancer.Server.Plugins.Analytics { /// <summary> /// An analytics event sent by a game client/server. /// </summary> public class EventDto { /// <summary> /// Type of the event. /// </summary> [MessagePackMemb...
24.540541
56
0.529736
[ "MIT" ]
Stormancer/plugins
src/Stormancer.Plugins/Analytics/Stormancer.Server.Plugins.Analytics/Dto/EventDto.cs
910
C#
//BSD, 2014-present, WinterDev //---------------------------------------------------------------------------- // Anti-Grain Geometry - Version 2.4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) // // C# Port port by: Lars Brubaker // larsbrubaker@gmail.com // Copyright (C) 2007 ...
38.572917
107
0.447205
[ "MIT" ]
Ferdowsur/Typography
PixelFarm/PixelFarm.CpuBlit/04_FragmentProcessing/SpanInterpolatorPerspectiveLerp.cs
7,406
C#
using System; using System.Collections.Generic; namespace AirTableProxy.WebAPI.Business.Dtos.AirTableDtos { public record MessageInfoDto(string Id, string Summary, string Message, DateTime? ReceivedAt); public record MessageResponseDto(string Id, MessageInfoDto Fields, DateTime CreatedTime); public reco...
32.9375
98
0.812144
[ "MIT" ]
matusmrazik/air-table-proxy
AirTableProxy/AirTableProxy.WebAPI/Business/Dtos/AirTableDtos.cs
529
C#
/* Copyright 2017 Cimpress Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribute...
34.446154
152
0.648236
[ "Apache-2.0" ]
Cimpress-ACS/Mosaic
src/Utils/Backup.Tests/FileBackupProviderDebouncedTests.cs
11,195
C#