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 2019 Esri // 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 writ...
35.518987
96
0.587669
[ "Apache-2.0" ]
Dithn/arcgis-pro-sdk-community-samples
Sharing/LivingAtlasOfTheWorld/Models/OnlineResultItem.cs
2,806
C#
// ----------------------------------------------------------------------- // <copyright file="ItemsControlTests.cs" company="Steven Kirk"> // Copyright 2014 MIT Licence. See licence.md for more information. // </copyright> // ----------------------------------------------------------------------- namespace Perspex.C...
34.261017
103
0.559513
[ "MIT" ]
GeorgeHahn/Perspex
Perspex.Controls.UnitTests/ItemsControlTests.cs
10,109
C#
using System; namespace zenonApi.Serialization { /// <summary> /// Use this attribute to specify for each value of an enumeration how it shall be written in XML. /// </summary> [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] // ReSharper disable once InconsistentNaming : "z...
35.204082
118
0.715362
[ "MIT" ]
CDMathiasLackner/zenonLogicAPI
zenonApi.Core/Serialization/zenonSerializableEnumAttribute.cs
1,727
C#
/* Copyright (c) 2021 Eperty123 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subl...
40
78
0.790909
[ "MIT" ]
Eperty123/LauncherPatcher
LauncherPatcher/Definiton/Inheritance/LauncherInfo/CNLauncherInfo.cs
1,322
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; namespace PnP.PowerShell.Tests.Graph { [TestClass] public class GetGraphSubscriptionTests { #region Test Setup/CleanUp [ClassInitialize] public static void Initialize(Test...
27.571429
88
0.512011
[ "MIT" ]
AndersRask/powershell
src/Tests/Graph/GetPnPGraphSubscriptionTests.cs
2,123
C#
using McMaster.Extensions.CommandLineUtils; using Microsoft.Extensions.Logging; using Mt.MediaFiles.AppEngine.Tasks; using Mt.MediaFiles.ClientApp.Cli.Ui; namespace Mt.MediaFiles.ClientApp.Cli { /// <summary> /// Task execution context implementation. /// </summary> internal class TaskExecutionContext : ITaskE...
24.276596
81
0.677476
[ "MIT" ]
mtebenev/mediafiles
ClientApp.Cli/TaskExecutionContext.cs
1,141
C#
/******************************************************************************* * Copyright 2008-2013 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 Licens...
33.078292
96
0.54341
[ "Apache-2.0" ]
zz0733/aws-sdk-net
AWSSDK_DotNet35/Amazon.Runtime/Internal/Util/WrapperStream.cs
9,297
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; using System.Collections.Generic; using System.Reflection.Runtime.TypeInfos; namespace System.Reflection.Runtime.BindingFlagSupport { //===============...
44.632653
165
0.627343
[ "MIT" ]
AntonLapounov/corert
src/System.Private.Reflection.Core/src/System/Reflection/Runtime/BindingFlagSupport/FieldPolicies.cs
2,187
C#
using System; using System.Runtime.InteropServices; namespace SkiaSharp { [StructLayout(LayoutKind.Sequential)] internal struct SKImageInfoNative { public IntPtr fColorSpace; public int fWidth; public int fHeight; public SKColorType fColorType; public SKAlphaType fAlphaType; public static void UpdateN...
25.230769
148
0.717334
[ "MIT" ]
CollegiumXR/SkiaSharp-Unity-Integration
Assets/SkiaSharpUnity/Scripts/SkiaSharp-Bindings/SKImageInfo.cs
4,594
C#
using Microsoft.SharePoint.Client; using SharePointRunner.SDK; namespace SharePointRunner { internal class GroupRunner : Runner<Group> { /// <summary> /// Constructor /// </summary> /// <param name="runningManager">Running manager</param> /// <param name="context">Share...
35.558824
156
0.599669
[ "MIT" ]
BPerdriau/SharePointRunner
Sources/SharePointRunner/Runners/GroupRunner.cs
1,211
C#
// Copyright 2017 Carnegie Mellon University. All Rights Reserved. See LICENSE.md file for terms. using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading; using NLog; namespace ghosts.client.linux.Infrastructure { /// <summary> /// Some apps (word, excel, etc.) like t...
31.968421
103
0.4297
[ "BSD-3-Clause" ]
JackOfAllThings67/https-github.com-cmu-sei-GHOSTS
ghosts.client.linux/Infrastructure/StartupTasks.cs
3,039
C#
using Ace.Entity.System; using Ace.Exceptions; using Chloe; using System; using System.Collections.Generic; using System.Text; namespace Ace.Application.System { public interface IPermissionService : IAppService { List<SysPermission> GetList(PermissionType? type = null); List<SysPermission> Ge...
33.747126
139
0.590599
[ "Apache-2.0" ]
a574676848/Ace
src/DotNetCore/Ace.Application.System/IPermissionService.cs
3,020
C#
#pragma warning disable 1591 using System.ComponentModel; using System.Text.Json; namespace Loupe.Agent.AspNetCore.Models { [EditorBrowsable(EditorBrowsableState.Never)] public class ClientOS { public int Architecture { get; set; } public string? Family { get; set; } public stri...
35.645161
116
0.695928
[ "MIT" ]
GibraltarSoftware/Loupe.Agent.Core
src/AspNetCore/Models/ClientOS.cs
1,107
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; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http { public interface IHttpRequestLineHandler { void OnStar...
36.307692
162
0.756356
[ "Apache-2.0" ]
06b/AspNetCore
src/Servers/Kestrel/Core/src/Internal/Http/IHttpRequestLineHandler.cs
472
C#
namespace Menees.Gizmos { #region Using Directives using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Reflection; using System.Security; using System.Text; using Syste...
29.701799
137
0.673014
[ "MIT" ]
menees/Gizmos
src/Menees.Gizmos.Sdk/Gizmo.cs
11,554
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...
44.119403
269
0.576116
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/CloudWatch/Generated/Model/Internal/MarshallTransformations/PutAnomalyDetectorRequestMarshaller.cs
5,912
C#
using Microsoft.Extensions.DependencyInjection; using SpeedRunners.BLL; using SpeedRunners.Utils; using System.Linq; namespace SpeedRunners.Service { public static class ServiceHelper { /// <summary> /// 批量注册所有BLL服务 /// </summary> /// <param name="services"></param> pub...
26.444444
86
0.554622
[ "MIT" ]
TinyMaD/SpeedRunnersLab
SpeedRunners.API/SpeedRunners/Service/ServiceHelper.cs
758
C#
using System; using System.Text.Json; using System.Text.Json.Serialization; namespace Dahomey.Json.Serialization.Converters { public class NullableConverter<T> : JsonConverter<T?> where T : struct { private readonly JsonConverter<T> _jsonConverter; public NullableConverter(JsonSerializerOptio...
27.657895
109
0.604186
[ "MIT" ]
Wivra/Dahomey.Json
src/Dahomey.Json/Serialization/Converters/NullableConverter.cs
1,053
C#
using System; using System.Linq; using System.Threading.Tasks; using Baseline.Dates; using IntegrationTests; using Jasper.Attributes; using Jasper.Configuration; using Jasper.Persistence; using Jasper.Persistence.Marten; using Jasper.RabbitMQ.Internal; using Jasper.Tracking; using Jasper.Util; using Marten; using Micr...
29.362832
112
0.499548
[ "MIT" ]
ejsmith/jasper
src/Jasper.RabbitMQ.Tests/end_to_end.cs
19,910
C#
using System; using System.Threading; namespace ECommerce.Core.Threading { public static class NoSynchronizationContextScope { public static Disposable Enter() { var context = SynchronizationContext.Current; SynchronizationContext.SetSynchronizationContext(null); ...
28.448276
89
0.650909
[ "MIT" ]
TheRubble/EventSourcing.NetCore
Sample/EventStoreDB/Simple/ECommerce.Core/Threading/NoSynchronizationContextScope.cs
827
C#
using System; using System.Text; using System.Data; using System.Data.SqlClient; using System.Data.Common; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Xml; using System.Xml.Serialization; using SubSonic; using SubSonic.Utilities;...
27.830247
136
0.619275
[ "MIT" ]
saludnqn/prosane
RIS_Publico/RIS_Publico/generated/TamTipoTratamientoPap.cs
9,017
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/dcomp.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Runtime.C...
47.241758
209
0.736218
[ "MIT" ]
reflectronic/terrafx.interop.windows
sources/Interop/Windows/DirectX/um/dcomp/IDCompositionInkTrailDevice.cs
4,301
C#
/* ============================================================================================================================ * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT * LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNE...
38.62069
160
0.565179
[ "Apache-2.0" ]
Dashue/linkedin-net
src/LinkedIn.Api.Client.Owin/LinkedInApiClient.cs
3,362
C#
namespace Uno.Compiler.API.Domain.Extensions { public struct BundleFile { public readonly SourcePackage Package; public readonly string BundleName; public readonly string TargetName; public readonly string SourcePath; public BundleFile(SourcePackage package, string bund...
28.607143
105
0.619226
[ "MIT" ]
Nicero/uno
src/compiler/api/Domain/Extensions/BundleFile.cs
803
C#
using Microsoft.AspNetCore.Components; using Skclusive.Core.Component; namespace Skclusive.Dashboard.App.View { [Layout(typeof(SmallLayout))] public abstract class SumalLayoutPage : DisposableComponentBase { } }
20.909091
67
0.76087
[ "MIT" ]
rafsanulhasan/Skclusive.Blazor.Samples
Skclusive.Blazor.Dashboard/Dashboard.App.View/Layout/SmallLayoutPage.cs
232
C#
using System; using System.Net; using System.Collections.Generic; using System.Windows.Forms; using Lidgren.Network; using NetworkCommon; namespace StrangeSuits { static class Client { private static Lobby lobby; private static Dictionary<long, IPEndPoint[]> hostList; private static l...
40.994652
131
0.501826
[ "MIT" ]
StrangeSymbol/StrangeSuits
StrangeSuits/StrangeSuits/Client.cs
7,668
C#
using ArkNet; using ArkNet.Messages.Block; using ArkNet.Service; using ArkNet.Utils.Enum; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArkNet.Service.Block.Tests { [TestClass()] ...
26.375
152
0.599684
[ "MIT" ]
boldninja/ark-net
ark-netTests/Service/Block/BlockServiceAsyncTests.cs
3,167
C#
using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(menuName = "ScriptableObjects/ResourceTypeList")] public class ResourceTypeListSO : ScriptableObject { public List<ResourceTypeSO> list; }
23.888889
66
0.809302
[ "MIT" ]
AddictionZN/Game-Unity-BaseDefender
Assets/Scripts/ResourceManager/ResourceTypeListSO.cs
217
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("En...
37.972973
84
0.745196
[ "Apache-2.0" ]
ewhitmore/Enterprise
Enterprise.Model/Properties/AssemblyInfo.cs
1,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("Reg...
38.216216
84
0.750354
[ "MIT" ]
AndrewRathbun/RegistryPlugins
RegistryPlugin.Taskband/Properties/AssemblyInfo.cs
1,417
C#
namespace OnlyT.Utils { using System; /// <summary> /// Formats time values /// </summary> public static class TimeFormatter { private static readonly int SecsPerMinute = 60; /// <summary> /// Gets a timer string /// </summary> /// <param name="totalSec...
27.307692
90
0.580282
[ "MIT" ]
DavidIQ/OnlyT
OnlyT/Utils/TimeFormatter.cs
712
C#
/* * MIT License * * Copyright (c) 2018 Clark Yang * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, m...
37.4
122
0.701993
[ "MIT" ]
danielixu/Loxodon-framework
Loxodon.Framework/Assets/LoxodonFramework/Runtime/Framework/Binding/Proxy/Targets/FairyGUI/FairyFieldProxy.cs
2,059
C#
using Microsoft.EntityFrameworkCore.Metadata.Builders; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Git.Data { public class Repository { public Repository() { this.Id = Guid.NewGuid().ToString(); this.Commits = n...
22.171429
64
0.592784
[ "MIT" ]
Drakojan/SoftUni_C-_Web_Basics
Live exam/Apps/Git/Data/Repository.cs
778
C#
using System; using System.Text.RegularExpressions; namespace Regexmon { class Program { static void Main() { string input = Console.ReadLine(); while (true) { Match matchD = Regex.Match(input, @"([^-a-zA-Z]+)"); if (!matchD.Success) break; Console.WriteLine(matchD); input = input.Rem...
23.125
63
0.630631
[ "MIT" ]
AscenKeeprov/Programming-Fundamentals
Exercise13-ExamPreparation/Regexmon/Program.cs
557
C#
using System; using System.Collections.Generic; using System.Linq; using Vs.Core.Diagnostics; namespace Vs.Rules.Core.Model { public class Table { public Table(DebugInfo debugInfo, string name, List<ColumnType> columnTypes, List<Row> rows, IEnumerable<ISituation> situations = null) { ...
40.794118
143
0.620043
[ "MIT" ]
sjefvanleeuwen/morstead
src/rules/Vs.Rules.Core/Model/Table.cs
1,389
C#
namespace Core.DTO { public class LoginUserDTO { public string Username { get; set; } public string Password { get; set; } } }
19.25
44
0.590909
[ "MIT" ]
HueByte/MyThingsSaver
backend/Core/DTO/LoginUserDTO.cs
154
C#
using System.Collections.Generic; using OsmFastPbf.Helper; // ReSharper disable UselessBinaryOperation // ReSharper disable MemberCanBePrivate.Global namespace OsmFastPbf { public struct OsmNode { public readonly long id; public readonly int latCode; public readonly int lonCode; publ...
35.971014
102
0.605157
[ "MIT" ]
MaxKlaxxMiner/OsmFastPbf
FastPbfReader/Structs/OsmNode.cs
2,484
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.Api20201120 { using static Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Runtime.Extensions; public partial class DefaultRolloutArrayResponseWithContinuation : Microsoft.Azure.PowerShell.Cmdlets.ProviderHub.Models.Api20201120.IDefaul...
50.081967
157
0.697872
[ "MIT" ]
Agazoth/azure-powershell
src/ProviderHub/generated/api/Models/Api20201120/DefaultRolloutArrayResponseWithContinuation.cs
2,995
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.SimpleWorkflow")] [assembly: Assemb...
49.78125
313
0.755179
[ "Apache-2.0" ]
lukeenterprise/aws-sdk-net
sdk/code-analysis/ServiceAnalysis/SimpleWorkflow/Properties/AssemblyInfo.cs
1,593
C#
namespace RedditSharp { internal abstract class SubmitData { /// <summary> /// Should be set to "json" /// </summary> [RedditAPIName("api_type")] internal string APIType { get; set; } /// <summary> /// One of "link", "self" or "image" /// </summar...
26.666667
83
0.5075
[ "MIT" ]
AeddGinvael/RedditSharp
RedditSharp/Data/SubmitData.cs
1,600
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System....
39.057143
145
0.730066
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
tests/Interop/Windows/Windows/um/winnt/SYSTEM_ALARM_OBJECT_ACETests.cs
1,369
C#
public class GamePlayEventType { public const string SPAWN_POINT_TRIGGERED = "gameplay_spawnpoint_triggered"; public const string AVATAR_SPAWNED = "gameplay_avatar_spawned"; public const string AVATAR_DAMAGED = "gameplay_avatar_damaged"; public const string AVATAR_DESTROYED = "gameplay_avata...
39.538462
90
0.776265
[ "MIT" ]
Xaer033/novaprime
NovaUnity/Assets/Src/Game/GamePlay/GameSystems/GamePlayEventType.cs
516
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.Collections.Generic; using System.Diagnostics; using System.Linq; using JetBrains.Annotations; using Microsoft.EntityFramewo...
46.524101
144
0.522094
[ "Apache-2.0" ]
TheFanatr/EFCore
src/EFCore.Relational/Infrastructure/RelationalModelValidator.cs
60,809
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft...
35.6
103
0.658357
[ "MIT" ]
Archie-Sharma/ProjectOxford-ClientSDK
Common/Windows/ClientLibrary/Contract/VideoResultBase.cs
2,850
C#
using System.IO; using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Moq; using Moq.Protected; using NLog; using TogglApi.Client.General; namespace TogglApi.Client.Tests { internal static class MockedClientHelper { internal static async Task<(TogglWorks...
32.981132
137
0.578947
[ "MIT" ]
MichalTichy/TogglApiDotNet
TogglApi.Client.Tests/MockedClientHelper.cs
1,750
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...
32.112903
107
0.677549
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Honeycode/Generated/Model/Internal/MarshallTransformations/CellInputMarshaller.cs
1,991
C#
using System; class B { static void Main() { var h = Array.ConvertAll(Console.ReadLine().Split(), long.Parse); Console.WriteLine($"{Math.Max(0, h[0] - h[2])} {Math.Max(0, h[1] - Math.Max(0, h[2] - h[0]))}"); } }
21
99
0.558442
[ "MIT" ]
sakapon/AtCoder-Contests
CSharp/Contests2019/ABC149/B.cs
233
C#
using UniLife.Shared.DataModels; using UniLife.Shared.Dto.Definitions; namespace UniLife.Server.Managers { public interface IOgrGecisManager : IBaseManager<OgrGecis, OgrGecisDto> { } }
19.9
75
0.763819
[ "MIT" ]
ahmetsekmen/UniLife
src/UniLife.Server/Managers/IOgrGecisManager.cs
201
C#
/* Copyright (c) 2014, Lars Brubaker 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 followi...
39.254902
88
0.801199
[ "BSD-2-Clause" ]
jingliang2005/MatterControl
MatterControlLib/PartPreviewWindow/View3D/Interaction/MouseEvent3DArgs.cs
2,004
C#
/* * Copyright (C) 2021 - 2021, SanteSuite Inc. and the SanteSuite Contributors (See NOTICE.md for full copyright notices) * Copyright (C) 2019 - 2021, Fyfe Software Inc. and the SanteSuite Contributors * Portions Copyright (C) 2015-2018 Mohawk College of Applied Arts and Technology * * Licensed under the Apache...
35.181818
120
0.721792
[ "Apache-2.0" ]
santedb/santedb-orm
SanteDB.OrmLite/Attributes/AutoGeneratedAttribute.cs
1,163
C#
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Reflection; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Code; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Extensions; using BenchmarkDotNet.Filters; using B...
51.146006
231
0.640687
[ "MIT" ]
FrancisChung/BenchmarkDotNet
src/BenchmarkDotNet/Running/BenchmarkConverter.cs
18,568
C#
// 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 osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using osu.Framework....
29.271739
92
0.555514
[ "MIT" ]
TPGPL/osu
osu.Game/Graphics/UserInterface/OsuButton.cs
2,604
C#
using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Microsoft.TeamFoundation.DistributedTask.WebApi; using Microsoft.VisualStudio.Servi...
50.136882
260
0.598134
[ "MIT" ]
Acidburn0zzz/vsts-agent
src/Test/L0/Worker/Release/JenkinsArtifactL0.cs
13,186
C#
namespace CaseFile.Api.Core { public enum UploadType { Notes, Observers } }
11.666667
28
0.552381
[ "MPL-2.0" ]
code4romania/case-file-api
api/CaseFile.Api.Core/UploadType.cs
107
C#
using Gossip.Connection; using Gossip.Connection.Fluent; using Gossip.ConnectionStrings; namespace Gossip.TestSupport.Adapters.MockDb { public class MockDatabase : ISqlConnectionFactory { private readonly MockSqlConnection _conn; public MockDatabase() { _conn =...
23.774194
73
0.599729
[ "Apache-2.0" ]
DanCNo/Gossip
tests/Support/Adapters/MockDb/MockDatabase.cs
739
C#
namespace Microsoft.eCommerceOnContainers.WebMVC; public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; } public IConfiguration Configuration { get; } // This method gets called by the runtime. Use this method to add services to the IoC cont...
33.961538
125
0.640242
[ "MIT" ]
dogaanismail/eCommerceOnContainer
src/Web/WebMVC/Startup.cs
2,651
C#
using System; using CosmosStack.Reflection.ObjectVisitors.Internals; using CosmosStack.Reflection.ObjectVisitors.Metadata; namespace CosmosStack.Reflection.ObjectVisitors { /// <summary> /// Object Visitor Options <br /> /// 对象访问器选项 /// </summary> public class ObjectVisitorOptions { //...
27.247191
83
0.500619
[ "Apache-2.0" ]
cosmos-loops/cosmos-object-visitors
src/CosmosStack.Extensions.ObjectVisitors/CosmosStack/Reflection/ObjectVisitors/ObjectVisitorOptions.cs
2,539
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("Re...
37.864865
84
0.745896
[ "MIT" ]
Shtereva/Fundamentals-with-CSharp
Arrays - Simple Array Processing/ResizableArray/Properties/AssemblyInfo.cs
1,404
C#
using MvvmCross; using MvvmCross.Forms.Presenters.Attributes; using MvvmCross.Forms.Views; using MvvmCross.Plugin.Messenger; using Rocks.Wasabee.Mobile.Core.Infra.Logger; using Rocks.Wasabee.Mobile.Core.Messages; using Rocks.Wasabee.Mobile.Core.ViewModels.Operation; using System; using System.Linq; using Xamarin.Forms;...
39.2375
146
0.643198
[ "Apache-2.0" ]
ruharen/Wasabee-Mobile-Xamarin
Rocks.Wasabee.Mobile.Core.Ui/Views/Operation/OperationRootTabbedPage.xaml.cs
3,139
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; using System.Collections.Immutable; using System.IO; using System.Threading; using System.Threading.Tasks; using Roslyn.Utilities; using StarkP...
47.67284
161
0.660106
[ "Apache-2.0" ]
stark-lang/stark-roslyn
src/Workspaces/Core/Ergon/Ergon/ErgonProjectLoader.cs
7,725
C#
namespace _1.Event_Implementation.Models { using System; public class Handler { public void SubscribeToDispatcher(Dispatcher dispatcher) { dispatcher.NameChange += this.OnDispatcherNameChange; } public void OnDispatcherNameChange(object sender, EventArgs args) ...
26.333333
90
0.611212
[ "MIT" ]
alexandrateneva/CSharp-Fundamentals-SoftUni
CSharp OOP Advanced/Object Communication and Events/1. Event Implementation/Models/Handler.cs
555
C#
namespace zoft.TinyMvvmExtensions.Core.Validation.Rules { /// <summary> /// Validation rule for pair matching /// </summary> /// <typeparam name="T"></typeparam> public class MatchPairValidationRule<T> : IValidationRule<ValidatablePair<T>> { /// <summary> /// Gets or sets the valid...
28.925926
81
0.576184
[ "MIT" ]
zleao/zoft.TinyMvvmExtensions
src/zoft.TinyMvvmExtensions.Core/Validation/Rules/MatchPairValidationRule.cs
783
C#
using System; #pragma warning disable 1591 // ReSharper disable UnusedMember.Global // ReSharper disable MemberCanBePrivate.Global // ReSharper disable UnusedAutoPropertyAccessor.Global // ReSharper disable IntroduceOptionalParameters.Global // ReSharper disable MemberCanBeProtected.Global // ReSharper disable Incons...
36.36478
127
0.629342
[ "MIT" ]
alxcp/ABCat
Shared.Everywhere/Properties/JetBrains.Annotations.cs
40,476
C#
using System; using System.Collections.Generic; using System.Xml.Serialization; namespace Alipay.AopSdk.Core.Domain { /// <summary> /// AlipayEbppIndustryBillNettingRefundModel Data Structure. /// </summary> [Serializable] public class AlipayEbppIndustryBillNettingRefundModel : AopObject { ...
29.577778
86
0.604808
[ "MIT" ]
leixf2005/Alipay.AopSdk.Core
Alipay.AopSdk.Core/Domain/AlipayEbppIndustryBillNettingRefundModel.cs
1,639
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace BandoMIA.Web { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*...
24.166667
99
0.586207
[ "MIT" ]
smetly/BandoMIA
BandoMIA.Web/App_Start/RouteConfig.cs
582
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using ICSharpCode.NRefactory; using ICSharpCode.PythonBinding; using NUnit.Framework; namespace PythonBinding.T...
30
103
0.511538
[ "MIT" ]
Plankankul/SharpDevelop-w-Framework
src/AddIns/BackendBindings/Python/PythonBinding/Test/Converter/MultiLineCommentTestFixture.cs
1,562
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...
38
147
0.631806
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/APIGateway/Generated/Model/Internal/MarshallTransformations/UpdateDomainNameRequestMarshaller.cs
4,408
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; using System.Web; using Elastic.Apm.Api; using Elastic.Apm.Model; namespace ...
33.86
106
0.730656
[ "Apache-2.0" ]
AAimson/apm-agent-dotnet
src/Elastic.Apm.AspNetFullFramework/HttpContextCurrentExecutionSegmentsContainer.cs
1,693
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.Generic; using System.Globalization; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Ne...
35.738484
147
0.650299
[ "MIT" ]
AndrewTriesToCode/aspnetcore
src/Mvc/test/Mvc.FunctionalTests/BasicTests.cs
24,052
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src...
32.805405
157
0.5304
[ "MIT" ]
2m0nd/runtime
src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/DuplicateToVector64.UInt32.31.cs
6,069
C#
/* * Copyright 2010-2013 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...
34.467213
177
0.604281
[ "Apache-2.0" ]
mahanthbeeraka/dataservices-sdk-dotnet
AWSSDK/Amazon.CloudFront/Model/CloudFrontOriginAccessIdentitySummary.cs
4,205
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="Angle\Declare.cs" company="Nanchang Jinchen Software Co., Ltd."> // Copyright (c) 2010 Nanchang Jinchen Software Co., Ltd. All rights reserved. // </copyright> // <summary> // ...
26.342466
120
0.5052
[ "MIT" ]
nuscien/trivial
Core/Maths/Angle/Declare.cs
3,861
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KOF.Common { class Mailslot { } }
13.384615
33
0.724138
[ "MIT" ]
trkyshorty/KOF
KOF/Common/Mailslot.cs
176
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="PlotViewDataTemplateWindow.xaml.cs" company="OxyPlot"> // Copyright (c) 2014 OxyPlot contributors // </copyright> // <summary> // Interaction logic for PlotViewDataTemplateWin...
33.271605
120
0.539147
[ "MIT" ]
Stratocast3r/oxyplot-avalonia
Source/Examples/Avalonia/AvaloniaExamples/Examples/DataTemplateDemo/PlotViewDataTemplateWindow.xaml.cs
2,697
C#
using System; using System.Collections.Generic; namespace ScientificReport.DTO.Models.ReportThesis { public class ReportThesisModel { public string Thesis { get; set; } public Guid ConferenceId { get; set; } public DAL.Entities.Conference Conference { get; set; } public IEnumerable<DAL.Entities.Conf...
20.333333
71
0.730419
[ "MIT" ]
lnupmi11/ScientificReport
ScientificReport.DTO/Models/ReportThesis/ReportThesisModel.cs
549
C#
using System; using System.Collections.Generic; using System.Text; namespace NMF.Expressions.Linq { /// <summary> /// Denotes a balancing strategy when items are added or deleted dynamically /// </summary> /// <typeparam name="T"></typeparam> /// <typeparam name="TChunk"></typeparam> public in...
39.266667
101
0.648557
[ "BSD-3-Clause" ]
NMFCode/NMF
Expressions/Expressions.Chunk/IChunkBalancingStrategy.cs
1,180
C#
// // Copyright (c) Microsoft and contributors. 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 requi...
31.212121
78
0.636893
[ "Apache-2.0" ]
chuanboz/HDInsight
src/Insights/Generated/Management/Insights/Models/ServiceDiagnosticSettings.cs
2,060
C#
using System; using System.Diagnostics; namespace ProgressOnderwijsUtils { public sealed class ProcessCpuTimer { readonly TimeSpan start; readonly Stopwatch wallclock; static readonly Process currentProcess = Process.GetCurrentProcess(); ProcessCpuTimer() { ...
28.774194
134
0.615471
[ "Apache-2.0" ]
progressonderwijs/ProgressOnderwijsUtils
src/ProgressOnderwijsUtils/ProcessCpuTimer.cs
892
C#
/** * Copyright 2018, 2019 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...
53.92437
120
0.633162
[ "MIT" ]
AkshaySharmaDEV/CovIt
Assets/unity-sdk-5.0.2/Scripts/Services/Discovery/V1/Model/NormalizationOperation.cs
6,417
C#
using System; namespace ImGuiScene { /// <summary> /// Simple factory to create a renderer for a given backend API/version/etc. /// </summary> public class RendererFactory { public enum RendererBackend { OpenGL3 } /// <summary> /// Creates a ren...
30.382353
186
0.579864
[ "MIT" ]
wlastas/ImGuiSceneGL
ImGuiScene/Renderers/RendererFactory.cs
1,035
C#
using HDF5CSharp.DataTypes; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; namespace HDF5CSharp.UnitTests.Core { [Hdf5Attributes(new[] { "some info", "more info" })] class AttributeSimpleClass : IEquatable<AttributeSimpleClass> { public cla...
29.060924
144
0.521507
[ "MIT" ]
DJRolls/HDF5-CSharp
HDF5-CSharp.UnitTests/TestsDataTypes.cs
13,835
C#
using System; using System.IO; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using OpenAPI.Models; using Sample.Authentication.Server.Services; namespace Sample.Authentication.Server.Controllers { /// <summary> /// This sample only shows how to sign in a single user with the Code Flow. /// Refer ...
32.695313
124
0.566786
[ "Apache-2.0" ]
ayxue/openapi-samples-csharp
authentication/Authentication_CodeFlow/Sample.Authentication.Server/Controllers/StartupController.cs
4,187
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Schema; using System.Xml.Serialization; namespace Workday.CashManagement { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrou...
20.819672
136
0.729134
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.CashManagement/Reconciliation_StatusObjectIDType.cs
1,270
C#
using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity; using System.ComponentModel.DataAnnotations; using System.Collections.Generic; using AspNetExtendingIdentityRoles.Models; using System.Linq; namespace AspNetExtendingIdentityRoles.Models { public class IdentityManager { ...
30.337079
87
0.619259
[ "MIT" ]
LeonidasGuri/AFDemp-TeamProject
AspNetExtendingIdentityRoles/Models/IdentityManager.cs
2,702
C#
using Lucene.Net.Demo.Facet; using System; using System.Collections.Generic; namespace Lucene.Net.Cli { /* * 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 co...
37.632653
121
0.654555
[ "Apache-2.0" ]
10088/lucenenet
src/dotnet/tools/lucene-cli/commands/demo/demo-multi-category-lists-facets/DemoMultiCategoryListsFacetsCommand.cs
1,846
C#
using UnityEngine; using System.Collections; using cn.vimfung.luascriptcore; using System; using System.Collections.Generic; public class LogModule : LuaExportType { [LuaExclude] public static void writeLog(String message) { Debug.LogFormat ("string log = {0}", message); } public static void writeLog(int va...
17.481481
48
0.70339
[ "Apache-2.0" ]
GIKICoder/LuaScriptCore
Source/Unity3D/UnityProject/Assets/Scripts/LogModule.cs
474
C#
namespace TodoApp.configuration { public class JwtConfig { public string Secret { get; set; } } }
16.714286
42
0.623932
[ "MIT" ]
bahkali/100DaysC-
11-CoreWebApiRefresh/TodoApp/configuration/JwtConfig.cs
117
C#
/******************************************************************************* * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use * this file except in compliance with the License. A copy of the License...
44.87931
207
0.612466
[ "Apache-2.0" ]
QPC-database/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/Kinesis/Basic/Get-KINStreamConsumer-Cmdlet.cs
10,412
C#
// // HttpOperationFlags.cs // // Author: // Martin Baulig <mabaul@microsoft.com> // // Copyright (c) 2017 Xamarin Inc. (http://www.xamarin.com) // // 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...
35.636364
80
0.754082
[ "MIT" ]
xamarin/web-tests
Xamarin.WebTests.Framework/Xamarin.WebTests.HttpFramework/HttpOperationFlags.cs
1,960
C#
/* * Hiarc API * * Welcome to the Hiarc API documentation. * * The version of the OpenAPI document: 0.1.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; using System.IO; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using ...
26.752941
99
0.598945
[ "MIT" ]
hiarcdb/hiarc-dotnet-sdk
src/HiarcSDK.Test/Api/LegalHoldApiTests.cs
2,274
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 Newtonsoft.Json; using System.Colle...
43.429907
380
0.586615
[ "Apache-2.0" ]
BrendanBeachBC/jag-lcrb-carla-public
cllc-interfaces/Dynamics-Autorest/Objectidadoxiocorporatehistorysummary.cs
9,294
C#
using System; using AVFoundation; using UIKit; using Foundation; using Firebase.MLKit; using Firebase.MLKit.Vision; using System.Threading.Tasks; using Firebase.Core; using CoreGraphics; using System.Text; namespace MLKitVisionSample { public partial class ViewController : UIViewController, IUIImagePickerController...
27.189873
158
0.717877
[ "MIT" ]
DigitallyImported/GoogleApisForiOSComponents
samples/Firebase/MLKit.Vision/MLKitVisionSample/Controllers/ViewController.cs
8,594
C#
//------------------------------------------------------------------------------ // <auto-generated> // O código foi gerado por uma ferramenta. // Versão de Tempo de Execução:4.0.30319.42000 // // As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se // o código for gerado ...
46.48
121
0.685026
[ "MIT" ]
rafaelraah/AspNetCoreIdentity
AspNetCoreIdentity/AspNetCoreIdentity/obj/Debug/netcoreapp2.2/AspNetCoreIdentity.AssemblyInfo.cs
1,171
C#
using Chloe.Server.Dtos; using Chloe.Server.Services.Contracts; using System.Web.Http; namespace Chloe.Server.Controllers { [Authorize] [RoutePrefix("api/message")] public class MessageController : ApiController { public MessageController(IMessageService service) { this.serv...
28.756098
119
0.648007
[ "MIT" ]
QuinntyneBrown/opportunities
Server/Controllers/MessageController.cs
1,179
C#
using System; namespace Floren.Domain.Entities { public abstract class Entity { public DateTime DataCriacao { get; set; } = DateTime.Now; public DateTime DataAlteracao { get; set; } = DateTime.Now; } }
19.333333
67
0.650862
[ "MIT", "Unlicense" ]
diegodario88/FlorenProject
src/Floren.Domain/Entities/Entity.cs
232
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("Jo...
39.638889
84
0.756833
[ "MIT" ]
RobbiNespu/restaurant-android
DataServer/DataServer/Properties/AssemblyInfo.cs
1,430
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; namespace Microsoft.Coyote { /// <summary> /// The exception that is thrown by the Coyote runtime upon assertion failure. /// </summary> internal sealed class AssertionFailureException : RuntimeException { ...
31.030303
92
0.619141
[ "MIT" ]
gitter-badger/coyote-1
Source/Core/Exceptions/AssertionFailureException.cs
1,026
C#
/* Copyright 2010-2013 10gen 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 writing...
31.36
75
0.729592
[ "Apache-2.0" ]
ExM/mongo-csharp-driver
MongoDB.Driver/IMongoCommand.cs
786
C#
using System.Collections.Generic; using ELFinder.Connector.Commands.Results.Common; using ELFinder.Connector.Drivers.Common.Data.Models; using Newtonsoft.Json; namespace ELFinder.Connector.Commands.Results.Search { /// <summary> /// Search command result /// </summary> public class SearchCommandResul...
21.5
57
0.600979
[ "BSD-3-Clause" ]
mppa-git/ELFinder.Connector.NET
Core/ELFinder.Connector/Commands/Results/Search/SearchCommandResult.cs
819
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...
30.453947
112
0.571614
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/ServiceCatalog/Generated/Model/ListProvisionedProductPlansRequest.cs
4,629
C#