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 2017 James Craig
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 36.333333 | 139 | 0.647598 | [
"Apache-2.0"
] | cjwang/Inflatable | src/Inflatable/Aspect/StartMethod/MapStartMethod.cs | 1,855 | C# |
// Copyright 2007-2014 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// 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 | 136 | 0.58518 | [
"Apache-2.0"
] | lsfera/MassTransit | src/MassTransit.Tests/MessageContext_Specs.cs | 9,703 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "ConsumableItem", menuName = "Create Item/Item Type/Consumable", order = 0)]
public class ConsumableType : ScriptableObject
{
public bool Cookable, Raw;
public float GiveHealthAmount;
public float G... | 29.380952 | 104 | 0.747164 | [
"MIT"
] | ddark1990/FPS | Assets/Scripts/PlayerScripts/PlayerInventory/ItemScripts/ConsumableType.cs | 619 | C# |
public enum ColorEnum
{
DEFAULT,RED,GREEN,YELLOW
} | 13.75 | 28 | 0.727273 | [
"MIT"
] | NenoTech-Gaming/Push_Me_all | Assets/Projects/scripts/ColorEnum.cs | 55 | C# |
using System;
using ASTRA.EMSG.Business.Interlis.Parser.AutoGen;
namespace ASTRA.EMSG.Business.Interlis.Parser
{
/// <summary>
/// Description of AxisReaderDataHandler.
/// </summary>
public interface IAxisReaderDataHandler
{
void EmitXMLFragment(string xml);
void ReceivedAxis(IImportedAchse axis);
... | 21.090909 | 57 | 0.74569 | [
"BSD-3-Clause"
] | astra-emsg/ASTRA.EMSG | Master/ASTRA.EMSG.Business/Interlis/Parser/IAxisReaderDataHandler.cs | 466 | C# |
using VGAudio.Codecs.Atrac9;
using Xunit;
namespace VGAudio.Tests.Formats.Atrac9
{
public class PackedTableTests
{
[Fact]
public void UnpackedSfWeightsIsCorrect()
{
Assert.Equal(UnpackedTables.SfWeights, Tables.ScaleFactorWeights);
}
[Fact]
... | 26.982456 | 88 | 0.596229 | [
"MIT"
] | ActualMandM/VGAudio | src/VGAudio.Tests/Formats/Atrac9/PackedTableTests.cs | 1,484 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Management;
using System.Diagnostics;
using Windows.Devices.Bluetooth;
using Windows.Devices.Bluetooth.GenericAttributeProfile;
using Windows.Devices.Bl... | 37.850668 | 173 | 0.47256 | [
"MIT"
] | drowhunter/BSManager | BSManagerMain.cs | 65,143 | C# |
using CadEditor;
using System;
//css_include shared_settings/BlockUtils.cs;
//css_include shared_settings/SharedUtils.cs;
public class Data
{
public OffsetRec getScreensOffset() { return new OffsetRec(0xf610, 4, 16*16, 16, 16); }
public bool isBigBlockEditorEnabled() { return false; }
public bool isBlockEditor... | 49.259259 | 113 | 0.706015 | [
"MIT"
] | spiiin/CadEditor | CadEditor/settings_nes/final_fight_3_unl/Settings_FinalFight3_NES-3-2.cs | 1,330 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Net;
namespace NFMessageLogViewer
{
public partial class... | 29.096491 | 114 | 0.526681 | [
"Apache-2.0"
] | guoliulong/NoahGameFrame | NFTools/NFMessageLogViewer/Form1.cs | 3,345 | C# |
using System.IO;
namespace System
{
public static class Logger
{
static string logPath = "d:\\";
static Logger()
{
if (!Directory.Exists(logPath))
{
Directory.CreateDirectory(logPath);
}
}
public static void Info(str... | 23.68 | 93 | 0.537162 | [
"MIT"
] | GavinYao2018/WinServiceShell | Src/MethodTest/Logger.cs | 594 | C# |
using System.Drawing;
using System.Runtime.Serialization;
namespace MSI_LED_Tool
{
[DataContract]
public class LedSettings
{
private const int MinimumTemperature = 0;
private const int MaximumTemperature = 100;
private int temperatureLowerLimit;
private int temperatureUppe... | 26.319149 | 92 | 0.506871 | [
"MIT"
] | SIZMW/MSI-LED-Tool | MSI LED Tool/Model/LedSettings.cs | 3,713 | 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;
namespace Microsoft.DotNet.Interactive.CSharpProject.Protocol
{
public class CompletionItem
{
public stri... | 41.032258 | 202 | 0.647799 | [
"MIT"
] | alireza-rezaee/interactive | src/Microsoft.DotNet.Interactive.CSharpProject/CompletionItem.cs | 1,272 | C# |
using System.Collections.Generic;
using SimpleLang.Visitors;
namespace ProgramTree
{
public enum AssignType { Assign, AssignPlus, AssignMinus, AssignMult, AssignDivide };
public abstract class Node // базовый класс для всех узлов
{
public abstract void Visit(Visitor v);
}
public abst... | 24.100559 | 89 | 0.548215 | [
"MIT"
] | midikko/MMCS_CS311 | Module8/ProgramTree.cs | 4,397 | C# |
using System.Collections.Generic;
using System.Diagnostics;
namespace Speiser.Masterthesis.SourceCodeService.Contracts.Syntax
{
[DebuggerDisplay("class {Identifier}")]
public class CodeClass
{
public IEnumerable<CodeAttribute> Attributes { get; set; }
public string Identifier { get; set; }... | 29.6 | 66 | 0.693694 | [
"MIT"
] | Speiser/masterthesis-computerscience | code/Speiser.Masterthesis.SourceCodeService/Contracts/Syntax/CodeClass.cs | 446 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using HuaweiCloud.SDK.Core;
namespace HuaweiCloud.SDK.Frs.V2.Model
{
/// <summary>
/// Request Object
/// </summary>
public ... | 26.246753 | 76 | 0.505195 | [
"Apache-2.0"
] | cnblogs/huaweicloud-sdk-net-v3 | Services/Frs/V2/Model/DetectLiveByFileRequest.cs | 2,021 | C# |
using HomematicIp.Data.Enums;
using Newtonsoft.Json;
namespace HomematicIp.Data.HomematicIpObjects.Channels
{
[EnumMap(FunctionalChannelType.MULTI_MODE_INPUT_DIMMER_CHANNEL)]
public class MultiModeInputDimmerChannel : Channel
{
[JsonProperty(PropertyName = "dimLevel")]
public double? DimLe... | 32.142857 | 68 | 0.691852 | [
"MIT"
] | DevEddy/HomematicIp | src/HomematicIp/Data/HomematicIpObjects/Channels/MultiModeInputDimmerChannel.cs | 677 | C# |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using Bedrock.DomainBuilder.Enumerations;
namespace Bedrock.DomainBuilder
{
public class BuildSettings
{
#region Fields
... | 30.53913 | 119 | 0.499272 | [
"MIT"
] | BedrockNet/Bedrock.DomainBuilder | Bedrock.DomainBuilder/BuildSettings.cs | 31,610 | C# |
/* --------------------------------------------------------------------------
* Copyrights
*
* Portions created by or assigned to Cursive Systems, Inc. are
* Copyright (c) 2002-2008 Cursive Systems, Inc. All Rights Reserved. Contact
* information for Cursive Systems, Inc. is available at
* http://www.cursive.ne... | 30.358974 | 82 | 0.519426 | [
"MIT"
] | JustOxlamon/TwoRatChat | JabberNet-2.1.0.710/stringprep/unicode/Combining.cs | 1,184 | 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 Microsoft.CodeAnalysis.CSharp.DocumentationCommentFormatting;
using Microsoft.CodeAnalysis.Text;
using Microsoft.CodeAnalysis.VisualBasic.DocumentationC... | 31.496528 | 198 | 0.610848 | [
"Apache-2.0"
] | 0x53A/roslyn | src/EditorFeatures/Test/DocCommentFormatting/DocCommentFormattingTests.cs | 9,071 | C# |
using System.Linq.Expressions;
using Core.IRepository;
using System.Linq;
using Microsoft.EntityFrameworkCore;
namespace Core.Repository.Base
{
public class BaseRepository<TEntity> : IBaseRepository<TEntity> where TEntity : class, new()
{
private readonly DbContext _context;
private readonly D... | 24.398649 | 120 | 0.495154 | [
"Apache-2.0"
] | chenyanbo1024/Core.Simple | Core.Repository/Base/BaseRepository.cs | 3,645 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace ad_jwt_api
{
public class Program
{
... | 24.24 | 76 | 0.693069 | [
"MIT"
] | pablospizzamiglio/ad-jwt-api | Program.cs | 608 | C# |
using Dms.Integration.Infrastructure.Document;
using Dms.Integration.Infrastructure.Extensions;
using Dms.Integration.Infrastructure.Models;
using System.Text;
namespace Dms.Integration.Infrastructure.DocumentServices;
public abstract class DocumentInfo
{
public DocumentBase Document { get; set; }
public Dic... | 35.692308 | 185 | 0.646552 | [
"MIT"
] | hub-burgan-com-tr/bbt.endorsement | dms/Dms.Integration.Infrastructure/DocumentServices/DocumentInfo.cs | 3,720 | C# |
namespace Orleans.Serialization.Invocation
{
public interface IResponseCompletionSource
{
/// <summary>
/// Sets the result.
/// </summary>
/// <param name="value">The result value.</param>
void Complete(Response value);
void Complete();
}
} | 23.307692 | 57 | 0.580858 | [
"MIT"
] | AmedeoV/orleans | src/Orleans.Serialization/Invocation/IResponseCompletionSource.cs | 303 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.Encodings.Web;
using Foundation;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.FileProviders;
using UIKit;
using WebKit;
namespace Microsoft.AspN... | 37.839344 | 284 | 0.750801 | [
"MIT"
] | Axemasta/maui | src/BlazorWebView/src/Maui/iOS/IOSWebViewManager.cs | 11,541 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using Parser;
namespace Semantics
{
public class GetClass
{
private static MMethod MethodFromDefinition(ConcreteMethodDeclarationSyntaxNode methodDefinition)
{
var name = methodDefinition.Name.Text;
var ... | 34.512195 | 114 | 0.54311 | [
"MIT"
] | mahalex/MParser | Semantics/GetClass.cs | 2,832 | C# |
using System;
using System.Collections.Generic;
namespace Alica
{
/// <summary>
/// A capability definition set holds all defined capabilities.
/// </summary>
public class CapabilityDefinitionSet : PlanElement
{
public CapabilityDefinitionSet()
{
this.Capabilities = new List<Capability>();
}
public ... | 20.978261 | 68 | 0.606736 | [
"BSD-3-Clause-Clear"
] | RedundantEntry/cn-alica-ros-pkg | AlicaEngine/src/Engine/Model/CapabilityDefinitionSet.cs | 1,930 | C# |
using UnityEngine.Events;
namespace Console
{
[System.Serializable]
public class CommandEvent : UnityEvent<string[]> { }
public abstract class AbstractCommand : ICommand {
public abstract string name {get; protected set;}
public abstract string command {get; protected set;}
publi... | 31.111111 | 64 | 0.580952 | [
"Apache-2.0"
] | lampask/steampunk-samurai | Assets/Scripts/Console/AbstractCommand.cs | 842 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by \generate-code.bat.
//
// Changes to this file will be lost when the code is regenerated.
// The build server regenerates the code before each build and a pre-build
// step ... | 45.929825 | 125 | 0.674561 | [
"MIT-feh"
] | AIKICo/UnitsNet | UnitsNet.NumberExtensions/GeneratedCode/NumberToElectricResistanceExtensions.g.cs | 2,618 | C# |
using System.Threading.Tasks;
using Android.App;
using Android.Content.PM;
using Android.OS;
using Android.Runtime;
using Android.Support.V7.App;
using WorldOfEnglishWord.BisnessLogic;
using WorldOfEnglishWord.Translator;
namespace WorldOfEnglishWord.Controllers
{
[Activity(ScreenOrientation = ScreenOrientation.P... | 30.987342 | 188 | 0.612337 | [
"MIT"
] | Bezuglyash/WorldOfEnglishWords | WorldOfEnglishWord/Controllers/SplashScreenActivity.cs | 2,450 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ClosedXML.Excel;
namespace ExcelView.Data
{
public class ExcelObj
{
//private XLWorkbook ImportWb;
//private string ImportFileName;
}
} | 17.866667 | 40 | 0.716418 | [
"MIT"
] | ymd65536/ExcelView | Data/ExcelObj.cs | 268 | C# |
/*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* 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 r... | 38.711367 | 180 | 0.50546 | [
"BSD-3-Clause"
] | Michelle-Argus/ArribasimExtract | OpenSim/Region/OptionalModules/World/TreePopulator/TreePopulatorModule.cs | 30,311 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TBD.Psi.Study.Analysis
{
class Program
{
static void Main(string[] args)
{
// SingleFileTestAsync.Run();
// SingleFileTest.Run();
An... | 19.95 | 41 | 0.591479 | [
"MIT"
] | CMU-TBD/psi | TBD/TBD.Psi.Study.Analysis/Program.cs | 401 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace AdventOfCode2020.Star2
{
public class Star2
{
public static int GetMultiplyExpensesEqualsTo2020()
{
string pathExpenses = Environment.CurrentDirectory + @"\input.dat";
... | 28.607143 | 111 | 0.548065 | [
"MIT"
] | alan-garcia/advent-of-code-2020 | AdventOfCode2020/Day1/Star2/Star2.cs | 803 | C# |
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using Newtonsoft.Json;
namespace osu.Game.Rulesets.Mods
{
public interface IMod
{
/// <summary>
/// The shortened name of this mod.
... | 24.823529 | 93 | 0.597156 | [
"MIT"
] | Dragicafit/osu | osu.Game/Rulesets/Mods/IMod.cs | 408 | C# |
using System;
namespace SolutionEleven
{
class Program
{
static void Main(string[] args)
{
int age = int.Parse(Console.ReadLine());
Console.WriteLine($"You look older than {age}");
}
}
}
| 17.785714 | 60 | 0.538153 | [
"MIT"
] | georgidelchev/w3resource-solutions | 01 - [CSharp Exercises]/01 - [C# Basic Exercises]/11 - [Taking Age And Prints Some Text]/Program.cs | 251 | C# |
using System;
using LuaInterface;
using SLua;
using System.Collections.Generic;
public class Lua_UnityEngine_Collider2D : LuaObject {
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static public int constructor(IntPtr l) {
try {
UnityEngine.Collider2D o;
o=new UnityEngine.Collider2D();
pushValue(l,... | 26.318296 | 99 | 0.690791 | [
"MIT"
] | zhangjie0072/FairyGUILearn | Assets/Slua/LuaObject/Unity/Lua_UnityEngine_Collider2D.cs | 10,503 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace DotNetify
{
public static class MixinsVM
{
public static void AcceptChangedProperties(this IBaseVM vm)
{
vm.ChangedProperties... | 26.12 | 85 | 0.660031 | [
"Apache-2.0"
] | lrhmx/dotNetify | DotNetifyLib.Core/MixinsVM.cs | 655 | C# |
/*
Copyright (C) 2020 Jean-Camille Tournier (mail@tournierjc.fr)
This file is part of QLCore Project https://github.com/OpenDerivatives/QLCore
QLCore is free software: you can redistribute it and/or modify it
under the terms of the QLCore and QLNet license. You should have received a
copy of the license along w... | 51.808383 | 137 | 0.556442 | [
"BSD-3-Clause"
] | OpenDerivatives/QLCore | QLCore.Tests/T_CapFlooredCoupon.cs | 25,958 | C# |
using App.Core;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace XPaint
{
/// <summary>
/// 工具类别
/// </summary>
public enum ToolType
{
[UI("平移")] Hand,
[UI... | 27.479452 | 96 | 0.559322 | [
"MIT"
] | surfsky/PaintX | XPaint/Components/XTool.cs | 2,084 | C# |
using Abp.Authorization;
using CovidCommunity.Api.Authorization.Roles;
using CovidCommunity.Api.Authorization.Users;
namespace CovidCommunity.Api.Authorization
{
public class PermissionChecker : PermissionChecker<Role, User>
{
public PermissionChecker(UserManager userManager)
: base(userMa... | 23.666667 | 66 | 0.712676 | [
"Apache-2.0"
] | eventually-apps/covid-community | api/src/CovidCommunity.Api.Core/Authorization/PermissionChecker.cs | 357 | 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... | 69.667946 | 455 | 0.654903 | [
"MIT"
] | Agazoth/azure-powershell | src/VMware/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs | 35,777 | C# |
namespace SharpCompress.Compressor.Rar.decode
{
internal class AudioVariables
{
internal AudioVariables()
{
Dif = new int[11];
}
internal int[] Dif { get; private set; }
internal int ByteCount { get; set; }
internal int D1 { get; set; }
... | 28.192308 | 49 | 0.51296 | [
"MIT"
] | Gert-Jan/sharpcompress | SharpCompress/Compressor/Rar/Decode/AudioVariables.cs | 733 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace PdfSharp.Xps.XpsModel
{
/// <summary>
/// Pseudo element that represents an XML comment in an XPS file.
/// </summary>
class Comment : XpsElement
{
/// <summary>
/// Gets or sets the comment text.
/// </summary>
pub... | 20.882353 | 67 | 0.64507 | [
"MIT"
] | DHTMLX/grid-to-pdf-net | src/lib/PDFsharp/code/PdfSharp.Xps/PdfSharp.Xps.XpsModel/Comment.cs | 357 | C# |
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Sy... | 35.981132 | 159 | 0.579444 | [
"Apache-2.0"
] | AYLIEN/openapi-generator | samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/GmFruit.cs | 9,535 | C# |
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Dolittle.Runtime.Projections.Store;
/// <summary>
/// Defines a system for collecting metrics about the projection store.
/// </summary>
public interface IMet... | 37.056604 | 133 | 0.684827 | [
"MIT"
] | dolittle-runtime/Runtime | Source/Projections.Store/IMetricsCollector.cs | 3,928 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum SeedType
{
LIGHTGRASS = 1,
PUREGRASS = 2,
BOUNCEMUSH = 3,
BLOCKTREE = 4,
WEED = 5
}
abstract public class StartPoint : MonoBehaviour
{
public bool isActivate = false;
public WaterColor color;
pu... | 25.40566 | 215 | 0.577423 | [
"MIT"
] | YumiiK/Regrass | Assets/Resources/Scripts/Seeds/StartPoint.cs | 2,695 | C# |
/****
* Created by: Ben Jenkins
* Date Created: April 20,2022
*
* Last Edited by: NA
* Last Edited: NA
*
* Description: Controls the halo when a card is hovered
****/
using UnityEngine;
public class HoverScript : MonoBehaviour
{
[HideInInspector] public GameObject thisCubeSlot;
[HideInInspector] publ... | 26.197802 | 80 | 0.567953 | [
"MIT"
] | Doggitoz/Rename | Oppozootion Unity/Assets/Scripts/Cards/HoverScript.cs | 2,384 | 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... | 40.72973 | 85 | 0.723955 | [
"MIT"
] | Telerik-Homework-ValentinRangelov/Homework | C#/C# 1/Homework Loops/Problem 3. Min, Max, Sum and Average of N Numbers/Properties/AssemblyInfo.cs | 1,510 | C# |
using System;
using Xunit;
namespace Typesafe.Mailgun.Tests
{
[Trait("Category", TestCategory.Integration)]
public class When_sending_an_email_message_for_a_non_existing_domain
{
[Fact]
public void an_invalid_operation_exception_should_be_thrown()
{
Assert.Throws<InvalidOperationException>(() =>
Mailgu... | 24.222222 | 69 | 0.784404 | [
"Apache-2.0"
] | astiskala/mnailgun | src/Typesafe.Mailgun.Tests/When_sending_an_email_message_for_a_non_existing_domain.cs | 436 | C# |
/***********************************************************************
* Project: CoreCms
* ProjectName: 核心内容管理系统
* Web: https://www.corecms.net
* Author: 大灰灰
* ... | 41.12931 | 247 | 0.548103 | [
"Apache-2.0"
] | CoreUnion/CoreShop | CoreCms.Net.Repository/Distribution/CoreCmsDistributionRepository.cs | 4,925 | C# |
using System;
namespace SpecFlow.VisualStudio.Common;
public class DeveroomConfigurationException : Exception
{
public DeveroomConfigurationException()
{
}
public DeveroomConfigurationException(string message) : base(message)
{
}
public DeveroomConfigurationException(string message, Exc... | 20.473684 | 115 | 0.742931 | [
"MIT"
] | SpecFlowOSS/SpecFlow.VS | SpecFlow.VisualStudio.Common/DeveroomConfigurationException.cs | 391 | C# |
// Copyright (c) Six Labors and contributors.
// Licensed under the GNU Affero General Public License, Version 3.
using System;
using System.Buffers;
using System.Numerics;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFor... | 42.908333 | 138 | 0.613129 | [
"Apache-2.0"
] | fahadabdulaziz/ImageSharp | src/ImageSharp/Processing/Processors/Overlays/GlowProcessor{TPixel}.cs | 5,149 | C# |
// <auto-generated />
using System;
using EFCoreMigration;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace EFCor... | 37.607407 | 125 | 0.530431 | [
"MIT"
] | nghianguyendev/EFCoreMigration | EFCoreMigration/Migrations/20210318045309_AddLocation.Designer.cs | 5,079 | C# |
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Authentication;
using MyBlog.Engine.Data.Models;
using Newtonsoft.Json;
using System;
using System.Security.Claims;
namespace MyBlog.Engine.Services
{
public class UserService
{
#region Declarations
private const String UserProfileSe... | 29.218935 | 101 | 0.535844 | [
"MIT"
] | JeremyJeanson/MyBlog.netcore | Sources/MyBlog.Engine/Services/UserService.cs | 4,940 | C# |
using System;
using Microsoft.Extensions.DependencyInjection;
using Orleans;
using Orleans.Runtime;
using Orleans.Runtime.Placement;
using UnitTests.GrainInterfaces;
using Orleans.Hosting;
using Orleans.TestingHost;
using UnitTests.Grains;
namespace TestVersionGrains
{
public class VersionGrainsSiloBuilderConfigur... | 34.827586 | 142 | 0.755446 | [
"MIT"
] | eckerdj7/orleans | test/Versions/TestVersionGrains/VersionGrainsSiloBuilderfactory.cs | 1,010 | C# |
using System;
using ActiproSoftware.Text;
using ActiproSoftware.Text.Lexing;
using ActiproSoftware.Windows.Controls.SyntaxEditor.Outlining;
using ActiproSoftware.Windows.Controls.SyntaxEditor.Outlining.Implementation;
namespace ActiproSoftware.ProductSamples.SyntaxEditorSamples.QuickStart.CodeOutliningCollapsedText {... | 42.655738 | 124 | 0.623367 | [
"MIT"
] | Actipro/WPF-Controls | Samples/SampleBrowser/ProductSamples/SyntaxEditorSamples/QuickStart/CodeOutliningCollapsedText/MultiLineCommentNodeDefinition.cs | 2,604 | C# |
using FriendyFy.Data;
using FriendyFy.Services.Contracts;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ViewModels;
using ViewModels.ViewModels;
namespace FriendyFy.Controllers
{
[Route("post")]
[ApiController]
public... | 30.744186 | 140 | 0.497226 | [
"MIT"
] | thunder913/FriendyFy | FriendyFy/Controllers/PostController.cs | 7,934 | C# |
namespace Cosmos.Workflow
{
/// <summary>
/// Dynamic Forms Interface<br />
/// 动态表单接口<br />
/// 本接口用于 Cosmos.Walker 与 Cosmos.Flower
/// </summary>
public interface IDynamicForms
{
/// <summary>
/// Dynamic Forms Design<br />
/// 动态表单设计稿
/// </summary>
... | 22 | 43 | 0.487603 | [
"MIT"
] | alexinea/Cosmos.Standard | src/Cosmos.Abstractions/Cosmos/Workflow/IDynamicForms.cs | 536 | C# |
using System.Text.Json.Serialization;
namespace EzrealClient.Serialization.JsonConverters
{
/// <summary>
/// 提供一些类型的兼容性的json转换器
/// </summary>
public static class JsonCompatibleConverter
{
/// <summary>
/// 获取Enum类型反序列化兼容的转换器
/// </summary>
public static JsonConver... | 27.95 | 93 | 0.627907 | [
"MIT"
] | EzrealJ/EzrealClient | src/EzrealClient.Abstractions/Serialization/JsonConverters/JsonCompatibleConverter.cs | 645 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataObjects
{
public class Project
{
public string ProjectID { get; set; }
public string Name { get; set; }
public string Description { get; set; }
publ... | 21.571429 | 50 | 0.612583 | [
"MIT"
] | pythoncoder999/TekCafe | src/DataObjects/Project.cs | 606 | 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 enable
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using Sy... | 56.946188 | 213 | 0.776439 | [
"MIT"
] | missymessa/roslyn | src/VisualStudio/LiveShare/Impl/Shims/TypeScriptHandlerShims.cs | 12,701 | 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.491379 | 143 | 0.626351 | [
"Apache-2.0"
] | FoxBearBear/aws-sdk-net | sdk/src/Services/MediaConnect/Generated/Model/Internal/MarshallTransformations/AddFlowOutputsRequestMarshaller.cs | 4,349 | C# |
namespace _06.Heists
{
using System;
using System.Linq;
public class Heists
{
public static void Main()
{
var prices = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int jewelsPrice = prices[0];
int goldPrice = prices[1];
s... | 29.7 | 100 | 0.428283 | [
"MIT"
] | MihailDobrev/SoftUni | Tech Module/Programming Fundamentals/13. Arrays and Methods - More Exercises/06. Heists/Heists.cs | 1,487 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace COASqlQuery
{
public class COASqlData<T>
{
public string SqlQuery { get; set; }
public int Lenght { get; set; }
public string TableName { get; set; }
public COADataBaseTypes DataBaseType { g... | 27.47619 | 80 | 0.604853 | [
"MIT"
] | cemozguraA/COASqlQuery | COASqlQuery/COASqlData.cs | 579 | C# |
// <copyright file="BoxResampler.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageProcessorCore
{
/// <summary>
/// The function implements the box algorithm. Similar to nearest neighbour... | 25.758621 | 95 | 0.57162 | [
"Apache-2.0"
] | ChaseFlorell/ImageProcessor | src/ImageProcessorCore/Samplers/Resamplers/BoxResampler.cs | 749 | 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
*
... | 30.346154 | 96 | 0.637516 | [
"Apache-2.0"
] | TencentCloud/tencentcloud-sdk-dotnet | TencentCloud/Live/V20180801/Models/HttpStatusData.cs | 1,618 | C# |
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Discord;
using Discord.Rest;
using Discord.WebSocket;
using Modix.Common.Messaging;
using Modix.Data.Models.Moderation;
using Modix.Services.Core;
using Modix.Services.Utilities;
using Serilog;
namespace Modix.Services.Moderation
{
/... | 42.927928 | 146 | 0.628122 | [
"MIT"
] | CryoMyst/MODiX | Modix.Services/Moderation/InfractionSyncingHandler.cs | 4,767 | 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.ComponentModel;
using Pulumi;
namespace Pulumi.AzureNextGen.Resources.V20190701
{
/// <summary>
/// The mode that is used to dep... | 48.142857 | 437 | 0.712957 | [
"Apache-2.0"
] | pulumi/pulumi-azure-nextgen | sdk/dotnet/Resources/V20190701/Enums.cs | 5,055 | C# |
namespace Azure
{
public abstract partial class AsyncPageable<T> : System.Collections.Generic.IAsyncEnumerable<T> where T : notnull
{
protected AsyncPageable() { }
protected AsyncPageable(System.Threading.CancellationToken cancellationToken) { }
protected virtual System.Threading.Cancell... | 73.269951 | 355 | 0.729551 | [
"MIT"
] | Kyle8329/azure-sdk-for-net | sdk/core/Azure.Core/api/Azure.Core.net5.0.cs | 74,369 | C# |
using System;
using System.IO;
using GroupDocs.Conversion.Options.Convert;
namespace GroupDocs.Conversion.Examples.CSharp.BasicUsage
{
/// <summary>
/// This example demonstrates how to convert OTT file into DOC format.
/// For more details about Open Document Template (.ott) to Microsoft Word Document (.d... | 41.129032 | 159 | 0.665098 | [
"MIT"
] | groupdocs-conversion/GroupDocs.Conversion-for-.NET | Examples/GroupDocs.Conversion.Examples.CSharp/BasicUsage/ConvertToWordProcessing/ConvertToDoc/ConvertOttToDoc.cs | 1,275 | C# |
using System;
using masz.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
namespace masz.Controllers
{
[ApiController]
[Route("api/v1/meta/")]
[Authorize]
public class MetaController : ControllerBas... | 29.129032 | 114 | 0.674419 | [
"MIT"
] | matrix2113/discord-masz | backend/masz/Controllers/api/v1/MetaController.cs | 903 | C# |
// MIT License
// Copyright (c) 2011-2016 Elisée Maurer, Sparklin Labs, Creative Patterns
// Copyright (c) 2016 Thomas Morgner, Rabbit-StewDio Ltd.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the ... | 31.525424 | 155 | 0.600986 | [
"MIT"
] | RabbitStewDio/Steropes.UI | src/Steropes.UI/Widgets/Container/DockPanel.cs | 11,163 | 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.Buffers;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
using In... | 36.241935 | 114 | 0.529298 | [
"MIT"
] | 333fred/runtime | src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/CmsSignature.DSA.cs | 6,741 | C# |
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Reflection;
using Windows.UI;
using Windows.UI.Composition;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Hosting;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Shapes;
using Uno.Extensions;
using Uno... | 28.378299 | 192 | 0.699804 | [
"Apache-2.0"
] | Arieldelossantos/uno | src/Uno.UI.Toolkit/UIElementExtensions.cs | 9,677 | C# |
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\d3d12video.h(237,9)
using System;
using System.Runtime.InteropServices;
namespace DirectN
{
[StructLayout(LayoutKind.Sequential)]
public partial struct D3D12_VIDEO_SIZE_RANGE
{
public uint MaxWidth;
public uint MaxHeight;
... | 24.1875 | 86 | 0.69509 | [
"MIT"
] | bbday/DirectN | DirectN/DirectN/Generated/D3D12_VIDEO_SIZE_RANGE.cs | 389 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BTCPayServer.Data;
using BTCPayServer.Migrations;
using Microsoft.EntityFrameworkCore;
using NBitcoin;
using NBitcoin.DataEncoders;
namespace BTCPayServer.Services.Stores
{
public class StoreRepository
{
... | 38.959288 | 150 | 0.524133 | [
"MIT"
] | esky33kubernetes/btcpayliquid | BTCPayServer/Services/Stores/StoreRepository.cs | 15,311 | C# |
using System.Collections.Generic;
namespace HotChocolate.Language
{
public sealed class ObjectTypeDefinitionNode
: ObjectTypeDefinitionNodeBase
, ITypeDefinitionNode
{
public ObjectTypeDefinitionNode(
Location? location,
NameNode name,
StringValueNod... | 30.092784 | 79 | 0.577595 | [
"MIT"
] | barticus/hotchocolate | src/HotChocolate/Language/src/Language.SyntaxTree/ObjectTypeDefinitionNode.cs | 2,921 | C# |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX - License - Identifier: Apache - 2.0
// snippet-start:[dynamodb.dotnet35.LowLevelBatchWriteExample]
using System;
using System.Collections.Generic;
using Amazon.DynamoDBv2;
using Amazon.DynamoDBv2.Model;
namespace LowLevelBatchWrite
{
... | 39.773723 | 122 | 0.398238 | [
"Apache-2.0"
] | awsa2ron/aws-doc-sdk-examples | dotnetv3/dynamodb/low-level-api/LowLevelBatchWrite/LowLevelBatchWrite.cs | 5,451 | C# |
using System;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using NClient.CodeGeneration.Abstractions;
using NClient.CodeGeneration.Abstractions.Enums;
using NJsonSchema.CodeGeneration.CSharp;
using NSwag;
using NSwag.CodeGeneration.OperationNameGener... | 44.753846 | 161 | 0.642489 | [
"Apache-2.0"
] | nclient/NClient | src/NClient.CodeGeneration/NClient.CodeGeneration.Facades.NSwag/NSwagFacadeGenerator.cs | 2,909 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 41.672131 | 151 | 0.623131 | [
"MIT"
] | vadimvoyevoda/WCF_Programming | WCF/IncludeExceptionDetailsInFaults/DivClient/Service References/DivMath/Reference.cs | 2,544 | C# |
using Alex.ResourcePackLib.Json.Models.Entities;
using Microsoft.Xna.Framework;
namespace Alex.Entities.Models
{
public partial class PufferfishModel : EntityModel
{
public PufferfishModel()
{
Name = "definition.pufferfish";
VisibleBoundsWidth = 0;
VisibleBoundsHeight = 0;
Visibl... | 18.28 | 52 | 0.676149 | [
"MPL-2.0"
] | TheBlackPlague/Alex | src/Alex/Entities/Models/PufferfishModel.cs | 457 | C# |
using GitVersion.BuildServers;
using GitVersion.Cache;
using Microsoft.Extensions.DependencyInjection;
using GitVersion.Configuration;
using GitVersion.Logging;
using GitVersion.OutputVariables;
using GitVersion.VersionCalculation;
using GitVersion.VersionCalculation.BaseVersionCalculators;
using GitVersion.Con... | 47.364865 | 94 | 0.699572 | [
"MIT"
] | BaY1251/GitVersion | src/GitVersionCore/GitVersionCoreModule.cs | 3,432 | C# |
using System;
namespace b
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Q#53 (b)");
int x = 10 , y = 15;
x= x++;
y=++y;
Console.WriteLine(x);
Console.WriteLine(y);
}
}
}... | 17.888889 | 43 | 0.385093 | [
"Apache-2.0"
] | AbdulMueed209/Assingnment-4 | Q#53 b.cs | 324 | C# |
namespace TickTrader.FDK.Common
{
/// <summary>
/// The enumeration describes possible time directions.
/// </summary>
public enum TimeDirection
{
/// <summary>
/// From past to future.
/// </summary>
Forward = 1,
/// <summary>
/// From future to pas... | 19.736842 | 59 | 0.498667 | [
"MIT"
] | SoftFx/FDK2 | Common/TimeDirection.cs | 377 | 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... | 31.035714 | 174 | 0.697353 | [
"Apache-2.0"
] | pulumi-bot/pulumi-azure-native | sdk/dotnet/MachineLearningCompute/Outputs/StorageAccountPropertiesResponse.cs | 869 | C# |
using System;
namespace WebApiExtensibilityDemo.Areas.HelpPage
{
/// <summary>
/// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class.
/// </summary>
public class TextSample
{
public TextSample(string ... | 25.27027 | 141 | 0.518717 | [
"MIT"
] | CodeFuller/web-api-extensibility-demo | WebApiExtensibilityDemo/Areas/HelpPage/SampleGeneration/TextSample.cs | 935 | C# |
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using osu.Game.Rulesets.Objects.Types;
using osu.Game.Rulesets.Objects;
namespa... | 31.196078 | 93 | 0.508485 | [
"MIT"
] | StefanYohansson/osu | osu.Game/Screens/Play/SongProgressGraph.cs | 1,593 | C# |
public static class GlobalVariables
{
public static float speed = 2f;
public static bool collisionTop = false;
public static bool collisionBottom = false;
public static bool newHighscore = false;
}
| 26.875 | 47 | 0.734884 | [
"BSD-2-Clause"
] | NotMyTschopp/Alpha-vTschopp | Assets/Scripts/GlobalVariables.cs | 217 | 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("Di... | 39.27027 | 84 | 0.75086 | [
"Apache-2.0"
] | jonathanody/WhereMineLinq | DiyLinq/Properties/AssemblyInfo.cs | 1,456 | C# |
#if UNITY_EDITOR
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
#endif
namespace UniGLTF.ShaderPropExporter
{
public enum ShaderPropertyType
{
TexEnv,
Color,
Range,
Float,
Vector,
}
public struct ShaderProperty
{
... | 27.410714 | 134 | 0.558958 | [
"MIT"
] | AkashiAkatsuki/VRMBase | Assets/VRM/UniGLTF/Scripts/IO/ShaderPropExporter/ShaderProps.cs | 3,072 | C# |
using System.Collections.Generic;
using SkiaSharp;
using Svg.Model.Painting.ColorFilters;
using Svg.Model.Painting.ImageFilters;
using Svg.Model.Painting;
using Svg.Model.Primitives.PathCommands;
using Svg.Model.Painting.PathEffects;
using Svg.Model.Primitives;
using Svg.Model.Primitives.CanvasCommands;
using Svg.Mode... | 43.261633 | 144 | 0.496682 | [
"MIT"
] | benjaminZale/Svg.Skia | src/Svg.Skia/SkiaModelExtensions.cs | 49,277 | C# |
using UnityEngine;
using System.Collections;
public class CameraControlleur : MonoBehaviour {
public GameObject player;
private Vector3 offset;
// Use this for initialization
void Start () {
offset = transform.position - player.transform.position;
}
// Update is called once per frame
v... | 21.578947 | 64 | 0.697561 | [
"MIT"
] | Loupsito/Roll-ball-game | Assets/Scripts/CameraControlleur.cs | 412 | C# |
using System;
using System.Configuration;
using log4net;
namespace Blacker.MangaScraper.Library.Configuration
{
public class LibraryConfiguration : ConfigurationSection
{
private static readonly ILog _log = LogManager.GetLogger(typeof (LibraryConfiguration));
private static LibraryConfigurati... | 31.266667 | 140 | 0.525053 | [
"BSD-2-Clause"
] | blacker-cz/MangaScraper | Blacker.MangaScraper.Library/Configuration/LibraryConfiguration.cs | 1,878 | C# |
using System;
using CMS.Ecommerce;
namespace LearningKit.Models.Products
{
//DocSection:ProductListingModel
public class ProductListItemViewModel
{
public readonly PriceDetailViewModel PriceModel;
public string Name;
public string ImagePath;
public string PublicStatusName;... | 37.391304 | 123 | 0.640698 | [
"MIT"
] | NattawatPin/LearningKit-Mvc | LearningKit/Models/Products/ProductListItemViewModel.cs | 1,722 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
static class Program
{
/// <summary>
/// Punto de entrada principal para la aplicación.
/// </summary>
[STAThread]
static voi... | 23.636364 | 66 | 0.588462 | [
"Apache-2.0"
] | darkangel100/jimenez | WindowsFormsApplication1/Program.cs | 523 | C# |
using System.Collections;
using System.Collections.Generic;
using UniRx;
using UnityEngine;
using UnityEngine.UIElements;
public abstract class View<VM> : MonoBehaviour where VM:ViewModel<VM>
{
[SerializeField]
protected UIDocument document;
[SerializeField]
private VM viewModel;
CompositeDisposa... | 19.463415 | 82 | 0.672932 | [
"MIT"
] | crazyjackel/690-Project | Shared/Assets/Scripts/Functionality/View.cs | 798 | C# |
using System;
using System.Collections.Generic;
using System.Net.Http.Headers;
using KeyPayV2.Nz.Models.Common;
using KeyPayV2.Nz.Enums;
namespace KeyPayV2.Nz.Models.Business
{
public class BusinessAction
{
public DateTime Date { get; set; }
public string Title { get; set; }
... | 24 | 47 | 0.642157 | [
"MIT"
] | KeyPay/keypay-dotnet-v2 | src/keypay-dotnet/Nz/Models/Business/BusinessAction.cs | 408 | C# |
using AdminWebsite.Helper;
using System.Collections.Generic;
using System.Security.Claims;
using AdminWebsite.Models;
namespace AdminWebsite.Security
{
public interface IUserIdentity
{
IEnumerable<string> GetGroupDisplayNames();
bool IsAdministratorRole();
string GetUserIdentityName();... | 27.885246 | 88 | 0.656673 | [
"MIT"
] | hmcts/vh-admin-web | AdminWebsite/AdminWebsite/Security/UserIdentity.cs | 1,703 | C# |
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers
* for more information concerning the license and the contributors participating to this project.
*/
using Microsoft.AspNetCore.Authentication;
u... | 37.017241 | 98 | 0.643223 | [
"Apache-2.0"
] | Darkn1es/AspNet.Security.OAuth.Providers | src/AspNet.Security.OAuth.Lichess/LichessAuthenticationDefaults.cs | 2,149 | C# |
#nullable disable
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Xml.Linq;
using VocaDb.Model.DataContracts.PVs;
using VocaDb.Model.DataContracts.ReleaseEvents;
using VocaDb.Model.DataContracts.Songs;
using VocaDb.Model.Domain.Activityfeed;
usin... | 25.861915 | 179 | 0.683603 | [
"MIT"
] | AgFlore/vocadb | VocaDbModel/Domain/ReleaseEvents/ReleaseEvent.cs | 11,612 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.