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
// Default URL for triggering event grid function in the local environment. // http://localhost:7071/runtime/webhooks/EventGrid?functionName={functionname} // Learn how to locally debug an Event Grid-triggered function: // https://aka.ms/AA30pjh // Use for local testing: // https://{ID}.ngrok.io/runtime/webhooks...
36.933884
130
0.546207
[ "MIT" ]
fredtvet/function-image-upload-resize-clone
ImageFunctions/Thumbnail.cs
4,469
C#
namespace E2ETests { public class RemoteDeploymentConfig { /// <summary> /// Name or IP address of the server to deploy to /// </summary> public string ServerName { get; set; } /// <summary> /// Account name for the credentials required to setup a powershell ses...
39.136364
114
0.619628
[ "Apache-2.0" ]
06b/AspNetCore
src/MusicStore/test/MusicStore.E2ETests/RemoteDeploymentConfig.cs
1,724
C#
using System.Collections.Generic; using System.IO; using CsvHelper; namespace IatConsole.Assembly.Components.PickPlaceBom { public static class CsvBomImporter { public static List<CsvBomComponent> ReadBomComponents(IatRunConfiguration config) { string filename = config.AssemblyData...
35.090909
118
0.645941
[ "MIT" ]
somnatic/iat
IatConsole/Assembly/Components/PickPlaceBom/CsvBomImporter.cs
1,160
C#
 namespace Introduction { partial class PAGE_7_GUESS_THE_WORD_GAME { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. ...
54.690202
167
0.597919
[ "MIT" ]
JOYSTON-LEWIS/DASHGLAM
PAGE_7_GUESS_THE_WORD_GAME.Designer.cs
37,957
C#
using System; using System.Buffers; using System.Diagnostics.CodeAnalysis; using Xunit; namespace DotNext.Buffers { using static IO.StreamSource; [ExcludeFromCodeCoverage] public sealed class SparseBufferWriterTests : Test { [Theory] [InlineData(false, SparseBufferGrowth.N...
36.244444
98
0.607603
[ "MIT" ]
human33/dotNext
src/DotNext.Tests/Buffers/SparseBufferWriterTests.cs
1,631
C#
Here we begin with a macro recursion. <?cs def:map_val(val) ?> <?cs var:val ?> <?cs call:map_val(val + 1) ?> <?cs /def ?> <?cs call:map_val(#0) ?> End of the macro recursion with problems. This line should not be displayed.
32.428571
76
0.665198
[ "BSD-2-Clause" ]
WillYee/clearsilver
cs/test_macro_recursion_failing.cs
227
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------...
32.756098
160
0.583023
[ "Apache-2.0" ]
RetroRabbit/CDS-Core
CDS.Core.Client.DataAccessLayer/XDB/CDSXDBModelCode/CDS_ORG_ORG_TRX_ShippingType.Designer.cs
1,343
C#
using Songhay.Extensions; using Songhay.Feeds.Models; using Songhay.Models; using System.IO; namespace Songhay.Feeds.Extensions { /// <summary> /// Extension of <see cref="FeedsMetadata"/> /// </summary> public static class FeedsMetadataExtensions { /// <summary> /// Converts <see ...
34.837838
143
0.637704
[ "MIT" ]
BryanWilhite/Songhay.Feeds
Songhay.Feeds/Extensions/FeedsMetadataExtensions.cs
1,291
C#
#pragma checksum "..\..\CompareView.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5CC69A5EF4FFA14A4E9AA91F9E87375CC3C298CC" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // C...
38.96
142
0.652207
[ "MIT" ]
Plankankul/SharpDevelop-w-Framework
src/AddIns/Analysis/Profiler/Frontend/Controls/obj/Debug/CompareView.g.cs
3,898
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; using UnityEditor; namespace Microsoft.MixedReality.Toolkit.Utilities.Editor { [CustomEditor( typeof(BaseObjectCollection), true )] ...
35.948718
98
0.656205
[ "MIT" ]
LocalJoost/MRTK2GrabDemo
Assets/MixedRealityToolkit.SDK/Inspectors/UX/Collections/BaseCollectionInspector.cs
1,404
C#
// --------------------------------------------------------------------------- // <copyright file="TDSMessageType.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // --------------------------------------------------------------------------- namespace TDSC...
23.217391
80
0.432584
[ "MIT" ]
Azure/SQL-Connectivity-Checker
TDSClient/TDSClient/TDS/Header/TDSMessageType.cs
1,604
C#
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; ...
33.771429
120
0.762267
[ "Apache-2.0" ]
luizfbicalho/Camunda.NET
camunda-bpm-platform-net/engine-cdi/src/main/java/org/camunda/bpm/engine/cdi/annotation/event/BusinessProcessDefinitionLiteral.cs
1,184
C#
 // IGameState.cs // Copyright (c) 2014+ by Michael Penner. All rights reserved. namespace TheBeginnersCave.Framework { /// <summary></summary> public interface IGameState : Eamon.Framework.IGameState { #region Properties /// <summary> /// Gets or sets a value indicating the Trollsfire sword'...
19.916667
79
0.646444
[ "MIT" ]
TheRealEamonCS/Eamon-CS
Adventures/TheBeginnersCave/Framework/IGameState.cs
480
C#
#region License // <copyright> // iGeospatial Geometries Package // // This is part of the Open Geospatial Library for .NET. // // Package Description: // This is a collection of C# classes that implement the fundamental // operations required to validate a given geo-spatial data set to // a known top...
31.702703
81
0.616368
[ "MIT" ]
IBAS0742/iGeospatial_change
Geometries/Noding/Noder.cs
2,346
C#
using Microsoft.DotNet.Cli.Utils; using Newtonsoft.Json.Linq; namespace Microsoft.DotNet.Tools.Run.LaunchSettings { internal interface ILaunchSettingsProvider { string CommandName { get; } LaunchSettingsApplyResult TryApplySettings(JObject document, JObject model, ref ICommand command); }...
23.142857
106
0.75
[ "MIT" ]
LordMike/cli
src/dotnet/commands/dotnet-run/LaunchSettings/ILaunchSettingsProvider.cs
326
C#
using NUnit.Framework; using PlaneGeometry; using System; using System.Linq; namespace Tests { /// <summary> /// Tests of figures /// </summary> public class FigureTests { [Test] public void TestCircle() { var instance = new Circle(0.51); ...
37.7625
111
0.528633
[ "MIT" ]
z0262/Plane-Geometry-Example
PlaneGeometry.Tests/FiguresTests.cs
3,021
C#
using System; using System.Collections; namespace GameServer.Model { public class UsersChecking { public static ArrayList users = new ArrayList(); public static bool isUserRegistered(string username) { Console.WriteLine("Username SIZE: " + users.ToArray().Length); ...
20.884615
74
0.506446
[ "MIT" ]
amado-developer/Networking-Project2_CardGame
GameServer/GameServer/Model/UsersChecking.cs
545
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
34.103896
124
0.661081
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/EC2/Generated/Model/DisableFastSnapshotRestoresResponse.cs
2,626
C#
namespace Rinjani { public interface IConfigValidator { void Validate(ConfigRoot config); } }
16.285714
41
0.657895
[ "MIT" ]
bitrinjani/rinjani
Rinjani/IConfigValidator.cs
116
C#
namespace SampleApp.Tests { using System; using System.IO; using System.Reflection; using NUnit.Framework; using TestStack.ConventionTests; using TestStack.ConventionTests.ConventionData; using TestStack.ConventionTests.Conventions; [TestFixture] public class SqlScriptTe...
28.62069
105
0.615663
[ "MIT" ]
TestStack/ConventionTests
Samples/SampleApp.Tests/SqlScriptTests.cs
804
C#
using MQTTnet.EventBus.Serializers; namespace MQTTnet.EventBus.ConfigurationApp { public class ChangeNodeStateConverter : IEventConverter<ChangeNodeState> { public ChangeNodeState Deserialize(byte[] body) { var data = TextConvert.ToUTF8String(body); var str...
32.961538
84
0.618436
[ "MIT" ]
Revalcon/MQTTnet.EventBus
samples/MQTTnet.EventBus.ConfigurationApp/NodeState/ChangeNodeStateConverter.cs
859
C#
using Microsoft.AspNetCore.Mvc; using Abp.AspNetCore.Mvc.Authorization; using Volo.PostgreSqlDemo.Controllers; namespace Volo.PostgreSqlDemo.Web.Controllers { [AbpMvcAuthorize] public class AboutController : PostgreSqlDemoControllerBase { public ActionResult Index() { return Vi...
21.3125
63
0.697947
[ "MIT" ]
OzBob/aspnetboilerplate-samples
PostgreSqlDemo/aspnet-core/src/Volo.PostgreSqlDemo.Web.Mvc/Controllers/AboutController.cs
343
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-generate...
44.5625
180
0.600281
[ "MIT" ]
PacktPublishing/The-Modern-CSharp-Challenge
Chapter08/DawkinsWeasel/Properties/Resources.Designer.cs
2,854
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading; using System.Threading.Tasks; using BTCPayServer.BIP78.Sender; using BTCPayServer.Client; using BTCPayServer.Client.Models; using BTCPayServer.Controllers; using BTCPayServer.Data; using ...
42.046642
184
0.600612
[ "MIT" ]
ibtcpay/btcpayserver
BTCPayServer.Tests/TestAccount.cs
22,537
C#
namespace AnyService.Models { public class AuditRecordModel { public string Id { get; set; } public string AuditRecordType { get; set; } public string EntityName { get; set; } public string EntityId { get; set; } public string OnUtc { get; set; } public string Us...
28.866667
51
0.586605
[ "MIT" ]
saturn72/AnyService
src/AnyService/Models/AuditRecordModel.cs
435
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AntChain.SDK.TRADE.Models { public class QueryWareslifeInstanceRequest : TeaModel { // OAuth模式下的授权token [NameInMap("auth_token")] [Validation(Requir...
22.166667
59
0.628571
[ "MIT" ]
alipay/antchain-openapi-prod-sdk
trade/csharp/core/Models/QueryWareslifeInstanceRequest.cs
685
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; namespace HoloToolkit.Unity { // The easiest way to use this script is to drop in the HeadsUpDirectionIndicator prefab // from the HoloTool...
42.936813
113
0.585066
[ "MIT" ]
Upd4ting/HololensTemplate
Assets/MixedRealityToolkit-Unity/Assets/HoloToolkit/Utilities/Scripts/HeadsUpDirectionIndicator.cs
15,629
C#
/*<FILE_LICENSE> * NFX (.NET Framework Extension) Unistack Library * Copyright 2003-2014 IT Adapter Inc / 2015 Aum Code 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 * * http://...
37.227273
145
0.444673
[ "Apache-2.0" ]
PavelTorgashov/nfx
Source/NFX/ELink.cs
13,104
C#
// Copyright (c) 2020 .NET Foundation and Contributors. All rights reserved. // 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 full license information. using System; using System.Col...
36.40824
179
0.554881
[ "MIT" ]
mfmadsen/ReactiveUI
src/ReactiveUI.Fody/CecilExtensions.cs
9,723
C#
using Creational.Prototype.Example1.Models.Prototypes; using System.Collections.Generic; namespace Creational.Prototype.Example1.Models.Entities { class ColorManager { private Dictionary<string, ColorPrototype> _colors = new Dictionary<string, ColorPrototype>(); // Indexer ...
22.666667
60
0.632353
[ "Apache-2.0" ]
TheChanec/Design-Patterns
Creational.Prototype/Example1/Models/Entities/ColorManager.cs
478
C#
using HADES.Models; using HADES.Util; using HADES.Util.Exceptions; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Localization; using Serilog; using System.Collections.Gen...
32.238095
97
0.537666
[ "MIT" ]
mikeyX101/HADES
HADES/Controllers/AccountController.cs
3,387
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Orleans.CodeGeneration; // 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...
40.045455
84
0.788876
[ "MIT" ]
ghuntley/orleans
src/OrleansManager/Properties/AssemblyInfo.cs
881
C#
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distribute...
31.464286
81
0.749149
[ "MIT" ]
AaqeelorShahid/Clone-of-AA-game---Unity
Assets/GoogleMobileAds/Common/IAdLoaderClient.cs
883
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.Reflection; using Microsoft.EntityFrameworkCore.Infrastructure; using Xunit; // ReSharper ...
40.613707
129
0.655519
[ "Apache-2.0" ]
benaadams/efcore
test/EFCore.Tests/Metadata/Internal/ClrPropertySetterFactoryTest.cs
13,037
C#
using System.Collections.Generic; using System.Xml.Serialization; using Niue.Alipay.Domain; namespace Niue.Alipay.Response { /// <summary> /// KoubeiCraftsmanDataProviderBatchqueryResponse. /// </summary> public class KoubeiCraftsmanDataProviderBatchqueryResponse : AopResponse { /// <summa...
25.636364
76
0.56383
[ "MIT" ]
P79N6A/abp-ant-design-pro-vue
Niue.Alipay/Response/KoubeiCraftsmanDataProviderBatchqueryResponse.cs
1,186
C#
using System; using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.OData.Edm; namespace Microsoft.AspNetCore.Mvc.ApiExplorer { /// <summary> /// Provides extension methods for the <see cref="ApiDescription" /> class. /// </summary> public static class ApiDescriptionExtensions { ...
41.012195
141
0.60898
[ "MIT" ]
StennGroup/stenn-aspnetcore-versioning
src/Stenn.AspNetCore.OData.Versioning.ApiExplorer/Mvc/ApiDescriptionExtensions.cs
3,365
C#
using System.Collections.Generic; using System.IO; using System.Net.Http; using System.Threading.Tasks; using Selenoid.Client.Infrastructure.Common.List; using Selenoid.Client.Infrastructure.Video.List; using Selenoid.Client.Models; namespace Selenoid.Client { public class SelenoidVideoClient : ISelenoidVideoClie...
35.090909
125
0.685881
[ "MIT" ]
Greved/selenoid.client
Selenoid.Client/SelenoidVideoClient.cs
1,546
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace Confifu { /// <summary> /// Represents AppEnv logic /// </summary> public class AppEnv { class AppEnvExpression { AppEnv Left { get; } AppEnv Right { g...
34.91
118
0.541392
[ "MIT" ]
Steinpilz/confifu
src/app/Confifu/AppEnv.cs
6,984
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace HeartOfGold.Web.Models { public class Item { public int ID { get; set; } public string Name { get; set; } public string Description { get; set; } public CategoryName Category { ge...
25.058824
50
0.619718
[ "MIT" ]
deanwiseman/Heart-of-Gold
HeartOfGold/HeartOfGold.Web/Models/Item.cs
428
C#
using System.Web.Mvc; namespace JerryPlat.Web.Areas.Admin { public class AdminAreaRegistration : AreaRegistration { public override string AreaName { get { return "Admin"; } } public override void RegisterArea(AreaRegistratio...
26.36
90
0.517451
[ "MIT" ]
JerryPCN/Jerry-Project-Template
SRC/JerryPlat.Web/Areas/Admin/AdminAreaRegistration.cs
661
C#
namespace P01_StudentSystem.Data.Models { using System.ComponentModel.DataAnnotations; public class Resource { public int ResourceId { get; set; } [MaxLength(50)] public string Name { get; set; } public string Url { get; set; } public ResourceType...
20.678571
54
0.540587
[ "MIT" ]
marinakolova/CSharp-Courses
Entity-Framework-Core-October-2019/05-EntityRelations/StudentSystem/P01_StudentSystem.Data.Models/Resource.cs
581
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Collections.Generic; using System.Linq; using Windows.Data.Json; using Windows.UI; using Windows.UI.Xaml.Markup; namespace VanArsdel.Devices { public interface IPropertyColorPalette : IProperty { ...
33.344633
224
0.546256
[ "MIT" ]
Bhaskers-Blu-Org2/VanArsdel
VanArsdel/Model/Devices/PropertyColorPalette.cs
5,904
C#
namespace Signum.Test.LinqProvider; public class TakeSkipTest { public TakeSkipTest() { MusicStarter.StartAndLoad(); Connector.CurrentLogger = new DebugTextWriter(); } [Fact] public void Take() { var takeArtist = Database.Query<ArtistEntity>().Take(2).ToL...
29.308725
199
0.572933
[ "MIT" ]
Faridmehr/framework
Signum.Test/LinqProvider/TakeSkipTest.cs
4,367
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudio.Text; namespace ShaderTools.CodeAnalysis.Editor.Shared.Extensions { /// <summary>...
33.375
162
0.635456
[ "Apache-2.0" ]
BigHeadGift/HLSL
src/ShaderTools.CodeAnalysis.EditorFeatures/Shared/Extensions/SpanExtensions.cs
780
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by Codezu. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------...
26.607143
139
0.524832
[ "MIT" ]
thomsumit/mozu-dotnet
Mozu.Api/Contracts/Location/Hours.cs
745
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity.Infrastructure { using System.Collections; using System.Collections.Generic; using System.Data.Entity.Core.Objects.ELinq; using System.Data....
41.453988
133
0.617434
[ "Apache-2.0" ]
CZEMacLeod/EntityFramework6
test/EntityFramework/UnitTests/Infrastructure/DbQueryTests.cs
6,759
C#
using Supido.Business.Attributes; using Supido.Business.Meta; using Supido.Core.Types; using Supido.Core.Utils; using System; using System.Collections.Generic; using System.Reflection; using Telerik.OpenAccess.Metadata; using Telerik.OpenAccess.Metadata.Relational; namespace Supido.Business.Security { /// <summar...
33.960748
157
0.491827
[ "MIT" ]
jseijas/supido
Source/Supido.Business/Security/SecurityScanner.cs
18,171
C#
// This file was automatically generated and may be regenerated at any // time. To ensure any changes are retained, modify the tool with any segment/component/group/field name // or type changes. namespace Machete.HL7Schema.V26.Maps { using V26; /// <summary> /// PPR_PC1 (MessageMap) - /// </summary> ...
30.958333
104
0.557201
[ "Apache-2.0" ]
ahives/Machete
src/Machete.HL7Schema/V26/Messages/Maps/PPR_PC1Map.cs
743
C#
// Copyright 2004-2009 Castle Project - http://www.castleproject.org/ // // 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 // //...
39.970588
93
0.706402
[ "Apache-2.0" ]
Convey-Compliance/Castle.Core-READONLY
src/Castle.Core/Components.DictionaryAdapter/IDictionaryPropertySetter.cs
1,359
C#
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
37.678899
97
0.594351
[ "MIT" ]
BUTTER-Tools/GetTextEncoding
ude-master/src/Library/Ude.Core/Big5Prober.cs
4,107
C#
using System; using System.Net.Mime; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using NHSD.BuyingCatalogue.Ordering.Api.Authorization; using NHSD.BuyingCatalogue.Ordering.Api.Models; using NHSD.BuyingCatalogue.Ordering.Api.Services; using NHSD.BuyingCatalogu...
37.450704
134
0.697255
[ "MIT" ]
nhs-digital-gp-it-futures/BuyingCatalogueOrdering
src/NHSD.BuyingCatalogue.Ordering.Api/Controllers/SupplierSectionController.cs
2,661
C#
namespace CVisualizer { public class VariableNode : Node { public VariableNode() { Label = "x"; } public override double Calculate(double x) { return x; } public override string ToString() { return "x"; ...
20.857143
55
0.471233
[ "Apache-2.0" ]
nikolaynikolaevn/CVisualizer
CVisualizer/Nodes/VariableNode.cs
732
C#
namespace Epic.OnlineServices.Lobby { public delegate void OnSendInviteCallback(SendInviteCallbackInfo data); }
22.6
72
0.849558
[ "MIT" ]
undancer/oni-data
Managed/firstpass/Epic/OnlineServices/Lobby/OnSendInviteCallback.cs
113
C#
using Bogus; namespace SkyCommerce.Models { public class Endereco { public string Nome { get; set; } public string Sobrenome { get; set; } public string Logradouro { get; set; } public string Bairro { get; set; } public string Cidade { get; set; } public string...
41.441176
86
0.525195
[ "MIT" ]
phillrog/curso-is4
SkyCommerce.Loja/SkyCommerce.Domain/Models/Endereco.cs
1,411
C#
public class Solution { public int[] TwoSum (int[] nums, int target) { for (int i = 0; i < nums.Length - 1; i++) { for (int j = 1; j < nums.Length; j++) { if (target == nums[i] + nums[j] && i != j) return new int[] { i, j }; } } ret...
30.636364
58
0.400593
[ "MIT" ]
a26007565/myLeetCode
Easy/1.Two Sum.cs
337
C#
namespace GGJ2021 { public interface IGameOverController { void Show(); void Hide(); void SetWinner(string winner); } }
14.333333
37
0.705426
[ "MIT" ]
Snaki94/GGJ2021
GGJ2021/Assets/Scripts/UI/GameOver/Interfaces/IGameOverController.cs
131
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BlueWind.Crawler.Manga { internal enum BuiltInSites { Manga24h, BlogTruyen } }
14.642857
33
0.687805
[ "Apache-2.0" ]
koneta/MangaPortal
trunk/src/BlueWind.Crawler.Manga/BuiltInSites.cs
207
C#
using System.ComponentModel; using System.Windows.Input; using PS.Patterns.Aware; namespace PS.WPF.Patterns.Command { public interface IUICommand : ICommand, IDescriptionAware, IGroupAware, IOrderAware, ...
28.565217
56
0.436834
[ "MIT" ]
BlackGad/PS.Framework
PS.WPF/Patterns/Command/IUICommand.cs
659
C#
using System; using TB.AspNetCore.Domain.Enums; namespace TB.AspNetCore.Domain.Models.Api { public class AdvertisingModel { /// <summary> /// 唯一id /// </summary> public string Id { get; set; } /// <summary> /// 标题 /// </summary> public string AdN...
22.666667
50
0.452489
[ "MIT" ]
lap888/aspnetcore_baodian
TB.AspNetCore.Domain/Models/Api/AdvertisingModel.cs
922
C#
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using FractalControl; namespace Fraktale { /// <summary> /// Summary description for Form1. /// </summary> public class Form1 : System.Windows.Forms.Form { pri...
30.401361
84
0.67778
[ "MIT" ]
damiandragowski/fractals
Fraktale/MainForm.cs
4,469
C#
using System.Collections.Generic; using Essensoft.AspNetCore.Payment.Alipay.Response; namespace Essensoft.AspNetCore.Payment.Alipay.Request { /// <summary> /// zhima.credit.ep.scene.trade.consult /// </summary> public class ZhimaCreditEpSceneTradeConsultRequest : IAlipayRequest<ZhimaCreditEpSceneTrade...
22.758065
111
0.548193
[ "MIT" ]
lzw316/payment
src/Essensoft.AspNetCore.Payment.Alipay/Request/ZhimaCreditEpSceneTradeConsultRequest.cs
2,836
C#
namespace P04.ArrayHistogram { using System; using System.Collections.Generic; public class ArrayHistogram { public static void Main() { var input = Console.ReadLine().Split(); var words = new List<string>(); var occurencesCnt = new List<int>(); ...
27.661538
101
0.412681
[ "MIT" ]
ViktorAleksandrov/SoftUni--Technology-Fundamentals
Programming Fundamentals - Extended/L07.2. Array and List Algorithms - Exercises/P04.ArrayHistogram/ArrayHistogram.cs
1,800
C#
namespace Biza.CodeAnalysis.Binding { public enum BoundNodeKind { LiteralExpression, UnaryExpression, BinaryExpression, VariableExpression, AssignmentExpression } }
18.166667
36
0.646789
[ "MIT" ]
fabianobizarro/Biza
src/Biza/CodeAnalysis/Binding/BoundNodeKind.cs
220
C#
using WitsmlExplorer.Api.Jobs.Common; namespace WitsmlExplorer.Api.Jobs { public record CopyLogDataJob { public LogCurvesReference SourceLogCurvesReference { get; init; } public LogReference TargetLogReference { get; init; } } }
23.454545
73
0.72093
[ "Apache-2.0" ]
AtleH/witsml-explorer
Src/WitsmlExplorer.Api/Jobs/CopyLogDataJob.cs
258
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace Example { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Mai...
22.086957
65
0.610236
[ "MIT" ]
orthoxerox/Neotoma
Example/Program.cs
510
C#
// ----------------------------------------------------------------------- // <copyright file="Point.cs" company=""> // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/ // </copyright> // ----------------------------------------------------------------------- using UnityEngine; namespace Trian...
23.390625
75
0.428412
[ "Unlicense" ]
bevanator/Triangle.Net-for-Unity
Assets/TriangleNet/Scripts/Source/Geometry/Point.cs
4,493
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/d3d12video.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Runt...
50.820225
190
0.6761
[ "MIT" ]
Perksey/terrafx.interop.windows
sources/Interop/Windows/um/d3d12video/ID3D12VideoDecoder1.cs
4,525
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Inventory : MonoBehaviour { [SerializeField] private FoodType values = 0; public bool this[FoodType food] { get { return (values & food) != 0; } private set { if (value) { values |= food; } e...
16.384615
46
0.64554
[ "MIT" ]
tjbearse/rgift
Assets/scripts/Inventory.cs
426
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. //...
35
84
0.554978
[ "Apache-2.0" ]
JunaidSarfraz/SchoolSystem
SchoolSystem/FeeHead.cs
1,155
C#
using Json.Schema; using Json.Schema.Generation; namespace ModDevToolsMod; /// <summary> /// Provides intent to create a `dynamicRef` keyword. /// </summary> public class DynamicRefIntent : ISchemaKeywordIntent { public string Reference { get; } /// <summary> /// Creates a new instance of the <see cref="Dynam...
31.775
104
0.698662
[ "MIT" ]
DW2MC/DW2ModLoader
ModDevToolsMod/Json.Schema.Generation/DynamicRefIntent.cs
1,271
C#
using System.Threading; using Backend.Fx.Environment.Persistence; using Backend.Fx.Logging; using Backend.Fx.Patterns.DependencyInjection; using Backend.Fx.Patterns.EventAggregation.Integration; using FakeItEasy; using Xunit; namespace Backend.Fx.Tests.Patterns.DependencyInjection { public class TheBackendFxDbAppl...
43.896104
144
0.660651
[ "MIT" ]
marcwittke/Backend.Fx
tests/Backend.Fx.Tests/Patterns/DependencyInjection/TheBackendFxDbApplication.cs
3,380
C#
// <copyright file="Complex32Test.TextHandling.cs" company="Math.NET"> // Math.NET Numerics, part of the Math.NET Project // http://numerics.mathdotnet.com // http://github.com/mathnet/mathnet-numerics // // Copyright (c) 2009-2016 Math.NET // // Permission is hereby granted, free of charge, to any person // obtaining ...
45.304878
154
0.56393
[ "MIT" ]
PGsHub/mathnet-numerics
src/UnitTests/ComplexTests/Complex32Test.TextHandling.cs
14,860
C#
namespace MathLibrary { public class Calculator { public int Sum(int left, int right) { return left + right; } } }
14.909091
43
0.506098
[ "MIT" ]
JanneMattila/nuget-package-demo
src/MathLibrary/Calculator.cs
166
C#
using System; using System.Diagnostics.CodeAnalysis; using System.Net.Http; using LovePdf.Core; using LovePdf.Model.Task; using LovePdf.Model.TaskParams; namespace Samples { [SuppressMessage("ReSharper", "UnusedVariable")] public class TryCatchErrors { public void DoTask() { tr...
29.729167
86
0.512263
[ "MIT" ]
ilovepdf/ilovepdf-net
ILovePDF/Samples/TryCatchErrors.cs
1,429
C#
namespace Joke.Joke.Tree { public interface INamedType : INamedMember, IVisited { } }
15
57
0.628571
[ "MIT" ]
knutjelitto/Joke
Joke.Joke/Tree/INamedType.cs
107
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; namespace Mastersign.Bench.Dashboard { internal partial class AppInfoDialog : Form { pri...
41.476923
123
0.593843
[ "MIT" ]
mastersign/bench-manager
BenchDashboard/AppInfoDialog.cs
5,394
C#
// MIT License // // Copyright (c) 2017 Granikos GmbH & Co. KG (https://www.granikos.eu) // // 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 ...
43.090909
82
0.716596
[ "MIT" ]
Granikos/SMTPSimulator
Granikos.SMTPSimulator.WebClient/Controllers/HomeController.cs
1,424
C#
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated ...
39.733333
98
0.762164
[ "MIT" ]
joyshmitz/openPDC
Source/Tools/ConfigurationSetupUtility/Properties/AssemblyInfo.cs
2,387
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.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; namespace System.Window...
36.54955
206
0.597979
[ "MIT" ]
ASHCO-2019/winforms
src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/ContextMenuStripActionList.cs
4,059
C#
using Microsoft.AspNetCore.Components; namespace SmallsOnline.Blazor.Components.ListGroups { public partial class SimpleListGroupItem : BootstrapComponent { protected override void OnParametersSet() { AddClassNamesToClassList(); } } }
23.666667
65
0.690141
[ "MIT" ]
Smalls1652/SmallsOnline.Blazor.Components
src/SmallsOnline.Blazor.Components/components/list-groups/SimpleListGroupItem.razor.cs
286
C#
using SQLite; using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; using ToDoListApp.Core.Repositories; namespace ToDoListApp.Persistence.Repositories { public class DataBaseRepository<TEntity> : IDataBaseRepository<TEntity> where TEntity : class, new() ...
32.724138
104
0.632771
[ "MIT" ]
zelote57/ToDoListXamarinForms
ListaPorHacer/ToDoListApp/ToDoListApp/Persistence/Repositories/DataBaseRepository.cs
1,900
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...
32.813953
211
0.601937
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Blueprint/GetBlueprint.cs
4,233
C#
using FluentApiEFCoreExample.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace FluentApiEFCoreExample.EntityConfigurations { public class ArticleConfig : EntityConfiguration<Article>, IEntityTypeConfiguration<Article>, IEntityConfig { publi...
44.034483
111
0.643696
[ "Apache-2.0" ]
manacespereira/FluentApiEFCoreExample
EntityConfigurations/ArticleConfig.cs
1,295
C#
using Dapper; using Inshapardaz.Domain.Adapters.Repositories.Library; using Inshapardaz.Domain.Models; using Inshapardaz.Domain.Models.Library; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Inshapardaz.Database.SqlServer.Repositories...
44.207951
222
0.490454
[ "Apache-2.0" ]
inshapardaz/inshapardaz
src/Inshapardaz.Database.SqlServer/Repositories/Library/ArticleRepository.cs
14,458
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace Silk.Core.Data.Migrations { public partial class NewGreetingOption : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<int>( name: "GreetingOption", ...
27.4
71
0.570803
[ "Apache-2.0" ]
Giggitybyte/Silk
src/Silk.Core.Data/Migrations/20210615011332_NewGreetingOption.cs
687
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...
44.376623
153
0.657009
[ "MIT" ]
hchungmsft/azure-powershell
src/ResourceManager/AzureBatch/Commands.Batch.Test/ComputeNodeUsers/RemoveBatchComputeNodeUserCommandTests.cs
3,343
C#
namespace Masa.Framework.Admin.Web.Shared { public partial class MainLayout { private HubConnection _hubConnection = default!; private bool _show; private string _msg = ""; [Inject] public NavigationManager NavigationManager { get; set; } = default!; [Inject] ...
31.010204
141
0.517604
[ "Apache-2.0" ]
masalabs/MASA.Framework.Admin
src/Web/Masa.Framework.Admin.Web/Shared/MainLayout.razor.cs
3,039
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StringExtensions.Benchmark { public static class DataGenerator { public static List<Genre> Genres { get; } public static List<Artist> Artists { get; } public static List<Album> Albums { get;...
142.40535
363
0.593362
[ "MIT" ]
Lionhunter3k/ValueString
StringExtensions.Benchmark/DataGenerator.cs
69,250
C#
using System; namespace CuesheetSplitterEncoder.Core.Exceptions { public class CommandLineOperationException : Exception { readonly int _exitCode; public CommandLineOperationException() { } public CommandLineOperationException(string message) : base(messa...
22.5
106
0.573333
[ "MIT" ]
abelzile/cuesheet-splitter-encoder
src/CuesheetSplitterEncoder.Core/Exceptions/CommandLineOperationException.cs
902
C#
using System; using Unity.VisualScripting.FullSerializer.Internal; namespace Unity.VisualScripting.FullSerializer { public class fsPrimitiveConverter : fsConverter { public override bool CanProcess(Type type) { return type.Resolve().IsPrimitive || typ...
34.982759
133
0.473632
[ "MIT" ]
2PUEG-VRIK/UnityEscapeGame
2P-UnityEscapeGame/Library/PackageCache/com.unity.visualscripting@1.6.1/Runtime/VisualScripting.Core/Dependencies/FullSerializer/Converters/fsPrimitiveConverter.cs
6,087
C#
namespace Dolgozat0303 { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param...
41.364486
107
0.556823
[ "MIT" ]
kinga97/WinFormAlkalmazasok
Dolgozat0303/Dolgozat0303/Form1.Designer.cs
8,868
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using Utility.Noise; [CustomEditor(typeof(FractalChain))] public class FractalChainEditor : Editor { Texture2D m_currentTex; bool m_texUpdated; public override void OnInspectorGUI() { base.OnInspectorGUI(); Frac...
19.567164
84
0.666667
[ "MIT" ]
iwoplaza/DreamHack-2018
DreamHack 2018 - UnityProject/Assets/Scripts/Editor/FractalChainEditor.cs
1,313
C#
using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Linq; namespace Yeast.WebApi { /// <summary> /// Base class for API request parameters /// </summary> public class ApiRequestParams { /// <summary> /// List of navigation properties to include //...
22.421053
52
0.605634
[ "MIT" ]
YeastFx/Yeast
src/Yeast.WebApi/ApiRequestParams.cs
428
C#
namespace SalaryForecaster.Core.Infrastructure { public interface ISettingsManager { string GetJsonPath(); string GetReleaseInfoPath(); } }
21
47
0.684524
[ "MIT" ]
AlexanderYunker1983/SalaryForecaster
SalaryForecaster.Core/Infrastructure/ISettingsManager.cs
170
C#
using AutoMapperConfiguration; using Microsoft.EntityFrameworkCore; using NicheMarket.Data; using NicheMarket.Data.Models; using NicheMarket.Services.Models; using NicheMarket.Web.Models.BindingModels; using NicheMarket.Web.Models.ViewModels; using NUnit.Framework; using System; using System.Collections.Generic; using...
36.53719
183
0.652002
[ "MIT" ]
Alexandra024905/Niche_Market
Tests/NicheMarket.Services.Tests/CategoryServiceTests.cs
8,844
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.Data.Common; using System.Diagnostics; namespace Microsoft.EntityFrameworkCore.Diagnostics { /// <summary> /// T...
44.125
134
0.599858
[ "Apache-2.0" ]
0x0309/efcore
src/EFCore.Relational/Diagnostics/CommandEndEventData.cs
2,824
C#
#pragma checksum "C:\Users\adamc\source\repos\Idea\Idea\MainPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7B0AFB441FB132DA32D08DDBC07F62BA8751D90393CA72CBABC522BBD8AB33C1" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a too...
41.585366
179
0.609971
[ "MIT" ]
cybrneon/Idea
Idea/obj/x86/Debug/MainPage.g.cs
1,707
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FSO.Common.Serialization; using Mina.Core.Buffer; namespace FSO.Server.Protocol.Electron.Packets { public class PurchaseLotRequest : AbstractElectronPacket { public ushort LotLocat...
29.069767
87
0.6488
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Blayer98/FreeSO
TSOClient/FSO.Server.Protocol/Electron/Packets/PurchaseLotRequest.cs
1,252
C#
// Copyright (c) 2013-2019 Innoactive GmbH // Licensed under the Apache License, Version 2.0 // Modifications copyright (c) 2021 MindPort GmbH using System; namespace VRBuilder.Core { [Obsolete("This event is not used anymore.")] public class ChildDeactivatedEventArgs<TEntity> : EventArgs where TEntity : IEnt...
24.65
87
0.669371
[ "Apache-2.0" ]
MindPort-GmbH/VR-Builder-Core
Source/Core/Runtime/ChildDeactivatedEventArgs.cs
493
C#
// This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. using System.Diagnostics.CodeAnalysis; [assembly: SuppressMessag...
70.4
215
0.765625
[ "Apache-2.0" ]
bugbytesinc/Hashgraph-Portal
Hashgraph.Portal/GlobalSuppressions.cs
706
C#