content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ToolsUtilities; namespace Gum.DataTypes { public enum ElementType { Screen, Component, Standard } public enum LinkType { ReferenceOriginal, CopyLocally } pu...
33.732919
204
0.554778
[ "MIT" ]
J-Swift/Gum
SkiaGum/DataTypes/ElementReference.cs
5,433
C#
using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEngine; using ScriptFinder.Utilities; using System; namespace ScriptFinder { public sealed class Editor : EditorWindow { private sealed class Data { public struct AssetNames { ...
43.726727
138
0.554976
[ "MIT" ]
JoebRogers/ScriptFinder
ScriptFinder/Assets/ScriptFinder/Editor/Editor.cs
14,564
C#
using Xunit; using com.chronoxor.enums; using com.chronoxor.enums.FBE; namespace Tests { public class TestEnums { [Fact(DisplayName = "Serialization: enums")] public void SerializationEnums() { var enums1 = Enums.Default; // Serialize enums to the FBE stream ...
54.191693
1,235
0.635479
[ "MIT" ]
chronoxor/Fast-Binary-Encoding
projects/CSharp/Tests/Enums.cs
16,964
C#
using System.Collections.Concurrent; using AElf.CSharp.Core.Extension; using AElf.Kernel; using Google.Protobuf.WellKnownTypes; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; using Volo.Abp.DependencyInjection; namespace AElf.OS.Network.Infrastr...
34.376812
125
0.66231
[ "MIT" ]
ezaruba/AElf
src/AElf.OS.Core/Network/Infrastructure/IPeerInvalidTransactionProvider.cs
2,372
C#
/* http://www.cgsoso.com/forum-211-1.html CG搜搜 Unity3d 每日Unity3d插件免费更新 更有VIP资源! CGSOSO 主打游戏开发,影视设计等CG资源素材。 插件如若商用,请务必官网购买! daily assets update for try. U should buy the asset from home store if u use it in your project! */ using UnityEngine; using System.Collections; public class LoadLevelWithDelay : MonoBehavio...
21.146667
107
0.701765
[ "Apache-2.0" ]
154544017/BorderEscape
Assets/Scripts/KinectScripts/MultiScene/LoadLevelWithDelay.cs
1,680
C#
// Copyright 2009-2012 Matvei Stefarov <me@matvei.org> using System; using System.Collections.Generic; using System.Linq; using GemsCraft.fSystem; using GemsCraft.Configuration; using GemsCraft.Players; using GemsCraft.Utils; using JetBrains.Annotations; namespace GemsCraft.Commands { /// <summary> Delegate for...
37.322751
124
0.56025
[ "MIT" ]
apotter96/GemsCraft-Classic
GemsCraft/Commands/CommandDescriptor.cs
7,056
C#
using System; using Knet.Kudu.Client.Internal; namespace Knet.Kudu.Client.Protocol; public sealed class KuduMessage { private ArrayPoolBuffer<byte>? _messageBuffer; private int _messageProtobufLength; private SidecarOffset[]? _sidecarOffsets; internal void Init( ArrayPoolBuffer<byte> messageB...
24.938776
84
0.663666
[ "Apache-2.0" ]
xqrzd/kudu
src/Knet.Kudu.Client/Protocol/KuduMessage.cs
1,222
C#
using BotDetect.Web.Mvc; using GISCore.Business.Abstract; using GISCore.Infrastructure.Utils; using GISModel.DTO.Conta; using GISModel.DTO.Shared; using GISWeb.Infraestrutura.Filters; using GISWeb.Infraestrutura.Provider.Abstract; using Ninject; using System; using System.Configuration; using System.Linq; using System...
35.33452
200
0.510021
[ "Apache-2.0" ]
tonihenriques/GestaoSST
SESTEC/GISWeb/Controllers/AccountController.cs
9,948
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Globalization; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager;...
52.208633
192
0.688163
[ "MIT" ]
AikoBB/azure-sdk-for-net
sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerSecurityAlertPolicyResource.cs
7,257
C#
using System; using Framework.Persistent; using Framework.SecuritySystem; namespace Framework.DomainDriven.BLL.Security { public struct FilterItemIdentity : IDefaultIdentityObject, IEquatable<FilterItemIdentity> { public FilterItemIdentity(FilterItemType entityType, string id) :...
26.565657
110
0.590114
[ "MIT" ]
Luxoft/BSSFramework
src/_DomainDriven/Framework.DomainDriven.Core/FilterItemIdentity.cs
2,534
C#
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // Task.cs // // <OWNER>hyildiz</OWNER> // // A schedulable unit of work. // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=...
48.725322
194
0.597658
[ "MIT" ]
Abdalla-rabie/referencesource
Microsoft.Bcl/System.Threading.Tasks.v1.5/System/Threading/Tasks/Task.cs
215,709
C#
using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Orleans.Providers; using Orleans.Runtime; using Orleans.Transactions.Abstractions; using Newtonsoft.Json; using Orleans.Transactions.Abstractions.Extensions; using Orleans.Tra...
43.00692
196
0.609462
[ "MIT" ]
brhinescot/orleans
src/Orleans.Transactions/State/TransactionalState.cs
12,431
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.SpaServices.ReactDevelopmentServer; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using InsuranceCalc.Da...
32.657534
145
0.590185
[ "MIT" ]
jsaparco-ueno/jsu-contents-limit-insurance-calculator
Startup.cs
2,384
C#
using System.Text.Json; using Enclave.Sdk.Api.Clients; using Enclave.Sdk.Api.Data; using Enclave.Sdk.Api.Data.Account; using Enclave.Sdk.Api.Data.Organisations; using Enclave.Sdk.Api.Data.PatchModel; using FluentAssertions; using NUnit.Framework; using WireMock.FluentAssertions; using WireMock.RequestBuilders; using W...
30.316151
105
0.591589
[ "MIT" ]
enclave-networks/Enclave.Sdk.Api
tests/Enclave.Sdk.Api.Tests/Clients/OrganisationClientTests.cs
8,824
C#
using System; using System.Linq; namespace _04._Character_Multiplier { class Program { static void Main(string[] args) { string[] input = Console.ReadLine().Split().ToArray(); string firstText = input[0]; string secondText = input[1]; int result...
27.153846
102
0.542965
[ "MIT" ]
DanielBankov/SoftUni
Programming Fundamentals/Strings and Text Processing - Exercise/04. Character Multiplier/Program.cs
1,061
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. /****************************************************************************** * This file is auto-generated from ...
42.403013
188
0.587449
[ "MIT" ]
Davilink/runtime
src/coreclr/tests/src/JIT/HardwareIntrinsics/Arm/AdvSimd/CompareEqual.Vector64.Single.cs
22,516
C#
namespace Interapp.Web.Infrastructure.Mapping { using AutoMapper; public interface IHaveCustomMappings { void CreateMappings(IMapperConfiguration configuration); } }
19.2
64
0.734375
[ "MIT" ]
shunobaka/Interapp
Source/Web/Interapp.Web.Infrastructure/Mapping/IHaveCustomMappings.cs
194
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _06.Filter_Base { class Program { static void Main() { var input = Console.ReadLine(); var listOfEmployees = new Dictionary<string, List<string>...
34.517241
106
0.472777
[ "MIT" ]
pirocorp/CSharp-Fundamentals
09. Dictionaries - Exercises/06. Filter Base/Filter Base.cs
4,006
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace CrewChiefV3 { public partial class BooleanPropertyControl : UserControl { public String propertyId; ...
29.46
124
0.600136
[ "MIT" ]
mrbelowski/r3e_crewchief_v3
CrewChiefV3/UserInterface/BooleanPropertyControl.cs
1,475
C#
using CovidSafe.Entities.Validation; using CovidSafe.Entities.Validation.Resources; namespace CovidSafe.Entities.Protos { /// <summary> /// <see cref="Region"/> partial from generated Protobuf class /// </summary> public partial class Region : global::ProtoBuf.IExtensible, IValidatable { /...
33.608696
108
0.586028
[ "MIT" ]
broknfutr/Backend
CovidSafe/CovidSafe.Entities/Protos/Region.cs
1,548
C#
using DCL.Configuration; using NSubstitute; using NUnit.Framework; using UnityEngine.EventSystems; namespace Tests.BuildModeHUDControllers { public class TopActionsButtonsControllerShould { private TopActionsButtonsController topActionsButtonsController; [SetUp] public void SetUp() ...
28.7875
113
0.561007
[ "Apache-2.0" ]
0xBlockchainx0/unity-renderer
unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/BuildModeHUD/Tests/TopActionsButtonsControllerShould.cs
6,909
C#
using System.Data; using Shuttle.Core.Data; namespace Shuttle.Recall.Sql { public class ProjectionPositionColumns { public static readonly MappedColumn<string> Name = new MappedColumn<string>("Name", DbType.AnsiString, 65); public static readonly MappedColumn<long> SequenceNumber = new MappedColumn<long>("Seque...
31.909091
116
0.783476
[ "BSD-3-Clause" ]
Shuttle/Shuttle.Recall.Sql
Shuttle.Recall.Sql/DataAccess/ProjectionPositionColumns.cs
353
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using Leeroy.Json; using Logos.Git; using Logos.Git.GitHub; using Logos.Utility.Logging; namespace Leeroy { public sealed class Overseer { public Overseer(CancellationToken tok...
31.744444
197
0.721036
[ "MIT" ]
LogosBible/Leeroy
src/Leeroy/Overseer.cs
5,716
C#
namespace ApiaryDiary.Controllers { using ApiaryDiary.Controllers.Models.Locations; using ApiaryDiary.Services; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; public class LocationsController : Controller { private readonly ILoc...
29.578947
101
0.58363
[ "MIT" ]
DeniPanov/ASP.NET-CORE-Web-App
ASP.NET-CORE-Web-App/ApiaryDiary.Controllers/LocationsController.cs
3,374
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...
36.141176
147
0.680664
[ "Apache-2.0" ]
EbstaLimited/aws-sdk-net
sdk/src/Services/SimpleSystemsManagement/Generated/Model/Internal/MarshallTransformations/InvalidActivationIdExceptionUnmarshaller.cs
3,072
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "li...
39.619565
162
0.65679
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/AppRegistry/Generated/Model/Internal/MarshallTransformations/AssociateAttributeGroupRequestMarshaller.cs
3,645
C#
using System.Runtime.Serialization; using System.Text; using Newtonsoft.Json; namespace BigCommerceSharp.Model { /// <summary> /// /// </summary> [DataContract] public class Meta1 { /// <summary> /// Gets or Sets Meta /// </summary> [DataMember(Name="meta", EmitDefaultValue=false)] [Jso...
24.761905
68
0.620192
[ "MIT" ]
PrimePenguin/BigCommerceSharp
BigCommerceSharp/Model/Meta1.cs
1,040
C#
using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace Anabi.DataAccess.Ef.Migrations { public partial class InitialCreate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.C...
49.633822
122
0.518578
[ "MPL-2.0" ]
bioan/anabi-gestiune-api
Anabi.DataAccess.Ef/Migrations/20190417131136_InitialCreate.cs
37,277
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 02.05.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
27.708333
135
0.532632
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Query/Operators/SET_001/LessThan/Complete/NullableInt64/SByte/TestSet_504__param__03__NV.cs
3,327
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...
37.551402
168
0.648581
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/Snowball/Generated/Model/Internal/MarshallTransformations/DescribeJobResponseUnmarshaller.cs
4,018
C#
//Licensed to the Apache Software Foundation(ASF) under one //or more contributor license agreements.See the NOTICE file //distributed with this work for additional information //regarding copyright ownership.The ASF licenses this file //to you under the Apache License, Version 2.0 (the //"License"); you may not use t...
46.407895
144
0.620783
[ "Apache-2.0" ]
mcleo-d/SFE-Minuet-DesktopClient
minuet/Paragon.Runtime/Kernel/Plugins/ParagonAppWindowPlugin.cs
7,056
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; using Microsoft.Phone.Tasks; using System.Collections.ObjectModel; namespace TrivMonke...
20.259259
59
0.687386
[ "MIT" ]
chuvidi2003/TrivMonkey
trivmonkey/CreditsPage.xaml.cs
549
C#
using UnityEngine; public class MenuController : MonoBehaviour { public LevelLoader levelLoader; public Canvas creditsPanel; public Canvas controlsPanel; private void OnDestroy() { AkSoundEngine.PostEvent("MainMenu_Stop", gameObject); } private void Start() { AkSound...
23.31746
62
0.639891
[ "MIT" ]
litelawliet/BrackeysJam2021
BrackeysJam2021/Assets/Scripts/Menus/MenuController.cs
1,471
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.AwsN...
39.428571
138
0.607609
[ "Apache-2.0" ]
AaronFriel/pulumi-aws-native
sdk/dotnet/MediaConnect/FlowVpcInterface.cs
5,520
C#
namespace NEFBDAACommons.Shared.Models { public enum DataExportTypeEnum { CSV, EXCEL, PDF } }
14.375
39
0.643478
[ "MIT" ]
damianfraszczak/nefbdaa
src/NEFBDAACommons/Shared/Models/DataExportTypeEnum.cs
117
C#
using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace NAudio.CoreAudioApi.Interfaces { [Guid("A95664D2-9614-4F35-A746-DE8DB63617E6"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] interface IMMDeviceEnumerator { int EnumAu...
32
90
0.725
[ "MIT" ]
skor98/DtWPF
speechKit/NAudio-master/NAudio/CoreAudioApi/Interfaces/IMMDeviceEnumerator.cs
802
C#
/* * ORY Oathkeeper * * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. * * The version of the OpenAPI document: v0.0.0 * Contact: hi@ory.am * Generated by: https://github.com/openapitools/op...
27.291667
172
0.572214
[ "Apache-2.0" ]
UkonnRa/sdk
clients/oathkeeper/dotnet/src/Ory.Oathkeeper.Client.Test/Model/OathkeeperSwaggerRuleTests.cs
3,275
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace QCloud.CosApi.Common { public static class Extension { public static long ToUnixTime(this DateTime nowTime) { DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTim...
27.941176
115
0.686316
[ "MIT" ]
Tsingbo-Kooboo/Kooboo.CMS.Content.Persistence
src/Kooboo.CMS.Content.Persistence.QcloudCOS/sdk/Common/Extension.cs
477
C#
using System; using System.Collections.Generic; using System.Text; namespace AppStoreConnect.Models.Responses.Common { public class NoContentResponse : ApplicationResponse { } }
17.454545
56
0.765625
[ "MIT" ]
dersia/AppStoreConnect
src/AppStoreConnect/Models/Responses/Common/NoContentResponse.cs
194
C#
using System; namespace Payconiq { public class Hypermedia { public Uri Href { get; set; } } }
12.777778
37
0.591304
[ "MIT" ]
fvanrysselberghe/payconiq-core-lib
src/Datamodel/Hypermedia.cs
115
C#
using System.Linq; using System.Threading.Tasks; using Xunit; namespace Octokit.Tests.Integration.Clients { public class UserEmailsClientTests { private readonly IUserEmailsClient _emailClient; public UserEmailsClientTests() { var github = Helper.GetAuthenticatedClient(); ...
28.171875
87
0.595119
[ "MIT" ]
ArsenShnurkov/octokit.net
Octokit.Tests.Integration/Clients/UserEmailsClientTests.cs
1,805
C#
using System; using Microsoft.WindowsAzure.MobileServices; using MicrosoftHouse.Abstractions; using Xamarin.Forms; using System.Threading.Tasks; using System.Collections.Generic; using Newtonsoft.Json.Linq; using System.Diagnostics; using Microsoft.WindowsAzure.MobileServices.SQLiteStore; using MicrosoftHouse.Models; ...
34.91453
121
0.630967
[ "MIT" ]
Menne/Microsoft-House
App/MicrosoftHouse/MicrosoftHouse/Services/AzureCloudService.cs
8,172
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...
26.485714
88
0.623517
[ "ECL-2.0", "Apache-2.0" ]
pulumi/pulumi-cloudflare
sdk/dotnet/Inputs/AccessGroupExcludeOktaArgs.cs
927
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
30.396552
83
0.628474
[ "Apache-2.0" ]
Darkfaker/tencentcloud-sdk-dotnet
TencentCloud/Cdb/V20170320/Models/DescribeInstanceParamRecordsResponse.cs
1,875
C#
#region License /* ************************************************************************************** * Copyright (c) Librame Pong All rights reserved. * * https://github.com/librame * * You must not remove this notice, or any other, from this software. * **************************************************...
25.111888
90
0.556391
[ "MIT" ]
gitter-badger/extensions-tick
src/LibrameTick.Extensions.Drawing.SkiaSharp/BitmapList.cs
3,951
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 Cake.Common.Tests.Fixtures.Tools.DotNet.Format; using Cake.Common.Tools.DotNet.Format; using Cake.Testing; us...
36.111111
208
0.513303
[ "Apache-2.0" ]
AnimalStudioOfficial/My-Cake
src/Cake.Common.Tests/Unit/Tools/DotNet/Format/DotNetFormatTests.cs
5,527
C#
using System; using System.Collections.Generic; using System.Text; namespace NASB_Parser.FloatSources { public class FSFunc : FloatSource { public FuncWay Way { get; set; } public FloatSource ContainerA { get; set; } public FloatSource ContainerB { get; set; } public FloatSourc...
22.029412
66
0.447931
[ "MIT" ]
megalon/NASB_Parser
NASB_Parser/FloatSources/FSFunc.cs
1,500
C#
using System; namespace Xavalon.XamlStyler.Package { internal static class Guids { public const string XamlStylerPackageGuidString = "a224be3c-88d1-4a57-9804-181dbef68021"; public const string CommandSetGuidString = "83fc41d5-eacb-4fa8-aaa3-9a9bdd5f6407"; public const string UIContext...
36.384615
98
0.742072
[ "Apache-2.0" ]
MatFillion/XamlStyler
XamlStyler.Package/Guids.cs
475
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; namespace Pipedrive { public class Activity : IDealUpdateEntity { public long Id { get; set; } [JsonProperty("company_id")] public long CompanyId { get; set; } [JsonProperty("user_id")] public long...
28.37594
70
0.575782
[ "MIT" ]
Panksy/pipedrive-dotnet
src/Pipedrive.net/Models/Response/Activity.cs
3,776
C#
namespace ClubHouse.Domain { public enum NotificationType : byte { Followed = 1, InviteToJoin = 9, SystemNotification = 14, EventSchedule = 16 } }
20.888889
41
0.590426
[ "MIT" ]
Zahragheaybi/ClubHouse-Windows
Domain/ClubHouse.Domain/Misc/NotificationType.cs
190
C#
// Visual Studio Shared Project // Copyright(c) Microsoft Corporation // 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 // ...
38.975124
161
0.618713
[ "Apache-2.0" ]
Bhaskers-Blu-Org2/PTVS
Common/Tests/Utilities/TestMainThreadService.cs
7,836
C#
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace x42.Feature.Database.Tables { [Table("profilereservation")] public class ProfileReservationData { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Key] pub...
33.545455
61
0.661247
[ "MIT" ]
psavva/XServer
xServer.D/Feature/Database/Tables/ProfileReservationData.cs
740
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OnlineBookStore.Entities.Concrete; namespace OnlineBookStore.Business.Abstract { public interface IOrderService { List<Order> GetOrdersIdByCustomerId(int customerId); int C...
30.5
77
0.754098
[ "MIT" ]
arxlan99/OnlineBookStore
OnlineBookStore.Business/Abstract/IOrderService.cs
673
C#
namespace Xilium.CefGlue { using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; using Xilium.CefGlue.Interop; /// <summary> /// Implement this interface to handle events when window rendering is disabled. /// The methods of thi...
38.540984
195
0.616333
[ "MIT" ]
00aj99/Chromely
src/CefGlue/Chromely.Unofficial.CefGlue.NetStd/Classes.Handlers/CefRenderHandler.cs
14,108
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. //----...
33.722581
131
0.701454
[ "Apache-2.0" ]
MrDice/usd-unity-sdk
src/USD.NET/generated/pxr/base/gf/GfVec3dVector.cs
10,454
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace ScoreApp.Controllers { public class HomeController : Controller { public IActionResult Index() { return View(); ...
21.083333
88
0.632411
[ "MIT" ]
the-s-a-m/ScoreApp
ScoreApp/Controllers/HomeController.cs
506
C#
// Sequência S /* Escreva um algoritmo para calcular e escrever o valor de S, sendo S dado pela fórmula: S = 1 + 1/2 + 1/3 + … + 1/100 - Entrada Não há nenhuma entrada neste problema. - Saída A saída contém um valor correspondente ao valor de S. O valor deve ser impresso com dois dígitos após o ponto decimal. */ ...
17.677419
77
0.59854
[ "MIT" ]
BarbaraM1/desafios-bootcamps-dio
C#/Programando em C#/SequenciaS.cs
559
C#
namespace JsExpressions { /// <summary> /// Represents a JQuery object result, which is like an array of elements with some /// helper methods to manipulate all of those elements. /// </summary> /// <remarks> /// As you find the need to call jQuery methods that aren't here yet, please add them /// to this type....
33
100
0.689394
[ "MIT" ]
Aviacode/JsExpressions
JsExpressions/JQueryJsExpression.cs
926
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using TestingMVC.Models; namespace TestingMVC.Controllers { public class HomeController : Controller { public IActionResult Index() { ...
21.921053
112
0.596639
[ "Apache-2.0" ]
ASCITSOL/asp.net
samples/aspnetcore/mvc/testing/TestingMVC/src/TestingMVC/Controllers/HomeController.cs
835
C#
using Avalonia; using System.Windows.Input; namespace FluentAvalonia.UI.Input { /// <summary> /// Provides a base class for defining the command behavior of an interactive UI element that /// performs an action when invoked (such as sending an email, deleting an item, or submitting a form). /// </summary> publi...
23.068182
104
0.71133
[ "MIT" ]
Apollo199999999/FluentAvalonia
FluentAvalonia/UI/Input/XamlUICommand.cs
1,017
C#
namespace HREngine.Bots { class Pen_CS2_196 : PenTemplate //razorfenhunter { // kampfschrei:/ ruft einen eber (1/1) herbei. public override int getPlayPenalty(Playfield p, Minion m, Minion target, int choice, bool isLethal) { return 0; } } }
26.545455
107
0.623288
[ "MIT" ]
chi-rei-den/Silverfish
penalties/Pen_CS2_196.cs
292
C#
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace System.ServiceModel.Description { using System.Collections.Generic; using System.ServiceModel.Channels; using ...
40.653226
193
0.591351
[ "MIT" ]
Abdalla-rabie/referencesource
System.ServiceModel/System/ServiceModel/Description/ServiceThrottlingBehavior.cs
5,041
C#
using Wirehome.Core.Exceptions; namespace Wirehome.Core.Components.Exceptions { public class ComponentNotFoundException : NotFoundException { public ComponentNotFoundException(string uid) : base($"Component with UID '{uid}' not found.") { } } }
22.692308
63
0.657627
[ "Apache-2.0" ]
SeppPenner/Wirehome.Core
Wirehome.Core/Components/Exceptions/ComponentNotFoundException.cs
297
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...
29.698413
85
0.528862
[ "MIT" ]
F-V-L/platform-client-sdk-dotnet
build/src/PureCloudPlatform.Client.V2/Model/PlanningGroupList.cs
3,742
C#
using System; using System.Collections.Generic; using Xunit; namespace SensorValidate.Tests { public class SensorValidatorTest { [Fact] public void ReportsErrorWhenSOCJumps() { Assert.False(SensorValidator.ValidateSOCreadings( new List<double>{0.0, 0.01, 0.5, 0.51} ...
26
73
0.540486
[ "MIT" ]
clean-code-craft-tcq-1/ms1snippet-cs-Abirami-Sivamani
SensorValidate.Tests/SensorValidatorTest.cs
1,482
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace BlockChain_Demo.Models { //Source: https://www.c-sharpcorner.com/article/blockchain-basics-building-a-blockchain-in-net-core/ //Source: https://docs...
38.695652
108
0.643258
[ "MIT" ]
coffeelabor/DS_Algo
BlockChain_Demo/Models/BlockChain/Block.cs
1,782
C#
namespace EnvironmentAssessment.Common.VimApi { public enum VirtualMachineMovePriority { lowPriority, highPriority, defaultPriority } }
14.5
45
0.8
[ "MIT" ]
octansIt/environmentassessment
EnvironmentAssessment.Wizard/Common/VimApi/V/VirtualMachineMovePriority.cs
145
C#
using System; namespace Mcma.Client.Azure.AzureAD { public class AzureADAuthContext { public string Scope { get; set; } public void ValidateScope() { if (string.IsNullOrWhiteSpace(Scope)) throw new Exception("Azure AD auth context must specify a scope."); ...
22.333333
83
0.597015
[ "Apache-2.0" ]
ebu/mcma-libraries-dotnet
Azure/Mcma.Client.Azure/AzureAD/AzureADAuthContext.cs
335
C#
// Copyright (c) All contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace PInvoke { /// <content> /// Contains the <see cref="MagicType"/> nested type. /// </content> public partial struct IMAGE_OPTIONAL_HEAD...
30.21875
101
0.544984
[ "MIT" ]
AArnott/PInvoke.exp
src/Windows.Core/IMAGE_OPTIONAL_HEADER+MagicType.cs
969
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.EntityFrameworkCore.Sqlite.Metadata.Internal; /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subjec...
63.885714
109
0.719365
[ "MIT" ]
Applesauce314/efcore
src/EFCore.Sqlite.Core/Metadata/Internal/SqliteAnnotationNames.cs
4,472
C#
namespace EasyCaching.ResponseCaching { using EasyCaching.Core.Internal; using Microsoft.AspNetCore.Builder; /// <summary> /// EasyCaching response caching extensions. /// </summary> public static class EasyCachingResponseCachingExtensions { /// <summary> /// Uses the easy ...
30.833333
101
0.652703
[ "MIT" ]
alexinea/EasyCaching
src/EasyCaching.ResponseCaching/EasyCachingResponseCachingExtensions.cs
742
C#
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License...
29.963483
129
0.548983
[ "Apache-2.0" ]
yunseong/incubator-reef
lang/cs/Org.Apache.REEF.Tang.Tests/Injection/TestNamedParameter.cs
10,314
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using CITITO.BusinessObjects; using CITITO.BusinessServices; using CITITO.BusinessControls; using System....
35.266667
215
0.58309
[ "MIT" ]
AselaWD/CITITO
CITITO-Solution/CITITO/CITITO/CITITO/frm_TaskCodeModify.cs
5,821
C#
// [[[[INFO> // Copyright 2015 Raging Bool (http://ragingbool.org, https://github.com/RagingBool) // // 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/licens...
29.987013
105
0.625379
[ "Apache-2.0" ]
RagingBool/RagingBool.Carcosa
projects/RagingBool.Carcosa.Core_cs/Carcosa.cs
4,620
C#
/* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to ...
42.17663
110
0.565427
[ "Apache-2.0" ]
Neuzilla/NStorage
NStorage.Test/POIFS/FileSystem/TestNPOIFSMiniStore.cs
15,523
C#
/* * Copyright (c) 2013-2015, SteamDB. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ using System; using System.IO; using SteamKit2; namespace SteamDatabaseBackend { static class Bootstrapper { private static bool Cle...
27.784946
118
0.547601
[ "BSD-3-Clause" ]
NotEnoughGames/SteamDatabaseBackend
Bootstrapper.cs
2,592
C#
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace Elevator { public class Waitzone : MonoBehaviour { public Cover[] GetCover(float radius, LayerMask coverMask) { List<Cover> result = new List<Cover>(); Collider[...
26
123
0.533156
[ "MIT" ]
Mfknudsen/Galaxy-War
Galaxy War/Assets/Scripts/Buildings/Elevator/Waitzone.cs
756
C#
 namespace CandidContributions.Core.Models.Configuration { public class SpreakerApiOptions { public bool Enabled { get; set; } public int ShowId { get; set; } } }
17.545455
55
0.642487
[ "MIT" ]
CandidContributions/CanConCloud
src/CandidContributions.Core/Models/Configuration/SpreakerApiOptions.cs
195
C#
/* * * (c) Copyright Ascensio System Limited 2010-2020 * * 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 la...
29.516129
81
0.718033
[ "Apache-2.0" ]
Ektai-Solution-Pty-Ltd/CommunityServer
web/studio/ASC.Web.Studio/Products/Projects/ProjectTeam.aspx.cs
915
C#
using Microsoft.Extensions.Logging; using Netension.Extensions.Correlation; using Netension.Extensions.Correlation.Defaults; using Netension.Request.Abstraction.Requests; using System.Net.Http.Headers; using System.Net.Http.Json; using System.Threading; using System.Threading.Tasks; namespace Netension.Request.Http.W...
40.35
145
0.740397
[ "MIT" ]
Netension/request
src/Netension.Request.Http/Wrappers/HttpCorrelationWrapper.cs
1,616
C#
public class MultiplyFloat : IAccumulator<float> { public float Accumulate(float left, float right) { return left * right; } } public class MultiplyInt : IAccumulator<int> { public int Accumulate(int left, int right) { return left * right; } }
17.8125
52
0.638596
[ "Apache-2.0" ]
PKxD/RPGStatSystem
Assets/Scripts/Accumulators/Multiply.cs
285
C#
namespace Adrichem.Serialization.Ameff.V31.Element { [System.Serializable()] [System.Xml.Serialization.XmlType(Namespace = "http://www.opengroup.org/xsd/archimate/3.0/")] public partial class ApplicationInteraction : RealElementType { } }
28.888889
97
0.726923
[ "MIT" ]
adrichem/AmeffSerializer
AmeffSerializer/V31/Element/ApplicationInteraction.cs
262
C#
#nullable enable using System; using System.Collections.Generic; using System.Text; namespace GtirbSharp { // If this becomes mutable, add a change hook to SerializedDictionaryOffsetDirectives public sealed class Directive { public string DirectiveString { get; private set; } pu...
32.166667
90
0.656736
[ "MIT" ]
SapientGuardian/GtirbSharp
GtirbSharp/Directive.cs
774
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.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; namespace System.Text.Json { /// <summary> /// Represents a specific JSO...
40.850136
136
0.550827
[ "MIT" ]
ahsonkhan/runtime
src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonElement.cs
59,968
C#
namespace Synergy.Recruitment.Data.Models { public class CandidateJobAdvertisment { public long Id { get; set; } public long CandidateId { get; set; } public long JobAdvertismentId { get; set; } public virtual Candidate Candidate { get; set; } public virtual JobAdver...
22.9375
69
0.645777
[ "MIT" ]
StanislavChankov/Recruitment
src/Synergy.Recruitment.Data.Models/CandidateJobAdvertisement.cs
369
C#
// Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. // You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. // Unless requ...
43.857143
136
0.730727
[ "Apache-2.0" ]
Giovanni-Russo-Boscoli/NakedObjectsFramework
Rest/NakedObjects.Rest.Test.Data/NullStringHasher.cs
923
C#
using System.Collections.Specialized; namespace Merchello.Core.Models { using System; using System.Reflection; using System.Runtime.Serialization; using Merchello.Core.Models.EntityBase; using Merchello.Core.Models.Interfaces; ///// TODO SR - This is just a scaffold for example. Do whatever...
27.851852
167
0.538564
[ "MIT" ]
ryanology/Merchello
src/Merchello.Core/Models/DigitalMedia.cs
3,010
C#
using System; using System.Linq; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin.Security; using LibrarySystem.Web.Models; namespace LibrarySystem.Web.Controllers { [Authorize] public class Manage...
36.33419
175
0.567072
[ "Unlicense" ]
danielpenchew/MVC-Test-Project
LibrarySystem/Web/LibrarySystem.Web/Controllers/ManageController.cs
14,136
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.Diagnostics; using System.Linq; using System.Reflection; using JetBrains.Annotations; using Microsoft.EntityFrameworkCore.Metadata.Builders...
47.557173
141
0.635454
[ "Apache-2.0" ]
Emill/efcore
src/EFCore/Metadata/Internal/InternalSkipNavigationBuilder.cs
22,875
C#
using System; using MikhailKhalizev.Processor.x86.BinToCSharp; namespace MikhailKhalizev.Max.Program { public partial class RawProgram { [MethodInfo("0x1007_6844-812796ce")] public void my_ctor_0x101b_38d0() { ii(0x1007_6844, 5); push(0x28); ...
67
114
0.411358
[ "Apache-2.0" ]
mikhail-khalizev/max
source/MikhailKhalizev.Max/source/Program/Auto/z-1007-6844-my_ctor_0x101b_38d0.cs
2,747
C#
// ----------------------------------------------------------------------- // <copyright file="AsyncLock.cs" company="OSharp开源团队"> // Copyright (c) 2014-2016 OSharp. All rights reserved. // </copyright> // <site>http://www.osharp.org</site> // <last-editor>郭明锋</last-editor> // <last-date>2016-03-31 20:...
29.92
121
0.469697
[ "Apache-2.0" ]
0xflotus/osharp
src/OSharp/Threading/Asyncs/AsyncLock.cs
2,310
C#
namespace StreamFlow.Configuration { public interface IQueueOptionsBuilder { IQueueOptionsBuilder Durable(bool durable = true); IQueueOptionsBuilder Exclusive(bool exclusive = true); IQueueOptionsBuilder AutoDelete(bool autoDelete = true); IQueueOptionsBuilder Argument(str...
37
88
0.709459
[ "Apache-2.0" ]
mentalist-dev/StreamFlow
sources/StreamFlow/Configuration/IQueueOptionsBuilder.cs
444
C#
using System.Text.Json.Serialization; namespace Swashbuckle.AspNetCore.SwaggerGen.Test { public class TypeWithPropertiesSetViaConstructor { public TypeWithPropertiesSetViaConstructor(int id, string desc) { Id = id; Description = desc; } public int Id { ...
21.789474
71
0.620773
[ "MIT" ]
AlexeiScherbakov/Swashbuckle.AspNetCore
test/Swashbuckle.AspNetCore.SwaggerGen.Test/Fixtures/TypeWithPropertiesSetViaConstructor.cs
416
C#
using HSDRawViewer.GUI; using mexTool.Core; using mexTool.GUI.Controls; using System; using System.Windows.Forms; namespace mexTool.GUI.Pages { public partial class StagePage : UserControl { private MXPropertyGrid _propertyGrid; private ItemEditor _itemEditor; private PlaylistEditor _p...
31.182857
159
0.510903
[ "MIT" ]
blooz/mexTool
mexTool/GUI/Pages/StagePage.cs
5,459
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace LoRaWan.NetworkServer.Test { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading...
49.044521
186
0.639411
[ "MIT" ]
LauraDamianTNA/iotedge-lorawan-starterkit
LoRaEngine/test/LoRaWanNetworkServer.Test/MessageProcessor_End2End_NoDep_ClassC_Tests.cs
28,644
C#
// <copyright file="CauchyTests.cs" company="Math.NET"> // Math.NET Numerics, part of the Math.NET Project // http://numerics.mathdotnet.com // http://github.com/mathnet/mathnet-numerics // http://mathnetnumerics.codeplex.com // // Copyright (c) 2009-2014 Math.NET // // Permission is hereby granted, free of charge, to...
35.072848
132
0.540691
[ "MIT" ]
MattHeffron/mathnet-numerics
src/UnitTests/DistributionTests/Continuous/CauchyTests.cs
10,595
C#
using ChampsRoom.Helpers; using ChampsRoom.Models; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.Owin.Security; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; us...
35.636519
185
0.516449
[ "MIT" ]
ellern/champs-room
src/Controllers/AccountController.cs
20,885
C#
using System.Collections.Generic; namespace Dblp.Domain.Interfaces.Entities { public class Conference { public Conference() { } public Conference(string conferenceTitle, string key) { ConferenceTitle = conferenceTitle; Key = key; ...
24.344828
65
0.555241
[ "MIT" ]
Nexusger/GetTheBibTeX2
Dblp.Domain.Interfaces/Entities/Conference.cs
708
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.Collections.Generic; using Microsoft.Spark.Interop.Ipc; namespace Microsoft.Spark.Sql { /// <summa...
45.041958
99
0.624903
[ "MIT" ]
Ibasa/spark
src/csharp/Microsoft.Spark/Sql/DataFrameStatFunctions.cs
6,441
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using System.Collections; using System.Collections.Generic; using System.Threading; using System.Threading....
37.415385
230
0.55037
[ "Apache-2.0" ]
bartholinie/reactive
Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Count.cs
4,866
C#