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 © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/wingdi.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. using System.Runtime.CompilerServic...
31.672566
164
0.531992
[ "MIT" ]
manju-summoner/terrafx.interop.windows
sources/Interop/Windows/um/wingdi/DISPLAYCONFIG_PATH_SOURCE_INFO.cs
3,581
C#
using System; using System.Globalization; using System.Windows.Data; namespace DeltaEngine.Editor.LevelEditor { public class EnumToBooleanConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return value.Equals(parameter); } ...
25.2
94
0.738095
[ "Apache-2.0" ]
DeltaEngine/DeltaEngine
Editor/LevelEditor/EnumToBooleanConverter.cs
506
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------------------...
24.277778
81
0.411899
[ "Apache-2.0" ]
atombryan/ThaiResortFull
ServiceStackHub/Thai Resort/FrontEndASPNETTest/About.aspx.designer.cs
439
C#
using System; namespace UnityEngine.Experimental.U2D.Animation { /// <summary> /// Updates a SpriteRenderer's Sprite reference on the Category and Label value it is set /// </summary> /// <Description> /// By setting the SpriteResolver's Category and Label value, it will request for a Sprite from ...
31.079208
108
0.561166
[ "MIT" ]
BerkTUNA/Project5
Proje5/Library/PackageCache/com.unity.2d.animation@4.2.4/Runtime/SpriteLib/SpriteResolver.cs
6,278
C#
using Spriten.ColorTable; using System.Drawing; using System.Windows.Forms; using WeifenLuo.WinFormsUI.Docking; namespace Spriten.Utility { public static class ThemeHelper { public enum ThemeStyle { Light, Dark } public static Color DockBackColor { get; private set; } public static Co...
35.016667
113
0.554974
[ "MIT" ]
Chris95Hua/Sproc
Spriten/Utility/ThemeHelper.cs
2,103
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("In...
38.945946
84
0.750173
[ "MIT" ]
peterwidmer/IntegrationTool
IntegrationTool.Module.ODBCExecute/Properties/AssemblyInfo.cs
1,444
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace LettuceEncrypt4core.Pages { public class PrivacyModel : PageModel { private readonly...
20.72
57
0.679537
[ "Apache-2.0" ]
densen2014/RookieProject
LettuceEncrypt4core/Pages/Privacy.cshtml.cs
520
C#
namespace Kothar.Server.Interfaces.Marshalling { public interface IInjectionGenerator { } }
16.285714
47
0.666667
[ "MIT" ]
TheWizardAndTheWyrd/Kothar
Kothar.Server.Interfaces/Marshalling/IInjectionGenerator.cs
116
C#
using Common; using Portal.Entities; using Portal.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Helpers; namespace Portal.Repositories { public interface IPermissionRepository { Task<int> Count(Permiss...
42.558491
119
0.549566
[ "Apache-2.0" ]
LeDucThang/Portal
Portal.BE/Repositories/PermissionRepository.cs
11,278
C#
// CodeContracts // // 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 wit...
30.453364
463
0.641553
[ "MIT" ]
Patashu/CodeContracts
Microsoft.Research/Contracts/MsCorlib/System.String.cs
39,833
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Prototype.Gameplay.RoomFacility.Store { public class DialogueBubbleCanvas : MonoBehaviour { private Text _contentText; // Start is called before the first frame update ...
21.28125
58
0.609398
[ "MIT" ]
RaymondMOirae/PixelPrototypeSync
Assets/Script/Gameplay/RoomFacility/Store/DialogueBubbleCanvas.cs
681
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...
37.581818
170
0.627721
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/SimpleSystemsManagement/Generated/Model/Internal/MarshallTransformations/InventoryItemSchemaUnmarshaller.cs
4,134
C#
// (C) 2022 christian@schadetsch.com using System; using System.Windows.Forms; namespace Mtg { static class Program { [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Applicatio...
18.842105
65
0.597765
[ "MIT" ]
cschladetsch/MtG-Library
Program.cs
360
C#
public class BonusActionExecutor { BonusModelComponent component; public BonusActionExecutor(BonusModelComponent component) { this.component = component; } public void Execute(IChangeBonusAction modifier) { modifier.Execute(component); } }
24.083333
64
0.692042
[ "MIT" ]
kicholen/GamePrototype
Assets/EditorScript/View/Bonus/Executor/BonusActionExecutor.cs
291
C#
using System; using System.ComponentModel.DataAnnotations; using System.Net; using System.Net.Http; using System.Threading.Tasks; using DFC.Common.Standard.Logging; using DFC.Composite.Regions.Models; using DFC.Composite.Regions.Services; using DFC.Functions.DI.Standard.Attributes; using DFC.HTTP.Standard; using DFC.JS...
43.25
140
0.667389
[ "MIT" ]
SkillsFundingAgency/dfc-composite-regions
DFC.Composite.Regions/Functions/DeleteRegionHttpTrigger.cs
4,152
C#
// Copyright (c) 2016, David Aramant // Distributed under the 3-clause BSD license. For full terms see the file LICENSE. using System.Collections.Generic; using System.Linq; using Tiledriver.Core.LevelGeometry; namespace Tiledriver.Core.FormatModels.Common.BinaryMaps { public enum BinaryMapPlaneId { ...
26.22
102
0.57132
[ "BSD-3-Clause" ]
davidaramant/tiledriver
src/Tiledriver.Core/FormatModels/Common/BinaryMaps/BinaryMap.cs
1,313
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.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnalysis.CodeGen; using Microsoft.CodeAna...
43.744681
161
0.667315
[ "Apache-2.0" ]
GrahamTheCoder/roslyn
src/Compilers/CSharp/Portable/Lowering/LambdaRewriter/SynthesizedClosureEnvironment.cs
6,170
C#
using System.Threading; using System.Threading.Tasks; using Accord.Domain; using Accord.Domain.Model; using Accord.Services.Moderation; using Accord.Services.Permissions; using MediatR; using Microsoft.EntityFrameworkCore; namespace Accord.Services.Raid; public sealed record RaidCalculationRequest(ulong DiscordGuild...
41.4375
202
0.708296
[ "MIT" ]
patrickklaeren/Accord
src/Accord.Services/Raid/RaidCalculation.cs
3,317
C#
// // Copyright (c) 2004-2019 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // 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 s...
47.563636
175
0.706613
[ "BSD-3-Clause" ]
AchimStuy/NLog
src/NLog/Targets/FileArchiveModes/FileArchiveModeSequence.cs
5,232
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/. Copyright (C) 2009-2013 Michael Möller <mmoeller@openhardwaremonitor.org> */ namespace OpenHardwar...
45.855346
156
0.59199
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
pechurc/OpenHardwareMonitorArduino
GUI/MainForm.Designer.cs
36,458
C#
using SmartCardApi.Infrastructure; using SmartCardApi.Infrastructure.Interfaces; namespace SmartCardApi.ISO7816.ResponseAPDU { public interface IResponseApdu { IBinary Body(); IBinary Trailer(); } }
20.727273
45
0.723684
[ "MIT" ]
iQweex/MRTD.NET
SmartCardApi/ISO7816/ResponseAPDU/IReponseAPDU.cs
230
C#
using MailCheck.Common.Environment.Abstractions; namespace MailCheck.Dkim.Evaluator.Config { public interface IDkimEvaluatorConfig { string SnsTopicArn { get; } } public class DkimEvaluatorConfig : IDkimEvaluatorConfig { public DkimEvaluatorConfig(IEnvironmentVariables environmentV...
24.684211
78
0.686567
[ "Apache-2.0" ]
ukncsc/MailCheck.Public.Dkim
src/MailCheck.Dkim.Evaluator/Config/DkimEvaluatorConfig.cs
471
C#
using System.Reflection; using System.Runtime.Serialization; using System.Linq; namespace KnimeNet.CommandLine.Types.Enums { /// <summary> /// Represents the type of the variable /// </summary> public enum VariableType { /// <summary> /// The variable is of type string. ///...
28.244444
78
0.554681
[ "MIT" ]
stevenengland/KnimeNet
KnimeNet/CommandLine/Types/Enums/VariableType.cs
1,273
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using StackExchange.Redis; namespace mvc104 { public class Program { public static void Main(string[] args) { ...
22.357143
68
0.554313
[ "Apache-2.0" ]
FinchYang/ao
cars/encarmanagement/Program.cs
628
C#
using System.Collections.Concurrent; using Verse; namespace RimThreaded { public static class FullPool_Patch<T> where T : IFullPoolable, new() { private static readonly ConcurrentStack<T> FreeItems = new ConcurrentStack<T>(); public static T Get() { return !FreeItems.TryPo...
23.47619
88
0.598377
[ "MIT" ]
BlackJack1155/RimThreaded
Source/FullPool_Patch.cs
495
C#
namespace EtlLib.Logging { public class NullLoggerAdapter : ILoggingAdapter { public static NullLoggerAdapter Instance; static NullLoggerAdapter() { Instance = new NullLoggerAdapter(); } public ILogger CreateLogger(string name) { ...
18.531915
53
0.476464
[ "MIT" ]
dabaus/EtlLib
src/EtlLib/Logging/NullLoggingAdapter.cs
873
C#
namespace Stumps.Rules { using System; using System.Collections.Generic; /// <summary> /// A class representing a Stump rule that evaluates the HTTP method of an HTTP request. /// </summary> public class HttpMethodRule : IStumpRule { private const string HttpMethodSetting = "ht...
32.869919
117
0.540935
[ "Apache-2.0" ]
Pankaj-chhatani/stumps
src/main/dot-net/Stumps.Base/Rules/HttpMethodRule.cs
4,045
C#
using System; using System.Collections.Generic; using System.Linq; using UnityEngine; using Xunity.ScriptableVariables; namespace Xunity.Authorization { [Serializable] public class AuthorizedSources { [SerializeField] bool restrictAccess; [SerializeField] List<SerializableMonoscript> author...
24.444444
72
0.630303
[ "Unlicense" ]
ixi150/Xunity
Authorization/AuthorizedSources.cs
660
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using System.ISO8601; namespace ISO8601.Tests { [TestClass] public class OrdinalDateTimeDurationTests { [TestMethod] public void CanRoundTrip() { // Complete Assert.AreEqual("P1234111T121212", OrdinalDateTi...
96.146341
229
0.717402
[ "MIT" ]
nharren/ISO-8601
src/ISO8601.Tests/OrdinalDateTimeDurationTests.cs
3,944
C#
using NWN.Core; namespace Anvil.API { public enum Ability { Strength = NWScript.ABILITY_STRENGTH, Dexterity = NWScript.ABILITY_DEXTERITY, Constitution = NWScript.ABILITY_CONSTITUTION, Intelligence = NWScript.ABILITY_INTELLIGENCE, Wisdom = NWScript.ABILITY_WISDOM, Charisma = NWScript.ABILITY...
22.466667
49
0.747774
[ "MIT" ]
Aschent89/Anvil
NWN.Anvil/src/main/API/Constants/Ability.cs
337
C#
using CSVDataConverter.Infrastructure.Services; using System; using System.Collections.Generic; using System.Linq; using Xunit; namespace CSVDataConverter.UnitTests { public class Expando_CsvDataFormatConverter_ConvertToExpando { [Theory] [MemberData(nameof(Data))] public void GroupsHea...
34.147059
150
0.657192
[ "MIT" ]
samuelwine/CSVDataConverter
tests/CSVDataConverter.UnitTests/Expando_CsvDataFormatConverter_ConvertToExpando.cs
1,161
C#
/* Copyright 2010-present MongoDB Inc. * * 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 wr...
35.014085
125
0.574014
[ "Apache-2.0" ]
591094733/mongo-csharp-driver
tests/MongoDB.Bson.Tests/IO/BsonRoundTripTests.cs
2,488
C#
#region Copyright // Copyright Hitachi Consulting // // 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 applicab...
36.45
111
0.642524
[ "Apache-2.0" ]
xigadee/Microservice
Src/Xigadee.Azure/DataCollection/Storage/Connector/Queue.cs
3,647
C#
using System; using System.Collections; namespace EulerSolver.Solvers { public class Solver7 : ISolver { public long FindSolution() { int numPrimes = 0; long counter = 2; long result = 0; while(numPrimes <= 10001) { ...
17.263158
48
0.372967
[ "MIT" ]
ilyanaDev/ProjectEuler
EulerSolver/Solvers/Solver7.cs
986
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("HFTrader")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: Asse...
25.810811
59
0.717277
[ "MIT" ]
SebastianChu/InterPlatformTradingMaster
AutoTrader/Properties/AssemblyInfo.cs
1,306
C#
namespace Nezaboodka.Nevod.LanguageServer { public enum TextDocumentSyncKind { None, Full, Incremental } public class TextDocumentSyncOptions { public bool? OpenClose { get; set; } public TextDocumentSyncKind? Change { get; set; } public bool? WillSav...
30.177419
137
0.662213
[ "Apache-2.0" ]
nezaboodka/nevod-vscode
source/server/LanguageServer/Data/TextSynchronization.cs
1,871
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.AspNet.SignalR; namespace ecsfc { public class fphub : Hub { public void Hello() { Clients.All.hello(); } public void addGroup(string GroupID) ...
19.95
55
0.56391
[ "MIT" ]
Wunzack/tp01
fphub.cs
401
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Les informations générales relatives à un assembly dépendent de // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations // associées à un assembly. [assembly:...
42
104
0.736808
[ "MIT" ]
Acidburn0zzz/flashdevelop
External/Tools/PHPFunctionsParser/PHPFunctionsParser/Properties/AssemblyInfo.cs
1,543
C#
using Nurse.Common.helper; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Nurse.Common.CM { /// <summary> /// yyjk配置 /// </summary> public class YYJKConfig { /// <summary> /// 接口提供方 /// </summary> public static string...
31.622222
138
0.612087
[ "MIT" ]
aceunlonely/Nurse
Nurse.Common/CM/YYJKConfig.cs
1,527
C#
namespace UCS.Core.Web { using System; using System.Diagnostics; using System.Net; using System.Threading; using Newtonsoft.Json.Linq; internal class VersionChecker { public static string GetVersionString() { try { var Version = new We...
27.486486
170
0.514258
[ "MIT" ]
antzsmt/Ultrapowa-Boom-Beach-Server
Ultrapowa Boom Beach Server/Core/Checker/VersionChecker.cs
1,017
C#
using UnityEngine; using System.Collections; using UnityEngine.Events; public class Pellet : Powerup { public void Awake() { action = delegate { // disable some components GetComponent<Collider>().enabled = false; GetComponent<Renderer>().enabled = false; ((Behaviour)gameObject.GetCompo...
26
89
0.680473
[ "MIT" ]
team01010101/QuestForTheCure
Assets/Scripts/Powerups/Pellet.cs
678
C#
namespace _01.Students_Results___Lab { using System; public class StudentsResults { public static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); Console.WriteLine(string.Format("{0, -10}|{1,7}|{2,7}|{3,7}|{4,7}|", "Name", "CAdv", "COOP", ...
33.758621
104
0.465781
[ "MIT" ]
alexandrateneva/CSharp-Fundamentals-SoftUni
CSharp Advanced/Manual String Processing/01. Students Results - Lab/StudentsResults.cs
981
C#
using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace UnrealEngine { public enum EAttenuationShape:byte { Sphere=0, Capsule=1, Box=2, Cone=3, EAttenuationShape_MAX=4, } }
13.882353
38
0.745763
[ "MIT" ]
RobertAcksel/UnrealCS
Engine/Plugins/UnrealCS/UECSharpDomain/UnrealEngine/GeneratedScriptFile/EAttenuationShape.cs
236
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DemoLibrary { public class ListWithExtras<TItem>: List<TItem> { private readonly IGenericMethods genericMethods; public ListWithExtras(IGenericMethods genericMethods) ...
26.578947
92
0.636634
[ "MIT" ]
molinch/kickmstest
Demo/DemoLibrary/ListWithExtras.cs
1,012
C#
// CodeContracts // // 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 wit...
35.537634
463
0.74584
[ "MIT" ]
Acidburn0zzz/CodeContracts
Microsoft.Research/Contracts/MsCorlib/Sources/System.Deployment.Internal.InternalActivationContextHelper.cs
3,305
C#
namespace TrafficManager.State { using TrafficManager.UI.Helpers; using TrafficManager.UI; public static class PoliciesTab { internal static void MakeSettings_VehicleRestrictions(ExtUITabstrip tabStrip) { UIHelper tab = tabStrip.AddTabPage(Translation.Options.Get("Tab:Policies & Restr...
26.92
103
0.68945
[ "MIT" ]
Elesbaan70/TMPE
TLM/TLM/State/OptionsTabs/PoliciesTab.cs
673
C#
using Microsoft.Extensions.Logging; using System; namespace Wirehome.Core.Diagnostics.Log { public class LogServiceLogger : ILogger { readonly LogService _logService; readonly string _categoryName; public LogServiceLogger(LogService logService, string categoryName) { ...
28.170732
145
0.624242
[ "Apache-2.0" ]
Analysers/Wirehome.Core
Wirehome.Core/Diagnostics/Log/LogServiceLogger.cs
1,157
C#
/* * Copyright(c) 2016 - 2018 Puma Security, LLC (https://www.pumascan.com) * * Project Leader: Eric Johnson (eric.johnson@pumascan.com) * Lead Developer: Eric Mead (eric.mead@pumascan.com) * * 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 ...
31.92
107
0.734336
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
denmilu/puma-scan_code-realtime-scan
Rules/Analyzer/Validation/Path/Core/IMvcFileResultExpressionAnalyzer.cs
798
C#
using System; using System.Windows; using System.Windows.Data; using System.Globalization; namespace Rhit.Applications.ViewModel.Converters { public class BoolToVisibilityConverter : IValueConverter { public BoolToVisibilityConverter() { TrueValue = Visibility.Visible; FalseValue =...
34.24
105
0.670561
[ "Apache-2.0" ]
mboutell/Mobile
wp7/Rhit Mobile App/Rhit.Applications.Mobile.ViewModel.WP7/Converters/BoolToVisibilityConverter.cs
858
C#
//------------------------------------------------------------------------------ // <auto-generated> // 此代码已从模板生成。 // // 手动更改此文件可能导致应用程序出现意外的行为。 // 如果重新生成代码,将覆盖对此文件的手动更改。 // </auto-generated> //------------------------------------------------------------------------------ namespace iVlog.Models { using...
33.46875
128
0.560224
[ "MIT" ]
Easonrust/iVlog
program/iVlog/Models/FAVORITE.cs
1,181
C#
using UnityEngine; namespace TSW { namespace Camera { public class FollowTop : MonoBehaviour { public Transform _target; public float _height; // Update is called once per frame private void Update() { if (_target) { Vector3 pos = _target.position; pos.y += _height; transfo...
16.148148
43
0.630734
[ "MIT" ]
vthem/PolyRace
Assets/Scripts/TSW.GameLib/Camera/FollowTop.cs
436
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. #if !NO_PERF using System.Collections.Generic; using System.Reactive.Disposables; #if !NO_TPL using System.Threading; using System.Threading.Tasks; #endif namespace System.Reactive.Li...
33.650374
208
0.412899
[ "Apache-2.0" ]
Distrotech/mono
external/rx/Rx/NET/Source/System.Reactive.Linq/Reactive/Linq/Observable/SelectMany.cs
58,520
C#
using System.Collections.Generic; using System.Threading.Tasks; using TutteeFrame2.Model; using TutteeFrame2.DataAccess; using TutteeFrame2.View; namespace TutteeFrame2.Controller { class ScheduleController { public List<Subject> subject; readonly Schedule schedule; public string sched...
28.881579
75
0.513895
[ "MIT" ]
princ3od/TutteeFrame-2.0
TutteeFrame2/Controller/ScheduleController.cs
2,203
C#
using UnityEngine; using TMPro; public class LoginPresenter : MonoBehaviour { #region Script Parameters public TMP_InputField Username; public TMP_InputField Password; public GameObject errorText; #endregion #region Methods public void Login() { UserController.sInstance.Login(...
18.75
69
0.706667
[ "MIT" ]
si-bada/tower-defense
Assets/Scripts/Presenters/LoginPresenter.cs
377
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using SplitBillsBackend.Data; namespace SplitBillsBackend.Migrations { [DbContext(typeof(SplitBillsDbContext))] partial class SplitBillsDbC...
34.742009
125
0.471446
[ "MIT" ]
piters3/SplitBillsBackend
SplitBillsBackend/Migrations/SplitBillsDbContextModelSnapshot.cs
15,219
C#
using Academy.Core.Contracts; using System; namespace Academy.Core.Providers { public class ConsoleLogger : ILogger { public void Log(string message) { Console.WriteLine(message); } } }
18.076923
40
0.617021
[ "MIT" ]
Camyul/Modul_2_CSharp
Design-Patterns/Live Demo/Academy/After/Academy.Framework/Core/Providers/ConsoleLogger.cs
237
C#
using System; using System.Linq; using EventStore.Core.Data; using EventStore.Core.Tests; using EventStore.Projections.Core.Messages; using NUnit.Framework; using ResolvedEvent = EventStore.Projections.Core.Services.Processing.ResolvedEvent; using EventStore.Projections.Core.Services; namespace EventStore.Projections....
37
153
0.751351
[ "Apache-2.0", "CC0-1.0" ]
BearerPipelineTest/EventStore
src/EventStore.Projections.Core.Tests/Services/core_projection/when_the_state_handler_fails_to_load_state_the_projection_should.cs
1,850
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
34.557047
180
0.488056
[ "ECL-2.0", "Apache-2.0" ]
chivandikwa/pulumi-aws
sdk/dotnet/Elb/GetHostedZoneId.cs
5,149
C#
using System; using System.Buffers; namespace Orleans.Networking.Shared { public class SocketConnectionOptions { /// <summary> /// The number of I/O queues used to process requests. Set to 0 to directly schedule I/O to the ThreadPool. /// </summary> /// <remarks> /// Def...
33.095238
115
0.633094
[ "MIT" ]
Abramalin/orleans
src/Orleans.Core/Networking/Shared/SocketConnectionOptions.cs
695
C#
// The MIT License(MIT) // // Copyright(c) 2021 Alberto Rodriguez Orozco & LiveCharts Contributors // // 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 withou...
37.024691
85
0.655552
[ "MIT" ]
bbmmcodegirl/LiveCharts2
src/LiveChartsCore/Drawing/TransitionBuilder.cs
3,001
C#
using Jasper.Attributes; using Jasper.Http.Routing; using Shouldly; using Xunit; namespace Jasper.Http.Testing.Routing { public class special_routing_determination_rules { [Fact] public void homeendpoint() { JasperRoute.Build<HomeEndpoint>(x => x.Get()).MethodAndPatternShou...
23.736264
106
0.541204
[ "MIT" ]
CodingGorilla/jasper
src/Jasper.Http.Testing/Routing/special_routing_determination_rules.cs
2,162
C#
using System; using System.ComponentModel; namespace Tools.CSharp.DataTable.CompositeObjects { //------------------------------------------------------------------------- public interface IContainedObjectCollection : IDisposable { //------------------------------------------------------------------...
45.478261
98
0.282983
[ "MIT" ]
zveruger/csharp_tools
src/Tools.CSharp.DataTable/CompositeObjects/Interfaces/IContainedObjectCollection.cs
1,046
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Jil.Common; namespace Jil.Deserialize { static class SetterLookup<ForType> { public static Dictionary<string, int> Lookup; static SetterLookup() ...
31.628571
151
0.644083
[ "MIT" ]
lovewitty/Jil
Jil/Deserialize/SetterLookup.cs
1,109
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("JobScheduler.Core")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: Asse...
25.810811
56
0.715183
[ "Apache-2.0" ]
lnO4X/JobScheduler
JobScheduler.Core/Properties/AssemblyInfo.cs
1,306
C#
using Android.App; using Android.Content.PM; namespace CustomHandlerDemo { [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)] p...
37.9
235
0.783641
[ "MIT" ]
AlejandroRuiz/MauiHandlersNetConfLatam
src/CustomHandlerDemo/Platforms/Android/MainActivity.cs
381
C#
namespace CoreWiki.Web.Configurations { using Data; using Microsoft.AspNetCore.Identity; using Microsoft.Extensions.DependencyInjection; using Models.Identity; public static partial class ConfigurationExtensions { public static IServiceCollection ConfigureIdentity(this IServiceCollecti...
34.428571
91
0.631743
[ "MIT" ]
stoyanov7/CoreWiki
src/CoreWiki.Web/Configurations/ConfigureIdentity.cs
966
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Zergatul.Cryptography.Asymmetric; using Zergatul.Network.Tls.Messages; namespace Zergatul.Network.Tls { internal class ECDHKeyExchange : AbstractTlsKeyExchange { public override Me...
32.16
142
0.643035
[ "MIT" ]
Zergatul/ZergatulLib
Zergatul/Network/Tls/ECDHKeyExchange.cs
3,218
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Utils; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Objects.Drawables; using ...
36.315789
184
0.604348
[ "MIT" ]
AaqibAhamed/osu
osu.Game.Rulesets.Osu.Tests/Editor/TestSceneSliderPlacementBlueprint.cs
10,737
C#
using System; namespace XMPPEngineer.Im { /// <summary> /// Represents a privacy rule pertaining to a group. /// </summary> public class GroupPrivacyRule : PrivacyRule { /// <summary> /// The name of the group the privacy rule applies to. /// </summary> public strin...
33.837838
92
0.577476
[ "MIT" ]
ParamountVentures/Sharp.Xmpp
Im/GroupPrivacyRule.cs
1,254
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("Sn...
37.378378
84
0.742589
[ "MIT" ]
RadSt/Snake
Snake/Snake/Properties/AssemblyInfo.cs
1,386
C#
 namespace Xendor.Data.MySql { public class MySqlConnection : UnitOfWorkConnection { [Connection("server")] public string Server { get; set; } [Connection("user id")] public string UserId { get; set; } [Connection("database")] public string DataBase { get; set; ...
25.16
55
0.554849
[ "MIT" ]
amolines/cqrs
src/Xendor.Data.MySql/MySqlConnection.cs
631
C#
using System; using System.Net; using System.Threading.Tasks; using SFA.DAS.SharedOuterApi.Interfaces; using SFA.DAS.SharedOuterApi.Models; namespace SFA.DAS.SharedOuterApi.Infrastructure.Services { public class ReliableCacheStorageService<TConfiguration> : IReliableCacheStorageService where TConfiguration : IApi...
40.82
132
0.660951
[ "MIT" ]
SkillsFundingAgency/das-apim-endpoints
src/SFA.DAS.SharedOuterApi/Infrastructure/Services/ReliableCacheStorageService.cs
2,043
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Web.Api.Core.Dto.UseCaseRequests; using Web.Api.Core.Dto.UseCaseResponses; using Web.Api.Core.Interfaces; using Web.Api.Core.Interfaces.Gateways.Repositories; using Web.Api.Core.Interfaces.Services; using Web.Api.Cor...
34.909091
117
0.739583
[ "MIT" ]
tdtrung17693/gdpr-system-backend
src/Web.Api.Core/UseCases/Request/GetEachRequestUseCase.cs
1,154
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("Fre...
38.108108
84
0.752482
[ "BSD-3-Clause" ]
WaGi-Coding/Taki_DSP-Mods
FreeFoundationsFreeSoil/Properties/AssemblyInfo.cs
1,413
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Text; using Microsoft.AspNetCore.Blazor.Hosting; using Microsoft.Extensions.DependencyInjection; namespace HWDnGCI.Client { public class Program { public static async Task Main(string[] args) { ...
23.714286
69
0.680723
[ "MIT" ]
pankajk2526/HWDNGCI
Client/Program.cs
500
C#
using LibHac; using LibHac.Common; using LibHac.Ns; namespace Ryujinx.Ui { public struct ApplicationData { public bool Favorite { get; set; } public byte[] Icon { get; set; } public string TitleName { get; set; } public string TitleId { get; set; } ...
33.625
81
0.570012
[ "MIT" ]
AidanXu/Ryujinx
Ryujinx/Ui/ApplicationData.cs
809
C#
using System; using h73.Elastic.Core.Enums; using Newtonsoft.Json; namespace h73.Elastic.Core.Search.Queries { /// <summary> /// Matches documents with fields that have terms within a certain range. /// The type of the Lucene query depends on the field type, for string fields, the TermRangeQuery, while fo...
38.56701
166
0.49853
[ "MIT" ]
henskjold73/h73.Elastic.Core
h73.Elastic.Core/Search/Queries/RangeQuery`1.cs
3,743
C#
using System; using System.ComponentModel; using System.Windows.Forms; namespace Epi.Windows { /// <summary> /// Container that encapsulates and tracks components of the module /// </summary> public class ModuleContainer : Container { IServiceProvider serviceProvide...
32.25
91
0.556589
[ "Apache-2.0" ]
Epi-Info/Epi-Info-Community-Edition
Epi.Windows/ModuleContainer.cs
1,290
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...
53.040268
253
0.602303
[ "MIT" ]
Agazoth/azure-powershell
src/Purview/Purviewdata.Autorest/generated/api/Models/Api20211001Preview/AzureFileServiceDataSourceProperties.TypeConverter.cs
7,755
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.Azure.EventHubs { using System; /// <summary> /// The exception that is thrown when a server is busy. Callers should wait a while and...
29.041667
113
0.658537
[ "MIT" ]
0xced/azure-sdk-for-net
sdk/eventhub/Microsoft.Azure.EventHubs/src/Primitives/ServerBusyException.cs
699
C#
#region ---------- File Info ---------- /// ********************************************************************** /// Copyright (C) 2018 DarkRabbit(ZhangHan) /// /// File Name: SwapTextureCache.cs /// Author: DarkRabbit /// Create Time: Thu, 01 Feb 2018 00:45:12 GMT /// Modifier: /// Module Description: /// ...
26.80117
108
0.426795
[ "Apache-2.0" ]
Coreffy/book_srpg_dev
Ch7_Pathfinding_and_Map_Object/Ch7_Final/Assets/SRPG_Dev/Script/ColorPalette/SwapTextureCache.cs
4,715
C#
// *** WARNING: this file was generated by crd2pulumi. *** // *** 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.Types.O...
34.508772
258
0.632944
[ "Apache-2.0" ]
pulumi/pulumi-kubernetes-crds
operators/datadog-operator/dotnet/Kubernetes/Crds/Operators/DatadogOperator/Datadoghq/V1Alpha1/Outputs/DatadogAgentSpecClusterChecksRunnerConfigVolumesFc.cs
1,967
C#
// Licensed under MIT No Attribution, see LICENSE file at the root. // Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet. using System; using System.Collections.Generic; using System.Globalization; using Newtonsoft.Json; using Newtonsoft.Json.Con...
38.534965
191
0.622357
[ "MIT-feh" ]
CallumECameron/UnitsNet
UnitsNet.Serialization.JsonNet.Tests/UnitsNetBaseJsonConverterTest.cs
11,023
C#
namespace Content.Shared.GameObjects.Components.Mobs.State { public abstract class SharedDeadMobState : BaseMobState { protected override DamageState DamageState => DamageState.Dead; public override bool CanInteract() { return false; } public override bool ...
18.230769
71
0.471871
[ "MIT" ]
BananaFlambe/space-station-14
Content.Shared/GameObjects/Components/Mobs/State/SharedDeadMobState.cs
1,424
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CleanupObject : MonoBehaviour { [SerializeField] private Collider coll; [SerializeField] private CabinetBase laminarCabinet, secondPassThroughCabinet; private TriggerInteractableContainer roomItems; ...
32.010526
136
0.628741
[ "MIT" ]
MikkoHimanka/farmasia-vr
Assets/Scripts/RoomFunctions/CleanupObject.cs
3,047
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 enable using System.Diagnostics; namespace System.Globalization { /// <remarks> /// Calendar supp...
59.893939
146
0.389223
[ "MIT" ]
AfsanehR-zz/corefx
src/Common/src/CoreLib/System/Globalization/UmAlQuraCalendar.cs
39,530
C#
using UnityEngine; using UnityEngine.SceneManagement; public class EntryMenuSceneLoader : MonoBehaviour { public void LoadFreeDrive() { SceneManager.LoadScene("__FreeDrive"); SceneManager.UnloadSceneAsync("__EntryScene"); } public void LoadBrakingProblem() { SceneManager.LoadScene(...
27.8
64
0.729017
[ "MIT" ]
TheAlexDev23/Car-Physics-Simulation
Car-Physics-Simulation/Assets/src/Scene Managment/EntryMenuSceneLoader.cs
417
C#
//===================================================================================== // Developed by Kallebe Lins (kallebe.santos@outlook.com) // Teacher, Architect, Consultant and Project Leader // Virtual Card: https://www.linkedin.com/in/kallebelins //==============================================================...
27.929825
91
0.48304
[ "MIT" ]
rafaelcorazzi/mvp24hours-netcore
src/Mvp24Hours.Infrastructure/Logging/Renderer/UtcDateRenderer.cs
1,592
C#
using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; namespace LoggerMessage.Shared.Services { public class LocalEventGroupService : IEventGroupService { public bool Connected => true; //public Microsoft.CodeAnalysis.Solutio...
33.486486
118
0.60573
[ "MIT" ]
klebanandrey/LoggerMessage.Tools
src/LoggerMessage.Shared/Services/LocalEventGroupService.cs
2,480
C#
// ---------------------------------------------------------------- // Copyright ©2022 ZhaiFanhua All Rights Reserved. // FileName:IBlogTagService // Guid:e8c119bb-b7ae-29f6-0db5-da415d8eaefb // Author:zhaifanhua // Email:me@zhaifanhua.com // CreateTime:2021-12-28 下午 11:16:38 // ---------------------------------------...
30.764706
68
0.590822
[ "MIT" ]
zhaifanhua/zhaifanhuaBlog
backend/ZhaiFanhuaBlog.IServices/Blogs/IBlogTagService.cs
530
C#
using System; using System.IO; namespace NerdyMishka.Search.IO { public abstract class FileStorageProvider : IFileProvider { /// <summary> /// Lists all the files in storage. /// </summary> /// <returns>An array of file names.</returns> public abstract string[] ListAll()...
37.3125
92
0.582915
[ "Apache-2.0" ]
nerdymishka/gainz
dotnet/src/Api/Search.Core/IO/FileStorageProvider.cs
2,388
C#
using System.Reflection; 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("Xlent.Lever.CapabilityTemplate.Bll")] [ass...
38.805556
84
0.748031
[ "MIT" ]
xlent-fulcrum/fulcrum-examples
Xlent.Lever.CapabilityTemplate/src/Bll/Properties/AssemblyInfo.cs
1,400
C#
/* * GridGain Community Edition Licensing * Copyright 2019 GridGain Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause * Restriction; you may not use this file except in compliance with the License. You may obtain a * c...
44.42
101
0.725799
[ "Apache-2.0", "CC0-1.0" ]
DirectXceriD/gridgain
modules/platforms/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTestAsync.cs
2,233
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using Humanizer; using...
40.931525
198
0.556548
[ "MIT" ]
byspeece/ArchOSU
osu.Game/Database/ArchiveModelManager.cs
30,910
C#
using System; namespace MemeTV.BusinessLogic { public class ConsoleLogger : ILogger { private readonly object mutex = new object(); public void Debug(string msg) { Write(msg, LogSeverity.Debug); } public void Error(string msg) { Write(m...
30.079365
69
0.470712
[ "MIT" ]
zerratar/meme-tv
src/MemeTV.BusinessLogic/ConsoleLogger.cs
1,897
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WotTools { public static class WotPkg { public static bool TryExtractFile(string packagePath, string filePath, Action<Stream> readFile, bool verbose = true, bo...
36.45679
201
0.557738
[ "MIT" ]
PTwr/WotTools
WotTools/WotPkg.cs
2,955
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; public class b19896 { public static int Main(string[] args) { int retVal = 200; try { try { thr...
19.151515
71
0.481013
[ "MIT" ]
belav/runtime
src/tests/baseservices/exceptions/regressions/v1.0/19896.cs
632
C#
using System.ComponentModel; using System.Threading; using System.Threading.Tasks; namespace BuildIt { /// <summary> /// Provides a wrapper that handles when the Data property changes on an entity /// Instead of propagating a change to the entire entity, the wrapper does a deep /// update, only raisin...
35.523077
107
0.538978
[ "MIT" ]
builttoroam/BuildIt
src/BuildIt.General/BuildIt.General/ImmutableDataWrapper.cs
4,620
C#
// Animancer // https://kybernetik.com.au/animancer // Copyright 2021 Kybernetik // #if UNITY_EDITOR using System; using UnityEditor; using UnityEngine; namespace Animancer.Editor { partial class AnimancerToolsWindow { /// <summary>[Editor-Only] [Pro-Only] A base <see cref="Panel"/> for modifying <se...
39.272727
134
0.390947
[ "MIT" ]
malering/ET
Unity/Assets/VCFrame/EngineCode/ThirdParty/Animancer/Internal/Editor/Animancer Tools/AnimancerToolsWindow.AnimationModifierPanel.cs
3,888
C#
using System; using Avalonia; using Avalonia.Controls; using Avalonia.Controls.Shapes; using Avalonia.Markup.Xaml; namespace Frontend.Views { //https://github.com/FrankenApps/Avalonia-CustomTitleBarTemplate public class WindowControlsView : UserControl { private Window? window; private Button? minimizeButton; ...
30.703704
134
0.726578
[ "MIT" ]
p-barski/TodoListApp
Frontend/Views/WindowControlsView.axaml.cs
2,487
C#