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.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using AutoMapper;
using AdventureWorks.Application.DataEngine.Production.WorkOrder.Queries.GetWorkOrders;
using AdventureWorks.Domain;
using MediatR;
using Entities = AdventureWorks.Domain.Entities.Production;
namespace AdventureW... | 37.181818 | 115 | 0.688875 | [
"Unlicense"
] | CodeSwifterGit/adventure-works | src/AdventureWorks.Application/DataEngine/Production/WorkOrder/Commands/UpdateWorkOrder/UpdateWorkOrderSetCommandHandler.cs | 1,636 | C# |
using Newtonsoft.Json;
using ShuftiPro.Enums;
namespace ShuftiPro.Contracts.Abstractions
{
interface IShuftiProFeedbackBase : IShuftiProReference
{
[JsonProperty("event")]
ShuftiProEvent Event { get; set; }
[JsonProperty("country")]
string Country { get; set; }
[JsonP... | 35.777778 | 95 | 0.698758 | [
"MIT"
] | Psmaryan/ShuftiPro.Net | src/ShuftiPro/Contracts/Abstractions/IShuftiProFeedbackBase.cs | 1,290 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class DataConfig_Mineral
{
public readonly string id;
public readonly string name;
public readonly string spriteName;
public int atack;
public int durability;
} | 22.307692 | 38 | 0.768966 | [
"MIT"
] | kompyang/UnityGamePlayPocketLab | CraftRPG/Assets/Scripts/dataConfig/DataConfig_Mineral.cs | 292 | C# |
namespace Hangfire.Configuration
{
public class CreateServerConfiguration
{
public string StorageConnectionString { get; set; }
public string SchemaCreatorConnectionString { get; set; }
public string Name { get; set; }
public string Server { get; set; }
... | 33.55 | 65 | 0.611028 | [
"MIT"
] | Teleopti/HangfireConfiguration | Hangfire.Configuration/CreateServerConfiguration.cs | 671 | C# |
using System;
namespace SmtpPilot.Server.Conversation
{
public struct Mailbox : IEquatable<Mailbox>
{
public static Mailbox Parse(ReadOnlySpan<char> mailbox)
{
// Determine address format and limits.
int startLocal = 0, endLocal = 0;
int startDomain = 0, end... | 37.280576 | 158 | 0.501158 | [
"MIT"
] | cmcquillan/SMTPileIt | src/SmtpPilot.Server/Conversation/Mailbox.cs | 5,184 | 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("Gr... | 37.594595 | 84 | 0.744069 | [
"MIT"
] | vesopk/Programming-Basics-Problems | DataTypesAndValues/Greetings/Properties/AssemblyInfo.cs | 1,394 | C# |
using System;
using System.Collections.Generic;
namespace TensorShader.Operators.Connection1D {
/// <summary>ストライド逆プーリング</summary>
internal class StrideUnpooling : Operator {
/// <summary>チャネル数</summary>
public int Channels { private set; get; }
/// <summary>ストライド</summary>
pub... | 33.468085 | 148 | 0.588048 | [
"MIT"
] | tk-yoshimura/TensorShader | TensorShader/Operators/Connection1D/Pool/StrideUnpooling.cs | 1,661 | C# |
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.CommandLine;
using System.CommandLine.Invocation;
using System.Threading.Tasks;
using Microsoft.DotNet.Interactive;
u... | 36.166667 | 112 | 0.526602 | [
"MIT"
] | AngelusGi/interactive | samples/extensions/ClockExtension/ClockKernelExtension.cs | 2,387 | C# |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/timestamp.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg ... | 33.120332 | 200 | 0.628289 | [
"Apache-2.0"
] | daugraph/tensorflow-dev | google/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs | 7,982 | C# |
namespace Improbable.Gdk.Guns
{
public interface IRecoil
{
void Recoil(bool aiming);
void SetRecoilSettings(GunSettings.RecoilSettings hipRecoilSettings,
GunSettings.RecoilSettings aimRecoilSettings);
}
}
| 22.454545 | 76 | 0.700405 | [
"MIT"
] | Dechichi01/gdk-for-unity-fps-starter-project | workers/unity/Packages/com.improbable.gdk.guns/Behaviours/IRecoil.cs | 249 | 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.
namespace Microsoft.DotNet.XHarness.CLI.CommandArguments.Apple;
internal class ListInstalledArgument : SwitchArgum... | 31.785714 | 71 | 0.748315 | [
"MIT"
] | jkoritzinsky/xharness | src/Microsoft.DotNet.XHarness.CLI/CommandArguments/Apple/Arguments/ListInstalledArgument.cs | 447 | C# |
using System;
namespace Hubx.Net.Identity
{
public class Class1
{
}
}
| 9.333333 | 27 | 0.619048 | [
"MIT"
] | victorioferrario/hubx-identity | hubx/Hubx.Net.Identity/Class1.cs | 86 | C# |
namespace Model{
public class Subject{
public int? id { get; set; }
public string name { get; set; }
public Subject()
{
}
public Subject(int? id, string name)
{
this.id = id;
this.name = name;
}
}
} | 18.5625 | 44 | 0.444444 | [
"MIT"
] | g-gar/DAL | examples/school/model/src/Subject.cs | 299 | C# |
using System.Linq;
using NSubstitute;
using NUnit.Framework;
using NUnit.VisualStudio.TestAdapter.NUnitEngine;
// ReSharper disable StringLiteralTypo
namespace NUnit.VisualStudio.TestAdapter.Tests.NUnitEngineTests
{
public class NUnitDiscoveryTests
{
private ITestLogger logger;
private IAdapte... | 86.378329 | 339 | 0.682957 | [
"MIT"
] | ovebastiansen/nunit3-vs-adapter | src/NUnitTestAdapterTests/NUnitEngineTests/NUnitDiscoveryTests.cs | 94,068 | C# |
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org)
// Copyright (c) 2018-2021 Stride and its contributors (https://stride3d.net)
// Copyright (c) 2011-2018 Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// See the LICENSE.md file in the project root for full license information.
u... | 31.736842 | 81 | 0.723051 | [
"MIT"
] | Ethereal77/stride | sources/engine/Stride.Rendering/Rendering/Background/RenderBackground.cs | 603 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | 39.911765 | 85 | 0.731024 | [
"MIT"
] | pub-comp/no-sql | NoSql.Core/Properties/AssemblyInfo.cs | 1,360 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using MvcContrib.Samples.UI.Models;
namespace MvcContrib.Samples.UI.Services
{
public class CompanyService
{
private static IList<Company> cachedCompanies = new List<Company>
{
new Company { Id = Guid.NewGuid(), Name... | 26.076923 | 75 | 0.60177 | [
"Apache-2.0"
] | ignatandrei/MvcContrib | src/Samples/MvcContrib.Samples.UI/Services/CompanyService.cs | 678 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager.Sql.Models;
namespace Azure... | 59.539851 | 352 | 0.639549 | [
"MIT"
] | AME-Redmond/azure-sdk-for-net | sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionBackupsOperations.cs | 56,027 | 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.Syntax;
using Microsoft.CodeAnalysis.CSharp.Test.Utilities;
... | 43.935551 | 177 | 0.601287 | [
"MIT"
] | Acidburn0zzz/roslyn | src/Compilers/CSharp/Test/IOperation/IOperation/IOperationTests_IConditionalOperation.cs | 21,135 | C# |
//**********************************************************************************
//* フレームワーク・テストクラス(D層)
//**********************************************************************************
// テスト用サンプルなので、必要に応じて流用 or 削除して下さい。
//**********************************************************************************
//*... | 24.784615 | 97 | 0.573444 | [
"Apache-2.0"
] | OpenTouryoProject/OpenTouryo | root/programs/CS/Samples/2CS_sample/GenDaoAndBatUpd_sample/Dao/DaoProducts.cs | 22,911 | C# |
using System;
using Foundation;
using Shopping.DemoApp.iOS.Extensions;
using Shopping.DemoApp.Models;
using Shopping.DemoApp.Services;
using UIKit;
namespace Shopping.DemoApp.iOS.Controllers
{
public partial class ItemDetailViewController : UIViewController
{
public SaleItem SaleItem { get; set; }
public Ite... | 27.698113 | 98 | 0.726158 | [
"MIT"
] | Bhaskers-Blu-Org2/XamarinAzure_ShoppingDemoApp | Shopping.DemoApp.iOS/Controllers/ItemDetailViewController.cs | 1,468 | C# |
namespace ApiFox.Areas.HelpPage
{
/// <summary>
/// Indicates whether the sample is used for request or response
/// </summary>
public enum SampleDirection
{
Request = 0,
Response
}
} | 20.272727 | 68 | 0.600897 | [
"MIT"
] | Mrkebubun/ApiFox | ApiFox/Areas/HelpPage/SampleGeneration/SampleDirection.cs | 223 | C# |
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using TesteAPI.Repositorio.Contexto;
namespace TesteAPI.Repositorio.Migrations
{
... | 33.37931 | 81 | 0.506887 | [
"MIT"
] | rafael-act/CastGroup-Teste | TesteAPI/TesteAPI.Repositorio/Migrations/20210928180512_PrimeiraVersaoBaseDados.Designer.cs | 2,906 | C# |
/// This code was generated by
/// \ / _ _ _| _ _
/// | (_)\/(_)(_|\/| |(/_ v1.0.0
/// / /
/// <summary>
/// PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
///
/// SmsCommandResource
/// </summary>
using Newtonsoft.Json;
using System;
using Sy... | 46.73012 | 149 | 0.557314 | [
"MIT"
] | BrimmingDev/twilio-csharp | src/Twilio/Rest/Supersim/V1/SmsCommandResource.cs | 19,393 | C# |
using System;
using System.Xml.Serialization;
using Top.Api.Domain;
namespace Top.Api.Response
{
/// <summary>
/// TmallProductTemplateGetResponse.
/// </summary>
public class TmallProductTemplateGetResponse : TopResponse
{
/// <summary>
/// 见SpuTemplateDO说明
/// </summary>
... | 21.684211 | 62 | 0.623786 | [
"MIT"
] | objectyan/MyTools | OY.Solution/OY.TopSdk/Response/TmallProductTemplateGetResponse.cs | 418 | C# |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace MegaCasting.WPF
{
/// <summary>
/// Logique d'interaction pour App.xaml
/// </summary>
public partial class App : Application
... | 18.555556 | 43 | 0.706587 | [
"Apache-2.0"
] | MegaProduction/MegaCastingClientLourd | MegaCasting.WPF/App.xaml.cs | 336 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace MovieManager.Core.Entities
{
public class Category : EntityObject
{
[Required]
public String CategoryName { get; set; }
public ICollection<Movie> Movies { get; set; }
public... | 20 | 54 | 0.62 | [
"MIT"
] | MIGU-1/csharp_samples_ef_uow_moviemanager-template | source/MovieManager.Core/Entities/Category.cs | 402 | C# |
using System;
using System.Collections.Generic;
namespace Bing.Swashbuckle.Internals
{
/// <summary>
/// 内部缓存
/// </summary>
internal static class InternalCache
{
/// <summary>
/// 枚举字典
/// </summary>
public static Dictionary<Type, List<(int Value, string Name, stri... | 24.722222 | 101 | 0.606742 | [
"MIT"
] | bing-framework/Bing.Extensions.Swashbuckle | src/Bing.Extensions.Swashbuckle/Bing/Swashbuckle/Internals/InternalCache.cs | 463 | C# |
using UnityEngine;
using System.IO;
[AddComponentMenu("Modifiers/Path Deform")]
public class MegaPathDeform : MegaModifier
{
public float percent = 0.0f;
public float stretch = 1.0f;
public float twist = 0.0f;
public float rotate = 0.0f;
public MegaAxis axis = MegaAxis.X;
public bool ... | 28.197987 | 108 | 0.626562 | [
"MIT"
] | oliverellmers/UnityARKitDetection | Assets/Mega-Fiers/Scripts/MegaFiers/Modifiers/MegaPathDeform.cs | 8,403 | C# |
//---------------------------------------------------------------------
// <copyright file="AliasedSlot.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//
// @owner Microsoft
// @backupOwner Microsoft
//---------------------------------------------------------... | 37.697248 | 140 | 0.609637 | [
"MIT"
] | Abdalla-rabie/referencesource | System.Data.Entity/System/Data/Mapping/ViewGeneration/CqlGeneration/AliasedSlot.cs | 4,109 | 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>
//--... | 34.387097 | 151 | 0.581614 | [
"MIT"
] | 1bastien1/CSA | csa-master/SuperVision/Properties/Settings.Designer.cs | 1,068 | C# |
using System;
namespace Net.Mapper
{
[AttributeUsage(AttributeTargets.Property,AllowMultiple =false)]
public class NoMapAttribute:Attribute
{
}
}
| 16.4 | 68 | 0.72561 | [
"MIT"
] | kelessal/net-mapper | Net.Mapper/NoMapAttribute.cs | 166 | C# |
using System;
using System.Drawing;
using System.Threading;
using System.Collections.Generic;
using Animatroller.Framework;
using Animatroller.Framework.Extensions;
using Expander = Animatroller.Framework.Expander;
using Animatroller.Framework.LogicalDevice;
using Import = Animatroller.Framework.Import;
using Effect =... | 53.135593 | 165 | 0.592855 | [
"Unlicense",
"MIT"
] | HakanL/animatroller | Animatroller/src/Scenes/Old/ReallyOld/LORScene.cs | 15,677 | C# |
// Copyright (c) 2021 DXNET - Pomianowski Leszek & Contributors
// Copyright (c) 2010-2019 SharpDX - Alexandre Mutel & SharpDX 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 the Soft... | 36.057971 | 83 | 0.632637 | [
"MIT"
] | lepoco/dxnet | Modules/DXNET.Direct2D1/Effects/Atlas.cs | 2,490 | C# |
using MediatR;
using System.Collections.Generic;
namespace UsersMgmt.App.Security.Commands.DeleteAppUser
{
public class DeleteAppUserCommand : IRequest<List<string>>
{
public string Id { get; set; }
}
}
| 20.454545 | 62 | 0.711111 | [
"MIT"
] | nagasudhirpulla/users_mgmt_csharp | src/UsersMgmt.App/Security/Commands/DeleteAppUser/DeleteAppUserCommand.cs | 227 | 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 System.Runtime.InteropServices;
internal static partial class Interop
{
internal static partial class Sys
{
[GeneratedDllImport(Libraries.SystemN... | 32.133333 | 132 | 0.742739 | [
"MIT"
] | AnudeepGunukula/runtime | src/libraries/Common/src/Interop/Unix/System.Native/Interop.MkDir.cs | 482 | C# |
using System;
namespace _09.CharsToString
{
class Program
{
static void Main(string[] args)
{
var s1 = Console.ReadLine();
var s2 = Console.ReadLine();
var s3 = Console.ReadLine();
Console.WriteLine($"{s1}{s2}{s3}");
}
}
}
| 18.235294 | 47 | 0.496774 | [
"MIT"
] | Miroslav-Miro/SoftUni-Software-Engineering | CSharpFundamental/Data Types and Variables - Lab/09.CharsToString/Program.cs | 312 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DiagramaClasse
{
class PFR : Continuo
{
}
} | 13.909091 | 33 | 0.712418 | [
"MIT"
] | Frosky01/DiagramaClasseTCC | DiagramaClasse/PFR.cs | 155 | C# |
using System.Text.Json.Serialization;
namespace Essensoft.Paylink.Alipay.Response
{
/// <summary>
/// AlipayOverseasTravelFliggyAuthorityQueryResponse.
/// </summary>
public class AlipayOverseasTravelFliggyAuthorityQueryResponse : AlipayResponse
{
/// <summary>
/// 错误码
/// ... | 25.344828 | 82 | 0.578231 | [
"MIT"
] | Frunck8206/payment | src/Essensoft.Paylink.Alipay/Response/AlipayOverseasTravelFliggyAuthorityQueryResponse.cs | 777 | C# |
namespace IOCPlatform
{
partial class FrmMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <para... | 46.361878 | 157 | 0.59453 | [
"MIT"
] | maftooh/ICO-Platform-Client | Src/IOCPlatform/IOCPlatform.UI/View/FrmMain.Designer.cs | 16,785 | C# |
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Gov.Jag.Embc.Interfaces.Models
{
using Newtonsoft.Json;
using System.Linq; using System.ComponentModel.DataAnnot... | 39.898374 | 1,743 | 0.622517 | [
"Apache-2.0"
] | CodingVelocista/embc-ess | embc-interfaces/Dynamics-Autorest/Models/MicrosoftDynamicsCRMtimezonerule.cs | 9,815 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.In... | 40.837938 | 246 | 0.514179 | [
"MIT"
] | Gary-Zh/SqlClient | src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObject.cs | 165,557 | 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.
namespace Microsoft.Diagnostics.Runtime.DacInterface
{
public struct ExtendedModuleData
{
public in... | 33.526316 | 71 | 0.715856 | [
"MIT"
] | Bhaskers-Blu-Org2/clrmd | src/Microsoft.Diagnostics.Runtime/src/DacInterface/Structs/ExtendedModuleData.cs | 639 | C# |
using System;
namespace eth.Common
{
public interface IHttpClientTimeout
{
TimeSpan HttpClientTimeout { get; set; }
}
}
| 15.1 | 49 | 0.615894 | [
"Apache-2.0"
] | etherealko/StasyanBot | src/eth.Common/IHttpClientTimeout.cs | 153 | C# |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
public class GCodeMeshGenerator
{
private float plasticwidth = 0.6f;
public int layercluster = 1;
internal int createdLayers;
private Que... | 47.178368 | 369 | 0.533765 | [
"MIT"
] | lsls421/ExtendedPrinter-Unity | ExtendedPrinter/Assets/Extended-Printer/Scripts/GCodeMeshGenerator.cs | 24,865 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Ada.Framework.Util.Core.Editions.TO
{
/// <summary>
/// Entrega el resultado de la edición
/// </summary>
/// <remarks>
/// Registro de versiones:
///
/// 1.0 02/0... | 33.2 | 109 | 0.523494 | [
"MIT"
] | adasoluciones/Util.Core | Source/Editions/TO/ResultadoEdicion.cs | 1,674 | C# |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OfficeOpenXml;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace EPPlusTest
{
[TestClass]
public class DTS_FailingTests
{
[TestMethod]
public void DeleteWorksheetWithRe... | 29.04 | 75 | 0.546832 | [
"MIT"
] | Afonsof91/Magicodes.IE | src/EPPlus/EPPlusTest/DTS_FailingTests.cs | 1,454 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtim... | 41.928295 | 310 | 0.583014 | [
"MIT"
] | alexdougie/SqlClient | src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/Interop/SNINativeMethodWrapper.cs | 43,290 | C# |
using FluentAssertions;
using GarageManager.Data.Repository;
using GarageManager.Domain;
using MockQueryable.Moq;
using Moq;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace GarageManager.Services.Tests
{
public class ManufacturerServiceTests : BaseTest
... | 30.296296 | 143 | 0.58965 | [
"MIT"
] | TodorChapkanov/Garage-Manager | Tests/GarageManager.Services.Tests/ManufacturerServiceTests.cs | 2,456 | C# |
using System.Text.Json.Serialization;
namespace Trakx.Common.Sources.Messari.DTOs
{
public partial class StakingStats
{
[JsonPropertyName("staking_yield_percent")]
public double? StakingYieldPercent { get; set; }
[JsonPropertyName("staking_type")]
public string StakingType { g... | 30.4 | 60 | 0.671053 | [
"MIT"
] | fakecoinbase/trakxslashtrakx-tools | src/Trakx.Common/Sources/Messari/DTOs/StakingStats.cs | 762 | C# |
using OpenBots.Core.Settings;
using OpenBots.UI.Forms.Supplement_Forms;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace OpenBots.UI.Forms.Sequence_Forms
{
public partial class frmSequence : Form
{
#region UI Buttons
#region File Actions Tool Strip and Buttons
... | 33.190647 | 113 | 0.531375 | [
"MIT"
] | OpenBotsAI/OpenBots.Studio | OpenBots.Studio/UI/Forms/Sequence Forms/frmSequenceUIButtons.cs | 9,229 | C# |
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*=============================================================================
**
** Class: Assembly
**
** Purpose: For Assembly-related stuff.
**
=============================================================================*/
n... | 21.714286 | 79 | 0.457237 | [
"MIT"
] | pmache/singularityrdk | SOURCE/base/Imported/Bartok/Reflection/Assembly.cs | 608 | C# |
public class Company
{
public Company() { }
public Company(string name, string department, decimal salary)
{
this.Name = name;
this.Department = department;
this.Salary = salary;
}
public string Name { get; set; }
public string Department { get; set; }
public dec... | 21.090909 | 66 | 0.599138 | [
"MIT"
] | BoykoNeov/C-Sharp-OOP-Basics-SoftUni | DefiningClasses/Google/Company.cs | 466 | C# |
// Decompiled with JetBrains decompiler
// Type: System.Fabric.Management.ServiceModel.ServicePackageTypeDigestedServiceTypes
// Assembly: System.Fabric.Management.ServiceModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// MVID: C6D32D4D-966E-4EA3-BD3A-F4CF14D36DBC
// Assembly location: C:\Git\... | 30.979592 | 191 | 0.727931 | [
"MIT"
] | aL3891/ServiceFabricSdk-Contrib | System.Fabric.Management.ServiceModel/ServicePackageTypeDigestedServiceTypes.cs | 1,520 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using X_SMS_REP;
using X_SMS_DAL.Database;
using X_SMS_DAL.Services;
namespace X_SMS_API.AIHelper
{
class PlayerAILogics : IDisposable
{
StockDetail shouldBuy;
StockDetail should... | 38.12114 | 135 | 0.403203 | [
"MIT"
] | imanshu15/x-sms | X-SMS/X-SMS-API/AIHelper/PlayerAILogics.cs | 16,051 | C# |
//-----------------------------------------------------------------------------
// Copyright : (c) Chris Moore, 2020
// License : MIT
//-----------------------------------------------------------------------------
namespace Z0
{
using System;
using System.Runtime.CompilerServices;
using static Root... | 47.615385 | 141 | 0.576019 | [
"BSD-3-Clause"
] | 0xCM/z0 | src/apicore/src/services/ApiIdentityBuilder.cs | 5,571 | C# |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections;
using System.Xml;
using System.Globalization;
using System.Collections.Generic;
using System.Collections.Concurrent;
using Micro... | 62.867257 | 308 | 0.679969 | [
"MIT"
] | Youssef1313/msbuild | src/Deprecated/Engine/Resources/Constants.cs | 14,208 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager.Compute.Models;
namespace A... | 45.44186 | 195 | 0.598089 | [
"MIT"
] | 0rland0Wats0n/azure-sdk-for-net | sdk/compute/Azure.ResourceManager.Compute/src/Generated/UsageOperations.cs | 5,862 | C# |
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Reflection.Emit;
using csfe.compilation;
using Microsoft.SqlServer.Server;
using NUnit.Framework;
namespace csfe.tests
{
[TestFixture]
public class test_compiler
{
[SetUp]
... | 31.084507 | 119 | 0.537381 | [
"Apache-2.0"
] | ralfw/csfe | src/csfe.tests/test_Compiler.cs | 2,209 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CertificateManager.Entities
{
class JavascriptConfigurationHelper
{
}
}
| 16.307692 | 39 | 0.773585 | [
"MIT"
] | corymurphy/CertificateManager | CertificateManager.Entities/JavascriptConfigurationHelper.cs | 214 | C# |
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace EasyLOB.Library.WebApi
{
public class OperationResultResponseException : HttpResponseException
{
#region Methods
public OperationResultResponseException(HttpRequestMessage request, ZOperationResult operationRe... | 27.388889 | 110 | 0.701826 | [
"MIT"
] | EasyLOB/EasyLOB-1 | EasyLOB.Library/EasyLOB.Library.WebApi/OperationResultResponseException.cs | 495 | C# |
// Visual Studio Shared Project
// Copyright(c) Microsoft Corporation
// 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
//
/... | 34.691057 | 148 | 0.538493 | [
"Apache-2.0"
] | Bhaskers-Blu-Org2/PTVS | Common/Product/SharedProject/DataObject.cs | 17,068 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace ActivitiesExample
{
delegate void ActivityScopeHandler(ref ActivityScope activityScope);
public class ActivitySource : IDisposable
{
ActivitySourceRegistry _registry;
volatile IActivityListener[] _listeners;
... | 32.86 | 99 | 0.530128 | [
"MIT"
] | noahfalk/ActivitiesExperiment | ActivitiesExample/BCL/ActivitySource.cs | 3,288 | C# |
using System;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
using EventStore.ClientAPI.Common.Utils;
using EventStore.ClientAPI.Exceptions;
using EventStore.ClientAPI.SystemData;
using EventStore.Core.Authentication;
using EventStore.Core.Bus;
using EventStore.Core.Messages;... | 41.553571 | 124 | 0.707778 | [
"Apache-2.0"
] | shaan1337/EventStore | src/EventStore.ClientAPI.Embedded/EmbeddedSubscription.cs | 2,327 | C# |
using JetBrains.ReSharper.FeaturesTestFramework.Intentions;
using JetBrains.ReSharper.Plugins.Unity.CSharp.Feature.Services.QuickFixes;
using NUnit.Framework;
namespace JetBrains.ReSharper.Plugins.Tests.Unity.CSharp.Intentions.QuickFixes
{
[TestUnity]
public class ConvertCoalescingToConditionalQuickFixAvailab... | 44.625 | 134 | 0.717087 | [
"Apache-2.0"
] | SirDuke/resharper-unity | resharper/resharper-unity/test/src/Unity.Tests/Unity/CSharp/Intentions/QuickFixes/ConvertCoalescingToConditionalQuickFixTests.cs | 1,430 | C# |
using System;
using Newtonsoft.Json;
using Shiny.Infrastructure;
namespace Shiny.Integrations.JsonNet
{
public class JsonNetSerializer : ISerializer
{
public T Deserialize<T>(string value) => JsonConvert.DeserializeObject<T>(value);
public object Deserialize(Type objectType, string value) => ... | 30.866667 | 117 | 0.742981 | [
"MIT"
] | AlexAba/shiny | src/Shiny.Integrations.JsonNet/JsonNetSerializer.cs | 465 | C# |
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Difficulty;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring;
using System;
using System.Collections.Generic;
using System.Linq;
namespace PpCalculator
{
public abstract ... | 33.131313 | 173 | 0.598933 | [
"MIT"
] | SentimentalDesu/StreamCompanion | PpCalculator/PpCalculator.cs | 6,562 | C# |
using System;
namespace VMFParser
{
public class MapProperty
{
/// <summary>
/// Returns the computed boolean of this property.
/// </summary>
public bool Boolean
{
get
{
return String == "1";
}
}
/// <... | 24.898876 | 94 | 0.431859 | [
"MIT"
] | AshkoreDracson/VMF-Parser | VMF Parser/VMF Parser/MapProperty.cs | 2,218 | C# |
using System.Windows;
namespace Kebler.UI.Dialogs
{
public partial class AddTorrentView
{
public AddTorrentView()
{
InitializeComponent();
}
}
} | 16.25 | 40 | 0.579487 | [
"Apache-2.0"
] | 69NEO69/Kebler | src/Kebler.UI/Dialogs/AddTorrentView.xaml.cs | 197 | C# |
namespace PKISharp.WACS.Plugins.ValidationPlugins.Dns
{
class AcmeArguments
{
public string AcmeDnsServer { get; set; }
}
}
| 18.125 | 54 | 0.668966 | [
"Apache-2.0"
] | FuseCP-TRobinson/win-acme | src/main/Plugins/ValidationPlugins/Dns/Acme/AcmeArguments.cs | 147 | C# |
namespace DI.BLL
{
public interface ITestBLL
{
string SayHello();
}
} | 12.857143 | 29 | 0.566667 | [
"MIT"
] | Ran-snow/aspnetcorestudy | DI/BLL/ITestBLL.cs | 92 | C# |
using System;
namespace Web_E_Commerce.Models
{
public class ErrorViewModel
{
public string RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
}
}
| 17.75 | 70 | 0.671362 | [
"MIT"
] | DNADEVELOPERSOFTWARE/PROJETO-E-COMMERCE_2020 | src/Web_E-Commerce/Models/ErrorViewModel.cs | 213 | C# |
using Microsoft.AspNetCore.Mvc;
namespace HairSalon.Controllers
{
public class HomeController : Controller
{
[HttpGet("/")]
public ActionResult Index()
{
return View();
}
}
}
| 15.4 | 44 | 0.5671 | [
"MIT"
] | skillitzimberg/HairSalon.Solution | HairSalon/Controllers/HomeController.cs | 231 | C# |
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Aggregates.Contracts;
using NServiceBus;
using NServiceBus.Settings;
using NServiceBus.Unicast;
using NServiceBus.Unicast.Messages;
namespace Aggregates.Inte... | 33.795181 | 129 | 0.606061 | [
"MIT"
] | ashithraj/Aggregates.NET | src/Aggregates.NET.NServiceBus/Internal/NServiceBusMessaging.cs | 2,807 | C# |
using System;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading;
namespace brotliparser
{
class Program
{
static int Main(string[] args)
{
if (args.Length < 4) return (int) ReturnType.IllegalArgs;
#region 解压指令
//BrotliDecompress
... | 38.27551 | 107 | 0.390829 | [
"MIT"
] | CBGan/BrotliParser | brotliparser/Program.cs | 4,131 | C# |
// <copyright file="StackFrame.cs" company="Microsoft Open Technologies, Inc.">
// Copyright 2011-2013 Microsoft Open Technologies, Inc. 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 cop... | 29.919355 | 79 | 0.607008 | [
"Apache-2.0"
] | 15901213541/-OAuth2.0 | src/Microsoft.Owin.Diagnostics/Views/StackFrame.cs | 1,855 | C# |
using inSSIDer.HTML;
using inSSIDer.UI.Controls;
namespace inSSIDer.UI.Forms
{
partial class FormMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean... | 57.836524 | 174 | 0.642815 | [
"Apache-2.0"
] | akpotter/inSSIDer-2 | MetaScanner/UI/Forms/frmMain.Designer.cs | 39,273 | C# |
using System;
namespace GVFS.Common
{
public class RetryableException : Exception
{
public RetryableException(string message) : base(message)
{
}
}
}
| 16.583333 | 66 | 0.582915 | [
"MIT"
] | Mattlk13/GVFS | GVFS/GVFS.Common/RetryableException.cs | 201 | 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... | 36.058824 | 153 | 0.679935 | [
"Apache-2.0"
] | EbstaLimited/aws-sdk-net | sdk/src/Services/Glue/Generated/Model/Internal/MarshallTransformations/ConcurrentRunsExceededExceptionUnmarshaller.cs | 3,065 | C# |
// <auto-generated />
using System;
using ForeSpark.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
n... | 36.981571 | 125 | 0.445696 | [
"MIT"
] | ali-kiyani/ForeSpark | aspnet-core/src/ForeSpark.EntityFrameworkCore/Migrations/20201126153159_check.Designer.cs | 76,258 | C# |
using Neo.SmartContract.Framework;
using Neo.SmartContract.Framework.Services.Neo;
using Neo.SmartContract.Framework.Services.System;
using Helper = Neo.SmartContract.Framework.Helper;
using System;
using System.ComponentModel;
using System.Numerics;
namespace dapp_nnc
{
public class nnc : SmartContract
{
... | 37.600823 | 135 | 0.475539 | [
"MIT"
] | NewEconoLab/neo-ns | dapp_nnc4.0/nnc.cs | 9,457 | C# |
using System;
using System.Diagnostics;
using System.Threading;
namespace HAL.Simulator
{
/// <summary>
/// This class contains static hooks that can be used by simulators to get specific Data.
/// </summary>
public static class SimHooks
{
private static readonly Stopwatch s_timer = new St... | 31.284314 | 131 | 0.530868 | [
"MIT"
] | Team-1922/OzWPILib.NET | HAL/Simulator/SimHooks.cs | 3,193 | C# |
using System;
using System.IdentityModel.Tokens.Jwt;
using System.IO;
using System.Linq;
using System.Security.Claims;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using CDR.DataHolder.IdentityServer.Services;
using Microsoft.AspNetCore.Authentication;
using Micr... | 41.444444 | 136 | 0.622809 | [
"MIT"
] | CDR-AmirM/mock-data-holder | Source/CDR.DataHolder.IdentityServer.UnitTests/SecurityServiceTests.cs | 9,698 | C# |
using System;
using System.ComponentModel;
using System.Drawing.Design;
using System.Web.UI.WebControls;
using GuruComponents.Netrix.ComInterop;
using GuruComponents.Netrix.UserInterface.TypeEditors;
using DisplayNameAttribute=GuruComponents.Netrix.UserInterface.TypeEditors.DisplayNameAttribute;
using TE=GuruComponents... | 34.056213 | 220 | 0.573886 | [
"MIT"
] | andydunkel/netrix | Netrix2.0/NetRixMain/NetRix/WebEditing/Elements/FormElements/FormElement.cs | 11,511 | C# |
/*
* Copyright 2019 Mikhail Shiryaev
*
* 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... | 28.535714 | 105 | 0.609929 | [
"Apache-2.0"
] | Arvid-new/scada | ScadaWeb/ScadaScheme/ScadaSchemeCommon/CompItem.cs | 2,596 | C# |
using System.Collections.Generic;
using Essensoft.AspNetCore.Payment.Alipay.Response;
namespace Essensoft.AspNetCore.Payment.Alipay.Request
{
/// <summary>
/// mybank.credit.supplychain.creditpay.sellerunsign.query
/// </summary>
public class MybankCreditSupplychainCreditpaySellerunsignQueryRequest : ... | 23.483871 | 149 | 0.56147 | [
"MIT"
] | Msy1989/payment | src/Essensoft.AspNetCore.Payment.Alipay/Request/MybankCreditSupplychainCreditpaySellerunsignQueryRequest.cs | 2,942 | C# |
/* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, 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.... | 35.033223 | 110 | 0.386249 | [
"Apache-2.0"
] | bubdm/Cube.Core | Libraries/Core/Sources/Logger.cs | 10,547 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace Doublel.EntityAccessor.Constructs
{
public interface IUserLevelConstruct
{
int UserId { get; set; }
}
}
| 16.916667 | 43 | 0.70936 | [
"MIT"
] | Olymo/Doublel.EntityAccessor | src/Constructs/IUserLevelConstruct.cs | 205 | C# |
using System;
namespace Common
{
/// <summary>
/// コンソール アプリケーションで発生したエラーを表します。
/// </summary>
public class ConsoleException : Exception
{
/// <summary>終了コードを指定しなかった場合の規定の終了コード</summary>
public const int DefaultExitCode = 1;
/// <summary>
/// 終了コードを取得し... | 32.77381 | 91 | 0.551035 | [
"MIT"
] | TanaUmbreon/EarliestFuhaRanking | Common/ConsoleException.cs | 3,789 | C# |
using Abp.Domain.Repositories;
using Abp.Domain.Services;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WebShop.Product
{
public class ProductManager : DomainService, IProductManager
{
private readonly IR... | 30.142202 | 180 | 0.525795 | [
"MIT"
] | dangminhbk/auction | aspnet-core/src/WebShop.Core/Domain/Product/ProductManager.cs | 6,573 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
namespace Mi... | 51.561644 | 277 | 0.589798 | [
"MIT"
] | AlanFlorance/azure-powershell | src/KubernetesConfiguration/generated/api/Models/Api20220301/Scope.TypeConverter.cs | 7,383 | C# |
using Microsoft.EntityFrameworkCore.Migrations;
namespace EspartoWorld.Data.Migrations
{
public partial class UserCoursesCourseUsers : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ApplicationUserCou... | 39.826087 | 109 | 0.531659 | [
"MIT"
] | antonjekov/EspartoWorld | Data/EspartoWorld.Data/Migrations/20201127150424_User Courses Course Users.cs | 1,834 | C# |
using AutoMapper;
using TodoApp.Infrastructure.Data;
namespace TodoApp.Infrastructure.Mediator
{
public abstract class QueryHandlerBase : HandlerBase
{
protected QueryHandlerBase(ToDoContext context, IMapper mapper)
: base(context)
{
Mapper = mapper;
}
pro... | 21.882353 | 71 | 0.653226 | [
"MIT"
] | fernandoescolar/netcoreconf2020 | src/Infrastructure/Mediator/QueryHandlerBase.cs | 374 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Microsoft.OData.Core;
namespace Simple.OData.Client.V4.Adapter
{
#if SILVERLIGH
class ODataRequestMessage : IODataRequestMessage
#else
class ODataRequestMessage : IODataRequestMessageAsync
#endif
{
... | 25.290909 | 96 | 0.61826 | [
"MIT"
] | GGZORR/OdataSample | Simple.OData.Client.V4.Adapter/ODataRequestMessage.cs | 1,393 | C# |
using UnityEngine;
namespace UnityToolKit
{
// Used to mark an 'int' field as a sorting layer so it will use the SortingLayerDrawer to display in the Inspector window.
public class SortingLayerAttribute : PropertyAttribute
{
}
}
| 24.7 | 127 | 0.736842 | [
"MIT"
] | suntabu/UnityToolKit | SortingLayer/SortingLayerAttribute.cs | 249 | C# |
namespace jIAnSoft.Nami.Channels
{
/// <summary>
/// Message filter delegate
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="msg"></param>
/// <returns></returns>
public delegate bool Filter<in T>(T msg);
/// <summary>
/// Callback method and parameters for a ch... | 30.73913 | 95 | 0.598303 | [
"MIT"
] | jiansoft/nami | Nami/Channels/ISubscribable.cs | 707 | C# |
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
//https://channel9.msdn.com/Blogs/MVP-VisualStudio-Dev/EF-Core-Quick-Starts-ASPNET-Core-in-Visual-Studio-2017
namespace ScheduleService
{
public class Program
{
public static void Main(string[] args)
{
... | 26.130435 | 109 | 0.59401 | [
"MIT"
] | QuinntyneBrown/ScheduleService | Program.cs | 603 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RedCell_S : MonoBehaviour
{
public Vector2 target;
public Vector2 currentPos;
public Vector2 combineTarget;
public Vector2 velocity = Vector2.zero;
public bool move = true;
public float speed;
publi... | 27.96875 | 143 | 0.578771 | [
"MIT"
] | rafalink1996/BodyIdle | Idle Body/Assets/Scripts/RafaTestingScripts/RedCell_S.cs | 1,792 | C# |
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osuTK;
using osuTK.Graphics;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Platform;
usi... | 32.11165 | 115 | 0.53938 | [
"MIT"
] | 123tris/osu | osu.Game/Screens/Menu/MainMenu.cs | 6,410 | 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://w... | 48.623656 | 185 | 0.60084 | [
"MIT"
] | AzureDataBox/azure-powershell | src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/RegisterAzureRMBackupContainer.cs | 8,861 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.