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 DSharpPlus; using DSharpPlus.CommandsNext; using DSharpPlus.CommandsNext.Attributes; using DSharpPlus.Entities; using PaimonBot.Extensions.Data; using PaimonBot.Extensions.DataModels; using PaimonBot.Services; using PaimonBot.Services.CurrencyHelper; using PaimonBot.Services.HelpFormatter; using Serilog; using Sy...
59.150376
255
0.640651
[ "MIT" ]
ybmirz/PaimonBot
PaimonBot/Commands/AccountCommands/CurrencyCommands.cs
7,867
C#
using AbashonWeb.Domain; using AbashonWeb.Persistence; using AbashonWeb.Service.Contract; using AbashonWeb.Service.Contract.Repositories; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AbashonWeb.Infras...
30.432836
94
0.577244
[ "Apache-2.0" ]
sa-abhi/abashon-app
AbashonWeb/AbashonWeb/AbashonWeb.Infrastructure/Implementation/Repositories/Repository.cs
2,041
C#
namespace Examples.Interfaces { interface IShape : IDrawable, IPrintable { int GetNumberOfSides(); } }
17.571429
44
0.650407
[ "MIT" ]
luigiberrettini/c-sharp-basics
Interfaces/IShape.cs
125
C#
using System.Windows.Input; using GalleyFramework.Infrastructure; using GalleyFramework.ViewModels; using GalleyFramework.Helpers.Flow; using GalleyFramework.Sample.Locales; using Xamarin.Forms; using GalleyFramework.Extensions; namespace GalleyFramework.Sample.ViewModels { public class StartViewModel : GalleyBas...
25.625
77
0.720325
[ "Apache-2.0" ]
AndreiMisiukevich/GalleyFramework
GalleyFramework.Sample/GalleyFramework.Sample/ViewModels/StartViewModel.cs
617
C#
using System.Threading.Tasks; namespace Storm.Formification.WebWithDb.Forms { public interface IFormDataStore<TForm> where TForm : class, new() { Task<FormDataStoreResult> Save(string documentId, string secretId, TForm formData); Task<TForm?> Retrieve(string documentId, string secretId)...
30.272727
92
0.705706
[ "MIT" ]
stormid/storm-formification
samples/Storm.Formification.WebWithDb/Forms/IFormDataStore.cs
335
C#
using System; using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using AutoMapper; namespace Sentinel.Api.Shipping.Controllers { [ApiVersio...
26.355769
94
0.492156
[ "MIT" ]
mmercan/sentinel
Sentinel.Api.Shipping/Controllers/Apis/ProductV1.cs
2,741
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace SecurityHeadersGuide.Pages { [ResponseCache(Duration = 0, Location = Re...
25.65625
88
0.685749
[ "MIT" ]
Jac21/CSharpMenagerie
DotNetCore/SecurityHeadersGuide/SecurityHeadersGuide/Pages/Error.cshtml.cs
821
C#
using System; using System.Collections.Generic; using AutoMapper; using MediatR; using Microsoft.AspNetCore.Mvc; using Red.Domain.Commands; using Red.Domain.Core.Bus; using Red.Domain.Core.Notifications; using Red.Domain.Interfaces; using Red.Service.ViewModels; namespace Red.Service.Controllers { [Route("api/[co...
27.979381
97
0.610538
[ "MIT" ]
aislanmiranda/.NetFull-CQRS-EF
Red.Service/Controllers/UsuarioController.cs
2,716
C#
namespace Infusion { public struct MessageId { public MessageId(int value) => Value = value; public int Value { get; } public static explicit operator MessageId(int value) => new MessageId(value); public static explicit operator int(MessageId id) => id.Value; public s...
28.060606
89
0.578834
[ "MIT" ]
3HMonkey/Infusion
Infusion/MessageId.cs
928
C#
using System; using System.Threading; using System.Threading.Tasks; using Api; using Microsoft.Extensions.Logging; using XenaExchange.Client.Messages; using XenaExchange.Client.Messages.Constants; using XenaExchange.Client.Ws.Interfaces; namespace XenaExchange.Client.Examples.Ws { public class MarketDataWsExample ...
43.932927
154
0.558223
[ "MIT" ]
xenaex/client-dotnet
examples/XenaExchange.Client.Examples/Ws/MarketDataWsExample.cs
7,205
C#
using JT808.Gateway.MsgIdHandler; using JT808.Gateway.SimpleQueueNotification.Hubs; using JT808.Protocol.Extensions; using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; using System.Threading.Tasks; namespac...
30.977778
119
0.631994
[ "MIT" ]
Seamless2014/JT808Gateway
simples/JT808.Gateway.SimpleQueueNotification/Impl/JT808MsgIdHandlerImpl.cs
1,396
C#
using KSerialization; using UnityEngine; [SerializationConfig(MemberSerialization.OptIn)] public class Polymerizer : StateMachineComponent<Polymerizer.StatesInstance> { public class StatesInstance : GameStateMachine<States, StatesInstance, Polymerizer, object>.GameInstance { public StatesInstance(Polymerizer smi) ...
32.218543
196
0.765468
[ "MIT" ]
undancer/oni-data
Managed/main/Polymerizer.cs
4,865
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("140...
37.771429
84
0.749622
[ "Unlicense" ]
Dalet/140-speedrun-timer
140-speedrun-timer/Properties/AssemblyInfo.cs
1,325
C#
using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Collections.Generic; using System.Text; namespace Test { enum OpT {INC, MOVE, PRINT, LOOP}; struct Op { public OpT op; public int v; public Op[] loop; public Op(OpT _op, int _v) { op = _op...
28.531532
111
0.44869
[ "MIT" ]
truthiswill/benchmarks
brainfuck/bf.cs
3,167
C#
using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace NetFabric.Hyperlinq { [StructLayout(LayoutKind.Auto)] public ref struct WhereAtReadOnlyRefEnumerator<TSource, TPredicate> where TPredicate : struct, IFunctionIn<TSource, int, bool> { readon...
28.35
97
0.592593
[ "MIT" ]
ualehosaini/NetFabric.Hyperlinq
NetFabric.Hyperlinq/Filtering/WhereAtRef/WhereAtReadOnlyRefEnumerator.cs
1,136
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 ...
22.561404
64
0.688958
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-vpc/Vpc/Model/V20160428/CreateIPv6TranslatorAclListResponse.cs
1,286
C#
// Copyright © 2017-2020 Chromely Projects. All rights reserved. // Use of this source code is governed by MIT license that can be found in the LICENSE file. namespace Chromely.Core.Host { public enum WindowState { Normal, Minimize, Maximize, Fullscreen } }
21.714286
92
0.654605
[ "MIT", "BSD-3-Clause" ]
GerHobbelt/Chromely
src/Chromely.Core/Host/WindowState.cs
307
C#
using System; using Swift.Interop; namespace SwiftUI { [SwiftImport (SwiftUILib.Path)] public class EmptyView : View { protected override unsafe void InitNativeData (void* handle) { } } }
14.214286
62
0.723618
[ "MIT" ]
CartBlanche/Xamarin.SwiftUI
src/SwiftUI/SwiftUI/Views/EmptyView.cs
199
C#
using System; using System.Collections.Generic; using Content.Shared.ActionBlocker; using Content.Shared.Hands.Components; using Robust.Shared.Containers; using Robust.Shared.GameObjects; using Robust.Shared.Serialization; using Content.Shared.Interaction; namespace Content.Shared.Verbs { [Serializable, NetSeriali...
38.054455
138
0.619618
[ "MIT" ]
Filatelele/space-station-14
Content.Shared/Verbs/VerbEvents.cs
7,687
C#
using System; using System.Collections.Generic; using UnityEngine; using VRTK; public class EntityMainPlayer : EntityDynamicActor { [SerializeField] private float moveSpeed = 0.1f; private WeaponType wType = WeaponType.none; public WeaponType WType { get { return this....
25.161172
96
0.546222
[ "Apache-2.0" ]
Tritend/ZombieWar
Assets/Scripts/Entity/Entitys/EntityMainPlayer.cs
6,931
C#
using System; using System.Configuration; using System.IO; using System.Net; using System.Runtime.Serialization.Json; using System.Web.Script.Serialization; namespace Fpm.MainUI.Helpers { public static class ExceptionLogger { public static void LogException(Exception exception, string url) { ...
34.174603
90
0.558755
[ "MIT" ]
PublicHealthEngland/fingertips-open
FingertipsProfileManager/MainUI/Helpers/ExceptionLogger.cs
2,155
C#
#pragma checksum "C:\Users\Willi\OneDrive\Desktop\Code Repository\GymWebsiteApp\GymWebsite\GymWebsite\Pages\Error.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1f02565c188bc0cf60de1bc120acef71a3608055" // <auto-generated/> #pragma warning disable 1591 [assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompi...
48.758242
205
0.751859
[ "Unlicense" ]
shoreshanked/GymWebsiteApp
GymWebsite/GymWebsite/obj/Debug/net5.0/Razor/Pages/Error.cshtml.g.cs
4,437
C#
//------------------------------------------------------------ // Game Framework v3.x // Copyright © 2013-2018 Jiang Yin. All rights reserved. // Homepage: http://gameframework.cn/ // Feedback: mailto:jiangyin@gameframework.cn //------------------------------------------------------------ using GameFramework; using U...
30.977778
95
0.458393
[ "MIT" ]
Data-XiaoYu/UnityWorld
FlappyBird/Assets/GameFramework/Scripts/Runtime/Utility/DefaultLogHelper.cs
1,439
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...
30.189189
101
0.7359
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/EC2/Generated/Model/EnableVgwRoutePropagationResponse.cs
1,117
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using Entities; using Geocode.DataAccess; namespace Geocode.Service { public class GetGeocodesFromXML : IGeocodeService { StructureMap.Container container = ...
25.515625
88
0.568279
[ "MIT" ]
javipedrajo/uneat-net
01_sistemas_distribuidos/GeocodeSolutionModificada2018/Geocode.Service/GetGeocodesFromXML.cs
1,635
C#
using Newtonsoft.Json; using Oxide.Ext.Discord.Entities.Emojis; using Oxide.Ext.Discord.Interfaces; namespace Oxide.Ext.Discord.Entities.Messages { /// <summary> /// Represents a <a href="https://discord.com/developers/docs/resources/channel#reaction-object">Reaction Structure</a> /// </summary> [Json...
28.909091
123
0.595388
[ "MIT" ]
Kirollos/Oxide.Ext.Discord
Oxide.Ext.Discord/Entities/Messages/MessageReaction.cs
956
C#
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Author: Nuno Fachada * */ using UnityEngine; // Agents with this component move between random waypoints pub...
27.796875
73
0.627881
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
fakenmc/AIUnityExamples
SimpleFSMs/Assets/Scripts/RandomWaypointsBehaviour.cs
1,781
C#
#region Copyright (c) 2006-2014 nHydrate.org, All Rights Reserved // -------------------------------------------------------------------------- * // NHYDRATE.ORG * // Copyright (c) 2006-2014 All Rights reserved * // ...
36.932471
162
0.620813
[ "MIT" ]
giannik/nHydrate
Source/nHydrate.DslPackage/Extensions/ExtensionMethods.cs
25,705
C#
using Microsoft.CodeAnalysis.CodeRefactorings; using Microsoft.CodeAnalysis; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Formatting; namespace RefactoringEssentials.CSharp.CodeRefactorings { [ExportCodeRefactoringProvid...
45.363636
199
0.599485
[ "MIT" ]
GrahamTheCoder/RefactoringEssentials
RefactoringEssentials/CSharp/CodeRefactorings/Synced/ConvertEqualsToEqualityOperatorCodeRefactoringProvider.cs
3,493
C#
//=============================================================================== // Microsoft patterns & practices // Composite Application Guidance for Windows Presentation Foundation //=============================================================================== // Copyright (c) Microsoft Corporation. All rights ...
36.923077
103
0.566146
[ "Apache-2.0" ]
andrewdbond/CompositeWPF
sourceCode/compositewpf/V1/trunk/Source/StockTraderRI/StockTraderRI.Infrastructure/Converters/EnumToBooleanConverter.cs
1,920
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...
29.026316
105
0.730734
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Connect/Generated/Model/DeleteUserResponse.cs
1,103
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...
30.707317
87
0.641779
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Synapse/Inputs/IntegrationRuntimeDataProxyPropertiesArgs.cs
1,259
C#
// Copyright 2019 Esri. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. // You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software ...
40.427536
190
0.639003
[ "Apache-2.0" ]
ChrisFrenchPDX/arcgis-runtime-samples-dotnet
src/Android/Xamarin.Android/Samples/Layers/GroupLayers/GroupLayers.cs
5,579
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 組件的一般資訊是由下列的屬性集控制。 // 變更這些屬性的值即可修改組件的相關 // 資訊。 [assembly: AssemblyTitle("DBFunctions")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: Assembly...
25.783784
56
0.713836
[ "MIT" ]
zxz13561/WebFormMiniSample
WebFormMiniSample/DBFunctions/Properties/AssemblyInfo.cs
1,283
C#
using System; using FluentAssertions; using MediatR.AspNet.Exceptions; using NUnit.Framework; namespace MediatR.AspNet.Tests.ExceptionsTests { public class ExistsExceptionTests { [Test] public void ShouldBeException() { // Arrange // Act // Assert typ...
33.323077
98
0.561404
[ "MIT" ]
MossPiglets/MediatR.AspNet
MediatR.AspNet/MediatR.AspNet.Tests/ExceptionsTests/ExistsExceptionTests.cs
2,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-generated> //--...
34.193548
151
0.579245
[ "MIT" ]
GageWaack/Final
Final/Final/Properties/Settings.Designer.cs
1,062
C#
using UnityEngine; namespace DuloGames.UI { [ExecuteInEditMode] [RequireComponent(typeof(RectTransform))] public class UICanvasAnchorToCamera : MonoBehaviour { [SerializeField] private Camera m_Camera; [SerializeField][Range(0f, 1f)] float m_Vertical = 0f; [SerializeField][Range...
28.903226
141
0.627232
[ "BSD-2-Clause" ]
edisonlee0212/Geometry-Escape
Geometry-Escape/Assets/UI/Scripts/UI/Miscellaneous/UICanvasAnchorToCamera.cs
896
C#
public class RPG : Ammunition { private const double WeightConst = 17.1; public override double Weight => WeightConst; }
21.666667
49
0.715385
[ "MIT" ]
valkin88/CSharp-Fundamentals
CSharp OOP Advanced/Exam Preparations/TheLastArmy/TheLastArmy/Entities/Ammunitions/RPG.cs
132
C#
using System; using System.Linq; using System.Threading; using Microsoft.Extensions.DependencyInjection; using Orleans; using Orleans.Runtime; using Orleans.Runtime.Configuration; using TestGrainInterfaces; using Xunit; namespace NonSilo.Tests { /// <summary> /// Tests for <see cref="ClientBuilder"/>. ///...
36.340426
142
0.584504
[ "MIT" ]
seralexeev/orleans
test/NonSilo.Tests/ClientBuilderTests.cs
5,126
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.Collections.Generic; using System.Linq; using Adxstudio.Xrm.Resources; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Client; na...
34.99375
176
0.732809
[ "MIT" ]
Adoxio/xRM-Portals-Community-Edition
Framework/Adxstudio.Xrm/Cases/ContactCaseAccessPermissionScopesProvider.cs
5,599
C#
using System; using System.Collections.Generic; using System.Text; namespace WL.Account.Core.Core { /// <summary> /// 公共错误 /// </summary> public static class PubError { public static readonly string DBOPERR = "数据库操作错误"; /* 错误分类:(只涉及大分类。不考虑细节,这一阶段重点考虑 接口) * * 数据库...
36.688679
154
0.576755
[ "MIT" ]
wlfsky/netcorewebapi
src/Account/WL.Account.Core/Core/PubErrorDic.cs
4,263
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> //--...
41.89011
190
0.601259
[ "Apache-2.0" ]
andreypudov/InvestmentAnalysis
src/InvestmentAnalysis.Runtime.Extensions/Messages.Designer.cs
3,814
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; using System.Collections.Generic; using System.Collections.Immutable; using System...
45.745098
197
0.632447
[ "MIT" ]
Acidburn0zzz/roslyn
src/Compilers/CSharp/Portable/Emitter/Model/PEAssemblyBuilder.cs
23,332
C#
// // Copyright (c) Microsoft and contributors. 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 requi...
34.286624
132
0.503313
[ "Apache-2.0" ]
CerebralMischief/azure-sdk-for-net
src/ServiceManagement/SiteRecovery/SiteRecoveryManagement/Generated/Models/AzureNetworkListResponse.cs
16,149
C#
namespace HRtoVRChat_OSC { public static class ParamsManager { public static List<HRParameter> Parameters = new List<HRParameter>(); public static void InitParams() { Parameters.Add(new IntParameter(hro => hro.ones, ConfigManager.LoadedConfig.ParameterNames["onesHR"...
40.825
134
0.48071
[ "MIT" ]
200Tigersbloxed/HRtoVRChat_OSC
HRtoVRChat_OSC/ParamsManager.cs
8,167
C#
// Copyright 2021-2022 The SeedV Lab. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
32.121212
83
0.715094
[ "Apache-2.0" ]
aha-001/SeedLang
csharp/src/SeedLang/Ast/AstNode.cs
1,060
C#
using GoogleMapsApiExample.Common.Dto; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace GoogleMapsApiExample.Models { public class HomeModel { public HomeModel() { Locations = new List<LocationDto>(); } publ...
20
63
0.668421
[ "MIT" ]
divayo/google-maps-api-example
GoogleMapsApiExample/Models/HomeModel.cs
382
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // 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: Asse...
55.864407
273
0.77943
[ "Apache-2.0" ]
tmlife485/myawskendra
sdk/src/Services/Snowball/Properties/AssemblyInfo.cs
3,296
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #pragma warning disable 1591 using System; using System.Runtime.CompilerServices; using System.Diagnostics; using FASTER.core; namespace FASTER.multibench { public struct Functions : IFunctions<Key, Value, Input, Out...
30.690476
117
0.629946
[ "MIT" ]
yangzheng2115/demofaster
cs/multibench/Functions.cs
2,580
C#
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// <summary> /// AOP API: alipay.open.public.default.extension.create /// </summary> public class AlipayOpenPublicDefaultExtensionCreateRequest : IAopRequest<AlipayOpenPublicDefaul...
23.909091
124
0.610266
[ "MIT" ]
BJDIIL/DiiL
Sdk/AlipaySdk/Request/AlipayOpenPublicDefaultExtensionCreateRequest.cs
2,648
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; namespace OpenMPCompiler { class Program { static void Main(string[] args) { string fileName = args[1].Substring(1); StreamReader ...
32.223529
147
0.515517
[ "Apache-2.0" ]
NamiraJV/OmpForDotNet.Compiler
OpenMPCompiler/OpenMPCompiler/Program.cs
2,741
C#
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("EntityFramework DevData")] [assembly: AssemblyDescription("Internal QP8 EntityFramework DevData")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Quantum Art")] [assembly: AssemblyProduct("QP8.Framework")] [asse...
35.125
71
0.782918
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
QuantumArt/QP.EntityFramework
EntityFramework6.DevData/Properties/AssemblyInfo.cs
563
C#
using System; using System.Linq; namespace FluentErgast.F1.Mappers.ConstructorStandings { public class StandingsListMapper : IMapper<InternalDtos.ConstructorStandings.StandingsList, Dtos.ConstructorStandings.StandingsList> { private readonly IMapper<InternalDtos.ConstructorStandings.ConstructorStanding...
40.433333
171
0.70404
[ "MIT" ]
lewishenson/FluentErgast
FluentErgast/F1/Mappers/ConstructorStandings/StandingsListMapper.cs
1,213
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18052 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
43.296875
170
0.611332
[ "Apache-2.0" ]
katopz/oskz-vcsharp
oskz/Properties/Resources.Designer.cs
2,773
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. // <Area> Nullable - CastClass </Area> // <Title> Nullable type with castclass expr </Title> // <Description> // ...
24.365385
89
0.640095
[ "MIT" ]
06needhamt/runtime
src/coreclr/tests/src/JIT/jit64/valuetypes/nullable/castclass/null/castclass-null025.cs
1,267
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AE.Net.Mail { public class ImapClientExceptionEventArgs : EventArgs { public ImapClientExceptionEventArgs(Exception Exception) { this.Exception = Exception; } public Exception Exception { get; se...
20.8125
61
0.720721
[ "MIT" ]
zehavibarak/aenetmail
ImapClientExceptionEventArgs.cs
335
C#
using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; namespace DotNetCore.EntityFrameworkCore; public static class Extensions { public static void AddContext<T>(this IServiceCollection services, Action<DbContextOptionsBuilder> options) where T : DbContext { services.Add...
33.77193
131
0.708052
[ "MIT" ]
fabricepeltier/DotNetCore_CR_Examples
source/EntityFrameworkCore/Extensions.cs
1,925
C#
using AutoMapper; using CarDealer.Dtos.Import; using CarDealer.Dtos.Export; using CarDealer.Models; using System.Linq; namespace CarDealer { public class CarDealerProfile : Profile { public CarDealerProfile() { this.CreateMap<ImportSupplierDto, Supplier>(); this.Create...
28.371429
96
0.60423
[ "MIT" ]
danailstratiev/Csharp-SoftUni-Development
Entity Framework Core/09.Xml Processing/CarDealer/CarDealer/CarDealerProfile.cs
995
C#
#region License // Copyright (c) 2007 James Newton-King // // 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,...
29.777953
254
0.522079
[ "MIT" ]
Nucs/Alda
External Libraries/Clean-git/Newtonsoft.Json-master/Src/Newtonsoft.Json.Tests/Linq/JArrayTests.cs
18,911
C#
using Abilities; using ActionsList; using System.Collections; using System.Collections.Generic; using UnityEngine; using Upgrade; using Ship; using SubPhases; using Tokens; namespace UpgradesList { public class Opportunist : GenericUpgrade { public Opportunist() : base() { Types.Add(UpgradeType.Eli...
24.803738
182
0.740015
[ "MIT" ]
MatthewBlanchard/FlyCasual
Assets/Scripts/Model/Upgrades/Elite/Opportunist.cs
2,656
C#
namespace WebApi.Common.Constants { public enum RoleEnum { None = 0, BasicUser = 1, Employee = 2, Trainer = 3, Admin = 4, } }
14.916667
34
0.480447
[ "MIT" ]
gartidas/Forehand
WebApi/Common/Constants/RoleEnum.cs
181
C#
using IdentityServer4.Stores.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; namespace CDR.DataHolder.IdentityServer.Extensions { public static class SerializationExtensions { public static string ToJson(this object value) { va...
35.346154
82
0.688792
[ "MIT" ]
CDR-AmirM/mock-data-holder
Source/CDR.DataHolder.IdentityServer/Extensions/SerializationExtensions.cs
921
C#
using System; using System.Threading; using System.Threading.Tasks; using MediatR; using Microsoft.EntityFrameworkCore; using Whyvra.Tunnel.Data; namespace Whyvra.Tunnel.Core.Clients.Commands { public class RemoveAddressFromClientCommandHandler : IRequestHandler<RemoveAddressFromClientCommand> { privat...
34.514286
149
0.693709
[ "MIT" ]
whyvra/tunnel
Whyvra.Tunnel.Core/Clients/Commands/RemoveAddressFromClientCommandHandler.cs
1,208
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.84375
187
0.61618
[ "BSD-3-Clause" ]
BMBH/Krypton
Source/Krypton Toolkit Examples/KryptonButton Examples/Properties/Resources.Designer.cs
2,808
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // MIT License // 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...
32.435294
463
0.544795
[ "MIT" ]
Bhaskers-Blu-Org2/healthvault-dotnetstandard-sdk
Microsoft.HealthVault/ItemTypes/Prescription.cs
11,028
C#
using System; namespace FontAwesome { /// <summary> /// The unicode values for all FontAwesome icons. /// <para/> /// See https://fontawesome.com/cheatsheet /// <para/> /// This code was automatically generated by FA2CS (https://github.com/michaelswells/fa2cs a modified fork from https://github...
36.704918
154
0.593569
[ "MIT" ]
michaelswells/FontAwesomeAttribute
FontAwesome/FontAwesome.DrawCircle.cs
2,239
C#
namespace FleetManagement.Entities { public class EntityBase { public virtual int Id { get; set; } } }
15.5
43
0.620968
[ "MIT" ]
mwalasz/Fleet-management-system
srv/src/FleetManagement/Entities/EntityBase.cs
126
C#
using System; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu( fileName = "ItemList", menuName = "Cat's Ship/Asset Storage/Item List", order = 0)] public class ItemList : ScriptableObject { public List<Item> items = new List<Item>(); public Item GetByName(string name) { ...
19.115385
52
0.559356
[ "MIT" ]
qcoronia/a-cat-in-space-game
src/Assets/Scripts/ScriptableObjects/AssetStorages/ItemList.cs
497
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entities { /// <summary> /// Domain object class BasketDO /// </summary> public class BasketDO { public int Id { get; set; } public int Userid { get; set; }...
24.52
54
0.610114
[ "Apache-2.0" ]
Victoralm/AspNetCore5AndVueJSFromZeroToHero
ShoppySolution/Entities/BasketDO.cs
615
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * 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 r...
37.753555
111
0.590635
[ "BSD-3-Clause" ]
BillBlight/consortium
OpenSim/Server/ServerMain.cs
7,966
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Shopping.Data; namespace Shoppin...
33.262582
117
0.418854
[ "MIT" ]
insightapac/pocketpantry-microservices
src/shopping/Migrations/20190907104634_datatypefix.Designer.cs
15,203
C#
// *** WARNING: this file was generated by pulumigen. *** // *** 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.Kubernetes.Extensio...
50.664179
302
0.665488
[ "Apache-2.0" ]
hazsetata/pulumi-kubernetes
sdk/dotnet/Extensions/V1Beta1/PodSecurityPolicy.cs
6,789
C#
using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text.Json; using System.Threading.Tasks; namespace WebApp_OpenIDConnect_DotNet.Services.Arm { public class ArmApiOperationService : IArmOperations { private readonly HttpClient httpClient; public ArmApiOp...
36.707317
115
0.671761
[ "MIT" ]
jmprieur/TenantForApp
TenantForApp/Simplified ARM/ArmOperationsService.cs
1,505
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 ...
31.5
63
0.71645
[ "Apache-2.0" ]
VAllens/aliyun-openapi-sdk-net-core
src/aliyun-net-sdk-cloudapi/Model/V20160714/DescribePurchasedApiGroupResponse.cs
1,386
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; using VirtualVoid.Net; public class LobbyMenu : MonoBehaviour { public static LobbyMenu instance; private void Awake() { instance = this; SteamManager.OnClientConnected += OnCli...
26.062745
115
0.5969
[ "MIT" ]
Tobogganeer/MP-Proj-Setup
Assets/Scripts/UI/Menus/LobbyMenu.cs
6,646
C#
using Sfa.Tl.ResultsAndCertification.Models.Contracts.PostResultsService; using System.Threading.Tasks; namespace Sfa.Tl.ResultsAndCertification.Data.Interfaces { public interface IPostResultsServiceRepository { Task<FindPrsLearnerRecord> FindPrsLearnerRecordAsync(long aoUkprn, long? uln, int? profile...
37.166667
109
0.79148
[ "MIT" ]
SkillsFundingAgency/tl-results-and-certification
src/Sfa.Tl.ResultsAndCertification.Data/Interfaces/IPostResultsServiceRepository.cs
448
C#
#region License /* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. ...
54.12669
248
0.694673
[ "Unlicense" ]
TheSpydog/CSGL
src/CSGL.cs
356,318
C#
using Ryujinx.Graphics.Gpu.Memory; using Ryujinx.Graphics.Gpu.State; using System; using System.Runtime.InteropServices; namespace Ryujinx.Graphics.Gpu.Engine { partial class Methods { // State associated with direct uniform buffer updates. // This state is used to attempt to batch together con...
37.443182
126
0.624583
[ "MIT" ]
6Fer6/Ryujinx
Ryujinx.Graphics.Gpu/Engine/MethodUniformBufferUpdate.cs
3,295
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CustomerTestsExcel { public interface ITextLineWriter { void WriteLine(string text); void StartLine(string text); void ContinueLine(string text); void EndLine(string text); } ...
16.947368
39
0.68323
[ "MIT" ]
DanielKirkwood/customer-tests-excel
CustomerTestsExcel/ITextLineWriter.cs
324
C#
// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // namespace Microsoft.VisualStudio.Utilities { /// <summary> /// Represents an attribute which assigns an integer priority to a MEF component part....
33.034483
96
0.637787
[ "MIT" ]
AmadeusW/vs-editor-api
src/Editor/Core/Def/BaseUtility/PriorityAttribute.cs
960
C#
namespace BusinessDiary.Data.Migrations { using Microsoft.AspNet.Identity.EntityFramework; using Models; using System.Data.Entity.Migrations; using System.Linq; public sealed class Configuration : DbMigrationsConfiguration<BusinessDiaryDbContext> { public Configuration() { ...
32.125
106
0.535668
[ "MIT" ]
mvivancheva9/BusinessDiary
BusinessDiary/BusinessDiary.Data/Migrations/Configuration.cs
1,542
C#
 using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Reflection; using System.Text; namespace SlimOrm { /// <summary> /// Lightweight MS SQL ORM /// </summary> public class SqlDataOrm : ISqlDataOrm { #region Fields ...
36.926421
139
0.530749
[ "MIT" ]
iamamonte/slimorm
SlimOrm/DB/SqlDataOrm.cs
11,043
C#
using System; namespace Core.Maybe; /// <summary> /// Applying side effects into the Maybe call chain /// </summary> public static class MaybeSideEffects { /// <summary> /// Calls <paramref name="fn"/> if <paramref name="m"/> has value, otherwise does nothing /// </summary> /// <typeparam name="T"></typepara...
22.895833
108
0.563239
[ "Apache-2.0" ]
grzesiek-galezowski/core-maybe
Core.Maybe/Maybe/MaybeSideEffects.cs
1,101
C#
using UnityEngine; using System.Collections; public class HandAnimationManager : MonoBehaviour { public Animator anim; private Vector2 startPos; private Vector2 direction; private bool directionChosen; private bool animationPlayed = false; void Start() { } void Update() { anim = gameObject.GetComponent<...
21.666667
98
0.694872
[ "MIT" ]
michaeldll/horslesmurs
Assets/Scripts/HandAnimationManager.cs
1,170
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...
35.496063
102
0.600488
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/DAX/Generated/Model/DescribeClustersRequest.cs
4,508
C#
using System.Threading.Tasks; namespace Dionach.ShareAudit.Modules.Services { public interface IScopeValidationService { Task<(bool isValid, string errorMessage)> ValidateScopeAsync(string scope); } }
22.3
83
0.744395
[ "MIT" ]
Dionach/ShareAudit
src/Dionach.ShareAudit.Modules.Services/IScopeValidationService.cs
225
C#
using System; using System.Text; using EasyNetQ; using EasyNetQ.Topology; using Microsoft.Extensions.DependencyInjection; using Sikiro.Tookits.Extension; using Sikiro.Tookits.Helper; namespace Sikiro.Bus.Extension { /// <summary> /// 消息总线扩展 /// </summary> public static class BusExtension { ...
33.683168
153
0.494121
[ "MIT" ]
SkyChenSky/Sikiro
src/Sikiro.Bus.Extension/BusExtension.cs
3,474
C#
using BBC.Core.Domain.Entities; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Text; namespace BBC.Core.Domain { public class Media : EntityBase<int> { public string MediaUrl { get; set; } [ForeignKey("ContentId")] //Content...
23.842105
81
0.688742
[ "Apache-2.0" ]
AhmetYkayhan/BBC
Server/BBC_API/src/BBC.Core/Domain/Media.cs
456
C#
using System; using System.Collections.Generic; namespace KeyPayV2.Uk.Enums { public enum LumpSumCalculationMethod { NotApplicable, A, B2 } }
14.692308
41
0.596859
[ "MIT" ]
KeyPay/keypay-dotnet-v2
src/keypay-dotnet/Uk/Enums/LumpSumCalculationMethod.cs
191
C#
//#define DEBUG_MOVEMENTS using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.IO; using System.Net; using System.Net.Mime; using W3C.Soap; u...
49.294423
242
0.517813
[ "MIT" ]
slgrobotics/TrackRoamer
src/TrackRoamer/TrackRoamerBehaviors/Strategy/StrategyPersonFollowing.cs
38,008
C#
using System.Collections.Generic; using Essensoft.AspNetCore.Payment.Alipay.Domain; using Newtonsoft.Json; namespace Essensoft.AspNetCore.Payment.Alipay.Response { /// <summary> /// AlipayDataDataserviceAdPrincipalQueryResponse. /// </summary> public class AlipayDataDataserviceAdPrincipalQueryResponse...
27.581395
94
0.580101
[ "MIT" ]
lotosbin/payment
src/Essensoft.AspNetCore.Payment.Alipay/Response/AlipayDataDataserviceAdPrincipalQueryResponse.cs
1,270
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Media.SpeechRecognition { #if __ANDROID__ || __IOS__ || NET46 || __WASM__ [global::Uno.NotImplemented] #endif public partial class SpeechContinuousRecognitionResultGeneratedEventArgs { #if __AN...
35.434783
177
0.790184
[ "Apache-2.0" ]
nv-ksavaria/Uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Media.SpeechRecognition/SpeechContinuousRecognitionResultGeneratedEventArgs.cs
815
C#
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A P...
40.727273
109
0.622449
[ "MIT" ]
HerrickSpencer/Windows-universal-samples
Samples/SimpleInk/cs/Scenario7.xaml.cs
3,062
C#
using System; using CompScie.ConsoleApp.Demos.StackDemo.Operations; using CompScie.ConsoleApp.Utilities; using CompScie.Core; namespace CompScie.ConsoleApp.Demos.BinarySearchTreeDemo.Operations { public class RemoveOperation : IOperation { private readonly Tree tree; public RemoveOperation(T...
26.787879
75
0.570136
[ "MIT" ]
ilya-zhidkov/compscie
Source/CompScie.ConsoleApp/Demos/BinarySearchTreeDemo/Operations/RemoveOperation.cs
886
C#
// <auto-generated> // 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. // </auto-generated> namespace Microsoft.Azure.Management.Monitor.Fluent.Mod...
27.559322
82
0.568881
[ "MIT" ]
Azure/azure-libraries-for-net
src/ResourceManagement/Monitor/Generated/Models/ResultType.cs
1,626
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MusicPlayer : MonoBehaviour { AudioSource audioSource; // Start is called before the first frame update void Start() { DontDestroyOnLoad(this); audioSource = GetComponent<AudioSource>(); ...
21
69
0.687371
[ "BSD-3-Clause" ]
kristof7/ProjectBeta
Assets/Scripts/Options/MusicPlayer.cs
485
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; namespace Azure.Management.Resources.Models { public partial class OperationDisplay { internal static OperationDisplay Dese...
32.03125
89
0.459024
[ "MIT" ]
LeighS/azure-sdk-for-net
sdk/resources/Azure.Management.Resources/src/Generated/Models/OperationDisplay.Serialization.cs
2,050
C#
namespace OpenVIII.Fields.Scripts.Instructions { internal sealed class DScroll : JsmInstruction { #region Fields private readonly IJsmExpression _arg0; private readonly IJsmExpression _arg1; #endregion Fields #region Constructors public DScroll(IJsmExpression...
23.2
118
0.570197
[ "MIT" ]
Sebanisu/OpenVIII
Core/Field/JSM/Instructions/DScroll.cs
814
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class GreaterofTwoValues { static void Main(string[] args) { var type = Console.ReadLine(); if (type == "int") { int a = int.Parse(Console.Read...
22.9
53
0.468705
[ "MIT" ]
Gandjurov/CSharp-ProgrammingFundamentals
02. Methods/08.GreaterOfTwoValues/GreaterofTwoValues.cs
1,376
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("Co...
38.189189
84
0.748054
[ "MIT" ]
bramborman/Area42
C#/School/IT3/ConsoleApplication14/ConsoleApplication14/Properties/AssemblyInfo.cs
1,416
C#