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 Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.DependencyInjection.Extensions; using Shashlik.Kernel.Attributes; using Shashlik.Utils.Extensions; namespace Sha...
33.508475
117
0.525544
[ "MIT" ]
dotnet-shashlik/shashlik
src/Shashlik.Kernel/Dependency/IFilterProvider.Default.cs
2,059
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using Windows.Data.Json; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Win...
30.951613
127
0.649818
[ "Unlicense" ]
danilshchetinkin/Danila1234
lab2/MainPage.xaml.cs
2,079
C#
using GammaJul.ForTea.Core.Parsing; using GammaJul.ForTea.Core.Psi; using GammaJul.ForTea.Core.Psi.Directives; using GammaJul.ForTea.Core.Psi.Directives.Attributes; using GammaJul.ForTea.Core.Tree; using JetBrains.Diagnostics; using JetBrains.ReSharper.Feature.Services.CodeCompletion.Infrastructure; using JetBrains.ReS...
39.507463
110
0.796373
[ "Apache-2.0" ]
JetBrains/ForTea
Backend/Core/ForTea.Core/Services/CodeCompletion/DirectiveAttributeValueItemsProvider.cs
2,647
C#
#if false // !UNITY_DOTSPLAYER using System; using System.Linq; using System.Reflection; using NUnit.Framework; namespace Unity.Entities.Tests.ForEach { class ForEachMemoryTestFixtureBase : EntityQueryBuilderTestFixture { protected int m_Field; protected static int s_Static; [SetUp] ...
30.528302
102
0.571693
[ "MIT" ]
k77torpedo/ForgeECS
Library/PackageCache/com.unity.entities@0.1.0-preview/Unity.Entities.Tests/ForEach/ForEachMemoryTestFixtureBase.cs
1,618
C#
using System; using System.IO; using System.Runtime.InteropServices; using System.Security.Authentication; using System.Security.Cryptography.X509Certificates; using System.Threading.Tasks; using MySql.Data.MySqlClient; using Xunit; namespace SideBySide { public class SslTests : IClassFixture<DatabaseFixture> { pu...
38.020492
160
0.759297
[ "MIT" ]
Avinash-TH/MySqlConnector
tests/SideBySide/SslTests.cs
9,277
C#
// Copyright 2019 Andrew White // // 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 applicabl...
40.6
122
0.698371
[ "Apache-2.0" ]
GordonBlahut/Finbuckle.MultiTenant
test/Finbuckle.MultiTenant.EntityFrameworkCore.Test/Extensions/MultiTenantBuilderExtensionsShould.cs
2,639
C#
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.CodeAnalysis.Text; using Xunit; using System.Text; using System.IO; using Roslyn.Test.Utilities; using S...
36.561594
184
0.578535
[ "Apache-2.0" ]
enginekit/copy_of_roslyn
Src/Compilers/Core/CodeAnalysisTest/Text/StringTextTest.cs
10,093
C#
#pragma warning disable 0649 // this is an interopt class and it will never be directly assigned to, Json.Net will instead dynamically use these properties using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Joueur.cs.ServerMessages { class InvalidData : ReceivedData ...
25.928571
156
0.754821
[ "MIT" ]
BobBuehler/megaminerai17
Joueur/ServerMessages/InvalidData.cs
365
C#
using PdfSharp; using PdfSharp.Pdf; using PdfSharp.Pdf.IO; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace PDFMerger { class Program { static void Main(string[] args) { Encoding.RegisterProvider(CodePagesEncodingProvi...
28.354167
90
0.533431
[ "MIT" ]
jasminbackman/PDFMerger
PDFMerger/Program.cs
1,363
C#
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Runtime.InteropServices.WindowsRuntime; using System.Text; using Windows.ApplicationModel.UserActivities; namespace UWPInterop { //MIDL_INTERFACE("1ADE314D-0E0A-40D9-824C-9A088A50059F") //IUserActivityInterop : ...
44.317073
198
0.728949
[ "MIT" ]
AdamBraden/WindowsInteropWrappers
CoreWindowInterop/UserActivityInterop.cs
3,636
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/oaidl.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System;...
35.137255
145
0.6875
[ "MIT" ]
reflectronic/terrafx.interop.windows
tests/Interop/Windows/Windows/um/oaidl/ICreateErrorInfoTests.cs
1,794
C#
using Barfi.Models; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; namespace Barfi.Services { public class SqlBarData : IBarData { private readonly BarfiDbContext db; public SqlBarData(BarfiDbContext db) { thi...
21.1875
59
0.512291
[ "MIT" ]
irichard03/BarFi
Barfi/Services/SqlBarData.cs
1,019
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> // ----------------...
36.896104
167
0.620908
[ "MIT" ]
CoderNate/CodeConverter
TestData/CharacterizationTestSolution/WindowsAppVb/My Project/Resources.Designer.cs
2,841
C#
namespace DemoQA_Automation.Pages.Widgets.Tabs { using OpenQA.Selenium; public partial class Tabs : BasePage { public Tabs(IWebDriver driver) : base(driver) {} public IWebElement LocateTab(int idNumber) { IWebElement tab = Wait.Until(d => { return d.FindElement...
25.913043
101
0.567114
[ "MIT" ]
ArvvenUndomiel/Selenium-Projects
src C#/DemoQA_Automation/Pages/Widgets/Tabs/Tabs.cs
598
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 Loopstream { public partial class Pritch : UserControl { int pad; public Pritch() { ...
35.308642
110
0.416434
[ "MIT" ]
9001/Loopstream
Loopstream/UC_Pritch.cs
5,722
C#
using EventBusRabbitMQ.Events.Interfaces; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Polly; using Polly.Retry; using RabbitMQ.Client; using RabbitMQ.Client.Exceptions; using System; using System.Net.Sockets; using System.Text; using System.Text.Json; namespace EventBusRabbitMQ.Producer { pub...
36.866667
172
0.605485
[ "MIT" ]
cihatsolak/net5-auction-microservice
ESourcing/EventBusRabbitMQ/Producer/EventBusRabbitMQProducer.cs
3,332
C#
using System.Collections.Generic; namespace Geometri { public static class GeometricCalculator { /// <summary> /// Returns the circumference of an GeometricThing object /// </summary> /// <param name="thing">The object to get the circumference from</param> /// <returns>...
34.73494
86
0.538328
[ "MIT" ]
marcusjobb/NET20D
TDD/Inlämning1/Gustaf/Gemoetri/GeometricCalculator.cs
2,885
C#
using AutoMapper; using Dto = SailScores.Api.Dtos; using Db = SailScores.Database.Entities; namespace SailScores.Core.Mapping { // This class isn't used too much as of writing: Most things go from db object // to Model/core object, then to DTO. But for competitor saving, and possibly // other future uses,...
33.851852
82
0.59628
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
SailScores/SailScores
SailScores.Core/Mapping/DbToDtoMappingProfile.cs
916
C#
// <copyright file="IAuthenticationProvider.Generated.cs" company="Okta, Inc"> // Copyright (c) 2014 - present Okta, Inc. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. // </copyright> // This file was automatically generated. Don't...
30.166667
112
0.733425
[ "Apache-2.0" ]
Christian-Oleson/okta-sdk-dotnet
src/Okta.Sdk/Generated/IAuthenticationProvider.Generated.cs
724
C#
using Amazon.DynamoDBv2; using Amazon.DynamoDBv2.Model; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Orleans.Configuration; using Orleans.Runtime; using Orleans.Runtime.MembershipService; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; usin...
45.646341
236
0.567116
[ "MIT" ]
Abramalin/orleans
src/AWS/Orleans.Clustering.DynamoDB/Membership/DynamoDBMembershipTable.cs
26,201
C#
using System; using NpcService.Ai.NpcType; namespace NpcService.Ai.NpcCitizen { public class AdventurerAgentTown26 : Citizen { } }
14.4
48
0.729167
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
dr3dd/L2Interlude
NpcService/Ai/NpcCitizen/AdventurerAgentTown26.cs
144
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; //using static System.Console; namespace R5.Internals.Abstractions.Expressions { public class MisterInspector : ExpressionVisitor { private int _depth { get; set; } = 0; private string _indentStr...
20.290323
115
0.673609
[ "MIT" ]
rushfive/FFDB
R5.Internals/R5.Internals.Abstractions/Expressions/MisterInspector.cs
6,292
C#
#region License // // Copyright 2002-2019 Drew Noakes // Ported from Java to C# by Yakov Danilov for Imazen LLC in 2014 // // 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 // // ...
36.628571
124
0.667317
[ "Apache-2.0" ]
XelaNimed/metadata-extractor-dotnet
MetadataExtractor/Formats/Exif/PanasonicRawWbInfo2Descriptor.cs
2,564
C#
namespace Noteapp.Core { public static class Constants { public static readonly int MAX_BULK_NOTES = 100; public static readonly int MAX_TEXT_LENGTH = 30_000; public static readonly int PUBLIC_URL_LENGTH = 8; } }
25
60
0.684
[ "MIT" ]
andvant/Noteapp
src/Core/Constants.cs
252
C#
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
41.772727
100
0.730686
[ "Apache-2.0" ]
amanda-tarafa/gapic-generator-csharp
Google.Api.Generator.Tests/ProtoTests/ResourceNames/Testing.ResourceNames.StandaloneSnippets/ResourceNamesClient.DeprecatedPatternMethodResourceNamesAsyncSnippet.g.cs
1,840
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ExtendedTypes; using System.Data; using Declensions.Unicode; using System.Text.RegularExpressions; using System.Runtime.Serialization; using System.Diagnostics; using System.Windows.Forms; using System.Runtime.InteropServices; ...
49.386513
205
0.590452
[ "MIT" ]
jestonedev/ActivityManager
ConvertModule/ConvertPlugin.cs
73,650
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("Fi...
37.702703
84
0.744803
[ "MIT" ]
StefanRomanov/Programing-Fundamentals-February-2017
Regex - Exercise/Find_Emails/Properties/AssemblyInfo.cs
1,398
C#
public class Solution { private void ReverseInWord(char[] s, int startIndex, int start, int end) { for(int i = start; end > start && i <= (end + start) / 2; ++i) { char temp = s[i]; s[i] = s[end - (i - start)]; s[end - (i - start)] = temp; } ...
29.826087
90
0.452624
[ "MIT" ]
xtt129/LeetCode
C#/ReverseWordsInAString.cs
1,372
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. /*============================================================ ** ** ** ** Represents a document referenced by a symbol store. A document is ** defined by a URL and a d...
34.395833
101
0.595397
[ "MIT" ]
CyberSys/coreclr-mono
src/mscorlib/src/System/Diagnostics/SymbolStore/ISymDocument.cs
1,651
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using ProDocente.dominio; namespace ProDocente.visual { public partial class Asistencia : Form { private List<CTipoAsistencia> lisTipoAsi...
31.543353
121
0.513469
[ "Apache-2.0" ]
xalfonso/teachingprocess
ProDocente/visual/Asistencia.cs
5,457
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MovieDojo.Models.Contracts { public interface IAudidInfo { DateTime CreatedOn { get; set; } DateTime? ModifitedOn { get; set; } } }
18
43
0.688889
[ "MIT" ]
Vesk0/MovieDojo
MovieDojo/Models/Contracts/IAudidInfo.cs
272
C#
using Superpower.Display; namespace Superpower.Benchmarks.ArithmeticExpressionScenario { enum ArithmeticExpressionToken { None, Number, [Token(Category = "operator", Example = "+")] Plus, [Token(Category = "operator", Example = "-")] Minus, [Token(Cat...
18.793103
60
0.524771
[ "Apache-2.0" ]
BenjaminHolland/superpower
test/Superpower.Benchmarks/ArithmeticExpressionScenario/ArithmeticExpressionToken.cs
547
C#
// Copyright (C) Microsoft Corporation. All rights reserved. using System; using System.Threading.Tasks; using Windows.Media; namespace FrameSourceHelper_UWP { /// <summary> /// Standard FrameSource interface to wrap Video, Camera, and any other media streams in /// </summary> public interface IFrame...
33.631579
167
0.552034
[ "MIT" ]
AdamBraden/WindowsVisionSkillsPreview
samples/Common/cs/IFrameSource.cs
2,558
C#
using System; using System.Collections.Generic; using System.Windows.Media; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CG_Project_3 { public static class DrawingAlgorithms { public static List<PixelPoint> lineDDA(int x1, int y1, int x2, int y2, Colour color, int brus...
41.37037
154
0.442853
[ "MIT" ]
Milka03/Computer-Graphics-Projects
CG_Project_3/CG_Project_3/DrawingAlgorithms.cs
13,406
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 ...
13.515294
63
0.51532
[ "Apache-2.0" ]
awei1688/aliyun-openapi-net-sdk
aliyun-net-sdk-dataworks-public/Dataworks_public/Model/V20200518/GetQualityRuleResponse.cs
5,744
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...
26
83
0.436538
[ "MIT" ]
maxwang/platform-client-sdk-dotnet
build/src/PureCloudPlatform.Client.V2/Model/SecurityProfile.cs
6,240
C#
// // MenuItemBackend.cs // // Author: // Lluis Sanchez <lluis@xamarin.com> // // Copyright (c) 2011 Xamarin Inc // // 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 restr...
21.189516
168
0.680685
[ "MIT" ]
TheBrainTech/xwt
Xwt.XamMac/Xwt.Mac/MenuItemBackend.cs
5,255
C#
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
39.536585
102
0.698951
[ "Apache-2.0" ]
AlexandrTrf/google-cloud-dotnet
apis/Google.Cloud.Tasks.V2/Google.Cloud.Tasks.V2.GeneratedSnippets/CloudTasksClient.GetQueueResourceNamesSnippet.g.cs
1,621
C#
using Orleans.Transactions.TestKit.xUnit; using Xunit.Abstractions; using Xunit; namespace Orleans.Transactions.Tests { [TestCategory("BVT"), TestCategory("Transactions")] public class GoldenPathTransactionMemoryTests : GoldenPathTransactionTestRunnerxUnit, IClassFixture<MemoryTransactionsFixture> { ...
31.3125
130
0.756487
[ "MIT" ]
1007lu/orleans
test/Transactions/Orleans.Transactions.Tests/Memory/GoldenPathTransactionMemoryTests.cs
503
C#
using System; using WwExternalLoginWithCustomQRDemo.Data; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.UI; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; [assembly: HostingSt...
32.857143
105
0.776812
[ "MIT" ]
stg609/WwExternalLogin
WwExternalLogin/WwExternalLoginWithCustomQRDemo/Areas/Identity/IdentityHostingStartup.cs
692
C#
// <copyright> // MIT License // // Copyright (c) 2017 Sebastian K. Erben // // 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 /...
32.029851
96
0.675676
[ "MIT" ]
SebastianKErben/SKE.Unity3D
SKE/Unity3D/Cryptography/Utils/SecureStore.cs
4,294
C#
using System; using UnityEditor; namespace Toolbox.Editor.Internal { internal class ZeroIndentScope : IDisposable { private int prevIndent; public ZeroIndentScope() { Prepare(0); } public void Prepare(int nextIndent) { prevIndent = Edi...
18.666667
48
0.559524
[ "MIT" ]
Studio-301/Unity-Editor-Toolbox
Assets/Editor Toolbox/Editor/Internal/ZeroIndentScope.cs
506
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; public partial class frmOutstandingTotal : DBUtility { DataSet dsObj = new DataSet(); DataSet dsObj1 = new DataSet(); string query1, query2, query6...
36.012766
317
0.485053
[ "MIT" ]
clearcodetechnologies/cctSchoolApplication
frmOutstandingTotal.aspx.cs
8,465
C#
using System; using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; using System.Text; namespace LibGit2Sharp.Core { internal abstract class EncodingMarshaler : ICustomMarshaler { private readonly Encoding encoding; protected EncodingMarshaler(Encoding en...
25.121212
99
0.475995
[ "MIT" ]
AArnott/libgit2sharp
LibGit2Sharp/Core/EncodingMarshaler.cs
4,147
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...
36.971963
276
0.610971
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/DataFactory/Latest/Outputs/WebHookActivityResponse.cs
3,956
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://ww...
44.92602
246
0.597274
[ "MIT" ]
AuxMon/azure-powershell
src/Automation/Automation/Common/AutomationPSClient.cs
86,096
C#
//------------------------------------------------------------------------------ // <auto-generated> // 此代码由工具生成。 // 运行时版本:4.0.30319.42000 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // </auto-generated> //------------------------------------------------------------------------------ namespace M...
38.609375
185
0.591663
[ "MIT" ]
Baka632/SquareMinecraftLauncherCore
WindowsFormsApp1/Properties/Resources.Designer.cs
2,831
C#
#nullable enable using System; using System.Collections.Generic; using System.Linq; using BurnSystems.Logging; using DatenMeister.Core.EMOF.Implementation; using DatenMeister.Core.EMOF.Implementation.DotNet; using DatenMeister.Core.EMOF.Interface.Reflection; using DatenMeister.Core.Helper; namespace DatenMeister.Cor...
39.597884
147
0.580839
[ "MIT" ]
mbrenn/datenmeister-new
src/DatenMeister.Core/Provider/DotNet/DotNetProviderExtensions.cs
7,486
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Braces.Core.ExtensionSystem; namespace Braces.ApiServer.Interfaces { public interface IPluginClient : IPlugin { Task OnFileOpen( object args ); Task OnFileSave( object args ); } }
19.625
44
0.72293
[ "MIT" ]
joao-neves95/Braces
Braces.ApiServer/Interfaces/IPluginClient.cs
316
C#
namespace MilanWebStore.Web.ViewModels.NavBars { using System.Collections.Generic; using MilanWebStore.Data.Models; using MilanWebStore.Services.Mapping; public class ParentNavViewModel : IMapFrom<ParentCategory> { public int Id { get; set; } public string Name { get; set; } ...
24.176471
85
0.698297
[ "MIT" ]
MihailKarabashev/MilanWebStore
Web/MilanWebStore.Web.ViewModels/NavBars/ParentNavViewModel.cs
413
C#
namespace NLog.BinaryCompatTests { using System; using NLog.Config; public static class LogManagerTests { public static void Configuration() { LogManager.Configuration = new XmlLoggingConfiguration("NLog.config"); LogManager.Configuration = null; } ...
24.863014
82
0.569697
[ "BSD-3-Clause" ]
SNBnani/NLog
tests/NLog.BinaryCompatTests/LogManagerTests.cs
1,817
C#
//------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.10 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //----...
32.357143
116
0.703091
[ "MIT" ]
WaveEngine/Extensions
WaveEngine.NoesisGUI/Shared/Proxies/LineGeometry.cs
3,624
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace DTO { public class Doacao : Model { public int IdDoador { get; set; } public Doador Doador { get; set; } public int Quantidade { get; set; } public EStatusDoacao Sta...
24.361111
90
0.54618
[ "Apache-2.0" ]
franciscosens/doa-sangue
backend/DoaSangueWS/DTO/Doacao.cs
881
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace BlogCoreEngine.Core.Entities { public class BaseEntity { [Key] public Guid Id { get; set; } public DateTime Created { get; set; } public DateTime Modified...
19.055556
46
0.661808
[ "MIT" ]
abhi345316/.net-project
src/Reddnet.Core/Entities/BaseEntity.cs
345
C#
using BenchmarkDotNet.Attributes; using System.Collections.Generic; namespace AnagramsAndPrimeNumbers.Performance { [MemoryDiagnoser] public class AreAnagrams { // All of these are public IEnumerable<object[]> GetArguments() { yield return new[] { "cdeab", "daebc" }; yield return new[] { "mentsbatte",...
40.595745
123
0.8087
[ "MIT" ]
joycestick/AnagramsAndPrimeNumbers
AnagramsAndPrimeNumbers.Performance/AreAnagrams.cs
1,910
C#
namespace NedbankTest.Sessions.Dto { public class GetCurrentLoginInformationsOutput { public ApplicationInfoDto Application { get; set; } public UserLoginInfoDto User { get; set; } public TenantLoginInfoDto Tenant { get; set; } } }
22.583333
59
0.678967
[ "MIT" ]
onu22/NedBankChallenge
aspnet-core/src/NedbankTest.Application/Sessions/Dto/GetCurrentLoginInformationsOutput.cs
273
C#
using System; using System.Diagnostics; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.ApplicationModel.Background; using Windows.Foundation; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace MJPEGStreamer { /// <summary> ...
36.315152
112
0.580441
[ "MIT" ]
basharast/MJPEGStreamer
src/MJPEGStreamer/App.xaml.cs
5,994
C#
namespace TonSdk.Modules.Abi.Models { public struct ResultOfEncodeInternalMessage { /// <summary> /// Message BOC encoded with <c>base64</c>. /// </summary> public string Message { get; set; } /// <summary> /// Destination address. /// </summary> ...
23.333333
55
0.504082
[ "Apache-2.0" ]
vcvetkovs/TonSdk
src/TonSdk/Modules/Abi/Models/Results/ResultOfEncodeInternalMessage.cs
492
C#
namespace DivideAndConquer { using System.IO; using System.Text.RegularExpressions; using System.Threading.Tasks; public class AsyncFileSearcher { private readonly string fileContent; public AsyncFileSearcher(string filePath) => this.fileContent = File.ReadAllText(file...
24
73
0.632576
[ "MIT" ]
zrusev/SoftUni_2016
28. Multithreading/Multithreading/01. DivideAndConquer/AsyncFileSearcher.cs
530
C#
//------------------------------------------------------------------------------ // <copyright file="NetworkAddressModeType.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------------------ ...
31.36
82
0.465561
[ "Apache-2.0" ]
Bhaskers-Blu-Org2/XboxConsole
XboxConsole.Infrastructure/Configuration/NetworkAddressModeType.cs
786
C#
using System; namespace TickTrader.Algo.Indicators.Tests.TestCases { public abstract class PeriodShiftTestCase<TAns> : PeriodTestCase<TAns> { public int Shift { get; protected set; } protected PeriodShiftTestCase(Type indicatorType, string symbol, string quotesPath, string answerPath, ...
30.243902
110
0.624194
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
SoftFx/TTAlgo
src/csharp/tests/TickTrader.Algo.Indicators.Tests/TestCases/PeriodShiftTestCase.cs
1,242
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace AlibabaCloud.SDK.ROS.CDK.Cr { /// <summary>A ROS resource type: `ALIYUN::CR::Namespace`.</summary> [JsiiClass(nativeType: typeof(AlibabaCloud.SDK.ROS.CDK.Cr.Namespace), fullyQualifiedName: "@alicloud/ros-cdk-cr.Namespace...
56.023256
463
0.668327
[ "Apache-2.0" ]
aliyun/Resource-Orchestration-Service-Cloud-Development-K
multiple-languages/dotnet/AlibabaCloud.SDK.ROS.CDK.Cr/AlibabaCloud/SDK/ROS/CDK/Cr/Namespace.cs
2,409
C#
using Microsoft.Management.Infrastructure; using Microsoft.Management.Infrastructure.Options; using SimCim.Core; using System; using System.Collections.Generic; using System.Linq; using System.Reactive.Linq; namespace SimCim.Root.StandardCimV2 { public struct MSFTNetFirewallRuleFiltersAssociation {...
47.895833
193
0.703349
[ "Apache-2.0" ]
simonferquel/simcim
SimCim.Root.StandardCimV2/AssociationMSFTNetFirewallRuleFilters.cs
2,301
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014-2020 Ingo Herbote * https://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file...
39.7
65
0.732997
[ "Apache-2.0" ]
hnjm/YAFNET
yafsrc/GlobalAssemblyInfo.cs
1,166
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...
40.592593
152
0.569343
[ "BSD-3-Clause" ]
HaaLeo/MarkdownOutlook
MarkdownOutlook/Properties/Settings.Designer.cs
1,098
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. /*============================================================ ** Type: Assembly ** ==============================================================*/ using global::...
25.102362
101
0.539523
[ "MIT" ]
ZZHGit/corert
src/System.Private.Reflection/src/System/Reflection/Assembly.cs
3,188
C#
using Abp.Application.Services; using Abp.Application.Services.Dto; using ngDemo.Models; using ngDemo.MoneyAccount.Dto; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace ngDemo.MoneyAccount { public interface IMoneyAccountAppService : IAsyncCrudAppService<A...
28.4375
131
0.789011
[ "MIT" ]
TruthLiAng/ng_NetCore
src/ngDemo.Application/MoneyAccount/IMoneyAccountAppService.cs
457
C#
using NUnit.Framework; using Umbraco.Core.Persistence.Mappers; using Umbraco.Core.Persistence.SqlSyntax; namespace Umbraco.Tests.Persistence.Mappers { [TestFixture] public class PropertyGroupMapperTest { [Test] public void Can_Map_Id_Property() { // Arrange ...
28.204082
83
0.557164
[ "MIT" ]
Abhith/Umbraco-CMS
src/Umbraco.Tests/Persistence/Mappers/PropertyGroupMapperTest.cs
1,384
C#
using System; namespace Meel.Search { public class DeletedSearchKey : ISearchKey { private bool inverted; public DeletedSearchKey(bool inverted) { this.inverted = inverted; } public SearchDepth GetSearchDepth() { return SearchDepth.Flag...
19
65
0.568421
[ "MIT" ]
ynse01/meel
Meel/Search/DeletedSearchKey.cs
477
C#
using McMaster.Extensions.CommandLineUtils; using SpocR.Managers; namespace SpocR.Commands.Project { [HelpOption("-?|-h|--help")] [Command("update", Description = "Update an existing SpocR Project")] public class ProjectUpdateCommand : ProjectCommandBase, IProjectUpdateCommandOptions { [Optio...
32.181818
112
0.695621
[ "MIT" ]
nuetzliches/spocr
src/Commands/Project/ProjectUpdateCommand.cs
1,418
C#
using UserService.Core.Domains.Entities; using UserService.Core.Interfaces.Repositories; using MediatR; using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; namespace UserService.Handlers { public class PutModifyRegistrationPageFourHandler : IReq...
33.724138
148
0.768916
[ "MIT" ]
factor-50-devops-bot/user-service
UserService/UserService.Handlers/PutModifyRegistrationPageFourHandler.cs
980
C#
using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; namespace BaGet.Core.Entities { public interface IContext { DatabaseFacade Database { get; } DbSet<Package> Packages { get; set; } /// <summary> ...
32.478261
105
0.665328
[ "MIT" ]
2m0nd/BaGet
src/BaGet.Core/Entities/IContext.cs
749
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Allgemeine Informationen über eine Assembly werden über die folgenden // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // die einer Assembly zugeordnet sind. [assembly: Assem...
40.864865
106
0.762566
[ "MIT" ]
marleneherke/hangman
Properties/AssemblyInfo.cs
1,527
C#
using System; using System.Runtime.Serialization; namespace AOMapper.Exceptions { #if !PORTABLE [Serializable] #endif public class InvalidTypeBindingException : Exception { public string Path { get; private set; } public Type SourceType { get; private set; } public Type TargetType ...
30.044444
145
0.630917
[ "MIT" ]
zjklee/AOMapper
AOMapper/Exceptions/InvalidTypeBindingException.cs
1,354
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...
35.630303
116
0.610818
[ "Apache-2.0" ]
GitGaby/aws-sdk-net
sdk/src/Services/Rekognition/Generated/Model/StartFaceDetectionRequest.cs
5,879
C#
// <copyright file="UserTypesClient.Generated.cs" company="Okta, Inc"> // Copyright (c) 2014 - present Okta, Inc. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. // </copyright> // This file was automatically generated. Don't modify ...
39.048544
158
0.568125
[ "Apache-2.0" ]
Christian-Oleson/okta-sdk-dotnet
src/Okta.Sdk/Generated/UserTypesClient.Generated.cs
4,022
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...
34.95122
133
0.66783
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/CognitiveServices/Inputs/PrivateLinkServiceConnectionStateArgs.cs
1,433
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("04...
38.567568
84
0.744919
[ "MIT" ]
plamenrusanov/Programming-Fundamentals
Objects and Simple Classes - Lab/04. Distance between Points/Properties/AssemblyInfo.cs
1,430
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BPMCalculator : MonoBehaviour { public float timer = 0f; public float BPM; public bool timerStart = false; // Start is called before the first frame update void Start() { } // Update i...
17.348837
54
0.525469
[ "Unlicense" ]
OzHache/Electronic-Frogger
Electronic Frogger/Assets/BPMCalculator.cs
748
C#
using QuestomAssets.AssetsChanger; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; namespace QuestomAssets { public class BundleFileProvider : IAssetsFileProvider { private FileStream _fileStream; private BundleFile _bun...
30.57037
124
0.565544
[ "MIT" ]
sc2ad/QuestStopgap
QuestomAssets/BundleFileProvider.cs
4,129
C#
using System; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using Steamworks.Data; namespace Steamworks { internal class ISteamScreenshots : SteamInterface { public override string InterfaceName => "STEAMSCREENSHOTS_INTERFACE_VERSION003"; public override void InitInte...
37.917808
149
0.786127
[ "MIT" ]
FromZeus/Facepunch.Steamworks
Facepunch.Steamworks/Generated/Interfaces/ISteamScreenshots.cs
5,536
C#
/* * THIS FILE WAS GENERATED BY PLOTLY.BLAZOR.GENERATOR */ using System; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Text.Json.Serialization; namespace Plotly.Blazor.Traces.StreamTubeLib { /// <summary> /// The LightPosition c...
32.033898
92
0.510053
[ "MIT" ]
HansenBerlin/PlanspielWebapp
Plotly.Blazor/Traces/StreamTubeLib/LightPosition.cs
3,780
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...
39.464706
195
0.586675
[ "MIT" ]
azure-keyvault/azure-sdk-for-net
src/SDKs/EventHub/Management.EventHub/Generated/EventHubManagementClient.cs
13,418
C#
using System; using Timeline.Commands; namespace Sample.Application.Write { public class DepositMoney : Command { public decimal Amount { get; set; } public Guid Transaction { get; set; } public DepositMoney(Guid account, decimal amount, Guid transaction) { ...
22.846154
76
0.555556
[ "MIT" ]
Daniel-Miller/Timeline
Sample.Application/Write/Commands/DepositMoney.cs
596
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.204545
81
0.663657
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet
TencentCloud/Tat/V20201028/Models/ModifyCommandResponse.cs
1,387
C#
using Microsoft.Azure.Test.HttpRecorder; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Azure.CognitiveServices.Personalizer.Models; using Xunit; namespace Microsoft.Azure.CognitiveServices.Personalizer.Tests { public class Ra...
41.416667
159
0.55493
[ "MIT" ]
AzureMentor/azure-sdk-for-net
sdk/cognitiveservices/Personalizer/tests/Personalizer/RankServerFeaturesTest.cs
2,485
C#
using UnityEngine; public class Spin : MonoBehaviour { public float SpinningDegrees = 15.0f; public bool SpinOnX = false; public bool SpinOnY = true; public bool SpinOnZ = false; private float rnd_diff = 0.0f; private Vector3 Xaxis = new Vector3(1, 0, 0); private Vector3 Yaxis =...
25.828571
87
0.587389
[ "MIT" ]
martinkro/tutorials-unity3d
Match-3 Starter Kit/Assets/Match3StarterKit/Scripts/Spin.cs
904
C#
using System; using System.Collections.Generic; using System.Data; using System.Threading.Tasks; using Dapper; using FluentDbTools.Extensions.SqlBuilder; using FluentDbTools.Common.Abstractions; using Example.FluentDbTools.Database.Entities; using FluentDbTools.SqlBuilder.Abstractions.Common; namespace Example.FluentD...
38.5
121
0.607916
[ "MIT" ]
aho-dips/FluentDbTools
src/FluentDbTools/Example/Example.FluentDbTools.Database/Select/SelectPersons.cs
1,617
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Domain { /// <summary> /// MerchantCard Data Structure. /// </summary> [Serializable] public class MerchantCard : AopObject { /// <summary> /// 资金卡余额,单位:元,精确到小数点后两位。 /// </summary> [XmlElement("balan...
26.327273
92
0.529006
[ "MIT" ]
erikzhouxin/CSharpSolution
OSS/Alipay/F2FPayDll/Projects/alipay-sdk-NET20161213174056/Domain/MerchantCard.cs
1,888
C#
// // Copyright (c) 2017 Geri Borbás http://www.twitter.com/_eppz // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
36.182927
464
0.749916
[ "MIT" ]
Geri-Borbas/Unity.Library.eppz.Geometry
Scenes/Controllers/Controller_5.cs
2,970
C#
namespace Faraboom.Framework.Mvc.ViewFeatures { using System; using System.Globalization; using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewEngines; using Microsoft.AspNetCore.Mvc.ViewFe...
42.080292
126
0.606765
[ "Apache-2.0" ]
faraboom/framework
Faraboom.Framework/Mvc/ViewFeatures/TemplateBuilder.cs
5,767
C#
// Copyright (c) Jeroen van Pienbroek. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for full license information. using AdvancedInputFieldPlugin; using System.Collections.Generic; using UnityEngine; namespace AdvancedInputFieldSamples { public class SpellCheckerContro...
24.642336
133
0.665877
[ "MIT" ]
Yunatan/AdvancedInputField
Assets/AdvancedInputField/Samples/Scripts/SpellCheckerController.cs
3,378
C#
using Microsoft.Extensions.Localization; using System.Reflection; namespace AspNetCoreSpa.STS.Resources { public class LocService { private readonly IStringLocalizer _localizer; public LocService(IStringLocalizerFactory factory) { var type = typeof(SharedResource); ...
28.518519
86
0.657143
[ "MIT" ]
Anberm/AspNetCoreSpa
src/AspNetCoreSpa.STS/Resources/LocService.cs
772
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. using FASTER.core; using System; namespace StoreCheckpointRecover { public sealed class Functions : FunctionsBase<MyKey, MyValue, MyInput, MyOutput, MyContext> { public override void InitialUpdater(ref MyK...
46.8
163
0.688034
[ "MIT" ]
4nonym0us/FASTER
cs/samples/StoreCheckpointRecover/Functions.cs
1,406
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLi...
48.316327
241
0.715312
[ "MIT" ]
1Crazymoney/machinelearning
src/Microsoft.ML.Ensemble/Trainer/Regression/RegressionEnsembleTrainer.cs
4,737
C#
using System; using System.Collections.Generic; using System.IO; namespace Common.CsvIO { public class Reader { public List<Gift> GetGifts(string filePath) { var reader = new StreamReader(File.OpenRead(filePath)); var gifts = new List<Gift>(); var header =...
25.166667
67
0.471854
[ "MIT" ]
kw90/SantasSledge
Santa/Common/CsvIO/Reader.cs
1,210
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace bossdoyKaraoke_NOW.Models { public static class QueuedBackgroundWorker { public static void QueueWorkItem<Tin, Tout>(Queue<QueueItem<Tin>> queue, T...
29.771084
183
0.562525
[ "MIT" ]
TanieSC/bossdoyKaraoke_NOW
bossdoyKaraoke_NOW/Models/QueuedBackgroundWorker.cs
2,473
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; public class ProbabilityList<T> : IEnumerable<KeyValuePair<T, float>> { private List<T> values = new List<T>(); private List<float> probabilities = new List<float>(); public ProbabilityList () {} public ProbabilityList (IList<T> values...
24.146341
93
0.656061
[ "MIT" ]
tomkail/UnityX
Assets/UnityX/Scripts/Extensions/Collections/ProbabilityList.cs
1,980
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT license. See License.txt in the project root for license information. using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Composition; using System.Diagnostics; using System.Linq; using Micro...
36.718615
164
0.596086
[ "MIT" ]
genlu/aspnetcore-tooling
src/Razor/src/Microsoft.VisualStudio.LanguageServer.ContainedLanguage/DefaultLSPDocumentManager.cs
8,484
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.Linq; using System.Threading; using System.Threading.Tasks; using Azure.Core.TestFramework; using Azure.Storage.Blobs.Mode...
41.701818
238
0.581139
[ "MIT" ]
AzureSDKAutomation/azure-sdk-for-net
sdk/storage/Azure.Storage.Blobs/tests/PartitionedUploaderTests.cs
22,938
C#