content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
// <copyright file="Friend.Generated.cs" company="MUnique"> // Licensed under the MIT License. See LICENSE file in the project root for full license information. // </copyright> //------------------------------------------------------------------------------ // <auto-generated> // This source code was auto-generat...
28.8
101
0.538889
[ "MIT" ]
RuriRyan/OpenMU
src/Persistence/EntityFramework/Model/Friend.Generated.cs
1,440
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace flappybird { [RequireComponent(typeof(PipeSpawnerScript))] [RequireComponent(typeof(AudioSource))] public class FlappyGameController : MonoBehaviour { private PlayerMovem...
27.809859
135
0.524943
[ "MIT" ]
raqdrox/flappy-bird
Assets/Scripts/FlappyGameController.cs
3,951
C#
using Nethereum.BlockchainStore.Repositories; using Nethereum.Contracts; using Nethereum.RPC.Eth.DTOs; using System; using System.Threading.Tasks; namespace Nethereum.BlockchainProcessing.Processing.Logs { public class TransactionLogProcessor<TEventDto> : ILogProcessor where TEventDto : class, new() { ...
33.333333
125
0.65
[ "MIT" ]
ConsenSys/Nethereum.BlockchainProcessing
Storage/Nethereum.BlockchainStore/Processing/Processors/TransactionLogProcessor.cs
1,202
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; using UnityEngine.UI; using System.Text; public class TextingTopPanel : MonoBehaviour { [SerializeField] private TextMeshProUGUI m_name = null; [SerializeField] private Image m_image = null; public void I...
19.772727
44
0.712644
[ "Apache-2.0" ]
ttanatb/in-bed-cant-sleep
Assets/Scripts/TextingTopPanel.cs
437
C#
using System.IO; using CP77.CR2W.Reflection; using FastMember; using static CP77.CR2W.Types.Enums; namespace CP77.CR2W.Types { [REDMeta] public class PerformFastTravelRequest : gameScriptableSystemRequest { [Ordinal(0)] [RED("player")] public wCHandle<gameObject> Player { get; set; } [Ordinal(1)] [...
30.823529
111
0.725191
[ "MIT" ]
Eingin/CP77Tools
CP77.CR2W/Types/cp77/PerformFastTravelRequest.cs
508
C#
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; namespace DotNext { /// <summary> /// Provides strongly typed way to reflect enum type. /// </summary> /// <typeparam name="TEnum">Enum type to reflect.</typeparam> /// <seeal...
43.101754
182
0.58393
[ "MIT" ]
GerardSmit/dotNext
src/DotNext/Enum.cs
12,286
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Devices.Sms { #if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__ #if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__ [global::Uno.NotImplemented] #endif public enum SmsFilterAc...
26.192308
62
0.688693
[ "Apache-2.0" ]
AlexTrepanier/Uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Devices.Sms/SmsFilterActionType.cs
681
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
44.3125
205
0.62024
[ "MIT" ]
Barteling/TcOpen
src/TcoDrivesBeckhoff/tests/TcoDrivesBeckhoffTestsConnector/Properties/Localizations.Designer.cs
2,838
C#
using LozyeFramework.Lua.LuaHeaders; using LozyeFramework.Lua.LuaProxys; using System; namespace LozyeFramework.Lua { static class LuaStaticVisitor { public static T Get<T>(IntPtr _luaState, LuaRef luaPtr, string path) { if (luaPtr == LuaRef.Zero) throw new NullReferenceException(); var proxy = LuaProxy<T...
28.459459
109
0.664767
[ "MIT" ]
lozye/LozyeFramework.Lua
LozyeFramework.Lua/Core/LuaStaticVisitor.cs
4,214
C#
// Jeebs Unit Tests // Copyright (c) bfren - licensed under https://mit.bfren.dev/2013 using System.Collections.Generic; using System.Linq; using Xunit; namespace Jeebs.EnumeratedList_Tests; public class Constructor_Tests { [Fact] public void Create_Empty_List() { // Arrange var list = new EnumeratedList<Foo>...
17.966667
68
0.67718
[ "MIT" ]
bfren/jeebs
tests/Tests.Jeebs/Collections/EnumeratedList/Constructor_Tests.cs
1,078
C#
using L2dotNET.DataContracts; using L2dotNET.Models; using L2dotNET.Models.zones; namespace L2dotNET.Utility.Geometry { public class Cube : Square { // cube origin coordinates private readonly int _z; public Cube(int x, int y, int z, int a) : base(x, y, a) { _z = z...
21.117647
81
0.433612
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
SamerMoustafa/L2Ninja
src/L2dotNET/Utility/Geometry/Cube.cs
1,079
C#
using Polly; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.NetworkInformation; using System.Threading.Tasks; namespace RetryTaskWithPolly { class Program { static async Task Main(string[] args) { var policy = Policy.Handle<Exc...
33.271186
115
0.501783
[ "MIT" ]
Khairultaher/RetryTaskWithPolly
RetryTaskWithPolly/Program.cs
1,965
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerMovement2D : MonoBehaviour { private Vector2 _dir = Vector2.zero; private Vector3 AimDirection = Vector3.zero; private Vector3 Target = Vector3.zero; [SerializeField] private GameObject _p...
31.379747
199
0.61073
[ "MIT" ]
schaumbu/Morphfox
Assets/Scripts/PlayerMovement2D.cs
2,481
C#
using System.Reflection; [assembly: AssemblyTitle("SIPSorcery.SIP.Net")] [assembly: AssemblyDescription("Helper classes for SIP related protocols.")] [assembly: AssemblyCompany("SIP Sorcery PTY LTD")] [assembly: AssemblyCopyright("Aaron Clauson")] [assembly: AssemblyVersion("1.5.6.*")]
36
76
0.770833
[ "BSD-3-Clause" ]
Rehan-Mirza/sipsorcery
sipsorcery-core/SIPSorcery.Net/AssemblyInfo.cs
288
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("ToDo_list.iOS")] [assembly: AssemblyDescr...
37.777778
84
0.740441
[ "MIT" ]
namarakM/ToDo-list
ToDo-list/ToDo-list.iOS/Properties/AssemblyInfo.cs
1,363
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
41.333333
80
0.645161
[ "MIT" ]
georgivv7/C-Sharp-Fundamentals-SoftUni
TextProcessing-Lab/04. TextFilter/obj/Debug/netcoreapp3.1/04. TextFilter.AssemblyInfo.cs
992
C#
using System; using System.Collections.Generic; 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 System.Windows.Shapes; using System.Collect...
27.8
81
0.688249
[ "MIT" ]
DiogoBarbosaSilvaSousa/apress
pro-wpf-4.5-in-csharp/Pro WPF 4.5 in C#/Chapter20/DataBinding/VariedTemplates.xaml.cs
1,251
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using Microsoft.Diagnostics.Tracing.Session; namespace JitBench { public class TestRun { public TestRun() { Ben...
42.421986
192
0.564491
[ "MIT" ]
Alecu100/coreclr
tests/src/performance/Scenario/JitBench/Runner/TestRun.cs
11,965
C#
namespace SitecoreCognitiveServices.Feature.IntelligentMedia.Areas.SitecoreCognitiveServices.Models { public interface IImageSearchJsonResult { string Url { get; set; } string Alt { get; set; } string Id { get; set; } string Title { get; set; } } }
29.3
100
0.651877
[ "MIT" ]
markstiles/SitecoreCognitiveServices.IntelligentMedia
code/Areas/SitecoreCognitiveServices/Models/IImageSearchJsonResult.cs
295
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. using System.Collections.Generic; namespace Formula.SimpleAuthServerUI { public class ConsentInputModel { public string Butt...
31.5625
107
0.69703
[ "Apache-2.0" ]
NephosIntegration/Formula.SimpleAuthServerUI
Controllers/Consent/ConsentInputModel.cs
507
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...
40.681058
455
0.338629
[ "ECL-2.0", "Apache-2.0" ]
dmelo/pulumi-aws
sdk/dotnet/Iam/GetPolicyDocument.cs
58,418
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace CharacterNameSpace.Stats { //determines speed and hit/miss chances public class SkillStat : Stat { [Tooltip("max is the miss chance at max skill")] public Vector3 missChanceRanges = new Vector2(.1f,0.5...
29.428571
94
0.668285
[ "MIT" ]
Therdre/LD41
Assets/Characters/Scripts/Stats/SkillStat.cs
620
C#
using System; using NUnit.Framework; using System.IO; using System.Linq; using Elektronik.Protobuf.Data; using Google.Protobuf; namespace Protobuf.Tests { public class TrackedObjsTests : TestsBase { private readonly TrackedObjPb[] _objects; private readonly string _filename = $"{nameof(Tracked...
39.360902
109
0.540974
[ "MIT" ]
KrasnovPavel/Elektronik-Tools-2.0
plugins/Protobuf.Tests/TrackedObjsTests.cs
5,237
C#
using System.Collections; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Ordering.Domain.Entities; namespace Ordering.Infrastructure.Persistence { public class OrderContextSeed { public static async Task SeedAsync(OrderContex...
33.933333
166
0.636542
[ "MIT" ]
neisburak/aspnet-microservices
src/services/Ordering/Ordering.Infrastructure/Persistence/OrderContextSeed.cs
1,021
C#
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.Text; using Microsoft.IdentityModel.Tokens; using Titan.Blog.Infrastructure.Utility; namespace Titan.Blog.WebAPP.Auth.JWT { public class JwtHelper { ...
32.294643
130
0.539121
[ "Apache-2.0" ]
HanJunJun/Titan.Blog.WebAPP
Titan.Blog.WebAPP/Titan.Blog.WebAPP/Auth/JWT/JwtHelper.cs
3,829
C#
/*<FILE_LICENSE> * NFX (.NET Framework Extension) Unistack Library * Copyright 2003-2014 IT Adapter Inc / 2015 Aum Code 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 * * http://...
41.471698
85
0.733849
[ "Apache-2.0" ]
PavelTorgashov/nfx
Source/Testing/NUnit/NFX.NUnit.Integration/Properties/AssemblyInfo.cs
2,199
C#
namespace ModManagerUlt { internal class XmlWriter { } }
17
31
0.647059
[ "BSD-3-Clause" ]
diehard3303/ModManagerUlt
XmlWriter.cs
70
C#
using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System.Collections.Generic; using System.Data.Entity; namespace SmartLMS.Models { public enum UserRoles { Administrator = 1, Manager = 2, ...
38.608696
132
0.591441
[ "MIT" ]
arifgit12/SmartLMS
SmartLMS/Models/IdentityModels.cs
4,442
C#
using System; using System.Linq; namespace _2._Knights_of_Honor { class Program { static void Main(string[] args) { Action<string> honor = (name) => { Console.WriteLine($"Sir " + name); }; Console.ReadLine() .Split...
21.047619
66
0.470588
[ "MIT" ]
dimitarkolev00/SoftUni-Advanced
04.Functional Programming/P02.Knights of Honor/Program.cs
444
C#
namespace TeisterMask.Data.Models { using System.ComponentModel.DataAnnotations.Schema; public class EmployeeTask { [ForeignKey(nameof(Employee))] public int EmployeeId { get; set; } public virtual Employee Employee { get; set; } [ForeignKey(nameof(Task))] public ...
22.277778
55
0.625935
[ "MIT" ]
A-Manev/SoftUni-CSharp-Advanced-january-2020
CSharp Databases - MS SQL Server/Databases Advanced/00. Exams/02. CSharp DB Advanced Exam - 07 Dec 2019/TeisterMask/Data/Models/EmployeeTask.cs
403
C#
using LifeCycleWorkflowBackend.Settings.OperationSettings.OperationType; using LifeCycleWorkflowBackend.Settings.OperationSettings.OperationType.OperationTypeComponents; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LifeCycleWorkflowBacke...
33.978022
107
0.594114
[ "MIT", "Unlicense" ]
alwaysmiddle/LifeCycleWorkflowTool
LifeCycleWorkflowBackend/Settings/DefaultSettings/Builders/DataSourceOperationTypeBuilder.cs
3,094
C#
using System; namespace ProjectServices.Application.Responses.Audit { public class AuditResponse { public int Id { get; set; } public string UserId { get; set; } public string Type { get; set; } public string TableName { get; set; } public DateTime DateTime { get; set; ...
30.588235
53
0.609615
[ "MIT" ]
NguyenDuyCuong/projectservices
src/Application/Responses/Audit/AuditResponse.cs
522
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using neobooru.Models; namespace neobooru.Controllers { public class HomeController : Controller { ...
27.263158
113
0.633205
[ "MIT" ]
TheSlipper/neobooru
neobooru/Controllers/HomeController.cs
1,038
C#
using Kotocorn.Core.Services.Database.Models; namespace Kotocorn.Modules.Xp.Common { public class FullUserStats { public DiscordUser User { get; } public UserXpStats FullGuildStats { get; } public LevelStats Global { get; } public LevelStats Guild { get; } public int Gl...
30.444444
66
0.610706
[ "MIT" ]
Erencorn/Kotocorn
NadekoBot.Core/Modules/Xp/Common/FullUserStats.cs
824
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace UiPath.Web.Client20204 { using Models; using System.Threading; using System.Threading.Tasks; /// <summa...
47.701095
508
0.549588
[ "MIT" ]
AFWberlin/orchestrator-powershell
UiPath.Web.Client/generated20204/EnvironmentsExtensions.cs
30,481
C#
using Windows.UI.Xaml.Controls; namespace UWPSample.Polar.Coordinates { public sealed partial class View : UserControl { public View() { InitializeComponent(); } } }
16.615385
50
0.592593
[ "MIT" ]
Live-Charts/LiveCharts2
samples/UWPSample/Polar/Coordinates/View.xaml.cs
218
C#
/* * OEML - REST API * * This section will provide necessary information about the `CoinAPI OEML REST API` protocol. <br/> This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> <br/><br/> Implemented Standards: * [HTTP...
47.558935
467
0.596418
[ "MIT" ]
AllSafeCybercurity/coinapi-sdk
oeml-sdk/csharp-netcore/src/CoinAPI.OMS.API.SDK/Model/OrderExecutionReportAllOf.cs
12,508
C#
namespace InvoiceManagementSystem.Application.Helpers { public class PagingParams { private const int MAX_PAGE_SIZE = 50; public int PageNumber { get; set; } = 1; private int _pageSize = 10; public int PageSize { get => _pageSize; set => _pageSiz...
24.4375
79
0.580563
[ "MIT" ]
andrija-mitrovic/InvoiceManagementSystem
src/InvoiceManagementSystem.Application/Helpers/PagingParams.cs
393
C#
using System; namespace PnP.Core.Model.SharePoint { /// <summary> /// Options to setup on the <see cref="RenderListDataOptions"/> RenderOptions property /// See https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-rest#sprenderlistdataoptions-options /// </...
28.984962
146
0.560052
[ "MIT" ]
DonKirkham/pnpcore
src/sdk/PnP.Core/Model/SharePoint/Core/Public/Enums/RenderListDataOptionsFlags.cs
3,857
C#
using System; using System.Collections.Generic; namespace Careful.Module.Core.Modularity { /// <summary> /// Defines the interface for the service that will retrieve and initialize the application's modules. /// </summary> public interface IModuleManager { /// <summary> /// Gets all...
36.789474
129
0.6402
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
daixin10310/CarefulDemo
MVVMCareful/Careful.Module.Core/Modularity/IModuleManager.cs
1,398
C#
using System; using Axoom.Extensions.Prometheus.Standalone; using JetBrains.Annotations; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using MyVendor.ServiceBr...
35.288136
97
0.648895
[ "MIT" ]
AXOOM/Templates.ServiceBroker
content/src/ServiceBroker/Startup.cs
2,082
C#
using System.Runtime.CompilerServices; using ComputeSharp.__Internals; using ComputeSharp.Exceptions; using ComputeSharp.Graphics.Commands; using ComputeSharp.Graphics.Extensions; using ComputeSharp.Graphics.Helpers; using ComputeSharp.Graphics.Resources.Interop; using ComputeSharp.Interop; using Microsoft.Toolkit.Dia...
50.627551
221
0.695321
[ "MIT" ]
arcadiogarcia/ComputeSharp
src/ComputeSharp/Graphics/Resources/Abstract/Texture3D{T}.cs
29,771
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.IO; namespace Microsoft.Extensions.CompilationAbstractions { public interface ISourceReference { string Name { get; } ...
26.916667
111
0.73065
[ "Apache-2.0" ]
aspnet/DNX
src/Microsoft.Extensions.CompilationAbstractions/ISourceReference.cs
323
C#
using System; using System.ComponentModel.DataAnnotations; using WEBCON.FormsGenerator.BusinessLogic.Domain.Exceptions; namespace WEBCON.FormsGenerator.BusinessLogic.Domain.Model { public class Form : Entity { public Form() { } public Form(string name, string content, BpsFormT...
39.353982
184
0.621992
[ "MIT" ]
WEBCON-BPS/public-forms
WEBCON.FormsGenerator.BuisnessLogic/Domain/Model/Form.cs
4,449
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using GridDesktop.Examples.WorkingWithGrid; using GridDesktop.Examples.Articles; using GridDesktop.Examples.WorkingWithWorksheet; using...
37.958564
104
0.658904
[ "MIT" ]
Aspose/Aspose.Cells-for-.NET
Examples.GridDesktop/CSharp/GridDesktop.Examples/RunExamples.cs
13,743
C#
using Org.BouncyCastle.Asn1.Pkcs; namespace Org.BouncyCastle.Asn1.Cms { public abstract class CmsObjectIdentifiers { public static readonly DerObjectIdentifier Data = PkcsObjectIdentifiers.Data; public static readonly DerObjectIdentifier SignedData = PkcsObjectIdentifiers.SignedData; ...
60.37931
122
0.741862
[ "Apache-2.0", "MIT" ]
flobecker/trudi-koala
src/IVU.BouncyCastle.Crypto/src/asn1/cms/CMSObjectIdentifiers.cs
1,751
C#
using System; using Org.BouncyCastle.Bcpg.OpenPgp; using System.IO; using Org.BouncyCastle.Bcpg; using System.Collections; #pragma warning disable 1591 namespace FRENDS.Community.PgpSignature { public class PgpSignatureTask { /// <summary> /// Sign a file with PGP signature. See documentation...
41.645833
160
0.567034
[ "MIT" ]
CommunityHiQ/Frends.Community.PgpSignature
Frends.Community.PgpSignature/PgpSignatureTask.cs
4,000
C#
using System; using System.IO; using System.Net.Sockets; using System.Reflection; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using Samples.Caching.Server; using static System.Console; namespace Samples.Caching.Client { public class ServiceChecker { publi...
38.217391
135
0.579446
[ "MIT" ]
MessiDaGod/Stl.Fusion.Samples
src/Caching/Client/ServiceChecker.cs
2,637
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Linq; namespace Microsoft.Recognizers.DataTypes.DateTime { public static class TimexConstraintsHelper { public static IEnumerable<TimeRange> Col...
30.482456
104
0.456978
[ "MIT" ]
stevengum97/Recognizers-Text
.NET/Microsoft.Recognizers.DataTypes.DateTime/TimexConstraintsHelper.cs
3,477
C#
using System; public class Exercises { static void Main() { var exercises = new Exercises(); Console.WriteLine(exercises.helloWorld()); Console.WriteLine(exercises.alternate("Hlo ol!", "el,Wrd")); Console.WriteLine(new String(exercises.swapEncrypt("Hello World".ToCharArray(), 11))); Console.WriteLine(new...
30.392157
98
0.652258
[ "MIT" ]
Progressor/ProgressorDefaultExercises
csharp/exercises.cs
1,552
C#
using PartyBook.ViewModels.Identity; using System.Threading.Tasks; namespace PartyBook.Client.Services { public interface IAuthService { Task<UserOutputModel> Login(LoginInputModel loginModel); Task Logout(); Task<UserOutputModel> Register(RegisterInputModel registerModel); } }
21.266667
73
0.730408
[ "MIT" ]
mishogv/PartyBook
src/PartyBook/Client/Services/IAuthService.cs
321
C#
using System; using Centaurus.Xdr; namespace Centaurus.Models { [XdrContract] [XdrUnion((int)MessageTypes.HandshakeInit, typeof(HandshakeInit))] [XdrUnion((int)MessageTypes.HandshakeResult, typeof(HandshakeResult))] [XdrUnion((int)MessageTypes.Heartbeat, typeof(Heartbeat))] [XdrUnion((int)MessageT...
56.825
98
0.778707
[ "MIT" ]
amissine/centaurus
Centaurus.Models/Messages/Message.cs
2,275
C#
using System; using System.IO; using System.Windows.Forms; using Common; using DAL; using Models; using SolidWorks.Interop.sldworks; using SolidWorks.Interop.swconst; namespace SolidWorksHelper { public class SSPFLATAutoDrawing : IAutoDrawing { readonly SSPFLATService objSSPFLATService = new SSPFLATSe...
60.238971
199
0.515532
[ "MIT" ]
felixzhu1989/Compass
SolidWorksHelper/CeilingAutoDrawing/SSPFLATAutoDrawing.cs
17,773
C#
using System; using System.Collections.Generic; using System.Text; namespace GraInfrastruktura.Entities { public class WynikEntity { public string Name { get; set; } public int IloscRuchow { get; set; } public TimeSpan Czas { get; set; } } }
20
44
0.653571
[ "MIT" ]
MarcinK-wsei/zgadywankalab3n
GraZaDuzoZaMalo/GraInfrastruktura/Entities/WynikEntity.cs
282
C#
using System.Security.Claims; using IdentityModel; using JWT.Models; using JWT.UnitTests.Extensions; using Xunit; namespace JWT.UnitTests { public class KeyInfoTests { [Fact] public void KeyInfo_Payload_Dictionary_Should_Contain_All_JwtClaimTypes() { var allJwtClaimTypes = t...
29.3125
94
0.641791
[ "MIT" ]
piraces/JWT
JWT.UnitTests/KeyInfoTests.cs
938
C#
#region license // // homer - The complete home automation for Homer Simpson. // Copyright (C) 2020, Hüseyin Uslu - shalafiraistlin at gmail dot com // https://github.com/bonesoul/homer // // “Commons Clause” License Condition v1.0 // // The Software is provided to you by the Licensor under the Li...
43.846154
134
0.707018
[ "MIT" ]
bonesoul/homer
dotnet-core/src/platforms/homekit/Services/Definitions/Fanv2Service.cs
2,290
C#
using UnityEngine; namespace BattleshipGame.Core { [CreateAssetMenu(fileName = "Options", menuName = "Battleship/Options")] public class Options : ScriptableObject { public Difficulty aiDifficulty = Difficulty.Easy; public bool vibration = true; } }
25.727273
76
0.696113
[ "MIT" ]
MusapKahraman/Battleship
Battleship-Client/Assets/Scripts/Core/Options.cs
285
C#
using Microsoft.AspNetCore.Mvc; using ScheduleManager.Domain.Common; using ScheduleManager.Domain.Entities; namespace ScheduleManager.Api.Controllers.Api.V1.Common { [Area("Api_V1")] public class CourseController : ItemsController<Course> { public CourseController(IAsyncProvider<Course> itemProvide...
26.5
89
0.727763
[ "MIT" ]
unsinedz/ScheduleManager
ScheduleManager.Api/Controllers/Api/V1/Common/CourseController.cs
371
C#
using System.ComponentModel; namespace Money.Enums { /// <summary> /// The CurrencyPositivePattern property is used with the "C" standard format string /// to define pattern of positive currency values. For more information, /// see Standard Numeric Format Strings. /// /// This property has on...
31.222222
134
0.627521
[ "MIT" ]
Money-NET/Money
Money/Enums/PositivePosition.cs
845
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using Blogging.Models; namespace Blogging.Controllers { public class PostsController : Controller { ...
30.511905
111
0.502926
[ "MIT" ]
ABION-Technology/Blogging
Blogging/Controllers/PostsController.cs
5,128
C#
// Copyright (c) Microsoft. All rights reserved. namespace Microsoft.Azure.Devices.Edge.Hub.MqttBrokerAdapter { using System; using Microsoft.Azure.Devices.Edge.Util; using Microsoft.Azure.Devices.Edge.Util.Json; using Newtonsoft.Json; /// <summary> /// BrokerServiceIdentity is a Data Transfer ...
34.508772
103
0.600407
[ "MIT" ]
ArchanaMSFT/iotedge
edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.MqttBrokerAdapter/BrokerServiceIdentity.cs
1,967
C#
namespace HandyControlDemo.UserControl { public partial class GravatarDemoCtl { public GravatarDemoCtl() { InitializeComponent(); } } }
18.4
40
0.592391
[ "MIT" ]
DingpingZhang/HandyControl
Net40/HandyControlDemo_Net40/UserControl/Controls/GravatarDemoCtl.xaml.cs
186
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("L2_...
37.351351
84
0.74602
[ "MIT" ]
doXi70/Homework_SoftUni
L2_Lab7/Properties/AssemblyInfo.cs
1,385
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Microsoft.AspNetCore.Authorization; namespace APIViewWeb { public class RevisionOwnerRequirement : IAuthorizationRequirement { protected RevisionOwnerRequirement() { } public...
25.75
98
0.718447
[ "MIT" ]
AlexGhiondea/azure-sdk-tools
src/dotnet/APIView/APIViewWeb/Account/RevisionOwnerRequirement.cs
414
C#
using HotChocolate.Language; using Xunit; namespace HotChocolate.Validation { public class ValuesOfCorrectTypeRuleTests : ValidationTestBase { public ValuesOfCorrectTypeRuleTests() : base(new ValuesOfCorrectTypeRule()) { } [Fact] public void GoodBool...
30.066667
91
0.474871
[ "MIT" ]
gmiserez/hotchocolate
src/Core.Tests/Validation/ValuesOfCorrectTypeRuleTests.cs
5,412
C#
// <auto-generated /> using System; using Infrastructure.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Infrastructure.Migrations { [DbContext(typeof...
36.900782
125
0.450836
[ "MIT" ]
valstekt/opensource-application-design
src/Infrastructure/Migrations/StructureDBContextModelSnapshot.cs
61,368
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.ML; using Microsoft.ML.Data; namespace Samples.Dynamic.Trainers.Regression { public static class LbfgsPoissonRegression { public static void Example() { // Create a new context for ML.NET operations....
37.771186
84
0.568768
[ "MIT" ]
GitHubPang/machinelearning
docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Regression/LbfgsPoissonRegression.cs
4,459
C#
// Copyright (c) 2018 Alachisoft // // 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 t...
44.366822
194
0.544894
[ "Apache-2.0" ]
arstorey/NCache
Src/NCSocketServer/SocketServer/Util/KeyPackageBuilder.cs
18,989
C#
using System; using Xunit; using Xunit.Abstractions; namespace dexih.functions.ml.tests { public class regression { private readonly ITestOutputHelper _output; public regression(ITestOutputHelper output) { _output = output; } [Fact] public v...
33.774319
111
0.522696
[ "Apache-2.0" ]
DataExperts/dexih.transforms
test/dexih.functions.ml.tests/regression.cs
8,680
C#
#region License // Copyright (c) 2010-2019, Mark Final // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, this // ...
41.715799
298
0.553889
[ "BSD-3-Clause" ]
markfinal/BuildAMation
Bam.Core/Graph.cs
47,264
C#
using System; namespace FoldAndSum { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()) * 4; int[] arrOriginal = new int[n]; int[] arrA = new int[n / 2]; int[] arrB = new int[n / 2]; in...
28.139535
64
0.306612
[ "MIT" ]
MishoParvanov/Arrays
Program.cs
1,212
C#
using SysVer = System.Version; namespace MetalBot { public static class Version { public static SysVer AsDotNetVersion() => new SysVer(Major, Minor, Patch, Hotfix); private static int Major => 4; private static int Minor => 0; private static int Patch => 0; private stat...
29.952381
94
0.616852
[ "MIT" ]
DeonduPreez/MetalBot
MetalBot/Version.cs
631
C#
using System.Linq; using EventStore.ClientAPI; using EventStore.ClientAPI.SystemData; using EventStore.Core.Data; using EventStore.Core.Services; using EventStore.Core.Tests.ClientAPI.Helpers; using EventStore.Core.Tests.Helpers; using NUnit.Framework; using ExpectedVersion = EventStore.ClientAPI.ExpectedVersion; using...
41.535714
121
0.656922
[ "Apache-2.0", "CC0-1.0" ]
BertschiAG/EventStore
src/EventStore.Core.Tests/ClientAPI/read_all_events_forward_with_hard_deleted_stream_should.cs
2,326
C#
using Agoda.Analyzers.AgodaCustom; using Agoda.Analyzers.Test.Helpers; using Microsoft.CodeAnalysis.Diagnostics; using NUnit.Framework; using System.Threading.Tasks; namespace Agoda.Analyzers.Test.AgodaCustom { internal class AG0023UnitTests : DiagnosticVerifier { protected override Diagnost...
22.065217
105
0.614778
[ "Apache-2.0" ]
agoda-com/AgodaAnalyzers
src/Agoda.Analyzers.Test/AgodaCustom/AG0023UnitTests.cs
2,032
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Azur...
49.386029
2,377
0.683243
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/ApiManagement/V20200601Preview/GetApiManagementService.cs
13,433
C#
using System; using System.Linq; using System.Web.Mvc; using FluentSecurity.TestHelper.Expectations; using FluentSecurity.TestHelper.Specification.TestData; using NUnit.Framework; namespace FluentSecurity.TestHelper.Specification { [TestFixture] [Category("ExpectationExpressionSpec")] public class When_c...
27.417722
103
0.744998
[ "MIT" ]
DiogenesPolanco/FluentSecurity
FluentSecurity.TestHelper.Specification/ExpectationExpressionSpec.cs
6,498
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("Ex...
37.702703
84
0.743369
[ "MIT" ]
Danielbahe/Fluxamarin
Example/Example.iOS/Properties/AssemblyInfo.cs
1,398
C#
namespace FillOrBustCP.Data; [SingletonGame] [UseLabelGrid] [AutoReset] public partial class FillOrBustVMData : IBasicCardGamesData<FillOrBustCardInformation>, ICup<SimpleDice> { [LabelColumn] public string NormalTurn { get; set; } = ""; [LabelColumn] public string Status { get; set; } = ""; [LabelC...
31.979592
104
0.668794
[ "MIT" ]
musictopia2/GamingPackXV3
CP/Games/FillOrBustCP/Data/FillOrBustVMData.cs
1,567
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Frapper.Web.Helpers { public class AlertViewModel { public string AlertType { get; set; } public string AlertTitle { get; set; } public string AlertMessage { get; set; } ...
23.227273
72
0.620352
[ "MIT" ]
Ramasagar/Frapper
Frapper.Web/Frapper.Web/Helpers/AlertViewModel.cs
513
C#
namespace JexusManager.Wizards.ConnectionWizard { using System.ComponentModel; using System.Windows.Forms; partial class TypePage { /// <summary> /// Required designer variable. /// </summary> private IContainer components = null; /// <summary> /// Cl...
40.424658
109
0.563368
[ "MIT" ]
68681395/JexusManager
JexusManager/Wizards/ConnectionWizard/TypePage.Designer.cs
5,904
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 0.17.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. ...
28.741935
85
0.580247
[ "MIT" ]
dnelly/azure-sdk-for-net
src/ResourceManagement/Logic/Microsoft.Azure.Management.Logic/Generated/Models/Sku.cs
1,782
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.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; namespace PlatformBenchmarks { internal class BatchUp...
33.842105
112
0.55832
[ "BSD-3-Clause" ]
ADmad/FrameworkBenchmarks
frameworks/CSharp/aspnetcore-mono/PlatformBenchmarks/Data/BatchUpdateString.cs
1,929
C#
// // Copyright (C) DataStax 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 l...
35.8
109
0.666046
[ "Apache-2.0" ]
datastax/csharp-driver-graph
src/Cassandra.DataStax.Graph/ITraversalBatch.cs
1,613
C#
using System; using System.Collections.Generic; using System.Text; namespace SynchronizationScheduler.Domain.Models.Application { /// <summary> /// Person application model. /// </summary> public class Person { public int Id { get; set; } public int CloudId { get; set; } ...
19.125
60
0.610022
[ "MIT" ]
green1971weekend/SynchronizationScheduler
src/SynchronizationScheduler.Domain/Models/Application/Person.cs
461
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...
28.38914
107
0.525821
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/AppStream/Generated/Model/User.cs
6,284
C#
// -- FILE ------------------------------------------------------------------ // name : ITimePeriodContainer.cs // project : Itenso Time Period // created : Jani Giannoudis - 2011.02.18 // language : C# 4.0 // environment: .NET 2.0 // copyright : (c) 2011-2012 by Itenso GmbH, Switzerland // -------------...
33.861111
77
0.358491
[ "MIT" ]
nevind7/TimePeriodLibrary
TimePeriod/ITimePeriodContainer.cs
1,219
C#
//------------------------------------------------------------------------------ // <autogenerated> // This code was generated by a CodeSmith Template. // // DO NOT MODIFY contents of this file. Changes to this // file will be lost if the code is regenerated. // </autogenerated> //-------------------------...
37.166667
142
0.515097
[ "Apache-2.0" ]
loresoft/PLINQO.EntityFrameworkCore
Source/Samples/Petshop.Data/Mapping/ItemMap.Generated.cs
3,347
C#
using System; using System.Web; using Orchard.Environment.Extensions.Models; using Orchard.Security; using Orchard.Settings; namespace Orchard { /// <summary> /// A work context for work context scope /// </summary> public abstract class WorkContext { /// <summary> /// Resolves a regis...
36.618182
96
0.580933
[ "BSD-3-Clause" ]
1996dylanriley/Orchard
src/Orchard/WorkContext.cs
4,030
C#
using System.IO; using Xunit; namespace DartSassBuilder.ExcludeTests { // This project is configured to run DartSassBuilder in DartSassBuilder.DirectoryTests.csproj excluding foo & bar directories public class ExcludeTests { private readonly string _fileDirectory; public ExcludeTests() { _fileDirectory = ...
26.193548
126
0.738916
[ "MIT" ]
deanwiseman/DartSassBuilder
src/DartSassBuilder.ExcludeTests/ExcludeTests.cs
812
C#
using System; using System.Globalization; using Xamarin.Forms; namespace Diabetic.Converter { public class StringToImageConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (parameter != null && parameter.Get...
29.347826
103
0.626667
[ "Apache-2.0" ]
kevinhipeau/workshop-gusto
Diabetic/Diabetic/Converter/StringToImageConverter.cs
677
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace LicenseDRIVER.Models { public class StudentViewModel:UserViewModel { public Guid StudentId { get; set; } public string Class { get; set; } public Guid TeacherId { get; set; } ...
21.6
47
0.682099
[ "Apache-2.0" ]
EmmaSleghel/LicenseDriver
LicenseDRIVER/LicenseDRIVER/Models/StudentViewModel.cs
326
C#
/* The MIT License (MIT) Copyright (c) 2007 - 2021 Microting A/S Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
44.362595
93
0.610858
[ "MIT" ]
Gid733/eform-items-group-planning-base
Microting.ItemsGroupPlanningBase.Tests/ItemUTest.cs
11,623
C#
using System.Collections.Generic; namespace Howatworks.SubEtha.Journal.Other { public class Synthesis : JournalEntryBase { public class MaterialItem { public string Name { get; set; } public int Count { get; set; } } public string Name { get; set; } ...
22.529412
57
0.592689
[ "MIT" ]
johnnysaucepn/SubEtha
src/Journal/Howatworks.SubEtha.Journal/Other/Synthesis.cs
385
C#
using AppointmentScheduling.Data.Events; using NUnit.Framework; using System; using System.Linq; using Newtonsoft.Json; using System.Data.SqlClient; namespace AppointmentScheduling.IntegrationTests.Events { [TestFixture] public class ServiceBrokerTester { private readonly string ConnectionString =...
39.485714
164
0.577569
[ "Apache-2.0" ]
abhishekgoenka/VetClinic
FrontDeskSolution/AppointmentScheduling.IntegrationTests/Events/ServiceBrokerTester.cs
6,912
C#
using System; using System.Collections.Generic; using System.Text; namespace hangman { class Program { static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Magenta; Console.WriteLine("Welcome to hangman. You get seven chances to guess the ...
32.785714
102
0.5
[ "MIT" ]
WebSamuel90/C-Game
hangman/hangman/Program.cs
2,756
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
46.990991
153
0.631902
[ "MIT" ]
Aliases/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/IEventInstancesCollectionRequest.cs
5,216
C#
using System.Collections.Generic; using System.Linq; using FluentAssertions; using Xunit; namespace OrderByNullsLast.Test { public class EnumerableExtensionsTests { [Fact] public void KeyIsNullableStruct_OrderByAscendingNullsFirst_CorrectlyOrderedListReturned() { // Arrange ...
31.741935
117
0.512873
[ "MIT" ]
parekhkb/OrderByNullsLast
test/OrderByNullsLast.Test/EnumerableExtensionsTests.cs
5,904
C#
using System; using System.Collections.Generic; using System.Linq; public static class Program { public static void Main () { IEnumerable<string> strs = new string[] { "foo", "bar", "baz", "qux" }; List<string> list = strs.ToList(); Console.WriteLine(list.Count); Console.WriteLine(...
25.923077
79
0.626113
[ "MIT" ]
RedpointGames/JSIL
Tests/SimpleTestCases/EnumerableToList.cs
337
C#
// Copyright 2007-2018 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // 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 // /...
37.535714
93
0.7098
[ "ECL-2.0", "Apache-2.0" ]
AOrlov/MassTransit
src/MassTransit.Azure.ServiceBus.Core/Transport/ReceiveSettings.cs
1,051
C#
using System.Windows; using TwitchLeecher.Setup.Gui.ViewModels; namespace TwitchLeecher.Setup.Gui.Views { /// <summary> /// Interaction logic for FilesInUseWindow.xaml /// </summary> public partial class FilesInUseWindow : Window { public FilesInUseWindow() { Initialize...
30.586207
109
0.652762
[ "MIT" ]
dstftw/TwitchLeecher
TwitchLeecher.Setup/TwitchLeecher.Setup.Gui/Views/FilesInUseWindow.xaml.cs
889
C#