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 UnityEngine; using UnityEditor; namespace com.spacepuppyeditor.AI.Sensors { internal static class SensorRenderUtil { #region Fields private static Material _arcMaterial; public static Material ArcMaterial { get { if (_arcMaterial...
30.61039
81
0.484514
[ "Unlicense" ]
lordofduct/spacepuppy-unity-framework
SpacepuppyAIEditor/AI/Sensors/SensorRenderUtil.cs
2,359
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace WebAppVeterinary { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { AreaRegistr...
22.526316
61
0.663551
[ "MIT" ]
fernandezjr/veterinary-clinic
SolutionVeterinary/WebAppVeterinary/Global.asax.cs
430
C#
using AgileAES.Models; using System; using System.Net; using System.Security; using System.Security.Cryptography; using System.Threading.Tasks; namespace AgileAES.Extensions { public static class EncryptedSecureStringExtensions { /// <summary> /// Decrypts an encrypted SecureString thats been ...
36.466667
117
0.659963
[ "MIT" ]
vitawebsitedesign/AgileAES
AgileAES/AgileAES/Extensions/EncryptedSecureStringExtensions.cs
1,096
C#
using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json.Linq; using System; using MachinaTrader.Globals.Helpers; using MachinaTrader.Models; using MachinaTrader.Globals; using MachinaTrader.Globals.Models; using Microsoft.AspNetCore.Authorization; namespace MachinaTrader.Controllers { [Authorize, Route("api/config/"...
26.863636
166
0.608291
[ "MIT" ]
elha/MachinaTrader
MachinaTrader/Controllers/ApiConfig.cs
1,182
C#
using NodaTime; namespace Test.RCS1201 { public class MyEntity { public long Col1 { get; set; } public MyEnum Col2 { get; set; } public YearMonth Col3 { get; set; } } }
15.923077
43
0.574879
[ "Unlicense" ]
pgrm/code-analyzers-tests
Test/RCS1201/MyEntity.cs
207
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("161...
37.243243
84
0.745283
[ "MIT" ]
CommName/MauMau
GameEngine/16114/Properties/AssemblyInfo.cs
1,381
C#
using MasterDevs.ChromeDevTools; using Newtonsoft.Json; using System.Collections.Generic; namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page { /// <summary> /// Information about the Frame on the page. /// </summary> [SupportedBy("Chrome")] public class Frame { /// <summary> /// Gets or sets Frame uniq...
30.48
95
0.673885
[ "MIT" ]
Digitalbil/ChromeDevTools
source/ChromeDevTools/Protocol/Chrome/Page/Frame.cs
1,524
C#
using System; using System.Collections.Generic; namespace Ela.Compilation { internal sealed class ConstructorData { public string TypeName { get; internal set; } public int TypeModuleId { get; internal set; } public int Code { get; internal set; } internal int T...
23.444444
55
0.605055
[ "MIT" ]
vorov2/ela
Ela/Ela/Compilation/ConstructorData.cs
635
C#
// Copyright (c) Leonardo Brugnara // Full copyright and license information in LICENSE file using Zenit.Ast; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; namespace Zenit.Syntax { public class Parser : IParser { #region Private fields ...
36.245087
210
0.527558
[ "MIT" ]
lbrugnara/flsharp
FrontEnd/Syntax/Parser.cs
62,706
C#
using System; namespace Open_Lab_02._04 { class Farm { public int GetLegsCount(int chickens, int cows, int pigs) { return (chickens * 2 + cows * 4 + pigs * 4); } } }
16.538462
65
0.530233
[ "MIT" ]
martinorion/Open-Lab-02.04
Open-Lab-02.04/Farm.cs
215
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace CLRProfiler.Behaviors { public static class DialogCloser { public static readonly DependencyProperty DialogResultProperty = DependencyProperty.RegisterAttached( ...
23.424242
66
0.754204
[ "MIT" ]
kingraham/debugging-clrmd
CLRProfiler/Behaviors/DialogResult.cs
775
C#
using System.Text; using MyStik.TimeTable.Data; using System; using System.Collections.Generic; using System.Linq; namespace MyStik.TimeTable.Web.Models { /// <summary> /// /// </summary> public class ActivityCurrentModel { /// <summary> /// /// </summary> public ...
25.688264
116
0.406463
[ "MIT" ]
AccelerateX-org/NINE
Sources/TimeTable/MyStik.TimeTable.Web/Models/ActivityModels.cs
21,017
C#
using System; using System.Collections.Generic; using System.Text; namespace InventoryManagementSoftware.Model.Requests { public class ImportExportDetailSearchObject { public int? ImportExportId { get; set; } } }
19.583333
52
0.740426
[ "MIT" ]
farisl/InventoryManagementSoftware
InventoryManagementSoftware/InventoryManagementSoftware.Model/Requests/ImportExportDetailSearchObject.cs
237
C#
using System; using System.Collections.Generic; using System.Linq; namespace Telerik_OOP_03_Principles__StudentsAndWorkers { class StartUp { static void Main(string[] args) { // We initialize a list of 10 students and sort them by grade in ascending order. var listStude...
51.622222
144
0.582006
[ "MIT" ]
SophiaKiryakova/TelerikAcademyAlpha
Module I/C#-OOP/Homework/03. OOP-Principles-Part-1/StudentsAndWorkers/Telerik_OOP_03_Principles_ StudentsAndWorkers/StartUp.cs
2,325
C#
using System.Collections.Generic; using TinyECS.Interfaces; using TinyECSUnityIntegration.Impls; using UnityEngine; public class RotatingCubesSystem: IUpdateSystem { protected IWorldContext mWorldContext; public RotatingCubesSystem(IWorldContext worldContext) { mWorldContext = worldContext; ...
34.040816
165
0.673861
[ "Apache-2.0" ]
bnoazx005/TinyECS
Samples/Tutorial02_TinyECSIntegrationWithUnity3D/Assets/Scripts/Systems/RotatingCubesSystem.cs
1,670
C#
using AutoMapper; using JokesOnYou.Web.Api.DTOs; using JokesOnYou.Web.Api.Models; namespace JokesOnYou.Web.Api.Profiles { public class TagProfile : Profile { public TagProfile() { CreateMap<Tag, TagReplyDto>(); CreateMap<TagCreateDto, Tag>(); } } }
19.4375
43
0.614148
[ "Unlicense" ]
Palisar/JokesOnYou
Server/JokesOnYou.Web.Api/Profiles/TagProfile.cs
313
C#
namespace treeDiM.StackBuilder.Desktop { partial class DockContentDocumentExplorer { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being...
54.521127
171
0.643632
[ "Unlicense", "MIT" ]
siranen/PalletBuilder
TreeDim.StackBuilder.Desktop/DockContentDocumentExplorer.Designer.cs
7,744
C#
using Quasar.Client.Networking; using Quasar.Common; using Quasar.Common.Enums; using Quasar.Common.Extensions; using Quasar.Common.Helpers; using Quasar.Common.IO; using Quasar.Common.Messages; using Quasar.Common.Models; using Quasar.Common.Networking; using System; using System.Collections.Concurrent; using System....
34.720648
124
0.447003
[ "Apache-2.0", "MIT" ]
2-young-2-simple/QuasarRAT
Quasar.Client/Messages/FileManagerHandler.cs
17,154
C#
// // Copyright (c) 2019-2021 Angouri. // AngouriMath is licensed under MIT. // Details: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md. // Website: https://am.angouri.org. // using static System.Console; using AngouriMath.Extensions; using static AngouriMath.MathS; using AngouriMath; using stati...
30.898551
131
0.633208
[ "MIT" ]
asc-community/AngouriMath
Sources/Samples/SampleNet5/Program.cs
2,134
C#
using System; using System.Collections.Generic; using System.Text; using Xunit; namespace CnDream.Core.Test { public class UnpackerTests { [Fact] public void SmallPayload() { var unpacker = new DataUnpacker(new IdentityTransformer()); var input = new byte[] ...
29.11236
104
0.464685
[ "MIT" ]
PartysLead/CN_Dream
src/Core.Test/UnpackerTests.cs
2,593
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
33.98913
173
0.645987
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/FSx/Generated/Model/Internal/MarshallTransformations/BackupFailureDetailsUnmarshaller.cs
3,127
C#
/* Copyright (c) Citrix Systems Inc. * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted provided * that the following conditions are met: * * * Redistributions of source code must retain the above * copyright notice, this li...
38.549296
141
0.677749
[ "BSD-2-Clause" ]
cheng-z/xenadmin
XenModel/Actions/Host/UpdateIntegratedGpuPassthroughAction.cs
2,739
C#
#region License, Terms and Conditions // // Jayrock - JSON and JSON-RPC for Microsoft .NET Framework and Mono // Written by Atif Aziz (atif.aziz@skybow.com) // Copyright (c) 2005 Atif Aziz. All rights reserved. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU L...
29.707006
125
0.628002
[ "MIT" ]
P79N6A/abp-ant-design-pro-vue
Niue.Alipay/Jayrock/Json/Json/Conversion/Converters/NumberImporter.cs
4,664
C#
// Automatically generated by xdrgen // DO NOT EDIT or your changes may be overwritten namespace stellar_dotnetcore_sdk.xdr { // === xdr source ============================================================ // struct Curve25519Secret // { // opaque key[32]; // }; // =======================================...
32.090909
103
0.558074
[ "Apache-2.0" ]
ammogcoder/dotnet-stellar-sdk
stellar-dotnetcore-sdk/xdr/generated/Curve25519Secret.cs
1,059
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Testing; using Test.Utilities; using Xunit; using VerifyCS = Test.Ut...
32.865041
173
0.666931
[ "Apache-2.0" ]
AndrewZu1337/roslyn-analyzers
src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Security/UseDefaultDllImportSearchPathsAttributeTests.cs
20,214
C#
using System; using System.Collections.Generic; using Abp.Authorization.Users; using Abp.Extensions; namespace template.Authorization.Users { public class User : AbpUser<User> { public const string DefaultPassword = "123qwe"; public static string CreateRandomPassword() { r...
24.771429
83
0.561707
[ "MIT" ]
mirusky/identity-abp
src/template.Core/Authorization/Users/User.cs
869
C#
using System; using System.Threading.Tasks; using CloudKit; using ObjCRuntime; namespace Foundation { #if MONOMAC || IOS public partial class NSItemProvider { #if !NET && MONOMAC [Obsolete ("Use RegisterCloudKitShare (CloudKitRegistrationPreparationAction) instead.")] public virtual void RegisterCloudKitShare (...
25.676768
114
0.675059
[ "BSD-3-Clause" ]
SotoiGhost/xamarin-macios
src/Foundation/NSItemProvider.cs
2,542
C#
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; using Oxide.Core; using System; using System.Collections.Generic; using System.Linq; using static TechTreeData; namespace Oxide.Plugins { [Info("Tech Tree Control", "WhiteThunder", "0.2.0")] [Description("Allows customizin...
35.854103
137
0.576212
[ "MIT" ]
WheteThunger/TechTreeControl
TechTreeControl.cs
11,798
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> //--...
33.680556
159
0.68866
[ "MIT" ]
kobush/Toolkit
Source/Samples/HackTest/Properties/Resources.Designer.cs
2,427
C#
using System; using System.Xml.Serialization; namespace Niue.Alipay.Domain { /// <summary> /// KbAdvertChannelResponse Data Structure. /// </summary> [Serializable] public class KbAdvertChannelResponse : AopObject { /// <summary> /// 渠道ID /// </summary> [XmlElem...
22.348837
52
0.497399
[ "MIT" ]
P79N6A/abp-ant-design-pro-vue
Niue.Alipay/Domain/KbAdvertChannelResponse.cs
1,009
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BTCPayServer.Models.AppViewModels { public class ViewPointOfSaleViewModel { public class Item { public class ItemPrice { public string Formatted { ...
29.081081
53
0.564126
[ "MIT" ]
Deimoscoin/btcpayserver
BTCPayServer/Models/AppViewModels/ViewPointOfSaleViewModel.cs
1,078
C#
namespace RealPollSignalR.Migrations { using System; using System.Data.Entity.Migrations; public partial class Start : DbMigration { public override void Up() { CreateTable( "dbo.Answers", c => new { ...
32.6
84
0.427403
[ "MIT" ]
rlbisbe/RealPollSignalR
RealPollSignalR/Migrations/201402232204183_Start.cs
1,467
C#
/* SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. * * Licensed to Elasticsearch B.V. unde...
26.358209
75
0.713477
[ "Apache-2.0" ]
Bit-Quill/opensearch-net
tests/Tests/Mapping/Types/Specialized/TokenCount/TokenCountAttributeTests.cs
1,766
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("Su...
38.513514
84
0.745965
[ "MIT" ]
BlueDress/School
Programming Fundamentals C#/Lists/Sum Adjacent Equal Numbers/Properties/AssemblyInfo.cs
1,428
C#
// //#if CSHARP_7_OR_LATER || (UNITY_2018_3_OR_NEWER && (NET_STANDARD_2_0 || NET_4_6)) //#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member // //using System.Collections.Generic; //using System.Threading; //using UnityEngine; //using UnityEngine.EventSystems; // //namespace UniRx....
29.857143
110
0.66567
[ "MIT" ]
MaxShwachko/unirxrealis
Assets/Runtime/Async/Triggers/AsyncJointTrigger.cs
1,672
C#
using System.Linq; using System.Threading; using FlaUI.Core.AutomationElements.PatternElements; using FlaUI.Core.Definitions; namespace FlaUI.Core.AutomationElements { /// <summary> /// Class to interact with a menu item element. /// </summary> public class MenuItem : AutomationElement { p...
39.78481
188
0.527999
[ "MIT" ]
ChrisZhang95/FlaUI
src/FlaUI.Core/AutomationElements/MenuItem.cs
6,288
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // ------------------------------------------------------------------------------ // Changes to this file must follow the https://aka.ms/api-review process. // -----------------------...
61.107692
265
0.694444
[ "MIT" ]
Acidburn0zzz/runtime
src/libraries/System.Threading.Thread/ref/System.Threading.Thread.cs
11,916
C#
// ------------------------------------------------------------------------------ // <autogenerated> // This code was generated by a tool. // Mono Runtime Version: 4.0.30319.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </autogenerat...
29.30303
81
0.611169
[ "Apache-2.0" ]
remotesyssupport/cato
web/pages/cloudEdit.aspx.designer.cs
967
C#
using Microsoft.AspNetCore.Mvc; namespace PokemonApi.Controllers { [ApiController] [Route("[controller]")] public class WeatherForecastController : ControllerBase { private static readonly string[] Summaries = new[] { "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Bal...
30.666667
106
0.591897
[ "MIT" ]
220328-uta-sh-net-ext/EdithKennedyTynes
220328 Training/PokemonApp/PokemonApi/Controllers/WeatherForecastController.cs
1,012
C#
using System.Collections; using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; using UnityEditor; using UnityEngine; namespace BlueToolkit { public class AutoAddNameSpace : UnityEditor.AssetModificationProcessor { private static void OnWillCreateAsset(string path) ...
26.359223
95
0.465562
[ "MIT" ]
BlueMonk1107/BlueGameAI
Assets/ToolKit/AutoAddNamespace/AutoAddNameSpace.cs
2,741
C#
using System; using System.Collections.Generic; namespace NetDependencyWalker.Walking { using System.Linq; using NetDependencyWalker.ViewModel; using Mono.Cecil; internal class TypeInspector { private readonly OrderingType _orderingType; public TypeInspector(OrderingType ordering...
46.456204
221
0.62283
[ "MIT" ]
mattwhitfield/NetDependencyWalker
src/Walking/TypeInspector.cs
12,731
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.Collections.Generic; using System.Diagnostics; using static System.Linq.Utilities; namespace System.L...
37.596618
141
0.498554
[ "MIT" ]
06needhamt/runtime
src/libraries/System.Linq/src/System/Linq/Where.cs
15,567
C#
//------------------------------------------------------------------------------ // <auto-generated> // Ce code a été généré par un outil. // Version du runtime :4.0.30319.42000 // // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si // le c...
43.826923
184
0.581615
[ "MIT" ]
mk-dev-team/mk-roundscreen
src/RoundScreenCorner/Properties/Resources.Designer.cs
4,596
C#
using System; using System.Collections.Generic; using UnityEngine; using UnityEditor; using IODirection = ActionConnection.IODirection; using InterfaceTypes = NodeInterface.InterfaceTypes; using Ifaces = WalkAction.Ifaces; public class WalkNode : BaseNode { public float walkSpeed; public float walkDura...
27.810811
118
0.639942
[ "Apache-2.0" ]
Aspekt1024/ClumsyBat
Assets/Scripts/Editor/NodeEditor/BossEditor/Nodes/WalkNode.cs
2,060
C#
/* * Copyright (c) 2022 ETH Zürich, Educational Development and Technology (LET) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System; namespace S...
31.342857
126
0.757521
[ "MPL-2.0" ]
RickAllMighty8195/seb-win-refactoring
SafeExamBrowser.WindowsApi/Constants/AccessMask.cs
1,100
C#
using System.Collections.Generic; using System.Reflection; using UnityEngine; using UnityEngine.Experimental.Rendering.Universal; namespace TilemapShadowCaster.Runtime { public class PathShadow : ShadowCaster2D { static FieldInfo shapeFieldInfo = typeof(ShadowCaster2D).GetField("m_ShapePath", ...
41.481481
107
0.713393
[ "Apache-2.0" ]
corynorris/brackeys-2020.2
Assets/Tilemap-Shadow-Caster-main/Runtime/PathShadow.cs
1,122
C#
/* * Copyright (c) Contributors, 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 are met: * * Redistributions of source code must r...
38.321739
140
0.619923
[ "BSD-3-Clause" ]
AI-Grid/AI-Grid-2.0
OpenSim/Region/ClientStack/Linden/Caps/UploadBakedTextureModule.cs
8,814
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests { using Microsoft.TestPlatform.Extensions.TrxLogger.XML; using Microsoft.VisualStud...
44.680556
101
0.648119
[ "MIT" ]
5259807/vstest
test/Microsoft.TestPlatform.Extensions.TrxLogger.UnitTests/XmlPersistenceTests.cs
3,227
C#
[Serializable] public class Win32Exception : ExternalException, ISerializable // TypeDefIndex: 1820 { // Fields private readonly int nativeErrorCode; // 0x88 private static bool s_ErrorMessagesInitialized; // 0x0 private static Dictionary<int, string> s_ErrorMessage; // 0x8 // Properties public int NativeErrorCo...
30.428571
89
0.745696
[ "MIT" ]
SinsofSloth/RF5-global-metadata
System/ComponentModel/Win32Exception.cs
1,278
C#
using Newtonsoft.Json.Linq; namespace DevLab.JmesPath.Expressions { public sealed class JmesPathEqualOperator : JmesPathComparison { /// <summary> /// Initialize a new instance of the <see cref="JmesPathEqualOperator"/> class. /// </summary> /// <param name="left"></par...
32.5
108
0.605917
[ "Apache-2.0" ]
IntranetFactory/JmesPath.Net
src/jmespath.net/Expressions/JmesPathEqualOperator.cs
845
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace Farenzena.Lib.EventAggregator { public interface IEventHub { void Subscribe(object subscriber); void Unsubscribe(object subscriber); void Publish<TEvent>(TEvent eventToPublish); ...
21.8
52
0.724771
[ "MIT" ]
iurifarenzena/Farenzena.Lib
Farenzena.Lib.EventAggregator/IEventHub.cs
329
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using AloysAdjustments.Common.JsonConverters; using AloysAdjustments.Configuration; using AloysAdjustments.Logic; using AloysAdjustments.Plugins.Comm...
34.533333
105
0.543973
[ "MIT" ]
AkiniKites/AloysAdjustments
src/AloysAdjustments.Tools/CharacterReferences.cs
4,664
C#
using System.Collections.Generic; using UnityEngine; namespace PofyTools { [System.Serializable] public class ProficiencyDefinition : Definition { public ProficiencyDefinition(string id) { this.id = id; } /// <summary> /// Level represents key-value pai...
31.119497
154
0.563662
[ "MIT" ]
PofyTeam/PofyTools
Data/Proficiency.cs
4,950
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. namespace Microsoft.ML.Probabilistic.Learners.Tests { using Microsoft.ML.Probabilistic.Collections; using Mi...
57.353712
240
0.627836
[ "MIT" ]
RinSer/infer
test/Learners/LearnersTests/ClassifierEvaluatorTests.cs
26,268
C#
using System; using System.Collections.Generic; namespace Com.Ctrip.Framework.Apollo.Core.Utils { public static class CollectionUtil { public static bool IsNullOrEmpty<T>(List<T> list) { return list == null || list.Count == 0; } public static V TryGet<K, V>(IDicti...
21.782609
64
0.41517
[ "Apache-2.0" ]
307209239/apollo-net
Apollo/Core/Utils/CollectionUtil.cs
1,004
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.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentMode...
43.300305
258
0.528569
[ "MIT" ]
DiogoMartinh0/winforms
src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/ToolStripDesignerUtils.cs
28,407
C#
// Crest Ocean System // This file is subject to the MIT License as seen in the root of this folder structure (LICENSE) using UnityEngine; using UnityEngine.Experimental.Rendering; using UnityEngine.Rendering; namespace Crest { /// <summary> /// Base class for data/behaviours created on each LOD. /// </...
37.907631
172
0.617968
[ "MIT" ]
573456721/-1
crest/Assets/Crest/Crest/Scripts/LodData/LodDataMgr.cs
9,441
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using SapphireDb.Models.Exceptions; namespace SapphireDb.Helper { public static class ExpressionHelper { public static MethodCal...
44.615
124
0.5961
[ "MIT" ]
SapphireDb/SapphireDb
SapphireDb/Helper/ExpressionHelper.cs
8,925
C#
using System; using System.IO; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; namespace VPX.Presentation.WebClient.Infrastructure.Managers.Uploader { public class FileUploader { public static async Task<string> UploadToBase64(IFormFile file) { using var stream = new...
25.695652
71
0.63621
[ "MIT" ]
VadimProkopchuk/JML
src/VPX.Presentation.WebClient/Infrastructure/Managers/Uploader/FileUploader.cs
593
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> //--...
37.424138
243
0.580116
[ "MIT" ]
kinelski/azure-sdk-for-net
sdk/eventhub/Azure.Messaging.EventHubs/src/Resources.Designer.cs
10,855
C#
using System; using System.Collections.Generic; using System.Linq; namespace Storage.Net.Blob { /// <summary> /// Blob item description /// </summary> public class BlobId : IEquatable<BlobId> { /// <summary> /// Gets the kind of item /// </summary> public BlobItemKind Kind { get...
27.016129
89
0.549851
[ "MIT" ]
romkij/storage
src/Storage.Net/Blob/BlobId.cs
3,352
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Collections.Immutable; using System.Runtime.CompilerServices; using System.Threading.Tasks; namespace Roslyn....
37.327273
161
0.654652
[ "Apache-2.0" ]
0x53A/roslyn
src/Workspaces/Core/Portable/Utilities/SpecializedTasks.cs
2,055
C#
using System; using Moq; using IMDB.Repository.Interfaces; using System.Collections.Generic; using IMDBApp.Models.Classes; using System.Linq; namespace IMDB.Test.MockResources { public class ProducerMock { public static readonly Mock<IProducerRepository> ProducerRepoMock = new Mock<IProduce...
29.782609
143
0.484185
[ "MIT" ]
cdrsonu/API
IMDBAppAPI/IMDBTest/MockResources/ProducerMock.cs
2,057
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.Linq; using Microsoft.DotNet.RemoteExecutor; using Xunit; using Xunit.Sdk; namespace Microsoft.VisualBasic.Tests { public class FileSystemTests : Syst...
41.024291
170
0.568144
[ "MIT" ]
BreyerW/runtime
src/libraries/Microsoft.VisualBasic.Core/tests/FileSystemTests.cs
30,399
C#
// Project: Daggerfall Tools For Unity // Copyright: Copyright (C) 2009-2021 Daggerfall Workshop // Web Site: http://www.dfworkshop.net // License: MIT License (http://www.opensource.org/licenses/mit-license.php) // Source Code: https://github.com/Interkarma/daggerfall-unity // Original...
36.74918
163
0.543159
[ "MIT" ]
deepfighter/daggerfall-unity
Assets/Scripts/Game/Items/DaggerfallUnityItem.cs
67,251
C#
using Api.Contract; using EmpleoDotNet.Core.Domain; using EmpleoDotNet.WebAPI.Helpers; namespace EmpleoDotNet.WebAPI.Services { public interface IJobOpportunityToMobileJobAdapter { JobCardDTO GetJobCard(JobOpportunity jobOpportunity); JobDetailResponse GetJobDetails(JobOpportunity jobOpportun...
38.627119
130
0.628346
[ "Unlicense" ]
ArielVillalona/empleo-dot-net
EmpleoDotNet.WebApi/Services/IJobOpportunityToMobileJobAdapter.cs
2,283
C#
using Netnr.Core; using Netnr.SharedFast; namespace Netnr.Guff.Application { public class BuildService { /// <summary> /// 链接 /// </summary> /// <param name="path"></param> /// <returns></returns> public static string AutoLink(string path = "") { ...
23.761905
95
0.51503
[ "MIT" ]
Rabbit2108/np
src/Netnr.P/Netnr.Guff/Application/BuildService.cs
505
C#
using System; using System.ComponentModel; using EfsTools.Attributes; using EfsTools.Utils; using Newtonsoft.Json; namespace EfsTools.Items.Nv { [Serializable] [NvItemId(4512)] [Attributes(9)] public class C1WcdmaBc4LnaOffsetVsFreq4 { [ElementsCount(16)] [ElementType("...
20
44
0.607143
[ "MIT" ]
HomerSp/EfsTools
EfsTools/Items/Nv/C1WcdmaBc4LnaOffsetVsFreq4I.cs
420
C#
namespace BizHawk.Client.EmuHawk { partial class CGBColorChooserForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">...
41.253333
155
0.71504
[ "MIT" ]
diddily/BizHawk
src/BizHawk.Client.EmuHawk/config/GB/CGBColorChooserForm.Designer.cs
9,284
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 Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Remote { /// <summary> /// Abstract...
52.763636
132
0.646106
[ "MIT" ]
belav/roslyn
src/Workspaces/Core/Portable/Remote/RemoteServiceName.cs
5,806
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.Diagnostics; using System.Reflection.Metadata.Ecma335; using System.Runtime.CompilerServices; namespace System.Reflection.Metadata { public partial class MetadataRe...
51.861613
292
0.619904
[ "MIT" ]
2m0nd/runtime
src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/MetadataReader.WinMD.cs
43,097
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; using WebAppBusStation.Models; namespace WebAppBusStation.Controllers { public class flightsController : Controller { private bus_st...
33.328467
152
0.555848
[ "MIT" ]
MegaRoks/BusStationApp
WebAppBusStation/Controllers/flightsController.cs
4,846
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("Th...
37.914286
77
0.755087
[ "MIT" ]
lionell/winnie_the_pooh_game
TheVinniPooh/TheVinniPooh/TheVinniPooh/Properties/AssemblyInfo.cs
1,330
C#
#region License // Copyright (c) 2007 James Newton-King // // 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,...
37.689655
105
0.667429
[ "MIT" ]
leancloud/csharp-sdk
Libs/Newtonsoft.Json.AOT/Converters/DateTimeConverterBase.cs
2,188
C#
using EPiServer.Framework.Localization; using System; using EPiServer.Commerce.Order; namespace EPiServer.Reference.Commerce.Site.Features.Payment.PaymentMethods { public abstract class PaymentMethodBase { protected readonly LocalizationService _localizationService; protected PaymentMethodBas...
28.875
87
0.735931
[ "Apache-2.0" ]
danghung1202/MyQuicksilverB2B
Sources/EPiServer.Reference.Commerce.Site/Features/Payment/PaymentMethods/PaymentMethodBase.cs
695
C#
/* * Copyright (c) 2015-2022 GraphDefined GmbH * This file is part of WWCP OCPI <https://github.com/OpenChargingCloud/WWCP_OCPI> * * 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 * * ...
30.066667
155
0.570712
[ "Apache-2.0" ]
GraphDefined/WWCP_OCPI
NET6/WWCP_OCPIv2.1.1/DataTypes/Simple/CountryCode.cs
10,375
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="Extensions.cs" company="CatenaLogic"> // Copyright (c) 2014 - 2014 CatenaLogic. All rights reserved. // </copyright> // ---------------------------------------------------------...
35.9
120
0.435933
[ "MIT" ]
Fody/LoadAssembliesOnStartup
src/LoadAssembliesOnStartup.Fody/Extensions/StringExtensions.cs
720
C#
using System; using System.Collections.Generic; using System.Linq; using UnityEditor; using UnityEngine; namespace SuperUnityBuild.BuildTool { [Serializable] public class BuildPlatform { public bool enabled = false; public BuildDistributionList distributionList = new BuildDistributionList(...
26.484211
98
0.507154
[ "MIT" ]
CollegiumXR/unity-build
Editor/Build/Platform/BuildPlatform.cs
2,518
C#
using System; namespace WIM.Extensions { //Extension methods must be defined in a static class public static class StringExtensions { // This is the extension method. // The first parameter takes the "this" modifier // and specifies the type for which the me...
28.035714
76
0.561783
[ "CC0-1.0", "MIT" ]
jknewson/WiM.Standard
Extensions/StringExtensions.cs
787
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.Linq; using System.Security.Cryptography.X509Certificates; using Test.Cryptography; using Xunit; names...
39.272978
132
0.578343
[ "MIT" ]
BigBadBleuCheese/corefx
src/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs
42,729
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Atlass.Framework.Common.Log; using Atlass.Framework.ViewModels; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options;...
33.166667
136
0.596403
[ "MIT" ]
aprilyush/EasyCMS
Atlass.Framework.Core/Middleware/AtlassExceptionMiddlerware.cs
3,891
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Frapper.API.Filters; using Frapper.Common; using Frapper.Entities.Movies; using Frapper.Repository; using Frapper.Repository.Movies.Queries; using Frapper.ViewModel.Movies.Request; using Microsoft.AspNetCore.Authoriz...
34.34359
115
0.593549
[ "MIT" ]
Ramasagar/Frapper.API
Frapper.API/Frapper.API/Controllers/V1/MoviesController.cs
6,699
C#
using Blog.Core.Common; using Blog.Core.Controllers; using Blog.Core.IRepository; using Blog.Core.IServices; using Blog.Core.Model.Models; using Moq; using Xunit; using System; using Autofac; namespace Blog.Core.Tests { public class Redis_Should { private IRedisCacheManager _redisCacheManager; ...
20.777778
80
0.637701
[ "MIT" ]
F1333502/Blog.Core
Blog.Core.Tests/Redis_Test/Redis_Should.cs
748
C#
using System; using System.CodeDom; using System.Collections.Generic; using System.Linq; using TechTalk.SpecFlow.Utils; namespace TechTalk.SpecFlow.Generator.UnitTestProvider { public class XUnit2TestGeneratorProvider : XUnitTestGeneratorProvider { private const string FEATURE_TITLE_PROPERTY_NAME = "Fe...
48.909091
162
0.684015
[ "Apache-2.0", "MIT" ]
ImanMesgaran/SpecFlow
TechTalk.SpecFlow.Generator/UnitTestProvider/XUnit2TestGeneratorProvider.cs
6,994
C#
//--------------------------------------------------------------------- // <copyright file="EdmNavigationProperty.cs" company="Microsoft"> // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // </copyright> //------------------------------------...
45.334559
160
0.635553
[ "MIT" ]
GCAE/ODataToolkit
ODataToolkit/Edm/Schema/EdmNavigationProperty.cs
12,331
C#
using System; using System.ComponentModel; using JetBrains.Annotations; using Lykke.Bil2.SharedDomain.TypeConverters; namespace Lykke.Bil2.SharedDomain { [PublicAPI] [Serializable] [TypeConverter(typeof(BlockIdTypeConverter))] public sealed class BlockId : BaseStringValueType<BlockId> { pu...
22.931034
62
0.625564
[ "MIT" ]
LykkeCity/Lykke.Bil2.SharedDomain
src/Lykke.Bil2.SharedDomain/BlockId.cs
667
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Server_nw.MusicApplication.Entities { public class Performer : User { public List<Song> Songs { get; set; } public List<Album> Albums { get; set; } public Performer() { ...
19.809524
47
0.59375
[ "MIT" ]
Andrewst-commits/MyMusicServer
Server_nw/Server_nw/MusicService/Entities/Performer.cs
418
C#
// Copyright 2017-2021 Elringus (Artyom Sovetnikov). All rights reserved. using System.Collections.Generic; using Naninovel.Commands; using System.Linq; using UnityEngine; namespace Naninovel.FX { public class DepthOfField : MonoBehaviour, Spawn.IParameterized, Spawn.IAwaitable, DestroySpawned.IParameterized, Des...
44.051724
171
0.605773
[ "Unlicense" ]
ChrisKindred/CartomancyGame
CartomancyGame/Assets/Naninovel/Runtime/FX/DepthOfField.cs
10,220
C#
using System; using UnityEngine; using UnityEngine.Experimental.VFX; namespace UnityEditor.VFX { public class LoopAndDelay : VFXSpawnerCallbacks { public class InputProperties { public int NumLoops = 2; public float LoopDuration = 4.0f; public float Delay = 1...
34.5
125
0.545756
[ "BSD-2-Clause" ]
1-10/VisualEffectGraphSample
GitHub/com.unity.visualeffectgraph/CustomSpawners/LoopAndDelay.cs
2,415
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.18239 Microsoft Reciprocal License (Ms-RL) // <NameSpace>Dms.Ambulance.V2100</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False<...
38.045307
1,368
0.550527
[ "MIT" ]
Kusnaditjung/MimDms
src/Dms.Ambulance.V2100/Generated/StrucDocThead.cs
11,756
C#
// Copyright (c) Pomelo Foundation. All rights reserved. // Licensed under the MIT. See LICENSE in the project root for license information. using System; using System.Linq; using Pomelo.EntityFrameworkCore.MySql.Infrastructure.Internal; using Pomelo.EntityFrameworkCore.MySql.Storage.Internal; using Microsoft.EntityFr...
47.492958
181
0.645685
[ "MIT" ]
Rynaret/Pomelo.EntityFrameworkCore.MySql
src/EFCore.MySql/Internal/MySqlOptions.cs
13,488
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.IO; using System.Linq; using System.Text; using System.Threading; using Syst...
52.701754
328
0.673546
[ "MIT" ]
dmonroym/format
tests/Formatters/AbstractFormatterTests.cs
18,026
C#
using System; using System.Collections.Generic; using UnityEditor.Graphing; using UnityEditor.ShaderGraph.Drawing.Slots; using UnityEditor.ShaderGraph.Internal; using UnityEngine; using UnityEngine.UIElements; namespace UnityEditor.ShaderGraph { [Serializable] class GradientInputMaterialSlot : GradientMateria...
32.180851
146
0.62876
[ "MIT" ]
Agameofscones/2d_slipsworth_sim
2d_Slipsworth_Sim/Library/PackageCache/com.unity.shadergraph@7.3.1/Editor/Data/Graphs/GradientInputMaterialSlot.cs
3,025
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...
24.032258
81
0.636242
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DomainRegistration/Outputs/NameIdentifierResponse.cs
745
C#
namespace Capture.Workflow.Core.Classes { public enum VariableTypeEnum { String, Number, Date, Boolean } }
13.818182
40
0.552632
[ "MIT" ]
BresciMa/digiCamControl
Capture.Workflow.Core/Classes/VariableTypeEnum.cs
154
C#
// Copyright 2021 Máté Szabó // // 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 ...
40.04918
110
0.664756
[ "Apache-2.0" ]
mszabo-wikia/RimWorld-RWP
Source/Patches/ForbidUtility_InAllowedArea_Patch.cs
2,448
C#
/******************************************************************************** * Module : Lapis.Math.Numbers.BigNumbers  * Class : BigInteger  * Description : Represents an arbitrarily large interger.  * Created : 2015/6/25  * Note : ***********************************************************...
38.222798
151
0.461841
[ "MIT" ]
LapisDev/LapisMath
src/Lapis.Math.Numbers/BigNumbers/BigInteger.Conversion.cs
7,383
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...
50.190476
184
0.694339
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/WorkSpaces/Generated/Model/UnsupportedWorkspaceConfigurationException.cs
6,324
C#
using System; using System.Threading; namespace LevelDB { class Program { static string testPath = @"C:\Temp\Test"; static string CleanTestDB() { DB.Destroy(new Options { CreateIfMissing = true }, testPath); return testPath; } static void Main3(...
27.623529
79
0.356899
[ "Apache-2.0" ]
Reactive-Extensions/LevelDB
LevelDB.net/Program.cs
2,350
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
49.149425
203
0.640084
[ "MIT" ]
Andrean/azure-powershell
src/ResourceManager/Sql/Commands.Sql/Data Masking/Cmdlet/SetAzureSqlDatabaseDataMaskingPolicy.cs
4,192
C#