content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.Collections.Generic; namespace SortList { class Program { static void Main(string[] args) { List<int> numbers = new List<int>(); while (true) { int num = int.Parse(Console.ReadLine()); i...
20.925926
59
0.447788
[ "MIT" ]
WuWeiSage/Softuni-Contest-Problems
C#/Lists/SortList/SortList/Program.cs
567
C#
using System; using System.Diagnostics; using System.Text.RegularExpressions; namespace ScriptsLib { public static partial class Tools { /// <summary>Returns true is "this" application is running, else false.</summary> public static bool IsThisApplicationAlreadyRunning() { Regex regex = new Regex(".exe"); ...
22.347826
109
0.715953
[ "Apache-2.0" ]
Milkenm/ScriptsLib
ScriptsLib/Tools/IsThisApplicationAlreadyRunning.cs
516
C#
using System; using NHapi.Base; using NHapi.Base.Parser; using NHapi.Base.Model; using NHapi.Model.V231.Datatype; using NHapi.Base.Log; namespace NHapi.Model.V231.Segment{ ///<summary> /// Represents an HL7 EQL message segment. /// This segment has the following fields:<ol> ///<li>EQL-1: Query Tag (ST)</li> ///<li>E...
31.345588
111
0.663852
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
AMCN41R/nHapi
src/NHapi.Model.V231/Segment/EQL.cs
4,263
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace VlogRoom.Web.Models.AccountViewModels { public class ExternalLoginConfirmationViewModel { [Required] [Display(Name = "Email")] public string Email...
22.8
51
0.71345
[ "MIT" ]
RosenUrkov/VlogRoom
VlogRoom/VlogRoom.Web/Models/AccountViewModels/ExternalLoginConfirmationViewModel.cs
344
C#
using System; using System.Buffers.Binary; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace Disasmo.Utils { public static class UserLogger { public static void AppendText(string text)...
21.636364
71
0.684874
[ "MIT" ]
Sergio0694/Disasmo
src/Vsix/Utils/UserLogger.cs
478
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft 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 the License at // http://ww...
46.608696
104
0.696828
[ "MIT" ]
SimonWahlin/azure-powershell
src/RecoveryServices/RecoveryServices.Backup/Properties/AssemblyInfo.cs
2,099
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. // // // This file was generated, please do not edit it directly. // // Please see MilCodeGen.html for more informat...
34.09375
157
0.52597
[ "MIT" ]
hongyuzhang1997/wpf
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Generated/EmissiveMaterial.cs
13,092
C#
// Based on https://github.com/gaochundong/PracticeUnity/blob/master/Unity/Unity/Src/Utility/Guard.cs using System; namespace ExtraDomainEvent.Helpers { /// <summary> /// A static helper class that includes various parameter checking routines. /// </summary> public static class Guard { //...
44.487179
109
0.648991
[ "MIT" ]
abbasamiri/ExtraDomainEvent
src/ExtraDomainEvent/Helpers/Guard.cs
1,737
C#
using System; namespace CenterPodouble { class Program { static void Main(string[] args) { double coordinateX1 = double.Parse(Console.ReadLine()); double coordinateY1 = double.Parse(Console.ReadLine()); double coordinateX2 = double.Parse(Console.ReadLine());...
28.552632
107
0.560369
[ "MIT" ]
valkin88/Technologies-Fundamentals
Programming Fundamentals/Program Fundamentals - Methods. Debugging and Troubleshooting Code - Exercises/CenterPoint/CenterPoint/Program.cs
1,087
C#
using ExampleMod.Content.Items.Ammo; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace ExampleMod.Content.Items.Weapons { // This is an example showing how to create a weapon that fires custom ammunition // The most important property is "Item.useAmmo". It tells you which item to use as ammo. ...
53.510638
160
0.740755
[ "MIT" ]
Yozzaxia1311/tModLoader
ExampleMod/Content/Items/Weapons/ExampleCustomAmmoGun.cs
2,517
C#
namespace UblTr.Common { [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponen...
29.227273
164
0.551655
[ "MIT" ]
enisgurkann/UblTr
Ubl-Tr/Common/CommonAggregateComponents/EventType.cs
4,501
C#
using System.Text.Json.Serialization; namespace LinqToTwitter { public record TwitterUserTargetID { [JsonPropertyName("target_user_id")] public string? TargetUserID { get; init; } } }
21.3
50
0.685446
[ "Apache-2.0" ]
JoeMayo/LinqToTwitter
src/LinqToTwitter6/LinqToTwitter/User/TwitterUserTargetID.cs
215
C#
// // AnnotationAttribute.cs // // Author: Jeffrey Stedfast <jestedfa@microsoft.com> // // Copyright (c) 2013-2021 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in t...
38.071429
150
0.689806
[ "MIT" ]
AJenbo/MailKit
MailKit/AnnotationAttribute.cs
9,596
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class CreationError : MonoBehaviour { [Header("OBJECTS")] public Button welcomeButton; public Button passwordButton; public Button allrightButton; public Text firstnameText; public Text lastnameText; pu...
27.571429
128
0.732124
[ "MIT" ]
RobsonMaciel/glassos
Scripts/User/CreationError.cs
1,932
C#
using Microsoft.Build.Framework; using Microsoft.Build.Utilities; #nullable enable namespace GltfGenerator.Tasks { public class GenerateGltf : Task { [Required] public ITaskItem[]? Inputs { get; set; } [Required] public ITaskItem? GltfSchema { get; set; } [Output] ...
23.96875
78
0.604954
[ "MIT" ]
BAEK-Computer-Graphics/DirectX12GameEngine
Gltf/GltfGenerator/Tasks/GenerateGltf.cs
769
C#
using System; using System.Reflection; // ReSharper disable CheckNamespace namespace Microsoft.Extensions.DependencyInjection { // ReSharper restore CheckNamespace /// <summary> /// This class contains extensions methods for <see cref="IServiceCollection"/>. /// </summary> public static class Ser...
41.891892
177
0.62
[ "Apache-2.0" ]
commercetools/commercetools-dotnet-core-sdk
commercetools.Sdk/commercetools.Sdk.Registration/ServiceCollectionExtensions.cs
3,102
C#
#region Copyright & License // Copyright © 2012 - 2021 François Chabot // // 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 r...
35.473684
118
0.736647
[ "Apache-2.0" ]
emmanuelbenitez/Be.Stateless.BizTalk.Factory.Batching.Application
src/Be.Stateless.BizTalk.Batching/Activity/Tracking/BatchTrackingContext.cs
1,352
C#
using FluentAssertions; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore.Metadata.Conventions; using SharedTestResources.Domain.TestAggregateRoot; using SharedTestResources.Infrastructure; using System; using Xunit; namespace Quicker.Infra...
42.699153
126
0.705468
[ "MIT" ]
HernanFAR/Quicker
Quicker.Infrastructure.EntityFramework.UnitTests/Extensions/OwnedNavigationBuilderExtensionTests.cs
10,079
C#
using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api; namespace DingTalk.Api.Response { /// <summary> /// OapiRoleAddRoleResponse. /// </summary> public class OapiRoleAddRoleResponse : DingTalkResponse { /// <summary> /// errcode /// ...
20.909091
59
0.53913
[ "MIT" ]
lee890720/YiShaAdmin
YiSha.Util/YsSha.Dingtalk/DingTalk/Response/OapiRoleAddRoleResponse.cs
690
C#
using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SmartMed.CodeChalenge { public class Program { ...
26.037037
70
0.648649
[ "Unlicense" ]
sergio23fsantos/SmartMedCodeChallenge
SmartMed.CodeChalenge/SmartMed.CodeChalenge/Program.cs
703
C#
// Generated by minBND 5.1.94.90 - © github.com/Alan-FGR using System; using System.Runtime.InteropServices; public static unsafe partial class minBND_pinvokes { [DllImport(SharpPhysX.Lib, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)] internal static extern void void_PxMat44_PxMat44Ptr_Ctor(phy...
73.016529
207
0.837465
[ "MIT" ]
Alan-FGR/SharpPhysX
SharpPhysX/Generated/PxMat44.Pinvokes.cs
8,836
C#
namespace AccountingProject.Web.Controllers { using System; using System.Threading.Tasks; using AccountingProject.Common; using AccountingProject.Services.Data; using AccountingProject.Web.ViewModels.FixedAssets; using AccountingProject.Web.ViewModels.ViewComponents; using Microsoft.AspNet...
34.095588
113
0.608367
[ "MIT" ]
StanislavaMiteva/Accounting
Web/AccountingProject.Web/Controllers/FixedAssetsController.cs
4,639
C#
using Newtonsoft.Json; using TauriApiWrapper.Converters; using TauriApiWrapper.Enums; namespace TauriApiWrapper.Objects.Responses.Arena { public sealed class ArenaTeamReportOpposingTeams : BaseApiResponse { [JsonProperty("realm"), JsonConverter(typeof(RealmNameConverter))] public Realm Realm {...
30.333333
76
0.690934
[ "Apache-2.0" ]
brues-code/TauriApiWrapper
TauriApiWrapper/Objects/Responses/Arena/ArenaTeamReportOpposingTeams.cs
730
C#
namespace MaterialCMS.Batching.Entities { public interface IHaveJobExecutionStatus { JobExecutionStatus Status { get; set; } } }
21.285714
47
0.697987
[ "MIT" ]
DucThanhNguyen/MaterialCMS
MaterialCMS/Batching/Entities/IHaveJobExecutionStatus.cs
151
C#
namespace P05_ShoppingSpree { using System; using System.Collections.Generic; public class Program { public static void Main() { var people = new List<Person>(); var products = new List<Product>(); var firstLine = Console.ReadLine().Split(';', Strin...
28.310345
98
0.455847
[ "MIT" ]
MertYumer/Tech-Module-2018
07. Objects and Classes - More Exercises/P05-ShoppingSpree/Program.cs
3,286
C#
using Photon.Pun; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace lerisa { public class bukaInfografis : MonoBehaviour { [SerializeField] private GameObject bukabingkai; [SerializeField] private GameObject bukaObjek; Text s...
25.327273
89
0.579325
[ "MIT" ]
heshost/GameLerisaUnity
Assets/Script/bukaInfografis.cs
1,395
C#
// Project: Daggerfall Tools For Unity // Copyright: Copyright (C) 2009-2020 Daggerfall Workshop // Web Site: http://www.dfworkshop.net // License: MIT License (http://www.opensource.org/licenses/mit-license.php) // Source Code: https://github.com/Interkarma/daggerfall-unity // Original...
54.696429
143
0.591185
[ "MIT" ]
communityus/CO-DF-Unity-10.23
Assets/Scripts/DaggerfallUnityStructs.cs
30,630
C#
/* * ============================================================================== * * FileName: TaskSchedulerServer.cs * Created: 2020/6/17 13:42:07 * Author: Meiam * Description:  * * ============================================================================== */ using Meiam.System.Interfaces; using Meiam.System....
31.324159
118
0.45475
[ "Apache-2.0" ]
91270/Meiam.System
Meiam.System.Tasks/TaskSchedulerServer.cs
10,874
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace SmartCarRentals.Data.Migrations { public partial class FreeParkingSlotsRename : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "FreeParkingLots"...
28.457143
71
0.541165
[ "MIT" ]
ulivegenov/SmartCarRentals
Data/SmartCarRentals.Data/Migrations/20200318224118_FreeParkingSlotsRename.cs
998
C#
namespace ModulesRegistry.Services.Extensions; public static class PaginationExtensions { public static int TotalPages<T>(this IEnumerable<T> me, int itemPerPage) => me is null ? 0 : me.Count() % itemPerPage == 0 ? me.Count() / itemPerPage : (me.Count() / itemPerPage) + 1; public static IEnumerable<T...
42.631579
115
0.68642
[ "MIT" ]
tellurianinteractive/Tellurian.Trains.ModulesRegistryApp
SourceCode/Services/Extensions/PaginationExtensions.cs
812
C#
namespace FarmersMarket.Web.Controllers { using FarmersMarket.Services.Interfaces; using Microsoft.AspNetCore.Mvc; using X.PagedList; [Route("farms")] public class FarmsController : BaseController { private readonly IFarmsService service; public FarmsController(IFarmsService s...
25.965517
86
0.612218
[ "MIT" ]
KonstantinKirchev/FarmersMarket-ASP.NET-Core
FarmersMarket/FarmersMarket.Web/Controllers/FarmsController.cs
755
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.ObjectModel; using System.ComponentModel; using Windows.UI.Xaml.Media; using kurema.FileExplorerControl.Models.IconProviders; using kurema.FileExplorerControl.Models.FileItems;...
34.928947
146
0.513976
[ "MIT" ]
Manu99it/BookViewerApp3
FileExplorerControl/ViewModels/FileItemViewModel.cs
13,275
C#
using UnityEngine; using System.Collections; using EnhancedUI; using EnhancedUI.EnhancedScroller; namespace EnhancedScrollerDemos.RefreshDemo { /// <summary> /// Set up our demo script as a delegate for the scroller by inheriting from the IEnhancedScrollerDelegate interface /// /// EnhancedScroller d...
39.516667
142
0.588359
[ "BSD-3-Clause" ]
bac0264/LuaTest
Assets/EnhancedScroller v2/Demos/07 Refreshing/Controller.cs
7,115
C#
using System; namespace FileManipulator { public interface ITaskErrorEventArgs { Exception Exception { get; } } }
15
40
0.666667
[ "MIT" ]
mateuszokroj1/FileManipulator
Sources/Core/Events/ITaskErrorEventArgs.cs
137
C#
using System; using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Linq; using System.Numerics; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using Merkator.Tools; namespace Merkator.BitCoin { // Implements https://en.bitcoin.it/wiki/Base58Check_en...
31.924812
128
0.694536
[ "MIT" ]
CEO-NextMindCoin/unity-solana-wallet
Runtime/codebase/utility/Base58Encoding.cs
4,248
C#
using System; using R5T.T0039.T002; namespace R5T.T0086 { /// <summary> /// Base for extensions ... /// </summary> [ExtensionMethodBaseMarker] public interface ILogger { } }
13.6
31
0.602941
[ "MIT" ]
SafetyCone/R5T.T0086
source/R5T.T0086/Code/Bases/Interfaces/ILogger.cs
204
C#
using ReactNative; using System; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.UI.Core; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace VideoPlayer { /// <summary> /// Provides application-specific behavior to supplem...
36.141593
99
0.605534
[ "MIT" ]
24i/react-native-video
examples/basic/windows/VideoPlayer/App.xaml.cs
4,084
C#
#if ALE_STRIP_UGUI #define OBSOLETE #endif #if OBSOLETE && !UNITY_EDITOR #define STRIP #endif #if !STRIP using System; using TMPro; using UnityEngine; using UnityEngine.Events; namespace Hertzole.ALE { #if UNITY_EDITOR [DisallowMultipleComponent] #if !OBSOLETE [AddComponentMenu("ALE/UI/uGUI/Fields/Number Fi...
41.068465
183
0.548573
[ "MIT" ]
Hertzole/advanced-level-editor
Packages/se.hertzole.ale/Runtime/UI/Inspector/Fields/LevelEditorNumberField.cs
19,797
C#
using Gtk; namespace FloydPink.Flickr.Downloadr.UI.Helpers { public class MessageBox { public static ResponseType Show(Window window, string message, ButtonsType buttons, MessageType type) { var md = new MessageDialog(window, DialogFlags.DestroyWithParent, type, buttons, false, message); var r...
25.375
105
0.694581
[ "MIT" ]
Dr4co/flickr-downloadr-gtk
source/FloydPink.Flickr.Downloadr.UI/Helpers/MessageBox.cs
408
C#
using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Mvc.Rendering; namespace SexyColor.CommonComponents { public interface ICaptchaManager { /// <summary> /// 产生验证码 /// </summary> /// <param name="htmlHelper"></param> /// ...
29.692308
98
0.61658
[ "Apache-2.0" ]
lxkbest/SexyColor.Net
SexyColor.CommonComponents/Mvc/Utlity/Captcha/ICaptchaManager.cs
812
C#
/* * Farseer Physics Engine: * Copyright (c) 2012 Ian Qvist * * Original source Box2D: * Copyright (c) 2006-2011 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of ...
38.369231
139
0.785084
[ "MIT" ]
AlmostBearded/monogame-platformer
Platformer/Nez/Nez.FarseerPhysics/Farseer/Dynamics/WorldCallbacks.cs
2,496
C#
/* * Copyright (C) Alibaba Cloud Computing * All rights reserved. * * 版权所有 (C)阿里云计算有限公司 */ using System; using System.Collections.Generic; using Aliyun.OpenServices.Properties; using Aliyun.OpenServices.OpenStorageService.Utilities; using Aliyun.OpenServices.Domain; namespace Aliyun.OpenServices....
32.425926
109
0.567105
[ "Apache-2.0" ]
chenxihoho/FirstFrame
007.FileIO/aliyun_dotnet_sdk_20150115/FileIO_ALIYUN/src/Domain/MultipartUploadListing.cs
3,870
C#
using System.Threading.Tasks; namespace OrchardCore.DisplayManagement.Liquid { public class LiquidPage : Razor.RazorPage<dynamic> { public override Task ExecuteAsync() => LiquidViewTemplate.RenderAsync(this); } }
23.4
84
0.739316
[ "BSD-3-Clause" ]
1051324354/OrchardCore
src/OrchardCore/OrchardCore.DisplayManagement.Liquid/LiquidPage.cs
234
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; namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.SignatureHelp { internal par...
28.882353
89
0.718941
[ "Apache-2.0" ]
HenrikWM/roslyn
src/EditorFeatures/Core/Implementation/IntelliSense/SignatureHelp/Controller_OnTextViewBufferPostChanged.cs
493
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 TerraExplorerX; using System.Xml.Linq; using System.IO; namespace skyline { public partial cla...
33.738739
253
0.51215
[ "Apache-2.0" ]
xiangjg/vsskyline
skyline/Form1.cs
7,552
C#
namespace LinqPadless { using System; // Credit Stuart Lang and source: // https://stu.dev/defer-with-csharp8/ static class DeferDisposable { public static DeferDisposable<T> Defer<T>(T arg, Action<T> action) => new DeferDisposable<T>(arg, action); } readonly struct De...
24.416667
77
0.607509
[ "Apache-2.0" ]
atifaziz/LinqPadless
src/DeferDisposable.cs
586
C#
using $ext_safeprojectname$.Common; using $ext_safeprojectname$.Dependencies; using $safeprojectname$.Services; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Micr...
30.390625
109
0.615424
[ "Unlicense", "MIT" ]
cedric-gruber/CQRS-Template
src/WebApp/Startup.cs
1,945
C#
//----------------------------------------------------------------------------- // Copyright : (c) Chris Moore, 2020 // License : MIT //----------------------------------------------------------------------------- namespace Z0 { using System; using System.Runtime.CompilerServices; using static Root...
27.285714
79
0.483919
[ "BSD-3-Clause" ]
0xCM/z0
src/core/src/numeric/RationalT.cs
1,337
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading.Tasks; using Windows.Storage; using Windows.UI.Xaml.Controls; names...
34.955479
114
0.601156
[ "MIT" ]
OrangeLV/HoloLensCompanionKit
HoloLensCommander/HoloLensCommander/Controls/DeviceMonitorControl.xaml.cs
10,209
C#
using System; #if !NETFX_CORE namespace HelixToolkit.Wpf.SharpDX #else #if CORE namespace HelixToolkit.SharpDX.Core #else namespace HelixToolkit.UWP #endif #endif { using System.IO; using Utilities; using Model; public interface ITextureResourceManager : IDisposable { int Count { ...
28.621622
109
0.641171
[ "MIT" ]
JeremyAnsel/helix-toolkit
Source/HelixToolkit.SharpDX.Shared/Interface/ITextureResourceManager.cs
1,061
C#
using System; using System.Collections.Generic; namespace DataRepository.Models.ELD.Prod { public partial class BrokerMaster { public BrokerMaster() { AcctTrans = new HashSet<AcctTrans>(); ArTrans = new HashSet<ArTrans>(); BrokerContact = new Hash...
41.474576
70
0.59338
[ "MIT" ]
nsiddiqui25/newAngProj
DataRepository-AffiliateInfo/Models/ELD/Prod/BrokerMaster.cs
2,449
C#
using System; using System.Collections.Generic; using GraphQL.Types; using Newtonsoft.Json.Linq; namespace GraphQL.Dynamic.Tests.Schemas { public class DynamicSampleRemoteSchema : Schema { public static string GithubMoniker = "github"; public DynamicSampleRemoteSchema(IEnumerable<Type> remoteT...
32.173077
106
0.380753
[ "MIT" ]
elauffenburger/graphql-dotnet
src/GraphQL.Dynamic.Tests/Schemas/DynamicSampleRemoteSchema.cs
1,673
C#
using System; using System.Linq; using UnityEngine; using Vexe.Editor.Helpers; using Vexe.Editor.Windows; using Vexe.Editor.Types; using Vexe.Runtime.Extensions; using Vexe.Runtime.Types; using UnityObject = UnityEngine.Object; namespace Vexe.Editor.Drawers { public class SelectObjDrawer : AttributeDrawer<UnityObjec...
30.381818
94
0.661879
[ "MIT" ]
DanielPotter/VFW
Assets/VFW Deprecated/Editor/Drawers/SelectObjDrawer.cs
1,673
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("Sh...
38.189189
84
0.745223
[ "MIT" ]
Polyhaze/SharpDB
src/SharpDB.Engine.Specs/Properties/AssemblyInfo.cs
1,416
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; namespace Microsoft.Dnx.Runtime.Common.CommandLine { internal class Com...
26.566667
112
0.574655
[ "MIT" ]
sourcegraph/srclib-csharp
3rdparty/Microsoft.Framework.CommandLineUtils.Sources/1.0.0-rc1-15779/shared/CommandArgument.cs
797
C#
using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.Immutable; using System.Text.RegularExpressions; using Microsoft.Recognizers.Definitions.English; namespace Microsoft.Recognizers.Text.Number.English { public class OrdinalExtractor : BaseNumberExtractor ...
40.054545
106
0.615978
[ "MIT" ]
ParadoxARG/Recognizers-Text
.NET/Microsoft.Recognizers.Text.Number/English/Extractors/OrdinalExtractor.cs
2,205
C#
using System; using System.Collections.Generic; using System.Linq; using KitchenPC.DB.Models; using KitchenPC.Ingredients; using KitchenPC.NLP; using NHibernate.Criterion; namespace KitchenPC.DB { public class IngredientLoader : ISynonymLoader<IngredientNode> { readonly DatabaseAdapter adapter;...
38.813725
187
0.558727
[ "MIT" ]
KitchenPC/core
src/DB/NLP/IngredientLoader.cs
3,959
C#
/* Copyright 2010-present MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
38.349462
168
0.580822
[ "MIT" ]
AlianBlank/DCET
Unity/Packages/MongoDB/Runtime/MongoDB.Bson/Serialization/Serializers/DictionarySerializerBase.cs
28,534
C#
using MiCake.Core.Util.Collections; using System; using System.Collections.Generic; using System.Linq; using Xunit; namespace MiCake.Core.Tests.Util { public class ListExtension_Tests { public ListExtension_Tests() { } [Fact] public void ListExchangeOrderUsePredicate_...
24.354167
77
0.540633
[ "MIT" ]
wrsxinlang/MiCake
src/tests/MiCake.Core.Util.Tests/ListExtension_Tests.cs
1,171
C#
using BookingsApi.Contract.Requests.Enums; namespace BookingsApi.Contract.Requests { public class UpdateBookingStatusRequest { /// <summary> /// The user requesting to update the status /// </summary> public string UpdatedBy { get; set; } /// <summary> /// ...
23.48
55
0.575809
[ "MIT" ]
hmcts/vh-bookings-api
BookingsApi/BookingsApi.Contract/Requests/UpdateBookingStatusRequest.cs
589
C#
using System; using System.Collections.Generic; using System.Text; namespace OxfordDictionariesAPI.Models { public class Metadata { public string Provider { get; set; } } public class GrammaticalFeature { public string Text { get; set; } public string Type { get; set; } ...
26.686747
69
0.575621
[ "MIT" ]
witoong623/OxfordDictionariesAPI
OxfordDictionariesAPI/Models/Models.cs
2,217
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace SimpleToDo.Data.Migrations { public partial class CreateIdentitySchema : Migration { protected overri...
42.018182
122
0.501731
[ "MIT" ]
RipplerEs/SimpleToDo
src/SimpleToDo/Data/Migrations/00000000000000_CreateIdentitySchema.cs
9,246
C#
using System; using lm.Comol.Core.DomainModel; using lm.Comol.Core.Authentication; namespace lm.Comol.Core.BaseModules.AuthenticationManagement.Presentation { public interface IViewUserLogout : IViewBaseAuthenticationPages { lm.Comol.Core.DomainModel.Helpers.dtoLoginCookie UserAccessInfo { get; } ...
42.176471
104
0.758717
[ "MIT" ]
EdutechSRL/Adevico
3-Business/3-Modules/lm.Comol.Core.BaseModules/AuthenticationManagement/Presentation/Access/View/IViewUserLogout.cs
719
C#
// Copyright (c) Xenko contributors (https://xenko.com) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. using Xenko.Core.Assets; using Xenko.Core.Assets.Compiler; using Xenko.Animations; using Xenko.Assets...
41.842105
145
0.76478
[ "MIT" ]
Aminator/xenko
sources/editor/Xenko.Editor/Preview/AnimationAssetEditorGameCompiler.cs
795
C#
using Easy_Password_Validator.Interfaces; using Easy_Password_Validator.Models; using Easy_Password_Validator.Properties; using System; using System.Collections.Generic; using System.Linq; namespace Easy_Password_Validator.Tests { /// <summary> /// Checks to see whether a password meets the maximu...
31.728571
107
0.592076
[ "MIT" ]
thirstyape/Easy-Password-Validator
Tests/TestPattern.cs
2,223
C#
using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; namespace Lykke.Job.SlackNotifications.Services { internal sealed class HttpRequestClient { private static readonly HttpClient _instance = new HttpClient(); // Explicit static constructor to...
32.266667
112
0.676653
[ "MIT" ]
LykkeCity/Lykke.Job.SlackNotifications
src/Lykke.Job.SlackNotifications.Services/HttpRequestClient.cs
970
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; using StackExchange.Exceptional; using StackExchange.Profiling; using StackExchange.Opserver.Helper...
35.154412
128
0.585861
[ "MIT" ]
SeanKilleen/Opserver
Opserver/Global.asax.cs
4,783
C#
using System; using System.IO; using Xunit; using Prism.Modularity; namespace Prism.Wpf.Tests.Modularity { public class AssemblyResolverFixture : IDisposable { private const string ModulesDirectory1 = @".\DynamicModules\MocksModulesAssemblyResolve"; public AssemblyResolverFixture() ...
33.362963
167
0.511545
[ "MIT" ]
Algorithman/Prism
tests/Wpf/Prism.Wpf.Tests/Modularity/AssemblyResolverFixture.Desktop.cs
4,504
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.EntityFrameworkCore; using wize.content.data; using wize.content.data.v1.Models; using wize.content.data.v1.Interfaces; using wize.common.use.paging....
30.571429
107
0.778037
[ "MIT" ]
brandonkorous/wize.content
src/wize.content.data/V1/Repositories/FileRepository.cs
858
C#
// This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. Project-level // suppressions either have no target or are given a specific target // and scoped to a namespace, type, member, etc. // // To add a suppression to this file, right-click the message in t...
107.736842
262
0.791891
[ "ECL-2.0", "Apache-2.0" ]
Barsonax/NuGet2
src/DialogServices/GlobalSuppressions.cs
2,047
C#
namespace XlsxStream { public class WorksheetSettings { public int DefaultRowHeight { get; set; } public static WorksheetSettings Default { get { return new WorksheetSettings { DefaultRowHeight = 15 ...
21.058824
49
0.449721
[ "Apache-2.0" ]
stewart-r/XlsxStream
XlsxStream/WorksheetSettings.cs
360
C#
using System; using Xunit; using Cronos; namespace CronosTests { public class DateRangeTests { [Fact] public void Constructor_01() { var now = DateTime.Now; var sp = new DateRange(now, now.AddHours(1)); Assert.Equal(now, sp.Start); Assert...
31.257194
99
0.503999
[ "MIT" ]
polterguy/cronos
CronosTests/DateRangeTests.cs
17,379
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.Toolkit.Uwp.UI.Lottie.Animatables; namespace Microsoft.Toolkit.Uwp.UI.Lottie.LottieData { /// <...
30.137931
91
0.590389
[ "MIT" ]
CommunityToolkit/Lottie-Windows
source/LottieData/Repeater.cs
1,748
C#
using UnityEngine; using System.Collections; public class GrappleGuideParent : MonoBehaviour { // Use this for initialization void Start() { } // Update is called once per frame void Update() { transform.LookAt(transform.position + transform.parent.rigidbody.velocity); } }
14.75
77
0.722034
[ "BSD-2-Clause" ]
Pillowdrift/StellarSwingClassic
Assets/Scripts/GrappleGuideParent.cs
295
C#
namespace Sandbox { using System; using System.Diagnostics; using System.IO; using System.Threading.Tasks; using CommandLine; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Lo...
41.65
125
0.666267
[ "MIT" ]
RadostinaPetrova/SoManyBooksSoLittleTime
Tests/Sandbox/Program.cs
3,334
C#
// // Copyright (c) Microsoft and contributors. 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 requi...
36
136
0.677579
[ "Apache-2.0" ]
CerebralMischief/azure-sdk-for-net
src/ServiceManagement/Network/NetworkManagement/Generated/IStaticIPOperations.cs
2,016
C#
#region BSD License /* * * Original BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) * © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. * * New BSD 3-Clause License (https://github.com/Krypton-Suite/Standard-Toolkit/blob/master/LICENSE) * Modifications by ...
91.60941
3,503
0.707874
[ "BSD-3-Clause" ]
Krypton-Suite/Standard-Toolkit
Source/Krypton Components/Krypton.Toolkit/Palette Builtin/Office 2010/PaletteOffice2010BlueLightMode.cs
451,729
C#
namespace Business.Resources.Information { public sealed class HostResource { #region Property public string OriginalImagePath { get; set; } public string ThumbnailImagePath { get; set; } #endregion } }
22.545455
54
0.645161
[ "MIT" ]
dong-nguyen-hd/HR-Management
BE/Business/Resources/Information/HostResource.cs
250
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.Seria...
28.991525
104
0.716165
[ "MIT" ]
Kiho/mongo-edi
ICSharpCode.AvalonEdit/Highlighting/HighlightingBrush.cs
3,423
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace _03.Regexmon { class Program { static void Main(string[] args) { string text = Console.ReadLine(); Regex r...
24.291667
78
0.564322
[ "MIT" ]
bobo4aces/02.SoftUni-TechModule
01. PF - 99. Exams/2017.07.09/03. Regexmon/03. Regexmon.cs
585
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; using Core.MusicInfo; namespace Core.Data { public class SampleData : DropCreateDatabaseAlways<MusicStoreEntities> { protected override void Seed(MusicStoreEntities context) { ...
177.109091
445
0.603942
[ "MIT" ]
Geolle/GGMusicStore
Core/Data/SampleData.cs
26,890
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Http; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using Converter.Core; using Converter.Core.Helpers; using Converter.Core.Models; using Newtonsoft.Json.Linq; namespace Conve...
40.261745
239
0.497416
[ "MIT" ]
Chainers/Ditch
Tools/CppToCsharpConverter/Converter.BitShares/Converters/BaseConverter.cs
29,997
C#
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; using MudBlazor.Extensions; using MudBlazor.Utilities; namespace MudBlazor { public partial class MudField : MudComponentBase { protected string Classname => new CssBuilder("mud-input") .AddCl...
38.878049
129
0.564826
[ "MIT" ]
whoAmI-cslim/MudBlazor
src/MudBlazor/Components/Field/MudField.razor.cs
4,784
C#
using DataAccess.Internal; using Shared.Models; namespace DataAccess.Implementations; public interface IEmployerRepository : IGenericRepository<EmployerModel, Guid> { Task<EmployerBalanace> GetEmployerBalanceBeforeAsync(Guid employerId, DateTime beforeDate); }
26.8
95
0.835821
[ "MIT" ]
musictopia2/Work-Tracker
WorkTracker/Backend/DataAccess/Implementations/IEmployerRepository.cs
270
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.CodeAnalysis.Options; using Microsoft.VisualStudio.LanguageServices.Remote; namespace Microsoft.Co...
40.842105
105
0.761598
[ "MIT" ]
Jay-Madden/roslyn
src/VisualStudio/Core/Def/ExternalAccess/UnitTesting/Api/UnitTestingRemoteHostOptionsAccessor.cs
778
C#
using SkuVaultApiWrapper.Models.SharedModels; using System.Collections.Generic; namespace SkuVaultApiWrapper.Models.GetWarehouses { public class GetWarehousesResponse : BaseResponseModel { public List<Warehouse> Warehouses { get; set; } } }
22.545455
55
0.806452
[ "MIT" ]
ntoates/SkuVaultApiWrapper
SkuVaultApiWrapper/Models/GetWarehouses/GetWarehousesResponse.cs
250
C#
using System; using Promitor.Core.Scraping.Configuration.Serialization; using Xunit; using YamlDotNet.RepresentationModel; namespace Promitor.Scraper.Tests.Unit.Serialization.v1 { public static class YamlAssert { /// <summary> /// Deserializes the yaml using the deserializer, and asserts that ...
44.482993
144
0.623949
[ "MIT" ]
burningalchemist/promitor
src/Promitor.Scraper.Tests.Unit/Serialization/v1/YamlAssert.cs
6,541
C#
using Extensions.Triggers; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Description; using Microsoft.Azure.WebJobs.Host.Bindings; using Microsoft.Azure.WebJobs.Host.Config; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using System; us...
43.578947
150
0.73752
[ "MIT" ]
PacktPublishing/Mastering-Azure-Serverless-Computing
Chapter02/Extensions/Bindings/TwitterBindingConfigProvider.cs
2,486
C#
////////////////////////////////////////////////////////////////////// // // // jcspDemos Demonstrations of the JCSP ("CSP for Java") Library // // Copyright (C) 1996-2018 Peter Welch, Paul Austin and Neil Brown // // 2001-2004 Quicksto...
41.830769
100
0.429937
[ "MIT" ]
PasierbKarol/CSPdocs-Examples
Alternative Example/AltingBarrierGadget0Demo0.cs
2,719
C#
/* * Copyright 2015 Google 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...
34.170455
94
0.670768
[ "Apache-2.0" ]
googleads/googleads-dfa-reporting-samples
dotnet/v3.4/Reports/DownloadFile.cs
3,009
C#
using ShopApp.Models; using System.Collections.Generic; namespace ShopApp.Dal.Services.User.Contracts { public interface IUserService { ShopUser GetUserByName(string username); ShopUser GetUserById(string id); IEnumerable<ShopUser> GetAll(); } }
20.357143
48
0.705263
[ "MIT" ]
GMihalkow/Csharp-ASP-Web-Apps
ShopApp2.0/ShopApp.Dal/Services/User/Contracts/IUserService.cs
287
C#
namespace PathApi.Server.GrpcApi.V1 { using Google.Protobuf.WellKnownTypes; using Google.Type; using Grpc.Core; using PathApi.Server.PathServices; using PathApi.Server.PathServices.Models; using PathApi.V1; using System; using System.Collections.Generic; using System.Linq; using ...
37.265487
127
0.593683
[ "MIT" ]
kerrickstaley/path-data
server/GrpcApi/V1/RoutesApi.cs
4,211
C#
// Copyright (c) Huy Hoang. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using System; using System.IO.Abstractions.TestingHelpers; using Dash.Application; using Dash.Extensions; using FluentAssertions; using Xunit; namespace Dash.Te...
29.461538
136
0.561031
[ "Apache-2.0" ]
dotnet-dash/dash
src/Dash/test/Dash.Tests/Extensions/FileSystemTests.cs
3,066
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...
27.103448
81
0.661578
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Synapse/V20201201/Inputs/EncryptionDetailsArgs.cs
786
C#
using J2N.Threading; using Lucene.Net.Documents; using Lucene.Net.Index.Extensions; using NUnit.Framework; using System; using System.Threading; using Assert = Lucene.Net.TestFramework.Assert; using Console = Lucene.Net.Util.SystemConsole; namespace Lucene.Net.Index { /* * Licensed to the Apache Software Fou...
39.102703
222
0.557368
[ "Apache-2.0" ]
10088/lucenenet
src/Lucene.Net.Tests/Index/TestThreadedForceMerge.cs
7,236
C#
using Foundation; using MvvmCross.Core.ViewModels; using MvvmCross.iOS.Platform; using MvvmCross.Platform; using UIKit; namespace BLE.Client.iOS { [Register("AppDelegate")] public partial class AppDelegate : MvxApplicationDelegate { UIWindow _window; public override bool FinishedLaunching...
24.96875
107
0.649562
[ "MIT" ]
trevorcmit/RFID_BT_app
CS108 Demo/BLE.Client.iOS/AppDelegate.cs
801
C#
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Reflection; using LExpression = System.Linq.Expressions.Expression; namespace Pidgin { public static partial class Parser<TToken> { /// <summary> /// Creates a parser that parses ...
36.301887
144
0.533472
[ "MIT" ]
LukeWoodward/Pidgin
Pidgin/Parser.Sequence.cs
9,620
C#
// Copyright (c) Petabridge <https://petabridge.com/>. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Linq; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Attributes.Jobs; using NBench.Sdk; using NBench.Util; usin...
30.423729
119
0.65961
[ "Apache-2.0" ]
NicolaAtorino/NBench
benchmarks/NBench.Microbenchmarks/SDK/Sdk_ReflectionBenchmarkInvokerWithRealWork.cs
1,797
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace Crikkit__Minecraft_Server_CP_ { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] ...
23.086957
65
0.627119
[ "Apache-2.0" ]
WiseHollow/Crikkit-Minecraft-Server-CP-
Crikkit (Minecraft Server CP)/Program.cs
533
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Linq; using System.Management.Automation; namespace Microsoft.PowerShell.Commands { /// <summary> /// A cmdlet that gets the TraceSource instances that are instantiated in the process. /// </summary> [Cmdlet(VerbsC...
27.754098
105
0.554637
[ "MIT" ]
10088/PowerShell
src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/GetTracerCommand.cs
1,693
C#