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
// 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 System; using System.Collections.Immutable; using System.Threading; using System.Threading...
34.745763
93
0.676098
[ "MIT" ]
belav/roslyn
src/Analyzers/Core/CodeFixes/RemoveUnnecessaryImports/AbstractRemoveUnnecessaryImportsCodeFixProvider.cs
2,052
C#
using System; using System.Text; using System.IO; using System.Diagnostics; using FDK; using System.Drawing; using System.Linq; using TJAPlayer3.Common; namespace TJAPlayer3 { // グローバル定数 public enum Eシステムサウンド { BGMオプション画面 = 0, BGMコンフィグ画面, BGM起動画面, BGM選曲画面, BGM結果画面, SOUNDステージ失敗音, SOUNDカーソル移動音, ...
48.629844
161
0.427402
[ "MIT" ]
aaaaaa763/TaikoR
TJAPlayer3/Common/CSkin.cs
142,118
C#
using Mono.Unix.Native; namespace NCoreUtils.Storage.FileSystem { static class LinuxHelpers { public static string GetUserName(uint uid) { var passwd = Syscall.getpwuid(uid); return passwd?.pw_name ?? $"#{uid}"; } public static string GetGroupName(uint g...
30.976378
93
0.517031
[ "MIT" ]
artyomszasa/NCoreUtils.Storage
NCoreUtils.Storage.FileSystem/FileSystem/LinuxHelpers.cs
3,934
C#
/* Copyright 2019 - 2021 Inetum 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 ...
41.827586
100
0.624073
[ "Apache-2.0" ]
Gfi-Innovation/UMI3D-SDK
UMI3D-SDK/Assets/UMI3D SDK/EnvironmentDevelopmentKit/Collaboration/Runtime/UMI3DEnvironmentNetworkingCollaborationModule.cs
2,428
C#
using NHapi.Base.Parser; using NHapi.Base; using NHapi.Base.Log; using System; using System.Collections.Generic; using NHapi.Model.V27.Segment; using NHapi.Model.V27.Datatype; using NHapi.Base.Model; namespace NHapi.Model.V27.Group { ///<summary> ///Represents the REF_I12_AUTHORIZATION_CONTACT Group. A Group is an or...
30.014286
167
0.692527
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
AMCN41R/nHapi
src/NHapi.Model.V27/Group/REF_I12_AUTHORIZATION_CONTACT.cs
2,101
C#
using System.Collections.Generic; namespace AspNetCoreExt.Qos.RateLimit { public class QosRateLimitOptions { public IDictionary<string, QosRateLimitPolicy> Policies { get; set; } } }
20.5
77
0.721951
[ "Apache-2.0" ]
Yves57/AspNetCoreExt-Qos
src/AspNetCoreExt.Qos.RateLimit/QosRateLimitOptions.cs
207
C#
#if NETSTANDARD2_0 || NETSTANDARD2_1 using System.IO; using System.Threading; using System.Threading.Tasks; namespace System.Security.Cryptography; public static class _HashAlgorithm { public static async Task<byte[]> ComputeHashAsync(this HashAlgorithm alg, Stream stream, CancellationToken cancellationToken = ...
30.357143
158
0.709412
[ "MIT" ]
pairbit/IT
src/IT.Bcl/_HashAlgorithm.cs
852
C#
namespace Microsoft.AppCenter.Crashes { /// <summary> /// Crashes SDK module. /// </summary> class NamespaceDoc { } }
14.3
38
0.566434
[ "MIT" ]
ManjuBP/.net
SDK/AppCenterCrashes/Microsoft.AppCenter.Crashes.Shared/NamespaceDoc.cs
145
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 BenchmarkDotNet.Attributes; using MicroBenchmarks; namespace System.Drawing.Tests { [BenchmarkCategory(C...
29.795918
105
0.612329
[ "MIT" ]
L2/performance
src/benchmarks/micro/libraries/System.Drawing/Perf_Graphics_DrawBeziers.cs
1,462
C#
using System.Runtime.InteropServices; namespace Expressive { /// <summary> /// Represents a chunk of expression that has been identified as something compilable. /// </summary> public sealed class Token { /// <summary> /// Gets the text from the expression. /// </summary>...
33.56
91
0.575685
[ "MIT" ]
richard-scryber/expressive
Source/Expressive/Token.cs
1,680
C#
namespace EstimatorX.Shared.Models; public class QueryRequest { public int? Page { get; set; } = 1; public int? PageSize { get; set; } = 20; public string Sort { get; set; } public bool? Descending { get; set; } public string Search { get; set; } public string Organization { get; set; } }
18.823529
44
0.628125
[ "MIT" ]
loresoft/Estimatorx
src/EstimatorX.Shared/Models/QueryRequest.cs
320
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. // -----------------------...
78.278986
229
0.721685
[ "MIT" ]
dmrayt/runtime
src/libraries/System.Security.Cryptography.Primitives/ref/System.Security.Cryptography.Primitives.cs
21,605
C#
using NUnit.Framework; using QSP.AviationTools.Coordinates; using static QSP.AviationTools.Coordinates.FormatDecimal; namespace UnitTest.AviationTools.Coordinates { [TestFixture] public class FormatDecimalTest { [Test] public void WhenFormatIsWrongReturnNull() { Assert....
37.897436
97
0.614344
[ "MIT" ]
JetStream96/QSimPlanner
src/Tests/UnitTest/AviationTools/Coordinates/FormatDecimalTest.cs
1,480
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.Dynamic.Utils; using System.Linq.Expressions; namespace System.Dynamic { /// <summary> /// Represents the unary dynamic operation at the call site, providing th...
38.609091
132
0.589122
[ "MIT" ]
belav/runtime
src/libraries/System.Linq.Expressions/src/System/Dynamic/UnaryOperationBinder.cs
4,247
C#
// // Copyright (c) 2004-2018 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // 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 s...
36.823529
100
0.701278
[ "BSD-3-Clause" ]
Flokri/NLog
tests/NLog.UnitTests/Common/LastLogEventListTarget.cs
2,504
C#
namespace OSDiagTool.OSDiagToolForm { partial class puf_popUpForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
46.209091
173
0.61145
[ "MIT" ]
OutSystems/techsupp-osdiagtool
OSDiagTool/OSDiagToolForm/PopUpForm.Designer.cs
5,085
C#
using System; using System.Threading.Tasks; using Shouldly; using Xunit; namespace Alba.Testing.Acceptance { public class asserting_against_the_response_body_text : ScenarioContext { #region sample_using_ContentShouldBe [Fact] public Task using_scenario_with_ContentShouldContain_declara...
27.088235
104
0.489957
[ "Apache-2.0" ]
JasperFx/Alba
src/Alba.Testing/Acceptance/asserting_against_the_response_body_text.cs
3,684
C#
using UnityEngine; /** * Is used to turn a 2d sprite or texture into 2d billoard */ public class Billboard : MonoBehaviour { /**The target to face towards**/ private GameObject target; /** * Finds the target when the scene loads */ void Start() { target = GameObject.FindGameO...
19
60
0.611336
[ "MIT" ]
DavidStender/Caster-OldSchoolFPS-OneLevelDemo
Assets/Scripts/Billboard.cs
496
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AttackMain : MonoBehaviour { public playerController2D playerControllerReferenceWhichHasATurnOnAndTurnOffBoolean; public Animator animatorOfThePlayer; public BoxCollider2D myAtackBoxCollider; private Statuses ...
29.475771
184
0.640562
[ "MIT" ]
ab-gregor/Attackdemo
Attackdemo/Assets/Scripts/AttackMain.cs
6,691
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Quit : MonoBehaviour { public void QuitGame() { Application.Quit(); } }
15.416667
33
0.691892
[ "MIT" ]
jacoba4/RaidTA
RaidTA/Assets/Scripts/Quit.cs
185
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.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; namespace System.Security.Principal { public class I...
28.331839
131
0.470402
[ "MIT" ]
ANISSARIZKY/runtime
src/libraries/System.Security.Principal.Windows/src/System/Security/Principal/IRCollection.cs
12,636
C#
/* * Copyright 2010-2012 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.969697
88
0.741232
[ "Apache-2.0" ]
VonRosenchild/amazon
AWSSDK/Amazon.AutoScaling/Model/DeleteNotificationConfigurationResponse.cs
1,055
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 Roslyn.Utilities; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System...
60.118367
453
0.710299
[ "MIT" ]
Ollon/MSBuildTemplates
src/Microsoft.CodeAnalysis.SyntaxTree/Emit/NoPia/EmbeddedTypesManager.cs
14,731
C#
using DNTFrameworkCore.Dependency; namespace DNTFrameworkCore.Cryptography { /// <summary> /// Specifies the results for password verification. /// </summary> public enum PasswordVerificationResult { /// <summary> /// Indicates password verification failed. /// </summary> ...
29.84375
120
0.648168
[ "Apache-2.0" ]
amir-ashy/DNTFrameworkCore
src/DNTFrameworkCore/Cryptography/IUserPasswordHashAlgorithm.cs
957
C#
// RichTextKit // Copyright © 2019-2020 Topten Software. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may // not use this product except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // ...
43.55914
129
0.597137
[ "Apache-2.0" ]
AnarchyMob/RichTextKit
Topten.RichTextKit/Utils/BinarySearchExtension.cs
4,054
C#
using Album.Syntax; using System.Collections.Generic; using Mono.Cecil.Cil; namespace Album.CodeGen.Cecil { internal partial class CecilCodeGenerationStrategies { public class BranchOriginalSong : CecilCodeGenerationStrategy { private Dictionary<string, Instruction> originalSongs = new(...
42.984615
116
0.586614
[ "MIT" ]
Sweeper777/Album
Album/CodeGen/Cecil/CecilBranch.cs
2,794
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web.Mvc; using Orchard.ContentManagement; using Orchard.Localization; using Orchard.Settings; using Orchard.Taxonomies.Models; using Orchard.Taxonomies.ViewModels; using Orchard.Taxonomies.Services; using Orchar...
38.72103
155
0.534693
[ "BSD-3-Clause" ]
Lombiq/Associativy
src/Orchard.Web/Modules/Orchard.Taxonomies/Controllers/AdminController.cs
9,024
C#
/************************************************************************************* Toolkit for WPF Copyright (C) 2007-2018 Xceed Software Inc. This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license For mo...
40.254902
112
0.65319
[ "MIT" ]
DamianSuess/XamlViewer
src/XamlTheme/Controls/Shell/Standard/DpiHelper.cs
4,108
C#
/* * Licensed to the SkyAPM under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The SkyAPM licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file exce...
34.758621
77
0.72619
[ "Apache-2.0" ]
JMacro/Flash
src/Flash.Extensions.OpenTracting.Skywalking/Implements/Diagnostics/NullParameterResolver.cs
1,010
C#
using System; namespace Bufdio.Exceptions; /// <summary> /// An exception that is thrown when an error occured during Bufdio-specific operations. /// <para>Implements: <see cref="Exception"/>.</para> /// </summary> public class BufdioException : Exception { /// <summary> /// Initializes <see cref="BufdioExce...
25.692308
88
0.649701
[ "MIT" ]
luthfiampas/Bufdio
src/Bufdio/Exceptions/BufdioException.cs
670
C#
using System.Collections.Generic; using FSharp.Compiler.Symbols; using JetBrains.Annotations; using JetBrains.ReSharper.Psi; using JetBrains.ReSharper.Psi.Pointers; namespace JetBrains.ReSharper.Plugins.FSharp.Psi { public interface IFSharpTypeMember : IFSharpTypeParametersOwner, ITypeMember { [CanBeNull] FSh...
26.022222
104
0.783945
[ "Apache-2.0" ]
JetBrains/fsharp-support
ReSharper.FSharp/src/FSharp.Psi/src/IFSharpTypeMember.cs
1,173
C#
// *********************************************************************** // Assembly : MPT.CSI.API // Author : Mark Thomas // Created : 07-07-2017 // // Last Modified By : Mark Thomas // Last Modified On : 07-07-2017 // **********************************************************************...
27.611111
75
0.442153
[ "MIT" ]
MarkPThomas/MPT.Net
MPT/CSI/API/MPT.CSI.Serialize/Models/Helpers/Definitions/Masses/MassProperties.cs
1,991
C#
/* * Copyright 2014, 2015 Dominick Baier, Brock Allen * * 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 applica...
31.289157
103
0.560519
[ "Apache-2.0" ]
AppliedSystems/IdentityServer3
source/Tests/UnitTests/Validation/ScopeValidation.cs
7,793
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IAmbientServicesMixin.cs" company="Kephas Software SRL"> // Copyright (c) Kephas Software SRL. All rights reserved. // Licensed under the MIT license. See LICENSE file in the ...
46.19403
160
0.60517
[ "MIT" ]
kephas-software/kephas
src/Kephas.Core/IAmbientServicesMixin.cs
3,097
C#
using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; // The TreeModel is a utility class working on a list of serializable TreeElements where the order and the depth of each TreeElement define // the tree structure. Note that the TreeModel itself is not serializable (in Unity w...
29.612457
147
0.679364
[ "MIT" ]
Enanyy/moon
client/Assets/Scripts/Editor/Tree/TreeDataModel/TreeModel.cs
8,558
C#
using DNTPersianUtils.Core; namespace DNTFrameworkCore.TestAPI.Helpers { public static class PersianHelper { private const char RightToLeftEmbedding = (char) 0x202B; private const char LeftToRightEmbedding = (char) 0x202D; private const char PopDirectionalFormatting = (char) 0x202C; ...
43.218182
116
0.528818
[ "Apache-2.0" ]
hueifeng/DNTFrameworkCore
test/DNTFrameworkCore.TestAPI/Helpers/PersianHelper.cs
2,377
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.ServiceBus; using Microsoft.Azure.WebJobs.ServiceBus.Config; using Microsoft.Extensions.Conf...
32.672414
118
0.628496
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/src/Config/ServiceBusHostBuilderExtensions.cs
1,897
C#
using System; using System.Diagnostics; using System.Linq; using System.Threading; using NUnit.Framework; using OrigoDB.Core.Benchmarking; namespace OrigoDB.Test.NUnit { [TestFixture] public class BenchmarkTests { [Test] public void WeightedRandomizationTest() { //gener...
35.934579
97
0.512874
[ "MIT" ]
DevrexLabs/OrigoDB
src/OrigoDB.Core.UnitTests/BenchmarkTests.cs
3,847
C#
using System; using System.Security.Claims; using System.Threading.Tasks; namespace MicroWiki.Abstract { public interface IUserService { ClaimsPrincipal GetClaimsPrincipal(Guid id, string email); Task<(bool valid, Guid? id)> ValidateLogin(string email, string password); } }
21.785714
82
0.72459
[ "Apache-2.0" ]
markashleybell/microwiki
microwiki/Abstract/IUserService.cs
305
C#
using GStore.API.Common; using GStore.API.Models; using GStore.Core; using GStore.Core.Data; using GStore.Core.Domain; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using MongoDB.Bson; using System.Linq; using Sys...
33.282828
109
0.554476
[ "Apache-2.0" ]
antdimot/gstore
src/GStore.API/Controllers/UserController.cs
3,297
C#
// Copyright 2017 the original author or 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
42.092369
208
0.67589
[ "Apache-2.0" ]
FrancisChung/steeltoe
src/CircuitBreaker/src/HystrixBase/HystrixCommandMetrics.cs
10,483
C#
using Newtonsoft.Json; namespace WeiboSharp.Classes { public class TwoFactorLoginSMS { [JsonProperty("two_factor_required")] public bool TwoFactorRequired { get; set; } [JsonProperty("two_factor_info")] public InstaTwoFactorLogin TwoFactorInfo { get; set; } } }
22.071429
62
0.673139
[ "MIT" ]
TimothyMakkison/WeiboSharp
WeiboSharp/Classes/ResponseWrappers/Insta/Login/TwoFactorLoginSMSResponse.cs
311
C#
using System.Collections; using CSM.Commands.Data.TransportLines; using CSM.Helpers; using CSM.Injections; namespace CSM.Commands.Handler.TransportLines { public class TransportLineMoveStopHandler : CommandHandler<TransportLineMoveStopCommand> { protected override void Handle(TransportLineMoveStopComm...
35.774194
144
0.67899
[ "MIT" ]
hebestreit/Tango
src/Commands/Handler/TransportLines/TransportLineMoveStopHandler.cs
1,111
C#
/** * Copyright 2013 Canada Health Infoway, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
36.206897
83
0.708571
[ "ECL-2.0", "Apache-2.0" ]
CanadaHealthInfoway/message-builder-dotnet
message-builder-release-ab_r02_04_03_shr/Main/Ca/Infoway/Messagebuilder/Model/Ab_r02_04_03_shr/Domainvalue/RoleAccessType.cs
1,050
C#
namespace Tilia.Interactions.Controllables.LinearDriver { using UnityEngine; public class LinearDriveTag : MonoBehaviour { } }
18
56
0.729167
[ "MIT" ]
ExtendRealityLtd/Tilia.Interactions.Controllables.Unity
Runtime/SharedResources/Scripts/LinearDriver/LinearDriveTag.cs
146
C#
// This file is part of YamlDotNet - A .NET library for YAML. // Copyright (c) Antoine Aubry and contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, inclu...
39.581818
91
0.575103
[ "MIT" ]
Arakade/YamlDotNet
YamlDotNet.Test/Helpers/OrderedDictionaryTests.cs
4,356
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Linq; using TensorShader; namespace TensorShaderTest.Functions.BinaryArithmetric { [TestClass] public class MulTest { [TestMethod] public void ExecuteTest() { const int length = 256, ch = 8; R...
31.880208
124
0.451233
[ "MIT" ]
tk-yoshimura/TensorShader
TensorShaderTest/Functions/BinaryArithmetric/MulTest.cs
6,121
C#
using System; using System.Collections.Generic; using Elastic.Xunit.XunitPlumbing; using FluentAssertions; using Nest; using Tests.Core.ManagedElasticsearch.Clusters; using Tests.Framework.Integration; namespace Tests.Document.Multiple.BulkAll { public class BulkAllDeallocationApiTests : BulkAllApiTestsBas...
32.724138
121
0.701791
[ "Apache-2.0" ]
msarilar/elasticsearch-net
src/Tests/Tests/Document/Multiple/BulkAll/BulkAllDeallocationApiTests.cs
1,900
C#
// T4 code generation is enabled for model 'T:\Dev\ToDoList\ToDoList\DBConnect\DBConnectModel.edmx'. // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model // is open in ...
75.9
105
0.764163
[ "MIT" ]
Manchen08/ToDoList
DBConnect/DBConnectModel.Designer.cs
761
C#
namespace PixivApi.Core.SqliteDatabase; internal sealed partial class Database { private sqlite3_stmt? enumerateHiddenPagesByUserStatement; private sqlite3_stmt? enumerateHiddenPagesByArtworkStatement; private sqlite3_stmt? enumerateHiddenPagesByPageStatement; [StringLiteral.Utf8("SELECT \"A\...
41.202532
178
0.576805
[ "MIT" ]
pCYSl5EDgo/PixivApi
src/PixivApi.Core.SqliteDatabase/Database_EnumerateHiddenPages.cs
6,512
C#
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team // // 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, co...
42.576471
128
0.758497
[ "MIT" ]
trigger-death/ZeldaOracle
EditorLibraries/ICSharpCode.AvalonEdit/Search/DropDownButton.cs
3,624
C#
using System; namespace Bing.Datas.Sql.Queries.Builders.Abstractions { /// <summary> /// 实体别名注册器 /// </summary> public interface IEntityAliasRegister { /// <summary> /// 注册实体别名 /// </summary> /// <param name="entity">实体类型</param> /// <param name="alias">别名</...
23.28125
54
0.503356
[ "MIT" ]
ivivioutlookcom/Bing.NetCore
src/Bing/Datas/Sql/Queries/Builders/Abstractions/IEntityAliasRegister.cs
825
C#
using RazorConverter.Tests.Common.XunitExtensions; namespace Telerik.RazorConverter.Tests.Razor.Converters { using Moq; using System.Collections.Generic; using Telerik.RazorConverter; using Telerik.RazorConverter.Razor.Converters; using Telerik.RazorConverter.Razor.DOM; using Telerik.RazorConv...
48.796748
139
0.695768
[ "MIT" ]
yevgeniyredko/razor-converter
Telerik.RazorConverter.Tests/Razor/Converters/ContentTagConverterTests.cs
6,004
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace AoC { class Program { static void Main(string[] args) { var isSample = args.Length > 0 && args[0] == "-s"; var fileName = isSample ? "sample.txt" : "input.txt"; var...
35.571429
117
0.489033
[ "Apache-2.0" ]
kbaley/AdventOfCode-2020
Day22/Program.cs
3,239
C#
using Model; using Model.Managers; using System.Collections; using System.Collections.Generic; using UnityEngine; using View.UI; namespace View { public class UnitControlView : MonoBehaviour { public GameObject panel; [Space] public GameObject skillPanel; public SkillButton[] ...
29.102564
101
0.513069
[ "MIT" ]
unagi11/project21
Assets/Scripts/View/UnitControlView.cs
3,513
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace addressbook_tests_white { public class HelperBase { protected ApplicationManager manager; public HelperBase(ApplicationManager manager) { //TODO: Complete member initializat...
16.434783
53
0.656085
[ "Apache-2.0" ]
Nirea-ithiliel/csharp_training
addressbook_tests_white/addressbook_tests_white/appmanager/HelperBase.cs
380
C#
// // -------------------------------------------------------------------------------------------------------------------- // // <copyright file="ToEnumeratedStringTests.cs" company=""> // // Copyright 2013 Thomas PIERRAIN // // Licensed under the Apache License, Version 2.0 (the "License"); // // you may no...
41.133333
144
0.547812
[ "Apache-2.0" ]
draptik/NFluent
tests/NFluent.Tests/ToEnumeratedStringTests.cs
2,411
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.IO; namespace BuildXL.Cache.ContentStore.InterfacesTest.Hashing { internal static class MockBuilder { public static byte[] GetContent(int contentLength = 1000) { byte[] content = new ...
25.777778
72
0.558908
[ "MIT" ]
BearerPipelineTest/BuildXL
Public/Src/Cache/ContentStore/InterfacesTest/Hashing/MockBuilder.cs
696
C#
/** * Copyright 2017 IBM Corp. 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 * * Unless required by applicable law o...
37.35689
138
0.521093
[ "Apache-2.0" ]
mediumTaj/watson-survival-shooter
Assets/Watson/Tests/LanguageTranslatorV3UnitTests.cs
10,572
C#
// Copyright (c) MOSA Project. Licensed under the New BSD License. using Mosa.Compiler.Framework.Linker; using Mosa.Compiler.Framework.Trace; using Mosa.Compiler.MosaTypeSystem; using System; using System.Collections.Generic; namespace Mosa.Compiler.Framework { public class MosaCompiler { public enum CompileStage...
20.777251
328
0.699133
[ "BSD-3-Clause" ]
marcelocaetano/MOSA-Project
Source/Mosa.Compiler.Framework/MosaCompiler.cs
4,384
C#
using System.Linq; using EfCore.Attempt3.EnumHelpers; using EfCore.Attempt3.Model; using Microsoft.EntityFrameworkCore; using Serilog; namespace EfCore.Attempt3 { public class Sample3 { public static void Run() { Log.Information("Starting attempt 3..."); CreateAndSeed()...
29.676768
122
0.506807
[ "MIT" ]
snavarropino/EfCoreEnums
src/EfCore.Attempt3/Sample.cs
2,940
C#
//////////////////////////////////////////////// // https://github.com/badhitman //////////////////////////////////////////////// using BootstrapAspDynamicRender.service; using Microsoft.AspNetCore.Mvc; namespace BootstrapAspDynamicRender.components { public class brNavbarText: ViewComponent { public ...
27.888889
73
0.567729
[ "Apache-2.0" ]
badhitman/Bootstrap-layout-dynamic-render
Components/bootstrap/navbar/brNavbarText.cs
504
C#
// Copyright (c) 2020 Sergio Aquilini // This code is licensed under MIT license (see LICENSE file for details) using Silverback.Messaging.Messages; namespace Silverback.Tests.Integration.TestTypes.Domain { public interface IIntegrationMessage : IMessage { } }
23
73
0.757246
[ "MIT" ]
mjeanrichard/silverback
tests/Silverback.Integration.Tests/TestTypes/Domain/IIntegrationMessage.cs
278
C#
#if UNITY_EDITOR using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; [CustomEditor(typeof(MenuController))] public class MenuControllerEditor : Editor { public override void OnInspectorGUI () { MenuController mC = target as MenuController; if(GUILayout.Button("Fin...
23.6
97
0.68523
[ "MIT" ]
charliethegoldfish/BlogToGameFramework
BlogToGame/Assets/Project/Scripts/Editor/MenuControllerEditor.cs
1,654
C#
/* * 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/. * Copyright (c) Swan & The Quaver Team <support@quavergame.com>. */ using System; using System.Collections.Generi...
44.077079
204
0.549609
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Adrriii/Quaver
Quaver.Shared/Screens/Gameplay/Rulesets/Input/InputManagerKeys.cs
21,730
C#
// <copyright file="HhKontoRep.cs" company="cwkuehl.de"> // Copyright (c) cwkuehl.de. All rights reserved. // </copyright> namespace CSBP.Services.Repositories { using System; using System.Collections.Generic; using System.Linq; using CSBP.Apis.Models; using CSBP.Apis.Services; using CSBP.Base; using CSB...
32.320755
348
0.631932
[ "MIT" ]
cwkuehl/csbp
CSBP/Services/Repositories/Gen/HhKontoRep.cs
3,427
C#
using System; using GObject.Core; namespace Gtk.Core { public class GEventBox : GBin { protected Property<bool> AboveChild { get; } protected Property<bool> VisibleWindow { get; } internal protected GEventBox(IntPtr handle) : base(handle) { AboveChild = PropertyOfB...
24.647059
67
0.620525
[ "MIT" ]
Blquinn/gir.core
Libs/Gtk/Core/Classes/EventBox.cs
419
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("Coo...
38.108108
84
0.749645
[ "MIT" ]
crDahaka/CookWithMeSystem
CookWithMeSystem/Data/CookWithMeSystem.Data/Properties/AssemblyInfo.cs
1,413
C#
// ------------------------------------------------------------------------------ // <copyright file="ExpressionParser.cs" company="Drake53"> // Licensed under the MIT license. // See the LICENSE file in the project root for more information. // </copyright> // ----------------------------------------------------------...
60.949153
136
0.602614
[ "MIT" ]
Bia10/War3Net
src/War3Net.CodeAnalysis.Jass/Parser/ExpressionParser.cs
3,596
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace Microsoft.Fram...
38.555102
155
0.5379
[ "Apache-2.0" ]
virajs/KRuntime
src/Microsoft.Framework.Project/CrossGenManager.cs
9,446
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // The enumeration constants used in CultureInfo.GetCultures(). // On Linux platforms, the only enum values used there is NeutralCultures and SpecificCultures // the rest are obsolet...
57.814815
167
0.742473
[ "MIT" ]
333fred/runtime
src/libraries/System.Private.CoreLib/src/System/Globalization/CultureTypes.cs
1,561
C#
using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.Experimental.Rendering.Universal; namespace UnityEditor.Experimental.Rendering.Universal { internal class SortingLayerDropDown { private class LayerSelectionData { public SerializedO...
44.966667
178
0.63914
[ "MIT" ]
AlePPisa/GameJamPractice1
Cellular/Library/PackageCache/com.unity.render-pipelines.universal@8.2.0/Editor/2D/SortingLayerDropDown.cs
6,745
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> //--...
39.444444
151
0.581221
[ "MIT" ]
pennant/Live-Charts
ChartsTest/Properties/Settings.Designer.cs
1,067
C#
namespace NoodleExtensions { using System; using System.Collections.Generic; using System.Linq; using CustomJSONData; using CustomJSONData.CustomBeatmap; using Heck; using Heck.Animation; using UnityEngine; using static NoodleExtensions.Plugin; internal static class NoodleObjec...
38.529197
182
0.594298
[ "MIT" ]
Aeroluna/NoodleExtensions
NoodleExtensions/NoodleObjectData.cs
10,559
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Buffers; using System.Threading.Tasks; using Microsoft.AspNetCore.Connections; using Microsoft.AspNetCore.SignalR.Protocol; u...
38.833333
177
0.619129
[ "Apache-2.0" ]
anthonyhumphreys/SignalR
test/Microsoft.AspNetCore.SignalR.Client.Tests/HubConnectionTests.cs
8,155
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DaprFrontEnd.Pages { public class PrivacyModel : PageModel { private readonly ILogge...
20.44
57
0.675147
[ "MIT" ]
ardacetinkaya/LearningDapr
DaprFrontEnd/Pages/Privacy.cshtml.cs
513
C#
namespace ImpossibleOdds.Http { using System; using ImpossibleOdds.Serialization; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false)] public sealed class HttpBodyObjectAttribute : Attribute, ILookupTypeObject { } }
26
90
0.811538
[ "MIT" ]
juniordiscart/ImpossibleOdds-Toolkit
Assets/Impossible Odds/Toolkit/Runtime/Http/Body/Attributes/HttpBodyObjectAttribute.cs
262
C#
using System; using System.Collections.Generic; using System.Text; namespace DotNetPow.Web.Icons.MaterialDesignIcons { /// <summary> /// Static definitions for Material Design Icons /// </summary> public static class StaticMaterialDesignIconDefinitions { private static List<MaterialDesignIconModel>...
66.844535
154
0.743958
[ "Apache-2.0" ]
dot-net-pow/dot-net-pow-flags
src/DotNetPow.Web.Icons/MaterialDesignIcons/StaticMaterialDesignIconDefinitions.cs
689,236
C#
namespace Serenity.ComponentModel { /// <summary> /// Specifies ID field to filter on a field. For example, if this attribute /// is placed on EmployeeName field, EmployeeId can be the filtering field, /// so that values are filtered on ID not text value. /// </summary> /// <seealso cref...
32.103448
93
0.557465
[ "MIT" ]
ArsenioInojosa/Serenity
src/Serenity.Net.Core/ComponentModel/Columns/Filtering/FilteringIdFieldAttribute.cs
933
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.Data { using System; using System.ComponentModel; [AttributeUsage(AttributeTargets...
27.043478
81
0.540193
[ "MIT" ]
0xced/SqlClient
src/Microsoft.Data.SqlClient/netfx/src/Resources/ResDescriptionAttribute.cs
1,246
C#
using System; namespace Modern.Vice.PdbMonitor.Engine.Services.Abstract { public interface IProjectPrgFileWatcher { void Start(string path, string filter); void Stop(); } }
18.454545
57
0.679803
[ "MIT" ]
MihaMarkic/modern-vice-pdb-monitor
source/Modern.Vice.PdbMonitor/Modern.Vice.PdbMonitor.Engine/Services/Abstract/IProjectPrgFileWatcher.cs
205
C#
using System; using CMS.Activities; using CMS.Activities.Web.UI; public partial class CMSModules_Activities_Controls_UI_ActivityDetails_ProductRemovedFromShoppingCart : ActivityDetail { #region "Methods" public override bool LoadData(ActivityInfo ai) { return uc.LoadData(ai); } #endreg...
19.117647
118
0.750769
[ "MIT" ]
BryanSoltis/KenticoMVCWidgetShowcase
CMS/CMSModules/Activities/Controls/UI/ActivityDetails/ProductRemovedFromShoppingCart.ascx.cs
327
C#
using System; using System.Collections.Generic; using System.Linq; using DotVVM.Framework.ViewModel; namespace DotVVM.Samples.Common.ViewModels.FeatureSamples.PostBackSpaNavigation { public class DenyPostbacksOnSpaNavigationService { [AllowStaticCommand] public int StaticCommand(int result) ...
21
79
0.701058
[ "Apache-2.0" ]
Mrnda/dotvvm
src/DotVVM.Samples.Common/ViewModels/FeatureSamples/PostbackSpaNavigation/DenyPostbacksOnSpaNavigationService.cs
380
C#
using System; using Nop.Core.Infrastructure; using NUnit.Framework; namespace Nop.Core.Tests.Infrastructure { [TestFixture] public class SingletonTests { [Test] public void Singleton_IsNullByDefault() { var instance = Singleton<SingletonTests>.Instance; Asse...
30.508475
98
0.608889
[ "MIT" ]
EvaSRGitHub/NopCommerce-HomePageNewProductsPlugin
src/Tests/Nop.Core.Tests/Infrastructure/SingletonTests.cs
1,802
C#
using System.Collections.Generic; using Value; namespace NScan.SharedKernel { public class RuleViolation : ValueType<RuleViolation> { public RuleViolation(string ruleDescription, string prefixPhrase, string violationDescription) { RuleDescription = ruleDescription; PrefixPhrase = prefixPhrase; ...
27.769231
98
0.734072
[ "MIT" ]
pascalberger/nscan
src/NScan.SharedKernel/RuleViolation.cs
722
C#
using System; namespace EFCore.ModelBuilderExtensions.Attributes { [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] public class SqlDefaultValueAttribute : Attribute { public string DefaultValue { get; } public SqlDefaultValueAttribute(string defaultValue) { ...
24.933333
70
0.687166
[ "MIT" ]
admchppll/EFCore.ModelBuilderExtensions
EFCore.ModelBuilderExtensions/Attributes/SqlDefaultValueAttribute.cs
376
C#
using System.Collections.Generic; using System; namespace AllGreen.Core { public interface IClipboard { void SetText(string text); } }
15.5
34
0.690323
[ "MIT" ]
gstamac/AllGreen
src/AllGreen.Core/IClipboard.cs
155
C#
using System; using System.Collections.Generic; using System.Data; 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; usin...
29.763158
72
0.637489
[ "MIT" ]
ZL-Song/ChemEngThermCal
ChemEngThermCal/View/DbMngView.xaml.cs
1,143
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.268293
99
0.723305
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Rds/Apis/DeleteAuditResult.cs
1,235
C#
using UnityEngine; using System.Collections; public class DelayedAction : ActionBase { public float Delay = 1f; public ActionBase Action; public override void Act() { StartCoroutine(DelayAction()); } IEnumerator DelayAction() { yield return new WaitForSeconds(Delay); Actio...
19.823529
47
0.658754
[ "MIT" ]
mikelovesrobots/unity3d-trigger-action-pattern
TriggerAction/Actions/DelayedAction.cs
337
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.796774
264
0.567515
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/ApiGatewayV2/Generated/Model/GetApiResponse.cs
9,857
C#
namespace VotingIrregularities.Api.Services { public class ClearTextService : IHashService { public string Salt { get; set; } public string GetHash(string clearString) => clearString; } }
27
65
0.685185
[ "MPL-2.0" ]
boneacsu/monitorizare-vot
src/api/VotingIrregularities.Api/Services/ClearTextService.cs
218
C#
 namespace AirSimUnity { /** * An interface to Unity client into AirLib wrapper. */ public interface IAirSimInterface { KinemticState GetKinematicState(); void InvokeTickInAirSim(float deltaSecond); void InvokeCollisionDetectionInAirSim(string vehicleName, CollisionInfo ...
21.5
95
0.694767
[ "MIT" ]
AndrewWu1998/AirSim
Unity/UnityDemo/Assets/AirSimAssets/Scripts/Vehicles/IAirSimInterface.cs
346
C#
 namespace Sparkle.Entities.Networks { using System; using System.Collections.Generic; using System.Linq; using System.Text; public class EmailContact { public EmailContact() { } public EmailContact(string emailAddress) { thi...
27.647887
91
0.535405
[ "MPL-2.0" ]
SparkleNetworks/SparkleNetworks
src/Sparkle.Entities/Networks/EmailContact.cs
1,965
C#
/* Copyright 2010-2014 MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
46.826143
206
0.597908
[ "Apache-2.0" ]
afhaque/mongo-csharp-driver
src/MongoDB.Driver/Builders/UpdateBuilder.cs
145,444
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OAuth2Manager.Common { public interface IUserConsentHandler { bool IsCallback(Uri currentUri); Task<bool> ProcessAuthorizationAsync(Uri currentUri); } }
20.6
61
0.744337
[ "MIT" ]
IAmWaseem/oauth2-xamarin
Common/IUserConsentHandler.cs
311
C#
using GokceFramework.Core.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace GokceFramework.Core.DataAccess { public interface IEntityRepository<T> where T : class, IEntity, new() { L...
25.9
73
0.685328
[ "Apache-2.0" ]
gokceozel/GokceFramework
GokceFramework/GokceFramework.Core/DataAccess/IEntityRepository.cs
520
C#
using System.Reflection; using System.Runtime.InteropServices; // La información general sobre un ensamblado se controla mediante el siguiente // conjunto de atributos. Cambie estos atributos para modificar la información // asociada con un ensamblado. [assembly: AssemblyTitle("Tanks")] [assembly: AssemblyDescriptio...
41.222222
125
0.756065
[ "MIT" ]
Selinux24/SharpDX-Tests
Games/Tanks/Properties/AssemblyInfo.cs
1,502
C#
namespace Microsoft.ApplicationInsights.DataContracts { using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Reflection; using Microsoft.ApplicationInsights.Channel; using Microsoft.ApplicationInsights.Extensibility...
43.407895
141
0.653834
[ "MIT" ]
304NotModified/ApplicationInsights-dotnet
BASE/Test/Microsoft.ApplicationInsights.Test/Microsoft.ApplicationInsights.Tests/DataContracts/PageViewTelemetryTest.cs
9,899
C#
#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; name...
32.636364
125
0.56546
[ "MIT" ]
zxsean/DCET
Unity/Assets/Model/XLua/Gen/MikuLuaProfilerHookLuaSetupWrap.cs
8,618
C#