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
#region using Kudos.Exceptions; using Newtonsoft.Json; using System.Collections.Immutable; using System.ComponentModel; #endregion namespace Kudos.Models.bases { public abstract class SettingBase : INotifyPropertyChanged { public abstract string HelpText { get; } public abstract string HtmlHelp...
38.650794
160
0.679261
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
TheBlue-1/kudos
Kudos/Models/bases/SettingBase.cs
2,437
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Serilog; using SysExtensions.Collections; using SysExtensions.Serialization; using SysExtensions.Text; using SysExtensions.Threading; namespace Mutuo.Etl.Blob ...
37.546875
125
0.674782
[ "MIT" ]
markledwich2/Recfluence
App/Mutuo.Etl/Blob/JsonlStore.cs
4,806
C#
// Copyright (C) 2017 Xtensive LLC. // All rights reserved. // For conditions of distribution and use, see license. // Created by: Alexey Kulakov // Created: 2017.07.12 using NUnit.Framework; using Xtensive.Orm.Configuration; using Xtensive.Orm.Model; using Xtensive.Orm.Providers; using Xtensive.Orm.Upgr...
40.127451
127
0.679697
[ "MIT" ]
SergeiPavlov/dataobjects-net
Orm/Xtensive.Orm.Tests/Upgrade/FullText/DynamicFullTextCatalogTest.cs
20,467
C#
using System; namespace Lithnet.Miiserver.Client { /// <summary> /// An exception that is throw when more than the expected number of results are returned from a query /// </summary> [Serializable] public class TooManyResultsException : Exception { /// <summary> /// Initializes...
27
106
0.586207
[ "MIT" ]
lithnet/miis-client
src/Lithnet.Miiserver.Client/Exceptions/TooManyResultsException.cs
785
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Trap : MonoBehaviour { private void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag("Player")) { FindObjectOfType<LevelManager>().GameOver(); } } }
19.625
56
0.659236
[ "MIT" ]
frolushka/d01
Assets/Scripts/Trap.cs
316
C#
using System; using ComponentBind; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Lemma.Components; using System.IO; using Lemma.Util; namespace Lemma.Factories { public class DialogueFileFactory : Factory<Main> { public DialogueFileFactory() { th...
21.230769
76
0.722222
[ "Unlicense", "MIT" ]
MSylvia/Lemma
Lemma/Factories/DialogueFileFactory.cs
830
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace MailSender { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pa...
25.086957
99
0.587522
[ "MIT" ]
EmilMitev/Telerik-Academy
Web Services and Cloud/Slides and demos/Archive/PaaS-Cloud-Hosting-for-.NET-and-Cloud-Databases/Demo/MailSender/MailSender/App_Start/RouteConfig.cs
579
C#
// <auto-generated /> using System; using MSN.BlazorServer.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace MySoloNetwork.Migrations.MSNBlazorServer { [DbContext(typeof(MSNBlazorServerContext))] ...
35.412587
95
0.446781
[ "MIT" ]
JeffStewartDev/MySoloNetwork
ModelContext/MSNBlazorServerContextModelSnapshot.cs
10,128
C#
using Android.App; using Android.OS; using Android.Runtime; using Android.Util; using Android.Views; using Android.Widget; using Firebase.Auth; using Firebase.Database; using System; using System.Collections.Generic; namespace Friends_Chat { [Activity(Label = "CreateChatActivity")] public class CreateChatActi...
38.564417
259
0.592428
[ "MIT" ]
Macjiji/Friends-Chat-Csharp
app/CreateChatActivity.cs
6,314
C#
using System.IO.Abstractions; using System.Text.RegularExpressions; using UnityEngine; using System.IO; using Unity.MLAgents.Policies; using UnityEngine.Serialization; namespace Unity.MLAgents.Demonstrations { /// <summary> /// The Demonstration Recorder component facilitates the recording of demonstrations ...
38.380952
202
0.608685
[ "MIT" ]
AlbertCayuela/NeuralNetwork
CardsOfTheWilds/Library/PackageCache/com.unity.ml-agents@1.0.6/Runtime/Demonstrations/DemonstrationRecorder.cs
8,060
C#
using System.Collections.Generic; namespace Conjure.Security { public interface IAppSecurity { AppUser GetUser(); AppRole GetRole(); IEnumerable<AppPermission> GetPermissions(); } }
15.857143
52
0.657658
[ "MIT" ]
ebekker/conjure-mvp
src/Conjure.Security/IAppSecurity.cs
224
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using BTCPayServer.Client.Models; using BTCPayServer.Data; using BTCPayServer.Validation; namespace BTCPayServer.Models.StoreViewModels { public class StoreViewModel { public class DerivationScheme { pub...
28.798246
131
0.558026
[ "MIT" ]
dergigi/btcpayserver
BTCPayServer/Models/StoreViewModels/StoreViewModel.cs
3,285
C#
using Bonsai.Editor.Themes; using System; using System.Drawing; using System.Globalization; using System.IO; using System.Reflection; using System.Windows.Forms; using System.Xml; namespace Bonsai.Editor { sealed class EditorSettings { const int MaxRecentFiles = 25; const string ...
47.891892
139
0.519752
[ "MIT" ]
richbryant/bonsai
Bonsai.Editor/EditorSettings.cs
7,090
C#
namespace JokesFunApp.Services.Models.Jokes { using JokesFunApp.Data.Models; using JokesFunApp.Services.Mapping; public class JokeDetailsViewModel : IMapFrom<Joke> { public string Content { get; set; } public string HtmlContent => this.Content.Replace("\n", "<br />\n"); publi...
24.266667
76
0.656593
[ "MIT" ]
Aleksandrov91/JokesFunApp
src/Services/JokesFunApp.Services.Models/Jokes/JokeDetailsViewModel.cs
366
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Buffers; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading; using System.Threading.Tasks; using Azure.Storage.Shared; using Moq; using NUnit.Framework; ...
36.445614
100
0.517859
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/storage/Azure.Storage.Common/tests/StorageWriteStreamTests.cs
10,389
C#
// // THIS FILE IS AUTOGENERATED - DO NOT EDIT // In order to make changes make sure to edit the t4 template file (*.tt) // using System; using System.Collections.Generic; using System.Linq; namespace LinqStatistics.NaN { public static partial class EnumerableStats { /// <summary> /// Comput...
39.546099
114
0.589132
[ "Apache-2.0" ]
dkackman/LinqStatistics
src/LinqStatistics/NaN/EnumerableStatsRange.cs
5,578
C#
// 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 // regenerated. namespac...
33.4
111
0.627109
[ "MIT" ]
AzureAutomationTeam/azure-sdk-for-net
src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/Page.cs
1,837
C#
namespace stNet.CurlSharp { /// <summary> /// Contains values used to specify the time condition when using /// the <see cref="CurlOption.TimeCondition" /> option in a call /// to <see cref="CurlEasy.SetOpt" /> /// </summary> public enum CurlTimeCond { /// <summary> ...
31.025641
78
0.519008
[ "MIT" ]
PetersSharp/stCoCServer
stCoCServer/stExtLib/stNet-dll/CurlSharp/Enums/CurlTimeCond.cs
1,210
C#
using System.Collections.Generic; using UnityEngine; namespace BezierSolution { [ExecuteInEditMode] public class BezierSpline : MonoBehaviour { private static Material gizmoMaterial; private Color gizmoColor = Color.white; private float gizmoStep = 0.05f; private List<BezierPoint> endPoints = new List<...
27.459502
161
0.640535
[ "MIT" ]
BenPhilippe/SpaceX
Assets/Plugins/BezierSolution/BezierSpline.cs
17,631
C#
using System; using System.IO; using System.Net; namespace DotnetSpider.DataFlow.Parser.Formatters { /// <summary> /// 下载内容 /// </summary> public class Download : Formatter { private readonly WebClient _client = new WebClient(); /// <summary> /// 执行下载操作 /// </summary> /// <param name="value">下载的链接</par...
20.857143
82
0.668493
[ "MIT" ]
RocChing/DotnetSpider
src/DotnetSpider/DataFlow/Parser/Formatters/Download.cs
800
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace LoginradiusCoreSdk.Models.Comment { /// <summary> /// TODO: Update summary. /// </summary> public class LoginRadiusComment { public string CommentId { get; ...
15.731707
54
0.396124
[ "MIT" ]
LoginRadius/dot-net-core-sdk
LoginradiusCoreSdk/src/src/LoginradiusCoreSdk/Models/Comment/LoginRadiusComment.cs
1,292
C#
/* * Copyright(c) 2022 nifanfa, This code is part of the Moos licensed under the MIT licence. */ using Kernel.Misc; namespace Kernel.Driver { public static unsafe partial class LocalAPIC { private static int LAPIC_ID = 0x0020; private static int LAPIC_VER = 0x0030; private static int ...
35.418803
99
0.623793
[ "MIT" ]
nifanfa/OS-Sharp
Kernel/Driver/LocalAPIC.cs
4,144
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace mattatz.ProceduralFlower { [System.Serializable] public enum PFPartType { None, Petal, Stover }; public class PFPart : MonoBehaviour { const string PROPERTY_COLOR = "_Color2"; const str...
19.21374
59
0.612237
[ "MIT" ]
U3DC/unity-procedural-flower
Assets/Packages/ProceduralFlower/Scripts/PFPart.cs
2,519
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Net; using com.ebay.developer; //using Service1; using eBay.Service.Call; using eBay.Service.Core.Sdk; using eBay.Service.Core.Soap; using System.Configuration; /// <summary> /// Summary description for apic /// </...
20.262295
103
0.631877
[ "MIT" ]
aliostad/deep-learning-lang-detection
data/test/csharp/491c2a26e6c18a1bc778a04bb74293925dd0e039apic.cs
1,238
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("03....
37.513514
84
0.745677
[ "MIT" ]
AleksandarKostadinov/C-Sharp-OOP-Advanced
01.InterfacesAndAbstraction-Exercise/03.Ferrari/Properties/AssemblyInfo.cs
1,391
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...
35.052632
107
0.705706
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/SageMaker/Generated/Model/_bcl45+netstandard/IListModelBiasJobDefinitionsPaginator.cs
1,332
C#
using System.Threading.Tasks; namespace OneInch.Api { public interface IApproveClient { Task<ApproveCallDataResponseDto> GetTransactionApproval(ApproveTransactionRequest request); Task<ApproveSpenderResponseDto> GetApprovedSpender(); Task<TokenAllowance> GetAllowance(AllowanceRequest re...
30.454545
99
0.767164
[ "MIT" ]
0xDelco/1inch-api-v4
src/OneInch.Api/Client/Abstractions/IApproveClient.cs
335
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...
34.484848
120
0.651142
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/ElasticLoadBalancingV2/Generated/Model/PathPatternConditionConfig.cs
2,276
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Xunit; using Trinity; using Trinity.Storage; using Trinity.Diagnostics; using System.IO; using System.Runtime.InteropServices; namespace EchoOnConsole { public class Ech...
30.543478
82
0.602847
[ "MIT" ]
Bhaskers-Blu-Org2/GraphEngine
src/Trinity.Core.UnitTest/config/EchoOnConsole2/EchoOnConsole.cs
1,405
C#
using System; using System.Collections.Generic; using System.Linq; using RimWorld; using AbilityUser; using Verse.AI; using Verse; using UnityEngine; namespace TorannMagic { public class Verb_SummonTotemHealing : Verb_UseAbility { bool validTarg; //Used for non-unique abilities that can be us...
39.682692
170
0.521686
[ "BSD-3-Clause" ]
Sn1p3rr3c0n/RWoM
RimWorldOfMagic/RimWorldOfMagic/Verb_SummonTotemHealing.cs
4,129
C#
using Should; using Xunit; namespace Cassette { public class NullPlaceholderTracker_Tests { [Fact] public void InsertPlaceholderCallsFuncAndReturnsTheResult() { var tracker = new NullPlaceholderTracker(); var result = tracker.InsertPlaceholder(() => ("<p></p>"))...
25.96
70
0.57473
[ "MIT" ]
WS-QA/cassette
src/Cassette.UnitTests/NullPlaceholderTracker.cs
651
C#
#region Copyright � 2001-2003 Jean-Claude Manoli [jc@manoli.net] /* * This software is provided 'as-is', without any express or implied warranty. * In no event will the author(s) be held liable for any damages arising from * the use of this software. * * Permission is granted to anyone to use this software for an...
33.727273
86
0.703504
[ "MIT" ]
ds112/hbase-on-windowns
Samples/CSharp/C# Analytics Samples/Web/SourceCodeTab/Formatter/CSharpFormat.cs
2,228
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 m...
36.25
88
0.641556
[ "MIT" ]
oldmine/cassandra-thrift-client
Cassandra.ThriftClient/Internal/Thrift/Server/TServer.cs
5,655
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class cameraMovement : MonoBehaviour { private Vector3 origin; private Vector3 difference; private Vector3 resetCamera; private bool drag = false; private void Start() { resetCamera = Camera.main.tra...
22.311111
112
0.564741
[ "Apache-2.0" ]
Hungerarray/1000-Steps-Simulator
Assets/cameraMovement.cs
1,004
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace LightningBug.Polly.SimpleWebAppExample { public ...
25.36
76
0.70347
[ "Apache-2.0" ]
jasondentler/lightning-bug
src/examples/polly/LightningBug.Polly.SimpleWebAppExample/Program.cs
636
C#
using Microsoft.AspNetCore.Identity; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace src.Models { public class CreateModel { [Required] public string Name { get; set; } [Required] public string Email { get; set; } [Required] public string Password { get; set; } ...
20.611111
62
0.708895
[ "MIT" ]
alexcosta97/web-apps-project
src/Models/UserViewModels.cs
742
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.TeamFoundation.TestClient.PublishTestResults; using Microsoft.TeamFoundation.TestManagement.WebApi; using Microsoft.VisualStudio.Services.WebApi; using Microsoft.TeamFoundation.Core.WebApi; using System; using System.Linq; using...
45.545
272
0.626853
[ "MIT" ]
lukeenterprise/azure-pipelines-agent
src/Agent.Worker/TestResults/TestDataPublisher.cs
9,109
C#
/* * Copyright(c) 2017 Samsung Electronics 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 a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
36.435897
137
0.707248
[ "Apache-2.0", "MIT" ]
AchoWang/TizenFX
src/Tizen.NUI/src/internal/NativeBinding/SWIGTYPE_p_Dali__RenderSurface.cs
1,421
C#
// <auto-generated /> namespace Iauq.Data.Migrations { using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; public sealed partial class PollBodyRenamedToDescription : IMigrationMetadata { string IMigrationMetadata.Id { get { return "20...
283.88
6,538
0.934057
[ "MIT" ]
m-sadegh-sh/Iauq
src/Iauq.Data/Migrations/201206200459059_PollBodyRenamedToDescription.Designer.cs
7,097
C#
using DwLang.Language.Lexer; namespace DwLang.Language.Parser { public class DwLangParserException : DwLangException { public DwLangParserException(Token token, string message) : base(message) { Token = token; } public Token Token { get; } } }
20.2
81
0.627063
[ "MIT" ]
miroiu/dw-lang
DwLang.Language/Parser/DwLangParserException.cs
305
C#
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Website: https://www.blazor.zone or https://argozhang.github.io/ using Microsoft.AspNetCore.Components; namespace BootstrapBlazor.Compone...
24.870968
111
0.604842
[ "Apache-2.0" ]
ScriptBox99/BootstrapBlazor
src/BootstrapBlazor/Components/FAIcons/IconDialog.razor.cs
2,331
C#
using Attest.Testing.Core; using Solid.Bootstrapping; using Solid.Core; using Solid.Practices.IoC; using TechTalk.SpecFlow; using ScenarioContext = TechTalk.SpecFlow.ScenarioContext; namespace Attest.Testing.SpecFlow { /// <summary> /// Base class for all integration-tests fixtures that involve ioc ...
37.34127
150
0.598512
[ "MIT" ]
JTOne123/Attest
Attest.Testing.SpecFlow/IntegrationTestsBase.cs
9,412
C#
using System; namespace Commuter.Services { public struct Location { public Location(double latitude, double longitude, double? altitude = null) { Latitude = latitude; Longitude = longitude; Altitude = altitude; } public double Latitude { get...
23
83
0.572464
[ "Apache-2.0" ]
robertsundstrom/commuter
Commuter.Core/Services/Location.cs
416
C#
#region BSD License /* Copyright (c) 2013-2018, Doxense SAS All rights reserved. Redistribution and use 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, this list of cond...
26.94152
94
0.697634
[ "BSD-3-Clause" ]
laibulle/foundationdb-dotnet-client
FoundationDB.Client/Layers/Directories/FdbDirectoryPath.cs
9,216
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("Obj...
37.837838
84
0.749286
[ "MIT" ]
6e3veR6k/codewars-csharp
resources/pro-csharp-7-master/Chapter_17/ObjectContextApp/ObjectContextApp/Properties/AssemblyInfo.cs
1,403
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore.Metadata.Internal; ...
47.156118
139
0.636901
[ "MIT" ]
FelicePollano/efcore
src/EFCore/Infrastructure/AnnotatableBuilder.cs
11,176
C#
using DnDGen.Infrastructure.Selectors.Collections; using System; using System.Linq; using DnDGen.TreasureGen.Selectors.Selections; using DnDGen.TreasureGen.Tables; namespace DnDGen.TreasureGen.Selectors.Collections { internal class ArmorDataSelector : IArmorDataSelector { private readonly ICollectionS...
34.354839
110
0.719249
[ "MIT" ]
DnDGen/TreasureGen
DnDGen.TreasureGen/Selectors/Collections/ArmorDataSelector.cs
1,067
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src...
41.637555
428
0.574095
[ "MIT" ]
2m0nd/runtime
src/tests/JIT/HardwareIntrinsics/General/Vector256_1/GetAndWithElement.SByte.15.cs
9,535
C#
// <copyright file="HttprequestParsers.cs" company="Microsoft"> // Copyright 2013 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://...
40.072539
135
0.599043
[ "Apache-2.0" ]
Azure/azure-storage-net
Test/Common/Core/HttpRequestParsers.cs
7,734
C#
using System; using System.Collections.Generic; using Newtonsoft.Json; namespace VkNet.Model.RequestParams { /// <summary> /// Параметры метода board.getTopics /// </summary> [Serializable] public class BoardGetTopicsParams { /// <summary> /// Идентификатор владельца страницы (пользователь или сообщество). ...
31.945946
84
0.689509
[ "MIT" ]
DeNcHiK3713/vk
VkNet/Model/RequestParams/Board/BoardGetTopicsParams.cs
3,242
C#
// Copyright 2020 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
30.439024
76
0.646635
[ "Apache-2.0" ]
avboy1337/sandbox-attacksurface-analysis-tools
NtApiDotNet/Win32/Security/Authentication/Kerberos/KerberosMessageType.cs
1,250
C#
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. // The software and associated documentation supplied hereunder are the // prop...
32.577465
157
0.57847
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy/Krypton-NET-5.400
Source/Krypton Components/ComponentFactory.Krypton.Toolkit/EventArgs/ButtonDragRectangleEventArgs.cs
2,316
C#
using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using Renci.SshNetCore.Common; namespace Renci.SshNetCore.Tests.Classes { [TestClass] public class ForwardedPortLocalTest_Stop_PortDisposed { private ForwardedPortLocal _forwardedPort; priva...
26.179104
87
0.580388
[ "MIT" ]
rintindon/SSH.NET.dotnetcore
src/Renci.SshNet.Core.Test/Classes/ForwardedPortLocalTest_Stop_PortDisposed.cs
1,756
C#
using Algorand; using Algorand.V2; using System; using System.Configuration; using System.Threading.Tasks; using Tinyman.V1; using Tinyman.V1.Model; namespace Tinyman.VerboseSwapExample { class Program { static async Task Main(string[] args) { var settings = ConfigurationManager.AppSettings; var mnemonic ...
28.313043
88
0.703931
[ "MIT" ]
geoffodonnell/dotnet-tinyman-sdk
example/Tinyman.VerboseSwapExample/Program.cs
3,258
C#
using System; using System.Collections.Generic; using System.Text; namespace Albatross.Cryptography.Core { public interface ICreateHash { byte[] Create(string text); int HashSize { get; } } }
18.181818
39
0.745
[ "MIT" ]
RushuiGuan/framework
src/Albatross.Cryptography/Core/ICreateHash.cs
202
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.Threading; #if UNITTEST namespace Microsoft.Diagnostics.Monitoring.TestCommon #else namespace Microso...
26.466667
94
0.629723
[ "MIT" ]
ScriptBox21/dotnet-monitor
src/Microsoft.Diagnostics.Monitoring.WebApi/CancellationTokenSourceExtensions.cs
796
C#
using System; using System.Collections; using System.Collections.Generic; using System.Text; namespace TernaryTree { // TODO: Error Handling and Documentation. Follow Microsoft lead with interfaces. // TODO: More unit tests. Check line coverage. // TODO: Consider storing a KeyValuePair at node.Data. Th...
31.274571
121
0.458872
[ "MIT" ]
agless/Data_Structures
TernaryTree/TernaryTree.cs
20,049
C#
#nullable enable using System; using System.Text; using System.Diagnostics; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; namespace FbxTools.Internal { /// <summary>ASCII string which has its own memory by itself.</summary> [DebuggerDisplay("{ToString()}")] [StructLayout(Lay...
32.438356
111
0.642736
[ "MIT" ]
ikorin24/FbxParser
FbxParser/Internal/RawStringMem.cs
2,370
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...
38.939929
316
0.580762
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/DataBoxEdge/Device.cs
11,020
C#
using Common.Common; using Common.Converter; using Common.Dto; using Common.Enums; using Common.Tools; using Data.Controller; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Timers; namespace Data.Services { public delegate void WirelessSwitchDownloadEventHandler(IL...
38.780952
136
0.621562
[ "MIT" ]
FriedrichWilhelmNietzsche/LucaHome-WPFApplication
Data/Services/WirelessSwitchService.cs
16,290
C#
using System.Collections.Generic; using System.Linq; namespace FF12RNGHelper.Core { /// <summary> /// The ChestFutureRng object represents the entire /// foreseeable future of chest related events. /// </summary> public class ChestFutureRng : IFutureRng { #region privates priv...
26
77
0.583203
[ "MIT" ]
Hoishin/RNGHelper
src/Core/ChestFutureRng.cs
3,824
C#
using System; namespace CuvooApi.Areas.HelpPage.ModelDescriptions { /// <summary> /// Describes a type model. /// </summary> public abstract class ModelDescription { public string Documentation { get; set; } public Type ModelType { get; set; } public string Name { get; set...
20.6875
51
0.616314
[ "Apache-2.0" ]
adriespina/testcuv
CuvooApi/CuvooApi/Areas/HelpPage/ModelDescriptions/ModelDescription.cs
331
C#
using System; using System.ComponentModel.Composition; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using AppKit; using Foundation; using Microsoft.FSharp.Core; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.T...
36.163804
165
0.561148
[ "Apache-2.0" ]
FelixBoers/VsVim
Src/VimMac/VimHost.cs
27,378
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.Text; using System.Threading.Tasks; using NuGet.Commands; using NuGet.Co...
39.556338
188
0.593199
[ "Apache-2.0" ]
BdDsl/NuGet.Client
src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Utility/VSRestoreSettingsUtilities.cs
5,617
C#
using System; using System.Diagnostics; using System.Linq; using FhirStarter.STU3.Detonator.DotNetCore3.Filter; using FhirStarter.STU3.Detonator.DotNetCore3.Formatters; using FhirStarter.STU3.Instigator.DotNetCore3.Configuration; using FhirStarter.STU3.Instigator.DotNetCore3.Diagnostics; using FhirStarter.STU3.Instigat...
41.616162
128
0.674515
[ "MIT" ]
Helse-Nord-IKT-Integrasjonsutvikling/FhirStarter.DotNetCore3.0
src/STU3/FhirStarter.STU3.Twisted.DotNetCore3/Startup.cs
4,120
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/IPTypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using Syste...
35.772727
145
0.632147
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
tests/Interop/Windows/um/IPTypes/IP_ADDR_STRINGTests.cs
1,576
C#
using System; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.Threading; using System.Windows; using System.Windows.Interop; using System.Windows.Threading; using log4net; using Xiant.Common; using Xiant.Filer.Core; using ...
39.879397
182
0.595388
[ "Apache-2.0" ]
VulcanTechnologies/XiantFiler
Filer.Addin.UI.Common/FolderPicker/FolderPickerDialog.cs
7,938
C#
#nullable enable using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Maui.Controls.Internals; using Mic...
26.765
149
0.730245
[ "MIT" ]
andreas-nesheim/maui
src/Controls/src/Core/Application.cs
10,706
C#
namespace Uspelite.Web.Models.Authors { using System; using System.Collections.Generic; using System.Linq; using Articles; using AutoMapper; using Common; using Data.Models; using Images; using Infrastructure.Mapping.Contracts; using Videos; using Base; public class Aut...
30.864865
116
0.640981
[ "Apache-2.0" ]
siderisltd/UspeliteProject
Uspelite.Web/Models/Authors/AuthorsUserViewModel.cs
1,144
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...
37.213675
158
0.607487
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/DirectConnect/Generated/Model/Internal/MarshallTransformations/DescribeConnectionLoaRequestMarshaller.cs
4,354
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; using DefaultApiClientService.Client; using Microsoft.Extensions.Configuration; using Newtonsoft.Json; using Simple.OData.Client; namespace TestComm...
23.409091
113
0.747573
[ "MIT" ]
Platonenkov/DefaultApiClientServiceController
Test/TestCommon/OdataClient.cs
517
C#
//By Dominic Brodeur-Gendron & Patrice Le Nouveau using System.Collections; using UnityEngine; using UnityEngine.UI; public static class GameEffect { #region SHAKE static bool perlinMode; static float perlinSpeed; public static void Shake(GameObject obj) { ShakeEffect (obj, 1, .2f, Vector3.zero, fal...
29.035171
128
0.649141
[ "MIT" ]
DominicBg/GenericCharacterController
Assets/UnityLibs/Util and extensions/GameEffect.cs
30,547
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Assertions; namespace EGS { /// <summary> /// The controller for the base mob. /// </summary> public class BaseMobController : FSMNavMeshController { //==========================================...
34.72549
102
0.435535
[ "MIT" ]
sirpaulmcd/Elite-Gardening-Squad-Open
EntitySystem/BaseMob/Scripts/BaseMobController.cs
5,313
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("Tr...
37.918919
84
0.744833
[ "MIT" ]
ChrisPam/ProgrammingBasics
Transport Price/Properties/AssemblyInfo.cs
1,406
C#
namespace BlobService.Core { public class Constants { public static string SASQueryStringKey = "saskey"; public static int DefaultBlobSizeLimitInMB = 50; } }
20.777778
58
0.673797
[ "MIT" ]
BlobService/BlobService
BlobService.Core/Constants.cs
189
C#
using System.Collections.Generic; using System.Threading.Tasks; namespace AElf.CrossChain { public interface ICrossChainDataProvider { Task<List<SideChainBlockData>> GetSideChainBlockDataAsync(Hash currentBlockHash, long currentBlockHeight); Task<bool> ValidateSideChainBlockDataAsync(List<Side...
48.428571
123
0.798673
[ "MIT" ]
quangdo3112/AElf
src/AElf.CrossChain.Core/Services/ICrossChainDataProvider.cs
1,356
C#
/* Copyright 2012 Stefano Chizzolini. http://www.pdfclown.org Contributors: * Stefano Chizzolini (original code developer, http://www.stefanochizzolini.it) This file should be part of the source code distribution of "PDF Clown library" (the Program): see the accompanying README files for more info. Thi...
22.850649
91
0.641375
[ "Apache-2.0" ]
XoriantOpenSource/PDFClown
dotNET/pdfclown.lib/src/org/pdfclown/objects/Visitor.cs
3,519
C#
/* The MIT License (MIT) Copyright 2021 Adam Reilly, Call to Action Software LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use...
63.257143
460
0.787263
[ "MIT" ]
areilly711/CtaApi
Unity/CtaApi/Packages/com.calltoaction.ctaapi/CtaUnity/Runtime/Scripts/UI/EntityCombatEventTextDisplaySystemBootstrap.cs
2,214
C#
#region Licence /* The MIT License (MIT) Copyright © 2014 Francesco Pighi <francesco.pighi@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limita...
38.544444
165
0.705391
[ "MIT" ]
SVemulapalli/Brighter
tests/Paramore.Brighter.Tests/Outbox/MsSql/When_writing_messages_to_the_message_store.cs
3,478
C#
using UnityEngine; public class IAPTest : MonoBehaviour { private void Update() { // if (Input.GetKeyDown(KeyCode.A)) IAP.m.BuyRemoveAds(); // if (Input.GetKeyDown(KeyCode.Z)) IAP.m.Buy50Gems(); // if (Input.GetKeyDown(KeyCode.E)) IAP.m.Buy200Gems(); // if (Input.GetKeyDown(KeyCode....
35.416667
69
0.632941
[ "MIT" ]
henriforshort/PushNShove
Assets/Scripts/IAPTest.cs
425
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...
51.039063
184
0.69478
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/DynamoDBv2/Generated/Model/ProvisionedThroughputExceededException.cs
6,533
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. #nullable disable using System.Collections.Immutable; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft...
34.642336
111
0.550569
[ "MIT" ]
belav/roslyn
src/Compilers/CSharp/Portable/Symbols/OverriddenOrHiddenMembersResult.cs
4,748
C#
using System.Linq; using System.Net; using Microsoft.AspNetCore.Mvc; using AspNetCoreOData.Service.Database; using Microsoft.AspNet.OData; using Microsoft.AspNet.OData.Routing; using Microsoft.AspNet.OData.Query; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authentication.JwtBearer; ...
31.341463
114
0.582101
[ "MIT" ]
damienbod/AspNetCoreOData
AspNetCoreOData.Service/Controllers/ContactTypeController.cs
3,857
C#
using System.Data.Entity.ModelConfiguration; namespace OrganizationRegister.Store.CodeFirst.Model.Configuration { internal class WebPageConfiguration : EntityTypeConfiguration<WebPage> { public WebPageConfiguration() { HasKey(address => address.Id); Property(address => ...
28.266667
74
0.665094
[ "MIT" ]
City-of-Helsinki/organisaatiorekisteri
Source/OrganizationRegister.Store.CodeFirst/Model/Configuration/WebPageConfiguration.cs
424
C#
namespace WOD.Game.Server.Core.NWScript.Enum.Creature { public enum CreatureSize { Invalid, Tiny, Small, Medium, Large, Huge } }
15.666667
53
0.526596
[ "MIT" ]
Cavcode/WOD_NWN
WOD.Game.Server/Core/NWScript/Enum/Creature/CreatureSize.cs
188
C#
using System.Web; using System.Web.Mvc; namespace IntroduccionAMSCognitiveServices { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
20.357143
80
0.680702
[ "MIT" ]
efonsecab/IntroProgramacion
src/IntroduccionAMSCognitiveServicesSln/IntroduccionAMSCognitiveServices/App_Start/FilterConfig.cs
287
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using XE = System.Xml.Linq.XElement; using C = Bugfree.OracleHospitality.Clients.PosParselets.Constants; using static Bugfree.OracleHospitality.Clients.ParserHelpers; namespace Bugfree.OracleHospitality.Clients.Po...
37.641026
150
0.598093
[ "BSD-2-Clause" ]
ronnieholm/Bugfree.OracleHospitality
src/Bugfree.OracleHospitality.Clients/PosParselets/Actions.cs
7,342
C#
using System; using System.Reflection; // ReSharper disable once RedundantUsingDirective using Imported.PeanutButter.Utils; namespace NExpect.Implementations { internal static class TypeExtensions { private static readonly BindingFlags _findPublicPropertyAnywhereInInheritenceChain = Bindin...
30.45
92
0.619869
[ "BSD-3-Clause" ]
fluffynuts/NExpect
src/NExpect/Implementations/TypeExtensions.cs
1,220
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 ...
37.05
99
0.765857
[ "Apache-2.0" ]
bbs168/aliyun-openapi-net-sdk
aliyun-net-sdk-rds/Rds/Transform/V20140815/TerminateMigrateTaskResponseUnmarshaller.cs
1,482
C#
using System; using System.Collections.Generic; using System.Text; namespace DynamicProgramming { class SubSetSumRecursive { public void Main() { int[] arr = { 2, 3, 8, 12 }; int sum = 11; int n = 4; bool[,] t = new bool[n + 1, sum + 1]; ...
24.363636
97
0.384328
[ "MIT" ]
manas1803/Algoritms
Dynamic Programming/Code/DynamicProgramming/DynamicProgramming/SubSetSumRecursive.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: AssemblyTitle("Tu...
37.756757
84
0.745168
[ "MIT" ]
tanvirIqbal/Visual-Studio-Project
TupleExample/TupleExample/Properties/AssemblyInfo.cs
1,400
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
43.765625
185
0.615494
[ "Apache-2.0" ]
Silverfeelin/NPP-Starbound-DescriptorToCommand
DescriptorToCommand/Properties/Resources.Designer.cs
2,803
C#
/* * This message is auto generated by ROS#. Please DO NOT modify. * Note: * - Comments from the original code will be written in their own line * - Variable sized arrays will be initialized to array of size 0 * Please report any issues at * <https://github.com/siemens/ros-sharp> */ namespace RosSharp.Ro...
28.255814
72
0.61893
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Webb-Bing/ARMS_RMUA2021_SImulation
Assets/RosSharpMessages/Roborts/msg/RobotDamage.cs
1,215
C#
using Microsoft.Extensions.Configuration; using System.Configuration; using Thriot.Messaging.Services.Storage; namespace Thriot.Messaging.WebApi { public class ConnectionStringResolver : IConnectionStringResolver { private readonly IConfiguration _configuration; public ConnectionStringResolve...
29.055556
98
0.745698
[ "MIT" ]
kpocza/thriot
Service/Messaging/Thriot.Messaging.WebApi/ConnectionStringResolver.cs
525
C#
using System; using System.Diagnostics; using System.Threading; using System.Windows; using POESKillTree.Localization; using POESKillTree.Model; using POESKillTree.Utils; namespace POESKillTree.Views { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class Ap...
38.015873
149
0.562004
[ "MIT" ]
nikibobi/PoESkillTree
WPFSKillTree/Views/App.xaml.cs
4,667
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.723404
91
0.614173
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Synapse/Latest/Inputs/IntegrationRuntimeVNetPropertiesArgs.cs
1,397
C#
namespace Connect4 { sealed class Node { /// <summary> /// Player that will play the next token /// </summary> private Connect4Player m_WhoseTurnItIs = null; /// <summary> /// Current state of the game stored in the node /// </summary> private Ga...
26.535714
101
0.48183
[ "MIT" ]
LucasBousselet/SmartConnect4
Connect4/Connect4/Minimax/Node.cs
2,231
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; namespace VueExample.Models { [Table("Wafer_Map_Parameters")] public class WaferMap { [Column("id_wmp")] public int Id { get; set; } [...
23.6
51
0.654661
[ "MIT" ]
7is7/SVR2.0
Models/WaferMap.cs
472
C#
// // EnumFlagAttribute.cs // // Author: // ${wuxingogo} <52111314ly@gmail.com> // // Copyright (c) 2016 ly-user // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. using UnityEngine; namespace wuxingogo.Run...
18.428571
76
0.687984
[ "MIT" ]
ClassWarhammer/Base1
WuxingogoRuntime/Attribute/EnumFlagAttribute.cs
518
C#
/* * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) * See https://github.com/openiddict/openiddict-core for more information concerning * the license and the contributors participating to this project. */ using System; using System.ComponentModel; using JetBrains.Annot...
42.660194
127
0.638371
[ "Apache-2.0" ]
khandakerakash/openiddict-core
src/OpenIddict.NHibernate/OpenIddictNHibernateBuilder.cs
4,396
C#