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 (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
32.25
97
0.546027
[ "MIT" ]
Agazoth/azure-powershell
src/EdgeOrder/generated/runtime/Nodes/Collections/XList.cs
2,003
C#
using UI_Context.Classes.Templates.Dialogs; namespace UI_Context.Classes.Context.Dialogs { public class GradeInfoDialogContext { //--------------------------------------------------------Attributes:-----------------------------------------------------------------\\ #region --Attributes-- ...
31.25
144
0.319273
[ "MIT" ]
COM8/TUM_Campus_App_UWP
UI_Context/Classes/Context/Dialogs/GradeInfoDialogContext.cs
1,377
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #if !SILVERLIGHT // ComObject namespace System.Management.Automation.ComInterop { internal class ComTypeLibMemberDesc { internal ComTypeLibMemberDesc(ComType kind) { Kind = kind; } public Co...
17
51
0.638655
[ "MIT" ]
202006233011/PowerShell
src/System.Management.Automation/engine/ComInterop/ComTypeLibMemberDesc.cs
357
C#
using System; using System.IO; using System.Text; namespace ICSharpCode.SharpZipLib.Tar { /// <summary> /// Used to advise clients of 'events' while processing archives /// </summary> public delegate void ProgressMessageHandler(TarArchive archive, TarEntry entry, string message); /// <summary> /// The TarArchiv...
27.476534
120
0.653966
[ "MIT" ]
Acidburn0zzz/SharpZipLib
src/ICSharpCode.SharpZipLib/Tar/TarArchive.cs
22,833
C#
using System.Runtime.Serialization; using System.Text.Json.Serialization; namespace Plotly.Models.Layouts.Scenes.XAxes { /// <summary> /// Specifies the ordering logic for the case of categorical variables. By default, /// plotly uses <c>trace</c>, which specifies the order that is present in the ...
34.194444
99
0.623477
[ "MIT" ]
trmcnealy/Plotly.WPF
Plotly/Models/Layouts/Scenes/XAxes/CategoryOrderEnum.cs
2,462
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //Declare two string variables and assign them with Hello and World. //Declare an object variable and assign it with the concatenation of the first two variables (mind adding an interval between). //Decl...
30.125
127
0.676349
[ "MIT" ]
Das8Beste/Primitive-Data-Types-and-Variables
6. Strings and Objects/Program.cs
725
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** 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; names...
38.351695
177
0.55574
[ "ECL-2.0", "Apache-2.0" ]
secustor/pulumi-exoscale
sdk/dotnet/DomainRecord.cs
9,051
C#
using System; using System.Diagnostics.Contracts; using System.Drawing; using System.Linq; using ReClassNET.UI; namespace ReClassNET.Nodes { public delegate void ClassCreatedEventHandler(ClassNode node); public class ClassNode : BaseContainerNode { public static event ClassCreatedEventHandler ClassCreated; #if...
23.175879
112
0.658933
[ "MIT" ]
EliteOutlaws/ReClass.NET
ReClass.NET/Nodes/ClassNode.cs
4,614
C#
//----------------------------------------------------------------------- // <copyright company="CoApp Project"> // Copyright (c) 2010-2013 Garrett Serack and CoApp Contributors. // Contributors can be discovered using the 'git log' command. // All rights reserved. // </copyright> // <license> // ...
42.711579
229
0.53401
[ "Apache-2.0" ]
Jaykul/clrplus
Core/Linq/Serialization/Xml/TypeResolver.cs
20,288
C#
using SolastaModApi.Infrastructure; using static RuleDefinitions; namespace SolastaModApi.Extensions { /// <summary> /// This helper extensions class was automatically generated. /// If you find a problem please report at https://github.com/SolastaMods/SolastaModApi/issues. /// </summary> [TargetTy...
31.127273
99
0.603388
[ "MIT" ]
ChrisPJohn/SolastaModApi
SolastaModApi/Extensions/ArmorDescriptionExtensions.cs
1,712
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...
29.291667
110
0.602418
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/AppPlatform/Latest/Inputs/UserSourceInfoArgs.cs
1,406
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Xunit; using System.Collections.Generic; using System.Buffers; using System.Buffers.Text; namespace System.Text.Http.Parser.Tests { public class HttpParserBa...
41.288235
202
0.605784
[ "MIT" ]
benaadams/corefxlab
tests/System.Text.Http.Tests/HttpParserBasicTests.cs
7,019
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ProtoBuf; namespace Gear.Net.ChannelPlugins.StreamTransfer { [ProtoContract] public class RequestStreamMessage : IMessage { [ProtoIgnore] int IMessage.DispatchId ...
19.576923
55
0.607073
[ "MIT" ]
cathode/gear
Gear.Net/ChannelPlugins/StreamTransfer/RequestStreamMessage.cs
511
C#
using System; using System.Collections.Generic; using System.Xml; using System.Xml.Schema; using System.Xml.XPath; using System.Diagnostics; using System.IO; using System.ComponentModel; using System.Text; using System.Net; using System.Net.Cache; using System.Timers; namespace XmlNotepad { /// <summary> /// X...
31.548913
127
0.493066
[ "MIT" ]
acidburn0zzz/XmlNotepad
src/Model/XmlCache.cs
23,220
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...
40.7
730
0.625483
[ "MIT" ]
AikoBB/azure-sdk-for-net
sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineImage.cs
5,698
C#
using System; using System.Collections; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Conditions.Tests.CollectionTests { /// <summary> /// Tests the ValidatorExtensions.IsNotLongerThan method. /// </summary> [TestClass] public class CollectionIsNotL...
36.055556
169
0.627696
[ "MIT" ]
Kleptine/conditions-unity
src/Conditions.Tests/CollectionTests/CollectionIsNotLongerThanTests.cs
5,192
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using lmDatasets; namespace atriumDAL { public partial class AddressDAL : atDAL.ObjectDAL { public atriumDB.AddressDataTable LoadByFileIdP(int FileId) { this.sqlDa.SelectCommand = sqlSelect; ...
43
267
0.681309
[ "MIT" ]
chris-weekes/atrium
atriumDAL/Address_UDAL.cs
1,163
C#
using System; using Microsoft.Extensions.Options; using Q42.HueApi; using Q42.HueApi.ColorConverters; using Q42.HueApi.ColorConverters.HSB; using Q42.HueApi.Interfaces; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace PresenceLight.Core { public ...
32.146853
144
0.514683
[ "MIT" ]
jeffwmiles/PresenceLight
src/PresenceLight.Core/Lights/HueService.cs
4,599
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace UdemyProject3.ScriptableObjects { [CreateAssetMenu(fileName = "Health Info", menuName = "Combat/Health Information/Create New", order = 51)] public class HealthSO : ScriptableObject { [SerializeField] int _maxH...
27.071429
110
0.728232
[ "Unlicense" ]
berkterek/Udemy3DProje3Repository
UdemyProje3/Assets/GameFolders/Scripts/Concretes/ScriptableObjects/HealthSO.cs
379
C#
using System.Collections.Generic; using System.Data.SqlClient; using System; namespace Restaurant { public class Restaurant { private int _id; private string _name; private string _description; private int _cuisineId; public Restaurant(string Name, string Description, int CuisineId, int Id = 0...
28.902256
194
0.638137
[ "MIT" ]
aglines-epicodus/sql-best-restaurants
Objects/Restaurant.cs
7,688
C#
using System; using System.Collections.Generic; using System.IO; using System.Resources; using System.Security.Cryptography; using System.Text; using System.Windows.Forms; namespace Dream_AIO { public class Builder { public Logger Logger { get; set; } public bool Build(SettingsF...
33.352459
213
0.507373
[ "MIT" ]
rohan-patra/File-Binder-Pro
File-Binder-Pro-master/Dream AIO/Builder.cs
8,140
C#
using Meel.Commands; using Meel.Parsing; using Meel.Responses; using Meel.Stations; using NUnit.Framework; using System.Buffers; using System.Text; namespace Meel.Tests.Commands { [TestFixture] public class RenameCommandTest { [Test] public void ShouldRename() { // Arra...
38.680412
87
0.558236
[ "MIT" ]
ynse01/meel
Tests/Commands/RenameCommandTest.cs
7,506
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Shirley.Book.DataAccess; namespace Shirley.Book.DataAccess.Migrations { [D...
31.625
75
0.454051
[ "MIT" ]
YizhixiaoMoJun/BookStore
src/Shirley.Book.DataAccess/Migrations/20200913083246_add-concurrency-for-stock-count.Designer.cs
4,050
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using Writa.Models; using BCrypt; namespace Writa.Frontend.Controllers.api { public class AddUserRequest { public string UserFullName { get; set; } public string Em...
28.5
87
0.576659
[ "Apache-2.0" ]
cdc1979/Writa
Writa.Frontend/Controllers/api/UserAdminController.cs
2,624
C#
using Assets.Scripts.Data.Entities; namespace Assets.Scripts.Services { public interface IWeaponService : IService<WeaponModel> { } }
16.444444
59
0.72973
[ "MIT" ]
Jimud1/RpgProject
Test Project/Jimmy Rpg/Assets/Scripts/Services/Weapon/IWeaponService.cs
150
C#
using System; using System.Collections; using System.Collections.Generic; using System.Data; using MPT.Geometry.Shapes; using MPT.Geometry.Tools; using MPT.Math.Coordinates; using NUnit.Framework; namespace MPT.Geometry.UnitTests.Shapes { [TestFixture] public static class IsoscelesRightTriangleTests { ...
39.53125
102
0.652701
[ "MIT" ]
MarkPThomas/MPT.Geometry-.netCore
MPT.Geometry.UnitTests/Shapes/IsoscelesRightTriangleTests.cs
3,797
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Duality.Editor; namespace create_object_with_mouseclick.Editor { /// <summary> /// Defines a Duality editor plugin. /// </summary> public class create_object_with_mouseclickEditorPlugin : EditorPlugin { public overr...
19.52381
73
0.753659
[ "MIT" ]
GameTemplates/Duality-Examples
create-physics-object-with-mouseclick/src/Source/Code/EditorPlugin/EditorPlugin.cs
412
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.28
175
0.60536
[ "CC0-1.0" ]
oscar-almaraz/ProtogenControl
ProtogenControl/ProtogenControl/obj/Debug/netstandard2.0/Views/AboutPage.xaml.g.cs
1,087
C#
using System; namespace Miris.DomainEvents.ImmediateConsistency { /// <summary> /// Usado para especificar se <see cref="TransactionScopeInterceptor"/> vai criar um /// escopo transacional para o Proxied method. /// </summary> [AttributeUsage(AttributeTargets.Method, AllowMultiple = fals...
22.153846
93
0.649306
[ "MIT" ]
marcusmiris/DomainEvents
Miris.DomainEvents/ImmediateConsistency/ImplicitTransactionScopeAttribute.cs
578
C#
namespace _03.BiDictionary { using System; public class Startup { public static void Main(string[] args) { var dict = new BiDictionary<int, int, string>(); dict.Add(1, 1, "Pesho"); dict.Add(1, 21, "Gosho"); dict.Add(2, 1, "Stamat"); ...
24.208333
69
0.509466
[ "MIT" ]
ni4ka7a/TelerikAcademyHomeworks
DataStructuresAndAlgorithms/06.DataStructureEfficiency/03.BiDictionary/Startup.cs
583
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.Linq; using System.Linq.Expressions; using System.Reflection; using JetBrains.Annotations;...
49.84153
143
0.663962
[ "Apache-2.0" ]
BionStt/EntityFrameworkCore
src/EFCore/Query/ExpressionVisitors/Internal/CollectionNavigationSubqueryInjector.cs
9,123
C#
using System.IO; using System.Runtime.Serialization; using GameEstate.Red.Formats.Red.CR2W.Reflection; using FastMember; using static GameEstate.Red.Formats.Red.Records.Enums; namespace GameEstate.Red.Formats.Red.Types { [DataContract(Namespace = "")] [REDMeta] public class CModSbUiIdlePoseList : CModUi...
32.434783
132
0.75067
[ "MIT" ]
bclnet/GameEstate
src/Estates/Red/GameEstate.Red.Format/Red/W3/RTTIConvert/CModSbUiIdlePoseList.cs
746
C#
using System; public class InvalidSongException : Exception { public InvalidSongException(string message = "Invalid song.") : base(message) { } }
18.666667
66
0.666667
[ "MIT" ]
pirocorp/C-OOP-Basics-
04. Inheritance/04. Inheritance - Exercises/P04_OnlineRadioDatabase/Exceptions/InvalidSongException.cs
170
C#
namespace Datadog.Trace.ClrProfiler.Interfaces { internal interface IHttpSpanTagsSource { string GetHttpMethod(); string GetHttpHost(); string GetHttpUrl(); } }
16.583333
46
0.653266
[ "Apache-2.0" ]
alonf/dd-trace-dotnet
src/Datadog.Trace.ClrProfiler.Managed/Interfaces/IHttpSpanTagsSource.cs
199
C#
using eroller.logic; using Nancy; using Nancy.TinyIoc; namespace eroller.web { public class Bootstrapper : DefaultNancyBootstrapper { protected override void ConfigureApplicationContainer(TinyIoCContainer container) { base.ConfigureApplicationContainer(container); container.Regi...
24.866667
91
0.713137
[ "MIT" ]
slieser/eroller
eroller/eroller.web/Bootstrapper.cs
373
C#
using System.Threading; using System.Threading.Tasks; namespace StableCube.DigitalOcean.DotNetClient { public interface IDropletEndpoint { Task<Droplet> GetAsync( int dropletId, CancellationToken cancellationToken = default(CancellationToken) ); Task...
29.333333
77
0.618506
[ "MIT" ]
StableCube/DigitalOcean
DotNetClient/src/EndpointsV2/IDropletEndpoint.cs
1,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: AssemblyTi...
39.447368
85
0.733155
[ "Apache-2.0" ]
Amith211/tSQLt
tSQLtCLR/tSQLtTestUtilCLR/Properties/AssemblyInfo.cs
1,502
C#
using System; using System.Linq; using Ploeh.AutoFixture.Kernel; using Xunit; namespace Ploeh.AutoFixtureUnitTest.Kernel { public class FilteringSpecimenBuilderTest { [Fact] public void SutIsSpecimenBuilder() { // Fixture setup var dummySpecificatio...
40.778281
144
0.585331
[ "MIT" ]
jrnail23/AutoFixture
Src/AutoFixtureUnitTest/Kernel/FilteringSpecimenBuilderTest.cs
9,014
C#
namespace CheckoutAuthCodeGrant.Models.PaymentsApi { using Newtonsoft.Json; /// <summary> /// Data model for a public key from Payments API. /// </summary> /// <remarks> /// https://developer.sky.blackbaud.com/docs/services/payments/operations/GetPublicKey /// </remarks> public class P...
25.058824
90
0.63615
[ "MIT" ]
blackbaud/payments-checkout-authcodegrant-sample
src/CheckoutAuthCodeGrant/Models/PaymentsApi/PublicKeyData.cs
428
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...
47.774194
178
0.683997
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/WorkDocs/Generated/Model/TooManySubscriptionsException.cs
5,924
C#
using Jint.Native.Object; using Jint.Runtime; using Jint.Runtime.Descriptors; using Jint.Runtime.Descriptors.Specialized; using Jint.Runtime.Interop; namespace Jint.Native.Function { /// <summary> /// http://www.ecma-international.org/ecma-262/5.1/#sec-15.3.4 /// </summary> public sealed class Fun...
36.211268
145
0.583042
[ "BSD-2-Clause" ]
jfoshee/jint
Jint/Native/Function/FunctionPrototype.cs
5,144
C#
using System; using System.Threading; using System.Threading.Tasks; namespace paralelismoY { class Program { public static void Main() { //Declarar y crear un array int[] Numeros = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; Console.WriteLine("N...
27.848485
73
0.500544
[ "Apache-2.0" ]
yoly6/EnParalelo
paralelismo/Program.cs
921
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 System.IO; using S...
41.145791
254
0.596442
[ "Apache-2.0" ]
semihokur/pattern-matching-csharp
Src/Compilers/Test/Utilities/CSharp/CSharpTestBase.cs
40,078
C#
using System.Collections.Generic; using System.Windows.Input; namespace Netfox.Detective.Models.Base.Detective { public class MenuItem { public List<MenuItem> MenuItems { get; } = new List<MenuItem>(); public string Header { get; set; } public ICommand Command { get; set; } } }
26.333333
72
0.664557
[ "Apache-2.0" ]
pokornysimon/NetfoxDetective
NetfoxCore/Detective/App/Netfox.Detective/Models/Base/Detective/MenuItem.cs
318
C#
using System.Collections.Generic; using System.Threading.Tasks; using Windows.UI.Xaml.Media.Imaging; namespace Davinci.net { public static class Extensions { public static async Task<IEnumerable<T>> ExecuteAsync<T>(this IEnumerable<Task<T>> tasks) { var results = new List<T>(); ...
23.65
97
0.575053
[ "Apache-2.0" ]
TheFo2sh/Davinci.net
Davinci.net/Extensions.cs
475
C#
using System.Collections.Generic; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Authorization; using System.Threading.Tasks; namespace ServiceBusDriver.Client.UIComponents.Pages.Dashboard { public partial class TopicDashboard { public IReadOnlyDictionary<string, string...
25.4
74
0.699475
[ "MIT" ]
beaudeanadams/ServiceBusDriver
Client/UIComponents/Pages/Dashboard/TopicDashboard.razor.cs
764
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.972222
145
0.681723
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
tests/Interop/Windows/um/winnt/POWER_SESSION_WINLOGONTests.cs
1,441
C#
namespace Application.Items.Commands.DeleteItem { using System; using MediatR; public class DeleteItemCommand : IRequest { public DeleteItemCommand(Guid id) { this.Id = id; } public Guid Id { get; } } }
17.933333
48
0.572491
[ "MIT" ]
DigitalSeas-Tech/AuctionSystem
src/Core/Application/Items/Commands/DeleteItem/DeleteItemCommand.cs
271
C#
// Copyright (c) Peter Vrenken. All rights reserved. See the license on https://github.com/vrenken/EtAlii.Ubigia namespace EtAlii.Ubigia.Persistence { public interface IBlobStorer { void Store(ContainerIdentifier container, Blob blob); } }
26.2
113
0.725191
[ "MIT" ]
vrenken/EtAlii.Ubigia
Source/Persistence/EtAlii.Ubigia.Persistence/Blobs/IBlobStorer.cs
264
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SyncAudioSources : MonoBehaviour, ITimedEventSync { //set these in the inspector! public AudioSource master; public AudioSource slave; /// <summary> /// Moves audio samples for master and slave to the off...
25.814815
89
0.680057
[ "MIT" ]
eagee/KateAndEaganGetAPodcast
Assets/Scripts/Audio/SyncAudioSources.cs
699
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace WatchProject { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static voi...
22.217391
65
0.612524
[ "MIT" ]
bwosh/csharpqa
03_Vs2015/WatchProject/Program.cs
513
C#
// Copyright (c) Oleg Zudov. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Zu.T...
41.18515
158
0.430935
[ "Apache-2.0" ]
ToCSharp/TameRoslyn
TameRoslyn/TameRoslynSyntaxGen/TameIfStatementSyntax.cs
43,821
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.359155
152
0.617717
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Sql/V20200801Preview/VirtualNetworkRule.cs
6,299
C#
using System; namespace Snowlight.Specialized { public class Vector2 { internal int int_0; internal int int_1; public Vector2() { this.int_0 = 0; this.int_1 = 0; } public Vector2(int int_2, int int_3) { this.int_0 = ...
20.457143
64
0.405028
[ "MIT" ]
DaLoE99/Servidores-DaLoE
3/BoomBang/Specialized/Vector2.cs
1,434
C#
using System.Collections.Generic; using System.Collections.ObjectModel; using GeoAPI.Geometries; using NetTopologySuite.Geometries; namespace NetTopologySuite.Index.KdTree { /// <summary> /// An implementation of a 2-D KD-Tree. KD-trees provide fast range searching on point data. /// </summary> /// <r...
34.915789
110
0.51432
[ "EPL-1.0" ]
bouyeijiang/NetTopologySuite
NetTopologySuite/Index/KdTree/KdTree.cs
13,270
C#
using System; class Books { struct book { public string author; public string title; public int year; } static void Main() { const int CAPACITY = 25000; int amount = 0; book[] books = new book[CAPACITY]; string option; ...
22.066667
55
0.369587
[ "MIT" ]
Jokerlocco/2019-2020_DAM1_EjerciciosClase
chapter04-arraysStruct/184a-Books1.cs
993
C#
using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using BTDB.KVDBLayer; using BTDB.ODBLayer; namespace SimpleTester { public class CompactorLatencyMeasurement { public CompactorLatencyMeasurement() { } public class SmallObject ...
36.586466
127
0.43917
[ "MIT" ]
Bobris/BTDB
SimpleTester/CompactorLatencyMeasurement.cs
4,866
C#
using KnightBus.Core; namespace KnightBus.NewRelicMiddleware { public static class NewRelicExtensions { public static IHostConfiguration UseNewRelic(this IHostConfiguration configuration) { configuration.AddMiddleware(new NewRelicMessageMiddleware()); return configurati...
26.230769
91
0.697947
[ "MIT" ]
BookBeat/knightbus
knightbus-newrelic/src/KnightBus.NewRelic/NewRelicExtensions.cs
343
C#
using System.Xml.Serialization; using Newtonsoft.Json; namespace Essensoft.AspNetCore.Payment.Alipay.Response { /// <summary> /// AlipayFlashsalesStockSyncUpdateResponse. /// </summary> public class AlipayFlashsalesStockSyncUpdateResponse : AlipayResponse { /// <summary> /// 成功时返回的业...
25.424242
73
0.573302
[ "MIT" ]
AkonCoder/Payment
src/Essensoft.AspNetCore.Payment.Alipay/Response/AlipayFlashsalesStockSyncUpdateResponse.cs
899
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Thrifty.Nifty.Core { public enum ThriftTransportType { Unframed, Framed, Http, Header } }
15.1875
35
0.650206
[ "Apache-2.0" ]
DavidAlphaFox/Thrifty
src/Thrifty.Nifty/Core/ThriftTransportType.cs
245
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using ApiPeek.Core.Extensions; namespace ApiPeek.Core.Model; [DataContract] public class ApiMethod : ApiBaseItem, IDetail { [DataMember] public bool IsStatic { get; set; } [DataMember]...
27.540984
122
0.629762
[ "MIT" ]
martinsuchan/ApiPeek
Source/ApiPeek.Core/Model/ApiMethod.cs
1,680
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MonsterAtttackAction : MonoBehaviour { public System.Action<GameObject,float> monsterAttackAction; public float dmg; public void FenceAttackAction() { this.monsterAttackAction(this.gameObject.transform....
23.5
85
0.716312
[ "MIT" ]
VontineDev/ProjectA
Dev/AlphaTest/Assets/Scripts/Effect/MonsterAtttackAction.cs
425
C#
using MediatR; using AdventureWorks.Application.DataEngine; using AdventureWorks.Application.DataEngine.DataEngine; using AdventureWorks.Application.DataEngine.Dbo.DatabaseLog.Queries.QueryManager; using AdventureWorks.Application.Interfaces; namespace AdventureWorks.Application.DataEngine.Dbo.DatabaseLog.Queries.GetD...
38.928571
123
0.833028
[ "Unlicense" ]
CodeSwifterGit/adventure-works
src/AdventureWorks.Application/DataEngine/Dbo/DatabaseLog/Queries/GetDatabaseLogs/GetDatabaseLogsListQuery.cs
545
C#
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
52.484288
194
0.586892
[ "Apache-2.0" ]
wonderfly/google-api-dotnet-client
Src/Generated/Google.Apis.GKEHub.v1alpha/Google.Apis.GKEHub.v1alpha.cs
272,254
C#
using BlazorDemo.Data; using BlazorDemo.Options; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace BlazorDemo { public class Startup { ...
33.689655
144
0.599284
[ "MIT" ]
VitorRigoni/BlazorDemo
Startup.cs
1,954
C#
// Copyright © 2017 onwards, Andrew Whewell // All rights reserved. // // Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright notice, th...
59.840637
750
0.618908
[ "BSD-3-Clause" ]
AlexAX135/vrs
VirtualRadar.Database/BaseStation/ParameterBuilder.cs
15,023
C#
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace Abacuza.Services.Identity.Controllers.Account { public class RedirectViewModel { public string RedirectUrl { get; s...
27.75
107
0.726727
[ "Apache-2.0" ]
daxnet/abacuza
src/services/auth/Abacuza.Services.Identity/Controllers/Account/RedirectViewModel.cs
333
C#
namespace AAWebSmartHouse.Data.Services { using System; using System.Data.Entity; using System.Linq; using AAWebSmartHouse.Common; using AAWebSmartHouse.Data.Models; using AAWebSmartHouse.Data.Services.Contracts; public class SensorValuesService : ISensorValuesService { privat...
49.666667
254
0.622395
[ "MIT" ]
Obelixx/AASmartHouse
AAWebSmartHouse/Data/Services/AAWebSmartHouse.Data.Services/SensorValuesService.cs
5,664
C#
namespace BGTATKO.Web.ViewModels.Users { using System; using Data.Models; using Services.Mapping; public class PostFromUserViewModel : IMapFrom<Post> { public int Id { get; set; } public string Title { get; set; } public string Content { get; set; } public string...
24.642857
84
0.607246
[ "MIT" ]
kriss98/BG-TATKO
src/Web/BGTATKO.Web.ViewModels/Users/PostFromUserViewModel.cs
692
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...
48.458787
363
0.610161
[ "MIT" ]
DaeunYim/azure-powershell
src/HDInsight/HDInsight/ManagementCommands/NewAzureHDInsightClusterCommand.cs
30,519
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; namespace NavigationProperties.Areas.Iden...
28.615385
92
0.721774
[ "MIT" ]
lhendinha/NavigationProperties---ASP.NET-Core-2.1.300
NavigationProperties/Areas/Identity/Pages/Error.cshtml.cs
746
C#
using BenchmarkDotNet.Attributes; using EnumStringValues; namespace StringyEnums.Benchmarks { [MemoryDiagnoser] [Config(typeof(NoOptimizationConfig))] public class EnumStringValuesExtensionBenchmark { [GlobalSetup] public void Setup() { EnumStringValues.EnumExtensions.Behaviour.UseCaching = true; Ben...
21.25
63
0.754622
[ "MIT" ]
TwentyFourMinutes/StringyEnums
src/StringyEnums/StringyEnums.Benchmarks/Benchmarks/EnumStringValuesExtensionBenchmark.cs
597
C#
// // Auto-generated from generator.cs, do not edit // // We keep references to objects, so warning 414 is expected #pragma warning disable 414 using System; using System.Drawing; using System.Diagnostics; using System.ComponentModel; using System.Threading.Tasks; using System.Runtime.InteropServices; using System.Di...
33.277778
192
0.766903
[ "MIT" ]
CleverTap/clevertap-xamarin
clevertap-component/src/ios/CleverTap.Bindings.iOS/obj/Debug/iOS/CleverTapSDK/CTInAppResources.g.cs
4,792
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System; using System.Diagnostics.CodeAnalysis; using System.Linq.Expressions; using System.Reflection; #pragma warning disable 659 // overrides AddToHashCodeCombiner inste...
38.666667
151
0.67069
[ "MIT" ]
eznew-net/EZNEW.Develop
EZNEW/Expressions/BinaryExpressionFingerprint.cs
1,742
C#
// Copyright 2017 the original author or authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
50.105263
195
0.741597
[ "Apache-2.0" ]
FrancisChung/steeltoe
src/Management/test/EndpointCore.Test/Health/HealthEndpointTest.cs
1,906
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System; using System.Net; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Microsoft.AspNet.Facebook.Models; using Microsoft.AspNet.Facebook.Realtime;...
43.787879
175
0.655709
[ "Apache-2.0" ]
Darth-Fx/AspNetMvcStack
test/Microsoft.AspNet.Facebook.Test/FacebookRealtimeControllerTest.cs
5,782
C#
using System; using System.Collections.Generic; using System.Linq; namespace CAESAR.Chess.Helpers { /// <summary> /// Extensions for <seealso cref="IEnumerable{T}" /> /// </summary> public static class LinqExtensions { /// <summary> /// A random number generator ///...
47.404762
132
0.585635
[ "MIT" ]
artfuldev/CAESAR
src/CAESAR.Chess/Helpers/LinqExtensions.cs
3,984
C#
using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Reflection.Emit; using HarmonyLib; using Overload; using UnityEngine; namespace GameMod { // disable receiving server position on observer mode [HarmonyPatch(typeof(Client), "ReconcileServerPlayerState")] class MPOb...
40.324513
197
0.562187
[ "MIT" ]
arbruijn/olmod-fork
GameMod/MPObserver.cs
28,955
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Linq; using Microsoft.Extensions.JsonParser.Sources; namespace Microsoft.DotNet.ProjectModel.Files { public class PackIncludeE...
29.891304
101
0.578909
[ "MIT" ]
BrennanConroy/cli
src/Microsoft.DotNet.ProjectModel/Files/PackIncludeEntry.cs
1,377
C#
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2022 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. 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 ...
37.671233
330
0.644
[ "Apache-2.0" ]
AaronWu666/WeiXinMPSDK
src/Senparc.Weixin.TenPay/Senparc.Weixin.TenPayV3/Apis/Marketing/Entities/ReturnJson/DeactivateBusifavorCouponReturnJson.cs
3,286
C#
/******************************************************************************** * WrapperTests.cs * * * * Author: Denes Solti ...
43.651235
168
0.538429
[ "MIT" ]
Sholtee/sql
TEST/SqlUtils.Tests/Wrapper/WrapperTests.cs
28,288
C#
using System.Threading; using NUnit.Framework; namespace Fibrous.Tests { [TestFixture] public class EventBusTests { [Test] public void EventBusInt() { using Fiber fiber = new Fiber(); using AutoResetEvent reset = new AutoResetEvent(false); EventB...
30.941176
74
0.565589
[ "MIT" ]
chrisa23/Fibrous
Tests/Fibrous.Tests/EventBusTEsts.cs
1,054
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...
33.308943
133
0.584208
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/PinpointSMSVoiceV2/Generated/Model/RequestPhoneNumberRequest.cs
8,194
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================ ** ** ** ** Purpose: The contract class allows for expressing preconditions, ** postconditions, and object invariants a...
47.811966
252
0.651025
[ "MIT" ]
2m0nd/runtime
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Contracts/Contracts.cs
33,564
C#
using System; using System.Windows; using System.Windows.Controls; namespace WpfHint2.UIBuilding { internal class ParamPanel : Panel { public static bool GetNameColumn(DependencyObject obj) { return (bool)obj.GetValue(NameColumnProperty); } public static void SetNameColumn(DependencyObject o...
23.918033
85
0.637423
[ "BSD-3-Clause" ]
CyberFlameGO/Nitra
Ide/WpfHint/UIBuilding/ParamPanel.cs
2,918
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("Lu...
38.459459
84
0.745608
[ "Apache-2.0" ]
BlueCurve-Team/lucenenet
src/Lucene.Net.Tests.Grouping/Properties/AssemblyInfo.cs
1,426
C#
#region Usings using System; using FluentAssertions; using Xunit; #endregion namespace Extend.Testing { public partial class Int32ExTest { [Fact] public void ToDaysTest() { var value = RandomValueEx.GetRandomInt32( 1, 100 ); var expected = Ti...
24.282609
71
0.523724
[ "MIT" ]
DaveSenn/Extend
.Src/Extend.Testing/System.Int32/System.TimeSpan/Int32.ToDays.Test.cs
1,074
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...
38.513514
85
0.723509
[ "Apache-2.0" ]
CHUNHUNGFAN/Nantou_iBus
CommandPage/App1/App1.iOS/Properties/AssemblyInfo.cs
1,428
C#
using System.Collections.ObjectModel; namespace CommandsCode { /// <summary> /// Scouts collection class. /// </summary> public class Scouts : ObservableCollection<Scout> { } }
19.5
57
0.671795
[ "MIT" ]
glennpoorman/wpf-samples
34-CommandsCode/Scouts.cs
197
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.Globalization; using System.Linq; using System.Text; namespace NuGet.Frameworks { /// ...
33.406977
179
0.536025
[ "Apache-2.0" ]
KirillOsenkov/NuGet.Client
src/NuGet.Core/NuGet.Frameworks/NuGetFramework.cs
17,238
C#
using System; using System.Collections.Generic; using Framework; using UnityEngine; namespace SuperSport { [RequireComponent(typeof(Rigidbody))] public class RaceNPC : RaceCharacter { Collider _collider; Rigidbody _rigidbody; Transform _transform; Renderer _renderer; ...
26.188034
95
0.506201
[ "MIT" ]
r-kajiya/SuperSoprt-Race
Assets/Script/Race/RaceNPC.cs
3,078
C#
using eilang.Compiling; using eilang.Interfaces; using eilang.Tokens; namespace eilang.Ast { public class AstAssignmentReference : AstExpression { public AstExpression Reference { get; } public AstAssignmentReference(AstExpression reference, Position position) : base(position) { ...
24.8
98
0.624194
[ "MIT" ]
Szune/eilang
eilang/Ast/AstAssignmentReference.cs
622
C#
namespace HiddenLoaderWinForms.User { public struct UserPcSpecificationStruct { public string Os; public string CpuName; public string RamCount; public string GpuName; } }
21.5
43
0.660465
[ "MIT" ]
Tentrun/Silent-Loader
User/UserPcSpecificationStruct.cs
215
C#
using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; namespace Common.Message { /// <summary> /// Class with static methods to convert message objects from/to XML string/message objects from given namespace /// </summary> public class XmlMessag...
32.769231
117
0.532864
[ "BSD-3-Clause" ]
jasinskib/Software_Engineering_2_ProjectGame
src/Common/Message/XmlMessageConverter.cs
1,706
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Text.Encodings.Web; using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; usi...
40.096774
134
0.601167
[ "MIT" ]
rmcfar1999/SiteManager
Code/src/WebUI/Areas/Identity/Pages/Account/Register.cshtml.cs
4,974
C#
using AccountAPI.Models; using Microsoft.AspNetCore.Http; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace AccountAPI.Services { public interface IAccountService { Task<ServiceResponse<int>> Register(User user, string password); Task<Se...
37.333333
76
0.732143
[ "MIT" ]
nikoladragas/public-transport
AccountAPI/Services/IAccountService.cs
898
C#
namespace RustGen { public class Opcode { public string Code { get; set; } public short Num { get; set; } public string AddressingMode { get; set; } public string ToHex() => Num.ToString("X2"); public string ToNamedCode() => $"{Code.Substring(0, 1).ToUpperInvariant()...
32.9
125
0.477964
[ "BSD-3-Clause" ]
gdoct/rustvm
generator/RustGen/Opcode.cs
1,318
C#
//------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.12 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //----...
25.7
80
0.496109
[ "Apache-2.0" ]
jugstalt/gview5
gView.DataSources.OSGeo/OSGeo/v3/gdal/ExtendedDataTypeClass.cs
514
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // 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: Asse...
51.215686
260
0.771057
[ "Apache-2.0" ]
aws/aws-sdk-net
sdk/src/Services/SimpleSystemsManagement/Properties/AssemblyInfo.cs
2,612
C#
/**** * Created by: Akram Taghavi-Burris * Date Created: March 16, 2022 * * Last Edited by: NA * Last Edited: March 16, 2022 * * Description: Enemy controler ****/ /** Using Namespaces **/ using System.Collections; using System.Collections.Generic; using UnityEngine; [SelectionBase] //forces selection of p...
22.94186
118
0.598074
[ "MIT" ]
SagesGrotto/SpaceSHUMP
SpaceSHMUP-Unity/Assets/Scripts/Enemy.cs
1,973
C#