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
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; using Microsoft.DotNet.XUnitExtensions; using Test.Cryptography; using Xunit; namespace System.Security.Cryptography.Algorithms....
43.232022
127
0.550687
[ "MIT" ]
3DCloud/runtime
src/libraries/System.Security.Cryptography.Algorithms/tests/HKDFTests.cs
31,862
C#
namespace WinterIsComing.Models.Spells { class Blizzard:Spell { private const int DefaultEnergyConst = 40; public Blizzard(int damage) : base(damage, DefaultEnergyConst) { } } }
18.230769
50
0.586498
[ "MIT" ]
didimitrov/Algo
SortingAlgorithmsDemo/OOP/Exam/WinterIsComing/WinterIsComing/Models/Spells/Blizzard.cs
239
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
49.693252
306
0.618169
[ "MIT" ]
Azkel/azure-sdk-for-net
sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs
48,600
C#
using CodeHelpers.Mathematics; using EchoRenderer.Mathematics; using EchoRenderer.Mathematics.Primitives; using EchoRenderer.Objects.Lights; using EchoRenderer.Rendering.Materials; using EchoRenderer.Rendering.Memory; using EchoRenderer.Rendering.Scattering; namespace EchoRenderer.Rendering.Pixels { public class Bru...
28.571429
173
0.72375
[ "MIT" ]
MMXXX-VIII/EchoRenderer
EchoRenderer/src/Rendering/Pixels/BruteForceWorker.cs
1,602
C#
#region License /* Copyright © 2014-2021 European Support Limited 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 a...
30.710526
102
0.709512
[ "Apache-2.0" ]
Ginger-Automation/Ginger
Ginger/GingerCoreNET/RunLib/CLILib/GridOptions.cs
1,168
C#
namespace NServiceBus.Attachments #if FileShare .FileShare #elif Sql .Sql #endif ; /// <summary> /// Provides access to write attachments. /// </summary> public interface IOutgoingAttachments { /// <summary> /// Returns <code>true</code> if there are pending attachments to be written in the current outgoing p...
49.728682
185
0.682931
[ "MIT" ]
SimonCropp/NServiceBus.Attachments
src/Shared/Outgoing/IOutgoingAttachments.cs
6,417
C#
namespace System.Security.Cryptography { class GostR3411_2012_256_Digest : Asn1OctetString { public GostR3411_2012_256_Digest () : base() { } /// <summary> /// This constructor initializes an octet string from the given /// byte array by setting the 'value' public member variab...
33.835443
88
0.597456
[ "MIT" ]
CryptoPro/corefx
src/Common/src/System/Security/Cryptography/GostR3411_2012_DigestSyntax/GostR3411_2012_256_Digest.cs
2,673
C#
// Automatically generated by xdrgen // DO NOT EDIT or your changes may be overwritten using System; namespace stellar_dotnet_sdk.xdr { // === xdr source ============================================================ // struct LedgerEntry // { // uint32 lastModifiedLedgerSeq; // ledger the Ledge...
41.291925
105
0.545277
[ "Apache-2.0" ]
mootz12/dotnet-stellar-sdk
stellar-dotnet-sdk-xdr/generated/LedgerEntry.cs
6,648
C#
namespace Animals { interface IAnimal { string Diet { get; } string Home { get; } string Name { get; } bool Omnivore { get; } string Sound { get; } } }
18.545455
30
0.490196
[ "MIT" ]
OCDAmmo3/Lab06-Zoo
Animals/IAnimal.cs
206
C#
using System; using System.Collections.Generic; using System.Text; namespace Afx.Map { /// <summary> /// map to model /// </summary> public interface IToObject { /// <summary> /// to model /// </summary> /// <param name="o"></param> /// <returns></returns> ...
18.1
36
0.522099
[ "Apache-2.0" ]
jerrylai/Afx.Base
src/Afx.Base/Map/IToObject.cs
364
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("Enh...
37.945946
84
0.75
[ "MIT" ]
BlueG81/PowerApps-Samples
cds/webapi/C#/EnhancedQuickStart/Properties/AssemblyInfo.cs
1,407
C#
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution. If ...
45.972973
98
0.610229
[ "Apache-2.0" ]
121468615/mono
mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Actions/IInvokeOnGetBinder.cs
1,701
C#
using System; using Unity.Burst; using Unity.Collections; using Unity.Collections.LowLevel.Unsafe; using Unity.Jobs; using Unity.Mathematics; using Debug = UnityEngine.Debug; using ReadOnlyAttribute = Unity.Collections.ReadOnlyAttribute; namespace Chisel.Core { [BurstCompile(CompileSynchronously = true)] ...
50.370787
168
0.608075
[ "MIT" ]
JarrodDoyle/Chisel.Prototype
Packages/com.chisel.core/Chisel/Core/API.private/Unmanaged/Jobs/FindModifiedBrushesJob.cs
4,483
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Drawing; using System.Text; using System.Windows.Forms; namespace TZInfo { public partial class Form1 : Form { public Form1 ( ) { InitializeComponent ( ); // ------------------...
38.085106
76
0.663687
[ "BSD-3-Clause" ]
txwizard/TimeZoneLab
TZInfo/Form1.cs
1,792
C#
using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Diagnostics; using System.Runtime.CompilerServices; using System.ComponentModel; namespace NGenericDimensions.Durations { public class Minutes : StandardDurationUnitOfMeasure, IDefinedUnitOfMeasure { ...
28.134146
180
0.656697
[ "MIT" ]
MafuJosh/NGenericDimensions
old-DOTNETFramework/NGenericDimensions/Durations/Minutes.cs
2,309
C#
// Copyright (C) 2009-2020 Xtensive LLC. // This code is distributed under MIT license terms. // See the License.txt file in the project root for more information. // Created by: Denis Krjuchkov // Created: 2009.07.17 using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using...
35.967337
131
0.678764
[ "MIT" ]
NekrasovSt/dataobjects-net
Orm/Xtensive.Orm.Oracle/Sql.Drivers.Oracle/v09/Extractor.cs
28,630
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace MvcApplication1 { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd...
30.46
111
0.5174
[ "Apache-2.0" ]
Andromeda6688/Anonymized_MvcApp
MvcApplication1/App_Start/RouteConfig.cs
1,525
C#
using Henooh.DeviceEmulator.Native; using SharpDX.XInput; namespace xinputTest { public class Binds { public string name; public GamepadButtonFlags button; public VirtualKeyCode key; public bool isdown = false; public Binds(string name, GamepadButtonFlags button, Virtu...
21.666667
80
0.602198
[ "MIT" ]
ZakKaioken/Windows-10-Explorer-Controller-Support
xinputTest/Binds.cs
457
C#
using System.Web.Http; namespace Northwind.Mvc { public static class WebApiConfig { public static void Register(HttpConfiguration config) { config.MapHttpAttributeRoutes(); // Syncfusion Report Viewer config.Routes.MapHttpRoute( ...
27.333333
65
0.552846
[ "MIT" ]
EasyLOB/EasyLOB-Northwind-1
Northwind.Mvc.AJAX/App_Start/WebApiConfig.cs
494
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Network.Models { public partial class GetVpnSitesConfigurationRequest : IUtf8JsonSerializable { ...
27.352941
80
0.591398
[ "MIT" ]
AzureDataBox/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/Models/GetVpnSitesConfigurationRequest.Serialization.cs
930
C#
using System; using System.Threading.Tasks; using GraphQL; using GraphQL.DI; using Shouldly; using Xunit; namespace DIObjectGraphTypeTests { public class Services : DIObjectGraphTypeTestBase { [Fact] public void Service() { Configure<CService, object>(); _service...
30.27451
110
0.591969
[ "MIT" ]
Shane32/GraphQL.MVC
src/Tests/DIObjectGraphTypeTests/Services.cs
1,544
C#
// Copyright (c) 2007, Clarius Consulting, Manas Technology Solutions, InSTEDD, and Contributors. // All rights reserved. Licensed under the BSD 3-Clause License; see License.txt. namespace Moq { /// <summary> /// Utility repository class to use to construct multiple /// mocks when consistent verification is ///...
37.564815
97
0.6702
[ "BSD-3-Clause" ]
304NotModified/moq4
src/Moq/MockRepository.cs
4,057
C#
using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Catalog.API.Repositories; using Microsoft.Extensions.Logging; using Catalog.API.Entities; using System.Net; namespace Catalog.API.Controllers { // presentation Layer // Ist i ...
37.952381
125
0.651819
[ "MIT" ]
jencyraj/AspnetMicroservices
src/Services/Catalog/Catalog.API/Controllers/CatalogController.cs
3,190
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
38.783784
85
0.725436
[ "MIT" ]
bstaykov/Telerik-CSharp-Part-2
Using-Classes-and-Objects/07.Aritmetics/Properties/AssemblyInfo.cs
1,438
C#
using System.Text.Json.Serialization; namespace Flub.TelegramBot.Types { /// <summary> /// Represents an issue with the front side of a document. /// The error is considered resolved when the file with the front side of the document changes. /// </summary> public class PassportElementErrorFrontSid...
43.3125
129
0.663781
[ "MIT" ]
flubl/Flub.TelegramBot
Src/Flub.TelegramBot/Types/Passport/Errors/PassportElementErrorFrontSide.cs
1,388
C#
using Fenit.HelpTool.Core.Service; using Fenit.Toolbox.Core.Answers; namespace Fenit.HelpTool.Core.UserService { public class UserService : IUserService { public Response<bool> Login(string username, string password) { var res = new Response<bool>(); if (username == "ad...
25.7
69
0.589494
[ "MIT" ]
glazier44/Fenit.HelpTool
Fenit.HelpTool.Core.UserService/UserService.cs
516
C#
namespace T02.GraphicEditor.Contracts { public interface IShape { } }
11.857143
38
0.662651
[ "MIT" ]
akdimitrov/CSharp-OOP
10.SOLID-Lab/T02.GraphicEditor/Contracts/IShape.cs
85
C#
/* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System.Runtime.CompilerServices; using System.Threading; namespace System { /// <summary> /// Represents ...
36.756098
111
0.68215
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
arsuq/MemoryLanes
MemoryLanes/src/Fragments/HeapSlot.cs
6,028
C#
using System; using UnityEngine; namespace Pathfinding { internal static class AstarSplines { public static global::UnityEngine.Vector3 CatmullRom(global::UnityEngine.Vector3 previous, global::UnityEngine.Vector3 start, global::UnityEngine.Vector3 end, global::UnityEngine.Vector3 next, float elapsedTime) { f...
48.046512
216
0.694095
[ "CC0-1.0" ]
FreyaFreed/mordheim
Assembly-CSharp/Pathfinding/AstarSplines.cs
2,068
C#
using System; using System.IO; using System.Threading; using System.Threading.Tasks; using Discord; using Discord.Commands; using Discord.WebSocket; using GitHub.Discord.Bot.Cfg; using GitHub.Discord.Bot.Data.Context; using GitHub.Discord.Bot.Jobs; using GitHub.Discord.Bot.Services; using Microsoft.Extensions.Dependen...
39.18797
110
0.594781
[ "MIT" ]
gruenwaldlk/GitHub.Discord.Bot
GitHub.Discord.Bot/Bot.cs
5,214
C#
namespace DeriSock.Request { public class BuyParams { /// <summary> /// Instrument name /// </summary> public string InstrumentName { get; set; } /// <summary> /// It represents the requested order size. For perpetual and futures the amount is in USD units, for options it is /// ...
38.914894
123
0.61181
[ "MIT" ]
gabfeldman/DeriSock
DeriSock/Request/BuyParams.cs
3,672
C#
/************************************************************************************* Toolkit for WPF Copyright (C) 2007-2019 Xceed Software Inc. This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at https://github.com/xceedsoftware/wpftoolkit/blob/m...
24.947594
219
0.607862
[ "MIT" ]
O-Debegnach/Supervisor-de-Comercio
wpftoolkit-master/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutContent.cs
23,328
C#
// Copyright © 2018 Wave Engine S.L. All rights reserved. Use is subject to license terms. #region Using Statements using Valve.VR; #endregion namespace WaveEngine.OpenVR.Helpers { public class ButtonMask { public const ulong System = 1ul << (int)EVRButtonId.k_EButton_System; // reserved publ...
45.391304
95
0.715517
[ "MIT" ]
WaveEngine/Extensions
WaveEngine.OpenVR/Shared/Helpers/ButtonMask.cs
1,047
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using NBCZ.Api.Model.Request; using NBCZ.BLL; using NBCZ.Model; n...
31.450495
135
0.510467
[ "MIT" ]
chi8708/NBCZ_Admin_NetCore
NBCZ.Api/Controllers/PubUserController.cs
6,445
C#
/******************************************************************************* * Copyright © 2020 WaterCloud.Framework 版权所有 * Author: WaterCloud * Description: WaterCloud快速开发平台 * Website: *********************************************************************************/ using System; using SqlSugar; namespace...
47.725
107
0.612886
[ "MIT" ]
qian416322/WaterCloud
WaterCloud.Domain/Entity/FlowManage/FormTestEntity.cs
1,938
C#
using System.Windows.Controls; namespace CompanyName.ApplicationName.Views { /// <summary> /// Interaction logic for AnimationView.xaml /// </summary> public partial class AnimationView : UserControl { /// <summary> /// Initializes a new AnimationView object. /// </summary>...
23
52
0.589372
[ "MIT" ]
PacktPublishing/Mastering-Windows-Presentation-Foundation-Second-Edition
CompanyName.ApplicationName.Views/AnimationView.xaml.cs
416
C#
using System; using System.IO; using NitroSharp.Graphics; using NitroSharp.Media; using NitroSharp.NsScript; using NitroSharp.NsScript.Primitives; namespace NitroSharp { internal partial class Builtins { public override void LoadAudio(in EntityPath entityPath, NsAudioKind kind, string fileName) ...
34.476923
106
0.533467
[ "MIT" ]
Cred0utofnames/nitrosharp
src/NitroSharp/Builtins.Media.cs
4,482
C#
using System; using System.Linq; using System.Text; #if !NETSTANDARD2_0 using System.Web.UI; #endif namespace OfficeDevPnP.Core.Pages { #if !SP2013 && !SP2016 /// <summary> /// Represents a section on the canvas /// </summary> public class CanvasSection { #region variables private ...
30.137931
125
0.508173
[ "MIT" ]
GLubomirov/PnP-Sites-Core
Core/OfficeDevPnP.Core/Pages/CanvasSection.cs
6,120
C#
namespace CSG { using CSG.Algorithms; using CSG.Attributes; using System; using System.ComponentModel; using System.Numerics; using System.Runtime.Serialization; [Serializable] public abstract class Shape : IEquatable<Shape>, ISerializable { [Category("Default")] pu...
31.746154
107
0.511146
[ "MIT" ]
Kaydax/CSG
src/CSG/Shape.cs
8,256
C#
// // EventDeclaration.cs // // Author: // Mike Krüger <mkrueger@novell.com> // // Copyright (c) 2009 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in th...
35.610526
113
0.736624
[ "MIT" ]
arturek/ILSpy
NRefactory/ICSharpCode.NRefactory/CSharp/Ast/TypeMembers/EventDeclaration.cs
3,386
C#
//--------------------------------------------------------- // <auto-generated> // This code was generated by a tool. Changes to this // file may cause incorrect behavior and will be lost // if the code is regenerated. // // Generated on 2020 October 09 04:56:00 UTC // </auto-generated> //--------------...
36.987013
154
0.619382
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/crypto/tls/key_schedule_nistParametersStruct.cs
2,848
C#
/* INFINITY CODE 2013-2016 */ /* http://www.infinity-code.com */ #if !UNITY_4_3 && !UNITY_4_5 && !UNITY_4_6 && !UNITY_4_7 && !UNITY_5_0 && !UNITY_5_1 && !UNITY_5_2 #define UNITY_5_3P #endif using UnityEditor; using UnityEngine; #if UNITY_5_3P using UnityEditor.SceneManagement; using UnityEngine.SceneMa...
27.659091
98
0.673788
[ "CC0-1.0" ]
VisualSweden/Mixed
Assets/Infinity Code/Online maps/Scripts/Editor/Controls/OnlineMapsGUITextureControlEditor.cs
1,219
C#
namespace Simple.Owin.CorsMiddleware { using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Threading.Tasks; internal class Builder { private readonly ...
38.894737
146
0.577808
[ "MIT" ]
simple-owin/Simple.Owin.Cors
src/Simple.Owin.Cors/Builder.cs
6,653
C#
using System; using System.Collections.Generic; using System.Text; namespace uplanit.Models { public enum MenuItemType { Browse, About } public class HomeMenuItem { public MenuItemType Id { get; set; } public string Title { get; set; } } }
15.736842
44
0.608696
[ "Apache-2.0" ]
dapperGeek/uPlanIt
uplanit/uplanit/Models/HomeMenuItem.cs
301
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v4/errors/time_zone_error.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.C...
35.852535
291
0.696144
[ "Apache-2.0" ]
GraphikaPS/google-ads-dotnet
src/V4/Types/TimeZoneError.cs
7,780
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SplinterTrip { class SplinterTrip { static void Main() { var distanceInMiles = double.Parse(Console.ReadLine()); var fuelCapacity = double.Parse...
36.5
87
0.631963
[ "MIT" ]
PavelRunchev/Programming-Fundamentals-2017
Programming Fundamentals - Sep-2017/33.Exam Programming Fundamentals/03.Exam 9-May2017/01.SplinterTrip/SplinterTrip.cs
1,097
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
31.051724
81
0.630761
[ "Apache-2.0" ]
TencentCloud/tencentcloud-sdk-dotnet-intl-en
TencentCloud/Gaap/V20180529/Models/GroupStatisticsInfo.cs
1,801
C#
/* * Copyright (c) Contributors, http://vision-sim.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * For an explanation of the license of each contributor and the content it * covers please see the Licenses directory. * * Redistribution and use in source and binary forms, with or without ...
35.012346
120
0.590268
[ "MIT" ]
VisionSim/Vision-Sim
Vision/ScriptEngine/VisionScript/CompilerTools/Minimodule/SOPObjectInventory.cs
8,508
C#
using System; using System.Collections.Generic; using System.Text; namespace DataTransferObjects { public class Uloga { public string Id { get; set; } public string Naziv { get; set; } public bool IsGlavnaUloga { get; set; } public Glumac Glumac { get; set; } public P...
20.055556
48
0.623269
[ "MIT" ]
AdnanIT/eTeatar
eTeatar/DataTransferObjects/Uloga.cs
363
C#
/* * No license given, * taken from http://csharper.fairblog.ro/2010/05/compiling-c-projects-at-runtime-parsing-the-csproj-file */ namespace RunTimeCompiler { /// <summary> /// This is a reader for C# project files, or more precisely a /// wrapper to a reader of all .csproj. /// As...
39.854545
107
0.590785
[ "BSD-3-Clause" ]
BillyWarrhol/Aurora-Sim
Aurora/Modules/Installer/CSProjCompiler/CsprojReader.cs
2,194
C#
#region Header // --------------------------------------------------------------------------------- // <copyright file="AbstractInfoLayout.cs" company="https://github.com/sant0ro/Yupi"> // Copyright (c) 2016 Claudio Santoro, TheDoctor // </copyright> // <license> // Permission is hereby granted, free of charge, to...
36.314815
85
0.624681
[ "MIT" ]
TheDoct0r11/Yupi
Yupi.Model/Domain/Catalog/Layout/AbstractInfoLayout.cs
1,961
C#
// <auto-generated /> using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using SagaImpl.InventoryService.Database; namespace SagaImpl.InventoryService.Migrations { [DbCo...
37.196078
125
0.580917
[ "MIT" ]
IvanJevtic9/SagaPatternImpl
src/SagaImpl.InventoryService/Migrations/InventoryDbContextModelSnapshot.cs
1,899
C#
 using System; using System.Net.Http; using System.Web.Http; namespace Travo.Controllers { public class StatusController : TravoApiController { [Route("~/status"), HttpGet] public HttpResponseMessage GetStatus() { return TravoOk(); } } }
17.411765
54
0.614865
[ "MIT" ]
Tarpsvo/Travo
Travo.WebAPI/Controllers/StatusController.cs
298
C#
using Microsoft.IdentityModel.Tokens; using System; namespace Messages.App.Jwt { public class TokenProviderOptions { public string Path { get; set; } = "api/users/login"; public string Issuer { get; set; } public string Audience { get; set; } public TimeSpan Expitarion { get...
22.631579
73
0.648837
[ "MIT" ]
DanielBankov/SoftUni
C# Web/ASP.NET Core MVC/Security & Identity/Messages/Messages.App/Jwt/TokenProviderOptions.cs
432
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
33.3
85
0.524024
[ "Apache-2.0" ]
HaloImageEngine/EmpowerClaim-hotfix-1.25.1
EmpowerBusiness/IW_Man_glOutOfBalanceJournals_Result.cs
666
C#
#region Copyright & License /* Copyright (c) 2022, Integrated Solutions, Inc. 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, t...
59.361111
754
0.797847
[ "BSD-3-Clause" ]
ISI-Extensions/ISI.Extensions
src/ISI.Extensions/Enum/Enum_ParseKey.cs
2,137
C#
using Newtonsoft.Json; namespace JdPay.Data.Request { public class JdWithdrawBaseReq { public JdWithdrawBaseReq(string customerNo) { this.CustomerNo = customerNo; } /// <summary> /// 提交者会员号 customer_no yes String(24) 提交者会员号或企业会员或个人会员 /// </summary> ...
24.555556
62
0.58371
[ "MIT" ]
lousaibiao/JdPayWebApi
JdPay.Data/Request/JdWithdrawBaseReq.cs
486
C#
using System; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.UI; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using petrus.Data; [assembly: HostingStartup(typeof(petrus.Areas...
29.285714
80
0.749593
[ "MIT" ]
truongkimson/petrus
petrus/Areas/Identity/IdentityHostingStartup.cs
617
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.Win32.SafeHandles; using System.Diagnostics; namespace System.Security.Cryptography { public pa...
36.738636
104
0.579029
[ "MIT" ]
Acidburn0zzz/corefx
src/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/DSACng.cs
3,233
C#
using FoxTool.Fox.Types.Values; namespace FoxTool.Tpp.Classes { public class ChCharacterInstance : Data { // Static properties public FoxEntityPtr Factory { get; set; } public FoxEntityPtr Params { get; set; } public FoxUInt32 Size { get; set; } } }
23.615385
50
0.612378
[ "MIT" ]
Atvaark/FoxTool
FoxTool/Tpp/Classes/ChCharacterInstance.cs
307
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace LetterGame { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void ...
22.217391
65
0.612524
[ "BSD-2-Clause" ]
erenright/LetterGame
LetterGame/Program.cs
513
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using FatturaElettronica.FatturaElettronicaBody.DatiGenerali; using FatturaElettronica.Tabelle; namespace Tests { [TestClass] public class DatiRitenutaValidator: BaseClass<DatiRitenuta, FatturaElettronica.Validators.DatiRitenutaValidator> { [Test...
29.5
116
0.635997
[ "BSD-3-Clause" ]
MassimoLinossi/FatturaElettronica.NET
Test/DatiRitenutaValidator.cs
1,241
C#
using System; using System.Collections.Generic; using System.Runtime.CompilerServices; namespace google.maps { [Imported] public partial class GroundOverlay : MVCObject { /// <summary> /// Creates a ground overlay from the provided image URL and its LatLngBounds. The image is sca...
32.189655
182
0.573648
[ "MIT" ]
BTDevelop/Serenity
Serenity.Script.Imports/GoogleMaps/Overlays/GroundOverlay.cs
1,869
C#
namespace Examples.InheritanceAndPolymorphism { public class BaseCar { private readonly int maxSpeed; private int currSpeed; public BaseCar(int max) { maxSpeed = max; } protected BaseCar() { maxSpeed = 55; } publi...
19.458333
69
0.496788
[ "MIT" ]
luigiberrettini/c-sharp-basics
InheritanceAndPolymorphism/BaseCar.cs
467
C#
using System.ComponentModel; using AViews = Android.Views; using Xamarin.Forms; using Xamarin.Forms.ControlGallery.Android; using Xamarin.Forms.Controls.Issues; using Xamarin.Forms.Platform.Android; using AndroidX.Core.View; using AndroidX.Core.View.Accessibility; [assembly: ExportEffect(typeof(ContentDescriptionEffe...
27.087719
103
0.779145
[ "MIT" ]
AlleSchonWeg/Xamarin.Forms
Xamarin.Forms.ControlGallery.Android/ContentDescriptionEffectRenderer.cs
1,546
C#
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using System; namespace ASP.NET_Core_CRUD_Web_App.Data.Migrations { public partial class CreateIdentitySchema : Migration { protected override void Up(MigrationBuilder migrationBuilder) { ...
43.149321
122
0.499161
[ "MIT" ]
yousifgarabet/ASP.NET-Core-CRUD-Web-App
Data/Migrations/00000000000000_CreateIdentitySchema.cs
9,538
C#
using OpenQA.Selenium; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Blog.UI.Tests.Pages.HomePage { public partial class HomePage { public IWebElement Logo { get { return thi...
22.163636
117
0.47662
[ "MIT" ]
ilian790112/My-Blog-with-automated-tests
TestCommit/Blog.UI.Tests/Pages/HomePage/HomePageMap.cs
1,221
C#
using System; using Vts.Common; namespace Vts.FemModeling.MGRTE._2D.SourceInputs { /// <summary> /// External line source /// </summary> public class ExtLineSourceInput : IExtFemSourceInput { /// <summary> /// General constructor for external line source /// </s...
29.928571
61
0.495227
[ "MIT" ]
acs3235/VTS
src/Vts/FemModeling/MGRTE/2D/DataStructures/SourceInputs/ExternalSourceInputs/ExtLineSourceInput.cs
1,678
C#
using System; using System.Collections.Generic; using System.Text; using Discord; using Discord.WebSocket; namespace Lomztein.Moduthulhu.Core.Extensions { /// <summary> /// Contains a bunch of utility extension methods for various Discord objects. /// </summary> public static class DiscordExtensions ...
29.461538
136
0.570757
[ "MIT" ]
drcd/Moduthulhu
Core/Extensions/DiscordExtensions.cs
1,917
C#
#region Header /** * JsonData.cs * Generic type to hold JSON data (objects, arrays, and so on). This is * the default type returned by JsonMapper.ToObject(). * * The authors disclaim copyright to this source code. For more details, see * the COPYING file included with this distribution. **/ #endregion usin...
26.171642
78
0.490977
[ "Unlicense" ]
EleBrain/-CS-ZWJsonEditor
0other/LitJson/JsonData.cs
24,549
C#
using System; using System.Collections.Generic; namespace ETPKLDivLibrary{ class TPDict{ private Dictionary<int, PatternCounts> _q_counts; private Dictionary<int, PatternList> _patterns; private Dictionary<int, BorderPatternList> _border_patterns; public TPDict(List<int[,]> input_samples, List<int> ...
32.225806
116
0.724725
[ "MIT" ]
amidos2006/ETPKLDiv
C#/code/TPDict.cs
999
C#
namespace YAMP { /// <summary> /// This is the class representing the *= operator. /// </summary> class MultiplyAssignmentOperator : AssignmentPrefixOperator { public MultiplyAssignmentOperator() : base(new MultiplyOperator()) { } public override Operato...
21.684211
63
0.575243
[ "BSD-3-Clause" ]
FlorianRappl/YAMP
YAMP.Core/Operators/AssigmentOperators/MultiplyAssignmentOperator.cs
414
C#
// Copyright (c) Microsoft Corporation, Inc. All rights reserved. // Licensed under the MIT License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.AspNet.Identity { /// <summary> /// Return result for IPasswordHasher /// </summary> public enu...
27.846154
109
0.551105
[ "MIT" ]
Sinoprise/ASP.NET-Identity
src/Microsoft.AspNet.Identity.Core/PasswordVerificationResult.cs
726
C#
using System; using System.Collections.Generic; namespace PoolManager.Domains.Pools { public class GetVacantInstancesResult { public GetVacantInstancesResult(IEnumerable<Guid> vacantInstances) { VacantInstances = vacantInstances; } public IEnumerable<Guid> VacantIn...
21.5625
74
0.684058
[ "MIT" ]
charleszipp/service-fabric-dotnet-pool-manager
src/PoolManager.Domains.Pools/GetVacantInstances/GetVacantInstancesResult.cs
347
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace FluentTester.Models { public class ExternalLoginConfirmationViewModel { [Required] [Display(Name = "Email")] public string Email { get; set; } } public class ExternalLoginListViewModel ...
27.530973
110
0.588557
[ "MIT" ]
vince1023/FluentTester
FluentTester/FluentTester/Models/AccountViewModels.cs
3,113
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Drawing; using DocumentFormat.OpenXml.Framework; using DocumentFormat.OpenXml.Office2010.Drawing.ChartDrawin...
43.606133
165
0.634103
[ "MIT" ]
yangzhinong/Open-XML-SDK
src/DocumentFormat.OpenXml/GeneratedCode/schemas_openxmlformats_org_drawingml_2006_chartDrawing.g.cs
127,986
C#
using System; using Administrator.Common; using Administrator.Database; using Administrator.Services; using Discord; using Discord.WebSocket; using Microsoft.Extensions.DependencyInjection; using Qmmands; namespace Administrator.Commands { public sealed class AdminCommandContext : CommandContext, IDisposable {...
30.471698
131
0.674303
[ "MIT" ]
Quahu/Administrator
Administrator/Commands/AdminCommandContext.cs
1,615
C#
using BEPUphysics.Entities; using BEPUphysics.Entities.Prefabs; using BEPUutilities; namespace BEPUphysicsDemos.Demos.Extras { /// <summary> /// Demo showing a tower of blocks being smashed by a sphere. /// </summary> public class IncomingDemo : StandardDemo { /// <summary> ...
31.648148
73
0.42715
[ "MIT" ]
RossNordby/bepuphysics1int
BEPUphysicsDemos/Demos/Extras/IncomingDemo.cs
1,711
C#
using LinkedData.Helpers; using Sitecore.Data.Items; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using VDS.RDF; namespace LinkedData { public class SitecoreNode { private readonly INode _node; private Item _sitecoreItem; ...
20.2
85
0.547383
[ "MIT" ]
Adamsimsy/Sitecore.CloudBlobStorageProvider
LinkedData/SitecoreNode.cs
709
C#
using Newbe.Mahua; using System.Collections.Generic; namespace Newbe.Mahua.Plugins.telegra { public class MyMenuProvider : IMahuaMenuProvider { public IEnumerable<MahuaMenu> GetMenus() { return new[] { new MahuaMenu { ...
21.423077
52
0.393178
[ "MIT" ]
FirmianaMarsili/QQBot-Pixiv
telegra/Newbe.Mahua.Plugins.telegra/MyMenuProvider.cs
575
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AlibabaCloud.OSS.Models { public class DeleteBucketLoggingRequest : TeaModel { /// <summary> /// BucketName /// </summary> [NameInMap("Bucke...
20.363636
61
0.629464
[ "Apache-2.0" ]
18730298725/alibabacloud-oss-sdk
csharp/core/Models/DeleteBucketLoggingRequest.cs
448
C#
using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using Dapper; public class ProductRepository { private string connectionString; public ProductRepository() { connectionString = @"Server=localhost\SQLEXPRESS;Database=master;Trusted_Connection=True...
29.7
140
0.56271
[ "MIT" ]
phamhuyhoang95/online-store-dotnetcore
Database/RespositoryImpl/ProductRespository.cs
2,376
C#
using System; namespace BPNetwork { public static class IMath { private static readonly Random RANDOM = new Random(); public static double GaussianRandomDistributed { get { var u1 = RANDOM.NextDouble(); var u2 = RANDOM.NextDouble...
25.464286
72
0.502104
[ "Apache-2.0" ]
WNJXYK/Tank_AI
Assets/Control/NeuralNetwork/IMath.cs
715
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Accord.MachineLearning; namespace ML.TypingClassifier.Models { public class Classification { public KMeansClusterCollection Clusters { get; internal set; } } }
21.846154
71
0.71831
[ "MIT" ]
joshuadeleon/typingclassifier
ML.TypingClassifier/Models/Classification.cs
286
C#
using System.Collections.Generic; namespace Amethyst.Subscription.Abstractions { public interface IStreamEvent { object Event { get; } DeserializationStatus Status { get; } IReadOnlyCollection<KeyValuePair<string, object>> Metadata { get; } } }
21.769231
75
0.689046
[ "Apache-2.0" ]
amethyst-pro/subscription
Amethyst.Subscription/src/Amethyst.Subscription.Abstractions/IStreamEvent.cs
283
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using Silk.NET.Core.Attributes; #pragma warning disable 1591 namespace Silk.NET.OpenCL.Extensions.INTEL { [NativeName("Name", "cl_va_api_device_set_intel")] ...
27.666667
71
0.722892
[ "MIT" ]
Ar37-rs/Silk.NET
src/OpenCL/Extensions/Silk.NET.OpenCL.Extensions.INTEL/Enums/VaApiDeviceSet.gen.cs
581
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> //--...
42.891892
185
0.603655
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
fraguada/SampleCsCefSharpVue
SampleCsCefSharpVuePlugin/Properties/Resources.Designer.cs
3,176
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary>Just an interface to call the relevant game session methods</summary> public class Overlay : MonoBehaviour { // Cached references GameSession session; [Tooltip("Button press sound")] [SerializeField] AudioClip...
22.589744
82
0.641317
[ "MIT" ]
LucRosset/Match-3
Assets/Scripts/Overlay.cs
883
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 "li...
34.451613
109
0.67088
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/MediaLive/Generated/Model/Internal/MarshallTransformations/OutputLocationRefMarshaller.cs
2,136
C#
using CommandLine; using System; namespace GVFS.CommandLine { [Verb(UpgradeVerbName, HelpText = "Checks for new GVFS release, downloads and installs it when available.")] public class UpgradeVerb : GVFSVerb.ForNoEnlistment { private const string UpgradeVerbName = "upgrade"; publi...
31.25
169
0.565333
[ "MIT" ]
Andrea-MariaDB-2/VFSForGit
GVFS/GVFS/CommandLine/UpgradeVerb.cs
1,500
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> //--...
42.654762
204
0.599498
[ "MIT" ]
padesso/duality
Source/Plugins/EditorModules/UndoHistoryView/Properties/Resources.Designer.cs
3,585
C#
using FavoDeMel.Domain.Dto; using FavoDeMel.Domain.Querys.Base; using System; namespace FavoDeMel.Domain.Querys.Comanda.Consultas { public class ObterComandaQuery : ObterPorIdQuery<ComandaDto> { public ObterComandaQuery(Guid id) : base(id) { } } }
20.428571
64
0.692308
[ "MIT" ]
fernandovictorTI/processo-seletivo-ewave-arquiteto-fev-2021
api/src/FavoDeMel.Domain/Querys/Comanda/Consultas/ObterComandaQuery.cs
288
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.Buffers; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Te...
42.505698
259
0.497738
[ "MIT" ]
1shekhar/runtime
src/libraries/System.Text.Json/tests/Utf8JsonReaderTests.TryGet.cs
59,678
C#
// <copyright file="Devices.cs" company="3M"> // Copyright (c) 3M. All rights reserved. // </copyright> using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Azure.Devices; using Microsoft.Azure.Devices.Shared; using Mmm.Iot.Common.Services.Config; using Mmm.I...
39.726027
187
0.628707
[ "MIT" ]
JonathanAsbury-ACS/azure-iot-platform-dotnet-1
src/services/iothub-manager/Services/Devices.cs
11,600
C#
using System; #if NET452 using System.Data.SqlClient; #else using Microsoft.Data.SqlClient; #endif using Xunit; using Serilog.Sinks.MSSqlServer.Tests.TestUtils; using Serilog.Sinks.MSSqlServer.Platform.SqlClient; namespace Serilog.Sinks.MSSqlServer.Tests.Platform.SqlClient { [Trait(TestCategory.TraitName, TestCat...
26
84
0.595634
[ "Apache-2.0" ]
serilog-mssql/serilog-sinks-mssqlserver
test/Serilog.Sinks.MSSqlServer.Tests/Sinks/MSSqlServer/Platform/SqlClient/SqlCommandWrapperTests.cs
964
C#
// Copyright (c) Microsoft. 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.Linq; using System.Threading; using System.Threading.Tasks; using System.Xml.Linq; using Microsoft.CodeAnalysis.Editor.CSharp.Chan...
30.884984
171
0.517637
[ "Apache-2.0" ]
TronsGuitar/roslyn
src/EditorFeatures/CSharpTest/ChangeSignature/RemoveParametersTests.cs
9,669
C#
using Microsoft.EntityFrameworkCore.Migrations; using System; using System.Collections.Generic; namespace BTCPayServer.Migrations { public partial class PaymentAccounted : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<bool>( ...
26.307692
71
0.593567
[ "MIT" ]
2pac1/btcpayserver
BTCPayServer/Migrations/20171105235734_PaymentAccounted.cs
686
C#
using System; namespace TaxCalculator.Services.InputOutput.Implementation { public class ConsoleReader : IReader { public string ReadLine() => Console.ReadLine(); } }
18.272727
59
0.656716
[ "MIT" ]
LuGeorgiev/CSharpSelfLearning
SimpleTaxCalculator/TaxCalculator.Services/InputOutput/Implementation/ConsoleReader.cs
203
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.Win32.SafeHandles; using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Security; using System.Security.Access...
36.098485
167
0.554739
[ "MIT" ]
AUTOMATE-2001/runtime
src/libraries/Microsoft.Win32.Registry/src/Microsoft/Win32/RegistryKey.cs
28,590
C#
using System; using Perpetuum.Deployers; using Perpetuum.EntityFramework; using Perpetuum.ExportedTypes; using Perpetuum.Players; using Perpetuum.Units; namespace Perpetuum.Zones.Teleporting { public class MobileTeleportDeployer : ItemDeployer { private readonly TeleportWorldTargetHelper _worldTargetHe...
30.597015
136
0.631707
[ "MIT" ]
LoyalServant/PerpetuumServerCore
Perpetuum/Zones/Teleporting/MobileTeleportDeployer.cs
2,050
C#