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 System.Collections; using System.Collections.Generic; using UnityEngine; /* Sound controller, currently only for player jumps */ public class UpdateAudio : MonoBehaviour { private bool jumpSoundPlayed; private PlayerState state; private AudioSource jump; // Use this for initialization void Awake () { ...
19
52
0.708882
[ "MIT" ]
olmorrish/ThisMindOfMine
Assets/Scripts/PlayerBehavior/UpdateAudio.cs
610
C#
namespace BlazorShop.Web.Client.Shared.Navigation { using Models.Products; public partial class NavSearch { private readonly ProductsSearchRequestModel searchModel = new ProductsSearchRequestModel(); private void Search() => this.NavigationManager.NavigateTo($"/products/search/{this.searc...
29.333333
120
0.732955
[ "MIT" ]
FredericoSilvaTeles/BlazorShop
src/BlazorShop.Web/Client/Shared/Navigation/NavSearch.razor.cs
354
C#
#region (c) 2010-2012 Lokad - CQRS Sample for Windows Azure - New BSD License // Copyright (c) Lokad 2010-2012, http://www.lokad.com // This code is released as Open Source under the terms of the New BSD Licence #endregion using System; using System.Collections.Generic; namespace SaaS.Aggregates.User { public...
31.863158
123
0.582755
[ "BSD-3-Clause" ]
EventDay/lokad-cqrs
SaaS.Domain/Aggregates/User/UserAggregate.cs
3,029
C#
using System.IO; using System.Runtime.Serialization; using WolvenKit.CR2W.Reflection; using FastMember; using static WolvenKit.CR2W.Types.Enums; namespace WolvenKit.CR2W.Types { [DataContract(Namespace = "")] [REDMeta] public class CBehaviorGraphDirectionalMovementNode : CBehaviorGraphNode { [Ordin...
49.669903
165
0.733776
[ "MIT" ]
DerinHalil/CP77Tools
CP77.CR2W/Types/W3/RTTIConvert/CBehaviorGraphDirectionalMovementNode.cs
5,014
C#
using FlyingRat.Captcha.Configuration; using FlyingRat.Captcha.Model; using FlyingRat.Captcha.Validator; using SixLabors.ImageSharp; using System.Collections.Generic; namespace FlyingRat.Captcha { public class CaptchaCacheModel { /// <summary> /// Random gaps for the image /// </summar...
27.972222
55
0.573982
[ "MIT" ]
cqkisyouq/FlyingRat.Captcha
src/FlyingRat.Captcha/CaptchaCacheModel.cs
1,009
C#
using Microsoft.FSharp.Core; using System; using ZeroFormatter.Formatters; namespace ZeroFormatter.Extensions { internal class UnitFormatter<TTYpeResolver> : Formatter<TTYpeResolver, Unit> where TTYpeResolver : ITypeResolver, new() { readonly Formatter<TTYpeResolver, int> formatter; ...
32.083333
111
0.606061
[ "MIT" ]
JTOne123/ZeroFormatter.FSharpExtensions
src/ZeroFormatter.FSharpExtensions/UnitFormatter.cs
1,157
C#
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; namespace PowerDocu.Common { public static class ZipHelper { public const string FlowDefinitionFile = "definition.json"; public const string SolutionPackageWorkflowsPath = "Workflows/"; public...
39.680556
151
0.582779
[ "MIT" ]
modery/PowerDocu
PowerDocu.Common/ZipHelper.cs
2,857
C#
using System; using System.Collections.Generic; using System.Diagnostics.Contracts; using System.IO; using System.Linq; namespace ILRepacking.Steps.SourceServerData { internal interface ISourceServerDataRepackStep : IRepackStep, IDisposable { void Write(); } /// <summary> /// Get the pdb ...
28.238095
105
0.547049
[ "Apache-2.0" ]
Alexx999/il-repack
ILRepack/Steps/SourceServerData/SourceServerDataRepackStep.cs
2,965
C#
[System.Serializable] public class Story { public string title; public string text; public int id; public bool picked; public Story(int id, string title, string text) { this.id = id; this.title = title; this.text = text; picked = false; } public Story(st...
20.777778
70
0.593583
[ "MIT" ]
SuccessfulZ/Now-or-Never-Games
Assets/Project/Scripts/Narrative/Story.cs
376
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.ComponentModel.DataAnnotations; using System.Globalization; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; using Microsoft.Extensions.Localization...
38.033333
100
0.651621
[ "MIT" ]
48355746/AspNetCore
src/Mvc/Mvc.DataAnnotations/src/RangeAttributeAdapter.cs
2,282
C#
/* * 脚本名(ScriptName): UserModel.cs * 作者(Author): 小宝 * 官网(Url): http://www.youke.pro */ using UnityEngine; using System.Collections; public class UserModel : BaseModel { #region 基础数据,只允许设置一次 /// <summary> /// 玩家id /// </summary> public int userId { set; ...
16.482234
65
0.338158
[ "Unlicense" ]
paradisewu/IPADTOP
Assets/Scripts/ZG/UserModel.cs
3,353
C#
using System; using System.Collections; using System.IO; using System.Threading; using System.Windows; using System.Windows.Controls; using System.Windows.Media; using Szofttech_WPF.DataPackage; using Szofttech_WPF.EventArguments.Board; using Szofttech_WPF.EventArguments.Chat; using Szofttech_WPF.EventArguments.Client...
37.315642
147
0.586571
[ "MIT" ]
kapitany2/Szofttech-WPF
Szofttech-WPF/View/GameGUI.xaml.cs
13,367
C#
#region License // Copyright (c) 2009, ClearCanvas Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright noti...
49.431887
131
0.54588
[ "Apache-2.0" ]
econmed/ImageServer20
Dicom/SopClass.cs
147,105
C#
namespace Meraki.Api.Sections.General.Networks; public partial class NetworksClientsSection { [RefitPromoteCalls] internal INetworksClients Clients { get; set; } = null!; public INetworksClientsApplicationUsage ApplicationUsage { get; internal set; } = null!; public INetworksClientsPolicy Policy { get; internal s...
49.928571
107
0.79113
[ "MIT" ]
Pituzek/Meraki.Api
Meraki.Api/Sections/General/Networks/NetworksClientsSection.cs
701
C#
using Chinook.Domain.Entities; using System; using System.Collections.Generic; namespace Chinook.Domain.Repositories { public interface ICustomerRepository : IDisposable { List<Customer> GetAll(); Customer GetById(int id); List<Customer> GetBySupportRepId(int id); Customer Add(...
26.1875
54
0.687351
[ "MIT" ]
SeanKilleen/ChinookASPNETWebAPI
ChinookASPNETWebAPI/Chinook.Domain/Repositories/ICustomerRepository.cs
421
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 Micros...
38.187342
210
0.625497
[ "MIT" ]
333fred/roslyn
src/VisualStudio/Core/Def/Implementation/NavigationBar/NavigationBarClient.cs
15,086
C#
using System; using System.Linq; using JetBrains.Annotations; using Rees.TangyFruitMapper; namespace BudgetAnalyser.Engine.Statement.Data { [AutoRegisterWithIoC] internal partial class Mapper_TransactionSetDto_StatementModel { private readonly ILogger logger; private readonly IDtoMapper<Tr...
38.538462
149
0.701929
[ "MIT" ]
Benrnz/BudgetAnalyser
BudgetAnalyser.Engine/Statement/Data/StatementModelToDtoMapper.cs
1,505
C#
using System; class Program { static void Main() { Action a = delegate () { Console.WriteLine("In Anonymous Method"); }; Action b = () => { Console.WriteLine("In Lambda Expression "); }; a(); b(); } }
15.947368
55
0.422442
[ "MIT" ]
autumn009/UraCSharpSamples
Delegate/Delegate/Program.cs
305
C#
using HananokiEditor.Extensions; using HananokiRuntime; using System.Linq; using UnityEditor; using UnityEngine; using UnityReflection; using UnityObject = UnityEngine.Object; using E = HananokiEditor.AsmdefGraph.SettingsEditor; namespace HananokiEditor { public class AsmdefEditorWindow : HNEditorWindow<...
26.158228
113
0.641181
[ "MIT" ]
hananoki/AsmdefGraph
Editor/Tool/AsmdefEditorWindow.cs
4,163
C#
using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Order; using System.Threading.Tasks; namespace Benchmark.Base { [BenchmarkCategory("Slow")] public class SlowSorterBenchmark : BaseSorterBenchmark { [Params(ArrayType.Random, ArrayType.Ordered)] public ArrayType Type { get; set; } ...
44.354167
118
0.712071
[ "Apache-2.0" ]
StardustDL/NJU-PC-Lab
test/Benchmark.Base/SlowSorterBenchmark.cs
2,131
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 DotNetNuke.Entities.Portals; using DotNetNuke.Entities.Urls; namespace Dnn.PersonaBar.Pages.Components { ...
29.733333
72
0.764574
[ "MIT" ]
MaiklT/Dnn.Platform
Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Pages/IUrlRewriterUtilsWrapper.cs
448
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; namespace GuessMaster.widgets { public class BottomButton : Button { public BottomButton() { Margin = new Thickne...
19.25
51
0.646753
[ "MIT" ]
snaulX/GuessMaster
GuessMaster/widgets/BottomButton.cs
387
C#
using System; namespace Ch4_ProgramLarge6 { class Change : Colors { //variable limiting the maximum allowed change calculated. internal const int CHANGE_LIMIT = 100; static void Main(string[] args) { for (int i = 0; i < 1; i++) ...
37.828947
94
0.434783
[ "Apache-2.0" ]
EthanLawr/ComputerScience
Computer Science/Year_1_CSharp/Ch4_ProgramLarge6_Solution/Ch4_ProgramLarge6/Change.cs
2,877
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Connections; using Microsoft.AspNetCore.Connections.Features; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Microsoft.As...
32.525
133
0.628363
[ "MIT" ]
3ejki/aspnetcore
src/Servers/Kestrel/Core/src/Internal/Http2/Http2Stream.FeatureCollection.cs
2,602
C#
using System; namespace Lezizz.Core.Domain.Exceptions { public class AdAccountInvalidException : Exception { public AdAccountInvalidException(string adAccount, Exception ex) : base($"AD Account \"{adAccount}\" is invalid.", ex) { } } }
22
72
0.632867
[ "MIT" ]
hoseinipeyrov/Lezizz
Src/Core/Lezizz.Core.Domain/Exceptions/AdAccountInvalidException.cs
288
C#
using System.Web.Mvc; namespace V308CMS.Helpers.Url { public static class AccountUrlHelper { public static string AccountAjaxLoginUrl(this UrlHelper helper, string controller = "member", string action = "ajaxlogin") { return helper.Action(action, controller); } ...
37.914286
148
0.645818
[ "Unlicense" ]
giaiphapictcom/mamoo.vn
V308CMS/Helpers/Url/AccountUrlHelper.cs
2,656
C#
#region << 版 本 注 释 >> /*----------------------------------------------------------------- * 项目名称 :Kane.Extension * 项目描述 :通用扩展工具 * 类 名 称 :FormatHelper * 类 描 述 :常用的校验格式帮助类 * 所在的域 :KK-HOME * 命名空间 :Kane.Extension * 机器名称 :KK-HOME * CLR 版本 :4.0.30319.42000 * 作  者 :Kane Leung * 创建时间 :2020/02/20 19:38:55 * 更新时间 :2020/12/04 0...
44.034188
209
0.533773
[ "MIT" ]
KaneLeung/Kane.Extension
Src/字符串类/FormatHelper.cs
11,868
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Thre...
43.794118
184
0.716924
[ "MIT" ]
CyrusNajmabadi/roslyn
src/VisualStudio/IntegrationTest/New.IntegrationTests/InProcess/InProcComponent.cs
2,980
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using Foundatio.Extensions; using Foundatio.Serializer; using Foundatio.Utility; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; namespace Foun...
40.943775
193
0.587445
[ "Apache-2.0" ]
se/Foundatio
src/Foundatio/Storage/FolderFileStorage.cs
10,197
C#
using NUnit.Framework; using System; using System.Collections.Generic; using System.IO; namespace Lucene.Net.Analysis.Ja { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional infor...
40.52381
136
0.622013
[ "Apache-2.0" ]
DiogenesPolanco/lucenenet
src/Lucene.Net.Tests.Analysis.Kuromoji/TestJapaneseKatakanaStemFilterFactory.cs
2,693
C#
using System; using Moq; using XUnitMoqSampleWeb.Controllers; using XUnitMoqSampleWeb.Services; namespace XUnitMoqSampleWeb.Tests.Fixtures { /// <summary> /// This represents the fixture entity for the <see cref="HomeController"/> class. /// </summary> public class HomeControllerFixture : IDisposabl...
27.592593
116
0.587919
[ "MIT" ]
devkimchi/xUnit-Moq-Sample
test/xUnitMoqSampleWeb.Tests/Fixtures/HomeControllerFixture.cs
1,492
C#
using ShoppingCart.Models; using ShoppingCart.Services; using System.Windows.Input; using Xamarin.Forms; namespace ShoppingCart.ViewModels { public class CategoryViewModel : BaseViewModel { private readonly Category _category; public CategoryViewModel(Category category) { ...
25.071429
104
0.553656
[ "MIT" ]
jquintus/ShoppingCartXF
ShoppingCart/ShoppingCart/ViewModels/CategoryViewModel.cs
1,055
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Web.Http; using System.Web...
51.495726
196
0.623154
[ "Apache-2.0" ]
khairuzzaman/TaskManager
TaskManagement.Web/Areas/HelpPage/HelpPageConfigurationExtensions.cs
24,100
C#
// <copyright file="SearchVideosPage.xaml.cs" company="Drastic Actions"> // Copyright (c) Drastic Actions. All rights reserved. // </copyright> using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Autofac; using Xamarin.Forms; using Xamarin.Forms.Xa...
27.871795
83
0.658694
[ "MIT" ]
drasticactions/YoutubeSubtitleExplorer
YoutubeSubtitleExplorer/Pages/SearchVideosPage.xaml.cs
1,089
C#
namespace CWMII.lib.Enums { public enum Win32_LocalTime { Day, DayOfWeek, Hour, Milliseconds, Minute, Month, Quarter, Second, WeekInMonth, Year } public static class Win32_LocalTimeExtension { public static string GetWMIValue(this Win32_LocalTime enumOption) => lib.CWMII.GetSingleProperty($"SE...
21
156
0.743386
[ "MIT" ]
jcapellman/CWMII
CWMII.lib/Enums/Win32_LocalTime.cs
378
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace Blog.Migrations { public partial class Upgraded_To_ABP_6_0 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( name: "NewValueHash", ...
30.818182
71
0.550147
[ "MIT" ]
LMapundu/Boilerplate-Example
aspnet-core/src/Blog.EntityFrameworkCore/Migrations/20201112121732_Upgraded_To_ABP_6_0.cs
1,358
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("04....
37.459459
84
0.743867
[ "MIT" ]
melikpehlivanov/Programming-Fundamentals-C-
AllExams/04. Files/Properties/AssemblyInfo.cs
1,389
C#
// Copyright (c) Pixel Crushers. All rights reserved. using UnityEngine; using UnityEditor; using UnityEditorInternal; using System.Collections.Generic; using System.Linq; using System; namespace PixelCrushers.DialogueSystem.DialogueEditor { /// <summary> /// This part of the Dialogue Editor wi...
46.983784
229
0.55761
[ "Apache-2.0" ]
NGTO-WONG/KishiStory
Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/DialogueEditorWindowItemSection.cs
34,774
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using Azure.Messaging.ServiceBus; using Microsoft.Azure.WebJobs.Host.Executors; using System; using System.Threading; using System.Threading.Tasks; namespace Microsof...
45.704225
189
0.65208
[ "MIT" ]
MahmoudYounes/azure-sdk-for-net
sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/src/SessionMessageProcessor.cs
3,247
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Threading.Tasks; using ...
45.571429
159
0.586655
[ "Apache-2.0" ]
CyberAndrii/NuGet.Jobs
src/Stats.CreateAzureCdnWarehouseReports/DownloadCountReport.cs
4,468
C#
namespace ClassLib118 { public class Class008 { public static string Property => "ClassLib118"; } }
15
55
0.633333
[ "MIT" ]
333fred/performance
src/scenarios/weblarge2.0/src/ClassLib118/Class008.cs
120
C#
namespace NoteSystem.WpfApp.ViewModels { public class NotebookVM : ViewModel { public string Name { get => _name; set { _name = value; OnPropertyChanged(); } } private string _name; } }
17.333333
39
0.439103
[ "MIT" ]
PrizrakNight/NoteSystem
NoteSystem.WpfApp/ViewModels/NotebookVM.cs
314
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> //--...
29
81
0.478261
[ "MIT" ]
NathanClouseAX/AAXDataEntityPerfTest
Projects/AAXDataEntityPerfTest/ConsoleApp1/Connected Services/D365/ModuleCustSales.cs
669
C#
using Skybrud.Umbraco.Redirects.Models; using Umbraco.Core.Migrations; namespace Skybrud.Umbraco.Redirects.Migrations { public class CreateImportTable : MigrationBase { public CreateImportTable(IMigrationContext context) : base(context) { } public override void Migrate() { ...
28.375
79
0.680617
[ "MIT" ]
EnjoyDigital/Skybrud.Umbraco.Redirects
src/Skybrud.Umbraco.Redirects/Migrations/CreateImportTable.cs
456
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...
44.301676
188
0.633796
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/PolicyInsights/RemediationAtManagementGroup.cs
7,930
C#
// // Copyright (c) XSharp B.V. 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 Microsoft.V...
42.919244
163
0.465071
[ "Apache-2.0" ]
JohanNel/XSharpPublic
VisualStudio/XSharpColorizer/XSharpClassifier.cs
49,960
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MovementController : MonoBehaviour { public int playernumber = 1; private float running; private float defaultSpeed = 3.0f; // Use this for initialization void Start () { } // Update is called onc...
24.851852
86
0.642325
[ "MIT" ]
sakulstra/tower_defense
Assets/Scripts/MovementController.cs
673
C#
using System; namespace Server.Items { public class StatuetteDyeTub : DyeTub, Engines.VeteranRewards.IRewardItem { public override bool AllowDyables{ get{ return false; } } public override bool AllowStatuettes{ get{ return true; } } public override int TargetMessage{ get{ return 1049777; } } // Target the stat...
24.337838
120
0.695169
[ "BSD-2-Clause" ]
greeduomacro/vivre-uo
Scripts/Items/Skill Items/Tailor Items/Dyetubs/StatuetteDyeTub.cs
1,801
C#
using JobTrackingProject.Entities.Concrete; using Microsoft.AspNetCore.Identity; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace JobTrackingProject.Web { public class IdenitiyInitializer { public static async Task SeedData(UserManager<AppUser>...
29.188679
108
0.501616
[ "MIT" ]
enesaliovur/JobTrackingProject
JobTrackingProject.Web/IdenitiyInitializer.cs
1,551
C#
using System.Collections.Generic; using System.Threading.Tasks; namespace Common { public interface IPersonRepository { IEnumerable<Person> GetPeople(); Person GetPerson(int id); } }
17.75
40
0.690141
[ "MIT" ]
PeterPartridge/LearningInterfaces
07/demos/after/LooseCoupling/Common/IPersonRepository.cs
215
C#
using DomainCore.Entities; using InfraCore.Mapping; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Text; namespace InfraCore.Context.Commands { public class CommandsDbContext : DbContext { public DbSet<Produto> Produtos { get; set; } public D...
30.361111
155
0.694419
[ "MIT" ]
CristianoDevNet/Parcelamentos
ParcelamentosAPI/InfraCore/Context/Commands/CommandsDbContext.cs
1,095
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.Tasks; using System.Windows.Forms; namespace AMPS.forms { public partial class Home : Form { public Home() { ...
24.196429
90
0.591144
[ "MIT" ]
koorsha/Corporate-staff-management
amps/AMPS/forms/Home.cs
1,357
C#
using System; using System.Collections.Generic; using System.Linq; using static Dbref; using static ForthDatum; using static ForthPrimativeResult; public static class MathSubtract { public static ForthPrimativeResult Execute(ForthPrimativeParameters parameters) { /* - ( n1 n2 -- i ) T...
41.12963
162
0.652859
[ "MIT" ]
eumario/moo
moo.common/Scripting/ForthPrimatives/MathSubtract.cs
2,221
C#
using Klli.Sensact.Config.Nodes; using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace Klli.Sensact.Config.Applications { public class StandbyControllerApplication : ActorApplication { public ushort OutputRessource; public long Waitt...
30.396226
187
0.621974
[ "Apache-2.0" ]
klaus-liebler/sensact
configware/Klli.Sensact.Config/Applications/StandbyControllerApplication.cs
1,613
C#
#region Using directives using SimpleFramework.Xml.Strategy; using SimpleFramework.Xml.Stream; using SimpleFramework.Xml; using System; #endregion namespace SimpleFramework.Xml.Core { public class PrimitiveKeyTest : TestCase { private static class MockElementMap : ElementMap { private bool attribute; ...
41.589744
92
0.450555
[ "Apache-2.0" ]
AMCON-GmbH/simplexml
port/src/main/Xml/Core/PrimitiveKeyTest.cs
8,110
C#
using System; using NUnit.Framework; using SharpOAuth2.Framework; using SharpOAuth2.Provider.Framework; using SharpOAuth2.Provider.TokenEndpoint; namespace SharpOAuth2.Tests.Provider.TokenEndpoint.Inspectors { public abstract class InspectorTestBase { public void CommonAssertInspector(IContextInspecto...
27.533333
104
0.610169
[ "Unlicense" ]
ghorsey/SharpOAuth2
code/src/SharpOAuth2.Tests/Provider/TokenEndpoint/Inspectors/InspectorTestBase.cs
828
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...
28.723404
81
0.602222
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DocumentDB/V20210701Preview/Inputs/CassandraTableResourceArgs.cs
1,350
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading; using System.Threading.Tasks; using Ditch.Core; using Ditch.Core.JsonRpc; using Newtonsoft.Json; using Steepshot.Core.Authorization; using Steepshot.Core.Models.Common; using Steepsho...
43.010267
163
0.619164
[ "MIT" ]
Chainers/steepshot-mobile
Sources/Steepshot/Steepshot.Core/Clients/BaseServerClient.cs
20,948
C#
using System; using System.Diagnostics; using System.IO; using System.Windows.Forms; namespace ExceptionHandling { public partial class frmException : Form { public Exception ExceptionObject { get; set; } public string CustomMessage { get; set; } public bool ShowTrace { get; set; } = ...
37.826667
263
0.583363
[ "MIT" ]
temcocontrols/T3000_CrossPlatform
ExceptionHandling/frmException.cs
2,839
C#
using System.Runtime.InteropServices; namespace Vulkan { public unsafe struct VkGeneratedCommandsInfoNV { public VkStructureType SType; [NativeTypeName("const void *")] public nuint PNext; public VkPipelineBindPoint PipelineBindPoint; [NativeTypeName("VkPipeline")] public VkP...
31.945455
105
0.679567
[ "BSD-3-Clause" ]
trmcnealy/Vulkan
Vulkan/Structs/VkGeneratedCommandsInfoNV.cs
1,757
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using dotnetAPI.Models; using dotnetAPI.Repository; namespace dotnetAPI.Controllers { [Route("api/[controller]")] ...
27.08871
99
0.538255
[ "MIT" ]
sajrashid/SitAPI
src/API/Controllers/TestResultsController.cs
3,361
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AcademyRPG { public class MyEngine:Engine { public override void ExecuteCreateObjectCommand(string[] commandWords) { switch (commandWords[1]) { case "knight"...
35.542373
79
0.413448
[ "MIT" ]
AYankova/CSharp
OOPExams/AcademyRPG/AcademyRPG/AcademyRPG/MyEngine.cs
2,099
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; using Azure.ResourceManager; namespace Azure.ResourceManager.Network.Models { public partial class SecurityGroupNetworkInterface { ...
33.738095
124
0.592096
[ "MIT" ]
Cardsareus/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/Models/SecurityGroupNetworkInterface.Serialization.cs
1,417
C#
// ----------------------------------------------------------------------- // <copyright file="ExtensionTests.cs" company="Active Netwerx"> // Copyright (c) Active Netwerx. All rights reserved. // </copyright> // <author>Joseph L. Casale</author> // -----------------------------------------------------------------...
34.119792
120
0.542971
[ "MIT" ]
JTOne123/LdifHelper
tests/LdifHelper.Tests/ExtensionTests.cs
13,108
C#
/* * TimeZoneInfo.Tests * * Author(s) * Stephane Delcroix <stephane@delcroix.org> * * 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 limitati...
40.492823
193
0.710741
[ "Apache-2.0" ]
symform/mono
mcs/class/System.Core/Test/System/TimeZoneInfoTest.cs
25,389
C#
using System.Collections.Generic; namespace GoldenEye.Backend.Core.DDD.Queries { public interface IListQuery<TResponse> : IQuery<IReadOnlyList<TResponse>> { } }
21.75
77
0.747126
[ "MIT" ]
amarish-kumar/GoldenEye
src/Core/Backend.Core.DDD/Queries/IListQuery.cs
176
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tasks.BufferPool { public interface IBufferRegistration : IBuffer, IDisposable { } }
17.307692
63
0.76
[ "Apache-2.0" ]
nandehutuzn/CSharpAsync
AsyncSolution/Tasks/BufferPool/IBufferRegistration.cs
227
C#
using System.Collections.Generic; using System.Text.RegularExpressions; using DateObject = System.DateTime; using Microsoft.Recognizers.Definitions; using Microsoft.Recognizers.Text.Number; namespace Microsoft.Recognizers.Text.DateTime { public class BaseTimeExtractor : IDateTimeExtractor { private s...
35.649123
138
0.553396
[ "MIT" ]
onatatayer/Recognizers-Text
.NET/Microsoft.Recognizers.Text.DateTime/Extractors/BaseTimeExtractor.cs
4,066
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> //--...
42.671233
191
0.607063
[ "MIT" ]
eberthold/SteroidsVS
Source/BusinessLogic/CodeStructure/Steroids.CodeStructure/Resources/Strings/Strings.Designer.cs
3,117
C#
using System; using System.Collections.Generic; using System.Text; namespace pelazem.azure.cognitive.videoindexer { public class Thumbnail { public string Id { get; set; } public string FileName { get; set; } public List<AdjustedInstance> Instances { get; set; } } }
19.533333
56
0.696246
[ "MIT" ]
plzm/AIServices
Libraries/videoindexer/Thumbnail.cs
295
C#
using MVCProject.Model; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MVCProject.View.FormsAdicionar { public partial class frmAdicionar...
20.457143
62
0.607542
[ "MIT" ]
DrGabenator/GitC
29-07_02-08/MVCProject/MVCProject/View/FormsAdicionar/frmAdicionarAutor.cs
718
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; using System.Threading.Tasks; using BTCPayServer.Data; using BTCPayServer.HostedServices; using BTCPayServer.Lightning; using BTCPayServer.Logging; using BTCPayServer.Models; using BTCPayServer.Models....
47.799087
160
0.638326
[ "MIT" ]
Javdu10/btcpayserver
BTCPayServer/Payments/Lightning/LightningLikePaymentHandler.cs
10,468
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.SqlClient; using HRM.BOL; namespace HRM.DAL { public class OverTimeDAL { public string Save(OverTimeBOL objovertime) { DataAccess objDA = new D...
30.745455
94
0.531638
[ "MIT" ]
jencyraj/HumanResourceManagementProject
src/HRM.DAL/OverTimeDAL.cs
1,693
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Runtime.Serialization.Formatters.Binary; namespace DNDSoundboard { [Serializable] public class YoutubeLink { public string LinkName { get; ...
21.583333
54
0.617761
[ "Apache-2.0" ]
Tian94/DNDSoundboard
YoutubeLink.cs
520
C#
namespace Tessin.Bladerunner { public enum Theme { Primary, Secondary, PrimaryAlternate, SecondaryAlternate, Error, Success, Alert, Empty } }
14.6
29
0.515982
[ "MIT" ]
tessin/tessin-bladrunner
Tessin.Bladerunner/Theme.cs
221
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Log files monitor and archiver using System; using System.Threading.Tasks; namespace DotNet.LogFilesMonitorArchiver { /// <summary> /// The...
28.913043
111
0.573308
[ "Apache-2.0" ]
Wallsmedia/DotNet.LogFilesMonitorArchiver
src/DotNet.LogFilesMonitorArchiver/Processor/ArchiveLogCommand.cs
2,660
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // Taken from: https://github.com/dotnet/aspnetcore using System.Text; using Microsoft.Net.Http.Headers; namespace MinimalApis.Extensions.Results; internal static class ResponseC...
37.717949
111
0.666553
[ "MIT" ]
DamianEdwards/MinimalApis.Extensions
src/MinimalApis.Extensions/Results/ResponseContentTypeHelper.cs
2,944
C#
using Microsoft.EntityFrameworkCore.ChangeTracking.Internal; using SimpleOrderApp.Domain; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SimpleOrderApp.Data { class OrderRepository : IOrderRepository { private readonly SimpleOrderContext _context; ...
26.675
122
0.608247
[ "MIT" ]
2006-jun15-net/noah-code
Week3GitHTML/SimpleOrderApp/SimpleOrderApp.Data/OrderRepository.cs
1,069
C#
using System.Collections.Generic; namespace RobotService.Models.Procedures { using RobotService.Models.Robots.Contracts; public class Rest : Procedure { private const int DecreaseHappiness = 3; private const int IncreaseEnergy = 10; public Rest() { this.robots...
25.44
71
0.608491
[ "MIT" ]
tonkatawe/SoftUni-Advanced
OOP/EXAMS/OOP Retake Exam - 16 Apr 2020/RobotService/Models/Procedures/Rest.cs
638
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using RestSharp; namespace GwApiNET.ResponseObjects.Parsers { /// <summary> /// Parser for event_names.json /// </summary> public class EventNameEntryParser : IApiResponseParserAsync<Ent...
34.5
145
0.651515
[ "MIT" ]
prbarcelon/GwApiNET
GwApiNET/GwApiNET/ResponseObjects/Parsers/EventNameEntryParser.cs
1,520
C#
// MonoGame - Copyright (C) The MonoGame Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. using System; using System.Collections.Concurrent; using System.Diagnostics; using System.Runtime.InteropServices; using Windows.UI.Core; usin...
33.191646
132
0.59168
[ "MIT" ]
PocketwatchGames/MonoGame
MonoGame.Framework/WindowsUniversal/UAPGameWindow.cs
13,511
C#
using Amazon.JSII.Runtime.Deputy; namespace Amazon.JSII.Tests.CalculatorNamespace { /// <remarks> /// <strong>Stability</strong>: Experimental /// </remarks> [JsiiTypeProxy(nativeType: typeof(IJsii496), fullyQualifiedName: "jsii-calc.IJsii496")] internal sealed class IJsii496Proxy : DeputyBase, Ama...
29.1875
100
0.695931
[ "Apache-2.0" ]
tobli/jsii
packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/IJsii496Proxy.cs
467
C#
using Ardalis.ListStartupServices; using BlazorAdmin; using BlazorAdmin.Services; using Blazored.LocalStorage; using BlazorShared; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Diagnostics.HealthChecks; using...
36.895397
143
0.592311
[ "MIT" ]
Akhildas-github/eShopOnWeb
src/Web/Startup.cs
8,820
C#
using System; using System.IO; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using OAuth.Samples.Common; using OAuth.Samples.Common.DataContext; using OAuth.Samples.Common.Services; namespace ClientCredentia...
34.078947
110
0.64556
[ "MIT" ]
Informatievlaanderen/GIPOD
OAuth.Samples/ClientCredentialGrant.JsonWebKey/Program.cs
1,297
C#
using Microsoft.EntityFrameworkCore; using Ordering.Domain.Common; using Ordering.Domain.Entities; using System; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Ordering.Infrastructure.Persistence { public class OrderContext : DbContext { public OrderContext(DbContex...
31.25641
113
0.569319
[ "MIT" ]
dhruv050992/AspNetMicroservices
src/Services/Ordering/Ordering.Infrastructure/Persistence/OrderContext.cs
1,221
C#
using System; using Chromely; using Chromely.Core; using Chromely.Core.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace ChromelyReact { class Program { [STAThread] static void Main(string[] args) { var config = Def...
34.25974
110
0.622062
[ "MIT", "BSD-3-Clause" ]
MarcosSiega/demo-projects
angular-react-vue/ChromelyReact/Program.cs
2,640
C#
using System; namespace Bertozzi.Mattia._4H.Levensthien { class Program { static void Main(string[] args) { //cambiare le parole per prove diverse //1. Console.WriteLine($"Costante: {DistanzaLevenshtein("saturday", "sunday")}"); Console.WriteLin...
29.082707
88
0.346691
[ "MIT" ]
Rimac48/Bertozzi.Mattia.4H.Levenshtein
Vecchio/Bertozzi.Mattia.4H.Levensthien/Program.cs
3,871
C#
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Playnite.SDK; using Playnite.SDK.Models; using Playnite.SDK.Plugins; using System.IO; using System; using System.Linq; using System.Collections.Generic; using System.Windows.Controls; using System.Timers; using System.Diagnostics; using MSIAfterburnerNET.HM.Inte...
37.735978
170
0.484829
[ "MIT" ]
scowalt/playnite-gameactivity-plugin
GameActivity.cs
27,587
C#
using System.IO; namespace Pure3D.Chunks { [ChunkType(88072)] public class ParticleAnimation : Chunk { public byte[] Data; private uint unknownType; public ParticleAnimation(File file, uint type) : base(file, type) { unknownType = type; } public...
22.777778
81
0.572358
[ "MIT" ]
handsomematt/Pure3D
src/Pure3D/Chunks/ParticleAnimation.cs
615
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SmallRetail.Web.Resources { public class LoginRequest { public string Username { get; set; } public string Password { get; set; } } }
19.357143
44
0.690037
[ "MIT" ]
mfaizudd/SmallRetail
SmallRetail.Web/Resources/LoginRequest.cs
273
C#
using System.Collections.Generic; using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; using System.Threading.Tasks; using WebVella.Pulsar.Models; using WebVella.Pulsar.Utils; using System; using WebVella.Pulsar.Services; using Microsoft.AspNetCore.Components.Web; using Newtonsoft.Json; namespace WebVell...
21.518072
96
0.697088
[ "MIT" ]
WebVella/WebVella.Pulsar
WebVella.Pulsar/Components/Atoms/WvpDisplayEmail/WvpDisplayEmail.razor.cs
1,788
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.Collections.Generic; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeRefactorings; using Microsoft.CodeAnalysis.CSharp; using Mic...
33.022624
161
0.696903
[ "Apache-2.0" ]
ObsidianMinor/roslyn
src/EditorFeatures/CSharpTest/UseExpressionBody/Refactoring/UseExpressionBodyForPropertiesRefactoringTests.cs
7,300
C#
using System.Windows; namespace ExampleApp { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { } }
16.272727
42
0.608939
[ "MIT" ]
danielchalmers/WpfAboutView
ExampleApp/App.xaml.cs
181
C#
using System; using System.ComponentModel.DataAnnotations; namespace Expense.API.DTO { public class CreateCategoryDto { [Required] [MinLength(3)] public string Name { get; set; } [Required] [MinLength(3)] public string Type { get; set; } } }
17.941176
44
0.593443
[ "MIT" ]
cancanbolat/ExpenseTracker
src/Services/Expense/Expense.API/DTO/CreateCategoryDto.cs
307
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> //---...
33.84
156
0.567376
[ "Apache-2.0" ]
salvolannister/Virtual_Shared_Reality_CLIENT
Virtual_Shared_Reality_CLIENT/Assets/SteamVR_Input/SteamVR_Input_ActionSets.cs
1,692
C#
using EPiServer.Reference.Commerce.Site.Features.Product.ViewModelFactories; using EPiServer.Reference.Commerce.Site.Infrastructure.Facades; using EPiServer.Web.Mvc; using System.Web.Mvc; using EPiServer.Reference.Commerce.Shared.Models.Products; namespace EPiServer.Reference.Commerce.Site.Features.Product.Controller...
38.803571
141
0.652554
[ "Apache-2.0" ]
makingwaves/epi-commerce-to-vue-storefront
Quicksilver/EPiServer.Reference.Commerce.Site/Features/Product/Controllers/ProductController.cs
2,175
C#
using Badzeet.Budget.Domain.Model; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Badzeet.Budget.DataAccess.Maps { internal class InvitationMap : IEntityTypeConfiguration<Invitation> { public void Configure(EntityTypeBuilder<Invitation> builder) ...
43.318182
86
0.655824
[ "MIT" ]
yanhamu/Badzeet
Badzeet.Budget.DataAccess/Maps/InvitationMap.cs
955
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("GM...
38.027778
84
0.747991
[ "MIT" ]
kuaidaoyanglang/GMS
Src/GMS.Web.Admin/Properties/AssemblyInfo.cs
1,372
C#
// Copyright (c) Six Labors. // Licensed under the Apache License, Version 2.0. using System; using SixLabors.ImageSharp.Memory; namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder { /// <summary> /// Represents a single frame component. /// </summary> internal sealed class JpegComponent :...
34.436242
169
0.603196
[ "Apache-2.0" ]
IldarKhayrutdinov/ImageSharp
src/ImageSharp/Formats/Jpeg/Components/Decoder/JpegComponent.cs
5,131
C#
using Gitee.VisualStudio; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; using System; namespace Gitee.VisualStudio.Helpers { internal static class OutputWindowHelper { #region Fields private static IVsOutputWindowPane _giteeVSOutputWindowPane; ...
34.060241
151
0.610541
[ "MIT" ]
maikebing/Gitee.VisualStudio
src/Gitee.VisualStudio/Helpers/OutputWindowHelper.cs
2,829
C#