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
// (c) Copyright Microsoft Corporation. // This source is subject to the Microsoft Public License (Ms-PL). // Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details. // All other rights reserved. using System; using System.Collections.ObjectModel; using System.Diagnostics; using System.Globalization; us...
36.608622
178
0.522328
[ "MIT" ]
mameolan/Avalonia
src/Avalonia.Controls/Calendar/DatePicker.cs
43,310
C#
//Problem 13.* Merge sort //Write a program that sorts an array of integers using the Merge sort algorithm (find it in Wikipedia). using System; namespace Problem13MergeSort { class MergeSort { static void DoMerge(int[] numbers, int left, int mid, int right) { int[] temp = new in...
26.888889
104
0.439853
[ "MIT" ]
atanas-georgiev/TelerikAcademy
02.CSharp-Part-2/Homeworks/Homework1/Problem13MergeSort/MergeSort.cs
2,180
C#
namespace NodeLibrary { public class MetaSenseVoltGasReadings { public double No2A; public double No2W; public double OxA; public double OxW; public double CoA; public double CoW; public double Temp; public double Nc; } public class MetaSe...
33.027778
86
0.58074
[ "BSD-3-Clause" ]
metasenseorg/MetaSense
MetaSenseApps/Core.NodeLibrary/MetaSenseConverters.cs
2,380
C#
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.IO; using System.Linq; using System.Reflection; using System.Threading; using NUnit.Framework; using SqlCE4Umbraco; using Umbraco.Core; using Umbraco.Core.IO; using umbraco.Dat...
41.988142
273
0.602372
[ "MIT" ]
filipesousa20/Umbraco-CMS-V7
src/Umbraco.Tests/TestHelpers/TestHelper.cs
10,623
C#
//--------------------------------------------------------------------- // Author: Harley Green // // Description: Cmdlet to get data from Sql Server databases // // Creation Date: 2008/8/20 //--------------------------------------------------------------------- using System; using System.Collections.Generic; using Sys...
29.25
127
0.531624
[ "Apache-2.0" ]
Skarbor/OrionSDK
Src/SwisPowerShell/DataReaderIndexer.cs
1,170
C#
using System.Dynamic; using Dolittle.Artifacts; using Dolittle.Execution; using Machine.Specifications; using Moq; using It = Machine.Specifications.It; namespace Dolittle.Runtime.Commands.Coordination.Specs.for_CommandContextManager { [Subject(Subjects.establishing_context)] public class when_establishing_fo...
46.84375
134
0.549033
[ "MIT" ]
joelhoisko/Runtime
Specifications/Commands.Coordination/for_CommandContextManager/when_establishing_for_same_command.cs
1,501
C#
using System; namespace Core.Domain.Models.Lastfm { public record LastfmTrack(string Name, string ArtistName, Uri Url, int? UserPlayCount); }
21.142857
91
0.763514
[ "MIT" ]
djohsson/Lastgram
src/Core/Domain/Models/Lastfm/LastfmTrack.cs
150
C#
using System.Text.RegularExpressions; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ExploreCsharp6 { [TestClass] public class StringInterpolationTests { [TestMethod] public void CanUseAsRegularString() { var s = $"my string"; Assert.AreEqual(...
32.636364
123
0.601671
[ "MIT" ]
klmcwhirter/ExploreCSharp
ExploreCsharp6/StringInterpolationTests.cs
1,077
C#
using System.Collections.Generic; using Microsoft.Azure.Management.ResourceManager.Fluent.Core; namespace ArdoqFluentModels.Azure.Model { public class SearchService : ResourceBase { public List<SearchServiceIndex> Indexes { get; } = new List<SearchServiceIndex>(); public SearchService(IResour...
26.4
90
0.655303
[ "Apache-2.0" ]
3lvia/libraries-ardoq-fluent-models-azure
src/ArdoqFluentModels.Azure/Model/SearchService.cs
530
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Renderi...
37.539216
153
0.576913
[ "MIT" ]
ZuechB/NetCoreReact
NetCoreReact/NetCoreReact/Controllers/AccountController.cs
19,147
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("Alar...
37.972973
84
0.75089
[ "Apache-2.0" ]
463-archaic-codebase/AlarmSuiteSimulator
AlarmSuiteSimulator/Properties/AssemblyInfo.cs
1,406
C#
using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using System.Windows.Forms.VisualStyles; using Vanara.Extensions; namespace Vanara.Windows.Forms { /// <summary>A panel that supports a glass overlay.</summary> [ToolboxItem(true), System.Drawing.ToolboxBitmap(typeof(ThemedPanel), "Theme...
27.729508
129
0.673662
[ "MIT" ]
PlumpMath/vanara
Vanara.Windows.Forms/ThemedPanel.cs
3,385
C#
using System; using System.Collections.Generic; using System.Text; namespace MovieProject.Core.Models { public class Cinema { public int Id { get; set; } public string Name { get; set; } public string Address { get; set; } public int Capacity { get; set; } public int Nu...
28.947368
103
0.623636
[ "MIT" ]
tiryakibeytullah/MovieApi
MovieProject/MovieProject.Core/Models/Cinema.cs
552
C#
using System; using System.Collections.Generic; using UnityEngine; [AddComponentMenu("NGUI/UI/NGUI Sprite"), ExecuteInEditMode] public class UISprite : UIWidget { public enum Type { Simple, Sliced, Tiled, Filled, Advanced, Custom } public enum FillDirection { Horizontal, Vertical, Radial90, R...
26.196283
287
0.626269
[ "MIT" ]
moto2002/tianzi_src2
src/UISprite.cs
45,110
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SharpDX; using SharpDX.Direct3D11; // Resolve class name conflicts by explicitly stating // which class they refer to: using Buffer = SharpDX.Direct3D11.Buffer; public class TriangleRenderer : C...
37.217822
105
0.621974
[ "MIT" ]
AndreGuimRua/Direct3D-Rendering-Cookbook
Ch02_02AddingTexture/TriangleRenderer.cs
3,761
C#
namespace Projeto.Pessoa.Model { public class PessoaTelefone { public int Id { get; set; } public int PessoaId { get; set; } public Pessoa Pessoa { get; set; } public string TelefoneResidencial { get; set; } public string TelefoneCelular { get; set; } public...
21.526316
55
0.594132
[ "MIT" ]
lucascrocha/Challenge
Projeto/Pessoa/Model/PessoaTelefone.cs
411
C#
using System; using System.Linq; using TEABot.TEAScript.Attributes; namespace TEABot.TEAScript.Instructions.Statements { /// <summary> /// End script execution, flushing the output buffer. /// </summary> [TSKeyword("end")] public class TSISEnd : TSISNoArguments { public ove...
31.535714
91
0.592299
[ "MIT" ]
LordPrevious/TEABot
TEABot/TEAScript/Instructions/Statements/TSISEnd.cs
885
C#
/* Copyright 2010-2014 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 writi...
59.64881
175
0.597146
[ "Apache-2.0" ]
EvilMindz/mongo-csharp-driver
MongoDB.DriverUnitTests/Jira/CSharp900Tests.cs
10,023
C#
using JetBrains.ReSharper.FeaturesTestFramework.Intentions; using JetBrains.ReSharper.TestFramework; using NUnit.Framework; using ReCommendedExtension.ContextActions; namespace ReCommendedExtension.Tests.ContextActions { [TestNetFramework45] [TestFixture] public sealed class AnnotateWithMustUseReturnValueE...
33.409091
135
0.767347
[ "Apache-2.0" ]
prodot/ReCommended-Extension
Sources/ReCommendedExtension.Tests/ContextActions/AnnotateWithMustUseReturnValueExecuteTests.cs
735
C#
using KDY.IP.DOC.Uc; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using Sy...
24.66
93
0.652068
[ "MIT" ]
shenhx/DotNetAll
Wpf/WpfApp_Basic/WpfApp_Basic/Window_Popup.xaml.cs
1,245
C#
using UnityEngine; namespace LiteNetLibManager { public class LiteNetLibReadOnlyAttribute : PropertyAttribute { } }
17.428571
68
0.795082
[ "MIT" ]
DungDajHjep/LiteNetLibManager
Scripts/PropertyAttributes/LiteNetLibReadOnlyAttribute.cs
124
C#
using System; namespace OPD.API { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
18
69
0.59375
[ "MIT" ]
DeividyH/OPD
OPD/OPD/OPD.API/WeatherForecast.cs
288
C#
using System; using System.Threading.Tasks; using DSharpPlus; using DSharpPlus.CommandsNext; using DSharpPlus.CommandsNext.Attributes; using DSharpPlus.Interactivity.Extensions; using DSharpPlusBot.Handler.Dialogue; namespace DSharpPlusBot.Module { public class Moderation : BaseCommandModule { private...
33.546512
108
0.535529
[ "MIT" ]
Spinariaz/DSharpPlusBot
Module/Moderation.cs
2,887
C#
// ***************************************************************************** // // © Component Factory Pty Ltd, 2006 - 2016. All rights reserved. // The software and associated documentation supplied hereunder are the // proprietary information of Component Factory Pty Ltd, PO Box 1504, // Glen Waverley, Vic...
44.459459
95
0.703951
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy-Archive/Krypton-Toolkit-Suite-NET-Core
Source/Truncated Namespaces/Source/Demos/Non NuGet/Krypton Toolkit Examples/KryptonButton Examples/Properties/AssemblyInfo.cs
1,649
C#
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
39.4
109
0.699873
[ "Apache-2.0" ]
googleapis/googleapis-gen
google/ads/googleads/v7/googleads-csharp/Google.Ads.GoogleAds.V7.Services.StandaloneSnippets/BatchJobServiceClient.GetBatchJobResourceNamesSnippet.g.cs
1,576
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ZigBeeNet.Security; using ZigBeeNet.ZCL.Clusters.Metering; using ZigBeeNet.ZCL.Field; using ZigBeeNet.ZCL.Protocol; namespace ZigBeeNet.ZCL.Clusters.Metering { /// <summary> /// Configure Mirror value object class. ...
41.880952
114
0.649991
[ "EPL-1.0" ]
DavidKarlas/ZigbeeNet
libraries/ZigBeeNet/ZCL/Clusters/Metering/ConfigureMirror.cs
5,277
C#
using System; using System.Collections.Generic; using System.Text; namespace CfgEdit { public class Parameter { public string m_name { get; private set; } public string m_syntax { get; private set; } public string m_description { get; private set; } public string m_toolTipForma...
27.652174
87
0.622642
[ "MIT" ]
Izaki11/CFGEdit
CfgEdit/Parameter.cs
638
C#
using IpcServiceSample.ServiceContracts; using JKang.IpcServiceFramework; using System; using System.Net; using System.Text; using System.Threading.Tasks; namespace IpcServiceSample.ConsoleClient { class Program { static void Main(string[] args) { MainAsync(args).Wait(); } ...
42.315789
118
0.568719
[ "MIT" ]
seaeagle1/IpcServiceFramework
src/IpcServiceSample.ConsoleClient/Program.cs
3,218
C#
using System; using System.Globalization; using System.Linq; using System.Threading.Tasks; using Microsoft.Azure.Cosmos.Table; using Microsoft.VisualStudio.TestTools.UnitTesting; using TechSmith.Hyde.Common; using TechSmith.Hyde.Table; namespace TechSmith.Hyde.IntegrationTest { [TestClass] public class SaveAtom...
38.547511
155
0.634112
[ "BSD-3-Clause" ]
TechSmith/hyde
src/Hyde.IntegrationTest/SaveAtomicallyTest.cs
8,521
C#
using System.Xml; using System.Xml.Linq; namespace Xbrl.Discovery.Entities.xsi { public class Type : xml.Attribute { public Type(xml.Element parent, XAttribute xAttribute) : base(parent, xAttribute) { } public Type(xml.Element parent, XmlAttribute xmlAttribute) : this(parent, new XAttr...
32.923077
179
0.703271
[ "MIT" ]
OpenSBR/RGS.Taxonomy.Reader
Xbrl Discovery/Entities/xsi/Type.cs
430
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace opdemo { public class CameraController : MonoBehaviour { // Singleton private static CameraController instance; //public float speed = 1f; //[SerializeField] KeyCode ForwardKey = KeyCode.W...
43.156028
181
0.626787
[ "MIT" ]
hansanjie/OpenPoseUnityDemo
unitydemo/Assets/Scripts/CameraController.cs
6,087
C#
using MarsRoverApp; using MarsRoverApp.Entities; using MarsRoverApp.Interfaces; using Xunit; namespace MarsRoverAppTest { public class MarsRoverTest { [Fact] public void DeployRoversTest() { ILandingSurface landingSurface = new Plateau("5 5"); RoverSquad roverSq...
31.637931
89
0.589646
[ "MIT" ]
Balajilande/rover
MarsRoverAppTest/MarsRoverTest.cs
1,837
C#
using System; using System.Collections.Generic; using DofusRE.IO; using DofusRE.GameData.classes; namespace DofusRE.GameData.classes { public class Quest : GameDataClass { public const String MODULE = "Quests"; public uint id; public uint nameId; public List<uint> stepIds; ...
24.230769
46
0.661905
[ "Apache-2.0" ]
Hydrofluoric0/DofusRE
src/DofusRE/GameData/classes/quest/Quest.cs
630
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using DG.Tweening; public class UITab : MonoBehaviour { public bool isActive; public Sprite activeSprite; public Sprite inactiveSprite; public Text tabText; private Button tabButton; void St...
14.892857
43
0.676259
[ "MIT" ]
henry9836/Pier-Shaped-Plan
Assets/Scripts/UI/UITab.cs
419
C#
using System; using System.Threading.Tasks; using Jasper.Testing.Messaging; using Jasper.Tracking; using Shouldly; using Xunit; namespace Jasper.Testing.Tracking { public class TrackedSessionTester { private readonly Envelope theEnvelope = ObjectMother.Envelope(); private readonly TrackedSessio...
32.434211
112
0.625152
[ "MIT" ]
CodingGorilla/jasper
src/Jasper.Testing/Tracking/TrackedSessionTester.cs
2,465
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections.Generic; using System.Globalization; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipe...
50.00885
214
0.651212
[ "MIT" ]
AhmedLeithy/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRule.cs
11,302
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK.Graphics; using osu.Framework.Allocation; using osu.Framework.Audio; using osu.Framework.Audio.Track; using osu.Framework.Configuration; using osu....
30.109589
127
0.505156
[ "MIT" ]
EvanD7657/WIP-Clicking-Game
osu.Game/Overlays/Direct/PlayButton.cs
6,378
C#
using Xunit; namespace NetScriptTest.language.expressions { public sealed class Test_Class : BaseTest { [Fact(DisplayName = "/language/expressions/class/accessor-name-inst-computed-err-evaluation.js")] public void Test_accessor﹏name﹏inst﹏computed﹏err﹏evaluation_js() { ...
52.73252
146
0.656234
[ "MIT" ]
MatthewSmit/.netScript
NetScriptTest/NetScriptTest.language.expressions.Class.cs
535,396
C#
using DestinyMod.Common.Projectiles; using DestinyMod.Content.Buffs.Debuffs; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.Audio; using Terraria.Enums; using Terraria.GameContent; using Terraria.ID; using Terraria...
35.144279
179
0.697905
[ "MIT" ]
MikhailMCraft/DestinyMod
Content/Projectiles/Weapons/Magic/DivinityBeam.cs
7,064
C#
using WebApplication1; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); var con...
22.548387
88
0.782546
[ "MIT" ]
twinity1/AppSettingsDocGenerator
WebApplication1/Program.cs
699
C#
using Newtonsoft.Json; namespace RetroClash.Logic.Manager.Items { public class Resource { [JsonProperty("id")] public int Id { get; set; } [JsonProperty("vl")] public int Value { get; set; } } }
18.538462
40
0.576763
[ "BSD-3-Clause" ]
HiimEiffel/RetroClashv0.6
RetroClash/Logic/Manager/Items/Resource.cs
243
C#
using UnityEngine; namespace Adrenak.Tork { public abstract class Player : MonoBehaviour { protected VehicleInput p_Input = new VehicleInput(); public abstract VehicleInput GetInput(); } }
22.333333
55
0.751244
[ "MIT" ]
PragneshRathod901/Tork
Assets/Adrenak/Tork/Common/Scripts/Player.cs
203
C#
//****************************************************************************************************** // EditorEventManager.cs - Gbtc // // Copyright © 2019, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See ...
42.36
144
0.609065
[ "MIT" ]
sttp/connection-tester
Assets/Editor/EditorEventManager.cs
3,180
C#
using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.EgitimAPI.ApplicationCore.Entities.Comments; using Microsoft.EgitimAPI.ApplicationCore.Services.CommentService.Dto; using Microsoft.EgitimAPI.ApplicationCore.Services.Dto; namespace Microsoft.EgitimAPI.ApplicationCore.Services.CommentServi...
38.3125
93
0.797716
[ "MIT" ]
sahinme/edutro-api
src/ApplicationCore/Services/CommentService/ICommentAppService.cs
613
C#
using System; using System.Collections.Generic; using BEPUphysics.BroadPhaseEntries.MobileCollidables; using BEPUphysics.CollisionShapes; using BEPUutilities; using BEPUutilities.DataStructures; namespace BEPUphysics.Entities.Prefabs { /// <summary> /// Acts as a grouping of multiple other objects. Can be use...
35.908046
174
0.623239
[ "Unlicense" ]
aeroson/lego-game-and-Unity-like-engine
MyEngine/bepuphysics/Entities/Prefabs/CompoundBody.cs
3,124
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.FinancialManagement { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespac...
20.932203
136
0.736032
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.FinancialManagement/Budget_Lines_High_Volume_DataType.cs
4,940
C#
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006-2020, All rights reserved. // The software and associated documentation supplied hereunder are the // propri...
38.645161
157
0.568614
[ "BSD-3-Clause" ]
Carko/Krypton-Toolkit-Suite-NET-Core
Source/Krypton Components/ComponentFactory.Krypton.Toolkit/Toolkit/KryptonNumericUpDownActionList.cs
5,993
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using...
44.14497
188
0.449311
[ "MIT" ]
ThadHouse/roslyn
src/Compilers/CSharp/Portable/CommandLine/CSharpCommandLineParser.cs
89,528
C#
namespace VaporStore.Data.Models { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; public class Tag { [Key] public int Id { get; set; } [Required] public string Name { get; set; } public ICollection<GameTag> GameTags { get; set; ...
19.272727
58
0.561321
[ "MIT" ]
VeselinBPavlov/database-advanced-entity-framework-core
24. Exam Preparations/01. Exam - 01 Sep 2018/VaporStore/Data/Models/Tag.cs
426
C#
/*++ Copyright (c) 2015 Microsoft Corporation --*/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.SolverFoundation.Common; using Microsoft.SolverFoundation.Solvers; using Microsoft.SolverFoundation.Services; using Microsoft.SolverFoundation.Plugin.Z3; using Mi...
30.76259
76
0.536249
[ "MIT" ]
0152la/z3
examples/msf/SolverFoundation.Plugin.Z3.Tests/SolverTests.cs
4,278
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: AssemblyTi...
39.216216
85
0.728463
[ "MIT" ]
EasyLOB/EasyLOB-Northwind-1
Northwind.Persistence/Properties/AssemblyInfo.cs
1,454
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Hosting.Server.Features; namespace Microsoft.AspNetCore.Server.IIS.Core; internal sealed class ServerAddressesFeature : IServerAddressesFeature { pub...
34.076923
79
0.772009
[ "MIT" ]
Akarachudra/kontur-aspnetcore-fork
src/Servers/IIS/IIS/src/Core/ServerAddressesFeature.cs
443
C#
using Celeste.Mod.Entities; using Microsoft.Xna.Framework; using System.Collections.Generic; namespace Celeste.Mod.SpringCollab2020.Triggers { [CustomEntity("SpringCollab2020/SpeedBasedMusicParamTrigger")] class SpeedBasedMusicParamTrigger : Trigger { public static void Load() { On...
40.666667
154
0.606557
[ "MIT" ]
mwhatters/SpringCollab2020
Triggers/SpeedBasedMusicParamTrigger.cs
2,686
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Changes to this file will be lost if the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ usin...
30.578431
113
0.686278
[ "MIT" ]
havit/HavitFramework
BusinessLayerTest/Resources/_generated/ResourceItemCollectionBase.cs
6,362
C#
using System.Linq; using GTNTracker.EventArguments; using GTNTracker.ViewModels; using Rg.Plugins.Popup.Extensions; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace GTNTracker.Views { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class CaptureManager : BasePage { public CaptureManag...
29.181818
88
0.559579
[ "MIT" ]
grotontrailtracker/GTNTracker
GTNTracker/GTNTracker/Views/CaptureManager.xaml.cs
2,570
C#
// // System.Configuration.CommaDelimitedStringCollection.cs // // Authors: // Chris Toshok (toshok@ximian.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, incl...
25.126667
92
0.697798
[ "Apache-2.0" ]
121468615/mono
mcs/class/System.Configuration/System.Configuration/CommaDelimitedStringCollection.cs
3,769
C#
 using System.Collections; using System.Collections.Generic; using System.Reflection; using UnityEngine; namespace IMMATERIA { public class HairAverage : Cycle { public Life set; public Life collision; public Life constraint; public Life resolve; public Form Base; public Hair Hair; public float[] tra...
22.758242
77
0.664413
[ "Unlicense" ]
cabbibo/cafp4k
Assets/IMMATERIA/LifeForms/Verlet/HairAverage.cs
2,073
C#
namespace FacadeDemo { using System; public class SubSystemFour { public void MethodFour() { Console.WriteLine(" SubSystemFour Method"); } } }
14.428571
55
0.539604
[ "MIT" ]
jsdelivrbot/Telerik-Academy-Homeworks
Module 2/01_High Quality Code/17. Design Patterns/Structural/FacadeDemo/SubSystemFour.cs
204
C#
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.OWC10Api { #region Delegates #pragma warning disable public delegate void PivotTable_SelectionChangeEventHandler(); public delegate void PivotTable_ViewChangeEventHandler(NetOffice.OWC10Api...
25.710671
293
0.686107
[ "MIT" ]
DominikPalo/NetOffice
Source/OWC10/Classes/PivotTable.cs
23,373
C#
using System; using System.Runtime.Serialization; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace X.Entity { [DataContract] [Table("Log")] public class Log : BaseEntity { [DataMember] [Required] [StringLength(50)] ...
19.285714
51
0.581481
[ "MIT" ]
wilsonfanfan/EF-CodeFirst
Entity/Base/Log.cs
542
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information using System; using System.Linq; using DotNetNuke.UI.WebControls; namespace DotNetNuke.Services.Authentication....
31.472222
100
0.667255
[ "MIT" ]
Tychodewaard/Dnn.Platform
DNN Platform/Library/Services/Authentication/OAuth/OAuthSettingsBase.cs
1,135
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Diagnostics; #if NETFRAMEWORK #nullable disable namespace Microsoft.VisualStudio.TestPlatform.ObjectModel; public partial in...
31.212121
121
0.716505
[ "MIT" ]
Wivra/vstest
src/Microsoft.TestPlatform.PlatformAbstractions/net451/Interfaces/Tracing/IPlatformEqtTrace.cs
1,032
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Configuration.Provider; using System.Configuration; using System.Text; using Microsoft.WindowsAzure; namespace Saguaro { public static class ProjectSettings { public static class Emails { ...
24.130435
81
0.700901
[ "MIT" ]
INNVTV/Saguaro
Saguaro/ProjectSettings.cs
557
C#
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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...
38.094737
175
0.611495
[ "Apache-2.0" ]
Bimble/Lean
Algorithm.CSharp/BasicTemplateOptionStrategyAlgorithm.cs
3,621
C#
using AutoMapper; using EllAid.Adapters.DataObjects; using EllAid.Entities.Data; using EllAid.Details.Main.DataAccess; namespace EllAid.Details.Main.Mapper.Profiles { public class CourseProfile : Profile { public CourseProfile() => CreateMap<Course, CourseDto>() .ForMember(...
33.733333
105
0.6917
[ "MIT" ]
steveage/EllAid
source/Details/Main/Map/Profiles/CourseProfile.cs
506
C#
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. // The software and associated documentation supplied hereunder are the // prop...
37.3125
170
0.572306
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy-Archive/Krypton-Toolkit-Suite-NET-Core
Source/Krypton Components/ComponentFactory.Krypton.Toolkit/Converters/GridStyleConverter.cs
1,794
C#
using System; namespace FullCalenderIOMVCCore.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
19.909091
70
0.684932
[ "MIT" ]
findasifrahman/fullCalenderIOCore
FullCalenderIOMVCCore/Models/ErrorViewModel.cs
219
C#
using System; using BackendTest.Domain.ValueObjects; namespace BackendTest.Domain.Entities { public class Genre : Entity<int> { public Name Name { get; private set; } private Genre() { } public Genre(Name name) : base(Guid.NewGuid().GetHashCode()) { ...
16.857143
68
0.553672
[ "MIT" ]
thevikingsoftwarecrafter/BackendTest
src/BackendTest.Domain/Entities/Genre.cs
356
C#
//------------------------------------------------------------------------------ // <copyright file="IResourceService.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //-----------------------------...
34.128205
80
0.480841
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/fx/src/compmod/system/componentmodel/design/IResourceService.cs
1,331
C#
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; namespace AGenericController.Models.Contexts { public class GenericLayer<T> : IDisposable where T: class { private TestDBEntities context; public GenericLayer() { context = new Tes...
23.589286
64
0.529145
[ "MIT" ]
MagicMango/GenericController
AGenericController/Models/Contexts/GenericLayer.cs
1,323
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...
35.635294
134
0.671179
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/SecurityHub/Generated/Model/Internal/MarshallTransformations/AwsCodeBuildProjectEnvironmentMarshaller.cs
3,029
C#
using System.Collections.Generic; using System.Threading; namespace WinAppDriver.Server.CommandHandlers { internal class UnknownCommandHandler : CommandHandler { public override Response Execute(CommandEnvironment environment, Dictionary<string, object> parameters, CancellationToken cancellationToken)...
36.8125
151
0.709677
[ "MIT" ]
ejhollas/WinAppDriver
WinAppDriver/CommandHandlers/UnknownCommandHandler.cs
591
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Text.RegularExpressions; using Microsoft.Bot.Schema; namespace Microsoft.Bot.Builder.Core.Extensions { public class RegExpRecognizerSettings { /...
35.397196
160
0.500198
[ "MIT" ]
DeeJayTC/botbuilder-dotnet
libraries/Microsoft.Bot.Builder.Core.Extensions/RegExpRecognizerMiddleware.cs
7,577
C#
namespace PluginWebRequestAffinityPreprod.DataContracts { public class OAuthConfig { public string RedirectUri { get; set; } } }
21.142857
55
0.702703
[ "MIT" ]
naveego/plugin-web-request-affinitypreprod
PluginWebRequestAffinityPreprod/DataContracts/OAuthConfig.cs
148
C#
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. // The software and associated documentation supplied hereunder are the // prop...
37.30916
157
0.529309
[ "BSD-3-Clause" ]
Krypton-Suite-Legacy/Krypton-NET-5.471
Source/Krypton Components/ComponentFactory.Krypton.Ribbon/View Base/ViewRibbonManager.cs
9,778
C#
namespace Security.HMAC { using System; using System.Linq; using System.Net; using System.Net.Http; using System.Security; using System.Threading; using System.Threading.Tasks; public class HmacServerHandler : DelegatingHandler { private readonly TimeSpan tolerance; ...
36.058824
95
0.554921
[ "MIT" ]
ifbaltics/hmac-security
src/WebAPI/HMACServerHandler.cs
3,678
C#
using Fhwk.Core.Tests.Common.Data; using Microsoft.VisualStudio.TestTools.UnitTesting; using NHibernate; using NHibernate.Cfg; using NHibernate.Dialect; using NHibernate.Driver; using NHibernate.Tool.hbm2ddl; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.L...
35.675159
675
0.577933
[ "Apache-2.0" ]
HomeroThompson/firehawk
Source/Firehawk/Firehawk.Core.Tests/Common/Tests/BaseSqlServerTest.cs
5,603
C#
using UnityEngine; using UnityEngine.UI; using System; using System.Collections; using Sfs2X; using Sfs2X.Logging; using Sfs2X.Util; using Sfs2X.Core; using Sfs2X.Entities; public class Connector : MonoBehaviour { //---------------------------------------------------------- // UI elements //----------------------...
27.461538
136
0.606968
[ "Apache-2.0" ]
RutgersUniversityVirtualWorlds/FreshTherapyOffice
Assets/Scripts/Connector.cs
5,714
C#
using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Net; using RestQueue.API.Support; namespace RestQueue.API.Controllers { [ApiController] [Route("")] public class RequestsController : ControllerBase { private readonly IRequestExecutor _requestExecutor...
39.888889
141
0.628969
[ "MIT" ]
vanbrayne/rest-asynchronous-request-response
RestQueue.API/Controllers/RequestsController.cs
1,797
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.Globalization; using NuGet.Common; namespace NuGet.Configuration { public class PackageSource : IEquatable<PackageSourc...
28.376963
111
0.505535
[ "Apache-2.0" ]
OctopusDeploy/NuGet.Client
src/NuGet.Core/NuGet.Configuration/PackageSource/PackageSource.cs
5,422
C#
using System; using Telerik.UI.Automation.Peers; using Windows.Foundation; using Windows.UI.Xaml; using Windows.UI.Xaml.Automation.Peers; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Shapes; namespace Telerik.UI.Xaml.Controls.DataVisualization { /// <summary> /// This cla...
39.082353
172
0.628537
[ "Apache-2.0" ]
HaoLife/Uno.Telerik.UI-For-UWP
Controls/DataVisualization/DataVisualization.UWP/Gauges/Indicators/ArrowGaugeIndicator.cs
6,646
C#
using System; namespace Kf.CANetCore31.Infrastructure.Persistence.Ef { /// <summary> /// SQL Server Data Types /// If anything is missing, add from this list https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/sql-server-data-type-mappings /// </summary> public static class SqlServerColu...
28
142
0.519345
[ "Unlicense" ]
KodeFoxx/CA-Net31
Source/Infrastructure/Persistence/Kf.CANetCore31.Infrastructure.Persistence.Ef/SqlServerColumnTypes.cs
2,018
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...
38.135135
84
0.743444
[ "MIT" ]
kostadinlambov/Programming-Fundamentals
26. Regular-Expressions-Regex-Exercise/06. Valid Usernames/Properties/AssemblyInfo.cs
1,414
C#
using System.Linq; using System.Threading.Tasks; namespace model.timing { // CR: 10.3 public class Checkpoint { private Game game; public Checkpoint(Game game) { this.game = game; } // CR: 10.3.1 async internal Task Check() { ...
21.113402
55
0.455078
[ "Unlicense" ]
JeffSkyrunner/data-hunt
Assets/Scripts/Model/Timing/Checkpoint.cs
2,048
C#
using ImageViewer.Models.Import; using JetBrains.Annotations; using Serilog; using System.Diagnostics; namespace ImageViewer.Utility { public static class ApplicationIOHelper { public static void EnumerateFiles(ref OutputDirectoryModel sourceFolder, string[] searchPattern, bool recursive = true) ...
36.139241
127
0.491769
[ "Apache-2.0" ]
CuplexUser/ImageViewer
ImageView/Utility/ApplicationIOHelper.cs
2,857
C#
using System.Collections.Generic; using Newtonsoft.Json; using NHSD.BuyingCatalogue.Solutions.Contracts.Hosting; namespace NHSD.BuyingCatalogue.Solutions.API.ViewModels.Hosting { public sealed class GetPublicCloudResult { public GetPublicCloudResult(IPublicCloud publicCloud) { Summ...
29.035714
66
0.635916
[ "MIT" ]
nhs-digital-gp-it-futures/BuyingCatalogueService
src/NHSD.BuyingCatalogue.Solutions.API/ViewModels/Hosting/GetPublicCloudResult.cs
815
C#
using ICities; using CitiesHarmony.API; using UnityEngine.SceneManagement; namespace BetterEducationToolbar { public class Mod : LoadingExtensionBase, IUserMod { string IUserMod.Name => "Better Education Toolbar Mod"; string IUserMod.Description => "Separate the Base Education Toolbar into f...
26.371429
147
0.64247
[ "MIT" ]
t1a2l/BetterEducationToolbar
BetterEducationToolbar.cs
925
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: AssemblyTi...
37.558824
85
0.732968
[ "MIT" ]
jayhopeter/ObjectListView
MasterDetailDemo/Properties/AssemblyInfo.cs
1,280
C#
using System; namespace EncompassApi.Loans { /// <summary> /// MilestoneHistoryLog /// </summary> public sealed partial class MilestoneHistoryLog : DirtyExtensibleObject, IIdentifiable { private DirtyValue<string?>? _addedByUserId; private DirtyValue<string?>? _changeReason; ...
35.595745
119
0.618051
[ "MIT" ]
fairwayindependentmc/EncompassApi
src/EncompassApi/Loans/MilestoneHistoryLog.cs
1,675
C#
// MonoGame - Copyright (C) The MonoGame Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. using System; using System.IO; namespace Microsoft.Xna.Framework.Media { public sealed partial class Song : IEquatable<Song>, IDisposable ...
21.967742
90
0.518355
[ "MIT" ]
Gitspathe/MonoGame
MonoGame.Framework/Media/Song.cs
4,086
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; namespace Microsoft.VisualStudio.Text.Editor { public readonly struct InfoBarAction { public string Title { get; } public Action Handler { get; } ...
26.980392
82
0.610465
[ "MIT" ]
AmadeusW/vs-editor-api
src/Editor/Text/Def/Extras/InfoBar/InfoBarViewModel.cs
1,378
C#
using MonophonicSequencer.Resources; using Sanford.Multimedia.Midi; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; namespace MonophonicSequencer.Controls { pub...
31.885375
130
0.524606
[ "CC0-1.0" ]
TN8001/MonophonicSequencer
MonophonicSequencer/Controls/PianoRollGrid.cs
8,125
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 may no...
38.268559
117
0.509937
[ "Apache-2.0" ]
Fylax/Apache-Commons-Math3-C-
complex/Complex.cs
52,583
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; namespace Silk.NET.Maths { /// <summary> /// Helper methods to work with <see cref="Rectangle{T}"/> /// </summary> public static class Rectangle {...
35.666667
80
0.588785
[ "MIT" ]
Ar37-rs/Silk.NET
src/Maths/Silk.NET.Maths/Rectangle.Ops.cs
1,072
C#
using Shiny.Attributes; [assembly: AutoStartupWithDelegate("Shiny.BluetoothLE.IBleDelegate", "UseBleClient", false)] [assembly: StaticGeneration("Shiny.BluetoothLE.IBleManager", "ShinyBle")]
27.857143
92
0.794872
[ "MIT" ]
Codelisk/shiny
src/Shiny.BluetoothLE/AssemblyInfo.cs
197
C#
using System; using System.Windows; using Scada.AddIn.Contracts; using SimpleWpfEditorWizard.ViewModels; namespace SimpleWpfEditorWizard { [AddInExtension("DataTypes TPL", "Loads data type statistics using Task Parallel Library", "Samples")] public class TplWizardExtension : IEditorWizardExtension { ...
29.880952
106
0.558566
[ "MIT" ]
CFeitler/AddInHowTo
ThreadingWizardSample/ThreadingWizardSample/TplWizardExtension.cs
1,257
C#
using System; using System.Collections.Generic; using System.Text; namespace Nysa.Logics { public abstract class Suspect<T> { } }
11.538462
36
0.673333
[ "MIT" ]
slowsigma/FoundErrors
BadCastAccessViolation/Suspect.cs
152
C#
// --------------------------------------------------------------------------------------- // <copyright file="Wave.cs" company="Corale"> // Copyright © 2015-2016 by Adam Hellberg and Brandon Scott. // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and a...
41.568627
91
0.607075
[ "MIT" ]
WolfspiritM/Colore
Corale.Colore/Razer/Mouse/Effects/Wave.cs
2,123
C#
using Memories.Business.IO; using Memories.Business.Models; using Memories.Services.Interfaces; namespace Memories.Services { public class BookService : IBookService { public Book GetEmptyBook() { return new Book(); } public Book LoadBook(string path) { ...
21.433333
55
0.586314
[ "MIT" ]
GiGong/Memories
Memories/Memories.Services/BookService.cs
645
C#
using System.Collections.Generic; using PeopleManagement.Constants; namespace PeopleManagement.Models { public class Person : BaseModel { public string FirstName { get; } public string MiddleName { get; } public string LastName { get; } public Gender Gender { get; } pub...
33.44
160
0.641148
[ "MIT" ]
afmorris/PeopleManagement
PeopleManagement.Models/Person.cs
838
C#