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
// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. namespace SixLabors.ImageSharp.Processing.Processors.Filters { /// <summary> /// Applies a lightness filter matrix using the given amount. /// </summary> public sealed class LightnessProcessor : FilterProce...
38.83871
142
0.63289
[ "Apache-2.0" ]
GyleIverson/ImageSharp
src/ImageSharp/Processing/Processors/Filters/LightnessProcessor.cs
1,204
C#
namespace DigitalLearningSolutions.Data.DataServices { using System.Data; using Dapper; public interface ISessionDataService { int StartOrRestartDelegateSession(int candidateId, int customisationId); void StopDelegateSession(int candidateId); void UpdateDelegateSessionDuration(...
31.8
98
0.594582
[ "MIT" ]
TechnologyEnhancedLearning/DLSV2
DigitalLearningSolutions.Data/DataServices/SessionDataService.cs
2,069
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using FluentNest.Tests.Model; using Nest; using NFluent; using Tests; using Xunit; using User = FluentNest.Tests.Model.User; namespace FluentNest.Tests { public class GroupByTests : TestsBase { ...
38.964045
135
0.528173
[ "MIT" ]
forki/fluentnest
FluentNest.Tests/GroupByTests.cs
17,341
C#
using System; using System.Collections.Generic; /// <summary> /// This corresponds roughly to figure 1 of the paper, and is separate from /// the other examples so we can use 'using static' in the driver without /// polluting A and B with each other's monoids. /// </summary> namespace MonoidExamples { using stat...
27.26087
88
0.507177
[ "Apache-2.0" ]
ElanHasson/roslyn
concepts/code/TCOIExamples/Section3.cs
3,137
C#
using Eddi; using EddiCore; using EddiDataDefinitions; using EddiDataProviderService; using EddiEvents; using EddiStarMapService; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Threading; using Syst...
40.627313
189
0.465388
[ "Apache-2.0" ]
EDCD/EDDI
MissionMonitor/MissionMonitor.cs
63,663
C#
using System; namespace SampleApp.Components.ComponentHosts.Hosts.Data { /// <summary> /// service model /// </summary> public class ServiceModel : TypeReferenceModelAbstract { public Type RegisteredType { get; set; } public Type ResolvedType { get; set; } public string N...
20.352941
58
0.627168
[ "MIT" ]
franck-gaspoz/WPFUtilities
SampleApp/Components/ComponentHosts/Hosts/Data/ServiceModel.cs
348
C#
namespace Socket.WebSocket4Net.Default { public enum WebSocketVersion { None = -1, DraftHybi00 = 0, DraftHybi10 = 8, Rfc6455 = 13, // 0x0000000D } }
21
40
0.64881
[ "MIT" ]
EliseuPHP/MotionSensorUnity
Assets/Plugins/Socket/WebSocket4Net/Default/WebSocketVersion.cs
168
C#
#pragma warning disable 1591 //------------------------------------------------------------------------------ // <auto-generated> // Este código fue generado por una herramienta. // Versión de runtime:4.0.30319.42000 // // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán...
32.012782
150
0.733157
[ "MIT" ]
AlbertoLeon/couple-expenses
src/CouplesExpenses/CouplesExpenses.Android/Resources/Resource.designer.cs
225,407
C#
// <copyright file="SkippedScenarioFeature.cs" company="xBehave.net contributors"> // Copyright (c) xBehave.net contributors. All rights reserved. // </copyright> namespace Xbehave.Test { using System; using System.Linq; using FluentAssertions; using Xbehave.Test.Infrastructure; using X...
32.125
84
0.570039
[ "MIT" ]
biohazard999/xbehave.net
tests/Xbehave.Test/SkippedScenarioFeature.cs
1,544
C#
using NUnit.Framework; using NUnit.Framework.Interfaces; namespace System.IO.Abstractions.TestingHelpers.Tests { internal sealed class WindowsOnlyAttribute : Attribute, ITestAction { private readonly string reason; public WindowsOnlyAttribute(string reason) { this.reason = ...
23.035714
71
0.610853
[ "MIT" ]
BADF00D/System.IO.Abstractions
System.IO.Abstractions.TestingHelpers.Tests/WindowsOnlyAttribute.cs
645
C#
using System; namespace Millarow.Presentation.MVP { public interface ICommand<T> : IConditional { Action<T> Handler { get; set; } } }
16.5
48
0.6
[ "MIT" ]
mcculic/millarowframework
src/Millarow.Presentation/MVP/ICommand`1.cs
167
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Threading; using Microsoft.CodeAna...
45.313636
190
0.629953
[ "Apache-2.0" ]
20chan/roslyn
src/Compilers/CSharp/Portable/Binder/SwitchExpressionBinder.cs
9,971
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.307018
191
0.583563
[ "BSD-3-Clause" ]
GenesysPureConnect/CefSharp
CefSharp.WinForms.Example/Properties/Resources.Designer.cs
4,711
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using HandlebarsDotNet; namespace YuzuDelivery.Core { public class ToLowerCase { public ToLowerCase() { HandlebarsDotNet.Handlebars.RegisterHelper("toLowerCase", (wri...
22.52381
102
0.636364
[ "MIT" ]
balanced-dev/yuzudelivery.core
YuzuDelivery.Core/HbsHelpers/ToLowerCase.cs
475
C#
using System; using Xunit; using Http2; namespace Http2Tests { public class FrameTests { [Fact] public void FrameHeadersShouldBeDecodable() { var header = new byte[] { 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0x7F, 0xFF, 0xFF, 0xFF }; var frame = FrameHeader.DecodeFrom(ne...
34.428571
95
0.530602
[ "MIT" ]
DotNetUz/http2dotnet
Http2Tests/FrameTests.cs
1,928
C#
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * -----------------------------...
26.941176
83
0.451965
[ "Apache-2.0" ]
speakeasy/gdal
swig/csharp/gdal/Access.cs
458
C#
using System; using System.ComponentModel.DataAnnotations; namespace CatsCloset.Model { public class SessionMessage { [Key] public string Id { get; set; } public string Content { get; set; } public DateTime LastUpdate { get; set; } } }
11.458333
44
0.647273
[ "MIT" ]
desotohs/cats-closet-point-of-sale
Model/SessionMessage.cs
277
C#
//------------------------------------------------------------------------- // Copyright © 2020 Province of British Columbia // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
46.971429
95
0.648418
[ "Apache-2.0" ]
bradhead/Keycloak-AuthZClient-DotNetCore
sdk/src/Authorization/Representations/DecisionStrategy.cs
1,645
C#
using AutoMapper; using AutoMapper.QueryableExtensions; using Microsoft.Data.Entity; using MvcTemplate.Components.Html; using MvcTemplate.Components.Security; using MvcTemplate.Data.Core; using MvcTemplate.Objects; using MvcTemplate.Resources; using MvcTemplate.Resources.Privilege; using MvcTemplate.Services; using Mv...
35.326733
183
0.596973
[ "MIT" ]
SuryaLim/MVC6.Template
test/MvcTemplate.Tests/Unit/Services/Administration/Roles/RoleServiceTests.cs
14,274
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Microsoft.Azure.II...
35.112245
99
0.554199
[ "MIT" ]
TheWaywardHayward/Industrial-IoT
modules/opc-twin/src/v2/Models/EndpointApiModel.cs
3,441
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Owin; using Owin; [assembly: OwinStartup(typeof(MotherOut.Startup))] namespace MotherOut { public partial class Startup { public void Configuration(IAppBuilder app) { ConfigureAuth(app); } ...
17.210526
50
0.669725
[ "MIT" ]
Florida2DAM/MotherOut
BackEnd/MotherOut/MotherOut/Startup.cs
329
C#
namespace FsbFontLib.Font { using System.IO; using System.Text; using FsbCommonLib; using FsbFontLib.BMFont; /// <summary> /// フォント座標ヘッダー /// </summary> public class FsbFontHeader { public int GameObjectFileID { get; private set; } public long GameObj...
34.441667
70
0.558795
[ "MIT" ]
synctam/FssJpModAid
FsbFontLib/Font/FsbFontHeader.cs
8,588
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Configurer; using Microsoft.DotNet.Tools.Tool.Install; using Microsoft.Extensions.Envir...
37.642857
124
0.698292
[ "MIT" ]
assyadh/cli
src/dotnet/ToolPackage/ToolPackageFactory.cs
1,583
C#
////////////////////////////////////////////////////////////// // <auto-generated>This code was generated by LLBLGen Pro 5.4.</auto-generated> ////////////////////////////////////////////////////////////// // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates ...
49.191781
418
0.76339
[ "MIT" ]
sanekpr/RawDataAccessBencher
LLBLGen54/DatabaseGeneric/EntityClasses/AddressTypeEntity.cs
10,775
C#
// // AuthenticatedPostHandler.cs // // Author: // Martin Baulig <martin.baulig@xamarin.com> // // Copyright (c) 2014 Xamarin Inc. (http://www.xamarin.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), t...
31.646617
130
0.743645
[ "MIT" ]
stefb965/web-tests
Xamarin.WebTests.Framework/Xamarin.WebTests.HttpHandlers/AuthenticationHandler.cs
4,211
C#
using System; using System.Windows.Forms; using BizHawk.Client.Common; namespace BizHawk.Client.EmuHawk { public partial class DefaultGreenzoneSettings : Form { private TasStateManagerSettings _settings; public DefaultGreenzoneSettings() { InitializeComponent(); _settings = new TasStat...
21.974359
90
0.729288
[ "MIT" ]
Gorialis/BizHawk
BizHawk.Client.EmuHawk/tools/TAStudio/DefaultGreenzoneSettings.cs
859
C#
using Newtonsoft.Json; namespace Dmc.GuessWho.Web.Dtos { public class EmployeeDto { [JsonProperty("name")] public string Name { get; set; } [JsonProperty("normalImageUrl")] public string NormalImageUrl { get; set; } [JsonProperty("funImageUrl")] public string Fu...
25.071429
50
0.615385
[ "MIT" ]
swebgit/dmc-guess-who
Dmc.GuessWho.Web/Dtos/EmployeeDto.cs
353
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Envy.API.Extensions; namespace Envy.API.Entities { public class User { [Required] public Guid Id { get; set; } [Required] public string UserName { get; set; } public stri...
22.693878
65
0.584532
[ "Apache-2.0" ]
jokocide/envy
api/src/Entities/User.cs
1,112
C#
namespace GalleryServer.Areas.Admin.Features.Category.Models { public class CreatePostRequestModel { public string Title { get; set; } } }
20
61
0.6875
[ "MIT" ]
martin-petrov03/Gallery
GalleryServer/GalleryServer/Areas/Admin/Features/Category/Models/CreatePostRequestModel.cs
162
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.IO; using System.Linq; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.RunTe...
42.6875
131
0.635066
[ "MIT" ]
cluesblues/machinelearning
test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainSaveModelAndPredict.cs
2,734
C#
using System; using System.IO; using BuzzardWPF.Management; using BuzzardWPF.Properties; using ReactiveUI; namespace BuzzardWPF.Searching { /// <summary> /// Class that holds the information from the user interface about how to find data files. /// </summary> public class SearchConfig : Rea...
33.995633
140
0.549647
[ "Apache-2.0" ]
PNNL-Comp-Mass-Spec/Buzzard
BuzzardWPF/Searching/SearchConfig.cs
7,787
C#
using Newtonsoft.Json; namespace Amazon.Advertising.API.Models { public class SuggestedKeyword { /// <summary> /// The suggested keyword /// </summary> [JsonProperty("keywordText")] public string KeywordText { get; set; } /// <summary> /// Match type of...
22.8
47
0.565789
[ "BSD-3-Clause" ]
1992w/amazon-advertising-api-csharp
source/Amazon.Advertising.API/Models/SuggestedKeyword.cs
458
C#
using System; using System.Collections.Generic; using System.Security; using Moq; using NBitcoin; using Newtonsoft.Json; using Stratis.Bitcoin.Base; using Stratis.Bitcoin.Configuration; using Stratis.Bitcoin.Features.Miner.Interfaces; using Stratis.Bitcoin.Features.Miner.Models; using Stratis.Bitcoin.Features.RPC; usi...
38.882629
262
0.616035
[ "MIT" ]
BreezeHub/StratisBitcoinFullNode
src/Stratis.Bitcoin.Features.Miner.Tests/MiningRPCControllerTest.cs
8,284
C#
using System; using Xamarin.UITest; using Query = System.Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>; namespace MyDriving.UITests { public class SettingsPage : BasePage { readonly Func<string, Query> CheckBox; readonly Query SettingsTab; public SettingsPage(...
25.459459
104
0.463907
[ "MIT" ]
AErmie/OpenHack-DevOps2
MobileApps/MyDriving/MyDriving.UITests/Pages/SettingsPage.cs
1,886
C#
#region Copyright //======================================================================================= // Microsoft // // This sample is supplemental to the technical guidance published on my personal // blog at https://github.com/paolosalvatori. // // Author: Paolo Salvatori //========================...
42.742857
94
0.572193
[ "MIT" ]
paolosalvatori/azure-ad-workload-identity
src/TodoApi/Models/NotificationServiceOptions.cs
1,498
C#
namespace LanguageServer { using Antlr4.Runtime; using Antlr4.Runtime.Misc; using Antlr4.Runtime.Tree; using Domemtech.Symtab; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; public class Antlr4ParsingResults : ParsingResul...
39.669744
146
0.407036
[ "MIT" ]
kaby76/AntlrVSIX
LanguageServer/Antlr4ParsingResults.cs
55,857
C#
using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; using Qualm.AspNetCore.Swagger.Extensions; using Swashbuckle.AspNetCore.SwaggerGen; namespace Qualm.AspNetCore.Swagger { public class EnumParameterFilter : IParameterFilter { public void Apply(OpenApiParameter parameter, ParameterFilterConte...
31.391304
85
0.627424
[ "MIT" ]
Cyberkruz/qualm
src/Qualm.AspNetCore.Swagger/EnumParameterFilter.cs
724
C#
using System; using System.Collections.Generic; using Horizon.Payment.Alipay.Domain; using Horizon.Payment.Alipay.Response; using Horizon.Payment.Alipay.Utility; namespace Horizon.Payment.Alipay.Request { /// <summary> /// alipay.open.agent.zhimabrief.sign /// </summary> public class AlipayOpenAgentZ...
30.409449
211
0.561756
[ "Apache-2.0" ]
bluexray/Horizon.Sample
Horizon.Payment.Alipay/Request/AlipayOpenAgentZhimabriefSignRequest.cs
8,770
C#
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated ...
39.928571
96
0.754472
[ "MIT" ]
alex-doe/obdii-dashboard
OBDIIDashboard/ODBII.Simulator/Properties/AssemblyInfo.cs
2,239
C#
using System; using System.Net; namespace Microsoft.VisualStudio.Services.Agent.Listener.Diagnostics { class DnsTest : IDiagnosticTest { public bool Execute(ITerminal terminal) { try { IPHostEntry host = Dns.GetHostEntry(c_hostname); ter...
25.935484
92
0.508706
[ "MIT" ]
50Wliu/azure-pipelines-agent
src/Agent.Listener/Diagnostics/DnsTest.cs
806
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("Do...
38.027027
84
0.744136
[ "MIT" ]
FHNW-dnead/dotnetbay-hs18
source/DotNetBay.Data.EF/Properties/AssemblyInfo.cs
1,410
C#
// ---------------------------------------------------------------------------------- // <copyright file="DefaultLockFactory.cs" company="NMemory Team"> // Copyright (C) NMemory Team // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated d...
44.425
87
0.621835
[ "MIT" ]
CedricDumont/NMemory.Next
Main/Source/NMemory/Concurrency/Locks/DefaultLockFactory.cs
1,779
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 "...
40.806452
84
0.73004
[ "MIT" ]
dmacka/MultiverseClientServer
Tools/AssetImporter/Properties/AssemblyInfo.cs
2,531
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. namespace Mi...
67.773585
306
0.693207
[ "MIT" ]
Agazoth/azure-powershell
src/Migrate/generated/api/Models/Api20210210/RenewCertificateInputProperties.json.cs
7,079
C#
// // Copyright 2018-2020 Dynatrace LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
40.288462
106
0.65537
[ "Apache-2.0" ]
stefaneberl/openkit-dotnet
src/Dynatrace.OpenKit/Protocol/IHttpClient.cs
2,097
C#
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Roslynator.CSharp.CodeFixes; using Roslynator.Testing.CSharp; using Xunit; namespace Roslyn...
23.891304
160
0.674249
[ "Apache-2.0" ]
JosefPihrt/Roslynator
src/Tests/Analyzers.Tests/RCS1143SimplifyCoalesceExpressionTests.cs
1,101
C#
using Microsoft.EntityFrameworkCore; using SmartSchool.WebAPI.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SmartSchool.WebAPI.Data { public class SmartContext : DbContext { public SmartContext(DbContextOptions<SmartContext> options)...
51.989796
99
0.518155
[ "MIT" ]
cristianoandrad/SmartSchoolCode
SmartSchool.WebAPI/Data/SmartContext.cs
5,118
C#
using Godot; using System; public class Fletcher : Building { static public new int GoldCost = 0; static public new int WoodCost = 15; static public new int PitchCost = 0; static public new int StoneCost = 0; static public new string Resource = "res://Scenes/Building/Military/Fletcher.tscn"; /...
25.25
87
0.665017
[ "MIT" ]
lordee/FreeHold
Scripts/Building/Military/Fletcher.cs
606
C#
// // System.SerializableAttribute.cs // // Author: // Miguel de Icaza (miguel@ximian.com) // // (C) Ximian, Inc. http://www.ximian.com // // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associate...
37.384615
73
0.735391
[ "Apache-2.0" ]
CRivlaldo/mono
mcs/class/corlib/System/SerializableAttribute.cs
2,430
C#
using System; namespace CharlieMaths.Models { public class Item { public string Id { get; set; } public string Text { get; set; } public string Description { get; set; } } }
19.181818
47
0.587678
[ "Apache-2.0" ]
Lamothe/CharlieMaths
CharlieMaths/CharlieMaths/Models/Item.cs
213
C#
namespace Lsquared.SmartHome.Zigbee.ZDO { public sealed record ComplexDescriptor : IValue { // TODO } }
15.625
51
0.64
[ "MIT" ]
LsquaredTechnologies/smarthome-zigbee
src/Zigbee.Abstractions/ZDO/ComplexDescriptor.cs
127
C#
/* _____ _ ____ _ _ |_ _|_ _ ___| | _| __ )| | ___ ___| | __ | |/ _` / __| |/ / _ \| |/ _ \ / __| |/ / | | (_| \__ \ <| |_) | | (_) | (__| < |_|\__,_|___/_|\_\____/|_|\___/ \___|_|\_\ Project started on 19/10/2014 ...
23.1
64
0.49026
[ "MIT" ]
pedro-lb/TaskBlock
TaskBlock/aboutForm.cs
926
C#
using AppDigitalCv.Repository.Infraestructure; using AppDigitalCv.Repository.Infraestructure.Contract; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AppDigitalCv.Repository { public class AlergiasRepository : BaseRepository<catAlergia...
22.894737
76
0.76092
[ "MIT" ]
AppDigitalCVU/DigitalCv
AppDigitalCv/AppDigitalCv.Repository/AlergiasRepository.cs
437
C#
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team // // 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, co...
42.933333
208
0.692741
[ "MIT" ]
galich/SharpDevelop
src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Designer/GeneratePanelFormTestFixture.cs
5,154
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DocAsCode.Dfm { using System.Text.RegularExpressions; using Microsoft.DocAsCode.MarkdownLite; public class DfmVideoBlockRule : IMarkdo...
36.225806
166
0.635797
[ "MIT" ]
MorganOBN/KoA-Story
src/Microsoft.DocAsCode.Dfm/Rules/DfmVideoBlockRule.cs
1,123
C#
using System.Threading.Tasks; using Chat.Domain.Domains; namespace Chat.Domain.Services.Abstractions { public interface IBotService { Task ProcessCommandAsync(Message message); bool IsValidCommand(string content); Task ProcessCallbackStockAsync(Stock stock); } }
23.153846
52
0.727575
[ "MIT" ]
gomespauloho/chat
src/Chat.Domain/Services/Abstractions/IBotService.cs
303
C#
using System.Collections.Generic; using PizzaWorld.Domain.Models; namespace PizzaWorld.Domain.Abstracts { public class APizzaModel : AEntity // no longr abstract bc creating a new migration expects concrete classes { public string Name { get; set; } public decimal TypePrice { get; set; } ...
27.613636
112
0.576132
[ "MIT" ]
joshwingreene/project-p0
PizzaWorld.Domain/Abstracts/APizzaModel.cs
1,215
C#
using Microsoft.Maui.Animations; using Microsoft.Maui.Controls; namespace Microsoft.Maui.Graphics.Controls { public class MaterialEntryDrawable : ViewDrawable<IEntry>, IEntryDrawable { const string MaterialEntryIndicatorIcon = "M9.295 7.885C9.68436 8.27436 9.68436 8.90564 9.295 9.295C8.90564 9.68436 8...
35.887701
500
0.567427
[ "MIT" ]
LowerAI/Microsoft.Maui.Graphics.Controls
src/GraphicsControls/Handlers/Entry/MaterialEntryDrawable.cs
6,713
C#
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using TheAirBlow.Engine.API.Binary; using TheAirBlow.Eng...
34.25
164
0.585766
[ "Apache-2.0" ]
TheAirBlow/untitled-engine
TheAirBlow.Engine.API/Worker/Game.cs
3,838
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
44.186603
164
0.612019
[ "MIT" ]
Aliases/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/OfficeGraphInsightsUsedCollectionRequest.cs
9,235
C#
using System.IO; using CP77.CR2W.Reflection; using FastMember; using static CP77.CR2W.Types.Enums; namespace CP77.CR2W.Types { [REDMeta] public class ForceVisionApperanceEvent : redEvent { [Ordinal(0)] [RED("apply")] public CBool Apply { get; set; } [Ordinal(1)] [RED("forceCancel")] public CBool Fo...
38.55
112
0.708171
[ "MIT" ]
Eingin/CP77Tools
CP77.CR2W/Types/cp77/ForceVisionApperanceEvent.cs
752
C#
// FILE AUTOGENERATED. DO NOT MODIFY namespace Starfield.Core.Item.Items { [Item("minecraft:purpur_block", 175, 64, 493)] public class ItemPurpurBlock : BlockItem { } }
30.333333
51
0.697802
[ "MIT" ]
StarfieldMC/Starfield
Starfield.Core/Item/Items/ItemPurpurBlock.cs
182
C#
using System; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; namespace FIFAConnectorClient; internal static class MemoryManager { private const int ProcessAll = 0x001F0FFF; [Flags] private enum AllocationType { Commit = 0x1000, Reserve = 0x2000, ...
32.710526
149
0.68745
[ "MIT" ]
Pilo11/FIFAConnector
src/FIFAConnectorClient/MemoryManager.cs
2,486
C#
using System; using System.IO; using System.Text; namespace WordGuess { public class Program { public static readonly string path = "../../../../../words.txt"; static readonly Random random = new Random(); /// <summary> /// Creates words.txt with a set of default words if it d...
32.81746
145
0.465699
[ "MIT" ]
btaylor93/Lab03-WordGuess
WordGuess/WordGuess/Program.cs
12,407
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // La información general de un ensamblado se controla mediante el siguiente // conjunto de atributos. Cambie estos valores de atributo para modificar la información // asociada con un ensamblado. [assembly: Assembl...
41.162162
102
0.759685
[ "MIT" ]
Blindfold-Games/ONI-Modloader-Mods
Source/BuildingModifierMod/Properties/AssemblyInfo.cs
1,541
C#
// <copyright file="PngEncoderTests.cs" company="James Jackson-South"> // Copyright (c) James Jackson-South and contributors. // Licensed under the Apache License, Version 2.0. // </copyright> using ImageSharp.Formats; namespace ImageSharp.Tests { using System.IO; using System.Threading.Tasks; using Xun...
29.444444
117
0.469811
[ "Apache-2.0" ]
ststeiger/ImageSharpTestApplication
tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs
1,592
C#
using System; using dsn.dev.csharp; namespace dsn.example { public class echoServer : Serverlet<echoServer> { public echoServer() : base("echo") {} ~echoServer() { } // all service handlers to be implemented further // RPC_ECHO_ECHO_PING private void OnpingIntern...
25.272727
97
0.502158
[ "MIT" ]
Bhaskers-Blu-Org2/rDSN
src/plugins/apps.echo.csharp/echo.server.cs
1,390
C#
// // DProjectReference.cs // // Author: // Alexander Bothe <info@alexanderbothe.com> // // Copyright (c) 2013 Alexander Bothe // // 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 with...
27.764228
92
0.714202
[ "Apache-2.0" ]
llucenic/Mono-D
MonoDevelop.DBinding/Projects/ProjectPad/DProjectReference.cs
3,415
C#
using GildedRoseCSharpCore.Entity; using GildedRoseCSharpCore.Interfaces; using GildedRoseCSharpCore.Services; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; namespace GildedRoseCSharpCore { public class Program { ...
32.439394
124
0.60439
[ "MIT" ]
pramod-kp/GildedRoseRefactoring-Method-3
GildedRoseCSharpCore/Program.cs
2,143
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.3053 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated...
42.571429
192
0.596197
[ "Apache-2.0" ]
econmed/ImageServer20
ImageServer/Services/ServiceLock/FilesystemFileImporter/DirectoryImportSettings.Designer.cs
2,684
C#
using Microsoft.EntityFrameworkCore; using System.Collections.Generic; public class DatabaseContext : DbContext { public DbSet<Karma> Karmas { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseSqlite("Data Source=blogging.db"); } }
28.727273
81
0.756329
[ "MIT" ]
Amsterdam-bene/WebApi
Storage/DatabaseContext.cs
316
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...
49.424
180
0.67449
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/RDS/Generated/Model/PointInTimeRestoreNotEnabledException.cs
6,178
C#
using System; using System.Collections.Generic; using System.IO; using Cethleann.Archive; using Cethleann.ManagedFS.Options; using Cethleann.Structure; using DragonLib; using DragonLib.IO; using JetBrains.Annotations; namespace Cethleann.ManagedFS { /// <summary> /// Nioh archive_*.bin file management ...
33.841379
163
0.524353
[ "MIT" ]
TGEnigma/Cethleann
Cethleann/ManagedFS/Mitsunari.cs
4,909
C#
namespace Silky.Identity.Domain; public static class IdentityUserConsts { public static int MaxUserNameLength { get; set; } = 256; public static int MaxRealNameLength { get; set; } = 64; public static int MaxSurnameLength { get; set; } = 64; public static int MaxNormalizedUserNameLength { get; set;...
31.807692
84
0.683192
[ "MIT" ]
DotNetExample/silky.hero
services/Silky.Identity/src/Silky.Identity.Domain/Identity/IdentityUserConsts.cs
829
C#
using System; using System.Web.Mvc; using Microsoft.ApplicationInsights; namespace Moovies.ErrorHandler { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = true)] public class AiHandleErrorAttribute : HandleErrorAttribute { public override void OnE...
882
882
0.624717
[ "MIT" ]
claudioct/moovies
Moovies/ErrorHandler/AiHandleErrorAttribute.cs
882
C#
using System.Web; using DogeNews.Common.Enums; namespace DogeNews.Web.Mvp.News.Edit.EventArguments { public class EditArticleEventArgs { public int Id { get; set; } public string Title { get; set; } public HttpPostedFile Image { get; set; } public string FileName { get; set...
20.571429
54
0.62963
[ "MIT" ]
gbelchev/Doge-News
DogeNews/Src/Web/DogeNews.Web.Mvp/News/Edit/EventArguments/EditArticleEventArgs.cs
434
C#
using System.IO; using store.Src.Utils.Interface; using Microsoft.Extensions.Configuration; using Microsoft.AspNetCore.Hosting; namespace store.Src.Utils { public class Config : IConfig { private readonly IWebHostEnvironment env; public Config(IWebHostEnvironment env) { th...
30.107143
150
0.648873
[ "MIT" ]
MonoInfinity/mono-shopping-store-be
Src/Utils/Config.cs
843
C#
using Microsoft.Extensions.Configuration; using Castle.MicroKernel.Registration; using Abp.Events.Bus; using Abp.Modules; using Abp.Reflection.Extensions; using Project1.Configuration; using Project1.EntityFrameworkCore; using Project1.Migrator.DependencyInjection; namespace Project1.Migrator { [DependsOn(typeof(P...
33.395833
104
0.683094
[ "MIT" ]
buiphuocnhat/DemoBoilerPlate
aspnet-core/src/Project1.Migrator/Project1MigratorModule.cs
1,603
C#
using System; using System.Collections.Generic; using Xamarin.Forms; namespace XamarinEvolve.Clients.UI { public partial class TweetCell : ContentView { public TweetCell() { InitializeComponent(); } } }
15.875
48
0.629921
[ "MIT" ]
XpiritBV/app-evolve
src/XamarinEvolve.Clients.UI.NetStandard/Cells/TweetCell.xaml.cs
256
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Business.Abstract; using Entities.Concrete; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Mi...
37.869149
312
0.524117
[ "MIT" ]
jovasoft/HizliTicaret
HizliTicaret/Web/Controllers/AdminController.cs
35,602
C#
using System.Reflection; namespace DependencyInjector.Constants { public static class BuildInfo { #if DEBUG public const bool IsDebug = true; #else public const bool IsDebug = false; #endif public static readonly string Version = Assembly.GetAssembly(typeof (Contract)).GetName().Versi...
21.4375
117
0.699708
[ "MIT" ]
dependencyinjector/dependencyinjector
DependencyInjector/DependencyInjector/Constants/BuildInfo.cs
345
C#
/** * Copyright (c) 2014-present, Facebook, Inc. * Copyright (c) 2018-present, Marius Klimantavičius * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ //https://github.com/marius-klimantavicius/yoga namespace LayoutFarm.MariusYoga {...
40.052632
140
0.767411
[ "MIT" ]
LayoutFarm/PixelFarm
src/Tests/Marius.Yoga/YogaDelegates.cs
764
C#
using UnityEngine; namespace SOLID.DependencyInversion { public class MoverGood : MonoBehaviour { [SerializeField] private float speed = 5f; private IMovementInputGetter movementInputGetter = null; private void Awake() => movementInputGetter = GetComponent<IMovementInputGetter>(); ...
23.448276
91
0.583824
[ "MIT" ]
DapperDino/S.O.L.I.D
Assets/Scripts/DependencyInversion/MoverGood.cs
682
C#
using System; using System.Collections.Generic; using System.Text; using JokinsCryptor; using Xunit; namespace JokinsCryptor.Tests { public class SHA_Tests { [Fact(DisplayName = "SHA1 success test")] public void SHA1_Success_Test() { var srcString = "sha encrypt"; ...
28.514563
175
0.590398
[ "MIT" ]
JokinAce/JokinsCryptor
test/JokinsCryptor.Tests/SHA_Tests.cs
2,937
C#
using CryptoApisLibrary.DataTypes; using CryptoApisLibrary.ResponseTypes.Blockchains; using System; namespace CryptoApisSnippets.Samples.Blockchains { partial class BlockchainSnippets { public void GetXPubChangeAddressesDoge() { var xpub = "dgub8nixrpFXn11V8rnfHrHj9CtnUVNnvxvRcH8HFzXgp5ndWwBFrQdRhnw...
37
131
0.756757
[ "MIT" ]
Crypto-APIs/.NET-Library
CryptoApisSnippets/Samples/Blockchains/Wallets/GetXPubChangeAddressesDoge.cs
927
C#
using System; namespace Database.Exceptions { public class ClientNotInitializedException : Exception { public ClientNotInitializedException() : base("Initialize elastic client before using it.") { } } }
20.916667
62
0.645418
[ "MIT" ]
Parsa2820/Polaris-MSSQL
Back end/Polaris/Database/Exceptions/ClientNotInitializedException.cs
251
C#
using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; using System; using System.Collections.Generic; using System.IO; using TGC.Core.BoundingVolumes; using TGC.Core.Direct3D; using TGC.Core.Mathematica; using TGC.Core.SceneLoader; using TGC.Core.Textures; using TGC.Group.Model.CreateBufferStrategy; using static ...
36.664384
182
0.577433
[ "MIT" ]
MendezBruno/tgc-Objloader
TGC.Group/Model/MeshBuilder.cs
10,709
C#
using System.Collections.Generic; using Lucene.Net.Facet; namespace Lucene.Net.Facet.Taxonomy { /* * 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...
38.558442
133
0.627147
[ "Apache-2.0" ]
CerebralMischief/lucenenet
src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetCounts.cs
2,971
C#
using Emby.Naming.Common; using Emby.Naming.TV; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Emby.Naming.Tests.TV { [TestClass] public class EpisodeNumberTests { [TestMethod] public void TestEpisodeNumber1() { Assert.AreEqual(03, GetEpisodeNumberFromFil...
32.306954
199
0.594418
[ "MIT" ]
MediaBrowser/Emby.Naming
Emby.Naming.Tests/TV/EpisodeNumberTests.cs
13,474
C#
using System; using System.Threading.Tasks; namespace FlickrToCloud.Contracts.Interfaces { public interface IAuthenticationCallbackDispatcher { void Register(IAuthenticationCallback callback); void Unregister(IAuthenticationCallback callback); Task<bool> DispatchUriCallback(Uri eventAr...
27.916667
58
0.761194
[ "MIT" ]
havlicekp/flickr-to-cloud
src/FlickrToCloud.Contracts/Interfaces/IAuthenticationCallbackDispatcher.cs
337
C#
using iot.solution.data; using iot.solution.entity; using iot.solution.model.Repository.Interface; using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Linq; using System.Reflection; using Entity = iot.solution.entity; using LogHandler = component.services.loghandle...
78.378947
182
0.692049
[ "MIT" ]
iotconnect-apps/AppConnect-SmartGreenHouse
iot.solution.model/Repository/Implementation/CompanyRepository.cs
7,448
C#
#if NETSTANDARD // // System.Configuration.ConfigurationPropertyOptions.cs // // Authors: // Duncan Mak (duncan@ximian.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without res...
35.065217
73
0.728456
[ "Apache-2.0" ]
LuciferJun1227/AntDeploy
AntDeployAgent/System.Configuration/ConfigurationPropertyOptions.cs
1,615
C#
#nullable disable using System; using System.Collections.Generic; using System.Linq; using VocaDb.Model.Domain.Security; namespace VocaDb.Model.Domain.Versioning { public interface IArchivedVersionsManager { IEnumerable<ArchivedObjectVersion> VersionsBase { get; } ArchivedObjectVersion GetLatestVe...
30.369369
128
0.700089
[ "MIT" ]
Pyther99/vocadb
VocaDbModel/Domain/Versioning/ArchivedVersionManager.cs
3,371
C#
using System; using System.Collections.Generic; using System.Text; namespace Inbox.Common.Model { public class EmailAddress { public string Name { get; } public string Address { get; } public EmailAddress(string name, string address) { Name = name; Addr...
19.708333
56
0.549683
[ "MIT" ]
jbatonnet/inbox
Inbox.Common/Model/EmailAddress.cs
475
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using SmartForm.Common.Domain.Models; using SmartForm.Common.Repository; namespace SmartForm.Common.Services { public class EntityService<T> : IEntityService<T> where T : BaseModel { public readonly IBaseRepository<T> _baseR...
26.333333
80
0.606992
[ "MIT" ]
masoudtahmasebi93/SmartForm
src/Shared/SmartForm.Common/Services/EntityService.cs
1,661
C#
using Leadersofpositvechange.Models; using LOPC.Entities.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace Leadersofpositvechange.Controllers { public class HomeController : Controller { private readonly PositiveChangeEntiti...
24.548523
111
0.452217
[ "MIT" ]
Yamzz/LeadersOfPositiveChangeWebsite
LeadersOfPositiveChange/Leadersofpositvechange/Controllers/HomeController.cs
5,820
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> //---...
44.755224
175
0.62129
[ "Apache-2.0" ]
kidrabit/Data-Visualization-Lab-RND
VR/dance_co/VR Dance Ver.3/Assets/SteamVR_Input/SteamVR_Input_Actions.cs
14,993
C#
using SQLite; using System; using System.Collections.Generic; using System.Text; namespace Velha.Modelos { public class Partida { [PrimaryKey, AutoIncrement] public int ID { get; set; } public DateTime DataInicial { get; set; } public DateTime DataFinal { get; set; } ...
18.44
49
0.59436
[ "MIT" ]
zehguilherme/mobile-senac-bauru
Velha/Velha/Velha/Modelos/Partida.cs
463
C#
// Copyright (c) Alexandre Mutel. All rights reserved. // This file is licensed under the BSD-Clause 2 license. // See the license.txt file in the project root for more information. using System.Collections.Generic; using Markdig.Helpers; using Markdig.Parsers; using Markdig.Syntax; namespace Markdig.Extensions.Tabl...
38.840659
146
0.495473
[ "BSD-2-Clause" ]
Acorisoft/markdig
src/Markdig/Extensions/Tables/GridTableParser.cs
14,138
C#
/** * Copyright (c) 2008-2020 Bryan Biedenkapp., All Rights Reserved. * MIT Open Source. Use is subject to license terms. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. */ /* * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentati...
33.653465
208
0.594734
[ "MIT" ]
gatekeep/Trident.RPC
RPCContext.cs
6,800
C#