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
namespace AspNetCoreApi { using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using IdentityServer4.AccessTokenValidation; using System; public class Startup { public void ConfigureServices(IServiceCollection services) { services ...
30.642857
78
0.518065
[ "Apache-2.0" ]
madeinchinalmc/IdentityBase
samples/AspNetCoreApi/Startup.cs
1,716
C#
namespace Glacie.CommandLine.UI { internal static class StringUtilities { /// <summary> /// Create excerpt string with number of characters. /// </summary> public static string? Excerpt(string? value, int count) { if (string.IsNullOrEmpty(value) || value.Len...
24.444444
68
0.547727
[ "MIT" ]
Lixiss/Glacie
src/Glacie.CommandLine/UI/Rendering/StringUtilities.cs
442
C#
//----------------------------------------------------------------------------- // Copyright : (c) Chris Moore, 2020 // License : MIT //----------------------------------------------------------------------------- namespace Z0 { /// <summary> /// Defines identifiers corresponding to the hex digits 0,..,...
24.615385
79
0.386719
[ "BSD-3-Clause" ]
0xCM/z0
src/root/src/symbols/literals/hex/Hex3Seq.cs
1,280
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Acme.Biz; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Acme.Common; namespace Acme.Biz.Tests { [TestClass()] public class ProductTests { [TestMethod()] pu...
27.463415
86
0.565719
[ "MIT" ]
nathanpabst/CSharpBP-Collections
AcmeApp/Tests/Acme.BizTests/ProductTests.cs
3,380
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("Tw...
38.081081
84
0.747339
[ "BSD-2-Clause" ]
SaxxonPike/scharfrichter
TwinkleIIDXExtract/Properties/AssemblyInfo.cs
1,412
C#
namespace NSW.EliteDangerous.API.Events { public class SystemsShutdownEvent : JournalEvent { internal static SystemsShutdownEvent Execute(string json, API.EliteDangerousAPI api) => api.ShipEvents.InvokeEvent(api.FromJson<SystemsShutdownEvent>(json)); } }
39.142857
165
0.770073
[ "MIT" ]
h0useRus/EliteDangerousAPI
EliteDangerousAPI/src/EliteDangerousAPI/Events/Ship/SystemsShutdownEvent.cs
274
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace EventSourcing.ForgettablePayloads.Extensions.DatabaseMigrations.Persistence.SqlServer { /// <summary> /// Provider of SQL Server database migration scripts /...
38.736264
153
0.547234
[ "MIT" ]
TheName/EventSourcing
EventSourcing.ForgettablePayloads/Persistence/SqlServer/Extensions.DatabaseMigrations.SqlServer/SqlServerDatabaseMigrationScriptsProvider.cs
3,527
C#
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
64.894737
100
0.62206
[ "MIT" ]
Agazoth/azure-powershell
src/StreamAnalytics/generated/runtime/Method.cs
1,215
C#
using System; using System.Activities; namespace Cogito.ServiceFabric.Activities.Test.Activities { public class WriteActivity : CodeActivity { protected override void Execute(CodeActivityContext context) { Console.WriteLine("foo"); } } }
15.789474
68
0.643333
[ "MIT" ]
alethic/Cogito.ServiceFabric.Activities
Cogito.ServiceFabric.Activities.Test.Activities/WriteActivity.cs
302
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Crystallography; using System.IO; namespace PDIndexer { public partial class FormExportGSAS : Form { publi...
37.236686
177
0.409185
[ "MIT" ]
seto77/PDIndexer
PDIndexer/FormExportGSAS.cs
6,319
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace AdventOfCode.Solutions.Year2021 { class Day08 : ASolution { public Day08() : base(08, 2021, "") { } protected override string SolvePartOne(string input) ...
31.085714
81
0.369301
[ "MIT" ]
SpiritBlues7/AdventOfCode
AdventOfCode/Solutions/Year2021/Day08/Day08.cs
5,440
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEditor; using UnityEngine; namespace ChartAndGraph { class EditorMenu { private static void InstanciateCanvas(string path) { Canvas[] canvases = GameObject.FindObjectsOfType<Canvas>(); ...
35.201258
122
0.595676
[ "MIT" ]
bigdot-app/BigDOT
Assets/Editor/Chart And Graph/EditorMenu.cs
5,599
C#
using Checkout.ApiServices.Cards.RequestModels; using Checkout.ApiServices.Charges.RequestModels; using Checkout.ApiServices.Customers.RequestModels; using Checkout.ApiServices.Reporting.RequestModels; using Checkout.ApiServices.RecurringPayments.RequestModels; using Checkout.ApiServices.SharedModels; using Checkout.A...
38.373817
156
0.5216
[ "MIT" ]
adrien117/client-sdk
Checkout.ApiClient.Tests/TestHelper.cs
24,331
C#
using System; // ReSharper disable once CheckNamespace namespace DlibDotNet { public sealed partial class PerspectiveWindow { public sealed class OverlayDot : DlibObject { #region Constructors public OverlayDot(Vector<double> point) : this(NativeMeth...
31.629032
140
0.568587
[ "MIT" ]
LunaRyuko/DlibDotNet
src/DlibDotNet/GuiWidgets/OverlayDot.cs
3,924
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Web; using AzureBlobFileSystem.Contract; using AzureBlobFileSystem.Extensions; using AzureBlobFileSystem.Model; using Microsoft.WindowsAzure.Storage.Blob; using FileInfo = AzureBlobFileSystem.M...
35.901042
142
0.619324
[ "MIT" ]
mihaicrisanbodea/azureFileSystem
AzureBlobFileSystem/Implementation/StorageFileService.cs
6,893
C#
namespace Fish_Aquarium_Project { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary...
43.10989
108
0.58858
[ "Apache-2.0" ]
EthanLawr/ComputerScience
Computer Science/Year_2_CSharp/Fish_Aquarium_Project_Solution/Fish_Aquarium_Project/Form1.Designer.cs
3,925
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace RVHD.Models.ManageViewModels { public class AddPhoneNumberViewModel { [Required] [Phone] [Display(Name = "Phone number")] publ...
21.411765
47
0.695055
[ "Apache-2.0" ]
nguyendev/RVHD
Code/RVHD/Models/ManageViewModels/AddPhoneNumberViewModel.cs
366
C#
using MaSch.Console.Cli.Runtime; using MaSch.Console.Cli.Runtime.Validators; using MaSch.Core.Extensions; using MaSch.Test; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using Moq.Language; using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis;...
44.713311
174
0.595298
[ "MIT" ]
MaSch0212/MaSch
test/Console.Cli.UnitTests/Runtime/CliArgumentParserTests.cs
65,507
C#
using System; using System.Linq; using Microsoft.EntityFrameworkCore; using DatabaseFirstLINQ.Models; namespace DatabaseFirstLINQ { class Problems { private ECommerceContext _context; public Problems() { _context = new ECommerceContext(); } public void RunL...
39.729459
220
0.531551
[ "MIT" ]
cmattox4846/C-Linq-Questions
DatabaseFirstLINQ/Problems.cs
19,827
C#
// MIT License // // Copyright(c) 2020 Pixel Precision 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, copy...
35.126437
214
0.672448
[ "Unlicense" ]
Reavenk/PxPre-Phonics
LLDN/LLDNReference.cs
3,058
C#
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information using Elastic.Xunit.XunitPlumbing; using Nest; using System.ComponentModel; namespace Examples.Indices.Apis { pu...
30.657895
76
0.536052
[ "Apache-2.0" ]
magaum/elasticsearch-net
tests/Examples/Indices/Apis/ReloadAnalyzersPage.cs
2,330
C#
using FluentAssertions; using System; using Xunit; namespace ExplicitMapper.Tests.Mapping.NestedClassMapping.StandardConfiguration { [Collection("Integration tests")] [Trait("Mapping", "Nested class mapping")] public class NestedClassMappingTests : IDisposable { [Fact(DisplayName = "Use standa...
31.244444
87
0.568279
[ "MIT" ]
Taras-Tyrsa/explicit-mapper
src/ExplicitMapper/ExplicitMapper.Tests/Mapping/NestedClassMapping/StandardConfiguration/NestedClassMappingTests.cs
1,408
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; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore.Infrastructure; using Xunit; // ReSharper disable UnusedVariable // ReSharper disable InconsistentNa...
34.309091
116
0.63646
[ "MIT" ]
CameronAavik/efcore
test/EFCore.Specification.Tests/ConcurrencyDetectorDisabledTestBase.cs
1,889
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; using Microsoft.AspNetCore.Compone...
24.892617
111
0.513076
[ "Apache-2.0" ]
First-Coder/BootstrapBlazor
src/BootstrapBlazor/Components/Button/Button.razor.cs
3,937
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 30.03.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
23.441748
136
0.522261
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Query/Operators/SET_002__AS_STR/Multiply/Complete/Double/Int16/TestSet_R504AAB001__param.cs
4,831
C#
using DPE.Core.IRepository.Base; using DPE.Core.Model.Models; namespace DPE.Core.IRepository { public interface IExchangeTotalRepository : IBaseRepository<ExchangeTotal> { } }
19
78
0.757895
[ "MIT" ]
a465717049/mk
DPE.Core.IRepository/IExchangeTotalRepository.cs
192
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Snowflake.Filesystem { /// <summary> /// Represents the root of a Directory that can not be deleted, where each file that is access through a directory is ///...
67.46395
173
0.647275
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
hafixo/snowflake-1
src/Snowflake.Framework.Primitives/Filesystem/IIndelibleDirectory.cs
21,523
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> //--...
39.041667
193
0.605478
[ "MIT" ]
haefele/XemioGameLight
games/Xemio.GamesLight.Games.Pong/Properties/Resources.Designer.cs
2,813
C#
namespace Framework.core { public class LoaderContext { private string path; public string Path { get { return path; } } private int contextId; public int ContextId { get { return contextId; } } public LoaderCont...
17.96
56
0.494432
[ "MIT" ]
ukyohpq/tolua
Assets/Script/Framework/core/LoaderContext.cs
449
C#
using UnityEngine; using UnityEngine.UIElements; using UnityEngine.InputSystem; using UnityEngine.SceneManagement; public class PauseMenu : MonoBehaviour { public GameObject PausePanel; bool isPaused = false; PlayerInputActions playerUIControls; InputAction escapeButton; private void Awake() ...
18.042254
52
0.57299
[ "MIT" ]
ReubenU/OpenGameArtJam2022
Assets/GlobalScripts/PlayerUI/PauseMenu.cs
1,281
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; using System.Threading.Tasks; using System.Windows.Forms; using Timer = System.Windows.Forms.Timer; namespace EliteTradingGUI ...
38.37386
157
0.535921
[ "BSD-2-Clause" ]
Helios-vmg/EliteTrading
EliteTradingGUI/MainForm.cs
12,627
C#
using Core; using System.Diagnostics; namespace WebHost.Logger { public class TraceLogger : ILogger { public void Log(string message) { Trace.TraceInformation(message); } public void Log(string message, params object[] args) { Trace.TraceInforma...
19.888889
61
0.586592
[ "MIT" ]
Enttoi/enttoi-api-dotnet
src/WebHost/Logger/TraceLogger.cs
360
C#
namespace PipeChannelService { using System; using System.Reactive.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using System.Reactive.Disposables; using TinyServer.ReactiveSocket; using System.Net;...
26.483146
116
0.615613
[ "MIT" ]
fzf003/dockerfordotnet5
dotnetapi/PipeChannelService/ServerWorker.cs
2,361
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
33.280702
101
0.70427
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/EC2/Generated/Model/DeleteNetworkInsightsAccessScopeAnalysisResponse.cs
1,897
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity.ModelConfiguration.Internal.UnitTests { using System.Data.Common; /// <summary> /// Used with the FakeSqlConnection class to fake pr...
33.707317
134
0.647612
[ "Apache-2.0" ]
TerraVenil/entityframework
test/EntityFramework/UnitTests/TestHelpers/Fake/FakeSqlProviderFactory.cs
1,384
C#
/* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. */ using System; using System.Web.Mvc; using Adxstudio.Xrm.AspNet.Cms; using Adxstudio.Xrm.Metadata; using Microsoft.Xrm.Sdk; namespace Adxstudio.Xrm.Web.Mvc.Li...
22.193548
94
0.767442
[ "MIT" ]
Adoxio/xRM-Portals-Community-Edition
Framework/Adxstudio.Xrm/Web/Mvc/Liquid/IPortalLiquidContext.cs
688
C#
using UnityEngine; namespace Common.Unity.Cameras { public class SimpleCameraController : MonoBehaviour { class CameraState { public float yaw; public float pitch; public float roll; public float x; public float y; public ...
36.7
137
0.549046
[ "MIT" ]
andybak/CGALUnity
Assets/CommonUnity/Cameras/SimpleCameraController.cs
5,874
C#
using Microsoft.Practices.ServiceLocation; using ProjectX.Common.Utility; using System; using System.Data.Common; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Data.Objects; using System.Data.SqlClient; using System.Data.SqlServerCe; namespace BlueWind.Crawler.Manga.Domain { publ...
33.097222
129
0.567772
[ "Apache-2.0" ]
koneta/MangaPortal
trunk/src/BlueWind.Crawler.Manga/Domain/MangaDataContext.cs
4,768
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...
42.297468
187
0.608035
[ "MIT" ]
333fred/runtime
src/tests/JIT/HardwareIntrinsics/General/Vector128/LessThanOrEqualAll.Int16.cs
13,366
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using JetBrains.Annotations; namespace LinqToDB { using Linq; using Expressions; using PN = LinqToDB.ProviderName; public static partial class Sql { public enum AggregateModifier { None, ...
46.828891
230
0.712827
[ "MIT" ]
FrancisChung/linq2db
Source/LinqToDB/Sql/Sql.Analytic.cs
53,302
C#
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Sistema.Entidades.Almacen; using System; using System.Collections.Generic; using System.Text; namespace Sistema.Datos.Mapping.Almacen { public class DetalleIngresoMap : IEntityTypeConfiguration<DetalleIngreso> { ...
27.368421
77
0.725
[ "Apache-2.0" ]
TIEMSOLUTIONS/backend.unilever
Sistema.Datos/Mapping/Almacen/DetalleIngreso.cs
522
C#
namespace That_One_Nerd.Unity.Games.ArcadeManiac.Misc.Extensions { public static class IsSimilarExtension { public static bool IsSimilar(this string a, string b) => a.Trim().ToLower() == b.Trim().ToLower(); } }
28.875
106
0.692641
[ "Apache-2.0" ]
That-One-Nerd/Arcade-Maniac
Source/Assets/Misc/Scripts/Extensions/IsSimilarExtension.cs
231
C#
/* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. */ namespace Adxstudio.Xrm.Visualizations { using System.Collections.Generic; using System.Linq; using System.Xml.Linq; using Adxstudio.Xrm.Services.Query; ...
32.333333
150
0.711008
[ "MIT" ]
Adoxio/xRM-Portals-Community-Edition
Framework/Adxstudio.Xrm/Visualizations/DataDefinition.cs
3,007
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...
30.5
113
0.628038
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/EC2/Generated/Model/CreditSpecification.cs
1,769
C#
namespace System.Text.Json.Serialization { public class TimeSpanConverter : TimeSpanFormatConverter { public TimeSpanConverter() : base("c") { } } public class TimeSpanFormatConverter : JsonConverter<TimeSpan> { public TimeSpanFormatConverter(string formatStr) ...
28.921053
115
0.616015
[ "Apache-2.0" ]
HEF-Sharp/HEF.Extensions.Serialization
src/HEF.Extensions.SystemTextJson/Converters/TimeSpanConverter.cs
1,101
C#
// Copyright (c) Xenko contributors (https://xenko.com) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. using System; using System.Threading; namespace Xenko.Core.Transactions { /// <summary> /// ...
36.560976
159
0.628419
[ "MIT" ]
Aminator/xenko
sources/core/Xenko.Core.Design/Transactions/ITransaction.cs
1,499
C#
using System; namespace Sce.Pss.HighLevel.UI { public enum KeyEventType { Up, Down, LongPress, Repeat } }
9.076923
30
0.677966
[ "MIT" ]
weimingtom/Sakura
Sce.Pss.HighLevel/UI/KeyEventType.cs
118
C#
/*-----------------------------+------------------------------\ | | | !!!NOTICE!!! | | | | These libraries are under heavy development so they are |...
27.863208
118
0.632131
[ "Apache-2.0" ]
mattnewport/ForgeNetworkingRemastered
Forge Networking Remastered Unity/Assets/Bearded Man Studios Inc/Scripts/MainThreadManager.cs
5,909
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.ContractsLight; using System.Diagnostics.Tracing; using System.Globalization; using System.IO; using System.Linq; using System.Threadi...
42.090014
424
0.547083
[ "MIT" ]
BearerPipelineTest/BuildXL
Public/Src/Tools/Execution.Analyzer/Args.cs
29,926
C#
using System; using System.Collections; using System.Collections.Generic; using Jyx2; using UnityEngine; using XNode; [CreateNodeMenu("流程控制/休息")] [NodeWidth(150)] public class Jyx2RestNode : Jyx2SimpleNode { private void Reset() { name = "休息"; } protected override void DoExecute() { Jyx2L...
14.869565
42
0.687135
[ "MIT" ]
Alinccc/jynew
jyx2/Assets/Scripts/EventsGraph/Nodes/Jyx2RestNode.cs
358
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 Microsoft.AspNet.Builder; using Microsoft.AspNet.Mvc; using Microsoft.Framework.DependencyInjection; namespace CompositeViewEng...
30.081081
111
0.576819
[ "Apache-2.0" ]
walkeeperY/ManagementSystem
test/WebSites/CompositeViewEngineWebSite/Startup.cs
1,115
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Thr...
38.439276
159
0.599825
[ "Apache-2.0" ]
LeeCampbell/Rx.NET
Ix.NET/Source/System.Interactive.Async/Sum.cs
14,878
C#
namespace snake_10.Model { /// <summary> /// ez jelzi a kígyó fejének irányát /// </summary> enum SnakeHeadDirerctionEnum { Up, Down, Left, Right, InPlace } }
18.090909
40
0.562814
[ "Unlicense" ]
akoskiss26/snake_10
snake_10/snake_10/Model/SnakeHeadDirectionEnum.cs
206
C#
// This file is generated. using System; using System.Diagnostics; namespace Vulkan { [DebuggerDisplay("{DebuggerDisplay,nq}")] public partial struct VkInstance : IEquatable<VkInstance> { public readonly IntPtr Handle; public VkInstance(IntPtr existingHandle) { Handle = existingHandle; } ...
68.339623
143
0.699245
[ "MIT" ]
NamelessHoodie/DSParamStudio
vk/src/vk/Generated/Handles.gen.cs
43,464
C#
using CommanderGQL.Models; using Microsoft.EntityFrameworkCore; namespace CommanderGQL.Data { public class AppDbContext: DbContext { public DbSet<Platform> Platforms { get; set; } public DbSet<Command> Commands { get; set; } public AppDbContext(DbContextOptions options): base(options) ...
29.034483
75
0.546318
[ "MIT" ]
shashankvivek/dotnet-gql
CommanderGQL/Data/AppDbContext.cs
842
C#
using System; using System.Data; using JetBat.Client.Entities; using JetBat.Client.Metadata; using JetBat.Client.Metadata.Abstract; using JetBat.Client.Metadata.Definitions; using JetBat.Client.Metadata.Misc; using NUnit.Framework; namespace JetBat.Test.FunctionalTest { public class TwoGoodsInTwoIncomesTe...
51.251889
143
0.506315
[ "BSD-3-Clause" ]
shestakov/jetbat
JetBat.Test/FunctionalTest/TwoGoodsInTwoIncomesTest.cs
20,529
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 30.03.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
24.184466
137
0.527298
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Query/Operators/SET_002__AS_STR/Multiply/Complete/Int32/Decimal/TestSet_R504AAB004__param____VN.cs
4,984
C#
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis.CS...
31.259146
300
0.581976
[ "Apache-2.0" ]
DustinCampbell/roslyn
src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenReadonlyStructTests.cs
41,014
C#
 namespace SelfDC.Models { public class OrderItem { public string productCode { get; set; } public string barcode { get; set; } public int qta { get; set; } public OrderItem(string productCode, string barcode, int qta) { this.productCode = productCode; ...
24.513514
101
0.513782
[ "Apache-2.0" ]
ginopc/SelfDC-Datalogic
Models/OrderItem.cs
909
C#
/* * RESTAPI Service * * RESTful API * * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; usi...
35.737805
163
0.585907
[ "MIT" ]
GeoSCADA/Driver-SELogger
IO.Swagger/Model/ThresholdGetThresholdStatusUnauthorizedResponseBody.cs
5,861
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace MattermostAddinConnect.Mattermost.v4.Interface { public class Team { [JsonProperty("name")] public string Name { get; set; } [JsonProper...
19.842105
56
0.671088
[ "MIT" ]
casanovg/Mattermost-Addin
MattermostAddin-Connect/Mattermost/v4/Interface/Team.cs
379
C#
using System.Collections; using System.Collections.Generic; using UnityEngine.UI; using UnityEngine; using UnityEngine.EventSystems; using InControl; public class ModeButton : MonoBehaviour, ISelectHandler { private GameplayManager GM; private Text ModeTitle; private Text ModeDesc; public string M...
33.245455
122
0.695379
[ "MIT" ]
gluyas/LEGS
Assets/Scripts/ModeButton.cs
3,659
C#
using Cli.Mail.Models; using Cli.Mail.Services; using Cli.Mail.Tests.Builders; using Cli.Mail.Wrappers; using MimeKit; using NSubstitute; using Xunit; namespace Cli.Mail.Tests.Services { public class MailServiceTests { private readonly ISmtpClientWrapper _client; private readonly MailOptions _...
26.568627
81
0.57048
[ "MIT" ]
raschmitt/cli-mail
Cli.Mail/Cli.Mail.Tests/Services/MailServiceTests.cs
1,357
C#
using System; using System.Collections.Generic; using System.Text; using static tysos.ServerObject; namespace tysos.Interfaces { [libsupcs.AlwaysInvoke] public interface IVfs { RPCResult<bool> Mount(string mount_path); RPCResult<bool> Mount(string mount_path, string src); RPCResult...
37.896552
109
0.715196
[ "MIT" ]
jncronin/tysos
tysos/Interfaces/IVfs.cs
1,101
C#
using System.Diagnostics; using System.IO; using TaskTesterConsole.Config; using TaskTesterCore.Constants; namespace TaskTesterCore { public static class Copililer { public static bool Compile(Config config) { Process process = new Process(); ProcessStartInfo startInfo...
33.285714
114
0.597997
[ "MIT" ]
Andriy22/TaskTesterCore
TaskTesterCore/TaskTesterCore/Copililer.cs
1,400
C#
/******************************************************************** The Multiverse Platform is made available under the MIT License. Copyright (c) 2012 The Multiverse Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
35.22093
147
0.67349
[ "MIT" ]
AustralianDisabilityLimited/MultiversePlatform
tools/WorldEditor/PropertyChangeCommand.cs
3,029
C#
using System; namespace Coldairarrow.Util { public static partial class Extention { /// <summary> /// int转Ascll字符 /// </summary> /// <param name="ascllCode"></param> /// <returns></returns> public static string ToAscllStr(this int ascllCode) { ...
32.604651
128
0.544223
[ "MIT" ]
2644783865/Colder.Admin.AntdVue
src/Coldairarrow.Util/Extention/Extention.Int.cs
1,542
C#
using System.Net.Sockets; using System.Text; namespace Common.Connection { // State object for receiving data from remote device. public class StateObject { // Client socket. public Socket workSocket = null; // Size of receive buffer. public const int BufferSize ...
26.842105
59
0.609804
[ "BSD-3-Clause" ]
jasinskib/Software_Engineering_2_ProjectGame
src/Common/Connection/StateObject.cs
512
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/DirectML.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using Syst...
38.953488
145
0.724179
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
tests/Interop/Windows/DirectX/um/DirectML/DML_ACTIVATION_LINEAR_OPERATOR_DESCTests.cs
1,677
C#
using System; using System.Windows.Forms; namespace BluetoothSerialServerTool { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { #if NETCOREAPP Applicatio...
24.043478
66
0.585895
[ "MIT" ]
tewarid/dotnet-tools
BluetoothSerialServerTool/Program.cs
555
C#
namespace StraightSql { using System; using System.Collections.Generic; using System.Threading.Tasks; public interface IContextualizedQuery : IQuery { Task<Boolean> AnyAsync(); Task<Int64> CountAsync(); Task ExecuteAsync(); Task<T> ExecuteScalarAsync<T>(); Task<T> FirstAsync<T>() where T...
31
57
0.66005
[ "MIT" ]
brendanjbaker/StraightSQL
src/StraightSql/IContextualizedQuery.cs
808
C#
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.IO; using System.Diagnostics; using AssetStudio.Utils; namespace AssetStudio { static class Program { /// <summary> /// The main entry point for the application. /// </summary> ...
20.457627
72
0.604805
[ "MIT" ]
df32/AssetStudio
AssetStudio/Program.cs
1,209
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...
37.110236
239
0.634203
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DBforPostgreSQL/V20171201Preview/GetServerSecurityAlertPolicy.cs
4,713
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> //-----------------------------------------...
24.944444
81
0.423163
[ "Apache-2.0" ]
Ruke45/DManagement
DSCMS/DSCMS/Views/Invoice/InvoiceGenarator.aspx.designer.cs
451
C#
using System; using System.Reactive.Concurrency; using System.Reactive.Linq; using Stethoscope.Common; namespace Stethoscope.Log.Internal { /// <summary> /// Storage for log entries. /// </summary> public interface IRegistryStorage { /// <summary> /// Access the log entries stored...
34.8
227
0.598978
[ "MIT" ]
rcmaniac25/stethoscope
stethoscope/StethoscopeLib/Sources/LogComponents/Internal/IRegistryStorage.cs
1,568
C#
//Copyright ?2014 Sony Computer Entertainment America LLC. See License.txt. namespace Sce.Atf.Dom { /// <summary> /// Primitive types for attributes</summary> public enum AttributeTypes { /// <summary> /// Boolean</summary> Boolean, /// <summary> //...
19.838462
76
0.42342
[ "Apache-2.0" ]
blue3k/ATFClone
Framework/Atf.Core/Dom/AttributeTypes.cs
2,450
C#
using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Text; namespace Chic.Core.Dependency { public interface IIocRegistrar { void RegisterSingleton<TService>() where TService : class; void RegisterSingleton(Type serviceType); vo...
30.432432
123
0.742451
[ "Apache-2.0" ]
huhouhua/Chic
src/Chic.Core/Dependency/IIocRegistrar.cs
1,128
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AutoMapper; using Crews.API.Data; using Crews.API.Data.Entities; using Crews.API.Models; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http;...
32.593939
143
0.627371
[ "MIT" ]
SeRgI1982/PlaygroundAPI
src/Crews.API/Controllers/TrainingsController.cs
5,380
C#
using CueGen.Analysis; using System; using System.Collections.Generic; using System.Text; namespace CueGen { public class CuePoint { public double Time { get; set; } public string Name { get; set; } public int Energy { get; set; } public PhraseEntry Phrase { get; set; } } }...
20.0625
47
0.629283
[ "MIT" ]
mganss/CueGen
CueGen/CuePoint.cs
323
C#
using System.Threading.Tasks; using Box.V2.Models; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Box.V2.Test.Integration { [TestClass] public class BoxCommentsManagerTestIntegration : BoxResourceManagerTestIntegration { [TestMethod] public async Task CommentsWorkfl...
41.765432
115
0.594443
[ "Apache-2.0" ]
box/box-windows-sdk-v2
Box.V2.Test.Integration/BoxCommentsManagerTestIntegration.cs
3,383
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace Blish_HUD.Controls { public class Menu : Container, IMenuItem { private const int DEFAULT_ITEM_HEIGHT = 32; #region Load Static private sta...
32.269737
116
0.520285
[ "MIT" ]
Archomeda/Blish-HUD
Blish HUD/Controls/Menu.cs
4,907
C#
using System; using Windows.System; using Windows.UI.Xaml.Media; namespace Windows.UI.Xaml { partial class UIElement { #if __NETSTD__ internal bool IsInLiveTree => IsLoading || IsLoaded; #elif __ANDROID__ internal bool IsInLiveTree => base.IsAttachedToWindow; #elif __IOS__ || __MACOS__ internal bool IsInLiveT...
29.212121
129
0.786307
[ "Apache-2.0" ]
AnthonyDParkhurst/uno
src/Uno.UI/UI/Xaml/UIElement.MuxInternal.cs
966
C#
using FakeViewModels.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace FakeViewModels.Core { public static class ViewModelFactory { #region public methods public static T CreateFakeViewModel<T>() where T : IViewModel, new() ...
38.578378
160
0.57349
[ "MIT" ]
Ollienntsh/FakeViewModels
FakeViewModels/Core/ViewModelFactory.cs
7,139
C#
using System; using System.Collections.Generic; using System.Reflection; using DynamicTimelineFramework.Core; using DynamicTimelineFramework.Objects; using DynamicTimelineFramework.Objects.Attributes; namespace DynamicTimelineFramework.Internal { internal class SprigManager { public Spine Spine { get; } ...
26.762712
72
0.589614
[ "MIT" ]
CrockettScience/Dynamic-Timeline-Framework-2
DynamicTimelineFramework/Internal/SprigManager.cs
1,579
C#
using Alpaca.Data.EFCore; using Alpaca.Data.Entities; using Alpaca.Infrastructure.Caching; using Alpaca.Infrastructure.Mapping; using Alpaca.Interfaces.Account.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Alpaca.Plugins.Account.O...
35.102564
137
0.659606
[ "MIT" ]
doddgu/alpaca
src/Plugins/Account/Alpaca.Plugins.Account.OwnIntegration/UserMemoryCache.cs
1,371
C#
using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Foundatio.Jobs; using Foundatio.Messaging; using Foundatio.Queues; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Periscope.Core.Extensions; using Periscope.Data.Repositories; usin...
39.038462
121
0.693103
[ "Apache-2.0" ]
blocksentinel/periscope
src/Indexing/AddressIndexer/Host/Infrastructure/Hosting/AddressIndexerHost.cs
2,032
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Charlotte.Tools; namespace Charlotte.Optimizer.Utils { public class WrapCode { private static readonly string B64CODE_CHARS = StringTools.DECIMAL + StringTools.ALPHA + StringTools.alpha + "+/"; public string Wrap(string...
22.459016
116
0.605839
[ "MIT" ]
stackprobe/Lunarwalk
Riot/Riot/Riot/Riot/Optimizer/Utils/WrapCode.cs
1,372
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
29.71875
121
0.663512
[ "ECL-2.0", "Apache-2.0" ]
RafalSumislawski/pulumi-aws
sdk/dotnet/CloudFront/Inputs/CachePolicyParametersInCacheKeyAndForwardedToOriginCookiesConfigCookiesArgs.cs
951
C#
using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api; namespace DingTalk.Api.Response { /// <summary> /// OapiSnsConversationInfoResponse. /// </summary> public class OapiSnsConversationInfoResponse : DingTalkResponse { /// <summary> /// 错误码 ...
23.373494
67
0.513402
[ "MIT" ]
lee890720/YiShaAdmin
YiSha.Util/YsSha.Dingtalk/DingTalk/Response/OapiSnsConversationInfoResponse.cs
2,010
C#
// Inspector Gadgets // Copyright 2019 Kybernetik // // Assembly Definition files were introduced in Unity 2017.3. #if UNITY_2017_3_OR_NEWER using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("InspectorGadgets")] [assembly: AssemblyDescripti...
59.604167
127
0.763719
[ "Apache-2.0" ]
EricVoll/RobotDynamicsLibrary
UnityExamples/RobotKinematics/Assets/Plugins/Inspector Gadgets/Misc/AssemblyInfo.cs
2,862
C#
using System; using System.Windows.Forms; namespace Tienda { public partial class FormMenu : Form { public FormMenu() { InitializeComponent(); } private void iniciarSesionToolStripMenuItem_Click(object sender, EventArgs e) { Login(...
35.657754
105
0.597031
[ "MIT" ]
marinaponce07/Dulce-Paraiso
FormMenu.cs
6,671
C#
//----------------------------------------------------------------------------- // Text.cs // // Spooker Open Source Game Framework // Copyright (C) Indie Armory. All rights reserved. // Website: http://indiearmory.com // Other Contributors: Laurent Gomila @ http://sfml-dev.org, omeg // License: MIT //-----------------...
19.145695
79
0.601522
[ "MIT" ]
codeindie/spooker
Source/Graphics/Text.cs
2,891
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChainOfResponsibilityPattern.Observable { public class ObserverOne : IObserver { public void Onnotify(string message) { Console.WriteLine($"ObserverOne got ...
21.411765
73
0.68956
[ "MIT" ]
ParallelTask/DesignPatterns
ChainOfResponsibilityPattern/ChainOfResponsibilityPattern/Observable/ObserverOne.cs
366
C#
using System; using System.Linq; using System.Web.Mvc; using System.Web.Mvc.Html; using BeyondThemes.Bootstrap.ControlModels; using BeyondThemes.Bootstrap.Controls; using BeyondThemes.Bootstrap.Infrastructure; using BeyondThemes.Bootstrap.TypeExtensions; namespace BeyondThemes.Bootstrap.Renderers { internal stati...
46.061905
186
0.558462
[ "Apache-2.0" ]
PooyaAlamirpour/SmartCattle
Themes.Bootstrap/Renderers/Renderer.TextBox.cs
9,675
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("SB...
39.413793
84
0.755906
[ "MIT" ]
SByteDev/Net.Xamarin.Plugins.WebBrowser
SByteDev.Xamarin.Plugins.WebBrowser.Demo/SByteDev.Xamarin.Plugins.WebBrowser.Demo.iOS/Properties/AssemblyInfo.cs
1,146
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/urlmon.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using System...
37.826923
145
0.644637
[ "MIT" ]
Ethereal77/terrafx.interop.windows
tests/Interop/Windows/um/urlmon/IWinInetHttpTimeoutsTests.cs
1,969
C#
// Copyright 2021 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.875
128
0.695298
[ "Apache-2.0" ]
googleapis/googleapis-gen
google/firestore/admin/v1/google-cloud-firestore-admin-v1-csharp/Google.Cloud.Firestore.Admin.V1.StandaloneSnippets/FirestoreAdminClient.GetIndexResourceNamesAsyncSnippet.g.cs
1,595
C#
using System; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using vtFrontend.GUI.Controls.ViewModels; using vtFrontend.lib.Parameters.Base; namespace vtFrontend.GUI.Controls { public partial class ParameterPanel : UserControl { public static readonly Dependenc...
31.160714
112
0.662464
[ "MIT" ]
jcapellman/vtFrontend
vtFrontend.GUI/Controls/ParameterPanel.xaml.cs
1,747
C#
using System.Collections; using System.Collections.Generic; using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; using NetOffice.CollectionsGeneric; using NetOffice.OutlookApi; namespace NetOffice.OutlookApi.Behind { /// <summary> /// DispatchInterface _Inspectors ...
29.834711
165
0.652632
[ "MIT" ]
igoreksiz/NetOffice
Source/Outlook/Behind/DispatchInterfaces/_Inspectors.cs
7,222
C#
using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using Epi.Cloud.DataConsistencyServices.Models; namespace Epi.Cloud.DataConsistencyServices { // Configure the application user manager used i...
39.73913
146
0.659737
[ "Apache-2.0" ]
82ndAirborneDiv/Epi-Info-Cloud-Contact-Tracing
Cloud Enter/Epi.Cloud.DataConsistencyServicesAPI/App_Start/IdentityConfig.cs
1,830
C#