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
namespace Disqord { public static class LocalInteractionResponseExtensions { public static TResponse WithType<TResponse>(this TResponse response, InteractionResponseType type) where TResponse : LocalInteractionResponse { response.Type = type; return r...
30.65
109
0.621533
[ "MIT" ]
Neuheit/Diqnod
src/Disqord.Core/Entities/Local/Interaction/LocalInteractionResponseExtensions.cs
615
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.Runtime.Versioning; using NuGet; namespace Microsoft.Dnx.Runtime.Helpers { public static class FrameworkNameHelper {...
32.88
111
0.607664
[ "Apache-2.0" ]
cemoses/aspnet
dnx-dev/src/Microsoft.Dnx.Runtime/Helpers/FrameworkNameHelper.cs
1,644
C#
// // (C) Copyright 2003-2011 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // that both that copyright notice and the limited warranty ...
36.873684
99
0.550956
[ "BSD-3-Clause" ]
AMEE/rev
samples/Revit 2012 SDK/Samples/NewOpenings/CS/NewOpeningsForm.cs
10,509
C#
using DpdtInject.Tests.Properties; using Microsoft.VisualStudio.TestTools.UnitTesting; using DpdtInject.Injector.Src.Excp; namespace DpdtInject.Tests.Unsorted.CircularDependency3 { [TestClass] public class UnsortedCircularDependency3_Fixture { public TestContext TestContext { ge...
32.911765
126
0.666667
[ "MIT" ]
lsoft/DpDtInject
DpdtInject.Tests/Unsorted/CircularDependency3/UnsortedCircularDependency3_Fixture.cs
1,119
C#
using Eaf.Dependency; using Eaf.Extensions; using System.Linq; namespace Eaf.Middleware.Auditing { public class NamespaceStripper : INamespaceStripper, ITransientDependency { public string StripNameSpace(string serviceName) { if (serviceName.IsNullOrEmpty() || !serviceName.Contains(...
32.264706
128
0.497265
[ "MIT" ]
afonsoft/EAF
src/Eaf.Middleware.Application/Auditing/NamespaceStripper.cs
2,194
C#
// Copyright (c) 2008-2021, Hazelcast, Inc. 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...
34.275862
101
0.578974
[ "Apache-2.0" ]
alexb5dh/hazelcast-csharp-client
src/Hazelcast.Net/Core/ClientVersion.cs
1,990
C#
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Text; using System.Threading.Tasks; namespace PrecizeSoft.IO.Wcf.MessageContracts.ConversionStatistics.V1 { [MessageContract] public class GetStatByFileCategoriesMessage { } }
20.066667
69
0.787375
[ "Apache-2.0" ]
precizeman/precizesoft-io
src/PrecizeSoft.IO.WcfClients/Wcf/MessageContracts/ConversionStatistics/V1/GetStatByFileCategoriesMessage.cs
303
C#
using System; using Microsoft.EntityFrameworkCore; namespace Indice.Oba.AspNetCore.Features.EF { /// <summary> /// Options for configuring the CertificatesStore context. /// </summary> public class CertificatesStoreOptions { /// <summary> /// Callback to configure the EF DbContext....
31.735294
107
0.585728
[ "MIT" ]
dkarkanas/Indice.Psd2
src/Indice.Oba.AspNetCore/Features/EF/CertificatesStoreOptions.cs
1,081
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using Microsoft.ML.Probabilistic.Compiler.Attributes; using Microsof...
50.232558
172
0.55
[ "MIT" ]
Bruugs/infer
src/Compiler/Infer/Transforms/DerivedVariableTransform.cs
4,320
C#
using System; using System.Reflection; using System.Xml.XPath; using Microsoft.OpenApi.Models; namespace Surging.Core.Swagger_V5.SwaggerGen { public class XmlCommentsOperationFilter : IOperationFilter { private readonly XPathNavigator _xmlNavigator; public XmlCommentsOperationFilter(XPathDocu...
40.549296
112
0.660993
[ "MIT" ]
JohnZhaoXiaoHu/surging
src/Surging.Core/Surging.Core.Swagger_V5/SwaggerGen/XmlComments/XmlCommentsOperationFilter.cs
2,881
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; namespace Swan.Collections { /// <summary> /// A thread-safe collection cache repository for types. /// </summary> /// <typeparam name="TValue">The type of member to cache.</typeparam> public cl...
38.54717
97
0.605972
[ "MIT" ]
pgrawehr/swan
src/Swan.Lite/Collections/CollectionCacheRepository.cs
2,045
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace AutomatedComponentTestWriter.Models { public class ComponentTestDTO { public ComponentTestDTO() { Properties = new List<Property>(); } public APIAction APIAction { get; se...
26.347826
69
0.563119
[ "MIT" ]
cltalmadge/AutomatedComponentTestWriter
AutomatedComponentTestWriter/Models/ComponentTestDTO.cs
2,426
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> //--...
45.918239
185
0.572387
[ "MIT" ]
andrew-polk/libpalaso
SIL.DblBundle.Tests/Properties/Resources.Designer.cs
7,313
C#
// This file is part of Silk.NET. // // You may modify and distribute Silk.NET under the terms // of the MIT license. See the LICENSE file for details. using System; #pragma warning disable 1591 namespace Silk.NET.OpenGLES.Extensions.MESA { public enum MESA { FramebufferFlipYMesa = 0x8BBB, ...
19.052632
57
0.696133
[ "MIT" ]
AzyIsCool/Silk.NET
src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.MESA/Enums/MESA.gen.cs
362
C#
namespace FlaUI.Core.Definitions { /// <summary> /// Contains values that specify whether data in a table should be read primarily by row or by column. /// </summary> public enum RowOrColumnMajor { /// <summary> /// Specifies that data in the table should be read row by row. ...
30.090909
106
0.574018
[ "MIT" ]
work-flower/FlaUI
src/FlaUI.Core/Definitions/RowOrColumnMajor.cs
664
C#
// Copyright (C) 2019 Singapore ETH Centre, Future Cities Laboratory // All rights reserved. // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. // // Author: Michael Joos (joos@arch.ethz.ch) using System; using System.Collections; using Syste...
28.66879
145
0.657965
[ "MIT" ]
RebeccaRossellini/ur-scape
Assets/DataLayers/Scripts/MultiGridDataIO.cs
9,004
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.EntityFrameworkCore.ChangeTracking.Internal; using Microsoft.EntityFrameworkCore.Internal; using Microsoft.EntityFramework...
41.2925
152
0.642368
[ "Apache-2.0" ]
Mattlk13/EntityFramework
test/Microsoft.EntityFrameworkCore.Relational.Tests/Update/ModificationCommandTest.cs
16,517
C#
using NUnit.Framework; using Oss.Core; namespace Tests { public class StrUtilTests { [Test] public void FindNextNonEmptyIndex() { var str = "a ( b )"; var res = StrUtil.FindNextNonEmpty(str, "(", 1); res.ShouldEqual(2); } [Test] ...
20
60
0.488462
[ "MIT" ]
omuleanu/oss
Tests/StrUtilTests.cs
522
C#
using System; using System.Collections.Generic; 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; using System.Windows.Media.Imaging;...
21.588235
67
0.683924
[ "MIT" ]
Daneugoncalves/GitC
WPF-1/MyFirstWPF/MainWindow.xaml.cs
736
C#
using System; using System.ComponentModel; using Xamarin.Forms; using Xamarin.Forms.Internals; namespace Ooui.Forms.Renderers { public class WebViewRenderer : ViewRenderer<WebView, Div>, IWebViewDelegate { private bool _disposed; private Iframe _iframe; void IWebViewDelegate.LoadHtml(...
26.539823
99
0.453484
[ "MIT" ]
Amoenus/Ooui
Ooui.Forms/Renderers/WebViewRenderer.cs
3,001
C#
namespace PlayersAndMonsters.Wizards { public class SoulMaster : Wizard { public SoulMaster(string username, int level) : base(username, level) { } } }
19.181818
54
0.549763
[ "MIT" ]
q2kPetrov/SoftUni
C# OOP/02_Inheritance/03_PlayersAndMonsters/Wizards/SoulMaster.cs
213
C#
namespace Regular_Expressions { using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; public class RegularExpressions { public static void Main(string[] args) { //Character Classes ...
50
152
0.560391
[ "Unlicense" ]
GoldenR1618/SoftUni-Projects
01.Learning_C_Sharp/16. Regular Expressions/RegularExpressions.cs
16,164
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace EF_SQLite_exercise.Migrations { public partial class MyFirstMigration3 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( name: "TestField", ...
26.291667
71
0.568938
[ "MIT" ]
kubilayeldemir/code-exercise
EF-SQLite-exercise/EF-SQLite-exercise/Migrations/20220117203259_MyFirstMigration3.cs
633
C#
using System.Reflection; using System.Runtime.CompilerServices; using HotChocolate.Types; using HotChocolate.Types.Descriptors; namespace HotChocolate.Data { /// <summary> /// Returns the first element of the sequence that satisfies a condition or a default value if /// no such element is found. Applies th...
29.310345
100
0.667059
[ "MIT" ]
Ciantic/hotchocolate
src/HotChocolate/Data/src/Data/Projections/Attributes/UseFirstOrDefaultAttribute.cs
850
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace HRC.NetCDF { public abstract class NcAtt { public string Name { get; private set; } public NcType NcType { get; private set; } public uint Length { get; protected set; } ...
31.091549
106
0.489468
[ "MPL-2.0" ]
AuditoryBiophysicsLab/ESME-Workbench
Libraries/HRC/NetCDF/NcAtt.cs
4,417
C#
// // EnumerableExtensions.cs // // Authors: // Alan McGovern alan.mcgovern@gmail.com // // Copyright (C) 2019 Alan McGovern // // 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 r...
36.959184
103
0.700166
[ "MIT" ]
OneFingerCodingWarrior/monotorrent
src/MonoTorrent.Tests/EnumerableExtensions.cs
1,813
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.Data; using System.Globalization; namespace Microsoft.EntityFrameworkCore.Storage; /// <summary> /// <para> /// Represents the mapping between a .NET <see ...
36.809524
118
0.654161
[ "MIT" ]
Applesauce314/efcore
src/EFCore.Relational/Storage/FloatTypeMapping.cs
2,319
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; namespace quotes { public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API configuration and services // Web API routes c...
23.24
62
0.576592
[ "Apache-2.0" ]
DonSchenck/quotes
quotes/App_Start/WebApiConfig.cs
583
C#
using System; using System.Collections.Generic; using System.Reflection; namespace DND.Common.Reflection { public interface ITypeFinder { IEnumerable<Type> FindClassesOfType(Type assignTypeFrom, bool onlyConcreteClasses = true); IEnumerable<Type> FindClassesOfType(Type assignTypeFrom, ...
32.944444
132
0.753794
[ "MIT" ]
davidikin45/DigitalNomadDaveAspNetCore
src/DND.Common/Reflection/ITypeFinder.cs
595
C#
// Copyright(c) 2016-2017 Brian Hansen. // 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...
36.446429
117
0.564919
[ "MIT" ]
tf3604/LogFileVisualizer
LsnConverter/LsnConverterForm.cs
8,166
C#
// Generated class v2.50.0.0, don't modify using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; namespace NHtmlUnit.Javascript.Host.Xml { public partial class XMLHttpRequest : NHtmlUnit.Javascript.Host.Xml.XMLHttpRequestEventTarget ...
24.591195
133
0.599488
[ "Apache-2.0" ]
HtmlUnit/NHtmlUnit
app/NHtmlUnit/Generated/Javascript/Host/Xml/XMLHttpRequest.cs
3,910
C#
using System; namespace ShortDev.Minecraft.Bedrock.McWebSocket.McJson { public struct MCPlayerInfo { public string activeSessionId; public string clientId; public string color; public string deviceSessionId; public string globalMultiplayerCorrelationId; public s...
22.090909
55
0.625514
[ "MIT" ]
ShortDevelopment/MC-Manager
MCWebSocket/McJson/MCPlayerInfo.cs
488
C#
using System; using System.Collections; using System.Data; using d = IrProject.Data; namespace IrProject.Indexing { public class LinkIndex { private Hashtable inboundLinks; private Hashtable outboundLinks; public LinkIndex() { load(); } public Hashtable InboundLinks { get { return inboundLinks; } } publ...
21.011628
66
0.611511
[ "Unlicense" ]
ic4f/oldcode
2007-ir-crawl-index-search/Indexing/LinkIndex.cs
1,807
C#
using DP.Domain.Samples.Bridge; namespace DP.Domain.Samples.Bridge { public class PrinterUsual : IPrinter { public void OrderA() { System.Diagnostics.Trace.WriteLine("Order A (Take your time, bro)"); } public void OrderB() { System.Diagnostics.Tr...
22.647059
80
0.579221
[ "MIT" ]
KarateJB/DesignPattern.Sample
CSharp/DP.Domain/Samples/Bridge/PrinterUsual.cs
385
C#
using System; using System.Windows; using Bindables; using Sidekick.UI.Leagues; namespace Sidekick.Windows.Leagues { /// <summary> /// Interaction logic for LeagueView.xaml /// </summary> [DependencyProperty] public partial class LeagueView : BaseWindow { public LeagueView(ILeagueViewMo...
24.107143
93
0.632593
[ "MIT" ]
cmos12345/Sidekick
src/Sidekick/Windows/Leagues/LeagueView.xaml.cs
675
C#
// // HttpResponseMessage.cs // // Authors: // Marek Safar <marek.safar@gmail.com> // // Copyright (C) 2011 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 the ...
24.168
96
0.699106
[ "Apache-2.0" ]
paulcbetts/mono
mcs/class/System.Net.Http/System.Net.Http/HttpResponseMessage.cs
3,021
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class StairController : MonoBehaviour { public enum STAIR_DIRECTION { up, down, none }; private int numSteps = 0; protected STAIR_DIRECTION stairDirection; //private EdgeCollider2D edgeC...
38.262136
107
0.494291
[ "BSD-3-Clause" ]
2dLynxGames/Fenris-Manor
Fenris-Manor/Assets/Scripts/StairController.cs
3,943
C#
using ProductScanner.Database.Entities; using ProductScanner.Services.Interfaces.Base; using ProductScanner.ViewModels.PhotoType; using System; using System.Collections.Generic; using System.Text; namespace ProductScanner.Services.Interfaces { public interface IPhotoTypeService : IServiceBase<PhotoTypeViewModel, ...
24.642857
84
0.814493
[ "MIT" ]
konraddysput/ProductScanner
src/ProductScanner.Backend/ProductScanner.Services/Interfaces/IPhotoTypeService.cs
347
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Algorithms.Trie { public class Trie { private Dictionary<char, Trie> _children = new Dictionary<char, Trie>(); private bool _isWordCompleted = false; private in...
27.617886
80
0.473359
[ "MIT" ]
AshokSubedi5/Algorithms
Algorithms/Algorithms/Trie/Trie.cs
3,399
C#
using Blueprint41.Neo4j.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Blueprint41.Query { public partial class MiscResult { } }
16.357143
35
0.759825
[ "MIT" ]
circles-arrows/blueprint41
Blueprint41/Query/MiscResult.cs
231
C#
// Unity C# reference source // Copyright (c) Unity Technologies. For terms of use, see // https://unity3d.com/legal/licenses/Unity_Reference_Only_License using System; using System.Collections.Generic; using System.Linq; using UnityEditor.Connect; namespace UnityEditor.PackageManager.UI { internal sealed class A...
44.363128
164
0.528271
[ "Unlicense" ]
HelloWindows/AccountBook
client/framework/UnityCsReference-master/Modules/PackageManagerUI/Editor/Services/AssetStore/AssetStoreRestAPI.cs
7,941
C#
using System; using Baseline; namespace StoryTeller.Results { public class Envelope { public Envelope() { } public Envelope(object message) { this.topic = ToTopic(message.GetType()); this.message = message; } public string topic;...
25.711538
119
0.529544
[ "Apache-2.0" ]
SergeiGolos/Storyteller
src/StoryTeller/Results/Envelope.cs
1,337
C#
using System; using System.Threading.Tasks; using AspnetRunBasics.Models; using AspnetRunBasics.Services; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace AspnetRunBasics { public class CheckOutModel : PageModel { private readonly IBasketService _basketService; ...
30.313725
101
0.630013
[ "MIT" ]
rprsatyendra/AspnetMicroservices
src/WebApps/AspnetRunBasics/Pages/CheckOut.cshtml.cs
1,548
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Android.App; // 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...
36.828571
84
0.757952
[ "BSD-3-Clause" ]
jhensley707/xamarin-app-center
HelloWorldApp/HelloWorldApp.Android/Properties/AssemblyInfo.cs
1,292
C#
using commercetools.Sdk.Domain.ProductProjections; namespace commercetools.Sdk.Domain.Messages.Products { [TypeMarker("ProductPriceExternalDiscountSet")] public class ProductPriceExternalDiscountSetMessage : Message<Product> { public int VariantId { get; set;} public string VariantKey { ge...
24.666667
74
0.681467
[ "Apache-2.0" ]
commercetools/commercetools-dotnet-core-sdk
commercetools.Sdk/commercetools.Sdk.Domain/Messages/Products/ProductPriceExternalDiscountSetMessage.cs
518
C#
// Copyright (c) SimpleIdServer. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using SimpleIdServer.Common.Domains; using SimpleIdServer.Common.Helpers; using SimpleIdServer.OAuth.Domains; using SimpleIdServer.OpenID; using SimpleIdServe...
46.365079
262
0.488463
[ "Apache-2.0" ]
PetrutiuPaul/SimpleIdServer
samples/ProtectAPIFromUndesirableUsers/IdToken/src/OpenId/OpenIdDefaultConfiguration.cs
14,605
C#
namespace buildeR.DAL.Entities.Common { public abstract class Entity { public int Id { get; set; } } }
17.428571
37
0.614754
[ "MIT" ]
BinaryStudioAcademy/bsa-2020-buildeR
backend/buildeR.DAL/Entities/Common/Entity.cs
122
C#
#region License /* Copyright (c) 2006 Leslie Sanford * * 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...
41.465116
92
0.659282
[ "MIT" ]
3017218159/Sanford.Multimedia.Midi-master
Source/Sanford.Multimedia/DeviceException.cs
3,566
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Diagnostics; using Internal.Text; using Internal.Type...
36.910714
120
0.599903
[ "MIT" ]
janvorli/coreclr
src/tools/crossgen2/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/GCRefMapNode.cs
4,136
C#
using System; using UnityEngine; using UnityEditor.Graphing; namespace UnityEditor.ShaderGraph { [Serializable] public class Matrix4ShaderProperty : MatrixShaderProperty { public Matrix4ShaderProperty() { displayName = "Matrix4"; } public override PropertyType p...
27.225
79
0.565657
[ "MIT" ]
17cuA/AimRacing11
AimRacing2019_05_31/AimRacing2019_05_31/Packages/com.unity.shadergraph/Editor/Data/Graphs/Matrix4ShaderProperty.cs
1,089
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.MathUtils; using System; using System.Collections.Concurrent; using System.Reflection.Emit; using osu.Framework.Extensions.TypeExten...
52.728814
193
0.622951
[ "MIT" ]
AlFasGD/osu-framework
osu.Framework/Graphics/Transforms/TransformCustom.cs
9,157
C#
namespace Shorty.Web { using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Shorty.Data; /// <summary> /// Class to configure ASP.NET and Entity...
34.650794
114
0.584517
[ "MIT" ]
ef4203/shorty
Shorty.Web/Startup.cs
2,185
C#
// <copyright file="AssemblyInfo.cs" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> 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...
37.5
84
0.742667
[ "MIT" ]
Bhaskers-Blu-Org2/EmbeddedSocial-Service
code/Server/AVERT/Properties/AssemblyInfo.cs
1,502
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections; using System.Collections.Generic; using TestSupport.Common_TestSupport; namespace TestSupport { /// <summary> /// The e...
42.78617
152
0.529973
[ "MIT" ]
bpschoch/corefx
src/System.Collections/tests/Generic/Common/TestSupport.cs
40,219
C#
using System; using System.Collections.Generic; using System.Linq; namespace _06_RemoveNumbersByOddOccurence { class RemoveNumbersByOddOccurence { static void Main(string[] args) { var listOfNumbers = new List<int>() { 4, 2, 2, 5, 2, 3, 2, 3, 1, 5, 2 }; var newList = li...
26
84
0.510355
[ "MIT" ]
alekhristov/TelerikAcademyAlpha
02-Module2/01-DSA/03-LinearDataStructuresGitLabHW/06-RemoveNumbersByOddOccurence/06-RemoveNumbersByOddOccurence.cs
678
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110 { using static Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.Extensions; /// <summary>A2A specific policy details.</summary> public partial class A2APolicyDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.A...
64.364286
455
0.711353
[ "MIT" ]
3quanfeng/azure-powershell
src/Migrate/generated/api/Models/Api20180110/A2APolicyDetails.cs
8,872
C#
//------------------------------------------------------------------------------ // <auto-generated /> // This file was automatically generated by the UpdateVendors tool. //------------------------------------------------------------------------------ // dnlib: See LICENSE.txt for more info using System; using Datadog...
38.130435
98
0.689472
[ "Apache-2.0" ]
theletterf/signalfx-dotnet-tracing
tracer/src/Datadog.Trace/Vendors/dnlib/PE/ImageNTHeaders.cs
2,631
C#
using System; using System.Collections.Specialized; using System.Diagnostics; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Net; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using Screna; namespace Captura.Models { // ReSharper disable once ClassNever...
33.651639
144
0.535867
[ "MIT" ]
ClsTe/CapturaKorean
src/Captura.Core/Models/ImageWriterItems/ImgurWriter.cs
8,213
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Devices.Bluetooth.Background { #if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] #endif public partial class BluetoothLEAdvertisementWatcherTriggerDetails ...
44.422222
212
0.797399
[ "Apache-2.0" ]
AlexTrepanier/Uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Devices.Bluetooth.Background/BluetoothLEAdvertisementWatcherTriggerDetails.cs
1,999
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/wingdi.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop { pub...
23.066667
145
0.644509
[ "MIT" ]
Ethereal77/terrafx.interop.windows
sources/Interop/Windows/um/wingdi/OUTLINETEXTMETRICA.cs
2,078
C#
namespace Coypu.Actions { public abstract class DriverAction : BrowserAction { protected readonly Driver Driver; protected DriverAction(Driver driver, DriverScope scope, Options options) : base(scope, options) { Driver = driver; } } }
24.230769
82
0.587302
[ "MIT", "Unlicense" ]
Jetski5822/coypu
src/Coypu/Actions/DriverAction.cs
315
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: AssemblyTi...
40.081081
85
0.734322
[ "BSD-3-Clause" ]
prabirshrestha/FacebookSharp
src/DotNet4/FacebookSharp.SQLiteProvider/Properties/AssemblyInfo.cs
1,486
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/directmanipulation.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; ...
41.307692
146
0.674581
[ "MIT" ]
phizch/terrafx.interop.windows
tests/Interop/Windows/um/directmanipulation/IDirectManipulationPrimaryContentTests.cs
2,150
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.Globalization; using System.Threading; using System.Threading.Tasks; using JetBrains.Annotations; using Microsoft.EntityFrame...
54.504673
113
0.66118
[ "Apache-2.0" ]
vitorelli/efcore
src/EFCore.SqlServer/ValueGeneration/Internal/SqlServerSequenceHiLoValueGenerator.cs
5,832
C#
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using PureCloudPlatform.Client.V2.Client; namespace PureClo...
30.960526
113
0.521462
[ "MIT" ]
F-V-L/platform-client-sdk-dotnet
build/src/PureCloudPlatform.Client.V2/Model/NluDetectionOutput.cs
4,706
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.Xml.Serialization; namespace CodeTorch.Core { [Serializable] public class GridGroupBySelectField : GridGroupByField { public GridAggregateFunction Aggregate { get; set; ...
22.551724
101
0.691131
[ "MIT" ]
EminentTechnology/CodeTorch
src/core/CodeTorch.Core/Grid/GridGroupBySelectField.cs
656
C#
namespace SoftUniDi.Attributes { using System; [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Field)] public class NamedAttribute : Attribute { public NamedAttribute(string name) { this.Name = name; } public string Name { get; } } }
19.6875
73
0.615873
[ "MIT" ]
DanielBankov/SoftUni
C# Fundamentals/C# OOP Advanced/06. Dependency Injection/02. Demo DI/DependencyInjection/SoftUniDi/Attributes/NamedAttribute.cs
317
C#
//------------------------------------------------------------------------------------------------------------------------------------ // Copyright 2020 Dassault Systèmes - CPE EMED // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation // files...
48.5
149
0.628522
[ "MIT" ]
nogueiraantonio/3dx-ws-client-sdk
ds.enovia/service/EnoviaBaseRequest.cs
2,913
C#
/* * Prime Developer Trial * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * Generated by: https://github.com/openapitools/openapi-generator.git */ using Newtonsoft.Json.Converters; namespace FactSet.SDK....
31.833333
109
0.66178
[ "Apache-2.0" ]
factset/enterprise-sdk
code/dotnet/WatchlistAPIforDigitalPortals/v2/src/FactSet.SDK.WatchlistAPIforDigitalPortals/Client/OpenAPIDateConverter.cs
955
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TrueCraft.Core.World { public interface IBiomeRepository { IBiomeProvider GetBiome(byte id); IBiomeProvider GetBiome(double temperature, double rainfall, bool spawn); void RegisterBiomeProvi...
23.866667
81
0.740223
[ "MIT" ]
mrj001/TrueCraft
TrueCraft.Core/World/IBiomeRepository.cs
360
C#
/* * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) * See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers * for more information concerning the license and the contributors participating to this project. */ using System.Security.Claims; using System.T...
33.06383
98
0.687259
[ "Apache-2.0" ]
AaqibAhamed/AspNet.Security.OAuth.Providers
test/AspNet.Security.OAuth.Providers.Tests/Vimeo/VimeoTests.cs
1,556
C#
using System.Linq; using ProGaudi.MsgPack.Light.Converters.Generation; using Shouldly; using Xunit; namespace ProGaudi.MsgPack.Light.Tests.Generators.Discovery { public class Properties { [Fact] public void SimpleTest() { var provider = new PropertyProvider(); ...
26.097561
92
0.517757
[ "MIT" ]
Szer/MsgPack.Light
tests/msgpack.light.tests/Generators/Discovery/Properties.cs
2,142
C#
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.PowerPointApi { /// <summary> /// DispatchInterface SlideShowView /// SupportByVersion PowerPoint, 9,10,11,12,14,15,16 /// </summary> /// <remarks> MSDN Online: http://msdn.microsoft.com/e...
33.05082
174
0.685085
[ "MIT" ]
DominikPalo/NetOffice
Source/PowerPoint/DispatchInterfaces/SlideShowView.cs
20,163
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.IO; using System.Xml; using Microsoft.Build.Construction; using InvalidProjectFileException = Microsoft.Build.Exceptions.InvalidProjectFileE...
31.993921
112
0.510925
[ "MIT" ]
AaronRobinsonMSFT/msbuild
src/Build.OM.UnitTests/Construction/ProjectTaskElement_Tests.cs
10,526
C#
namespace Aspose.Slides.Web.API.Clients.Enums { /// <summary> /// Slides conversion formats. /// </summary> public enum SlidesConversionFormats { /// <summary> /// ODP format /// </summary> odp, /// <summary> /// OTP format /// </summary> otp, /// <summary> /// PPTX format /// </summary> ...
12.112583
45
0.48059
[ "MIT" ]
aspose-slides/Aspose.Slides-for-.NET
Demos/Aspose.Slides.Web.API.Clients/Enums/SlidesConversionFormats.cs
1,829
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...
41.658537
145
0.681206
[ "Apache-2.0" ]
EvilMindz/mongo-csharp-driver
MongoDB.Driver/Operations/CommandOperation.cs
3,418
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.Runtime.InteropServices; using System.Collections.Immutable; using Microsoft.CodeAnalysis.Emit; using Xunit...
43.833333
184
0.71635
[ "Apache-2.0" ]
semihokur/pattern-matching-csharp
Src/Compilers/Core/CodeAnalysisTest/Emit/EmitBaselineTests.cs
1,317
C#
namespace ComputerPartsCatalog.Services.Data.Ratings { using System.Linq; using System.Threading.Tasks; using ComputerPartsCatalog.Data.Common.Repositories; using ComputerPartsCatalog.Data.Models; using Microsoft.EntityFrameworkCore; public class RatingsService : IRatingsService { ...
29.893617
90
0.586477
[ "MIT" ]
StanislavTsanev/ComputerPartsCatalog
Services/ComputerPartsCatalog.Services.Data/Ratings/RatingsService.cs
1,407
C#
/****************************************************************************** * Spine Runtimes License Agreement * Last updated January 1, 2020. Replaces all prior versions. * * Copyright (c) 2013-2020, Esoteric Software LLC * * Integration of the Spine Runtimes into software or otherwise creating * der...
44.904459
167
0.634894
[ "Apache-2.0" ]
NGTO-WONG/KishiStory
Assets/Spine/Runtime/spine-csharp/Attachments/VertexAttachment.cs
7,050
C#
using Org.BouncyCastle.Crypto.Digests; using System; using System.Collections.Generic; using System.Text; namespace Hashgraph.Implementation { /// <summary> /// Internal Helper class for ABI encoding /// of parameter arguments sent to smart /// contract methods. /// </summary> int...
40.820728
165
0.532423
[ "Apache-2.0" ]
ZhingShan/Hashgraph
src/Hashgraph/Implementation/Abi.cs
14,575
C#
using System; using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc.Rendering; namespace CalculatorCode.Models { public class CombinationsCalculator : Calculator { [Display(Name = "Number of Objects (n)")] public int NumberOfObjects { get; set; } [Display(Name = "...
26.431373
85
0.571217
[ "MIT" ]
brandiweekes/5210_CalculatorCode
TimeCalculator/Models/CombinationsCalculator.cs
1,348
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
37.551724
153
0.589532
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/ISensitivityLabelEvaluateRequestBuilder.cs
1,089
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Neo.Network.P2P.Payloads; namespace Neo.Models.Transactions { public class TransactionPreviewModel { public UInt256 TxId { get; set; } public uint BlockHeight { get; set; }...
27
79
0.695906
[ "MIT" ]
MingxiaYan/Neo3-GUI
neo3-gui/neo3-gui/Models/Transactions/TransactionPreviewModel.cs
515
C#
namespace DotNetInterceptTester.My_System.Xml.XmlNodeReader { public class MoveToAttribute_System_Xml_XmlNodeReader_System_Int32 { public static bool _MoveToAttribute_System_Xml_XmlNodeReader_System_Int32( ) { //Parameters System.Int32 attributeIndex = null; //Exception Exception exception_Real...
19.409091
90
0.696721
[ "MIT" ]
SecurityInnovation/Holodeck
Test/Automation/DotNetInterceptTester/DotNetInterceptTester/System.Xml.XmlNodeReader.MoveToAttribute(Int32).cs
854
C#
using Trill.Shared.Abstractions.Kernel; namespace Trill.Modules.Users.Core.Domain.Exceptions { internal class InvalidCredentialsException : DomainException { public string Name { get; } public InvalidCredentialsException(string name) : base("Invalid credentials.") { ...
25.428571
87
0.63764
[ "MIT" ]
devmentors/Trill-modular-monolith
src/Modules/Users/src/Trill.Modules.Users.Core/Domain/Exceptions/InvalidCredentialsException.cs
356
C#
// <copyright file="ChannelHandlerIntegration.cs" company="Datadog"> // Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License. // This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc. // </copyright> #if NETFRAME...
48.318182
182
0.695202
[ "Apache-2.0" ]
ganeshkumarsv/dd-trace-dotnet
src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Wcf/ChannelHandlerIntegration.cs
3,189
C#
/* * Generated code file by Il2CppInspector - http://www.djkaty.com - https://github.com/djkaty */ using System; using System.Diagnostics; using System.Runtime.CompilerServices; using RootMotion.FinalIK; using UnityEngine; // Image 65: Assembly-CSharp-firstpass.dll - Assembly: Assembly-CSharp-firstpass, Version=0....
29.5
153
0.769492
[ "MIT" ]
TotalJTM/PrimitierModdingFramework
Dumps/PrimitierDumpV1.0.1/RootMotion/Demos/InteractionC2CDemo.cs
887
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. namespace Microsoft.PowerFx.Core.IR.Nodes { internal abstract class IntermediateNode { public IRContext IRContext { get; } public IntermediateNode(IRContext irContext) { IRContext = irContext; ...
25.166667
118
0.675497
[ "MIT" ]
Grant-Archibald-MS/Power-Fx
src/libraries/Microsoft.PowerFx.Core/IR/Nodes/IntermediateNode.cs
455
C#
using System; using Anvil.API.Events; using NWN.Core; namespace Anvil.API.Events { /// <summary> /// Events for <see cref="NwCreature"/>. /// </summary> public static partial class CreatureEvents { /// <summary> /// Triggered at the end of the <see cref="NwCreature"/> combat round. /// </summary>...
30.15
180
0.699005
[ "MIT" ]
milliorn/Anvil
NWN.Anvil/src/main/API/Events/Game/CreatureEvents/CreatureEvents.OnCombatRoundEnd.cs
1,206
C#
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Website: https://www.blazor.zone or https://argozhang.github.io/ using BootstrapBlazor.Components; using BootstrapBlazor.Shared.Common; n...
30.480916
147
0.49737
[ "Apache-2.0" ]
Ashhhhhh520/BootstrapBlazor
src/BootstrapBlazor.Shared/Samples/AutoCompletes.razor.cs
4,045
C#
namespace ValkyrDoc.DocumentationEntry { public class DocumentationEntryFactory { private readonly IGuidService _guidService; public DocumentationEntryFactory(IGuidService guidService) { _guidService = guidService; } public IDocumentationEntry CreateTextDocumentationEntry(string text) ...
26.347826
90
0.755776
[ "MIT" ]
Leginiel/ValkyrDoc
ValkyrDoc/DocumentationEntry/DocumentationEntryFactory.cs
608
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using UniGLTF; using UnityEditor; using UnityEngine; namespace VRM { [CustomEditor(typeof(BlendShapeAvatar))] public class BlendShapeAvatarEditor : PreviewEditor { static String[] Presets = ((BlendShapePreset[])En...
35.966912
132
0.452826
[ "MIT" ]
sotanmochi/VRMLipSyncSample
Assets/VRM/Scripts/BlendShape/Editor/BlendShapeAvatarEditor.cs
9,801
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using NeoSmart.Unicode; using System.Linq; namespace UnicodeTests { [TestClass] public class SequenceTests { private string _swimmerString = "🏊"; private UnicodeSequence _swimmer = new UnicodeSequence("U+1F3CA"); priva...
36.485714
102
0.624119
[ "MIT" ]
UWPX/unicode.net
tests/SequenceTests.cs
2,499
C#
using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Linq; using Aspectize.Core; using System.Security.Permissions; namespace Clipboard { public interface ILoadDataService { DateTime LoadClipboardDate(Guid clipboardId); [Command(BrowserCacheDuratio...
29.8
126
0.655245
[ "MIT" ]
Aspectize/Samples
Clipboard/Services/LoadDataService.cs
2,831
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. // </auto-generated> namespace Microsoft.Azure.Management.Monitor.Fluent { ...
44.313107
269
0.566358
[ "MIT" ]
Azure/azure-libraries-for-net
src/ResourceManagement/Monitor/Generated/DiagnosticSettingsCategoryOperations.cs
18,257
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace AnimalShelterAPI.Migrations { public partial class SeedData : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.InsertData( table: "Animals", columns: new[] { "AnimalId", "Age", "...
29.368421
91
0.522103
[ "Unlicense" ]
popoyuyu/AnimalShelterAPI.Solution
AnimalShelterAPI/Migrations/20220121225618_SeedData.cs
1,676
C#
using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.SessionState; using System.Xml.Linq; using PCAxis.Chart; using PCAxis.Web.Controls; using System.Web.Routing; using PCAxis.Api; using PCAxis.Search; us...
44.520576
174
0.497158
[ "Apache-2.0" ]
runejo/PxWeb
PXWeb/Global.asax.cs
21,639
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace SMVC.Models { public class RegisterCreateVM { [DisplayName("First Name")] [Required] public string Custom...
22.83871
55
0.629944
[ "MIT" ]
210215-USF-NET/Ulices_Esqueda-P1
StoreApp/SMVC/Models/RegisterCreateVM.cs
710
C#
using EnvDTE80; using log4net; using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; using System.Text; using System.Threading; using System.Threading.Tasks; using TCatSysManage...
41.485577
171
0.586105
[ "MIT" ]
Hopperpop/TcUnit-Runner
TcUnit-Runner/VisualStudioInstance.cs
17,261
C#
using DevExpress.XtraSplashScreen; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsForm { public static class Global { public s...
35.033333
125
0.516413
[ "Apache-2.0" ]
nguyendev/DATN
Code/WindowsForm/Global.cs
4,206
C#