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
namespace dotless.Core.Test.Plugins { using System; using System.Collections.Generic; using System.Linq; using System.Text; using Core.Parser.Infrastructure; using Core.Parser.Tree; using Core.Plugins; using NUnit.Framework; using System.Globalization; using System.Threading; ...
19.836538
102
0.52872
[ "Apache-2.0" ]
MultinetInteractive/dotless
tests/dotless.Core.Test/Plugins/RtlPluginFixture.cs
8,254
C#
// Lucene version compatibility level 4.8.1 using Lucene.Net.Index; using Lucene.Net.Queries.Function.DocValues; using Lucene.Net.Search; using Lucene.Net.Util; using System; using System.Collections; using System.IO; namespace Lucene.Net.Queries.Function.ValueSources { /* * Licensed to the Apach...
34.373418
138
0.494752
[ "Apache-2.0" ]
10088/lucenenet
src/Lucene.Net.Queries/Function/ValueSources/TermFreqValueSource.cs
5,276
C#
using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace mini.api.infrastructure.migrations.miniapi { public partial class MiniApiDbContext_AddedName : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColu...
27.111111
72
0.550546
[ "MIT" ]
dsund/miniapi
miniapi/infrastructure/migrations/miniapi/20220210134047_MiniApiDbContext_AddedName.cs
734
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) LibreHardwareMonitor and Contributors. // Partial Copyright (C) Michael Möller <mmoeller@openhardwaremon...
49.583032
179
0.353292
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
kolaqsq/LibreHardwareMonitor
LibreHardwareMonitorLib/Hardware/Motherboard/SuperIOHardware.cs
150,786
C#
using System; using System.Linq; using JabbR.Infrastructure; using JabbR.Models; using JabbR.Services; using Moq; using Xunit; namespace JabbR.Test { public class ChatServiceFacts { public class AddUser { [Fact] public void ThrowsIfNameIsInValid() { ...
34.023375
151
0.452732
[ "MIT" ]
robertwesterlund/SignalR-Chat
JabbR.Tests/ChatServiceFacts.cs
72,796
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using MountainWarehouse.EasyMWS.Data; using MountainWarehouse.EasyMWS.Enums; using MountainWarehouse.EasyMWS.Helpers; using MountainWarehouse.EasyMWS.Logging; using MountainWarehouse.EasyMWS....
41.381503
181
0.746752
[ "Apache-2.0" ]
TechyChap/EasyMWS
src/EasyMWS/EasyMWS/Services/ReportRequestEntryService.cs
7,161
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using KModkit; using PlanarCipherWords; using Rnd = UnityEngine.Random; public class mechanusCipherScript : MonoBehaviour { public KMAudio Audio; public AudioClip[] Sounds; public KMSelectable[] Gears; ...
26.54291
228
0.563857
[ "MIT" ]
Ob3vious/KTaNE_PlanarCiphers
Assets/Assets_Mechanus/mechanusCipherScript.cs
14,229
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Game.Tasks { /// <summary> /// Used as a base for all types of Tasks. /// /// A Task can be a part of a TaskQueue, which is mainly /// used by Workers to keep track of what to do now, /// and what to do n...
27.807692
74
0.593361
[ "MIT" ]
anthonyme00/DreamHack-2018
DreamHack 2018 - UnityProject/Assets/Scripts/Tasks/TaskBase.cs
725
C#
using System; namespace DiscountMe.Common.Helpers { /// <summary> /// The distance type to return the results in. /// </summary> public enum DistanceType { Miles, Kilometers }; /// <summary> /// Specifies a Latitude / Longitude point. /// </summary> public struct Position { pu...
32.18
88
0.538844
[ "MIT" ]
IberaSoft/discount-me
DiscountMe/DiscountMe.Common/Helpers/Haversine.cs
1,611
C#
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.RenderTree; //using Microsoft.AspNetCore.Components.Server.Circuits; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.JSInterop; using System; using System.Collections.Concurrent; using Syste...
43.953307
176
0.618803
[ "Apache-2.0" ]
budcribar/RemoteBlazorWebView
src/Photino.Blazor/DesktopRenderer.cs
11,298
C#
 using System.Text.Json.Serialization; using Twitch.Vod.Services.Models.Interfaces; namespace Twitch.Vod.Services.Models.Twitch { public class TwitchUser: ITwitchUser { [JsonPropertyName("id")] public string Id { get; set; } [JsonPropertyName("display_name")] public string Disp...
26.8
51
0.656716
[ "MIT" ]
nickyg91/twitch-vod-tools
Twitch.Vod.Tools/Twitch.Vod.Services/Models/Twitch/TwitchUser.cs
538
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using TDSBridge.Common; namespace TDSBridge { class Program { static int iRPC = 0; static void Main(string[] args) { if (args.Length < 3) { Usage(); ...
35.915094
154
0.547413
[ "MIT" ]
webMan1/TDSBridge
TDSBridge/TDSBridge/Program.cs
3,809
C#
// Copyright 2009-2012 Matvei Stefarov <me@matvei.org> using System; using System.Collections.Generic; namespace fCraft.Drawing { public sealed class Fill2DDrawOperation : DrawOpWithBrush { int maxFillExtent; public override string Name { get { return "Fill2D"; } } pu...
38.258555
123
0.451501
[ "MIT" ]
CybertronicToon/LegendCraft
fCraft/Drawing/DrawOps/Fill2DDrawOperation.cs
10,064
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace Artillery.Data.Models { public class Country { public Country() { this.CountriesGuns = new HashSet<CountryGun>(); } public int Id { get; set; }...
20.769231
74
0.614815
[ "MIT" ]
Iceto04/SoftUni
Entity Framework Core/12. Exam Preparations/EntityFrameworkCoreExam-16-Dec-2021/Artillery/Data/Models/Country.cs
542
C#
// Copyright 2018 Confluent 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 w...
36.561644
83
0.603597
[ "Apache-2.0" ]
GitObjects/confluent-kafka-dotnet
src/Confluent.Kafka/IClient.cs
2,669
C#
using System; using System.Collections.Generic; using Newtonsoft.Json; using Comformation.IntrinsicFunctions; namespace Comformation.ElasticLoadBalancingV2.ListenerRule { /// <summary> /// AWS::ElasticLoadBalancingV2::ListenerRule ForwardConfig /// https://docs.aws.amazon.com/AWSCloudFormation/latest/UserG...
34.351351
140
0.675846
[ "MIT" ]
stanb/Comformation
src/Comformation/Generated/ElasticLoadBalancingV2/ListenerRule/ForwardConfig.cs
1,271
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.3053 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
31.461538
84
0.481663
[ "MIT" ]
InstantBusinessNetwork/IBN
Source/Server/WebPortal/Apps/Calendar/Pages/QuickView.aspx.designer.cs
820
C#
using System.Collections.Generic; namespace MyLib.Data.Common { public class ListFilter : List<Filter> { public void Add( string name , object value ) { Add( new Filter { Name = name , Value = value } ); } } }
11.391304
39
0.564885
[ "MIT" ]
i-duarte/MyLib
src/MyLib.Data.Common/ListFilter.cs
264
C#
namespace ACAT.Lib.Core.PanelManagement { partial class SplashScreen { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </su...
49.904762
153
0.616174
[ "Apache-2.0" ]
AchilleFoti/acat
src/Libraries/ACATCore/PanelManagement/UI/SplashScreen.designer.cs
8,386
C#
namespace ConsoleForum.Utility { using System.Security.Cryptography; using System.Text; public static class PasswordUtility { public static string Hash(string password) { var hasher = MD5.Create(); return GetHash(hasher, password); } private st...
23.758621
77
0.561684
[ "MIT" ]
xenonbg/HighQualityCode
04. Code-Documentation-and-Comments-Homework/Console-Forum-Skeleton/Utility/PasswordUtility.cs
691
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. namespace Microsoft.PowerShell.Commands { using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; using System.Management.Automation; using S...
38.749231
196
0.558185
[ "MIT" ]
Francisco-Gamino/PowerShell
src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs
25,187
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Dynamic; using System.Reflection; namespace IgorO.ExposedObjectProject { public class ExposedObject : DynamicObject { private object m_object; private Type m_type; private Dictionary<stri...
32.083832
133
0.52165
[ "Artistic-2.0" ]
Munomic/Bellhop
ExEnFontShim/ExposedObject/ExposedObject.cs
5,360
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEditor.IMGUI.Controls; using UnityEngine; /*************************************************************************************** * Title: Behavior Tree * Author: Stephen Trinh * Date: 4/28/18 * Code v...
31.758621
113
0.504886
[ "MIT" ]
stephentrinh/BehaviorTree
Editor/BehaviorTreeNodeModelView.cs
3,686
C#
#region Copyright // // DotNetNuke® - https://www.dnnsoftware.com // Copyright (c) 2002-2018 // by DotNetNuke Corporation // // 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 restric...
32.105263
140
0.603607
[ "MIT" ]
Mhtshum/Dnn.Platform
DNN Platform/Library/Services/Exceptions/ObjectHydrationException.cs
3,051
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.ComponentModel.DataAnnotations; namespace LocalizationSample.Web.Models { public class Product { [Required(ErrorMessage =...
28.071429
111
0.717557
[ "Apache-2.0" ]
Mani4007/ASPNET
samples/LocalizationSample.Web/Models/Product.cs
395
C#
using System; namespace DaprFrontEnd { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF { get; set; } public string Summary { get; set; } } }
17.933333
45
0.598513
[ "Apache-2.0" ]
futugyou/CodeFragments
Dapr/DaprFrontEnd/WeatherForecast.cs
271
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // </auto-generated> namespace Microsoft.Azure.Management.AppService.Fluent ...
46.733176
445
0.558506
[ "MIT" ]
AntoineGa/azure-libraries-for-net
src/ResourceManagement/AppService/Generated/AppServiceEnvironmentsOperations.cs
632,627
C#
using DeninaSharp.Core; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading; namespace Tests { [TestClass] public class BaseTests { public static object Lock = new object(); private TestContext testContextInstance; public TestContext TestContext { ...
24.540541
104
0.580396
[ "MIT" ]
deanebarker/Denina
Tests/BaseTests.cs
910
C#
using System; public interface IToggleInput { bool isVisible { get; set; } bool isEnabled { get; set; } bool isActive { get; set; } event EventHandler onStateChanged; event EventHandler onActiveInteraction; event EventHandler onInactiveInteraction; }
23
45
0.721014
[ "BSD-3-Clause" ]
xinexix/ArrowTableGames
Assets/Scripts/Console/View/ControlStrip/IToggleInput.cs
276
C#
using Foundation; using UIKit; namespace Xamarin_iOS { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding) to // application events from iOS. [Register("AppDelegate")] ...
41.288136
131
0.668719
[ "MIT" ]
dhindrik/TDswe16
Lab - Xamarin.iOS/solution/Xamarin_iOS/AppDelegate.cs
2,438
C#
using Abp.MultiTenancy; using DRIMA.Authorization.Users; namespace DRIMA.MultiTenancy { public class Tenant : AbpTenant<User> { public Tenant() { } public Tenant(string tenancyName, string name) : base(tenancyName, name) { } } }
17.555556
54
0.550633
[ "MIT" ]
nccasia/codewar3
drima-manage-device/backend/aspnet-core/src/DRIMA.Core/MultiTenancy/Tenant.cs
318
C#
namespace Kebler { #if RELEASE using System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Windows; using Caliburn.Micro; using Const; using Models; using Resources; using Services; using Kebler.Update.Core; using ViewModels; using ...
31.233333
144
0.543223
[ "Apache-2.0" ]
JeremiSharkboy/Kebler-Transmission-Remote-GUI
src/Kebler/Updater.cs
2,813
C#
namespace WpfMath.Parsers { /// <summary>An enumeration that describes how an atom generated by a command should be handled.</summary> internal enum AtomAppendMode { /// <summary>A new atom will be added to the end of the current formula.</summary> Add, /// <summary>A new atom will ...
35.142857
110
0.672764
[ "MIT" ]
ForNeVeR/wpf-math
src/WpfMath/Parsers/AtomAppendMode.cs
492
C#
using System; using System.Text.Json; using System.Net; using System.Net.Sockets; using System.IO; using System.Collections.Generic; using LibData; using System.Text; namespace BookHelper { // Note: Do not change this class. public class Setting { public int ServerPortNumber { get; set; } ...
39.36
137
0.550559
[ "MIT" ]
DePaWSiT/Courses
Networking/DistLibrary/LibBookHelper/BookHelper.cs
3,938
C#
using System.Collections.Generic; using UnityEngine; /// <summary> /// Describes a pool of GameObjects for a given Prefab. /// The GameObjectPooler will use these as its initial pools. /// </summary> [System.Serializable] public class GameObjectPoolInfo { public GameObject Prefab; public List<GameObjec...
27.692308
63
0.733333
[ "CC0-1.0" ]
Spydarlee/Plantasia
UnityProjects/Plantasia/Packages/Source/Scripts/System/GameObjectPoolInfo.cs
362
C#
namespace Merchello.Core.Models { using System; using System.Collections.Specialized; using System.Reflection; using System.Runtime.Serialization; using Merchello.Core.Models.EntityBase; using Merchello.Core.Models.Interfaces; using Merchello.Core.Models.TypeFields; /// <summary> ...
27.202166
158
0.538421
[ "MIT" ]
vwa-software/Merchello
src/Merchello.Core/Models/EntityCollection.cs
7,537
C#
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved. #pragma warning disable 0219 #pragma warning disable 0618 #pragma warning disable 0649 namespace Rewired.UI.ControlMapper { using UnityEngine; using UnityEngine.UI; using System.Collections.Generic; using Syst...
26.15
83
0.568834
[ "MIT" ]
Constrained-Development/Magmescape
src/Assets/Plugins/Rewired/Extras/ControlMapper/Scripts/UIGroup.cs
1,048
C#
using Discord; using Discord.Audio; using NoeSbot.Enums; using NoeSbot.Helpers; using NoeSbot.Models; using NoeSbot.Modules; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading; usin...
30.929825
129
0.440348
[ "MIT" ]
stockmansy/NoeSBot
NoeSbot/Logic/AudioPlayer.cs
10,580
C#
/* * Scubawhere API Documentation * * This is the documentation for scubawhere's RMS API. This API is only to be used by authorized parties with valid auth tokens. [Learn about scubawhere](http://www.scubawhere.com) to become an authorized consumer of our API * * OpenAPI spec version: 1.0.0 * Contact: bryan@sc...
33.874016
226
0.590191
[ "Apache-2.0" ]
scubawhere/scubawhere-api-c-sharp-client
src/IO.Swagger/Model/InlineResponse20039.cs
4,302
C#
//****************************************************************************************************** // RemoteOutputAdapter.cs - Gbtc // // Copyright © 2012, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See...
39.200418
224
0.598072
[ "MIT" ]
GridProtectionAlliance/gsf
Source/Libraries/Adapters/HistorianAdapters/RemoteOutputAdapter.cs
18,780
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace Expl.Auxiliary.Sequence { /// <summary> /// Useful extensions for IEnumerable ordered sequences. /// </summary> public static class SequenceExtensions { /// <summary> /// Flatten multiple seq...
40.090909
151
0.587536
[ "MIT" ]
c3rebro/EventMessenger
EventMessenger/3rdParty/Itinerary/Expl.Itinerary/Auxiliary/SequenceExtensions.cs
12,791
C#
using TransparentFacadeSubSystem.Abstractions; namespace TransparentFacadeSubSystem { public class ComponentA : IComponentA { public string OperationA() => "Component A, Operation A"; public string OperationB() => "Component A, Operation B"; } }
25.090909
65
0.702899
[ "MIT" ]
ABEMBARKA/ASP.NET-Core-5-Design-Patterns
C09/src/TransparentFacadeSubSystem/ComponentA.cs
278
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ordering.Application.Features.Orders.Queries.GetOrdersList { public class OrdersVm { public int Id { get; set; } public string UserName { get; set; } public decimal Tot...
28.5
68
0.641447
[ "MIT" ]
CapitanHerlock/AspnetMicroservices
src/Services/Ordering/Ordering.Application/Features/Orders/Queries/GetOrdersList/OrdersVm.cs
914
C#
using Riganti.Selenium.Core.Drivers; using Riganti.Selenium.Core.Drivers.Implementation; using Riganti.Selenium.Core.Configuration; using Riganti.Selenium.Core.Logging; namespace Riganti.Selenium.Core.Factories.Implementation { public class FirefoxDevWebBrowserFactory : LocalWebBrowserFactory { public...
28.428571
81
0.715243
[ "Apache-2.0" ]
JTOne123/selenium-utils
src/Core/Riganti.Selenium.Core/Factories/Implementation/FirefoxDevWebBrowserFactory.cs
599
C#
using Business.Utils.Log; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Http; using Model.Utils.Log; using System; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using System.Xml; using System.Xml.Linq; using System.Xml.XPath; namespace Api.Middleware { ///...
38.806452
119
0.572458
[ "Apache-2.0" ]
Lc3586/Microservice
src/Applications/SimpleApi/Api/Middleware/CasSingleSignOutMiddleware.cs
3,641
C#
using Machine.Specifications; using PlainElastic.Net.Queries; using PlainElastic.Net.Utils; namespace PlainElastic.Net.Tests.Builders.Queries { [Subject(typeof(HasChildQuery<,>))] class When_empty_HasChildQuery_built { Because of = () => result = new HasChildQuery<FieldsTestClass, AnotherTestClas...
33.4
90
0.446707
[ "MIT" ]
AAATechGuy/PlainElastic.Net
src/PlainElastic.Net.Tests/Builders/Queries/HasChild/When_empty_HasChildQuery_built.cs
837
C#
using System; using Copernicus.Common.CQRS.Commands; namespace Copernicus.Application.Questions.Commands { public class DeleteQuestion : ICommand { public Guid Id { get; set; } } }
20.1
51
0.706468
[ "MIT" ]
boski-src/Copernicus.Server
Copernicus.Application/Questions/Commands/DeleteQuestion.cs
201
C#
using UnityEngine; using System; [Serializable] public struct Point { [SerializeField] public int x; [SerializeField] public int y; public Point(int x, int y) { this.x = x; this.y = y; } /// <summary> /// Gets the value at an index. /// </su...
23.205
107
0.448395
[ "MIT" ]
ByronMayne/GUIGrid
Point.cs
4,643
C#
// Copyright (c) 2020 Sergio Aquilini // This code is licensed under MIT license (see LICENSE file for details) using FluentAssertions; using Silverback.Messaging; using Silverback.Messaging.Configuration; using Xunit; namespace Silverback.Tests.Integration.RabbitMQ.Messaging { public class RabbitQueueConsumerEn...
29.735632
73
0.514882
[ "MIT" ]
mjeanrichard/silverback
tests/Silverback.Integration.RabbitMQ.Tests/Messaging/RabbitQueueConsumerEndpointTests.cs
2,589
C#
using Microsoft.Extensions.Logging; using MrP_TelegramBot.Commands.Base; using MrP_TelegramBot.Constants; using MrP_TelegramBot.Interfaces; using MrP_TelegramBot.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Telegram.Bot; using Telegram.Bot.Types; using ...
30.465347
142
0.576536
[ "MIT" ]
Rakaveli/MrP_TelegramBot
src/Commands/MessageCommands/GetNewWithParamsCommand.cs
3,079
C#
// * // * Copyright (C) 2008 Roger Alsing : http://www.RogerAlsing.com // * // * This library is free software; you can redistribute it and/or modify it // * under the terms of the GNU Lesser General Public License 2.1 or later, as // * published by the Free Software Foundation. See the included license.txt // * or htt...
28.906574
105
0.427101
[ "Apache-2.0" ]
VassilievVV/SpreadCommander
Alsing.SyntaxBox/Controls/BaseControls/BasePanelControl.cs
8,354
C#
namespace BarracksWars.Commands { public interface IExecutable { string Execute(); } }
13.5
32
0.62963
[ "MIT" ]
MartsTech/IT-Career
05. Object Oriented Programming/06. Working with Objects/11. BarracksWars/Commands/IExecutable.cs
110
C#
using System; using System.Collections.Generic; namespace Naspinski.FoodTruck.Data { public class ConnectionStrings { public string FoodTruckDb { get; set; } } public class AzureSettings { public string StorageAccount { get; set; } public string StorageAccountPassword { ge...
24.703704
58
0.628186
[ "MIT" ]
naspinski/FoodTruck.Data
Naspinski.FoodTruck.Data/AppSettings.cs
669
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using StardewValley; using StardewModdingAPI; using Microsoft.Xna.Framework; namespace StardewValleyMP.Packets { // Client <-> Server // Make the festival continue for everyone ...
24.792453
92
0.593607
[ "MIT" ]
KeyMove/StardewValleyMP
StardewValleyMP/Packets/ContinueEventPacket.cs
1,316
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Diagnostics; using static SteamCloudMusic.User32; namespace SteamCloudMusic { class Tray { public delegate bool EnumWindowProc(IntPtr hwnd...
34.806306
136
0.533454
[ "MIT" ]
iebb/SteamCloudMusic
Tray.cs
7,729
C#
/* * BSD 3-Clause License * * Copyright (c) 2018-2019 * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * ...
23.392941
87
0.500503
[ "BSD-3-Clause" ]
erisonliang/numpy.net
src/NumpyDotNet/NumpyDotNet/IronPythonFaker.cs
9,944
C#
using System.Runtime.InteropServices; using LibSharpRetro; using static SDL2.SDL; var core = ICore.LoadCore(args[0]); if(core == null) throw new Exception("Failed to load core"); Console.WriteLine($"Core name: {core.Name}"); Console.WriteLine($"Core short description: {core.ShortDescription}"); Console.WriteLine($"C...
26.581395
103
0.694955
[ "Apache-2.0" ]
Eilon/SharpRetro
SimpleSdlFrontend/Program.cs
3,431
C#
using System; using MonsterLove.StateMachine; using NUnit.Framework; using UnityEngine; using System.Collections; using UnityTest; using Object = UnityEngine.Object; [TestFixture] [Category("State Machine Tests")] internal class TestStateEngineInitialization : UnityUnitTest { public enum TestStates { StateInit, ...
17.074074
76
0.748373
[ "MIT" ]
MrNerverDie/Unity3d-Finite-State-Machine
example_project/Assets/Editor/MonsterLove/Tests/StateMachine/TestStateEngineInitialization.cs
1,383
C#
using System; using System.ComponentModel.Design; using Applications.Misc; using Microsoft.VisualStudio.Shell; using Task = System.Threading.Tasks.Task; namespace Applications.Commands { /// <summary> /// Command handler /// </summary> internal sealed class TaskManager { /// <summary> ...
36.52
135
0.625411
[ "MIT" ]
c-Cyril-l/WindowsApplicationsExtension
Applications/Commands/TaskManager.cs
2,741
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...
27.051282
115
0.599526
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/AutoScalingPlans/Generated/Model/MetricDimension.cs
2,110
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; using System.Threading; using System.Media; using System.IO; using System.Reflection; public unsafe struct...
31.586449
108
0.493602
[ "MIT" ]
SH0-ahacker/w0s4w
.cs
13,519
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
26.651163
66
0.720768
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-ecs/Ecs/Model/V20140526/ModifySecurityGroupEgressRuleResponse.cs
1,146
C#
using System.Globalization; using System.Reflection; namespace CommunityToolkit.Maui.Converters; /// <summary> /// Convert an <see cref="Enum" /> to corresponding <see cref="bool" /> /// </summary> public class EnumToBoolConverter : BaseConverterOneWay<Enum, bool, Enum?> { /// <summary> /// Enum values, th...
32.525424
114
0.676915
[ "MIT" ]
ehtick/Maui
src/CommunityToolkit.Maui/Converters/EnumToBoolConverter.shared.cs
1,921
C#
using System; using System.Collections.Generic; using BackendlessAPI.Utils; using System.Linq; using System.Text; using System.Reflection; namespace BackendlessAPI.Persistence { public class GeoJSONParser<T> where T : Geometry { private T geomClass; private ReferenceSystemEnum srs; public GeoJSONPars...
30.159236
127
0.642027
[ "Apache-2.0" ]
Mohamie/.NET-SDK
Backendless/Persistence/GeoJSONParser.cs
4,737
C#
using System; using System.Linq.Expressions; using HotChocolate.Language; using HotChocolate.Utilities; using HotChocolate.Types; namespace HotChocolate.Data.Filters.Expressions { public class QueryableComparableLowerThanOrEqualsHandler : QueryableComparableOperationHandler { public QueryableCo...
30.775
95
0.662876
[ "MIT" ]
Ciantic/hotchocolate
src/HotChocolate/Data/src/Data/Filters/Expressions/Handlers/Comparable/QueryableComparableLowerThanOrEqualsHandler.cs
1,231
C#
using System; using System.Collections.Generic; using NUnit.Framework; namespace Blauhaus.Errors.Tests.Tests.ErrorTests { public class EqualityTests { [Test] public void WHEN_values_are_the_same_SHOULD_return_TRUE() { foreach (var equalObjectPair in GetEqualObjects()) ...
38.936508
112
0.580106
[ "MIT" ]
BlauhausTechnology/Blauhaus.Errors
src/Blauhaus.Errors.Tests/Tests/ErrorTests/EqualityTests.cs
2,455
C#
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Storage; using Mix.Cms.Lib.Constants; using Mix.Cms.Lib.Enums; using Mix.Cms.Lib.Models.Account; using Mix.Cms.Lib.Models.Cms; using Mix.Heart.Infrastructure.ViewModels; using Mix.Heart.Models; using Newtonsoft.Json; using System; using System.Co...
37.289474
186
0.556457
[ "MIT" ]
1furkankaratas/mix.core
src/Mix.Cms.Lib/ViewModels/Account/MixRoles/ReadViewModel.cs
5,670
C#
public partial class VisualDebugEntity { public SomeOtherClassComponent SomeOtherClass { get { return (SomeOtherClassComponent)GetComponent(VisualDebugComponentsLookup.SomeOtherClass); } } public bool HasSomeOtherClass { get { return HasComponent(VisualDebugComponentsLookup.SomeOtherClass); } } public void AddSomeO...
34.655738
159
0.814096
[ "MIT" ]
MaxShwachko/entitas-redux-modified
Unity/Assets/ExampleContent/Generated/VisualDebug/Components/VisualDebugSomeOtherClassComponent.cs
2,114
C#
//////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2009, Daniel Kollmann // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted // provided that the following conditions are met: // /...
45.61
237
0.677264
[ "BSD-3-Clause" ]
OpenCAGE/BehaviourTreeTool
BehaviourTreeTool/LegendPlugin/Action/ActionIdleTimeFacingTargetMostRecentSensedPosition.cs
4,561
C#
using System; using System.Diagnostics; using System.Globalization; using Windows.Foundation; using Windows.UI.Xaml.Media; using Uno.Disposables; using System.Numerics; using Uno.UI; using Windows.UI.Xaml.Wasm; namespace Windows.UI.Xaml.Shapes { partial class ArbitraryShapeBase { #pragma warning disable CS0067, CS0...
25.453608
132
0.698056
[ "Apache-2.0" ]
06needhamt/uno
src/Uno.UI/UI/Xaml/Shapes/ArbitraryShapeBase.wasm.cs
4,940
C#
namespace MonitoringTilda.Services.Models { public class SubOrder { public string Id { get; set; } public string Name { get; set; } public int Count { get; set; } } }
20.090909
42
0.538462
[ "Apache-2.0" ]
FoxTes/MonitoringTilda
MonitoringTilda.Services/Models/SubOrder.cs
223
C#
using System; using Legacy.Game.MMGUI.Tooltip; using UnityEngine; namespace Legacy.Game { [AddComponentMenu("MM Legacy/MMGUI/BestiaryProgressBar")] public class BestiaryProgressBar : MonoBehaviour { [SerializeField] private BoxCollider m_collider; [SerializeField] private UIFilledSprite m_fillSprite; p...
22.089552
125
0.714189
[ "MIT" ]
Albeoris/MMXLegacy
Legacy.Game/Game/BestiaryProgressBar.cs
1,482
C#
using System; namespace Weapsy.Blog.Domain.Comment.Events { public class CommentTextChangedEvent : IDomainEvent { public Guid Id { get; private set; } public string Text { get; private set; } public CommentTextChangedEvent(Guid id, string text) { Id = id; Text = text; } } }
17.470588
54
0.693603
[ "MIT" ]
1713660/weapsy
src/Weapsy.Blog.Domain/Comment/Events/CommentTextChangedEvent.cs
299
C#
using Grammophone.Domos.Logic; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Grammophone.Domos.Web.Models { /// <summary> /// An error which is intended to be displayed to the user. /// </summary> public class UserErrorModel { #reg...
23.929825
93
0.705279
[ "MIT" ]
grammophone/Grammophone.Domos.Mvc
Models/UserErrorModel.cs
1,366
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.Diagnostics; using System.Text; using Microsoft.CodeAnalysis.CSharp.Syntax; using M...
40.601485
163
0.512406
[ "MIT" ]
Acidburn0zzz/roslyn
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/EmbeddedLanguages/VirtualChars/CSharpVirtualCharService.cs
16,405
C#
using Microsoft.Extensions.Hosting; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Volo.Abp; namespace Bamboo.Sales.HttpApi.Client.ConsoleTestApp { public class ConsoleTestAppHostedService : IHostedService { public async Task StartAsync(Canc...
30.259259
97
0.681763
[ "MIT" ]
BlazorHub/bamboomodules
Bamboo.Sales/test/Bamboo.Sales.HttpApi.Client.ConsoleTestApp/ConsoleTestAppHostedService.cs
819
C#
using System; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.Owin.Security.OAuth; namespace DevTeam.BearerAuthentication { public class ApplicationOAuthProvider<TUser, TService> : OAuthAuthorizationServerProvider where TUser: class, IUser where TService: UserManager...
30.560606
115
0.611304
[ "Apache-2.0" ]
DevTeamHub/BearerAuthentication
ApplicationOAuthProvider.cs
2,019
C#
namespace TrafficManager.API.Traffic.Data { using System; using TrafficManager.API.Traffic.Enums; public struct ExtCitizenInstance { public ushort instanceId; /// <summary> /// Citizen path mode (used for Parking AI) /// </summary> public ExtPathMode pathMode; ...
37.782946
106
0.583094
[ "MIT" ]
CitiesSkylinesMods/TMPE
TLM/TMPE.API/Traffic/Data/ExtCitizenInstance.cs
4,876
C#
namespace _10._Lower_or_Upper { using System; public class StartUp { public static void Main() { var characterToCheck = char.Parse(Console.ReadLine()); if (char.IsUpper(characterToCheck)) { Console.WriteLine("upper-case"); } ...
19.636364
66
0.467593
[ "MIT" ]
AntoniyaIvanova/SoftUni
C#/C# Fundamentals/03. DATA TYPES AND VARIABLES/LAB/DataTypesAndVariables/10. Lower or Upper/StartUp.cs
434
C#
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must r...
38.894366
135
0.625747
[ "BSD-3-Clause" ]
mdickson/opensim
OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
5,523
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
40.235294
164
0.570175
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Appflow/Generated/Model/Internal/MarshallTransformations/ConnectorOperatorUnmarshaller.cs
6,840
C#
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml; using System.Xml.Linq; using System.Xml.Xsl; namespace Reporting { public static class Extensions { public static XElement ToXml<T>(this T obj) { Type typ...
42.325843
135
0.425007
[ "MIT" ]
Riddle1988/ReportingLibrary
Reporting/Extensions.cs
3,769
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using Azure.Core; namespace Azure.ResourceManager.Compute.Models { /// <summary> Describes a set of certificates which are all in the same Key ...
43.702703
138
0.714904
[ "MIT" ]
Cardsareus/azure-sdk-for-net
sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceVaultSecretGroup.cs
1,617
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="UnorientedGraph.cs" company="Kephas Software SRL"> // Copyright (c) Kephas Software SRL. All rights reserved. // Licensed under the MIT license. See LICENSE file in the projec...
34.527027
123
0.517808
[ "MIT" ]
kephas-software/kephas
src/Kephas.Collections/Graphs/UnorientedGraph.cs
2,557
C#
using Interface.Models; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace Interface.Data { public class ApplicationDbContext : IdentityDbContext { public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options): base(options) { ...
32.510638
98
0.512762
[ "MIT" ]
bnjmnfrdnd/SMSM
Interface/Data/ApplicationDbContext.cs
3,058
C#
using LmpCommon; using LmpCommon.Enums; using LmpGlobal; using System; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Web; using System.Web.UI; using uhttpsharp; using HttpResponse = uhttpsharp.HttpResponse; namespace LmpMasterServer.Http.Handlers { public class ServerListHandler :...
50.192771
172
0.643783
[ "MIT" ]
211network/LunaMultiplayer
LmpMasterServer/Http/Handlers/ServerListHandler.cs
8,334
C#
#region License /* Copyright 2011, 2013 James F. Bellinger <http://www.zer7.com/software/hidsharp> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all cop...
39.087248
152
0.532624
[ "Apache-2.0" ]
gbrayut/dreamcheekyusb
DreamCheekyBTN/HidSharp/ReportDescriptors/Parser/ReportDescriptorParser.cs
17,474
C#
namespace CreatorSpace.Application.Comments.Commands.DeleteComment { using FluentValidation; public class DeleteCommentCommandValidator : AbstractValidator<DeleteCommentCommand> { public DeleteCommentCommandValidator() { this.RuleFor(x => x.Id).NotEmpty().WithMessage("Id is req...
26.692308
88
0.691643
[ "MIT" ]
gdemu13/CreatorSpace
src/CreatorSpace/Application/Comments/Commands/DeleteComment/DeleteCommentCommandValidator.cs
349
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 System.Linq; using System.Reactive.Linq; using Avalonia.Data.Converters;...
35.107527
116
0.586524
[ "MIT" ]
SteveL-MSFT/Avalonia
src/Markup/Avalonia.Markup/Data/MultiBinding.cs
3,265
C#
using Newtonsoft.Json.Linq; using Skybrud.Essentials.Json.Extensions; namespace Skybrud.Social.GitHub.Models.Commits { /// <summary> /// Class representing the tree of a given commit. /// </summary> public class GitHubCommitTree : GitHubObject { #region Properties /// <summary> ...
26.55102
107
0.558801
[ "MIT" ]
abjerner/Skybrud.Social.GitHub
src/Skybrud.Social.GitHub/Models/Commits/GitHubCommitTree.cs
1,303
C#
namespace BGuidinger.Xrm.Sdk.Management { using Newtonsoft.Json; using System.Net.Http; public class UpdateAdminMode : Message { internal override HttpMethod Method => HttpMethod.Post; internal override string RequestUri => $"/Instances/{InstanceId}/UpdateAdminMode?validate={Validate.T...
35.56
131
0.658043
[ "MIT" ]
bguidinger/Xrm.Sdk.Management
src/Management/Messages/Instances/UpdateAdminMode.cs
891
C#
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
38.69697
110
0.763508
[ "MIT" ]
samtoubia/azure-sdk-for-net
src/ResourceManagement/ServerManagement/Microsoft.Azure.Management.ServerManagement/Properties/AssemblyInfo.cs
1,277
C#
using System.Text.Json.Serialization; namespace AmmBot.Core.Json.Models { /// <summary> /// Представляет сообщение-действие в диалоге. /// </summary> public class MessageAction { /// <summary> /// Тип действия. /// </summary> [JsonInclude] [JsonPropertyName("...
26.288889
66
0.541843
[ "Apache-2.0" ]
Niapollab/AmmBot
AmmBot.Core/Json/Models/MessageAction.cs
1,368
C#
using System.Linq; using System.Threading.Tasks; using GitLabCLI.Console.Output; using GitLabCLI.Core.Gitlab; using GitLabCLI.Core.Gitlab.Merges; namespace GitLabCLI.Console { public sealed class GitLabMergeRequestsHandler { private readonly IGitLabFacade _gitLabFacade; private readonly Output...
35.75
102
0.618881
[ "MIT" ]
nmklotas/GitLabCLI
src/GitlabCLI.Console/GitLabMergeRequestsHandler.cs
2,004
C#
#region Header /** * JsonMapper.cs * JSON to .Net object and object to JSON conversions. * * The authors disclaim copyright to this source code. For more details, see * the COPYING file included with this distribution. **/ #endregion using System; using System.Collections; using System.Collections.Generic; us...
32.38755
99
0.499473
[ "MIT" ]
iZhangYingYing/YingLauncher
YingClient/Ying/KMCCC.Shared/LitJson/JsonMapper.cs
32,258
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...
43.287671
178
0.652848
[ "Apache-2.0" ]
JeffAshton/aws-sdk-net
sdk/src/Services/Schemas/Generated/Model/ConflictException.cs
6,320
C#
using Android.Content; using Android.Widget; namespace Rightek.Droid.Spitzer.Scrollers { public class PreGingerScroller : Scroller { readonly Android.Widget.Scroller _scroller; public PreGingerScroller(Context context) { _scroller = new Android.Widget.Scroller(context); ...
31.84375
150
0.684985
[ "MIT" ]
rightek/rightek.droid.spitzer
src/Rightek.Droid.Spitzer/Scrollers/PreGingerScroller.cs
1,021
C#
using System; using Couchbase.Core.IO.Converters; namespace Couchbase.Core.IO.Operations.Errors { internal class GetErrorMap : OperationBase<ErrorMapDto> { private const int DefaultVersion = 2; // will be configurable at some point public ErrorMap ErrorMap { get; set; } protected over...
30.5
83
0.614471
[ "Apache-2.0" ]
Zeroshi/couchbase-net-client
src/Couchbase/Core/IO/Operations/Errors/GetErrorMap.cs
1,769
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Charlotte.Common; using Charlotte.Tools; namespace Charlotte.Test01 { public class TitleMenu { private DDSimpleMenu SimpleMenu; public void Perform() { DDCurtain.SetCurtain(); DDEngine.FreezeInput(); Ground....
17.067039
91
0.573159
[ "MIT" ]
stackprobe/Fairy
Donut3/Donut3/Donut3/Test01/TitleMenu.cs
3,175
C#
namespace DSIS.Scheme.Impl.Actions.Files { public class ImageDimension { public static readonly Key<ImageDimension> KEY = new Key<ImageDimension>(""); public int Width { get; set; } public int Height { get; set; } } }
24.5
82
0.657143
[ "Apache-2.0" ]
jonnyzzz/phd-project
dsis/src/Scheme.Impl/src/Actions/Files/ImageDimension.cs
245
C#