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
/** * Copyright 2021 The Nakama Authors * * 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 agree...
29.363636
111
0.694788
[ "Apache-2.0" ]
heroiclabs/unity-sampleproject
PiratePanic/Assets/PiratePanic/Scripts/Menus/Battle/Hand/DropVisualizer.cs
3,878
C#
using System; using System.Globalization; using System.Text.RegularExpressions; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; using Microsoft.JSInterop; namespace AntDesign { public partial class Dialog { private const string IdPrefix =...
27.145015
122
0.461547
[ "MIT" ]
biohazard999/ant-design-blazor
components/modal/Dialog.razor.cs
8,987
C#
using System.Collections.Generic; using System.Linq; using Utilities; namespace EddiDataDefinitions { /// <summary> /// Crime types /// </summary> public class Crime : ResourceBasedLocalizedEDName<Crime> { static Crime() { resourceManager = Properties.Crimes.ResourceMan...
40.87931
89
0.630536
[ "Apache-2.0" ]
lagoth/EDDI
DataDefinitions/Crime.cs
2,373
C#
using IbanNet.Registry; using IbanNet.Registry.Patterns; namespace IbanNet.Builders { public class BankAccountBuilderTests { [Theory] [InlineData(typeof(BbanBuilder))] [InlineData(typeof(IbanBuilder))] public void Given_null_country_when_adding_it_should_throw(Type builderType)...
40.743494
161
0.593157
[ "Apache-2.0" ]
French-Coders-Organization/IbanNet
test/IbanNet.Tests/Builders/BankAccountBuilderTests.cs
10,962
C#
using System; using System.Collections.Generic; using System.Windows.Forms; namespace HOH_DEMO { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { //// adi...
23.73913
66
0.565934
[ "MIT" ]
RManPT/HOH-DEMO
HOH_DEMO/Program.cs
548
C#
using ADASMobileClient.Core.model; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace ADASMobileClient.C...
32.666667
135
0.590622
[ "MIT" ]
ajaykeshri/AdasLogin
UserDetailsClient/UserDetailsClient.Core/CalibrationOrderSetupPage.xaml.cs
4,118
C#
namespace Swisstalk.Foundation.Tasks { public enum TokenState { Undefined, Active, Cancelled, Done } public static class TokenStateExtension { private static TokenState[] TaskStateToTokenStateMap = new TokenState[] { TokenState.Undefined,...
25.018519
79
0.565507
[ "MIT" ]
valentinivanov/swisstalk
code/Foundation/Tasks/TokenState.cs
1,353
C#
using JiraAssistant.Domain.Ui; namespace JiraAssistant.Pages { public partial class ApplicationSettings { private int _selectedIndex; public ApplicationSettings() { InitializeComponent(); DataContext = this; } public ApplicationSettings(SettingsPage initialPage...
19.647059
65
0.570359
[ "MIT" ]
sceeter89/jira-client
JiraAssistant/Pages/ApplicationSettings.xaml.cs
670
C#
using Windows.UI.Xaml.Controls; // ReSharper disable ClassNeverInstantiated.Global // ReSharper disable MemberCanBePrivate.Global namespace Comet.UWP.Handlers { public class SpacerHandler : AbstractHandler<Spacer, Canvas> { protected override Canvas CreateView() { return new Canva...
21.4375
64
0.682216
[ "MIT" ]
PieEatingNinjas/Comet
src/Comet.UWP/Handlers/SpacerHandler.cs
345
C#
using System; using System.Collections.Generic; using System.Diagnostics.Contracts; namespace HITUOISR.Toolkit.Settings { /// <summary> /// 设置接口。 /// </summary> public interface ISettings { /// <summary> /// 获取具有指定键的设置子节。 /// </summary> /// <param name="key">子节的键。</...
33.101695
84
0.573989
[ "MIT" ]
HIT-UOI-SR/HITUOISR.Toolkit
HITUOISR.Toolkit.Settings.Abstraction/src/ISettings.cs
2,397
C#
// Copyright (c) 2021 Alachisoft // // 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 o...
28.478261
117
0.624936
[ "Apache-2.0" ]
Alachisoft/NCache
Src/NCCacheSeparateHost/Properties/AssemblyUsage.cs
1,967
C#
using System; namespace Ryujinx.Graphics { static class QuadHelper { public static int ConvertSizeQuadsToTris(int size) { return size <= 0 ? 0 : (size / 4) * 6; } public static int ConvertSizeQuadStripToTris(int size) { return size <= 1 ? 0 : ((s...
28.580247
90
0.456156
[ "Unlicense" ]
huangweiboy/Ryujinx
Ryujinx.Graphics/QuadHelper.cs
2,315
C#
//Public Method to retrieve the bot config (Will also create a new one if one is not found) public BotConfig GetBotConfig(string filepath) => FetchOrCreateBotConfig(filepath); //Public Method can be used to overwrite the botconfig if required. public void SaveBotConfig(BotConfig config, string filepath) => Wri...
33
93
0.718391
[ "MIT" ]
Charly6596/common-issues
DotNet-Addons/JSON-Storage/BotConfigExample/DataStorage.cs
1,914
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VsSDK.IntegrationTestLibrary; using Microsoft.VSSDK.Tools.VsIdeTesting; namespace VsExt.AutoShelve_IntegrationTests { [TestClass] public class CSharpProjectTests { #region fields private delegate void ThreadInvoker(); ...
30.197183
110
0.596549
[ "MIT" ]
Sockenfresser/tfsautoshelve
VsExt.AutoShelve/VsExt.AutoShelve_IntegrationTests/SignOff-Tests/CSharpProjectTests.cs
2,146
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.Immutable; using Microsoft.VisualStudio.Imaging.Interop; using Microsoft.VisualStudio.ProjectSystem.VS.Tree.Dependencies.Snapshot; ...
35.458333
161
0.699177
[ "Apache-2.0" ]
333fred/roslyn-project-system
src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Tree/Dependencies/Models/IDependencyViewModel.cs
853
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Security.Claims; namespace Microsoft.Identity.Web { /// <summary> /// Extensions around ClaimsPrincipal. /// </summary> public static class ClaimsPrincipalExtensions { ...
45.73125
154
0.62717
[ "MIT" ]
jg11jg/microsoft-identity-web
src/Microsoft.Identity.Web/ClaimsPrincipalExtensions.cs
7,319
C#
/* **************************************************************************** * * Copyright (c) Mårten Rånge. * * This source code is subject to terms and conditions of the Microsoft Public License. A * copy of the license can be found in the License.html file at the root of this distribution. If * you canno...
31.46087
98
0.641515
[ "MIT" ]
mrange/WpfShaderEffect
src/CsDxEffectCompiler/Interop/ID3DXEffectCompilerCustom.cs
10,858
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using System; using System.IO; public class MiscEditorHelpers { static public string SaveScriptableObjectAtCurrentFolder<T>(T sObj, string fileNameAndExt) where T:ScriptableObject { return MiscEditorHelper...
29.957746
183
0.650682
[ "MIT" ]
Mann1ng/EtheriaEmergentBehaviourFramework
Assets/Etheria/Scripts/Editor/MiscEditorHelpers.cs
2,127
C#
using System; namespace CodeUtopia.Messages { public interface IEntityEvent : IDomainEvent { Guid EntityId { get; } } }
15.666667
48
0.652482
[ "MIT" ]
andrewgunn/CodeUtopia
CodeUtopia.Messages/IEntityEvent.cs
143
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. using Newtonsoft.Json; namespace PointOfInterestSkill.Models { public class SearchResult { [JsonProperty(PropertyName = "id")] public string Id { get; set; } /// <summary> /// Gets...
29.580645
107
0.623773
[ "MIT" ]
adamstephensen/AI
solutions/Virtual-Assistant/src/csharp/skills/pointofinterestskill/pointofinterestskill/Models/AzureMaps/SearchResult.cs
919
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Supercode.Blazor.Toolbar; namespace BlazorServerSide.Toolbars { public class ActionToolbar : Toolbar { } }
17.307692
41
0.76
[ "MIT" ]
cschulzsuper/blazor-toolbar
samples/BlazorServerSide/Toolbars/_ActionToolbar.cs
227
C#
using CDT.Cosmos.Cms.Common.Data.Logic; using CDT.Cosmos.Cms.Data.Logic; using CDT.Cosmos.Cms.Models; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Linq; using System.Threading; using System.Threading.Tasks; nam...
44.040783
479
0.597289
[ "Apache-2.0" ]
CosmosSoftware/Cosmos.Cms
Cosmos.Tests/CORE_F01_ArticleEditLogicTests.cs
27,001
C#
/* Copyright 2012-2019 Marco De Salvo 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...
44.160584
203
0.647769
[ "Apache-2.0" ]
Philippe-Laval/RDFSharp
RDFSharp/Query/Mirella/Algebra/Aggregators/RDFAvgAggregator.cs
6,056
C#
//-------------------------------------------------- // <copyright file="ManagerDictionary.cs" company="Magenic"> // Copyright 2019 Magenic, All rights Reserved // </copyright> // <summary>Dictionary for handling driver managers</summary> //-------------------------------------------------- using System; using System...
29.041322
83
0.501423
[ "MIT" ]
skalpin/MAQS
Framework/BaseTest/ManagerDictionary.cs
3,516
C#
using Godot; using System; public class Rifile : Weapon { public override void _Ready() { base._Ready(); } protected override void FireEffect() { AnimationPlayer animationPlayer = (AnimationPlayer)GetNode("AnimationPlayer"); animationPlayer.Play("MuzzleFlash"); ...
19.058824
90
0.635802
[ "MIT" ]
brendanmoyer/topdown-2d-multiplayer
weapons/Rifile.cs
324
C#
using System; using System.Web; using System.Web.Mvc; using Elmah; using GeoGrafija.CustomFilters; namespace GeoGrafija.Areas.Admin.Controllers { [Authorize] [RolesActionFilter(RequiredRoles = "Admin")] [RoleOrganizer] public class ElmahController : Controller { public ActionResult Index()...
26.053571
116
0.559287
[ "MIT" ]
emir01/GeoGrafija
GeoGrafija/GeoGrafija/Areas/Admin/Controllers/ElmahController.cs
2,918
C#
namespace BlogMind.Controllers.Resources { public class LikeResource { public int CommentId { get; set; } public string AppUserId { get; set; } } }
19.666667
45
0.627119
[ "MIT" ]
nesta-bg/BlogMind
BlogMind/Controllers/Resources/LikeResource.cs
179
C#
// // This code was generated by a tool. Any changes made manually will be lost // the next time this code is regenerated. // using System.Reflection; [assembly: AssemblyVersion("0.1.0622.1717")] [assembly: AssemblyFileVersion("0.1.0622.1717")] [assembly: AssemblyInformationalVersion("0.1.0622.1717")]
28
76
0.74026
[ "MIT" ]
dend/grunt
Grunt/Grunt/VersioningTemplate.cs
310
C#
using System.Text.Json.Serialization; namespace Frank.Libraries.Internet.Wikipedia.Models.Related { public class Mobile { [JsonPropertyName("page")] public string Page { get; set; } [JsonPropertyName("revisions")] public string Revisions { get; set; } [JsonPropertyName...
23.947368
59
0.615385
[ "MIT" ]
frankhaugen/Frank.Libraries
src/Frank.Libraries.Internet/Wikipedia/Models/Related/Mobile.cs
455
C#
using System.Collections; using System.Collections.Generic; using System.Threading.Tasks; using StackExchange.Redis; namespace Redis.Net { /// <summary> /// Redis HashSet Warpper /// </summary> public class ReadOnlyRedisHashSet : AbstracRedisKey, IReadOnlyDictionary<RedisValue, RedisValue> { p...
52.947712
237
0.650784
[ "MIT" ]
zwq00000/Redis.Net
src/Redis.Net/ReadOnlyRedisHashSet.cs
8,127
C#
using AzureFromTheTrenches.Commanding.Abstractions; namespace FunctionMonkey.Abstractions.Builders { /// <summary> /// An interface that allows for the configuration of service bus triggered functions /// </summary> public interface IServiceBusFunctionBuilder { /// <summary> /// As...
57.533333
171
0.705098
[ "MIT" ]
AKomyshan/FunctionMonkey
Source/FunctionMonkey.Abstractions/Builders/IServiceBusFunctionBuilder.cs
1,728
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace Tajima { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main...
21.956522
65
0.607921
[ "MIT" ]
joalri24/Tajima
Tajima/Program.cs
507
C#
using System; using System.Threading.Tasks; namespace Owin.Security.Providers.Buffer { /// <summary> /// Default <see cref="IBufferAuthenticationProvider"/> implementation. /// </summary> public class BufferAuthenticationProvider : IBufferAuthenticationProvider { /// <summary> /// ...
41.74
180
0.644466
[ "MIT" ]
gauravbhavsar/OwinOAuthProviders
Owin.Security.Providers/Buffer/Provider/BufferAuthenticationProvider.cs
2,089
C#
using System; using System.Globalization; using Jint.Runtime; namespace Jint.Native { public sealed class JsNumber : JsValue, IEquatable<JsNumber> { internal readonly double _value; // how many decimals to check when determining if double is actually an int private const double Double...
28.054545
114
0.530352
[ "BSD-2-Clause" ]
AsyncVoid/jint
Jint/Native/JsNumber.cs
4,631
C#
using BeatSaberMarkupLanguage; using BeatSaberMarkupLanguage.Attributes; using BeatSaberMarkupLanguage.Settings; using System; using Zenject; namespace IntroSkip.UI { internal class SettingsHost : IInitializable, IDisposable { private readonly Config _config; [UIValue("intro-skip-toggle")] ...
27.44898
100
0.612639
[ "MIT" ]
Auros/Intro-Skip
Intro Skip/UI/SettingsHost.cs
1,347
C#
using System; using UnityEngine; namespace UnityAtoms { public class ConditionalGameActionHelper<T1, GA, C> where GA : GameAction<T1> where C : GameFunction<bool, T1> { [SerializeField] private C Condition = null; [SerializeField] private GA Action = null; [SerializeFiel...
31.807947
162
0.512388
[ "MIT" ]
AKOM-Studio/unity-atoms
Source/Base/ConditionalGameActionHelper.cs
4,803
C#
using System.Diagnostics.Contracts; namespace LibroLib.Caching { [ContractClass(typeof(IDiskCacheContract))] public interface IDiskCache { void ClearCacheDirectory(string localCacheDirectoryPath); void DeleteCacheFile (string localCacheFileName); void EnsureDirectoryPathExi...
35.313433
94
0.633136
[ "MIT" ]
breki/librolib
LibroLib.Common/Caching/IDiskCache.cs
2,366
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MVRegistry { public enum HKEY { ClassesRoot, CurrentUser, LocalMachine, Users, CurrentConfig } }
16.333333
34
0.612245
[ "MIT" ]
SoheilMV/MVRegistry
MVRegistry/HKEY.cs
296
C#
namespace Gu.Localization.Analyzers.Tests.GULOC06UseInterpolationTests { using Gu.Roslyn.Asserts; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Diagnostics; using NUnit.Framework; public class CodeFix { private static readonly DiagnosticAnalyzer Analyzer = new Lit...
21.60274
109
0.565631
[ "MIT" ]
General-Fault/Gu.Localization
Gu.Localization.Analyzers.Tests/GULOC06UseInterpolationTests/CodeFix.cs
1,577
C#
/******************************************************************** The Multiverse Platform is made available under the MIT License. Copyright (c) 2012 The Multiverse Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
30.180723
110
0.712176
[ "MIT" ]
AustralianDisabilityLimited/MultiversePlatform
tools/ClientInterfaceEditor/FrameXmlEditor/Serialization/AbsDimension.cs
2,505
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc; using Nop.Core.Domain.News; using Nop.Services.Events; using Nop.Services.Localization; using Nop.Services.Logging; using Nop.Services.Messages; using Nop.Services.News; using Nop.Services.Security; using Nop.Services.Se...
37.776978
141
0.63188
[ "MIT" ]
ASP-WAF/FireWall
Samples/NopeCommerce/Presentation/Nop.Web/Areas/Admin/Controllers/NewsController.cs
15,755
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using NSubstitute; using NSubstitute.ExceptionExtensions; using...
50.54902
179
0.583698
[ "MIT" ]
Nateowami/web-xforge-test
src/Migrations/PtdaSyncAll.Tests/PtdaSyncRunnerTests.cs
56,716
C#
namespace Pyro.DataLayer.MigrationsMicrosoftSQLServer { using System; using System.Collections.Generic; using System.Data.Entity.Infrastructure.Annotations; using System.Data.Entity.Migrations; public partial class CaseSensitive : DbMigration { public override void Up() { ...
52.26117
146
0.498003
[ "BSD-3-Clause" ]
nwisbeta/Pyro
Pyro.DataLayer/MigrationsMicrosoftSQLServer/201904230511080_CaseSensitive.cs
702,965
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的常规信息是通过以下项进行控制的 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("AspNet.Auth.Tests")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assemb...
25.805556
56
0.723358
[ "Apache-2.0" ]
WebDesigns07/AspNet.WebApi
src/AspNet.Auth.Tests/Properties/AssemblyInfo.cs
1,301
C#
// *** WARNING: this file was generated by pulumigen. *** // *** 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.Kubernetes.FlowCont...
54.084507
302
0.668359
[ "Apache-2.0" ]
Threpio/pulumi-kubernetes
sdk/dotnet/FlowControl/V1Beta2/FlowSchema.cs
7,680
C#
using System; using System.Globalization; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin.Security; using MVCTestProject.Models; namespace MVCT...
36.870103
174
0.538419
[ "Apache-2.0" ]
chuckstar76/Subs-Demo-MSBuild
MVCTestProject/Controllers/AccountController.cs
17,884
C#
namespace Sknet.InRuleGitStorage.AuthoringExtension; public abstract class RuleApplicationServiceWrapper : IRuleApplicationServiceImplementation { public IRuleApplicationServiceImplementation InnerImplementation { get; } public RuleApplicationServiceWrapper(IRuleApplicationServiceImplementation innerRu...
30.50495
139
0.708698
[ "MIT" ]
stevenkuhn/InRuleGitStorage
src/Sknet.InRuleGitStorage.AuthoringExtension/RuleApplicationServiceWrapper.cs
6,164
C#
// Copyright (c) 2020 Flucto Team and others. Licensed under the MIT Licence. // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using flucto.Platform.Windows.Native; using osuTK; namespace flucto.Platform...
33.459016
168
0.66291
[ "MIT" ]
flucto/flucto
flucto/Platform/Windows/WindowsGameHost.cs
2,043
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Threading; using NewLife; using XCode.Cache; using XCode.Configuration; using XCode.DataAccessLayer; using XCode.Shards; namespace XCode { public partial class Entity<TEntity> { /// <summary>实体元数据</...
39.379061
131
0.516135
[ "MIT" ]
doujia/X
XCode/Entity/Entity_Meta.cs
12,010
C#
// ----------------------------------------------------------------------- // <copyright file="DeadLetter.cs" company="Asynkron AB"> // Copyright (C) 2015-2020 Asynkron AB All rights reserved // </copyright> // ----------------------------------------------------------------------- // ReSharper disable once Check...
31.290323
118
0.575773
[ "Apache-2.0" ]
sudsy/protoactor-dotnet
src/Proto.Actor/EventStream/DeadLetter.cs
1,940
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class FoodRespawn : MonoBehaviour { // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } void OnTriggerExit(Co...
23.071429
109
0.647059
[ "MIT" ]
iskaj/UnityLevySimulation
NC_Project/Scripts/FoodRespawn.cs
648
C#
namespace BankSystem.Services.Models.BankAccount { public class BankAccountVerifyOwnershipServiceModel : BankAccountBaseServiceModel { public string UserId { get; set; } } }
27.714286
85
0.742268
[ "MIT" ]
AmilkarDev/BankSystem
src/Services/BankSystem/BankSystem.Services.Models/BankAccount/BankAccountVerifyOwnershipServiceModel.cs
196
C#
#if !NO_RUNTIME using System; using ProtoBuf.Meta; #if FEAT_IKVM using Type = IKVM.Reflection.Type; using IKVM.Reflection; #else using System.Reflection; #endif namespace ProtoBuf.Serializers { sealed class TagDecorator : ProtoDecoratorBase, IProtoTypeSerializer { public bool HasCallbacks(TypeMode...
35.25
125
0.6269
[ "MIT" ]
a1475775412/GameDesigner
GameDesigner/Serialize/protobuf-net/Serializers/TagDecorator.cs
3,950
C#
public class Wizard:AbstractHero { private const int WizardStrength = 25; private const int WizardAgility = 25; private const int WizardIntelligence = 100; private const int WizardHitPoints = 100; private const int WizardDamage = 250; public Wizard(string name) : base(name, WizardStr...
29
102
0.716749
[ "MIT" ]
mkpetrov/OOP-Advanced
Exam-Prep/Hell-Skeleton/Hell-Skeleton/Hell/Entities/Heroes/Wizard.cs
408
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("02...
37.918919
84
0.744833
[ "MIT" ]
George221b/SoftUni-Taks
C#OOP-Advanced/04.EnumsAndAttributes-Lab/02.CoffeMachine/Properties/AssemblyInfo.cs
1,406
C#
using System; // ASM: a very small and fast Java bytecode manipulation framework // Copyright (c) 2000-2011 INRIA, France Telecom // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redi...
59.518341
152
0.589796
[ "BSD-3-Clause" ]
CursedJvmSharp/ObjectWeb.Asm
ObjectWeb.Asm/ObjectWeb/Asm/Label.cs
37,318
C#
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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...
39.858209
121
0.599139
[ "Apache-2.0" ]
9812334/Lean
Indicators/Momersion.cs
5,343
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
34.069444
173
0.690583
[ "Apache-2.0" ]
1234567890num/OpenKh
OpenKh.Tools.BarEditor/Properties/Resources.Designer.cs
2,455
C#
using Musaca.Data.Models; using Musaca.Models.Users; using Musaca.Services; using MvcFramework; using MvcFramework.Attributes.Http; using MvcFramework.Attributes.Security; using MvcFramework.AutoMapper.Extensions; using MvcFramework.Results; namespace Musaca.Web.Controllers { public class UsersController : Controlle...
22.375
82
0.710513
[ "MIT" ]
NaskoVasilev/CSharp-MVC-Framework
MvcFramework/Apps/Musaca/Musaca.Web/Controllers/UsersController.cs
1,971
C#
using Approve.Common; using Approve.RuleApp; using Approve.RuleCenter; using ProjectData; using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class JSDW...
35.165563
170
0.526177
[ "MIT" ]
coojee2012/pm3
SurveyDesign/JSDW/ApplyXZYJS/Report.aspx.cs
5,448
C#
namespace AnyClone.Tests.Extensions { using System; using System.Collections; using System.Collections.Generic; using System.Linq; public static class CollectionExtensions { /// <summary> /// Compare any enumerable to another enumerable /// </summary> /// <param name="aCollection"></param> ...
29.878049
112
0.64898
[ "Unlicense" ]
ApocDev/blazor-state
Tests/TestApp/Client/Extensions/CollectionExtensions.cs
1,225
C#
#region License /* * Copyright 2018 JanusGraph.Net Authors * * 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 b...
33.833333
99
0.724138
[ "ECL-2.0", "Apache-2.0" ]
JanusGraph/janusgraph-dotnet
test/JanusGraph.Net.UnitTest/IO/GraphSON/RelationIdentifierSerializationSymmetricyTests.cs
1,423
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.ComponentModel; using System.Security; namespace System.Management { /// <summary> /// <para>Describes the authentication level to be used to connect to WMI....
43.767908
267
0.567607
[ "MIT" ]
jtschuster/runtime
src/libraries/System.Management/src/System/Management/ManagementOptions.cs
76,375
C#
using UnityEngine; namespace GnosticDev { public class SimpleUpdateManager : MonoBehaviour { public static SimpleUpdateManager instance; public delegate void OnTick(); /// <summary> /// Global Tick Event /// </summary> public static event OnTick onTick; ...
20.859375
52
0.472659
[ "MIT" ]
Gnosis-Dev/Simple-Update-Manager
Scripts/SimpleUpdateManager.cs
1,335
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using IdentityServer4.Models; using Microsoft.Extensions.Configuration; using Volo.Abp.Authorization.Permissions; using Volo.Abp.Data; using Volo.Abp.DependencyInjection; using Volo.Abp.Guids; using Volo.Abp.IdentityServer.ApiResources; using...
37.846154
104
0.539106
[ "MIT" ]
BlazorHub/bamboomodules
Bamboo.Employee/host/Bamboo.Employee.IdentityServer/IdentityServer/IdentityServerDataSeedContributor.cs
12,300
C#
/* This code is derived from jgit (http://eclipse.org/jgit). Copyright owners are documented in jgit's IP log. This program and the accompanying materials are made available under the terms of the Eclipse Distribution License v1.0 which accompanies this distribution, is reproduced below, and is available at http://www...
39.663043
85
0.763497
[ "BSD-3-Clause" ]
ashmind/ngit
NGit/NGit.Api.Errors/JGitInternalException.cs
3,649
C#
using System; using System.Net; using System.Threading.Tasks; using Abp.AspNetCore.App.Controllers; using Abp.AspNetCore.App.Models; using Abp.Timing; using Abp.Web.Models; using Shouldly; using Xunit; namespace Abp.AspNetCore.Tests { public class DateTimeModelBinder_Tests : AppTestBase { [Theory] ...
39.459227
180
0.575593
[ "MIT" ]
AmyliaScarlet/aspnetboilerplate
test/Abp.AspNetCore.Tests/Tests/DateTimeModelBinder_Tests.cs
9,196
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataAccess.Models { public class TemplateSynonym { [Required] public int Id { get; set; } [Required] publi...
19.535714
47
0.619744
[ "Apache-2.0" ]
alex-coupe/MarketingTool
source/MarketingTool/DataAccess/Models/TemplateSynonym.cs
549
C#
using System; namespace Sh8ps.Services { public class SuspensionState { public object Data { get; set; } public DateTime SuspensionDate { get; set; } } }
15.416667
52
0.621622
[ "MIT" ]
nohorse/sh8ps
Sh8ps/Sh8ps/Services/SuspensionState.cs
187
C#
using System; using System.Runtime.InteropServices; namespace hds { public class AttributeClass2018 :GameObject { public Attribute Orientation = new Attribute(16, "Orientation"); public Attribute Position = new Attribute(24, "Position"); public Attribute HalfExtents = new Attribute(12, "HalfExtents"...
24.166667
68
0.677586
[ "MIT" ]
hdneo/mxo-hd
hds/resources/gameobjects/definitions/AttributeClasses/AttributeClass2018.cs
580
C#
using System; using System.Text; using System.Collections.Generic; namespace Vokabular.ForumSite.DataEntities.Database.Entities { public class NntpTopic { public int NntpTopicID { get; set; } public NntpForum NntpForum { get; set; } public Topic Topic { get; set; } public stri...
23.466667
62
0.659091
[ "BSD-3-Clause" ]
RIDICS/ITJakub
UJCSystem/Vokabular.Forum.DataEntities/Database/Entities/Nntptopic.cs
352
C#
/* Copyright (c) 2019-2020 VMware, 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: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the foll...
38.168
142
0.607839
[ "BSD-2-Clause" ]
vmware/eventlog-stream-console
src/VMware.Shims/EventLogShim.cs
4,773
C#
using Abp.Application.Services.Dto; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WikiTutorial.ProductServices.Dtos { public class GetAllProductsItem : EntityDto<long> { public string Name { get; set; } public stri...
23.411765
53
0.703518
[ "MIT" ]
diguifi/WikiTutorial
src/WikiTutorial.Application/ProductServices/Dtos/GetAllProductsItem.cs
400
C#
namespace Tests { using System.Linq; using System.Molecular; using NUnit.Framework; public class TranscribeTest { [Test] public void FirstTest() { var code = "TAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCC"; var d...
27.111111
99
0.590164
[ "MIT" ]
0xF6/Genome
test/System.Molecular.Test/TranscribeTest.cs
488
C#
namespace UnityTest { public class RenderingOptions { public string nameFilter; public bool showSucceeded; public bool showFailed; public bool showIgnored; public bool showNotRunned; public string[] categories; } }
17.692308
30
0.765217
[ "MIT" ]
Energy0124/unity3d-plugin
src/test/resources/org/jenkinsci/plugins/unity3d/IntegrationTests/testExpectADifferentExitCode/jobs/test_unity3d/workspace/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Renderer/RenderingOptions.cs
230
C#
using PKISharp.WACS.Clients; using PKISharp.WACS.Extensions; using PKISharp.WACS.Plugins.Base; using PKISharp.WACS.Plugins.Interfaces; using PKISharp.WACS.Services; using Microsoft.Web.Administration; using System; using System.Collections.Generic; using System.Linq; namespace PKISharp.WACS.Plugins.TargetPl...
41.13125
168
0.517551
[ "Apache-2.0" ]
helixge/win-acme
letsencrypt-win-simple/Plugins/TargetPlugins/IISSite.cs
6,583
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> //---...
29.96
80
0.563418
[ "MIT" ]
scantegra/scantegra
src/Scantegra.Core/Entities/OptionSets/Metric_StatusCode.cs
749
C#
using BrawlLib.Imaging; using BrawlLib.Internal; using BrawlLib.SSBB.Types; using System.ComponentModel; namespace BrawlLib.SSBB.ResourceNodes { public unsafe class REFFParticleNode : ResourceNode { internal ParticleParameterHeader* Params => (ParticleParameterHeader*) WorkingUncompressed.Address; ...
26.465054
107
0.465515
[ "MIT" ]
GamendeMier/BrawlCrate
BrawlLib/SSBB/ResourceNodes/Graphics/REFF/REFFParticleNode.cs
9,847
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...
34.876923
86
0.657697
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/RecoveryServices/Latest/Outputs/InMageAzureV2PolicyDetailsResponse.cs
2,267
C#
using MySql.Data.MySqlClient; using Projeto_Integrador_1.Util; using System; using System.Collections.Generic; namespace Projeto_Integrador_1.Connection { class Viagens : Config { public Viagens() { } public bool Success; public string Message; public List<dynamic> Results = new L...
55.562016
957
0.588699
[ "MIT" ]
igorscheffer/Projeto-Integrador-1
Projeto Integrador 1/Projeto Integrador 1/Connection/Viagens.cs
14,337
C#
using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Security; //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.5...
40.896552
91
0.653457
[ "BSD-3-Clause" ]
dineshkummarc/cuyahoga-1
Web/Properties/AssemblyInfo.cs
1,186
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="RibbonBackstageTabItemHeader.cs" company="WildGums"> // Copyright (c) 2008 - 2014 WildGums. All rights reserved. // </copyright> // ---------------------------------------------...
41.581633
289
0.607607
[ "MIT" ]
vatsan-madhavan/Orchestra
src/Orchestra.Shell.Ribbon.Fluent/Controls/RibbonBackstageTabItemHeader.cs
4,077
C#
using System; using System.Collections; using System.Collections.Generic; using Unity.MLAgents; using UnityEngine; using UnityEngine.AI; using Random = UnityEngine.Random; // using Unity.MLAgents; using Unity.MLAgents.Sensors; using UnityEngine; // public class Enemy : MonoBehaviour { public int startingHealth = 1...
27.493976
194
0.675723
[ "MIT" ]
ReanSchwarzer1/Covid-AR-Shooting-RL
Android Version/Assets/Scripts/Scripts for ML agents/Enemy.cs
2,284
C#
namespace MyMauiApp; public partial class MainPage : ContentPage { int count = 0; public MainPage() { InitializeComponent(); } private void OnCounterClicked(object sender, EventArgs e) { count++; CounterLabel.Text = $"Current count: {count}"; SemanticScreenReader.Announce(CounterLabel...
16.095238
59
0.674556
[ "MIT" ]
LarsBehl/MauiTapGesture
MainPage.xaml.cs
340
C#
// Copyright 2018 Google LLC // // 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.128155
216
0.669118
[ "Apache-2.0" ]
chrisdunelm/google-ads-dotnet
src/V1/ResourceNames.cs
20,666
C#
using System; namespace Motor.Extensions.Hosting.Abstractions { public class TemporaryFailureException : Exception { public TemporaryFailureException() { } public TemporaryFailureException(string message) : base(message) { } public TemporaryFailureExcep...
20.15
90
0.627792
[ "MIT" ]
cavus700/motornet
src/Motor.Extensions.Hosting.Abstractions/TemporaryFailureException.cs
403
C#
using Lucene.Net.Support; using System.Diagnostics.CodeAnalysis; namespace Lucene.Net.Util { /* * 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 owne...
34.805556
135
0.60016
[ "Apache-2.0" ]
DiogenesPolanco/lucenenet
src/Lucene.Net/Util/GrowableByteArrayDataOutput.cs
2,506
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Reinforced.Tecture.Aspects.DirectSql.Infrastructure; using Reinforced.Tecture.Query; namespace Reinforced.Tecture.Aspects.DirectSql { /// <summary> /// Query tooling of DirectSql aspect /// </summary> public abstract c...
31.46875
114
0.581927
[ "MIT" ]
AxelUser/Reinforced.Tecture
Aspects/Reinforced.Tecture.Aspects.DirectSql/Query.cs
2,016
C#
using System; using System.IO; using Microsoft.Toolkit.Uwp.Notifications; using Microsoft.UI.Xaml; using Sentry; using System.Runtime.ExceptionServices; using System.Security; using System.Threading.Tasks; using System.Xml; using Windows.ApplicationModel; using Windows.Storage; using Package = Windows.ApplicationModel...
38.265306
119
0.645867
[ "Apache-2.0" ]
airmessage/airmessage-web
windows/AirMessageWindows/AirMessageWindows/App.xaml.cs
3,752
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using AdmInflux.Client.Models; using Newtonsoft.Json; namespace AdmInflux.Client { public class MeasurementsClient { private readonly HttpClient _client; private...
42.04878
139
0.642111
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
RendleLabs/AdmInflux
src/AdmInflux.Client/MeasurementsClient.cs
1,726
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace XFramework.Collections { /// <summary> /// 树 /// </summary> /// <typeparam name="T">节点存储的数据类型</typeparam> public class TreeNode<T> { private T m_Data; } }
18.733333
49
0.633452
[ "Apache-2.0" ]
xdedzl/XFramework
XFramework/Assets/XFramework/Core/Runtime/Tools/Collections/Tree.cs
303
C#
using System; using System.Collections.Generic; using System.Text; using FlubuCore.Context; using FlubuCore.Tasks; using FlubuCore.Tasks.Process; namespace FlubuCore.Azure.Tasks.Batch { public partial class AzureBatchApplicationSetTask : ExternalProcessTaskBase<AzureBatchApplicationSetTask> { ...
29.941176
178
0.576817
[ "MIT" ]
flubu-core/FlubuCore.Azure
FlubuCore.Azure/Tasks/Batch/AzureBatchApplicationSetTask.cs
2,545
C#
using GalaSoft.MvvmLight; namespace PushkinA.EnglishVocabulary.ViewModel { /// <summary> /// This class contains properties that the main View can data bind to. /// <para> /// Use the <strong>mvvminpc</strong> snippet to add bindable properties to this ViewModel. /// </para> /// <para> /// ...
28.058824
95
0.509434
[ "MIT" ]
Perekur/AntonPushkin.EnglishVocabulary
ViewModel/MainViewModel.cs
954
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Microsoft.Azure.II...
36.442623
99
0.569501
[ "MIT" ]
TheWaywardHayward/Industrial-IoT
services/src/Microsoft.Azure.IIoT.Services.OpcUa.Twin/src/v2/Models/BrowseNextResponseApiModel.cs
2,223
C#
using System; using System.Linq; using ImageClassification.ImageData; using System.IO; using Microsoft.ML; using static ImageClassification.Model.ConsoleHelpers; namespace ImageClassification.Model { public class ModelScorer { private readonly string dataLocation; private readonly string image...
40.411765
114
0.654051
[ "MIT" ]
AbhiAgarwal192/machinelearning-samples
samples/csharp/getting-started/DeepLearning_TensorFlowEstimator/ImageClassification.Predict/Model/ModelScorer.cs
2,063
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Naveego.DataQuality { public class VirtualCheckOverride { public string ItemId { get; set; } public string Owner { get; set; } } }
18.9375
43
0.660066
[ "Apache-2.0" ]
Naveego/naveego-net
src/Naveego/DataQuality/VirtualCheckOverride.cs
305
C#
namespace DNASequences { using System; using System.Collections.Generic; public class DNASequences { public static void Main() { var charValueDict = new Dictionary<int, char>() { { 1, 'A' }, { 2, 'C' }, { 3, 'G' },...
27.27907
104
0.326513
[ "MIT" ]
doba7a/SoftUni
Tech Module/Programming Fundamentals/5. CSharp Basics - More Exercise/6. DNASequences/Program.cs
1,175
C#
using System; namespace OrdersCollector.Core.Models { /// <summary> /// Holds information about source and user that made changes. /// </summary> public class AuditInfo { /// <summary> /// Source. For example: Skype /// </summary> public string Source { get; set; } ...
25.853659
67
0.529245
[ "MIT" ]
jmansar/orders-collector
src/OrdersCollector.Core/Models/AuditInfo.cs
1,062
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Xml; using Microsoft.Build.BackEnd; using Mi...
41.583077
308
0.500715
[ "MIT" ]
Sejsel/msbuild
src/Build.UnitTests/BackEnd/IntrinsicTask_Tests.cs
148,909
C#
// Copyright (c) Stickymaddness All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Sextant.Domain; using System.Collections.Generic; namespace Sextant.Tests { public class TestCommunicator : ICommunicator { public...
24.36
111
0.656814
[ "Apache-2.0" ]
RikCSherman/R2R-VoiceAttack
Sextant.Tests/TestCommunicator.cs
611
C#