content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; namespace SpiceSharp { /// <summary> /// Exception for identifying a bad parameter. /// </summary> public class BadParameterException : CircuitException { /// <summary> /// Initializes a new instance of the <see cref="BadParameterException"/> class. /// </summ...
35.028571
99
0.613377
[ "MIT" ]
AIFramework/SpiceSharp
SpiceSharpNetFr/Diagnostics/BadParameterException.cs
1,228
C#
using System.Threading.Tasks; using Pokemon.Domain.Services; using Microsoft.Extensions.Logging; using System.Net.Http; using System.Text; using System.Text.Json; using Pokemon.Services.Translations.Models; namespace Pokemon.Services { public class TextTranslationProcessor : ITextTranslationProcessor { ...
35.852459
119
0.656607
[ "MIT" ]
thedarkjester/PokemonApi
code/src/Pokemon.Services/Translations/TextTranslationProcessor.cs
2,189
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.677419
151
0.584186
[ "Apache-2.0" ]
AutomateThePlanet/AutomateThePlanet-Learning-Series
dotnet/GiftsForGeeks/FlowersCatsSurprise/Properties/Settings.Designer.cs
1,077
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.Management.Network.Models { public partial class VpnSite : IUtf8JsonSerializable ...
39.212625
197
0.405151
[ "MIT" ]
AzureDataBox/azure-sdk-for-net
sdk/testcommon/Azure.Management.Network.2020_04/src/Generated/Models/VpnSite.Serialization.cs
11,803
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Collections.Generic; using Microsoft.CodeAnalysis.Sarif; using Microsoft.CodeAnalysis.Sarif.Baseline; using Microsoft.CodeAnalysis.Sarif.Baseline.ResultMatching; namespace SarifBaseline.Extensions { /// <...
36.333333
135
0.743119
[ "MIT" ]
Eduardo-Silla/sarif-sdk
src/Test.EndToEnd.Baselining/Extensions/DirectResultMatchingComparer.cs
981
C#
using System; using System.Collections.Generic; using Shouldly; namespace ConsoleApp1 { class Program { static void Main(string[] args) { List<string> steList = new List<string> { "A2", "A1", "A1" }; try { steList.ShouldAllBeEqual(); ...
19.833333
73
0.476891
[ "BSD-3-Clause" ]
Haneen96/shouldly
src/ConsoleApp1/Program.cs
478
C#
/* ==================================================================== Licensed To the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for Additional information regarding copyright ownership. The ASF licenses this file To Y...
38.408
145
0.552177
[ "MIT" ]
zhupangithub/WEBERP
Code/Zephyr.Net/Zephyr.Utils/Document/Excel/NPOI/HPSF/Thumbnail.cs
9,602
C#
class MyClass { public static void Main() { double d = 3.2; /* inserted */ int _5 = 7; int i1 = d; } } class DerivedClass: MyClass {}
15.5
30
0.548387
[ "Apache-2.0" ]
thufv/DeepFix-C-
data/Mutation/CS0266_2_mutation_04/[E]CS0266.cs
157
C#
// Copyright (c) Philipp Wagner. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; namespace ApacheJenaSample.Csv.Aotp.Model { public class Flight { /// <summary> /// Year /// </summary> publ...
31.152542
123
0.535229
[ "MIT" ]
bytefish/ApacheJenaSample
ApacheJenaSample/ApacheJenaSample.Csv.Aotp/Model/Flight.cs
7,352
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.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnal...
33.071429
184
0.590113
[ "Apache-2.0" ]
codemonkey85/roslyn
Src/Compilers/CSharp/Source/CSharpParseOptions.cs
8,336
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using System.IO; using Newtonsoft.Json; namespace AndroidApp { class AppConfiguration { p...
25.903846
108
0.608018
[ "MIT" ]
h2floh/KITEDemo
AndroidApp/AppConfiguration.cs
1,349
C#
// // Copyright 2015 Blu Age Corporation - Plano, Texas // // 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 requ...
36.066826
94
0.573716
[ "Apache-2.0" ]
SummerBatch/SummerBatchCore
Summer.Batch.CoreTests/Util/BigDecimalUtilsTests.cs
15,114
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace SausageChat { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { } }
17.333333
40
0.733974
[ "MIT" ]
ArchyInUse/SausageChat
SausageChat/App.xaml.cs
312
C#
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information using System.Threading.Tasks; using Elastic.Elasticsearch.Xunit.XunitPlumbing; using Nest; using Tests.Framework.E...
39.181818
88
0.758701
[ "Apache-2.0" ]
Jiasyuan/elasticsearch-net
tests/Tests/XPack/Eql/Status/EqlSearchStatusUrlTests.cs
862
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.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Runtime.Exc...
42.120183
217
0.573261
[ "Apache-2.0" ]
a14907/AspNetCore
src/Components/Components/test/RendererTest.cs
239,369
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Linq; using System.Text; using JetBrains.Annotations; namespace Faithlife.Utility { /// <summary> /// Provides methods for manipulatin...
35.455583
174
0.635712
[ "MIT" ]
journeyman32/FaithlifeUtility
src/Faithlife.Utility/StringUtility.cs
43,504
C#
using FluentAssertions; using NUnit.Framework; using Vostok.Clusterclient.Core.Ordering.Storage; namespace Vostok.Clusterclient.Core.Tests.Ordering.Storage { [TestFixture] internal class ReplicaStorageProviderFactory_Tests { [Test] public void Should_return_per_process_provider_for_process_...
36.1
134
0.714681
[ "MIT" ]
minya/clusterclient.core
Vostok.ClusterClient.Core.Tests/Ordering/Storage/ReplicaStorageProviderFactory_Tests.cs
1,444
C#
using System; using System.Net; using System.Threading; using System.Threading.Tasks; namespace SocketIo.SocketTypes { internal abstract class BaseNetworkProtocol { public bool Listening => _listening; protected bool _listening = false; protected string IpAddress = null; protected int NetworkTimeout = 0; ...
28.616071
112
0.722309
[ "MIT" ]
263613093/SocketIo.Core
src/SocketIo.Core/Sockets/SocketTypes/BaseNetworkProtocol.cs
3,207
C#
#region BSD License /* * Use of this source code is governed by a BSD-style * license or other governing licenses that can be found in the LICENSE.md file or at * https://raw.githubusercontent.com/Krypton-Suite/Extended-Toolkit/master/LICENSE */ #endregion namespace Krypton.Toolkit.Suite.Extended.Software.Updater...
40.194093
137
0.584506
[ "BSD-3-Clause" ]
Krypton-Suite/Extended-Toolk
Source/Krypton Toolkit/Main/Krypton.Toolkit.Suite.Extended.Software.Updater/NetSparkle/Core/Configurations/RegistryConfiguration.cs
9,528
C#
// <copyright file="AssemblyInfo.cs" company="OpenCensus Authors"> // Copyright 2018, OpenCensus 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/l...
50.72973
374
0.837507
[ "Apache-2.0" ]
fhalim/opencensus-csharp
src/OpenCensus.Exporter.Stackdriver/AssemblyInfo.cs
1,879
C#
//////////////////////////////// // // Copyright 2018 Battelle Energy Alliance, LLC // // //////////////////////////////// //------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file m...
32.277778
85
0.518933
[ "MIT" ]
Harshilpatel134/cisagovdocker
CSETWebApi/CSETWeb_Api/DataLayer/VIEW_QUESTIONS_STATUS.cs
1,162
C#
using UnityEngine; using UnityEngine.UI; namespace Nobi.UiRoundedCorners { [ExecuteInEditMode] [RequireComponent(typeof(RectTransform))] public class ImageWithRoundedCorners : MonoBehaviour { private static int Props; public float radius; private Material material; [HideInInspector, SerializeField]...
22.015385
86
0.614955
[ "MIT" ]
muskit/H3VR-Desktop-Freecam
Assets/Unity-UI-Rounded-Corners/UiRoundedCorners/ImageWithRoundedCorners.cs
1,433
C#
using NuPattern; using NuPattern.Diagnostics; using NuPattern.Runtime; using NuPattern.Runtime.ToolkitInterface; using NuPattern.Runtime.Validation; using ServiceStackToolkit.Automation.Properties; using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Composition; usi...
37.472973
141
0.647313
[ "Unlicense" ]
jezzsantos/servicestacktoolkit
src/ServiceStackToolkit.Automation/ValidationRules/VerbIdRequestFieldValidator.cs
2,775
C#
using Microsoft.AspNetCore.Builder; namespace Ocelot.Headers.Middleware { public static class ClaimsToHeadersMiddlewareExtensions { public static IApplicationBuilder UseClaimsToHeadersMiddleware(this IApplicationBuilder builder) { return builder.UseMiddleware<ClaimsToHeadersMiddlew...
26.615385
104
0.736994
[ "MIT" ]
Amoeslund/Ocelot
src/Ocelot/Headers/Middleware/ClaimsToHeadersMiddlewareExtensions.cs
348
C#
using CleanArchitecture.Application.Common.Interfaces; using CleanArchitecture.Domain.Common; using MassTransit; using Microsoft.Extensions.Logging; namespace CleanArchitecture.Infrastructure.Services; public class DomainEventService : IDomainEventService { private readonly ILogger<DomainEventService> _logger; ...
33.625
103
0.774473
[ "MIT" ]
suleymanozev/CleanArchitecture
src/Infrastructure/Services/DomainEventService.cs
809
C#
namespace Unosquare.Net { using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using System.Threading.Tasks; #if SSL using System.Security.Cryptography.X509Certificates; #endif internal sealed class HttpConnection { ...
28.397163
166
0.449883
[ "MIT" ]
ThomasPiskol/embedio
src/Unosquare.Labs.EmbedIO/System.Net/HttpConnection.cs
12,014
C#
 using Microsoft.VisualStudio.TestTools.UnitTesting; using Riganti.Selenium.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DotVVM.Testing.Abstractions; namespace DotVVM.Samples.Tests.Complex { [TestClass] public class DataTemplat...
32.4
117
0.593067
[ "Apache-2.0" ]
adamjez/dotvvm
src/DotVVM.Samples.Tests/Complex/DataTemplateTests.cs
2,108
C#
using System; using System.Data; using System.Data.SqlClient; using HRM.BOL; namespace HRM.DAL { public class AssetTypesDAL { public int Save(AssetTypesBOL objAlw) { DataAccess objDA = new DataAccess(); SqlParameter[] objParam = new SqlParameter[4]; ...
29.106667
86
0.462666
[ "MIT" ]
jencyraj/HumanResourceManagementProject
src/HRM.DAL/AssetTypesDAL.cs
2,185
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...
34.09434
106
0.640841
[ "Apache-2.0" ]
EbstaLimited/aws-sdk-net
sdk/src/Services/Transfer/Generated/Model/Internal/MarshallTransformations/WorkflowStepMarshaller.cs
3,614
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Musics___Server.Usersinfos; using System; using System.Collections.Generic; using System.IO; using System.Xml; using Utility.Musics; using Utility.Network; using Utility.Network.Users; namespace Musics___Server.Usersinfos.Tests { [TestClass()] public c...
41.459596
138
0.615057
[ "MIT" ]
MalauD/Musics-Free-musics-player
Musics - ServerTests/Users/UsersInfosTests.cs
8,211
C#
using System; using System.Windows; using System.Windows.Controls; using System.Windows.Media; namespace Smellyriver.TankInspector.Common.Wpf.Behaviors.DragDrop { public class DropTargetInsertionAdorner : DropTargetAdorner { public DropTargetInsertionAdorner(UIElement adornedElement) : bas...
37.223214
113
0.556009
[ "MIT" ]
smellyriver/tank-inspector-pro
src/Smellyriver.TankInspector.Common.Wpf/Behaviors/DragDrop/DropTargetInsertionAdorner.cs
4,171
C#
using System; using System.IO; using System.Threading; using System.Threading.Tasks; using Xunit; using Xunit.Abstractions; namespace StackExchange.Redis.Tests { public class Failover : TestBase, IAsyncLifetime { protected override string GetConfiguration() => GetMasterReplicaConfig().ToString(); ...
51.615804
194
0.559785
[ "Apache-2.0" ]
alexSatov/StackExchange.Redis
tests/StackExchange.Redis.Tests/Failover.cs
18,945
C#
namespace Seed.Models.V1.DTOs { public class UserToSignInDto { public string EmailAddress { get; set; } public string Password { get; set; } } }
19.333333
48
0.614943
[ "MIT" ]
HeyBaldur/CoRM
Seed.Models/V1/DTOs/UserToSignInDto.cs
176
C#
using System; using System.Collections.Generic; using System.Linq; using static QuickInfo.NodeFactory; namespace QuickInfo { public class AirportCodes : IProcessor { private (string, int)[] airportsIndex; public AirportCodes() { airportsIndex = SortedSearch.CreateIndex(data...
104.017087
211
0.554785
[ "MIT" ]
AlexanderKapitanovski/QuickInfo
src/QuickInfo/Processors/AirportCodes.cs
128,741
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TrainersSalary { class TrainersSalary { static void Main() { var numberOfLecture = int.Parse(Console.ReadLine()); var budget = double.Parse(Cons...
36.296296
78
0.520408
[ "MIT" ]
PavelRunchev/Programming-Fundamentals-2017
Exam Programming basic/13.Exam 19 March 2017 Morning/TrainersSalary/TrainersSalary.cs
1,962
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. namespace System.Data.Entity.Core.Mapping.Update.Internal { using System.Data.Entity.Core.Common; using System.Data.Entity.Core.Metadata.Edm; using System.Data.En...
38.324286
144
0.564655
[ "MIT" ]
dotnet/ef6tools
src/EntityFramework/Core/Mapping/Update/Internal/PropagatorResult.cs
26,827
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace GuideService.Guide.Dtos { public class PersonCreateDto { public string Name { get; set; } public string Surname { get; set; } public string Company { get; set; } } }
19.5
43
0.666667
[ "Apache-2.0" ]
onselaydin/GuidMs
Guide/GuideService.Guide/Dtos/PersonCreateDto.cs
314
C#
using System.ComponentModel.DataAnnotations; namespace GamingWiki.Models { using static Common.DataConstants; public class Class { public int Id { get; set; } [Required] [MaxLength(CharacterClassMaxLength)] public string Name { get; set; } } }
19.666667
45
0.644068
[ "MIT" ]
AtiVassileva/GamingWiki
src/GamingWiki.Models/Class.cs
297
C#
using System; using System.Collections.Generic; using System.Text; namespace OpenCvSharp.Blob { /// <summary> /// Render mode of cvRenderBlobs /// </summary> [Flags] public enum RenderBlobsMode : ushort { /// <summary> /// No flags (=0) /// </summary> None = 0, ...
24.854545
62
0.549378
[ "BSD-3-Clause" ]
CollegiumXR/OpenCvSharp-Xamarin.Droid
src/OpenCvSharp.Blob/RenderBlobsMode.cs
1,369
C#
//------------------------------------------------------------------------------ // <auto-generated> // Este código fue generado por una herramienta. // Versión de runtime:4.0.30319.42000 // // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si // se vuelve a genera...
43.041667
95
0.657309
[ "MIT" ]
Daraciel/NetTools
NetTools/NetTools.Tests/obj/Debug/netcoreapp3.1/NetTools.Tests.AssemblyInfo.cs
1,038
C#
using System; using System.Collections.Generic; using System.Text; namespace StoreApp.Library { public interface IProduct { int ProductId { get; } string ProductName { get; } decimal Price { get; } void UpdatePrice(int newPrice); } }
15.722222
39
0.628975
[ "MIT" ]
2011-nov02-net/alex-project0
StoreApp/StoreApp.Library/IProduct.cs
285
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
33.556701
135
0.596313
[ "Apache-2.0" ]
Darkfaker/tencentcloud-sdk-dotnet
TencentCloud/Mps/V20190612/Models/MediaContentReviewOcrTextSegmentItem.cs
3,561
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.ObjectModel.UnitTests { using System; using Microsoft.VisualStudio.TestPlatform.ObjectModel; using Microsoft....
36.302564
130
0.669445
[ "MIT" ]
Cosifne/vstest
test/Microsoft.TestPlatform.ObjectModel.UnitTests/TestCaseTests.cs
7,081
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
34.730159
156
0.621115
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/operationalinsights/Microsoft.Azure.Management.OperationalInsights/src/Generated/Models/AzureEntityResource.cs
2,188
C#
using System; using SQLite; using System.Linq; using System.Collections.Generic; using PasswordsStashMobile.Model; namespace PasswordsStashMobile.Controller { public class PasswordController { private SQLiteConnection sqliteConn; public string Status = ""; public PasswordController(st...
27.083333
88
0.478462
[ "MIT" ]
JustVice/Passwords-Stash-Mobile
PasswordsStashMobile/PasswordsStashMobile/Controller/PasswordController.cs
2,602
C#
using BEDA.CIB.Contracts.Responses; using BEDA.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace BEDA.CIB.Contracts.Requests { /// <summary> /// 3.17.5虚拟资金池主账户支付额度查询请求主体 /// </summary> pu...
25.630769
78
0.548019
[ "MIT" ]
fdstar/BankEnterpriseDirectAttach
src/BEDA.CIB/Contracts/Requests/3.17/V1_MAINACCTPAYLIMITTRNRQ.cs
1,894
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Linq; using BuildXL.Scheduler.Distribution; using BuildXL.Utilities.Configuration; using BuildXL.Utilities.Instrumentation.Common; using static BuildXL.Utilities.FormattableStringEx; namespace BuildXL.Sched...
39.792453
202
0.630868
[ "MIT" ]
BearerPipelineTest/BuildXL
Public/Src/Engine/Scheduler/Tracing/OchestratorSpecificExecutionLogTarget.cs
4,218
C#
using Gov.Jag.PillPressRegistry.Interfaces; using Gov.Jag.PillPressRegistry.Interfaces.Models; using Gov.Jag.PillPressRegistry.Public.Authentication; using Gov.Jag.PillPressRegistry.Public.Models; using Gov.Jag.PillPressRegistry.Public.Utils; using Gov.Jag.PillPressRegistry.Public.ViewModels; using Microsoft.AspNetCor...
46.905797
237
0.557759
[ "Apache-2.0" ]
GeorgeWalker/jag-pill-press-registry
pill-press-app/Controllers/AccountController.cs
51,786
C#
namespace Lego.Ev3.BrickManager { partial class ExplorerWindow { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary...
43.328
145
0.59435
[ "MIT" ]
mvanderelsen/Lego.Ev3.BrickManager
Lego.Ev3.BrickManager/ExplorerWindow.Designer.cs
5,418
C#
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace MonoGame.Extended.TextureAtlases { public class TextureRegion2D { public TextureRegion2D(Texture2D texture, int x, int y, int width, int height) : this(null, texture, x, y, width, height) ...
30.660714
99
0.569598
[ "MIT" ]
Jaden-Giordano/MonoGame.Extended
Source/MonoGame.Extended/TextureAtlases/TextureRegion2D.cs
1,719
C#
namespace TinyTools.Events { public class IntEventListener : GameEventListener<int> { } }
18.8
62
0.755319
[ "MIT" ]
1ukeb/GameEvents
Events/Runtime/Listeners/IntEventListener.cs
94
C#
using System; using System.Collections.Generic; using System.Data; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace DaedalusCompiler.Compilation { public class OutputUnitsBuilder { private readonly Dictionary<string, st...
43.877976
154
0.48423
[ "MIT" ]
Kirides/DaedalusCompiler
src/DaedalusCompiler/Compilation/OutputUnitsBuilder.cs
14,745
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/. */ using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; n...
22.181818
84
0.709016
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Blayer98/FreeSO
TSOClient/tso.client/Rendering/City/Blend.cs
490
C#
using System; using System.Reflection; using Ash.UI; #if DEBUG namespace Ash { public class MethodInspector : Inspector { // the TextField for our parameter if we have one TextField _textField; Type _parameterType; public static bool AreParametersValid(ParameterInfo[] parameters) { if (parameters.Le...
24.401786
123
0.673619
[ "MIT" ]
JonSnowbd/Ash
Ash.DefaultEC/Debug/Inspector/Inspectors/MethodInspector.cs
2,735
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 Microsoft.AspNetCore.Mvc.Rendering; namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal { /// <summary>...
55.829268
140
0.665793
[ "Apache-2.0" ]
06b/AspNetCore
src/Identity/UI/src/Areas/Identity/Pages/V4/Account/Manage/ManageNavPages.cs
6,867
C#
using System; using System.Threading.Tasks; using Android.Content; using Xamarin.Forms; // Need application's MainActivity using VideoPlayerDemos.Droid; [assembly: Dependency(typeof(FormsVideoLibrary.Droid.VideoPicker))] namespace FormsVideoLibrary.Droid { public class VideoPicker : IVideoPicker { p...
31.756757
88
0.662979
[ "Apache-2.0" ]
15217711253/xamarin-forms-samples
CustomRenderers/VideoPlayerDemos/VideoPlayerDemos/VideoPlayerDemos.Android/FormsVideoLibrary/VideoPicker.cs
1,177
C#
/************************************************************************************ Copyright : Copyright 2014 Oculus VR, LLC. All Rights reserved. Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License"); you may not use the Oculus VR Rift SDK except in compliance with the License, whic...
31.488889
87
0.637968
[ "MIT" ]
AlexBoyd/OculusMobileVRJam2015
Unity/speakVR/Assets/OVR/Moonlight/Scripts/Utils/OVRWaitCursor.cs
1,419
C#
using System; using System.Collections.Generic; using System.Text; using YouGe.Core.Interface.IRepositorys.Sys; using YouGe.Core.DBEntitys.Sys; using YouGe.Core.Interface.IDbContexts; using YouGe.Core.Models.DTModel.Sys; using YouGe.Core.Common.YouGeException; using YouGe.Core.Commons.Helper; using YouGe.Core.Common.S...
38.892473
211
0.63008
[ "MIT" ]
chenqiangdage/YouGe.Core
YouGe.Core.Repositorys/Sys/SysMenuRepository.cs
3,619
C#
/* * Copyright (c) 2021 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/. */ namespace SafeExamBrowser....
32.75
78
0.727099
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Bien-Technologies/seb-win-refactoring
SafeExamBrowser.Applications.Contracts/Events/TitleChangedEventHandler.cs
527
C#
namespace GoogleCloud.Functions.Subscriber.Tests.Logic { using System; using System.IO; using System.Threading.Tasks; using GoogleCloud.Functions.Subscriber.Contracts; using GoogleCloud.Functions.Subscriber.Logic; using GoogleCloud.Functions.Subscriber.Model; using Newtonsoft.Json; ...
35.625
119
0.608421
[ "MIT" ]
MichaelDiers/Templates
.net/GoogleCloud.Functions.Subscriber/GoogleCloud.Functions.Subscriber.Tests/Logic/FunctionProviderTests.cs
1,427
C#
using PiRhoSoft.Utilities; using UnityEngine; namespace PiRhoSoft.Variables { internal class QuaternionVariableHandler : VariableHandler { protected internal override string ToString(Variable variable) { return variable.AsQuaternion.ToString(); } protected internal override void Save(Variable variable, ...
25.161538
107
0.678386
[ "MIT" ]
pirhosoft/PiRhoVariables
Assets/PiRhoVariables/Runtime/Handlers/QuaternionVariableHandler.cs
3,273
C#
 #if UNITY_EDITOR using System.Collections; using System.Collections.Generic; using CombatDesigner; using UnityEditor; using UnityEngine; namespace CombatDesigner.EditorTool { public class View_BehaviorInfo { int timeLineTab; Vector2 actionScrollPos = new Vector2(); private int maxLengt...
42.123894
148
0.583824
[ "MIT" ]
DreamerLin96/CombatDesigner
CombatDesigner/Assets/CombatDesigner/Core/Scripts/_EditorTools/BehaviorEditor/Editor/View_BehaviorInfo.cs
4,762
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; namespace ParserLib.Json.Serialization { public static class JsonSerializer { #region Nested Types private sealed class ClassAttributes { public JsonS...
28.299505
189
0.718796
[ "MIT" ]
ceNobiteElf/parserlib
ParserLib/Json/Serialization/JsonSerializer.cs
11,435
C#
// // SqlClientPermissionAttributeTest.cs - // NUnit Test Cases for SqlClientPermissionAttribute // // Author: // Sebastien Pouliot <sebastien@ximian.com> // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this...
41.938889
160
0.743277
[ "Apache-2.0" ]
CRivlaldo/mono
mcs/class/System.Data/Test/System.Data.SqlClient/SqlClientPermissionAttributeTest.cs
7,549
C#
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\um\mfplay.h(1212,9) using System; using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct MFP_ACQUIRE_USER_CREDENTIAL_EVENT { public MFP_EVENT_HEADER header; ...
31.925926
84
0.665893
[ "MIT" ]
Steph55/DirectN
DirectN/DirectN/Generated/MFP_ACQUIRE_USER_CREDENTIAL_EVENT.cs
864
C#
namespace GildedRose.Policies { public interface IPolicy { void UpdateQuality(); } }
14.857143
29
0.634615
[ "MIT" ]
scmallorca/gilded-rose-dojo
jrogalan_csharp/src/GildedRose/Policies/IPolicy.cs
104
C#
// <copyright file="SendFunction.cs" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> namespace Microsoft.Teams.Apps.CompanyCommunicator.Send.Func { using System; using System.Threading.Tasks; using Microsoft.Azure.WebJobs; using Microsoft.Bot.Builder; using Mic...
47.621514
169
0.616247
[ "MIT" ]
ccampora/microsoft-teams-apps-company-communicator
Source/Microsoft.Teams.Apps.CompanyCommunicator.Send.Func/SendFunction.cs
11,953
C#
using JetBrains.Annotations; using JetBrains.ReSharper.Feature.Services.CodeStructure; using JetBrains.ReSharper.Feature.Services.CSharp.CodeStructure; using JetBrains.ReSharper.Psi.Tree; using JetBrains.Util; namespace GammaJul.ForTea.Core.Services.CodeStructure { internal sealed class T4CSharpCodeStructureRegionEn...
30.888889
114
0.821343
[ "Apache-2.0" ]
JetBrains/ForTea
Backend/Core/ForTea.Core/Services/CodeStructure/T4CSharpCodeStructureRegionEnd.cs
834
C#
using AutoMapper; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using PTSchool.Services.Contracts; using PTSchool.Web.Models.Subject; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace PTSchool.Web.Controllers { [Authorize(Roles = "Admin, Teacher, P...
31.1
90
0.648875
[ "MIT" ]
petartotev/PT_WebApp_PTSchool
Solution/Web/PTSchool.Web/Controllers/SubjectsController.cs
1,557
C#
using Machine.Specifications; using PlainElastic.Net.IndexSettings; using PlainElastic.Net.Utils; namespace PlainElastic.Net.Tests.Builders.IndexSettings { [Subject(typeof(IndexSettingsBuilder))] public class When_IndexSettingsBuilder_builder_has_shards_and_a_replica { private static string result...
32.428571
93
0.643172
[ "MIT" ]
AAATechGuy/PlainElastic.Net
src/PlainElastic.Net.Tests/Builders/IndexSettings/When_IndexSettingsBuilder_builder_has_shards_and_a_replica.cs
683
C#
using Perpetuum.Groups.Gangs; using Perpetuum.Services.Sessions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Perpetuum.Zones { public class StrongHoldZone : Zone { public StrongHoldZone(ISessionManager sessionManager, IG...
22.666667
123
0.742647
[ "MIT" ]
LoyalServant/PerpetuumServerCore
Perpetuum/Zones/StrongHoldZone.cs
410
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...
44.675325
130
0.607267
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Kusto/V20190907/EventGridDataConnection.cs
10,320
C#
using MediatR; using MyBankManager.Api.Requests.Transaction; using MyBankManager.Api.Responses; using MyBankManager.Domain.Interfaces; using System; using System.Threading; using System.Threading.Tasks; namespace MyBankManager.Api.Handlers.Query { public class TransactionRequestHandler : IRequestHandler<Transacti...
37.166667
137
0.76009
[ "MIT" ]
erick-adl/my-bank-manager
src/MyBankManager.Api/Handlers/Query/TransactionRequestHandler.cs
894
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...
30.4
117
0.659539
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DataFactory/Outputs/TarGZipReadSettingsResponse.cs
1,216
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
29.932039
96
0.54687
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/cdn/Microsoft.Azure.Management.Cdn/src/Generated/Models/Usage.cs
3,083
C#
using MediatR; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Ordering.Application.Features.Orders.Commands.CheckoutOrder; using Ordering.Application.Features.Orders.Commands.DeleteCommand; using Ordering.Application.Features.Orders.Commands.UpdateOrder; using Ordering.Application.Features.Orde...
34.265625
95
0.733698
[ "MIT" ]
sanjyotagureddy/aspnetrun-Microservices
src/Services/Ordering/Ordering.API/Controllers/OrderController.cs
2,195
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...
33.746575
130
0.534808
[ "MIT" ]
Peter-Schneider/azure-powershell
src/Common/Commands.Common.Authentication/Models/AzureAccount.Methods.cs
4,784
C#
using UnityEngine; public class GeneralBasic : MonoBehaviour { public GameObject prefabAvatar; void Start() { // Setup var avatarRotate = GameObject.Find("AvatarRotate"); var avatarScale = GameObject.Find("AvatarScale"); var avatarMove = GameObject.Find("AvatarMove"); ...
46.585366
184
0.597382
[ "CC0-1.0" ]
Faulo/AGGamesEngineering
Assets/Plugins/LeanTween/Examples/Scripts/GeneralBasic.cs
3,820
C#
using NPOI.HSSF.UserModel; using NPOI.SS.UserModel; using NPOI.SS.Util; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Linq.Expressions; using WalkingTec.Mvvm.Core.Extensions; namespace WalkingTec.Mvvm.Core { public class ExcelPropety ...
42.829746
167
0.519099
[ "MIT" ]
18363098520/WTM
src/WalkingTec.Mvvm.Core/Support/ExcelPropety.cs
22,842
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...
33.614458
169
0.602509
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Network/V20200701/Inputs/FrontendIPConfigurationArgs.cs
2,790
C#
using System.ComponentModel.DataAnnotations; namespace SFA.DAS.Validation.NetCoreSample.ViewModels.Accounts { public class CreateAccountViewModel { [Required(ErrorMessage = "The 'Username' field is required")] public string Username { get; set; } } }
27.9
69
0.72043
[ "MIT" ]
SkillsFundingAgency/das-shared-packages
SFA.DAS.Validation/SFA.DAS.Validation.NetCoreSample/ViewModels/Accounts/CreateAccountViewModel.cs
279
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.RevenueManagement { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace ...
21.711538
136
0.743431
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.RevenueManagement/Award_Year_DataType.cs
3,387
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.Goog...
36.829268
228
0.641722
[ "Apache-2.0" ]
AaronFriel/pulumi-google-native
sdk/dotnet/Eventarc/V1Beta1/Inputs/CloudRunServiceArgs.cs
1,510
C#
using Sitecore.ContentSearch; using Sitecore.ContentSearch.SearchTypes; using System; using System.Collections.Generic; namespace SitecoreForms.Foundation.Search.Models { public class BaseSearchResultItem : SearchResultItem { [IndexField("alltemplates")] public IList<Guid> Templates { get; set;...
23.642857
56
0.743202
[ "MIT" ]
jaffal83/Sitecore-Forms-Examples
src/Foundation/Search/website/Models/BaseSearchResultItem.cs
331
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEditorInternal; [CustomEditor(typeof(EnviroWeatherPreset))] public class EnviroWeatherPresetEditor : Editor { GUIStyle boxStyle; GUIStyle boxStyle2; GUIStyle wrapStyle; GUIStyle clearStyle; EnviroWeath...
45.8
157
0.762979
[ "MIT" ]
jsl-bim/-
Assets/Plugins/Enviro - Dynamic Enviroment/Scripts/Editor/EnviroWeatherPresetEditor.cs
12,368
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Nest; using PatentSpoiler.App.Domain.Patents; using PatentSpoiler.Models; namespace PatentSpoiler.App.Data.ElasticSearch { public interface IPatentSchemeSearchIndexBuilder { Task I...
32.680851
137
0.570638
[ "Apache-2.0" ]
spadger/patent-spoiler
src/PatentSpoiler/App/Data/ElasticSearch/PatentSchemeSearchIndexBuilder.cs
3,074
C#
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information using System.Threading.Tasks; using Elastic.Elasticsearch.Xunit.XunitPlumbing; using Nest; using Tests.Domain; usi...
37.041667
91
0.760405
[ "Apache-2.0" ]
Atharvpatel21/elasticsearch-net
tests/Tests/Document/Multiple/DeleteByQuery/DeleteByQueryUrlTests.cs
889
C#
using Microsoft.Data.Sqlite; using Microsoft.EntityFrameworkCore; using Moq; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using TestHouse.Application.Infastructure.Repositories; using TestHouse.Application.Services; using TestHouse.Domain.Enums; using TestHouse.Domain...
43.124294
124
0.468034
[ "Apache-2.0" ]
nightBaker/TestHouse
TestHouse.Application.Tests/ProjectServiceTests.cs
15,266
C#
using CulverinEditor; using CulverinEditor.SceneManagement; class TestScript : CulverinBehaviour { }
13
37
0.817308
[ "MIT" ]
TempName0/TempMotor3D_P3
Engine/Game/Assets/TestScript.cs
106
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...
35.361111
174
0.697565
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Compute/Outputs/VirtualMachineScaleSetVMProtectionPolicyResponse.cs
1,273
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TAlex.MathCore.ExpressionEvaluation.Tokenize { public class Token { public readonly string Value; public readonly TokenType TokenType; public Token(string value, TokenType type) { ...
22.044444
87
0.548387
[ "MIT" ]
T-Alex/MathCore
src/TAlex.MathCore.ExpressionsBase/Tokenize/Token.cs
994
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WeatherGrabber.Domain.Models { public class City { public City(string name, string weatherUrl) { Name = name ?? throw new ArgumentNullException(nameof(name)...
27.033333
91
0.58693
[ "MIT" ]
bildeyko/WeatherGrab
WeatherGrabber.Domain/Models/City.cs
813
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 "li...
30.551282
102
0.60512
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/IoT/Generated/Model/ListProvisioningTemplatesRequest.cs
2,383
C#
using System; namespace NorthwindTraders.Common.Dates { public interface IDateTime { DateTime Now { get; } } }
13.3
39
0.639098
[ "MIT" ]
jernejk/NorthwindTraders
Common/Dates/IDateTime.cs
135
C#
using System; using Chartreuse.Today.Core.Shared.Model.Recurrence; using Chartreuse.Today.ToodleDo; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Chartreuse.Today.Core.Shared.Tests.ToodleDo { [TestClass] public class ToodleDoRecurrencyTest { [TestMethod] public void Toodle...
42.682927
115
0.654952
[ "MIT" ]
2DayApp/2day
src/2Day.Core.Shared.Tests/ToodleDo/ToodleDoRecurrencyTest.cs
10,502
C#
//------------------------------------------------------------------------------ // <auto-generated> // Generated by the MSBuild WriteCodeFragment class. // </auto-generated> //------------------------------------------------------------------------------ using System; using System.Reflection; [assembly: System.R...
48
80
0.650735
[ "MIT" ]
MikeAlexMartinez/LearningCSharp
code/chapter03-FlowAndConversion/SelectionStatements/obj/Debug/netcoreapp2.0/SelectionStatements.AssemblyInfo.cs
816
C#
using System.Collections.Generic; using JetBrains.Annotations; using JetBrains.ReSharper.Plugins.FSharp.Psi.Impl.DeclaredElement; using JetBrains.ReSharper.Plugins.FSharp.Psi.Impl.DeclaredElement.CompilerGenerated; using JetBrains.ReSharper.Plugins.FSharp.Psi.Impl.Tree; using JetBrains.ReSharper.Plugins.FSharp.Psi.Tre...
33.35
107
0.735757
[ "Apache-2.0" ]
En3Tho/fsharp-support
ReSharper.FSharp/src/FSharp.Psi/src/Impl/Cache2/Parts/ExceptionPart.cs
2,670
C#
// Copyright 2005 University of Wisconsin // Authors: // Robert M. Scheller // James B. Domingo // BDA originally programmed by Wei (Vera) Li at University of Missouri-Columbia in 2004. // Version 1.0 // License: Available at // http://landis.forest.wisc.edu/developers/LANDIS-IISourceCodeLicenseAgr...
43.219355
117
0.438722
[ "Apache-2.0" ]
IvanPizhenko/Extension-Base-BDA-fork
testings/version-tests/release-2.0/src/SiteResources.cs
13,398
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Gov.Lclb.Cllb.Interfaces { using Microsoft.Rest; using Models; using System.Collections; using System.Co...
43.684211
541
0.618313
[ "Apache-2.0" ]
BrendanBeachBC/jag-lcrb-carla-public
cllc-interfaces/Dynamics-Autorest/ISpecialeventinvoices.cs
4,150
C#
/************************************************************************************************************************************* * Developed by Mamadou Cisse * * Mail => mciissee@gmail.com ...
33.908714
141
0.491557
[ "MIT" ]
mciissee/CutTheWood
Assets/InfinityEngine/Editor/Utils/SimpleAccordion.cs
8,174
C#