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; using SerdesNet; namespace UAlbion.Formats.Assets.Flic { public class UnknownChunk : FlicChunk { public byte[] Bytes { get; private set; } public override FlicChunkType Type { get; } public UnknownChunk(FlicChunkType type) => Type = type; public override string To...
31.8
86
0.619497
[ "MIT" ]
Metibor/ualbion
src/Formats/Assets/Flic/UnknownChunk.cs
638
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CMS.ViewModels { public class OrdersViewModel { public List<OrderViewModel> Orders { get; set; } } public class OrderViewModel { public int Id { get; set; } public in...
24.083333
56
0.621107
[ "Apache-2.0" ]
izzeldeen/Youth
CMS/ViewModels/OrdersViewModel.cs
580
C#
using System.Diagnostics.CodeAnalysis; namespace BookWeb.Client { [ExcludeFromCodeCoverage] public class CustomIcons { public static string BlazorHero { get; } = "<path d=\"M 37.00,90.00 C 37.00,90.00 328.90,90.00 328.90,90.00 328.90,90.00 328.90,410.00 328.90,410.00 328.90,410.00 37.00,410.00 37....
108.7
946
0.694572
[ "MIT" ]
seantrace/BookWeb
BookWeb/Client/CustomIcons.cs
1,089
C#
using Sandbox.Definitions; using Sandbox.Game.World; using VRage.Game; namespace avaness.SkyboxPlugin { public class Skybox { public WorkshopInfo Info { get; } private readonly MyObjectBuilder_EnvironmentDefinition definition; public static Skybox Default { get; } = new Skybox(null, ...
28.076923
110
0.629224
[ "Unlicense" ]
austinvaness/SkyboxPlugin
SkyboxPlugin/Skybox.cs
1,097
C#
using System; using System.Collections.Generic; using System.IO; namespace RT.Serialization { /// <summary> /// Used by <see cref="Classify"/> to serialize and deserialize objects. Implement this to enable serialization to a /// new format.</summary> /// <typeparam name="TElement"> /// ...
53.196023
136
0.58964
[ "MIT" ]
Emik03/RT.Util
RT.Serialization/IClassifyFormat.cs
18,729
C#
namespace Player.BuildTower { public class EventUpdatePlayerGold { public readonly int amount; public EventUpdatePlayerGold(int amount) { this.amount = amount; } } }
23.444444
50
0.625592
[ "MIT" ]
Exoduz85/SelloutDefence
Assets/Scripts/Player/BuildTower/EventUpdatePlayerGold.cs
213
C#
using Grpc.Core; using Grpc.Net.Client; using MachineNodes.Console.Service; using Microsoft.Extensions.Configuration; using System; using System.Device.Gpio; using System.Device.Pwm.Drivers; using System.IO; using System.Net.Http; Console.WriteLine("Service is starting"); // Configuration stuff var config = new Confi...
38
126
0.779025
[ "MIT" ]
maSchoeller/aswe-prototype
machinenodes/MachineNodes.Console/Program.cs
2,586
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class thiefCtrl : MonoBehaviour { Animator anim; int idleHash = Animator.StringToHash("idle_thief"); int walkumpHash = Animator.StringToHash("walk_thief"); int attackHash = Animator.StringToHash("attack_thief"); ...
26.789474
74
0.644401
[ "MIT" ]
AhsanSN/War-Heroes
War Heroes/Assets/animCtrl/thiefCtrl.cs
1,020
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Text.RegularExpressions; using Websms; namespace ASPExample { public partial class Default : System.Web.UI.Page { private static string...
30.62963
104
0.506651
[ "MIT" ]
websms-com/websmscom-csharp
examples/ASP.NET/Default.aspx.cs
2,483
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 Microsoft.ML.Data; using Microsoft.ML.Runtime; using Microsoft.ML.Trainers.LightGbm; namespace Microsoft.ML ...
61.769565
193
0.665517
[ "MIT" ]
GitHubPang/machinelearning
src/Microsoft.ML.LightGbm/LightGbmCatalog.cs
14,209
C#
using UnityEngine; using Overload; using HarmonyLib; using System.Reflection; using System.Collections.Generic; using System.Reflection.Emit; namespace GameMod { [HarmonyPatch(typeof(ChallengeManager), "WorkerUpgradeRandomMissile")] class ChallengeManager_WorkerUpgradeRandomMissile { static IEnume...
38.31068
181
0.466548
[ "MIT" ]
klmcdorm/olmods-n-stuff
Mod-CM-RNG/ChallengeManager.Upgrades.cs
3,948
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.Reflection.Metadata; namespace BuildValidator { internal static class BlobReader...
30.090909
120
0.648036
[ "MIT" ]
AlekseyTs/roslyn
src/Tools/BuildValidator/BlobReaderExtensions.cs
664
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 11.05.2021. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
25.915811
157
0.577213
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D1/Query/Operators/SET_001/Equal/Complete2__objs/TimeSpan/String/TestSet_504__param__01__VV.cs
12,623
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.Linq.Expressions; using JetBrains.Annotations; using Microsoft.EntityFrameworkCore.Query; u...
49.119171
113
0.648418
[ "Apache-2.0" ]
EricStG/efcore
src/EFCore.Cosmos/Query/Internal/SqlBinaryExpression.cs
9,480
C#
using System.Diagnostics; using OpenAL; namespace UAlbion.Core.Veldrid.Audio { public abstract class AudioObject { [Conditional("DEBUG")] protected static void Check() { int error = AL10.alGetError(); switch(error) { case AL10.AL_NO_E...
39.136364
137
0.631823
[ "MIT" ]
BenjaminRi/ualbion
src/Core.Veldrid/Audio/AudioObject.cs
863
C#
using UnityEngine; using UnityEngine.UI; public class CreditsButton : MonoBehaviour { public Button Credit; void Start() { Button btn = Credit.GetComponent<Button>(); btn.onClick.AddListener(OnMouseDown); } void OnMouseDown() { Debug.Log("You clicked Credits"); } ...
17.833333
51
0.632399
[ "MIT" ]
umdacm/hunger-games
Assets/Scripts/CreditsButton.cs
323
C#
using System; using System.Collections.Generic; using System.Text; namespace Xamarin.ProjectTools { public interface IShortFormProject { /// <summary> /// If true, uses the default MSBuild wildcards for short-form projects. /// </summary> bool EnableDefaultItems { get; } string Sdk { get; set; } IList<Pr...
27.5
74
0.719008
[ "MIT" ]
AArnott/xamarin-android
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Common/IShortFormProject.cs
605
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by Entitas.CodeGenerator.ComponentsGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-------...
39.897959
125
0.585678
[ "MIT" ]
kicholen/GamePrototype
Assets/Source/Generated/FindTargetComponentGeneratedExtension.cs
1,955
C#
#if UNITY_EDITOR using UnityEditor; using UnityEngine; namespace VLB { [CustomEditor(typeof(VolumetricDustParticles))] [CanEditMultipleObjects] public class VolumetricDustParticlesEditor : EditorCommon { SerializedProperty alpha, size, direction, speed, density, spawnMaxDistance, cul...
51.515464
255
0.626976
[ "MIT" ]
JayneGale/BlankSlate0
Assets/Plugins/VolumetricLightBeam/Editor/VolumetricDustParticlesEditor.cs
4,999
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Pyro.Common.ServiceRoot; using Pyro.DataLayer.DbModel.EntityBase; namespace Pyro.DataLayer.DbModel.Entity { public class _ServiceBaseUrl : ModelBase, IDtoRootUrlStore { public string Ur...
18.333333
60
0.734091
[ "BSD-3-Clause" ]
angusmillar/Pyro
Pyro.DataLayer/DbModel/Entity/ServiceBaseUrl.cs
442
C#
using System; using System.IO; using System.Threading; using System.Threading.Tasks; using Sitko.Core.App; using Sitko.Core.Storage.Metadata; namespace Sitko.Core.Storage.Cache { using JetBrains.Annotations; // Generic parameter is required for dependency injection // ReSharper disable once UnusedTypePara...
33.980392
109
0.721293
[ "MIT" ]
IgorAlymov/Sitko.Core
src/Sitko.Core.Storage/Cache/IStorageCache.cs
1,733
C#
//----------------------------------------------------------------------------- // Torque // Copyright GarageGames, LLC 2011 //----------------------------------------------------------------------------- singleton CubemapData( BlankSkyCubemap ) { cubeFace[0] = "./skybox_1"; cubeFace[1] = "./skybox_2"; ...
26.35
80
0.417457
[ "MIT" ]
Ahe4d/Despacito3D
Templates/Modules/FPSGameplay/art/skies/Blank_sky/materials.cs
508
C#
namespace TeslaCamViewer { using System; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Threading; using MahApps.Metro.Controls; using MahApps.Metr...
39.422658
171
0.508041
[ "MIT" ]
stephane-laurans/TeslaCamViewer
TeslaCamViewer/TeslaCamViewer/MainWindow.xaml.cs
18,097
C#
using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if NET6_0_OR_GREATER using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; #endif namespace Utf8Utility.Text; /// <content> /// <see cref="UnicodeUtility"/>クラスのIsAscii関連処理です。 /// </content> partial class UnicodeUtility { ...
30.955102
107
0.562632
[ "MIT" ]
finphie/Utf8Utility
Source/Utf8Utility/Text/UnicodeUtility.IsAscii.cs
7,748
C#
using System; namespace GoodbyeApp { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); } } }
13.692308
46
0.516854
[ "MIT" ]
sedc-codecademy/skwd9-net-05-oopcsharp
G2/Class01 - Intro/Code/HelloWorldApp/GoodbyeApp/Program.cs
180
C#
using System; namespace Loja.Domain.Core.Entities { public abstract class Entity { public Guid Id { get; protected set; } public override bool Equals(object obj) { var compareTo = obj as Entity; if (ReferenceEquals(this, compareTo)) return true; if...
21.88
63
0.557587
[ "MIT" ]
LeonardoLuz2/Loja
src/Loja.Domain.Core/Entities/Entity.cs
549
C#
using System.Web; using Orchard.Localization.Services; namespace Orchard.Tests.Stubs { public class StubCultureSelector : ICultureSelector { private readonly string _cultureName; public StubCultureSelector(string cultureName) { _cultureName = cultureName; } public Cul...
30.3125
90
0.694845
[ "BSD-3-Clause" ]
1996dylanriley/Orchard
src/Orchard.Tests/Stubs/StubCultureSelector.cs
487
C#
namespace Next.Abstractions.Trace { public interface ITraceInfoProvider { TraceInfo GetTraceInfo(); } }
15.625
39
0.672
[ "MIT" ]
sweepator/next
src/abstractions/Next.Abstractions.Trace/ITraceInfoProvider.cs
127
C#
// Copyright (C) 2003-2010 Xtensive LLC. // This code is distributed under MIT license terms. // See the License.txt file in the project root for more information. using System; using NUnit.Framework; using Xtensive.Core; using Xtensive.Orm; using Xtensive.Orm.Building.Builders; using Xtensive.Sql; namespace Xtensive...
40.681416
128
0.728736
[ "MIT" ]
NekrasovSt/dataobjects-net
Orm/Xtensive.Orm.Tests.Sql/DriverFactoryTest.cs
4,597
C#
using System; using System.Collections.Generic; namespace Custom_Doubly_Linked_List { class DoublyLinkedList<T> { private ListNode<T> head; private ListNode<T> tail; public DoublyLinkedList() { this.head = new ListNode<T>(); this.tail = new ListNode<T>(...
23.346667
98
0.416619
[ "MIT" ]
stanislavyv/softuni-projects
Data Structures Fundamentals/Custom Doubly Linked List/Custom Doubly Linked List/DoublyLinkedList.cs
3,504
C#
/* Written by Peter O. in 2014. Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ If you like this, you should donate to Peter O. at: http://peteroupc.github.io/ */ using System; using PeterO; using PeterO.Numbers; namespace PeterO.Cbor { internal class CBORInteger :...
23.510949
74
0.582738
[ "MIT" ]
JordanSchuetz/Unity-Realtime-Chat-Room-Tutorial
Assets/PubNub/ThirdParty/CBOR/PeterO/Cbor/CBORInteger.cs
3,221
C#
// Copyright © Neodymium, carmineos and contributors. See LICENSE.md in the repository root for more information. using RageLib.Resources.Common; using System.Collections.Generic; using System; namespace RageLib.Resources.GTA5.PC.Clips { // pgBase // crClip public class Clip : PgBase64, IResourceXXSystemB...
37.82963
113
0.586254
[ "MIT" ]
carmineos/gta-toolkit
RageLib.GTA5/Resources/PC/Clips/Clip.cs
5,108
C#
// Copyright (c) The Avalonia Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using System.Collections.Generic; using System.Globalization; using Avalonia.Styling; using Avalonia.Utilities; namespace Avalonia.Markup.P...
38.033113
123
0.460909
[ "MIT" ]
Artentus/Avalonia
src/Markup/Avalonia.Markup/Markup/Parsers/SelectorParser.cs
5,743
C#
using Domain.Cards; using FluentNHibernate.Mapping; using NHibernate.Mapping; namespace Data.Mappings { public class CardMapping: ClassMap<Card> { public CardMapping() { Table("Cards"); Id(x => x.Id); Map(x => x.MultiverseId) .Access.CamelCas...
32.791667
58
0.463787
[ "MIT" ]
dicehead3/Kaartenbak
Data/Mappings/CardMapping.cs
2,363
C#
using System.ComponentModel; using System.Windows; using MahApps.Metro.Controls; using MahApps.Metro.Controls.Dialogs; using MahApps.Metro.SimpleChildWindow.Demo.Properties; namespace MahApps.Metro.SimpleChildWindow.Demo { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class...
30.984375
192
0.712557
[ "MIT" ]
GerHobbelt/MahApps.Metro.SimpleChildWindow
src/MahApps.Metro.SimpleChildWindow.Demo/MainWindow.xaml.cs
1,985
C#
namespace OpenLawOffice.Word { partial class LoggingDialog { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </su...
47.236842
161
0.563677
[ "Apache-2.0" ]
NodineLegal/OpenLawOffice.Word
OpenLawOffice.Word/LoggingDialog.Designer.cs
8,977
C#
// <copyright file="LogTypesRepository.cs" company="YAGNI"> // All rights reserved. // </copyright> // <summary>Holds implementation of LogTypesRepository class.</summary> using System.Collections.Generic; using System.Linq; using LibrarySystem.Data.Logs; using LibrarySystem.Models.Logs; using LibrarySystem.Repositor...
35.392157
102
0.647091
[ "MIT" ]
TeamYAGNI/LibrarySystem
LibrarySystem/LibrarySystem.Repositories/Data.Logs/LogTypesRepository.cs
1,807
C#
using SharpReact.Core; using SharpReact.Core.Properties; using System.Collections.Generic; namespace SharpReact.Wpf.Props { public class ItemsControl: Control { public ReactParam<global::System.Collections.IEnumerable>? ItemsSource { get; set; } public ReactParam<global::System.String>? DisplayMemberPath { get; ...
53.392857
109
0.780602
[ "MIT" ]
MihaMarkic/SharpReact
src/Implementations/Wpf/SharpReact.Wpf/Props/ItemsControl.cs
1,495
C#
//-------------------------------------------------- // Motion Framework // Copyright©2021-2021 何冠峰 // Licensed under the MIT license //-------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace MotionFramework.Editor { [C...
22.714286
54
0.608491
[ "MIT" ]
ArcherPeng/MotionFramework
Assets/MotionFramework/Scripts/Editor/AssetScaner/AssetScanerSetting.cs
653
C#
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/ // Portions Copyright 2000-2004 Jonathan de Halleux // // 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:...
45.607143
127
0.729836
[ "ECL-2.0", "Apache-2.0" ]
Gallio/mbunit-v3
src/Gallio/Gallio/Framework/Assertions/AssertionFailureExplanation.cs
1,277
C#
using System; using System.Collections.Generic; using System.Security.Claims; using Microsoft.AspNetCore.Identity; namespace RavenDB.AspNetCore.Identity { public class IdentityUser { public class UserLogin : IEquatable<UserLogin>, IEquatable<UserLoginInfo> { ...
28.359649
82
0.504949
[ "Apache-2.0" ]
xinix00/RavenDB.AspNetCore.Identity
src/RavenDB.AspNetCore.Identity/IdentityUser.cs
6,468
C#
namespace Bus_Lite.Listeners { public interface IEventObserver { object Owner { get; } ObserverToken Token { get; } bool ShouldInvoke(object @event); object Invoke(object @event); } }
20.818182
41
0.611354
[ "MIT" ]
dawids222/Bus-Lite
Bus-Lite/Observers/IEventObserver.cs
231
C#
using UnityEngine; using System; using ActiveObjects.Triggers; namespace ActiveObjects { namespace GameSkill { public class ZombieCurse : Skill { [RequiredField] [Tooltip("Префаб огня.")] public Transform FirePrefab; [Tooltip("Урон.")...
29.309091
70
0.503722
[ "MIT" ]
Sumrix/DAZVillage
Assets/Scripts/ActiveObjects/Skill/ZombieCurse.cs
1,694
C#
using Base; using UnityEngine; namespace Asteroids { public class SimpleNoiseFilter : INoiseFilter { private readonly SimpleNoiseSettings _noiseSettings; private readonly Noise _noise; public SimpleNoiseFilter(SimpleNoiseSettings noiseSettings) { _noiseSettings = n...
29.583333
86
0.589671
[ "MIT" ]
ArildF/Debris
Assets/Asteroids/SimpleNoiseFilter.cs
1,065
C#
using ProcessUtil; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace HamsterCheese.AmongUsMemory { public static class Cheese { public static Memory.Mem mem = new Memory.Mem()...
37.582524
331
0.528158
[ "MIT" ]
altskop/GlaDOS-bot
AmongUsMemory/Cheese.cs
7,744
C#
using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; public class FriendsPanelManager : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler { private Animator panelAnimator; private bool isOpen = false; void Start() { panelAnimator = this.GetComponent<Animator>(); ...
23.5
91
0.70922
[ "MIT" ]
SilverMaple/TalkingBuildings
Assets/MainMenu/Scripts/FriendsPanelManager.cs
566
C#
using System; using Microsoft.AspNetCore.Mvc; namespace Esfa.Recruit.Provider.Web.RouteModel { public class ApplicationReviewRouteModel : VacancyRouteModel { [FromRoute] public Guid ApplicationReviewId { get; set; } } }
20.833333
64
0.712
[ "MIT" ]
SkillsFundingAgency/das-recru
src/Provider/Provider.Web/RouteModel/ApplicationReviewRouteModel.cs
252
C#
namespace Orc.FilterBuilder { using System; using System.Diagnostics; [DebuggerDisplay("{ValueControlType} {SelectedCondition} {Value}")] public class TimeSpanValueExpression : ValueDataTypeExpression<TimeSpan> { public TimeSpanValueExpression() : this(true) { }...
24.363636
76
0.621269
[ "MIT" ]
Orcomp/Orc.FilterBuilder
src/Orc.FilterBuilder/Expressions/TimeSpanValueExpression.cs
538
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MoonSharp.Interpreter.DataStructs { /// <summary> /// Provides facility to create a "sliced" view over an existing IList<typeparamref name="T"/> /// </summary> /// <typeparam name="T">The type of the items co...
32.536
297
0.633268
[ "Unlicense" ]
RenVoc/MindVector
MindVector/Assets/Fungus/Thirdparty/FungusLua/Thirdparty/MoonSharp/Interpreter/DataStructs/Slice.cs
8,136
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // ANTLR Version: 4.3 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------...
43.057522
82
0.705477
[ "MIT" ]
amironov73/ManagedClient.3
ManagedClient/Query/IrbisQueryListener.cs
9,731
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
34.925926
85
0.54719
[ "Apache-2.0" ]
AsimKhan2019/AdventuresWorks-Web-API
AdventureWorks.Data/Entities/ShoppingCartItem.cs
943
C#
using System; using System.Collections.Generic; using System.Linq; using Raml.Parser.Expressions; namespace Raml.Parser.Builders { public class ResponsesBuilder { private readonly IDictionary<string, object> dynamicRaml; public ResponsesBuilder(IDictionary<string, object> dynamicRaml) { this.dynamicRaml =...
31.630631
119
0.593563
[ "Apache-2.0" ]
raml-org/raml-dotnet-parser-2
source/Raml.Parser/Builders/ResponsesBuilder.cs
3,513
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; using Skender.Stock.Indicators; namespace Internal.Tests; [TestClass] public class ZigZag : TestBase { [TestMethod] public void StandardClose() { List<ZigZagResult> results = quotes.GetZigZag(EndType.Close, 3) ...
34.845
87
0.629502
[ "Apache-2.0" ]
mihakralj/Stock.Indicators
tests/indicators/s-z/ZigZag/ZigZag.Tests.cs
6,969
C#
using System.Linq; using AutoMapper; using BS.API.Dtos; using BS.API.Models; namespace BS.API.Helpers { public class AutoMapperProfiles : Profile { public AutoMapperProfiles() { CreateMap<User, UserForListDto>() .ForMember(dest => dest.PhotoUrl, opt => ...
43.828571
89
0.568449
[ "MIT" ]
vladosfi/Angular-BS
BS.API/Helpers/AutoMapperProfiles.cs
1,534
C#
namespace ConsoleApp1 { public interface IUserService { User LoginUser(string email); } }
15.714286
37
0.645455
[ "Unlicense" ]
zanybaka/StackOverflow.com
Questions/63741243/ConsoleApp1/IUserService.cs
112
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("06...
37.864865
84
0.744468
[ "MIT" ]
aliv59git/C-2N_HomeAndExam
1.HomeArrays/06.MaximalKSum/Properties/AssemblyInfo.cs
1,404
C#
using System; using System.ComponentModel; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; namespace Delta.Graphics { #pragma warning disable 1591 [EditorBrowsable(EditorBrowsableState.Never)] public class SamplerStateReader : ContentTypeReader<Sam...
34.125
85
0.67033
[ "MIT" ]
bostelk/delta
Delta.Core/Graphics/SamplerStateReader.cs
1,094
C#
using ExpressionLibrary.Expressions; using NUnit.Framework; using System; namespace ExpressionLibrary.Tests { [TestFixture(Category = "LetExpressions")] public class LetExpressionTests { [TestCase("let(,1,a)")] [TestCase("let(a,,a)")] [TestCase("let(a,1,)")] [TestCase("let(...
43.260417
122
0.565856
[ "MIT" ]
middas/ExpressionCalculator
ExpressionLibrary.Tests/LetExpressionTests.cs
4,155
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. namespace NetClient { using System; using System.Reflection; using System.Runtime.InteropServices; ...
30.101695
124
0.591216
[ "MIT" ]
1shekhar/runtime
src/coreclr/tests/src/Interop/COM/NETClients/Events/Program.cs
3,552
C#
// Copyright 2014 The Rector & Visitors of the University of Virginia // // 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 req...
26.833333
139
0.602928
[ "Apache-2.0" ]
w-bonelli/sensus
Sensus.Shared/Probes/Network/ListeningWlanProbe.cs
2,254
C#
using OpenDreamShared.Compiler; namespace DMCompiler.DM.Expressions { // x() (only the identifier) class Proc : DMExpression { string _identifier; public Proc(Location location, string identifier) : base(location) { _identifier = identifier; } public override void ...
35.449153
128
0.557495
[ "MIT" ]
DamianX/OpenDream
DMCompiler/DM/Expressions/Procs.cs
4,183
C#
using System; namespace OpenVIII { public struct RGBColor { public readonly Int32 R; public readonly Int32 G; public readonly Int32 B; public RGBColor(Int32 r, Int32 g, Int32 b) { R = r; G = g; B = b; } public overri...
18.086957
50
0.447115
[ "MIT" ]
A-n-d-y/OpenVIII
Core/Field/Core/RGBColor.cs
418
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
31.827586
96
0.641928
[ "Apache-2.0" ]
tencentcloudapi-test/tencentcloud-sdk-dotnet
TencentCloud/Antiddos/V20200309/Models/DescribeCcBlackWhiteIpListResponse.cs
1,952
C#
using System; using System.Collections.Generic; using HotChocolate.Language; using HotChocolate.Resolvers; using HotChocolate.Types; using HotChocolate.Types.Descriptors; using HotChocolate.Utilities; using HotChocolate.Configuration; using HotChocolate.Internal; using HotChocolate.Properties; using HotChocolate.Types....
30.20339
98
0.536686
[ "MIT" ]
Alxandr/hotchocolate
src/HotChocolate/Core/src/Types/SchemaBuilder.cs
14,256
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Codx.Auth.ViewModels { public class ClientGrantTypeDetailsViewModel : BaseGrantTypeClaimViewModel { public int Id { get; set; } } public cl...
19.405405
78
0.685237
[ "MIT" ]
codeandexplore/Codx.Auth
src/Codx.Auth/ViewModels/ClientGrantTypeViewModels.cs
720
C#
using System.Web; using System.Web.Mvc; using Laser.Orchard.NewsLetters.Models; using Orchard.ContentManagement; using Orchard.ContentManagement.Aspects; using Orchard.Mvc.Extensions; namespace Laser.Orchard.NewsLetters.Extensions { /// <summary> /// TODO: (PH:Autoroute) Many of these are or could be redundant...
56.333333
188
0.711479
[ "Apache-2.0" ]
INVA-Spa/Laser.Orchard.Platform
src/Modules/Laser.Orchard.NewsLetters/Extensions/UrlHelperExtensions.cs
4,225
C#
// <auto-generated /> using Abp.Authorization; using Abp.BackgroundJobs; using Abp.Events.Bus.Entities; using Abp.Notifications; using DF.ACE.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.Entit...
31.729116
117
0.441107
[ "MIT" ]
aman22275/ACE
aspnet-core/src/DF.ACE.EntityFrameworkCore/Migrations/20180201051646_Upgraded_To_Abp_v3.4.0.Designer.cs
39,124
C#
namespace Epic.OnlineServices.Presence { public delegate void OnPresenceChangedCallback(PresenceChangedCallbackInfo data); }
25.2
82
0.865079
[ "MIT" ]
undancer/oni-data
Managed/firstpass/Epic/OnlineServices/Presence/OnPresenceChangedCallback.cs
126
C#
#pragma checksum "TestFiles/Input/Inject.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "225760ec3beca02a80469066fab66433e90ddc2e" namespace Asp { #line 1 "TestFiles/Input/Inject.cshtml" using MyNamespace #line default #line hidden ; using System; using System.Linq; using System.Collections.Generic; ...
36.272727
132
0.714286
[ "Apache-2.0" ]
Mani4007/ASPNET
test/Microsoft.AspNetCore.Mvc.Razor.Host.Test/TestFiles/Output/Runtime/Inject.cs
1,596
C#
using System; using System.Collections.Generic; using System.Linq; using Fortnox.SDK; using Fortnox.SDK.Entities; using Fortnox.SDK.Search; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace FortnoxSDK.Tests.ConnectorTests { [TestClass] public class InvoiceTests { public FortnoxClient Fo...
46.259669
189
0.594291
[ "MIT", "Unlicense" ]
WilliamGanrot/csharp-api-sdk
FortnoxSDK.Tests/ConnectorTests/InvoiceTests.cs
25,119
C#
// <copyright file="ConfigurationService.cs" company="Automate The Planet Ltd."> // Copyright 2021 Automate The Planet Ltd. // 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...
34.552941
131
0.64079
[ "Apache-2.0" ]
AutomateThePlanet/AutomateThePlanet-Learning-Series
dotnet/Design-Architecture-Series/HandlingTestEnvironmentsData/Configuration/ConfigurationService.cs
2,939
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using Syste...
39.527778
145
0.678145
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
tests/Interop/Windows/um/winuser/INPUT_MESSAGE_SOURCETests.cs
1,425
C#
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -----------------------------------------------------------...
51.701299
226
0.66516
[ "MIT" ]
AKQHealthService/fhir-server
src/Microsoft.Health.Fhir.CosmosDb.UnitTests/CosmosDbMockingHelper.cs
3,983
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Drawing; using SonicRetro.SonLVL.API; namespace S3KObjectDefinitions.Common { class HiddenMonitor : Monitor { public override string Name { get { return "Hidden Monitor"; } } public override int GetDepth(Ob...
23.379032
89
0.685754
[ "Apache-2.0" ]
NatsumiFox/AMPS-Sonic-3-Knuckles
SonLVL INI Files/Common/Monitor.cs
2,899
C#
using System; using System.Windows.Forms; namespace ScreenCaptureExample { internal static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] private static void Main() { Application.EnableVisua...
24.157895
65
0.588235
[ "MIT" ]
hughbe/Communicate
windows/src/Demos/ScreenCaptureExample/Program.cs
461
C#
using Rocket.Unturned.Player; using SDG.Unturned; using Steamworks; namespace SolokLibrary.Player.Functions { public static class LookFunction { public static void DisableOverlay(CSteamID steamID) { UnturnedPlayer.FromCSteamID(steamID).Player.look.disableOverlay(); } ...
33.941176
92
0.658579
[ "MIT" ]
BarehSolok/SolokLibrary
Player/Functions/LookFunction.cs
1,156
C#
#region BSD License /* * * Original BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) * © Component Factory Pty Ltd, 2006 - 2016, (Version 4.5.0.0) All rights reserved. * * New BSD 3-Clause License (https://github.com/Krypton-Suite/Standard-Toolkit/blob/master/LICENSE) * ...
31.731563
119
0.485079
[ "BSD-3-Clause" ]
Krypton-Suite/Standard-Toolkit
Source/Krypton Components/Krypton.Toolkit/Controls Visuals/MultilineStringEditor.cs
10,760
C#
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; namespace OpenVIII { public abstract class Texture_Base { #region Fields private const ushort blue_mask = 0x7C00; private const ushort green_mask = 0x3E0; private const ushort red_mask = 0x1F...
43.888199
287
0.581234
[ "MIT" ]
RomanMayer7/OpenVIII
Core/Image/Texture_Base.cs
7,068
C#
using System; using System.ComponentModel; using System.Reflection; /** Enumeration values for GermanWeaponsForLifeForms * The enumeration values are generated from the SISO DIS XML EBV document (R35), which was * obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31<p> * * Note that ...
26.290323
92
0.674233
[ "BSD-2-Clause" ]
rodneyp290/open-dis-csharp
C#/DIS#1.0/Examples/EnumerationExample/Enumerations/GermanWeaponsForLifeForms.cs
1,630
C#
namespace View.UI.Wins { public static class Windows { public static readonly AlertWin ALERT_WIN = new AlertWin(); public static readonly ConnectingWin CONNECTING_WIN = new ConnectingWin(); public static readonly ConfirmWin CONFIRM_WIN = new ConfirmWin(); public static void CloseAll() { ALERT_WIN.Hide(...
24.875
76
0.728643
[ "MIT" ]
niuniuzhu/Lockstep
Project/View/UI/Wins/Windows.cs
400
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...
73.106335
447
0.66874
[ "MIT" ]
Agazoth/azure-powershell
src/Logz/generated/cmdlets/UpdateAzLogzMonitorVMHost_ListExpanded.cs
31,872
C#
global using BasicGameFrameworkLibrary.BasicGameDataClasses; global using CommonBasicLibraries.AdvancedGeneralFunctionsAndProcesses.BasicExtensions; global using CommonBasicLibraries.BasicDataSettingsAndProcesses; global using static CommonBasicLibraries.BasicDataSettingsAndProcesses.BasicDataFunctions; global using Co...
60.25
145
0.903181
[ "MIT" ]
musictopia2/GamingPackXV3
CP/Games/BingoCP/GlobalUsings.cs
2,169
C#
using AutoMapper; namespace Abp.AutoMapper { public static class AutoMapExtensions { /// <summary> /// Converts an object to another using AutoMapper library. /// There must be a mapping between objects before calling this method. /// </summary> /// <typeparam name="TDe...
30.789474
85
0.632479
[ "MIT" ]
mona6767/aspnetboilerplate
src/Abp.AutoMapper/AutoMapper/AutoMapExtensions.cs
587
C#
using CharacterGen.CharacterClasses; using CharacterGen.Domain.Tables; using CharacterGen.Feats; using NUnit.Framework; namespace CharacterGen.Tests.Integration.Tables.Feats.Data.CharacterClasses.Domains { [TestFixture] public class EvilFeatDataTests : CharacterClassFeatDataTests { protected overr...
36.538462
263
0.673684
[ "MIT" ]
DnDGen/CharacterGen
CharacterGen.Tests.Integration.Tables/Feats/Data/CharacterClasses/Domains/EvilFeatDataTests.cs
1,427
C#
// // NSActionCell.cs: Support for the NSActionCell class // // Author: // Michael Hutchinson (mhutchinson@novell.com) // // Copyright 2010, Novell, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to de...
29.229508
73
0.729669
[ "BSD-3-Clause" ]
NormanChiflen/xamarin-all-IOS
src/AppKit/NSActionCell.cs
1,783
C#
/* _BEGIN_TEMPLATE_ { "id": "TRL_541t", "name": [ "堕落之血", "Corrupted Blood" ], "text": [ "<b>抽到时施放</b>\n受到3点伤害。在你抽牌后,将此牌的两张复制洗入你的牌库。", "<b>Casts When Drawn</b>\nTake 3 damage. After you draw, shuffle two copies of this into your deck." ], "cardClass": "NEUTRAL", "type": "SPELL", "cost": ...
23.413793
106
0.615611
[ "MIT" ]
chi-rei-den/Silverfish
cards/TROLL/TRL/Sim_TRL_541t.cs
823
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Payment.WebAPI.Settings { public interface IMongoDbSettings { string DatabaseName { get; set; } string ConnectionString { get; set; } } }
19.642857
45
0.701818
[ "MIT" ]
ahmtsenlik/ApartmentManagementSystem
ApartmentManagement/Payment.WebAPI/Settings/IMongoDbSettings.cs
277
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Soccer.BL; using Soccer.Repository; using System; using System.Collections.Generic; using System.Text; namespace Soccer.BLTest { [TestClass] public class PlayerRepositoryTest { [TestMethod] public void RetrieveValid() { ...
27.358974
68
0.579194
[ "MIT" ]
peterriley/Sports
Sports/Soccer.BLTest/PlayerRepositoryTest.cs
1,069
C#
namespace SwapChainRenderingDemo { using System; using System.Windows.Media.Animation; using System.Windows.Media.Imaging; using DemoCore; using HelixToolkit.Wpf.SharpDX; using SharpDX; using Media3D = System.Windows.Media.Media3D; using Point3D = System.Windows.Media.Media3D.Point3D; ...
40.651558
179
0.569059
[ "MIT" ]
beppemarazzi/helix-toolkit
Source/Examples/WPF.SharpDX/SwapChainRenderingDemo/MainViewModel.cs
14,352
C#
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace IdentityServer.IDP.Device { public class DeviceAuthorizationInputModel : ConsentInputModel { public string UserCode ...
31
107
0.733138
[ "MIT" ]
matheusgabg/SecuringAspNetCore3WithOAuth2AndOIDC
Starter files/src/IdentityServer.IDP/Quickstart/Device/DeviceAuthorizationInputModel.cs
341
C#
// This file was automatically generated and may be regenerated at any // time. To ensure any changes are retained, modify the tool with any segment/component/group/field name // or type changes. namespace Machete.HL7Schema.V26 { using HL7; /// <summary> /// ADT_A16_PROCEDURE (Group) - /// </summary...
24.666667
105
0.572635
[ "Apache-2.0" ]
AreebaAroosh/Machete
src/Machete.HL7Schema/Generated/V26/Groups/ADT_A16_PROCEDURE.cs
592
C#
using System; using System.Collections.Generic; namespace Rinjani { public interface IQuoteAggregator { void HpxAggregate(); void ZbAggregate(); IList<Quote> GetHpxQuote(); IList<Quote> GetZbQuote(); } }
19.153846
37
0.638554
[ "MIT" ]
myblock001/RinJani
Rinjani/Interface/IQuoteAggregator.cs
251
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MyMedicalGuide.Data.Repositories; namespace MyMedicalGuide.Services { using Data.Models; using MyMedicalGuide.Services.Contracts; public class DoctorsService : IDoctorsService { ...
27.011765
103
0.566202
[ "MIT" ]
aleksandra992/My-Medical-Guide-ASP.NET-MVC
MyMedicalGuide/Services/MyMedicalGuide.Services/DoctorsService.cs
2,298
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Spark.Wpf.Common.ViewModels.Matrix { internal class RowHeader<TItem> { public RowHeader(string caption, Func<TItem, object> getter, bool addAfterColumnHeaders) { ...
25.375
96
0.658456
[ "MIT" ]
jackobo/jackobs-code
DeveloperTool/Dependencies/Wpf.Common/Wpf.Common/ViewModels/Matrix/RowHeader.cs
611
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...
26.821429
93
0.65779
[ "ECL-2.0", "Apache-2.0" ]
JakeGinnivan/pulumi-aws
sdk/dotnet/WafRegional/Outputs/RuleGroupActivatedRuleAction.cs
751
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("Bo...
37.540541
84
0.743701
[ "MIT" ]
KristiyanVasilev/OOP-Basics
Inheritance/BookShop/Properties/AssemblyInfo.cs
1,392
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class maptarget : MonoBehaviour { public static int gogo; // Start is called before the first frame update void Start() { switch (gogo) { case 1: this.transfo...
27.425532
69
0.456168
[ "MIT" ]
Taesuuu/Maps2021
Assets/Script/maptarget.cs
1,289
C#
using System; using System.Collections.Generic; using System.Threading; namespace GitHub.Unity.Git.Tasks { public class GitConfigListTask : ProcessTaskWithListOutput<KeyValuePair<string, string>> { private const string TaskName = "git config list"; private readonly string arguments; pu...
37.823529
159
0.597201
[ "MIT" ]
Anras573/Unity
src/GitHub.Api/Git/Tasks/GitConfigListTask.cs
1,286
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
31.722222
99
0.6439
[ "MIT" ]
AhmedLeithy/azure-sdk-for-net
sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/src/Generated/Models/AlertProcessingRulesListBySubscriptionHeaders.cs
1,713
C#
#pragma checksum "D:\Code\Blazor\ConnectFourCore\ConnectFourCore\Shared\NavMenu.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "b1b897abf82be056bc59965835b5f39c5907907f" // <auto-generated/> #pragma warning disable 1591 namespace ConnectFourCore.Shared { #line hidden using System; using System.Collections....
38.698492
176
0.679912
[ "MIT" ]
jkjaervik/ConnectFour
ConnectFourCore/obj/Debug/net5.0/Razor/Shared/NavMenu.razor.g.cs
7,701
C#