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; using System.Text; using System.Threading; namespace HarmonyCore.CliTool.Commands { class RegenCommand { SolutionInfo _solutionInfo; public RegenCommand(SolutionInfo solutionInfo) { _solutionInfo = solutionInfo; } ...
25.137931
188
0.610425
[ "BSD-2-Clause" ]
danellis06460/HarmonyCore
HarmonyCore.CliTool/Commands/RegenCommand.cs
731
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...
32.86262
200
0.5367
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/AppStream/Generated/Model/Fleet.cs
20,572
C#
using System; using System.ComponentModel.DataAnnotations; namespace PerPush.Api.Entities { public class Paper { [Required] public Guid Id { get; set; } [Required] public Guid UserId { get; set; } [Required] [StringLength(512, MinimumLength = 1)] publi...
23.829268
75
0.516888
[ "MIT" ]
Erosionying/PerPush.Api
PerPush.Api/Entities/Paper.cs
1,005
C#
using System; // HACKER RANK > FAILED CASE 4 & 5 // ------------------------------- // ReSharper disable once CheckNamespace // ReSharper disable once ArrangeTypeModifiers class LargestPrimeFactor2 { public static void LargestPrimeFactor2Main(string[] args) { var t = Convert.ToInt32(Console.ReadLine()); f...
21.709402
95
0.564173
[ "MIT" ]
gabrielizalo/HackerRank
Contests/ProjectEuler+/003 Largest Prime Factor 2.cs
2,540
C#
// Copyright 2017 Esri // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in w...
31.944444
135
0.604348
[ "Apache-2.0" ]
yong7743/arcgis-pro-sdk-community-samples
Framework/Styling-with-ArcGIS-Pro/ControlStyles/RadioButtonStyleViewModel.cs
2,302
C#
namespace Owin.Scim.Tests.Querying.Filtering.Normalization { using Machine.Specifications; using Scim.Querying; public class with_terminal_attribute_and_grouped_filter : when_normalizing_a_path_filter { Establish context = () => PathFilter = "[displayName eq \"Daniel\"]"; It should_c...
35.3125
111
0.702655
[ "MIT" ]
Mysonemo/Owin.Scim
source/_tests/Owin.Scim.Tests/Querying/Filtering/Normalization/with_terminal_attribute_and_grouped_filter.cs
567
C#
namespace Alex.Blocks.Minecraft { public class Pumpkin : Block { public Pumpkin() : base() { Solid = true; Transparent = false; } } }
12.416667
31
0.624161
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
codingwatching/Alex
src/Alex/Blocks/Minecraft/Pumpkin.cs
149
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Stormancer.Core.DependencyResolver { public class DefaultConstructorRegistrationBuilder<T> : DefaultRegistrationBuilderBase where T : class { public override Type SelfType => t...
24.142857
106
0.766272
[ "MIT" ]
Stormancer/Stormancer
src/Common/Stormancer.Core/DependencyResolver/DefaultConstructorRegistrationBuilder.cs
340
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ReserveLevel.cs" company="Martin Amareld"> // Copyright(c) 2017 Martin Amareld. All rights reserved. // </copyright> // ----------------------------------------------------...
32.555556
121
0.332765
[ "MIT" ]
ambedatpro/ednetapi
EdNetApi/Journal/Enums/ReserveLevel.cs
588
C#
// <copyright file="MathCalculatorController.cs" company="PlaceholderCompany"> // Copyright (c) PlaceholderCompany. All rights reserved. // </copyright> namespace SimpleCalculator.Controllers { using System.Web.Http.Cors; using Microsoft.AspNetCore.Mvc; using SimpleArithmeticCalculator; using SimpleAr...
36.888889
111
0.652108
[ "MIT" ]
ahamed1997/SimpleCalculator
SimpleCalculator/SimpleCalculator/Controllers/MathCalculatorController.cs
1,330
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Jdenticon extensions for WPF .NET 4.5")]
28.5
66
0.812865
[ "MIT" ]
dmester/jdenticon-net
Targets/Jdenticon.Wpf.Net45/Properties/AssemblyInfo.cs
173
C#
using System.Diagnostics; using LottieUWP.Animation.Content; using LottieUWP.Model.Layer; namespace LottieUWP.Model.Content { public class MergePaths : IContentModel { public enum MergePathsMode { Merge = 1, Add = 2, Subtract = 3, Intersect = 4, ...
25.466667
104
0.557592
[ "Apache-2.0" ]
TanayParikh/LottieUWP
LottieUWP/Model/Content/MergePaths.cs
1,148
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Measure.LabCommon.Models; using System.Collections; namespace Measure.LabDataAccess { public class CustomerOrderInstrumentDaoImpl { /// <summary> /// 增加一条数据. /// </summary> public void ...
31.185714
147
0.641319
[ "MIT" ]
aliostad/deep-learning-lang-detection
data/test/csharp/49ace354eb3d49e2f31e29ca33e5944a1e5abc5dCustomerOrderInstrumentDaoImpl.cs
2,249
C#
using System.Web; using System.Web.Mvc; namespace Developerbackpack.Webapi { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
19.785714
80
0.66787
[ "MIT" ]
developerbackpack/webapi-tutorials
src/Developerbackpack.Webapi/App_Start/FilterConfig.cs
279
C#
using Rationals; using System.Collections; using System.Collections.Generic; using System.Text; using System; namespace Algebra { namespace Atoms { internal class Arctan : AtomicMonad { new public static Expression ArctanOf(Expression argument) { return...
26.873239
89
0.520964
[ "MIT" ]
Joeoc2001/AlgebraSystem
AlgebraSystem/Atoms/Arctan.cs
1,910
C#
// class Abc { public string DefGhi(float jkl, bool mno) { //
10
45
0.585714
[ "MIT" ]
HighSchoolHacking/GLS-Draft
test/integration/MemberFunctionDeclareStart/public two parameters.cs
70
C#
// submitted by Julian Schacher (jspp), thanks to gustorn for the help using System; using System.Collections.Generic; using System.Linq; namespace HuffmanCoding { public class EncodingResult { public string BitString { get; set; } public Dictionary<char, string> Dictionary { get; set; } ...
37.25
208
0.545861
[ "MIT" ]
chrisb2244/algorithm-archive
chapters/data_compression/huffman/code/cs/HuffmanCoding.cs
6,258
C#
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; namespace TypeLitePlus { public static class TsFiles { public static Regex regex = new Regex("declare module (\\S+) {(.*?})\r\n}", RegexOptions.Singleline | RegexOptions.CultureI...
36.410256
141
0.530751
[ "MIT" ]
CloudNimble/TypeLitePlus
TypeLitePlus.Core/TsFiles.cs
4,262
C#
namespace Machete.X12Schema.V5010.Maps { using X12; using X12.Configuration; public class LoopNM1_2_820Map : X12LayoutMap<LoopNM1_2_820, X12Entity> { public LoopNM1_2_820Map() { Id = "Loop_NM1_2_820"; Name = "Loop NM1"; Segment(x...
25.409091
60
0.538462
[ "Apache-2.0" ]
ahives/Machete
src/Machete.X12Schema/V5010/Layouts/Maps/LoopNM1_2_820Map.cs
559
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using EventStore; using Proximo.Cqrs.Core.Support; using Proximo.Cqrs.Server.Eventing; using Sample.QueryModel.Builder; namespace Sample.QueryModel.Rebuilder { /// <summary> /// holds on some informat...
33.471014
128
0.733059
[ "BSD-3-Clause" ]
andreabalducci/Prxm.Cqrs
Sample.QueryModel.Rebuilder/DenormalizerRebuilder.cs
4,621
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using Microsoft.CodeAnalysis.CSharp.Emit; using Microsoft.CodeAnalysis.CSharp.Syntax; using Micr...
42.531447
205
0.578521
[ "MIT" ]
BillWagner/roslyn
src/Compilers/CSharp/Portable/Symbols/Source/SourceMemberFieldSymbol.cs
27,052
C#
// Decompiled with JetBrains decompiler // Type: Game.Logic.Effects.GuardEffect // Assembly: Game.Logic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null // MVID: E8B04D54-7E5B-47C4-9280-AF82495F6281 // Assembly location: C:\Users\Pham Van Hungg\Desktop\Decompiler\Road\Game.Logic.dll using Game.Logic.Phy.Object;...
26.72549
95
0.687454
[ "MIT" ]
HuyTruong19x/DDTank4.1
Source Server/Game.Logic/Effects/GuardEffect.cs
1,365
C#
using Group3r.Options.AssessmentOptions; using Sddl.Parser; using System; using System.Collections.Generic; namespace Group3r.Assessment { public class SddlAnalyser { private AssessmentOptions AssessmentOptions { get; set; } public SddlAnalyser(AssessmentOptions assessmentOptions) { ...
38.609756
237
0.415793
[ "MIT" ]
topotam/Group3r
Group3r/Assessment/SddlAnalyser.cs
7,917
C#
using System; namespace Parquet.Data { /// <summary> /// Element of dataset's schema /// </summary> public abstract class Field { /// <summary> /// Type of schema in this field /// </summary> public SchemaType SchemaType { get; } /// <summary> /// Column name ...
25.709091
140
0.582744
[ "MIT" ]
dominiqueplante/parquet-dotnet
src/Parquet/Data/Schema/Field.cs
1,416
C#
using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System; namespace DFC.App.Account.Services.DSS.Models { class UpdateLastLoginRequest { public DateTime LastLoggedInDateTime { get; set; } [JsonProperty("id_token")] public string Token { get; set; } } }
22
58
0.685065
[ "MIT" ]
SkillsFundingAgency/dfc-app-account
DFC.App.Account.Services.DSS/Models/UpdateLastLoginRequest.cs
310
C#
using System; using System.Management.Automation; using System.Management.Automation.Language; namespace ClosureRewriter.Commands { [Cmdlet(VerbsCommon.New, "Closure")] [OutputType(typeof(ScriptBlock))] public class NewClosureCommand : PSCmdlet { [Parameter(Mandatory = true, Position = 0)] ...
32.796296
108
0.560136
[ "MIT" ]
SeeminglyScience/PSSyntaxRewriter
examples/ClosureRewriter/Commands/NewClosureCommand.cs
1,771
C#
using System; using Xamarin.Forms; using Xamarin.Forms.Xaml; [assembly: XamlCompilation (XamlCompilationOptions.Compile)] namespace bm_hw_xam_forms { public partial class App : Application { public App () { InitializeComponent(); MainPage = new MainPage(); } protected override void OnStart () { ...
15.818182
60
0.687739
[ "Apache-2.0" ]
colinsteffen/ba-xamarin-android
bm_hw_xam_forms/bm_hw_xam_forms/bm_hw_xam_forms/App.xaml.cs
522
C#
using System.Threading; using System.Threading.Tasks; namespace AwaitAndGetResult { public static class TaskExtensions { public static T AwaitAndGetResult<T>(this Task<T> task) => AwaitAndGetResult(task, new TaskFactory()); public static T AwaitAndGetResult<T>(this Task<T> task, TaskFactory ...
27.6
110
0.599638
[ "MIT" ]
piccaso/nuggets
AwaitAndGetResult/AwaitAndGetResult.cs
554
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...
33.063091
172
0.567503
[ "Apache-2.0" ]
TallyUpTeam/aws-sdk-net
sdk/src/Services/SimpleSystemsManagement/Generated/Model/MaintenanceWindowTask.cs
10,481
C#
// Copyright 2019 Esri. // // 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 writing, software...
39.07377
166
0.576673
[ "Apache-2.0" ]
kGhime/arcgis-runtime-samples-dotnet
src/Forms/Shared/SamplePage.xaml.cs
4,769
C#
using FreeSql.Internal.Model; using System; using System.Collections.Generic; using System.Data.Common; using System.Linq.Expressions; using System.Threading.Tasks; namespace FreeSql { public interface IUpdate<T1> where T1 : class { /// <summary> /// 指定事务对象 /// </summary> /// ...
39.248
140
0.541887
[ "MIT" ]
5118234/FreeSql
FreeSql/Interface/Curd/IUpdate.cs
11,470
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace p356___Upcast_an_entire_list { enum KindOfDuck { Mallard, Muscovy, Decoy, } }
15.066667
39
0.619469
[ "MIT" ]
head-first-csharp/second-edition
Chapter 8/p356 - Upcast an entire list/p356 - Upcast an entire list/KindOfDuck.cs
228
C#
using ConsoleApp2.Alibaba.Models; using System; using System.Threading.Tasks; namespace ConsoleApp2.Alibaba { public static class AlibabaDataCache { private readonly static AlibabaApi alibabaApi = new AlibabaApi(); private readonly static string cacheRootPath = @"Data\缓存\Alibaba\"; pub...
53.063953
156
0.633286
[ "MIT" ]
mccj/AlibabaSDKFor1688
src/tools/AlibabaSDKFor1688GenerationApp/Alibaba/AlibabaDataCache.cs
9,133
C#
namespace IFPS.Factory.Domain.Enums { public enum EventTypeEnum { None = 0, NewAppointment = 1, AppointmentReminder = 2, NewFilesUploaded = 3, NewMessages = 4, ChangedOrderState = 5, OrderEvaluation = 6, Other = 1000 } }
18.588235
37
0.525316
[ "MIT" ]
encosoftware/ifps
ButorRevolutionWebAPI/src/backend/factory/IFPS.Factory.Domain/Enums/EventTypeEnum.cs
318
C#
using DotNetNuke.Collections; using DotNetNuke.Common; using DotNetNuke.Entities.Modules; using DotNetNuke.Entities.Modules.Definitions; using DotNetNuke.UI.Modules; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Routing; namespace DotNetNuke.Web.Mvc.RazorPages.S...
41.536842
152
0.594019
[ "MIT" ]
ahoefling/DnnRazorPagesSDK
src/DotNetNuke.Web.Mvc.RazorPages.SDK.NETFramework/Routing/StandardModuleRoutingProvider.cs
3,948
C#
/* Copyright (c) 2022 bradson * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ using System.Diagnostics; namespace BetterLog; /// <summary> /// Log Functions th...
30.727273
70
0.718935
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
bbradson/BetterLog
Source/DebugLog.cs
678
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Titanfall2_SkinTool.Titanfall2.WeaponData.Default.SubmachineGun; namespace Titanfall2_SkinTool.Titanfall2.WeaponData { public class WeaponDataControl { public string[,] FilePath = ...
56.249142
116
0.394427
[ "MIT" ]
BigSpice/NorthStar-Mod-Manager-Ext-1
LEGACY_NORTHSTAR_INSTALLER/Titanfall2_Requisite/WeaponData/WeaponDataControl.cs
147,683
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Media; namespace MetroRadiance.UI.Controls { /// <summary> /// 未入力時にプロンプトを表示できる <see cref="ComboBox"/> を表します。 /// </summary> [Templ...
31.876289
132
0.617723
[ "MIT" ]
Grabacr07/ResinTimer
src/MetroRadiance/MetroRadiance/UI/Controls/PromptComboBox.cs
3,138
C#
using System.Threading.Tasks; namespace Log73.ExtensionMethod { public static class DumpExtensionMethods { /// <summary> /// Logs the object to console using the <see cref="LogType"/> specified in <see cref="Log73Options.DumpLogType"/>. /// </summary> public static void Dump(th...
43.756757
123
0.605312
[ "MIT" ]
Jan0660/Log73
src/Log73/ExtensionMethod/Dump.cs
1,621
C#
using System.Windows.Controls; namespace ArcGISSilverlightSDK { public partial class AddGraphicsXAML : UserControl { public AddGraphicsXAML() { InitializeComponent(); } } }
17.153846
54
0.623318
[ "Apache-2.0" ]
Esri/arcgis-samples-silverlight
src/ArcGISSilverlightSDK/Graphics/AddGraphicsXAML.xaml.cs
225
C#
using System; public static class SavingsAccount { public static float InterestRate(decimal balance) { if (balance < 0.0m) return -3.213f; if (balance < 1000.0m) return 0.5f; if (balance < 5000.0m) return 1.621f; return 2.475f; } p...
23.439024
87
0.608741
[ "MIT" ]
ErikSchierboomTest/v3
languages/csharp/exercises/concept/floating-point-numbers/.meta/Example.cs
961
C#
using System; using CompanyName.MyMeetings.Modules.Meetings.Application.Configuration.Processing.InternalCommands; using Newtonsoft.Json; namespace CompanyName.MyMeetings.Modules.Meetings.Application.MeetingGroupProposals.AcceptMeetingGroupProposal { internal class AcceptMeetingGroupProposalCommand : InternalComm...
35.647059
110
0.768977
[ "MIT" ]
Bardr/modular-monolith-with-ddd
src/Modules/Meetings/Application/MeetingGroupProposals/AcceptMeetingGroupProposal/AcceptMeetingGroupProposalCommand.cs
608
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.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; namespace Microsoft.AspNetCore.Mvc.DataAnnotations; public class DataTypeClient...
34.465909
114
0.714144
[ "MIT" ]
3ejki/aspnetcore
src/Mvc/Mvc.DataAnnotations/test/DataTypeClientModelValidatorProviderTest.cs
3,033
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PIM_4_PERIODO.Model { class cadveiculos { } }
14.307692
33
0.741935
[ "Apache-2.0" ]
Caiocesar173/PIM_4_Periodo
PIM 4 PERIODO/Model/cadveiculos.cs
188
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...
34.352941
127
0.666096
[ "Apache-2.0" ]
sebtelko/pulumi-azure-native
sdk/dotnet/RecoveryServices/V20210201Preview/Outputs/MabProtectionPolicyResponse.cs
1,752
C#
using System.Collections; using System; using System.Collections.Generic; using UnityEngine; namespace EzySlice { /** * TO/DO -> Rename this to Triangulator and deprecate the * older functionality */ public sealed class Triangulator { /** * Represents a 3D Vertex which has been mapped onto a 2D surface...
25.61236
134
0.622286
[ "MIT" ]
Alan-Baylis/EzySlice
EzySlice/Framework/Triangulator.cs
4,561
C#
using System; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Threading; using System.Runtime.Serialization; using System.Globalization; using System.Security.Permissions; namespace WinKernelObjectsDotNet { /// <summary> /// T...
30.683007
185
0.695175
[ "MIT" ]
donid/WinKernelObjectsDotNet
src/WinKernelObjectsDotNet/DuplicatedObjectHandle.cs
9,391
C#
using LBCOnlineShoppingCart.Application.Interfaces; using LBCOnlineShoppingCart.Domain.Interfaces; using LBCOnlineShoppingCart.Domain.Models; using System; using System.Collections.Generic; using System.Text; namespace LBCOnlineShoppingCart.Application.Services { public class RoleService : IRoleService { ...
24.6
58
0.640244
[ "MIT" ]
Last-Bench-Coder/LBC.OnlineShoppingCart
LBCOnlineShoppingCart.Application/Services/RoleService.cs
986
C#
namespace Lykke.Service.PayInternal.Contract.PaymentRequest { /// <summary> /// Payment request statuses being used for public APIs /// </summary> public static class PaymentRequestPublicStatuses { /// <summary> /// Payment request has been created /// </summary> pub...
29.8125
78
0.580713
[ "MIT" ]
LykkeCity/Lykke.Service.PayInternal
src/Lykke.Service.PayInternal.Contract/PaymentRequest/PaymentRequestPublicStatuses.cs
1,910
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v5/services/customer_manager_link_service.proto // </auto-generated> // Original file comments: // Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // yo...
72.435673
420
0.748274
[ "Apache-2.0" ]
GraphikaPS/google-ads-dotnet
src/V5/Services/CustomerManagerLinkServiceGrpc.cs
24,773
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
28.909524
101
0.552463
[ "Apache-2.0" ]
EbstaLimited/aws-sdk-net
sdk/src/Services/EC2/Generated/Model/TransitGatewayVpcAttachment.cs
6,071
C#
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace timw255.Sitefinity.RestClient.Model { public class LayoutTransformationViewModel { public string AlternatLayoutElementName { get; set; } ...
24.388889
61
0.747153
[ "MIT" ]
timw255/timw255.Sitefinity.RestClient
timw255.Sitefinity.RestClient/Model/LayoutTransformationViewModel.cs
441
C#
using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Reflection; using System.Runtime.ExceptionServices; using System.Text; using System.Threading.Tasks; namespace Discord.Interactions { /// <summary> ...
40.67509
156
0.572113
[ "MIT" ]
FeroxFoxxo/Discord.Net
src/Discord.Net.Interactions/Info/Commands/CommandInfo.cs
11,267
C#
#if UNITY_EDITOR using UnityEngine; using System.Collections; using UnityEditor; using UMA; namespace UMAEditor { [CustomEditor(typeof(DNARangeAsset))] public class DNARangeInspector : Editor { [MenuItem("Assets/Create/UMA DNA Range Asset")] public static void CreateOverlayMenuItem() { CustomAs...
26.453704
167
0.665033
[ "MIT" ]
huika/UMA
UMAProject/Assets/Standard Assets/Editor/UMA/Core/DNARangeInspector.cs
2,859
C#
using System; using System.Threading.Tasks; using Android.Graphics.Drawables; namespace Microsoft.Maui { class ImageLoaderResultCallback : ImageLoaderCallbackBase<IImageSourceServiceResult<Drawable>> { protected override IImageSourceServiceResult<Drawable>? OnSuccess(Drawable? drawable, Action? dispose) => dra...
27.924528
107
0.745946
[ "MIT" ]
10088/maui
src/Core/src/ImageSources/Android/ImageLoaderCallback.cs
1,482
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.416667
81
0.628773
[ "MIT" ]
firatalcin/CSharp-.NetCore-Works
FullStackDotNetCore-Lessons/DbFirst/DbFirst/obj/Debug/net5.0/DbFirst.AssemblyInfo.cs
994
C#
using System; using DbUp; using DbUp.Engine; using Microsoft.Extensions.Configuration; using Serilog; namespace VND.CoolStore.DbMigration { class Program { private static IConfiguration _configuration; private enum ServiceName { ShoppingCart = 0, ProductCatalog ...
31.951807
96
0.524887
[ "MIT" ]
tannguyent/coolstore-microservices
src/migrations/VND.CoolStore.DbMigration/Program.cs
2,652
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Collections.Generic; using UnityEngine; using UnityEngine.VR.WSA; namespace Academy.HoloToolkit.Unity { /// <summary> /// Spatial Mapping Obser...
39.14321
136
0.557812
[ "MIT" ]
PaulDixon/VuforiaQR
Assets/HoloToolkit-SpatialMapping-230/SpatialMapping/Scripts/SpatialMappingObserver.cs
15,855
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("Sam...
37.444444
84
0.750742
[ "Apache-2.0" ]
RedoxEngine/.NET-Sample-App
SampleSite/Properties/AssemblyInfo.cs
1,351
C#
using System.Linq; using System.Threading.Tasks; using HotChocolate.Language; using StrawberryShake.CodeGeneration.Analyzers.Models; using StrawberryShake.CodeGeneration.Extensions; using Xunit; using static StrawberryShake.CodeGeneration.Mappers.TestDataHelper; namespace StrawberryShake.CodeGeneration.Mappers { p...
33.654839
87
0.346784
[ "MIT" ]
Megasware128/hotchocolate
src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/DataTypeMapperTests.cs
10,433
C#
//Released under the MIT License. // //Copyright (c) 2018 Ntreev Soft co., Ltd. // //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 //rig...
39.134328
121
0.639016
[ "MIT" ]
NtreevSoft/Crema
common/Ntreev.Crema.Commands.Sharing/Consoles/Serializations/JsonTableInfo.cs
5,246
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using Wollo.Entities.ViewModels; using Wollo.Web; using Wollo.Web.Helper; usi...
31.092784
111
0.577586
[ "MIT" ]
umangsunarc/OTH
Wollo.Web/Controllers/HomeController.cs
3,018
C#
namespace Endahl.CSharpedSql { using Endahl.CSharpedSql.Base; using System.Collections.Generic; /// <summary> /// JOIN clause in SQL /// </summary> public class Join { public virtual IList<Join> Joins { get; } public virtual string TableName { get; } public virtual ...
41.375
136
0.59168
[ "MIT" ]
Endahl/CSharpedSql
Endahl.CSharpedSql/Join.cs
4,305
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/winnt.h in the Windows SDK for Windows 10.0.19041.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop { publ...
29.8
145
0.692953
[ "MIT" ]
Ethereal77/terrafx.interop.windows
sources/Interop/Windows/um/winnt/XSAVE_AREA_HEADER.cs
598
C#
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using BenchmarkDotNet.Environments; using BenchmarkDotNet.Portability; using JetBrains.Annotations; using Microsoft.DotNet.PlatformAbstractions; namespace BenchmarkDotNet.Toolchains.DotNetCli { [SuppressMessage...
42.93985
182
0.684994
[ "MIT" ]
AndyAyersMS/BenchmarkDotNet
src/BenchmarkDotNet/Toolchains/DotNetCli/CustomDotNetCliToolchainBuilder.cs
5,713
C#
using System; namespace Structr.Abstractions.Extensions { public static class LongExtensions { public static string ToFileSizeString(this long value) { string[] sizeSuffixes = { "bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB" }; if (value < 0) { return "-" + (-va...
31.1
96
0.536977
[ "MIT" ]
askalione/Structr
src/Structr.Abstractions/Extensions/LongExtensions.cs
622
C#
using System; namespace Computers { class Program { static void Main(string[] args) { } } }
10.846154
39
0.460993
[ "MIT" ]
Anzzhhela98/CSharp-Advanced
C# OOP/Exam Preparation/C# OOP Exam - 16 August 2020/Unit-Test/Computers-Skeleton/Computers/Program.cs
143
C#
using UnityEngine; public class Cube : MonoBehaviour { private Vector3 toPosition = new Vector3(0f, 3f, 0f); void Update () { if (this.toPosition.y - transform.position.y <= 0.1f) { this.toPosition = new Vector3(0f, -3f, 0f); } else if (transform.position.y - this.toPosition.y <= 0.1f) { this.toPosition...
29.764706
82
0.677866
[ "MIT" ]
tkyaji/UnityRecShare
RecShare/Assets/RecShare/Sample/Cube.cs
508
C#
using OC.DiscordBotServer.Common; using OC.DiscordBotServer.Helpers; using OC.DiscordBotServer.Models; using OC.DiscordBotServer.Repositories; using System.Collections.Concurrent; using System.Net; namespace OC.DiscordBotServer { public class ApplicationContext { private readonly IRepository<OCUser> _...
35.40404
167
0.601427
[ "Apache-2.0" ]
Husky333/CityOfXIAOSU
Source/DiscordChatBotServer/ApplicationContext.cs
3,507
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Handelabra.Sentinels.Engine.Controller; using Handelabra.Sentinels.Engine.Model; namespace Cauldron.CatchwaterHarbor { public class ToOverbrookCardController : CatchwaterHarborUtilityCardController { pu...
25.833333
126
0.778495
[ "MIT" ]
qoala/CauldronMods
Controller/Environments/CatchwaterHarbor/Cards/ToOverbrookCardController.cs
467
C#
using Microsoft.EntityFrameworkCore.Migrations.Operations; using System; using System.Collections.Generic; using System.DirectoryServices; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; namespace api_netCore { public class Utilz ...
39.256614
169
0.434126
[ "MIT" ]
xaotix/Api_NetCore
WEBAPI_MySQL/Util/Utilz.cs
14,851
C#
using UnityEngine; namespace Playcraft { public interface IMoveAndRotate { float moveSpeed { get; } float turnSpeed { get; } } public class Footsteps : MonoBehaviour { #pragma warning disable 0649 [SerializeField] float stepsPerMeter = 2f; [SerializeField] ...
27.298507
77
0.523237
[ "MIT" ]
Will9371/Character-Template
Assets/Playcraft/Quality of Life/Sound/Footsteps.cs
1,831
C#
using System; using System.ComponentModel; using Foundation; using Plugin.MaterialDesignControls.Implementations; using Plugin.MaterialDesignControls.iOS; using Plugin.MaterialDesignControls.iOS.Utils; using UIKit; using Xamarin.Forms; using Xamarin.Forms.Platform.iOS; [assembly: ExportRenderer(typeof(CustomDatePicke...
40.183333
178
0.608876
[ "MIT" ]
ClayAchahui/MaterialDesignControlsPlugin-1
src/MaterialDesignControls.iOS/Renderers/MaterialDatePickerRenderer.cs
2,413
C#
using UnityEngine; namespace UnityEditor.Timeline { enum TrimEdge { Start, End } interface ITrimItemMode { void OnBeforeTrim(ITrimmable item, TrimEdge trimDirection); void TrimStart(ITrimmable item, double time); void TrimEnd(ITrimmable item,...
20.75
82
0.624498
[ "Apache-2.0" ]
yeliheng/BasketballVR
Library/PackageCache/com.unity.timeline@1.1.0/Editor/Manipulators/Trim/ITrimItemMode.cs
498
C#
using agorartc; using ClubHouse.Common; using ClubHouse.Domain.Models; using ClubHouse.Domain.Models.Request; using ClubHouse.Domain.Models.Response; using ClubHouse.Domain.Services; using ClubHouse.Domain.Services.Common; using ClubHouse.UI.DesktopApp.Models; using ClubHouse.UI.DesktopApp.ViewModels; using ClubHouse...
41.343797
182
0.500018
[ "MIT" ]
aliprogrammer69/ClubHouse-Windows
UI/ClubHouse.UI.DesktopApp/Handler/RoomManagerService.cs
27,661
C#
namespace Packer.Test { using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Poker; [TestClass] public class CardTest { [TestMethod] public void Card_CreatedCardShouldNotBeNullabe() { // Arrange Card card = new Card(CardFace.Ac...
24.326923
87
0.552569
[ "MIT" ]
shopOFF/Telerik-Academy-Courses
Unit-Testing/TelerikUnitTestingg/UnitTestingHomeworks/TDDHomework/HW_Test-Driven-Development (1)/PokerHomework/Poker.Test/CardTest.cs
1,269
C#
using System; using System.Linq; using System.Reactive.Linq; using RxDivideAggregate; namespace MainApplication { class Program { private const int FiresCount = 1; private const int ReportSize = 1; private static readonly FireId[] FireIds = Enumerable.Range(0, FiresCount) ...
39.54902
147
0.553793
[ "MIT" ]
tvvister/RxDivideAggregate
MainApplication/Program.cs
2,019
C#
using SeeGui.Components; using System; using System.Collections.Generic; using System.Text; namespace SeeGui.Composer { public enum SgTheme { Modern, Classic } public static class SgComposer { public static void CreateButton(Button button) { // Draw the...
28.461538
113
0.561261
[ "MIT" ]
radixi0/seegui
SeeGui/Composer/SgComposer.cs
1,112
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace TypeEdgeModule3 { public sealed class SingleThreadTaskScheduler : TaskScheduler { [ThreadStatic] private static bool _isExecuting; private readon...
28.011236
113
0.557962
[ "MIT" ]
ChristianEder/TypeEdge
Templates/TypeEdgeML/Modules/TypeEdgeModule3/SingleThreadTaskScheduler.cs
2,495
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Reflection; using Autofac; using Autofac.Core; using Module = Autofac.Module; namespace YF.Utility.Logging { public class LoggingModule : Module { private readonly ConcurrentDictionary<str...
47.025
144
0.628655
[ "MIT" ]
kensen/YFLib
YF.Utility/Logging/LoggingModule.cs
3,764
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
30.923077
107
0.498045
[ "MIT" ]
alweish/squidex
src/Squidex.Domain.Apps.Entities/Schemas/Indexes/SchemasIndex.cs
5,630
C#
// <copyright filename="XmlRecordsetReader.cs" project="Framework"> // This file is licensed to you under the MIT License. // Full license in the project root. // </copyright> namespace B1PP.Data { using System; using System.Collections; using System.Collections.Generic; using System.Globalization;...
26.60262
119
0.523309
[ "MIT" ]
laukiet78/SAPB1-C-SHARP
Framework/Data/XmlRecordsetReader.cs
6,092
C#
using Solnet.Programs; using Solnet.Rpc; using Solnet.Rpc.Builders; using Solnet.Rpc.Core.Http; using Solnet.Rpc.Messages; using Solnet.Rpc.Models; using Solnet.Rpc.Types; using Solnet.Wallet; using System; using System.Collections.Generic; using System.Threading; namespace Solnet.Examples { public c...
47.574803
125
0.629924
[ "MIT" ]
BTCTrader/Solnet
src/Solnet.Examples/AssociatedTokenAccountsExample.cs
6,042
C#
using Newtonsoft.Json.Linq; using ReactNative.Bridge; using ReactNative.Modules.Core; using ReactNative.Modules.Network; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Http; using System.Security.Cryptography; using System.Text; using System.Threading; using System....
33.726006
168
0.452472
[ "MIT" ]
Akkroo/react-native-fs
windows/RNFS/RNFSManager.cs
21,787
C#
using System.Collections.Generic; using System.Text; using Essensoft.AspNetCore.Payment.Security; namespace Essensoft.AspNetCore.Payment.WeChatPay.Utility { public static class WeChatPaySignature { public static string SignWithKey(WeChatPayDictionary dictionary, string key, WeChatPaySignType signType)...
36.108696
112
0.571343
[ "MIT" ]
ekolios/payment
src/Essensoft.AspNetCore.Payment.WeChatPay/Utility/WeChatPaySignature.cs
1,663
C#
using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using NBitcoin; using Stratis.Bitcoin.Controllers; using Stratis.Bitcoin.Features.Miner.Interfaces; using Stratis.Bitcoin.Features.RPC; using Stratis.Bitcoin.Features.RPC.Exceptions; using Stratis.B...
41.444444
163
0.657568
[ "MIT" ]
AYCHPay/AYCHPayGenesisFullnode
src/Stratis.Bitcoin.Features.Miner/Controllers/MiningRPCController.cs
4,105
C#
using Elmah.Io.Client; using System; using System.Net.Http.Headers; using System.Text; using System.Threading; using System.Threading.Tasks; using Umbraco.Core.Logging; using Umbraco.Web.HealthCheck; using Umbraco.Web.HealthCheck.NotificationMethods; namespace Elmah.Io.Umbraco { [HealthCheckNotificationMethod("el...
33.382353
213
0.569163
[ "Apache-2.0" ]
elmahio/elmah.io.umbraco
src/elmah.io.umbraco/ElmahIoNotificationMethod.cs
3,407
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Runtime.InteropServices { [Flags] public enum TypeLibFuncFlags { FRestricted = 0x0001, FSource = 0x0002, FBindable = 0x0004, ...
26.625
71
0.630673
[ "MIT" ]
belav/runtime
src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/TypeLibFuncFlags.cs
639
C#
namespace BaristaLabs.ChromeDevTools.Runtime.ServiceWorker { using Newtonsoft.Json; /// <summary> /// DeliverPushMessage /// </summary> public sealed class DeliverPushMessageCommand : ICommand { private const string ChromeRemoteInterface_CommandName = "ServiceWorker.deliverPushMessage";...
24.02
103
0.537885
[ "MIT" ]
BaristaLabs/chrome-dev-tools-runtime
BaristaLabs.ChromeDevTools.Runtime/ServiceWorker/DeliverPushMessageCommand.cs
1,201
C#
using System.Data.Entity; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; namespace GestionDeCV.Models { // Puede agregar datos del perfil del usuario agregando más propiedades a la clase ApplicationUser. Para más inform...
38.515152
179
0.718332
[ "Apache-2.0" ]
franml32/GitHubTest
src/GestionDeCV/GestionDeCV/Models/IdentityModels.cs
1,277
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; namespace CefSharp.MinimalExample.WinForms { public partial class frmSettings : Form { p...
22.9625
97
0.569951
[ "MIT" ]
mrkienls/FBtoOther1
CefSharp.MinimalExample.WinForms/frmSettings.cs
1,839
C#
using System; namespace WorQLess.Attributes { [AttributeUsage(AttributeTargets.Property | AttributeTargets.Class, Inherited = true, AllowMultiple = false)] public class ExposeAttribute : Attribute { } }
23
110
0.78744
[ "MIT" ]
fabiohvp/WorQLess.Net
Attributes/ExposeAttribute.cs
207
C#
/******************************************************* * UndirectedGraph.cs * Created by Stephen Hall on 11/17/17. * Copyright (c) 2017 Stephen Hall. All rights reserved. * Undirected Graph implementation in C# ********************************************************/ using System; using System.Collec...
35.789744
149
0.514257
[ "MIT" ]
halls7588/Data_Structures
C#/Graphs/UndirecetedGraph/UndirectedGraph.cs
6,979
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.Diagnostics; using System.IO; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Logging; namespace live.asp.n...
35.035294
154
0.495299
[ "MIT" ]
mohitkapoorind/ASP.NET
src/live.asp.net/Services/DeploymentEnvironment.cs
2,980
C#
// Copyright (c) DotSpatial Team. All rights reserved. // Licensed under the MIT license. See License.txt file in the project root for full license information. using System; using DotSpatial.Data; using DotSpatial.Modeling.Forms; using DotSpatial.Modeling.Forms.Parameters; namespace DotSpatial.Tools { ...
46.559796
148
0.432561
[ "MIT" ]
eapbokma/DotSpatial
Source/DotSpatial.Tools/RasterDistance.cs
18,300
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...
29.55102
174
0.549378
[ "ECL-2.0", "Apache-2.0" ]
timmyers/pulumi-github
sdk/dotnet/index/getRelease/GetRelease.cs
5,792
C#
using System; namespace Pioneer.Common.Logging; /// <summary> /// The logger is a tool to log messages to the console and the log file system of Pioneer. /// </summary> public interface ILogger { /// <summary> /// Prints an info message to the logging system. /// </summary> /// <param name="message">...
41.491525
100
0.663399
[ "MIT" ]
PioneerMod/Pioneer
Pioneer.Common/Logging/ILogger.cs
2,450
C#
using System; using System.Linq; using EntityFramework.Extensions; using Microsoft.VisualStudio.TestTools.UnitTesting; using Tracker.SqlServer.Entities; #if NET4 namespace Tracker.SqlServer.EF6.NET4.Tests #elif NET45 namespace Tracker.SqlServer.EF6.NET45.Tests #elif NET451 namespace Tracker.SqlServer.EF6.NET451.Tests...
33.419355
172
0.59556
[ "BSD-3-Clause" ]
advancedrei/EntityFramework.Extended
Source/Samples/EF6/Tracker.SqlServer.NET451.Tests/BatchObjectContext.cs
3,110
C#
#region Russian /* Повторное генерирование исключений Исключение, перехваченное в одном блоке catch, может быть повторно сгенерировано в другом блоке, чтобы быть перехваченным во внешнем блоке catch. Наиболее вероятной причиной для повторного генерирования исключения служит предоставление доступа к исключению неско...
27.502994
97
0.617026
[ "Unlicense" ]
Vladimir-Zakharenkov/csharp-4-schildt
Chapter-13/Part-10/Program.cs
5,683
C#
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Net; namespace stNet { public static class stACL { private const uint localHost = 2130706433; public enum IpFilterType : int { None = 0, GeoASN, GeoCou...
35.800366
148
0.453676
[ "MIT" ]
PetersSharp/stCoCServer
stCoCServer/stExtLib/stNet-dll/stIPFilterACL.cs
19,549
C#