content stringlengths 5 1.04M | avg_line_length float64 1.75 12.9k | max_line_length int64 2 244k | alphanum_fraction float64 0 0.98 | licenses list | repository_name stringlengths 7 92 | path stringlengths 3 249 | size int64 5 1.04M | lang stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|
// Copyright (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.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Ent... | 42.153846 | 151 | 0.67427 | [
"Apache-2.0"
] | 1175169074/aspnetcore | src/Middleware/Diagnostics.EntityFrameworkCore/src/HttpContextDatabaseContextDetailsExtensions.cs | 3,288 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace System.IO
{
/// <summary>
/// Extensions for the stream class
/// </summary>
public static class StreamExtensions
{
... | 30.007634 | 112 | 0.572119 | [
"MIT"
] | captainjono/rxns | src/Rxns/StreamExtensions.cs | 3,933 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
namespace Engine
{
class ImageHelper
{
//Supports the resizing of an image with no smoothing and neare... | 37.838235 | 141 | 0.548776 | [
"Unlicense"
] | save-buffer/Engine | Source/ImageHelper.cs | 2,575 | C# |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 41.608108 | 108 | 0.591642 | [
"Apache-2.0"
] | BrentShikoski/ignite | modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/DllLoader.cs | 9,239 | C# |
namespace Shopify.Unity.SDK {
using System.Collections.Generic;
using System.Collections;
using System;
[Serializable]
public class SummaryItem : Serializable {
protected const string LABEL = "Label";
protected const string AMOUNT = "Amount";
#pragma warning disable 0414
pu... | 26.178571 | 57 | 0.59618 | [
"MIT"
] | fresh-eggs/unity-buy-sdk | Assets/Shopify/Unity/SDK/SummaryItem.cs | 733 | C# |
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace AnimeTask.Sample
{
public class SampleMenu : MonoBehaviour
{
public Sample Sample;
public Dropdown Dropdown;
private readonly List<Dropdown.OptionData> list = new List<Dropdown.OptionData>
{
... | 29.243902 | 87 | 0.582152 | [
"MIT"
] | toddlerer/AnimeTask | Assets/Sample/SampleMenu.cs | 1,201 | C# |
/*
* OANDA v20 REST API
*
* The full OANDA v20 REST API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more.
*
* OpenAPI spec version: 3.0.15
* Contact: api@oanda.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
u... | 38.110465 | 294 | 0.567963 | [
"Apache-2.0"
] | 3ai-co/Lean | Brokerages/Oanda/RestV20/Model/UnitsAvailable.cs | 6,555 | C# |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ReliefAnalyze.Logic.ColorDetect
{
public class MapObjectsColors
{
private static MapObjectsColors instance;
public IDictionary<string, List<Color... | 43.103704 | 108 | 0.557656 | [
"MIT"
] | ArtemNazarov/ReliefAnalyze | ReliefAnalyze/Logic/ColorDetect/MapObjectsColors.cs | 5,821 | C# |
using System.Threading.Tasks;
using Fux.Example.Config.Model;
namespace Fux.Example.Config
{
/// <summary>
/// This class is responsible for executing a Fux.Config.Docker example
/// </summary>
public class Docker : Runner
{
/// <summary>
/// This property is for testing outside of ... | 38.552995 | 110 | 0.5612 | [
"MIT"
] | bolvarak/aspnetcore-fux-examples | Config/Docker.cs | 8,366 | 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 System.Threading;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis... | 42.480769 | 148 | 0.685831 | [
"MIT"
] | KirillOsenkov/roslyn | src/Features/CSharp/Portable/Structure/Providers/IndexerDeclarationStructureProvider.cs | 2,211 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SF.Space
{
public static class MathUtils
{
public const double Epsilon = 1E-12;
public static readonly double Ln10 = Math.Log(10);
public static string NumberToText(double value, string uni... | 25.662921 | 101 | 0.518389 | [
"Apache-2.0"
] | lncubus/SpaceFight | Space/MathUtils.cs | 2,286 | C# |
using System;
using System.Collections.Generic;
namespace FutureState.Flow.Enrich
{
/// <summary>
/// Enriches the content of a given entity type.
/// </summary>
public interface IEnricher
{
/// <summary>
/// Gets the entity type used to enrich a given target.
/// <... | 30.521739 | 82 | 0.564103 | [
"Apache-2.0"
] | arisanikolaou/futurestate | src/FutureState.Flow/Enrich/IEnricher.cs | 1,406 | C# |
using Microsoft.AspNetCore.Identity;
using RimmuTraining.WebApp.Data;
using RimmuTraining.WebApp.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace RimmuTraining.WebApp.Domain.Members
{
public class MakeTrainer
{
public Guid Membe... | 35.491803 | 127 | 0.552887 | [
"MIT"
] | gudnig/RimmuTraining | RimmuTraining.WebApp/Domain/Members/MakeTrainer.cs | 2,167 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using FDK;
namespace DTXMania
{
internal class CAct演奏レーンフラッシュGB共通 : CActivity
{
// プロパティ
// コンストラクタ
public CAct演奏レーンフラッシュGB共通()
{
base.b活性化してない = true;
}
// メソッド
// CActivity 実装
public override void On活性化()
{
base.On活性... | 12.38 | 46 | 0.628433 | [
"MIT"
] | NSU4zYPZKjMS/apo-3-Release | DTXManiaプロジェクト/コード/ステージ/07.演奏/CAct演奏レーンフラッシュGB共通.cs | 831 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
using Microsoft.OpenApi.Properties;
namespace Microsoft.OpenApi.Exceptions
{
/// <summary>
/// Exception type representing exceptions in the OpenAPI writer.
/// </summary>
public class OpenA... | 36.47619 | 130 | 0.640339 | [
"MIT"
] | CenterEdge/OpenAPI.NET | src/Microsoft.OpenApi/Exceptions/OpenApiWriterException.cs | 1,534 | C# |
/* Copyright 2020-present MongoDB Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 42.927273 | 213 | 0.683185 | [
"Apache-2.0"
] | LaudateCorpus1/mongo-csharp-driver | tests/MongoDB.Driver.Tests/Specifications/server-discovery-and-monitoring/ServerDiscoveryAndMonitoringIntegrationTestRunner.cs | 4,724 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using StoreProject.Api.Data;
using StoreProject.Commands;
using StoreProject.Models.Shopping;
n... | 45.093458 | 348 | 0.629845 | [
"MIT"
] | danncarloss/store-project | StoreProject.Api/StoreProject.Api/Controllers/ProdutoController.cs | 4,835 | C# |
// Screen WebAPI by Mozilla Contributors is licensed under CC-BY-SA 2.5.
// https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList
using System;
using Bridge;
namespace Bridge.Html5
{
/// <summary>
/// A MediaQueryList object maintains a list of media queries on a document, and handles sending noti... | 41.153846 | 230 | 0.656822 | [
"Apache-2.0"
] | BenitoJedai/Bridge | Html5/MediaQueryList.cs | 2,677 | C# |
/* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2013 Jaben Cargman
* Copyright (C) 2014-2021 Ingo Herbote
* https://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file... | 40.095808 | 150 | 0.514785 | [
"Apache-2.0"
] | Spinks90/YAFNET | yafsrc/YAF.Web/BBCodes/Attach.cs | 6,533 | C# |
namespace PhotoShare.Models.Enums
{
public enum Color
{
White,
Green,
Blue,
Pink,
Yellow,
Black,
Cyan,
Magenta,
Red,
Purple,
WhiteBlackGradient
}
}
| 14.777778 | 35 | 0.421053 | [
"MIT"
] | morskibg/CS_TrainingAtHome | Photoshare/PhotoShare.Models/Enums/Color.cs | 268 | 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("Em... | 38.243243 | 84 | 0.74841 | [
"MIT"
] | Ranin26/msdn-code-gallery-microsoft | OneCodeTeam/How to embed Excel sheet into Word Document by using Open XML SDK/[C#]-How to embed Excel sheet into Word Document by using Open XML SDK/C#/Properties/AssemblyInfo.cs | 1,418 | C# |
using ZimaHrm.Data.Entity;
using ZimaHrm.Data.Repository.Base;
namespace ZimaHrm.Data.Repository.PaySlip
{
public class EmployeePaySlipRepository : BaseRepository<EmployeePaySlip>, IEmployeePaySlipRepository
{
public EmployeePaySlipRepository(AppDbContext context) : base(context)
{
}
... | 25.153846 | 104 | 0.737003 | [
"Apache-2.0"
] | Dakicksoft/ZimaHrm | ZimaHrm.Data/Repository/PaySlip/EmployeePaySlipRepository.cs | 329 | C# |
using System;
using System.Text;
using System.Collections.Generic;
namespace Pyro.Language.Impl
{
/// <inheritdoc cref="LexerBase" />
/// <summary>
/// Common to all Lexers
/// </summary>
/// <typeparam name="TEnum">The enumeration type for tokens in the language</typeparam>
/// <typeparam nam... | 29.918605 | 116 | 0.503692 | [
"MIT"
] | cschladetsch/Diver | Library/Language/Common/Impl/LexerCommon.cs | 5,148 | C# |
using Tesseract.Core.Graphics.Accelerated;
using Tesseract.Vulkan.Graphics.Impl;
namespace Tesseract.Vulkan.Graphics {
public class VulkanGraphicsLimits : IGraphicsLimits {
public VulkanPhysicalDeviceInfo DeviceInfo { get; }
public uint MaxTextureDimension1D => DeviceInfo.Limits.MaxImageDimension1D;
public u... | 61.8875 | 131 | 0.850333 | [
"Apache-2.0"
] | Zekrom64/TesseractEngine | TesseractEngine-Vulkan/Vulkan/Graphics/GraphicsLimits.cs | 4,953 | C# |
using Moonbyte.MaterialFramework.Events;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
#region Legal Stuff
/*
MIT License
Copyright (c) 2015 - 2016 Vortex Studio (Inactive), 2015 - 2017 Indie Goat (Current Holder)
Permission is hereby granted, free of charge, to any... | 31.078652 | 91 | 0.69342 | [
"MIT"
] | OfficialIndieGoat/Material-Framework | MaterialFramework/MaterialFramework/Controls/Tab Control/MaterialTabPage.cs | 2,768 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RestaurantUI
{
public class MainMenu : IMenu
{
public void Display()
{
Console.WriteLine("Welcome to this Restuarant Application.");
Console.W... | 29.939394 | 74 | 0.469636 | [
"MIT"
] | 220328-uta-sh-net-ext/Daniel-Oszczapinski | Project 1/RestaurantApp/RestaurantUI/MainMenu.cs | 1,978 | C# |
//
// Copyright (c) 2019-2021 Angouri.
// AngouriMath is licensed under MIT.
// Details: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.
// Website: https://am.angouri.org.
//
using AngouriMath.Extensions;
using Xunit;
namespace UnitTests.PatternsTest
{
public sealed class SortSimplifyTest
... | 47.75 | 147 | 0.497382 | [
"MIT"
] | asc-community/AngouriMath | Sources/Tests/UnitTests/PatternsTest/SortSimplifyTest.cs | 1,912 | C# |
namespace SirJoshSpeedyComputer.Forms {
partial class Form1 {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if mana... | 36.586207 | 129 | 0.699026 | [
"MIT"
] | SirJosh3917/SirJoshSpeedyComputer | SirJosh Speedy Computer/SirJosh Speedy Computer/Form1.Designer.cs | 3,185 | C# |
using OpenRPA.Interfaces;
using OpenRPA.Interfaces.entity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
usi... | 26.820513 | 108 | 0.534098 | [
"MPL-2.0"
] | accabral/openrpa | OpenRPA.FileWatcher/Views/FileWatcherView.xaml.cs | 3,140 | C# |
////////////////////////////////////////////////////////////////////////////////
//EF Core Provider for LCPI OLE DB.
// IBProvider and Contributors. 02.04.2019.
using System;
using System.Diagnostics;
using System.Linq.Expressions;
namespace Lcpi.EntityFrameworkCore.DataProvider.L... | 38.013889 | 121 | 0.638655 | [
"MIT"
] | ibprovider/Lcpi.EFCore.LcpiOleDb | Code/Provider/Source/Basement/EF/Root/Query/Local/Expressions/Methods/Translators/Math/ETranslator__Math__vrt__Round__nullableDouble.cs | 2,739 | C# |
using Core.Dtos.CategoryDtos;
using Core.Dtos.CommonDtos;
using Core.Dtos.Settings;
using Core.FilterAttributes;
using Core.Helpers;
using Core.Interfaces.CategoryProviders;
using Core.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using... | 39.84322 | 178 | 0.576624 | [
"MIT"
] | Smahdie/Blog | src/Infrastructure/Services/CategoryProviders/CategoryManager.cs | 9,453 | C# |
// Copyright (c) 1995-2009 held by the author(s). All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of c... | 36.180147 | 143 | 0.563865 | [
"BSD-2-Clause"
] | mastertnt/open-dis-csharp | Libs/CsharpDis6/Dis1995/Generated/EntityInformationPdu.cs | 9,841 | 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/msxml.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using NUnit.Framework;
using System;... | 35.961538 | 145 | 0.625668 | [
"MIT"
] | DaZombieKiller/terrafx.interop.windows | tests/Interop/Windows/um/msxml/IXMLElement2Tests.cs | 1,872 | C# |
using System.Net.Http;
using WebAnchor.RequestFactory;
using WebAnchor.RequestFactory.Serialization;
namespace SlackbotAnchor
{
public class RawContentSerializer : IContentSerializer
{
public HttpContent Serialize(object value, Parameter content)
{
return new StringContent(value.T... | 23.266667 | 69 | 0.707736 | [
"MIT"
] | mattiasnordqvist/SlackbotAnchor | SlackbotAnchor.Standard/RawContentSerializer.cs | 351 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace _03.Camera_View
{
class Program
{
static void Main(string[] args)
{
int[] elements = Console.ReadLine().Split().Select(int.Parse).ToArray();
Console.Write... | 27.666667 | 84 | 0.566265 | [
"MIT"
] | Daniel-Takev/SoftUni-Programming-Fundamentals-course | Regular Expressions (RegEx) - Exercises/03. Camera View/Program.cs | 583 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MoveBase : MonoBehaviour
{
protected bool _canMove = false;
protected IMoveData _moveData = new MoveData();
protected Rigidbody2D _rb;
void Start()
{
GetRigidBody2D();
}
public void Star... | 19.527273 | 66 | 0.547486 | [
"MIT"
] | oviebd/Gravity-Warrior | Assets/Scripts/Move/MoveBase.cs | 1,076 | 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... | 26.935484 | 83 | 0.657485 | [
"Apache-2.0"
] | polivbr/pulumi-azure-native | sdk/dotnet/ContainerRegistry/V20180901/Outputs/AgentPropertiesResponse.cs | 835 | 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... | 37.563981 | 141 | 0.589579 | [
"MIT"
] | Ethereal77/stride | sources/engine/Stride.Rendering/Rendering/Lights/LightSpot.cs | 7,926 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Settings : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
} | 10.653846 | 56 | 0.711191 | [
"MIT"
] | GridProtectionAlliance/DashAdmin | src/DashAdminSite/Settings.aspx.cs | 279 | C# |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace CameraControl.Visca.Demo
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Applicat... | 18.777778 | 42 | 0.710059 | [
"Apache-2.0"
] | DMXControl/DemoCode | CameraControl/CameraControl.Visca.Demo/App.xaml.cs | 340 | C# |
using System;
using System.Threading;
using System.Threading.Tasks;
using McMaster.Extensions.CommandLineUtils;
namespace NeoExpress.Commands
{
[Command("run", Description = "Run Neo-Express instance node")]
class RunCommand
{
readonly ExpressChainManagerFactory chainManagerFactory;
public... | 35.245902 | 118 | 0.631628 | [
"MIT"
] | ixje/neo-express | src/neoxp/Commands/RunCommand.cs | 2,150 | 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;
namespace System.IO.Compression
{
// This class can be used to read bit... | 34.102326 | 112 | 0.50982 | [
"MIT"
] | FrancisFYK/corefx | src/System.IO.Compression/src/System/IO/Compression/DeflateManaged/InputBuffer.cs | 7,332 | C# |
using Pentibox.Engine;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.X... | 27.37 | 101 | 0.579467 | [
"MIT"
] | atanasovg/Pentibox | Pentibox/MainPage.xaml.cs | 2,739 | 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... | 41.010676 | 149 | 0.54278 | [
"ECL-2.0",
"Apache-2.0"
] | JakeGinnivan/pulumi-aws | sdk/dotnet/CodeDeploy/DeploymentConfig.cs | 11,524 | C# |
using System;
using System.Globalization;
using System.Windows.Data;
namespace TestApp.Android.Converters
{
public class StringToUpperConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
string str = value as string;
if (string.IsNullO... | 21.84 | 97 | 0.736264 | [
"MIT"
] | Julien-Mialon/StormXamarin | StormXamarin/TestApp.Android/Converters/StringToUpperConverter.cs | 548 | C# |
using UnityEngine;
using System.Collections;
public class ObserveState : IEnemyState
{
StatePatternEnemy statePatternEnemy;
public ObserveState(StatePatternEnemy spe)
{
statePatternEnemy = spe;
statePatternEnemy.anim.SetBool("Walking", false);
}
public void EnterState()
{
... | 23.205128 | 155 | 0.634254 | [
"MIT"
] | brandio/spellLike | dungeons of spell/Assets/Scripts/Ai/AiStates/ObserveState.cs | 907 | C# |
using DMCIT.Core.Entities.Core;
using DMCIT.Core.Entities.Messaging;
using DMCIT.Core.Services;
using DMCIT.Infrastructure.Events.SendMessageEvent;
using Hangfire.Server;
using MediatR;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace DMCIT.Infrastructure.Services
{
public class SendMessa... | 30.275 | 141 | 0.578035 | [
"MIT"
] | thanhtuan260593/dmcit-netcore | src/DMCIT.Infrastructure/Services/SendMessageService.cs | 2,424 | C# |
namespace HighPerformance.Miscellaneous;
/// <summary>
/// Defining a capacity of a list when allocating that list will increase performance.
/// </summary>
public class DefineListCapacity
{
[Params(10, 10000, 100000)]
public int Capacity { get; set; }
[Benchmark(Baseline = true)]
public void AllocWi... | 45.347826 | 134 | 0.442474 | [
"MIT"
] | marko-lohert/High-Performance-CSharp-Samples-With-Benchmarks | HighPerformance/HighPerformance/Miscellaneous/DefineListCapacity.cs | 2,088 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IAM.WebAPI;
using System.Data;
using System.Data.SqlClient;
using SafeTrend.Json;
using IAM.GlobalDefs.WebApi;
using IAM.GlobalDefs;
using IAM.Filters;
using System.Globaliza... | 55.336347 | 483 | 0.403287 | [
"Apache-2.0"
] | helviojunior/safeid | IAMWebServer/IAMWebServer/_admin/content/container.aspx.cs | 30,621 | C# |
using System;
using Util.Datas.Dapper.SqlServer;
using Util.Datas.Queries;
using Util.Datas.Sql;
using Util.Datas.Tests.XUnitHelpers;
using Util.Properties;
using Xunit;
using Xunit.Abstractions;
using String = Util.Helpers.String;
namespace Util.Datas.Tests.Sql.Builders.SqlServer {
/// <summary>
/// Sql Serv... | 34.301887 | 114 | 0.481711 | [
"MIT"
] | LuciferJun1227/Util | test/Util.Datas.Tests.Integration/Sql/Builders/SqlServer/SqlServerBuilderTest.cs | 7,548 | C# |
using ESFA.DC.ESF.Database.EF;
using ESFA.DC.ESF.Interfaces.DataAccessLayer;
using ESFA.DC.ESF.Models;
namespace ESFA.DC.ESF.DataAccessLayer.Mappers
{
public class SourceFileModelMapper : ISourceFileModelMapper
{
public SourceFileModel GetModelFromEntity(SourceFile entity)
{
return... | 31 | 68 | 0.615836 | [
"MIT"
] | SkillsFundingAgency/DC-ESF | src/ESFA.DC.ESF.DataAccessLayer/Mappers/SourceFileModelMapper.cs | 684 | C# |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Store.Tests.Commands
{
[TestClass]
public class CreateOrderCommandTests
{
[TestMethod]
[TestCategory("Handlers")]
public void DadoUmComandInvalidOPedidoNaoDeveSerGerado()
{
// FailFastVal... | 32.16 | 93 | 0.633085 | [
"MIT"
] | JoaoNascSilva/RefatorandoParaTestesDeUnidade | Store.Tests/Commands/CreateOrderCommandTests.cs | 804 | C# |
namespace SharpBucket.V1.Pocos
{
public class SrcFile
{
public string node { get; set; }
public string path { get; set; }
public string data { get; set; }
public long size { get; set; }
}
} | 24.3 | 41 | 0.539095 | [
"MIT"
] | shannonphillipl/SharpBucket | SharpBucket/V1/Pocos/SrcFile.cs | 245 | C# |
using System;
using System.IO;
namespace Microsoft.Xna.Framework.Utilities
{
public class SubStream : Stream
{
Stream _host;
long _length;
long _start;
public SubStream(Stream host, long start, long len, long curPos)
{
_host = host;
_length = le... | 29.757962 | 86 | 0.443279 | [
"MIT"
] | NebulaSleuth/MonoGame.XamarinForms | MonoGame.Framework/MonoGame.Framework.AndroidForms/Utilities/SubStream.cs | 4,674 | C# |
namespace Cake.Issues.Terraform.Tests
{
using System.Linq;
using Cake.Issues.Testing;
using Cake.Testing;
using Shouldly;
using Xunit;
public sealed class TerraformProviderTests
{
public sealed class TheCtor
{
[Fact]
public void Should_Throw_If_Log_I... | 35.180851 | 122 | 0.474146 | [
"MIT"
] | cake-contrib/Cake.Issues.Terraform | src/Cake.Issues.Terraform.Tests/TerraformProviderTests.cs | 3,309 | C# |
using LogShark.Containers;
using LogShark.Plugins.Shared;
using LogShark.Writers;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using System.Collections.Generic;
namespace LogShark.Plugins.Apache
{
public class ApachePlugin : IPlugin
{
private const bool DefaultIncludeGa... | 40.084507 | 258 | 0.676739 | [
"MIT"
] | isabella232/Logshark | LogShark/Plugins/Apache/ApachePlugin.cs | 2,846 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using MagicChunks.Helpers;
namespace MagicChunks.Core
{
public class Transformer : ITransformer
{
private static readonly Regex RemoveEndingRegex = new Regex(@"\`\d+$", Rege... | 35.764706 | 160 | 0.574953 | [
"MIT"
] | 3choBoomer/magic-chunks | src/MagicChunks/Core/Transformer.cs | 4,256 | 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... | 73.902552 | 475 | 0.673741 | [
"MIT"
] | Agazoth/azure-powershell | src/Purview/Purviewdata.Autorest/generated/cmdlets/NewAzPurviewClassificationRule_Create.cs | 31,422 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using ILRuntime.Mono.Cecil;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.CLR.TypeSystem;
using ILRuntime.Runtime.Stack;
using ILRuntime.CLR.Utils;
namespace ILRunti... | 33.869863 | 152 | 0.446579 | [
"MIT"
] | yomunsam/ILRuntime | ILRuntime/CLR/Method/CLRMethod.cs | 14,837 | C# |
using System;
using UnityEngine;
using UnityEngine.SceneManagement;
/// <summary>
/// Provides singleton pattern functionality to MonoBehaviours
/// </summary>
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour
{
private static T instance;
private static bool destroyed = false;
/// <summary>
//... | 20.158879 | 81 | 0.649977 | [
"Unlicense",
"MIT"
] | LjutaPapricica/LockPick_Unity | Assets/Source/Singleton.cs | 2,159 | C# |
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using NHibernate.Mapping.ByCode.Conformist;
using NHibernate.Mapping.ByCode;
using Sample.CustomerService.Domain;
namespace Sample.CustomerService.Maps {
public class VstorewithcontactsMap : ClassMapping<Vstorewithcont... | 38.333333 | 91 | 0.657708 | [
"MIT"
] | antosilva/Easy.NHibernate.Samples | SQLServer/AdventureWorks2012/Mapping/VstorewithcontactsMap.cs | 1,265 | C# |
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace Roki.Web.Models
{
public class DiscordGuild
{
public string Id { get; set; }
public string Name { get; set; }
public string Icon { get; set; }
}
public class Guild
{
publ... | 36.452261 | 95 | 0.610422 | [
"MIT"
] | louzhang/roki | Roki.Web/Models/GuildModel.cs | 7,254 | C# |
namespace OggVorbisEncoder.Setup.Templates.Stereo44.BookBlocks.Chapter4
{
public class Page8_1 : IStaticCodeBook
{
public int AllocedP = 0;
public int Dimensions = 2;
public byte[] LengthList = {
2, 4, 4, 5, 5, 6, 5, 5, 5, 5, 6, 5, 4, 5, 5, 6,
5, 5, 5, 5, 6, 6, ... | 25.555556 | 72 | 0.505797 | [
"Apache-2.0",
"MIT"
] | BenRQ/valkyrie | libraries/FFGAppImport/AssetImport/oggencoder/Setup/Templates/Stereo44/BookBlocks/Chapter4/Page8_1.cs | 692 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace PolyPerfect
{
public class Common_AnimSpeed : MonoBehaviour
{
Animator anim;
float Speed;
// Use this for initialization
void Start()
{
Speed = Random.Range(0.85f, 1.... | 18.740741 | 49 | 0.55336 | [
"MIT"
] | Bidrizi/Discrimination | Assets/Animation/polyperfect/Common/Common_AnimSpeed.cs | 508 | 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.Compute.Models
{
public partial class VirtualMachineUpdate : IUtf8JsonSerializable
{
void I... | 37.361446 | 74 | 0.544663 | [
"MIT"
] | BaherAbdullah/azure-sdk-for-net | sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineUpdate.Serialization.cs | 6,202 | C# |
//
// Copyright (C) DataStax Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable la... | 39.152819 | 148 | 0.592595 | [
"Apache-2.0"
] | CassOnMars/csharp-driver | src/Cassandra/Metadata.cs | 26,389 | 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
*
... | 33.203704 | 102 | 0.639152 | [
"Apache-2.0"
] | TencentCloud/tencentcloud-sdk-dotnet-intl-en | TencentCloud/Vod/V20180717/Models/TEHDConfig.cs | 1,793 | C# |
using System;
using Newtonsoft.Json;
namespace Patreon.Net.Models
{
/// <summary>
/// An OAuth2 token used for authentication with the Patreon API.
/// </summary>
public class OAuthToken
{
/// <summary>
/// The access token. Use this in construction of a new <see cref="PatreonClien... | 34.767442 | 186 | 0.568562 | [
"MIT"
] | sawch/Patreon.Net | src/Patreon.Net/Models/OAuthToken.cs | 1,497 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneTransition : MonoBehaviour
{
public void GoToScene(string scene)
{
SceneManager.LoadScene(scene);
}
}
| 19.615385 | 44 | 0.756863 | [
"MIT"
] | IlchKhailtuud/GAME3011_A1 | Assets/Scripts/SceneTransition.cs | 255 | C# |
using System.IO;
using CP77.CR2W.Reflection;
using FastMember;
using static CP77.CR2W.Types.Enums;
namespace CP77.CR2W.Types
{
[REDMeta]
public class CrouchLowGravityEvents : LocomotionGroundEvents
{
public CrouchLowGravityEvents(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)... | 22.2 | 109 | 0.741742 | [
"MIT"
] | Eingin/CP77Tools | CP77.CR2W/Types/cp77/CrouchLowGravityEvents.cs | 319 | C# |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using CVGS.Models;
using CVGS.ViewModels;
namespace CVGS.Controllers
{
public class EventsController : Controller
{
private CVGSEnti... | 33.437681 | 146 | 0.509622 | [
"MIT"
] | 4-of-3/cvgs | CVGS/Controllers/EventsController.cs | 11,538 | 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... | 37.967213 | 176 | 0.608377 | [
"Apache-2.0"
] | Bio2hazard/aws-sdk-net | sdk/src/Services/Pinpoint/Generated/Model/Internal/MarshallTransformations/EndpointMessageResultUnmarshaller.cs | 4,632 | 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... | 38.766667 | 257 | 0.609114 | [
"Apache-2.0"
] | pulumi-bot/pulumi-azure-native | sdk/dotnet/DataFactory/Latest/Inputs/PrestoLinkedServiceArgs.cs | 5,815 | C# |
#region Copyright notice and license
// Copyright 2019 The gRPC Authors
//
// 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... | 38.645833 | 147 | 0.621563 | [
"Apache-2.0"
] | ehtick/grpc-dotnet | src/Grpc.Net.ClientFactory/GrpcClientFactoryOptions.cs | 3,712 | 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.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
us... | 38.590596 | 243 | 0.570493 | [
"MIT"
] | Drawaes/corefx | src/System.Net.Sockets/src/System/Net/Sockets/Socket.cs | 201,906 | C# |
using System;
using Microsoft.Extensions.DependencyInjection;
using R5T.Dacia;
namespace R5T.D0003.Default
{
public static class IServiceCollectionExtension
{
/// <summary>
/// Adds the <see cref="ProcessStartTimeProvider"/> implementation of <see cref="IProcessStartTimeProvider... | 37.59375 | 164 | 0.679967 | [
"MIT"
] | MinexAutomation/R5T.D0003 | source/R5T.D0003.Default/Code/Services/Extensions/IServiceCollectionExtension.cs | 1,205 | C# |
#pragma warning disable 108 // new keyword hiding
#pragma warning disable 114 // new keyword hiding
namespace Windows.UI.Xaml.Documents
{
#if false || false || false || false || false
[global::Uno.NotImplemented]
#endif
public partial class HyperlinkClickEventArgs : global::Windows.UI.Xaml.RoutedEventArgs
{
}
}
| 26.666667 | 88 | 0.746875 | [
"Apache-2.0"
] | 06needhamt/uno | src/Uno.UI/Generated/3.0.0.0/Windows.UI.Xaml.Documents/HyperlinkClickEventArgs.cs | 320 | C# |
namespace Machete.Internals.Extensions
{
using Mapping;
using Reflection;
public interface ITypeCache<T>
{
IDictionaryConverter Mapper { get; }
string ShortName { get; }
IReadOnlyPropertyCache<T> ReadOnlyPropertyCache { get; }
IReadWritePropertyCache<T> Read... | 27.176471 | 67 | 0.65368 | [
"Apache-2.0"
] | amccool/Machete | src/Machete/Internals/Extensions/ITypeCache.cs | 464 | C# |
using System;
using System.Diagnostics;
using System.Timers;
namespace Launcher
{
public class ProcessMonitor
{
private Timer monitor;
private readonly string processName;
private readonly Action<ProcessMonitor> aliveCallback;
private readonly Action<ProcessMonitor> exitCallback;
public ProcessMonitor(st... | 21.470588 | 135 | 0.72968 | [
"MIT"
] | CUPNS/Sealed2 | Launcher/Utils/ProcessMonitor.cs | 1,097 | C# |
using grapher.Models.Options.Directionality;
using grapher.Models.Serialized;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace grapher.Models.Options
{
public class ApplyOptions
{
#region Constructors
public ApplyOptions(
CheckBox byComponentVectorXYLock,
... | 31.487603 | 111 | 0.603675 | [
"MIT"
] | Conrekatsu/rawaccel | grapher/Models/Options/ApplyOptions.cs | 7,622 | C# |
using System;
using JSIL;
public static class Program {
public static void Main(string[] args)
{
var arr = ((object[]) Verbatim.Expression("[1,2,3]")) ?? new object[] {1, 2, 3};
var arr2 = (object[]) arr.Clone();
foreach (var item in arr2)
{
Console.Write(item);
... | 23.785714 | 88 | 0.528529 | [
"MIT"
] | RedpointGames/JSIL | Tests/SimpleTestCases/ArrayCloneNative_Issue932.cs | 333 | C# |
namespace SayWhatStarterWebhook.Models.Messages
{
public class ButtonOpenUriAction
{
public string Uri { get; set; }
}
} | 20.142857 | 48 | 0.673759 | [
"MIT"
] | MFazio23/TC2018-SayWhatStarter | csharp/SayWhatStarterWebhook/Models/Messages/ButtonOpenUriAction.cs | 143 | C# |
/*
* Ory Kratos API
*
* Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the adminis... | 30.513889 | 431 | 0.663177 | [
"Apache-2.0"
] | tobbbles/sdk | clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosHealthStatusTests.cs | 2,197 | C# |
using Session06.NoneRelational.DAL;
using System;
namespace Session06.NoneRelational.UI
{
class Program
{
static void Main(string[] args)
{
BlogContext blogContext = new BlogContext();
blogContext.Database.EnsureDeleted();
blogContext.Database.EnsureCreated... | 21.611111 | 56 | 0.611825 | [
"Apache-2.0"
] | IMICTO/dotnetcore3 | Session06/Session06.NoneRelational/Session06.NoneRelational.UI/Program.cs | 391 | 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("Th... | 38.027027 | 84 | 0.746979 | [
"MIT"
] | pavlinpetkov88/ProgramingBasic | SimpleConditionalStatements/ThreeEqualNumbers/Properties/AssemblyInfo.cs | 1,410 | C# |
namespace Chisel.Import.Source.VPKTools
{
struct VTFHeader
{
public const int signature = 0x00465456; // File signature ("VTF\0"). (or as little-endian integer, 0x00465456)
public float version; // (Sizeof 2) version[0].version[1].
public u... | 67.885714 | 136 | 0.560606 | [
"MIT"
] | Kerfuffles/com.chisel.import.source.vpktools | VTF/VTFHeader.cs | 2,378 | C# |
/*
* ******************************************************************************
* Copyright 2014-2020 Spectra Logic 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. A copy of the License ... | 41.769231 | 188 | 0.622468 | [
"Apache-2.0"
] | SpectraLogic/ep_net_sdk | SpectraLogic.SpectraRioBrokerClient/Exceptions/DeviceAlreadyExistsException.cs | 1,631 | C# |
using System;
namespace WebNotificationService.API
{
public class TestCancelledWebMessage
{
public int TestId { get; }
public string TestName { get; }
public TestCancelledWebMessage(int testId, string testName)
{
TestId = testId;
TestName = testName;
... | 19.823529 | 67 | 0.593472 | [
"MIT"
] | GataullinRR/Testkit | WebNotificationService.API/Messages/TestCanceledWebMessage.cs | 339 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using UnityEditor.TestTools.TestRunner.Api;
namespace UnityEditor.TestTools.TestRunner.UnityTestProtocol
{
internal class TestRunnerApiMapper : ITestRunnerApiMapper
{
public TestPlanMessage MapTestToTestPlanM... | 32.91 | 101 | 0.54725 | [
"MIT"
] | AlePPisa/GameJamPractice1 | Cellular/Library/PackageCache/com.unity.test-framework@1.1.16/UnityEditor.TestRunner/UnityTestProtocol/TestRunnerApiMapper.cs | 3,291 | 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.Globalization;
using System.Runtime.InteropServices;
internal static partial class Interop
{
internal static partial class Globalization
{
... | 54.5625 | 181 | 0.781214 | [
"MIT"
] | 71221-maker/runtime | src/libraries/Common/src/Interop/Interop.Calendar.cs | 1,746 | C# |
using Bookme.ViewModels.Booking;
using Bookme.WebApp.Areas.Booking.Controllers;
using MyTested.AspNetCore.Mvc;
using Xunit;
using System;
using System.Linq;
using static Bookme.Test.Data.User;
using static Bookme.Test.Data.DataInstances;
using static Bookme.WebApp.Controllers.Constants.RoleConstants;
using static Boo... | 38.913295 | 112 | 0.510695 | [
"MIT"
] | MarioGn1/Bookme.WebApp | Bookme.WebApp/Bookme.Test/Areas/Booking/Controllers/BookingControllerTest.cs | 6,734 | C# |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 29.857143 | 64 | 0.653907 | [
"Apache-2.0"
] | AxiosCros/aliyun-openapi-net-sdk | aliyun-net-sdk-core/Reader/ReaderFactory.cs | 1,254 | C# |
using System;
using System.Collections.Generic;
using System.Management.Automation;
using QlikView_CLI.QMSAPI;
namespace QlikView_CLI.PWSH
{
[Cmdlet(VerbsCommon.New, "QVTaskServerDocumentLoadServerSetting")]
public class NewQVTaskServerDocumentLoadServerSetting : PSCmdlet
{
private QlikView_CLI.QMSA... | 44.054054 | 325 | 0.758282 | [
"MIT"
] | QlikProfessionalServices/QlikView-CLI | PWSH/Generated/New/TaskServerDocumentLoadServerSetting.cs | 1,630 | C# |
#region Copyright (c) 2011-2022 Technosoftware GmbH. All rights reserved
//-----------------------------------------------------------------------------
// Copyright (c) 2011-2022 Technosoftware GmbH. All rights reserved
// Web: https://www.technosoftware.com
//
// The source code in this file is covered under a dual... | 29.924242 | 79 | 0.64962 | [
"MIT"
] | technosoftware-gmbh/opc-daaehda-client-net | src/Technosoftware/DaAeHdaClient/Ae/FilterType.cs | 1,975 | C# |
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Square;
using Square.Utilities;
namespace Square.Models
{
public class Loyal... | 28.208791 | 89 | 0.516946 | [
"Apache-2.0"
] | okenshields/test-dotnet | Fangkuai/Models/LoyaltyEventCreateReward.cs | 2,567 | C# |
using MagiCore.Model;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace CourseShop.Services.Catalog.Model.Entities;
public class Category : IEntity<string>
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; } = default!;
public string? Name { get... | 23.571429 | 53 | 0.730303 | [
"MIT"
] | furkanisitan/course-shop | src/Services/Catalog/Catalog.Model/Entities/Category.cs | 332 | C# |
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Paco.Entities.Models.Identity;
namespace Paco.Repositories.Database
{
public static class RoleRepository
{
public static Role GetRole(this DbSet<Role> roles, Guid roleId)
{
return roles.FirstOrDefault(r => ... | 23.6 | 71 | 0.677966 | [
"MIT"
] | nono3551/paco | Paco/Repositories/Database/RoleRepository.cs | 356 | C# |
using Extensioner.Logging;
using System;
namespace NETCore31
{
class Program
{
static void Main(string[] args)
{
Log.Debug("Hello NETCore3.1");
Console.WriteLine("Hello World!");
}
}
}
| 16.466667 | 46 | 0.550607 | [
"Apache-2.0"
] | Extensioner/Logging | Samples/NETCore31/Program.cs | 249 | C# |
using System;
using System.Text;
using Loki.Interfaces.Dependency;
using Loki.Interfaces.Logging;
using Loki.SignalServer.Interfaces.Queues;
using Newtonsoft.Json;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
namespace Loki.SignalServer.Common.Queues.RabbitMq
{
public class RabbitEventedQueue<T> : IEvente... | 27.605263 | 139 | 0.565062 | [
"Apache-2.0"
] | systemidx/Loki-SignalServer | Loki.SignalServer.Common/Queues/RabbitMq/RabbitEventedQueue.cs | 4,198 | C# |
using GameUtilities.AnchorPoint;
using GameUtilities.PlayerUtility;
using Item;
using Item.Database;
using UnityEngine;
public class ItemInformation : BaseInteractedObject {
# region Public Variables
[SerializeField]
private ItemNameID itemNameID;
[SerializeField]
private bool hasMiniGame;
[SerializeField]
pr... | 29.577586 | 153 | 0.716409 | [
"MIT"
] | pixelsquare/Chance | Assets/Scripts/Item/ItemInformation.cs | 3,433 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.