content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.Collections.Generic; using System.IO; using System.Text.RegularExpressions; using StbImageSharp; using TriLibCore.Extensions; using TriLibCore.General; using TriLibCore.Interfaces; using TriLibCore.Mappers; using TriLibCore.Utils; using UnityEngine; using FileMode = System.IO.FileMode; using...
54.224759
435
0.587513
[ "Apache-2.0" ]
PavelGem-13g/City-scene-editor
City-scene-editor/Assets/TriLib/TriLibCore/Scripts/AssetLoader.cs
61,764
C#
using Item.Enum; using Item.Model; using Item.View; using Item.View.Modules; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace Item.Control { public class ItemTipManager { private static ItemTipManager inst; public static ItemTipManager Inst() { ...
33.987952
117
0.54626
[ "MIT" ]
taixihuase/Game-Tips-Design
Assets/Scripts/Item/Control/ItemTipManager.cs
8,609
C#
// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information. using System; namespace CommandLine { /// <summary> /// Models an value specification, or better how to handle values not bound to options. /// </summary> [At...
29.276596
143
0.566134
[ "MIT" ]
BitIndex/CashDB
extern/src/commandline/ValueAttribute.cs
1,378
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.CodeAnalysis; using System.Diagnostics.Contracts; using System.Runtime.Compil...
43.51186
136
0.539437
[ "MIT" ]
deanchalk/WindowsCommunityToolk
Microsoft.Toolkit.HighPerformance/Buffers/StringPool.cs
34,853
C#
using System; namespace VBB.Model { public class ChangeLog { public int Id { get; set; } public bool? IsReviewed { get; set; } public DateTime DateChanged { get; set; } public string ChangeType { get; set; } public string ObjectType { get; set; } public int...
18.12
53
0.576159
[ "MIT" ]
mkvster/vobabu
VBB.Model/ChangeLog.cs
453
C#
using System; using System.Diagnostics.CodeAnalysis; namespace FritzBot.Functions { /// <summary> /// Stellt eine Cache Klasse da, die den Cache selbstständig erneuert /// </summary> /// <typeparam name="T">Der Typ der gekapselt werden soll</typeparam> public class DataCache<T> { [Allo...
35.148148
159
0.568318
[ "MIT" ]
Suchiman/FritzBot
freetzbot/Functions/DataCache.cs
2,852
C#
using System; using LinkShrink; using Xunit; namespace Tests { public class HashingShrinkerTests { private readonly char[] _saferCharacters = "0123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".ToCharArray(); [Fact] public void UriMatchesAlsoMatchPath() { var uri1 = new Uri("htt...
30.56
103
0.598822
[ "MIT" ]
joshbannon/simple-url-shortener
UrlShortener/Tests/HashingShrinkerTests.cs
1,530
C#
using SportscardSystem.DTO.Contracts; using System.Collections.Generic; using System.Linq; using SportscardSystem.Data.Contracts; using System; using SportscardSystem.DTO; using SportscardSystem.Models; namespace SportscardSystem.Logic.Services.Contracts { public interface IClientService { /// <summar...
27.465116
71
0.619814
[ "MIT" ]
the-hushed-cobras/Sportscard-Project
SportscardSystem.Logic/Services/Contracts/IClientService.cs
1,183
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using TButt; namespace TButt.Services { public class TBServiceBase : MonoBehaviour { protected string _username = "null"; protected bool _ready; /// <summary> /// Establishes connections, checks en...
28.209302
102
0.559357
[ "MIT" ]
jeff-chamberlain/tbutt-vr
Source/Assets/TButt/Services/TBServiceBase.cs
2,428
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 SkyBlueBlue { public class Program { ...
24.28
76
0.693575
[ "MIT" ]
15093015999/Kalearn
Program.cs
609
C#
//using AutoMapper.Configuration; using Microsoft.Extensions.Configuration; using AutoMapper.QueryableExtensions; using Microsoft.EntityFrameworkCore; using Nsiclass.Data; using Nsiclass.Data.Models; using Nsiclass.Services.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; u...
46.29108
209
0.543611
[ "MIT" ]
moher4o/NSIClass
Nsiclass.Services/Implementations/AdminVersionService.cs
20,603
C#
//------------------------------------------------------------------------------ // <auto-generated /> // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.12 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //----...
34.367347
144
0.648456
[ "Apache-2.0" ]
qg0/EliteQuant_Excel
SwigConversionLayer/csharp/Actual365NoLeap.cs
1,684
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Net; namespace Makaretu.Dns { [TestClass] public class NSRecordTest { [TestMethod] public void Roundtrip() { var a = new NSRecord ...
27.169231
73
0.492072
[ "MIT" ]
TheDuQe/net-dns
test/NSRecordTest.cs
1,768
C#
// <copyright file="IDistributionData.cs" company="OpenCensus Authors"> // Copyright 2018, OpenCensus 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....
29.087719
75
0.607358
[ "Apache-2.0" ]
PriceSpider-NeuIntel/opencensus-csharp
src/OpenCensus.Abstractions/Stats/Aggregations/IDistributionData.cs
1,660
C#
using AkkoCore.Commands.Abstractions; using AkkoCore.Commands.Modules.Utilities.Services; using AkkoCore.Common; using AkkoCore.Extensions; using AkkoCore.Models.Serializable; using AkkoCore.Services.Caching.Abstractions; using AkkoCore.Services.Database.Entities; using AkkoCore.Services.Timers.Abstractions; using DSha...
44.11875
230
0.678566
[ "Apache-2.0" ]
Akko-Bot/AkkoBot
AkkoCore/Commands/Modules/Utilities/Repeaters.cs
7,059
C#
using MasterDevs.ChromeDevTools; using Newtonsoft.Json; using System; using System.Collections.Generic; namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// <summary> /// Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequ...
35.615385
174
0.7473
[ "MIT" ]
Digitalbil/ChromeDevTools
source/ChromeDevTools/Protocol/Chrome/Overlay/SetInspectModeCommand.cs
926
C#
using System; using MessagePack; namespace Lykke.Job.ForwardWithdrawalResolver.Sagas.Commands { [MessagePackObject(true)] public class ProcessPaymentCommand { public string Id { set; get; } public string ClientId { set; get; } public string AssetId { set; get; } public doub...
27.625
60
0.640271
[ "MIT" ]
LykkeCity/Lykke.Job.ForwardWithdrawalResolver
src/Lykke.Job.ForwardWithdrawalResolver/Sagas/Commands/ProcessPaymentCommand.cs
444
C#
namespace UnityModManagerNet.Installer { partial class UnityModManagerForm { /// <summary> /// Обязательная переменная конструктора. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Освободить все используемые ресурсы....
54.22604
181
0.632808
[ "MIT" ]
zaxcs/unity-mod-manager
UnityModManager/Form.Designer.cs
30,244
C#
using OpenTK; using System; namespace HedgeEdit { [Serializable] public class VPObjectInstance { // Variables/Constants public Quaternion Rotation { get => rot; set { rot = value; UpdateMatrix(); } ...
36.214876
96
0.482999
[ "MIT" ]
Jovana222/idk
HedgeEdit/VPObjectInstance.cs
8,766
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.2.0 // from Assets/Scripts/Input/Mashrooms_Screen_input.inputactions // // Changes to this file may cause in...
44.4782
126
0.431097
[ "Unlicense" ]
holypony/TapMushrooms
Assets/Scripts/Input/Mashrooms_Screen_input.cs
63,248
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("InfiniteBox")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyPr...
25.324324
56
0.716115
[ "Apache-2.0" ]
crecheng/DSPMod
InfiniteBox/Properties/AssemblyInfo.cs
1,278
C#
using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using Autofac; using NUnit.Framework; using Orchard.Environment; namespace Orchard.Tests.Environment { [TestFixture] public class OrchardStarterTests { [Test] public void DefaultOrchardHostInstanceReturnedByCreateHost()...
37.695652
99
0.633218
[ "BSD-3-Clause" ]
1996dylanriley/Orchard
src/Orchard.Tests/Environment/OrchardStarterTests.cs
1,736
C#
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using CitizenFX.Core; using CitizenFX.Core.UI; using static CitizenFX.Core.Native.API; using Magicallity.Client.Helpers; using Magicallity.Client.Player.Controls; using Magicallity....
39.173077
176
0.616102
[ "MIT" ]
Jazzuh/Magicallity-public-source
src/Magicallity.Client/Jobs/EmergencyServices/Police/Radar.cs
4,076
C#
using System; public static partial class Extensions { /// <summary> /// A DateTime extension method that return a DateTime of the last day of the year with the time set to /// "23:59:59:999". The last moment of the last day of the year. Use "DateTime2" column type in sql to keep the /...
43.25
121
0.625723
[ "MIT" ]
edwardmeng/FluentMethods
src/Core/System.DateTime/EndOfYear.cs
694
C#
#nullable enable using System; using Robust.Shared.Serialization; namespace Content.Shared.GameObjects.Components.Singularity { [NetSerializable, Serializable] public enum RadiationCollectorVisuals { VisualState } [NetSerializable, Serializable] public enum RadiationCollectorVisualSta...
18.727273
59
0.68932
[ "MIT" ]
BingoJohnson/space-station-14
Content.Shared/GameObjects/Components/Singularity/SharedRadiationCollectorComponent.cs
414
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BusinessLayer.BadExceptions { public class Operations { public void SaveCustomerAndOrder(CustomerDto customer, OrderDto order) { try { ...
35.111111
93
0.552532
[ "MIT" ]
claq2/Exceptions
BusinessLayer/BadExceptions/Operations.cs
1,582
C#
using System.Threading.Tasks; namespace Marketplace.Framework { public interface IApplicationService { Task HandleAsync(object command); } }
16.3
41
0.711656
[ "MIT" ]
MHacker9404/Sandbox
Marketplace.Framework/IApplicationService.cs
165
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
31.32
84
0.478927
[ "MIT" ]
VisualAcademy/EntityFrameworkCore
DotNetNote/MemoEngine/Account/ManageLogins.aspx.designer.cs
785
C#
#region Using directives #endregion namespace Blazorise { public class ThemeProgressOptions : BasicOptions { public string PageProgressDefaultColor { get; set; } = "#ffffff"; } }
18.272727
73
0.691542
[ "MIT" ]
CPlusPlus17/Blazorise
Source/Blazorise/Themes/Models/ThemeProgressOptions.cs
203
C#
#if !NETSTANDARD13 /* * 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 ...
40.040404
150
0.65111
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/SageMaker/Generated/Model/_bcl45+netstandard/ListPipelinesPaginator.cs
3,964
C#
using FlubuCore.Context; using FlubuCore.Context.FluentInterface; using FlubuCore.Context.FluentInterface.Interfaces; using FlubuCore.Infrastructure; using FlubuCore.Scripting; using FlubuCore.Targeting; using FlubuCore.Tasks; using FlubuCore.Tests.TestData.BuildScripts.ForCreateTargetWithAttributes; using Microsoft.E...
51.893333
213
0.71814
[ "BSD-2-Clause" ]
issafram/flubu.core
FlubuCore.Tests/TargetCreatorTests.cs
3,894
C#
using System; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Controls; using Microsoft.Win32; namespace RegEditor.Usercontol { public partial class RegistryValuesControl : UserControl { private readonly IEnumerable<string> _typesKind = Enum.GetNames(typ...
32.125
116
0.620623
[ "CC0-1.0" ]
23S163PR/system-programming
Novak.Andriy/All_Projects/RegEditor/Usercontol/RegistryValuesControl.xaml.cs
1,544
C#
using System.ComponentModel.DataAnnotations; namespace SPID.AspNetCore.IdentityServerSample.IdentityServer.Controllers { public class LoginInputModel { [Required] public string Username { get; set; } [Required] public string Password { get; set; } public bool RememberLog...
27.857143
73
0.661538
[ "MIT" ]
AndreaPetrelli/spid-aspnetcore
samples/2_IdentityServer/SPID.AspNetCore.IdentityServerSample.IdentityServer/Controllers/Account/LoginInputModel.cs
390
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; namespace NRoles.Engine.Test.Support.AbstractMembers { public abstract class Base { public abstract int Method(); } [CompositionTest( Description = "Abstract method in a base class...
27.428571
113
0.669271
[ "MIT" ]
xingh/nroles
src/NRoles.Engine.Test.Acceptance/Support/AbstractMembers.cs
1,154
C#
using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Sample.Shared; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Sample.Server.Controllers; [ApiController] [Route("[controller]")] public class WeatherForecastController : ControllerBase...
25.125
110
0.700498
[ "Unlicense" ]
ScriptBox99/blazor-state
Samples/Tutorial/Sample/Server/Controllers/WeatherForecastController.cs
1,005
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace forca { public partial class FrmJogar : Form { public FrmJogar() { ...
19.589744
78
0.600785
[ "CC0-1.0" ]
leomonteiro/incubadora
forca/forca/FrmJogar.cs
766
C#
using NUnit.Framework; using ToDoList.Api.Services.Providers; namespace ToDoList.Api.Services.Tests.Providers { [TestFixture] public class ConnectionConfigurationServiceTests { [Test] public void ConnectionString() { // Act var service = new ConnectionConfig...
26.15
138
0.623327
[ "MIT" ]
vaclavm/kentico-onboarding-cs
ToDoList/test/ToDoList.Api.Services.Tests/Providers/ConnectionConfigurationTests.cs
525
C#
//------------------------------------------------------------ // Game Framework // Copyright © 2013-2020 Jiang Yin. All rights reserved. // Homepage: https://GameFramework.cn/ // Feedback: mailto:ellan@GameFramework.cn //------------------------------------------------------------ namespace GX.Entity { ...
28.603604
122
0.470551
[ "MIT" ]
modi00012/GameFramework
GameFramework/Entity/IEntity.cs
3,680
C#
using System; using System.Linq.Expressions; namespace Super.Model.Selection { public class Compile<TIn, TOut> : Select<TIn, TOut> { public Compile(Expression<Func<TIn, TOut>> select) : base(select.Compile()) {} } }
22.2
80
0.720721
[ "MIT" ]
SuperDotNet/Super.NET
Super/Model/Selection/Compile.cs
224
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "li...
35.558824
105
0.614557
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Macie2/Generated/Model/SensitiveDataItem.cs
3,627
C#
namespace LibSignal.Protocol.Net.State { public interface PreKeyStore { // Throws InvalidKeyIdException public PreKeyRecord loadPreKey(int preKeyId); public void storePreKey(int preKeyId, PreKeyRecord record); public bool containsPreKey(int preKeyId); public void rem...
20.764706
67
0.691218
[ "MIT" ]
SeppPenner/LibSignal.Protocol.Net
src/LibSignal.Protocol.Net/State/PreKeyStore.cs
353
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 ...
32.475248
120
0.64878
[ "Apache-2.0" ]
BigYellowHammer/activemq-nms-openwire
src/main/csharp/OpenWire/V8/ActiveMQBytesMessageMarshaller.cs
3,280
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UXI.Common { public class DisposableBase : IDisposable { private bool _disposed; public void Dispose() { Dispose(true); GC.SuppressFinal...
17.742857
54
0.507246
[ "MIT" ]
martinkonopka/UXI.Libs
src/UXI.Common/DisposableBase.cs
621
C#
using System; using System.Collections.Generic; using System.Text; namespace Ui.MauiX.Test.Models { public class Person { #region Properties public string FirstName { get; set; } public string LastName { get; set; } public int Age { get; set; } #endregion } }
19.625
45
0.617834
[ "MIT" ]
ihvrooman/Ui.MauiX
Ui.MauiX.Test/Models/Person.cs
316
C#
//////////////////////////////////////////////////////////////////////////////// //NUnit tests for "EF Core Provider for LCPI OLE DB" // IBProvider and Contributors. 26.11.2020. using System; using System.Data; using System.ComponentModel.DataAnnotations; using System.ComponentMode...
28.146119
225
0.55743
[ "MIT" ]
ibprovider/Lcpi.EFCore.LcpiOleDb
Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D3/Query/Operators/SET_002__AS_STR/Multiply/Complete/Int32/NUMERIC_2_1/TestSet_001__fields.cs
6,166
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
44.608696
94
0.609162
[ "MIT" ]
minrogi/PLMPack
Sources/PLMPackModel/Group.cs
2,052
C#
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Website: https://www.blazor.zone or https://argozhang.github.io/ using Microsoft.AspNetCore.Components; using Microsoft.Extensions.Localiz...
25.303571
111
0.644319
[ "Apache-2.0" ]
Ashhhhhh520/BootstrapBlazor
src/BootstrapBlazor/Components/Gotop/GoTop.razor.cs
1,477
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.Generic; using System.Linq; namespace System.Net.NetworkInformation { internal class O...
40.429487
136
0.507848
[ "MIT" ]
Roibal/corefx
src/System.Net.NetworkInformation/src/System/Net/NetworkInformation/OsxNetworkInterface.cs
6,307
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...
36.611111
148
0.60091
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/DataFactory/Latest/Inputs/AzureDatabricksDeltaLakeSinkArgs.cs
2,636
C#
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com /* IrbisBuffer.cs -- helper class for interop with Irbis DLL * Ars Magna project, http://arsmagna.ru * -----------------------------------------------------...
20.764706
84
0.506374
[ "MIT" ]
amironov73/ManagedClient.45
Source/Classic/Libs/OfficialWrapper/Source/IrbisBuffer.cs
1,414
C#
using System; using System.Linq; namespace _08.CustomComparator { public class CustomComparator { public static Predicate<int> predicate = n => n % 2 == 0; public static void Main() { var input = Console.ReadLine().Split().Select(int.Parse).ToArray(); Array.So...
23.451613
79
0.436039
[ "MIT" ]
mdamyanova/C-Sharp-Web-Development
08.C# Fundamentals/08.01.C# Advanced/13.Functional Programming - Exercise/08.CustomComparator/CustomComparator.cs
729
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading; using System.Threading.Tasks; using AntDesign; using AntDesign.TableModels; using Microsoft.AspNetCore.Components; using Microsoft.Extensions.Logging; using Sitko.Core.App.Blazor.Components; using Sitko....
39.078431
119
0.571835
[ "MIT" ]
IgorAlymov/Sitko.Core
src/Sitko.Core.Blazor.AntDesign/Components/BaseAntListComponent.razor.cs
11,960
C#
using System.Collections.Generic; using Improbable.Worker.CInterop; namespace Improbable.Gdk.Core { /// <summary> /// Represents an object which can initialize the connection parameters. /// </summary> public interface IConnectionParameterInitializer { /// <summary> /// Init...
33.205128
115
0.688031
[ "MIT" ]
DenDrummer/TI-conf_19-20_groep-1
POC/SpatialOS Maze/gdk-for-unity/workers/unity/Packages/io.improbable.gdk.core/Worker/ConnectionHandlers/ConnectionParameterInitializers.cs
1,295
C#
// THIS FILE IS AUTO-GENERATED using System.Collections.Generic; namespace dotlox { public interface IVisitor<R> { R VisitBinaryExpr(Binary expr); R VisitUnaryExpr(Unary expr); R VisitGroupingExpr(Grouping expr); R VisitLiteralExpr(Literal expr); } public abstract class Exp...
23.777778
58
0.556659
[ "MIT" ]
martind/dotlox
dotlox/Expr.cs
1,712
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 ...
22.526316
68
0.686916
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-emr/Emr/Model/V20160408/CreateFlowProjectClusterSettingResponse.cs
1,284
C#
using System; using System.Net; using Microsoft.VisualStudio.TestTools.UnitTesting; using RestFluencing; using RestFluencing.Assertion; namespace RestFluencing.Sample.GitHub { [TestClass] public class GitHubGetRequests { [TestInitialize] public void FixTsl() { ServicePointManager.SecurityProtocol = Securi...
21.508772
69
0.700653
[ "MIT" ]
djmnz/RestFluencing
samples/RestFluencing.Sample.GitHub/GitHubGetRequests.cs
1,228
C#
using System; using System.Collections.Generic; namespace WiremockUI.Data { public class Settings { public Guid Id { get; set; } public Dictionary<string, string> Languages { get; set; } = new Dictionary<string, string>(); public string DefaultLanguage { get; set; } public stri...
28
101
0.652381
[ "MIT" ]
juniorgasparotto/WiremockUI
src/WiremockUI/Data/Settings.cs
422
C#
using System.Collections; using System.Collections.Generic; namespace DataCloner.Core.Framework { public class StructuralEqualityComparer<T> : IEqualityComparer<T> { private static StructuralEqualityComparer<T> _defaultComparer; public bool Equals(T x, T y) { return Struct...
27.923077
104
0.666667
[ "MIT" ]
naster01/DataCloner
archive/DataCloner.Core.Net/Framework/Helpers.cs
728
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpOverrides; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.OpenApi.Models; using WebSocketManager; namespace Gis.WsServer ...
31.967742
129
0.631685
[ "Apache-2.0" ]
maksim83/InsideTest
Common.WsServer/Startup.cs
1,982
C#
namespace MyLisp { public enum SyntaxKind { PlusToken, MinusToken, StarToken, SlashToken, BadToken, EndOfFileToken, OpenParenthesisToken, CloseParenthesisToken, IntegerNumberToken, FloatingPointNumberToken, IdentifierToken,...
19
33
0.574371
[ "MIT" ]
DavidBetteridge/Lisp
MyLisp/01. Lexer/SyntaxKind.cs
439
C#
using System; using UnityEngine; [Serializable] public class MazeRoomSettings { public Material FloorMaterial; public Material wallMaterial; }
15.3
34
0.777778
[ "MIT" ]
mayxen/Maze-Game
Assets/Proyect/Scripts/MazeRoomSettings.cs
155
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from /usr/include/x86_64-linux-gnu/sys/types.h and corresponding dependencies of Ubuntu 20.04 // Original source is Copyright © Free Software Foundation, Inc. Lice...
42.666667
145
0.727036
[ "MIT" ]
tannergooding/terrafx.interop.libc
sources/Interop/Libc/Posix/sys/types/pthread_t.cs
4,226
C#
// The MIT License (MIT) // Copyright (c) 2015 Ben Abelshausen // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, co...
29.951872
88
0.542403
[ "MIT" ]
timminata/GTFS
GTFS/Entities/Collections/UniqueEntityListCollection.cs
5,603
C#
using System.Globalization; using SixLabors.ImageSharp.PixelFormats; namespace WizBot.Services { /// <summary> /// Custom setting value parsers for types which don't have them by default /// </summary> public static class ConfigParsers { /// <summary> /// Default string parser. Pas...
26.434783
85
0.53125
[ "MIT" ]
Wizkiller96/WizBot
src/WizBot/Services/Settings/ConfigParsers.cs
1,218
C#
using System; namespace ProtoBuf.Meta { public delegate void TypeFormatEventHandler(object sender, TypeFormatEventArgs args); }
18.571429
86
0.823077
[ "MIT" ]
corefan/tianqi_src
src/ProtoBuf.Meta/TypeFormatEventHandler.cs
130
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json.Linq; using OrchardCore.ContentManagement.Metadata.Models; using OrchardCore.ContentManagement.Utilities; namespace OrchardCore.ContentManagement.Metadata.Builders { public class ContentTypeDefini...
36.440529
185
0.608559
[ "BSD-3-Clause" ]
1051324354/OrchardCore
src/OrchardCore/OrchardCore.ContentManagement.Abstractions/Metadata/Builders/ContentTypeDefinitionBuilder.cs
8,272
C#
namespace BNQ.Core.Extensions { public static class PotExtensions { public static double GetHalfPot(this double pot) { return pot / 2; } } }
18.181818
57
0.535
[ "MIT" ]
YouJinTou/BNQ
BNQ/BNQ.Core/Extensions/PotExtensions.cs
202
C#
namespace More.Windows.Input { using System; using System.Diagnostics.Contracts; using System.Threading.Tasks; /// <summary> /// Represents an asynchronous, named command<seealso cref="NamedCommand{T}"/>. /// </summary> /// <typeparam name="T">The <see cref="Type">type</see> of parameter a...
40.666667
132
0.562338
[ "MIT" ]
JTOne123/More
src/More.UI/Windows.Input/AsyncNamedCommand{T}.cs
4,638
C#
using OOPsIDidItAgain._05.MakeUseOfTypeSafety.Web.Shared; namespace OOPsIDidItAgain._05.MakeUseOfTypeSafety.Web.Domain { public interface IItemRepository { Item? Get(ItemId itemId); } }
22.888889
60
0.752427
[ "MIT" ]
joaofbantunes/OOPsIDidItAgain
src/OOPsIDidItAgain.05.MakeUseOfTypeSafety.Web/Domain/IItemRepository.cs
206
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...
45.227979
174
0.595372
[ "Apache-2.0" ]
ermshiperete/aws-sdk-net
AWSSDK_DotNet35/Amazon.Glacier/Model/Internal/MarshallTransformations/DescribeJobResponseUnmarshaller.cs
8,729
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace LaserControl.HardwareAPI { public class Camera { public virtual string Name { get { return "Hardware API Camera"; } ...
17.166667
91
0.493065
[ "MIT" ]
Lowhuhn/LaserControl
LaserControl/LaserControl.HardwareAPI/Camera.cs
1,444
C#
using Foundatio.Parsers.ElasticQueries.Extensions; using Foundatio.Parsers.LuceneQueries.Nodes; using Foundatio.Parsers.LuceneQueries.Visitors; using Nest; namespace Exceptionless.Core.Repositories.Queries; public class StackDateFixedQueryVisitor : ChainableQueryVisitor { private readonly string _dateFixedFieldN...
36.8
94
0.740036
[ "Apache-2.0" ]
491134648/Exceptionless
src/Exceptionless.Core/Repositories/Queries/Visitors/StackDateFixedQueryVisitor.cs
1,106
C#
using Microsoft.Extensions.Logging; using NLog; using NLog.Config; using NLog.Targets; using NLog.Layouts; using NLog.Extensions.Logging; namespace LoggingBenchmarks { #pragma warning disable CA2000 // Dispose objects before losing scope public static class NLogProvider { public static (ILoggerProvider LogggerPr...
26.057692
93
0.721033
[ "MIT" ]
0xced/core
ClassLibraries/Macross.Logging.StandardOutput/Benchmarks/NLogProvider.cs
1,357
C#
using GraphQL.Types; namespace P7.BlogStore.Core.GraphQL { public class BlogMutationInput : InputObjectGraphType { public BlogMutationInput() { Name = "blogMutationInput"; Field<NonNullGraphType<StringGraphType>>("id"); Field<NonNullGraphType<MetaDataInput>>...
33.25
64
0.615467
[ "Apache-2.0" ]
ghstahl/P7
src/P7.BlogStore.Core/GraphQL/BlogMutationInput.cs
933
C#
using System.Reflection; using System.Runtime.InteropServices; // Общие сведения об этой сборке предоставляются следующим набором // набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения, // связанные со сборкой. [assembly: AssemblyTitle("MT.SharedComponents")] [assembly: AssemblyDescription("")...
39.444444
99
0.764789
[ "MIT" ]
Sivolday/MT
MT.SharedComponents/Properties/AssemblyInfo.cs
2,000
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; using Microsoft.VisualStudio.IntegrationTest.Utilities; using Microsoft.VisualStudio.IntegrationTest.Utilities.Input; using Ros...
37.606897
161
0.647717
[ "Apache-2.0" ]
ElanHasson/roslyn
src/VisualStudio/IntegrationTest/IntegrationTests/VisualBasic/BasicLineCommit.cs
5,455
C#
/** * (C) Copyright IBM Corp. 2017, 2019. * * 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 t...
39.659574
118
0.703863
[ "Apache-2.0" ]
AndreiLuis/dotnet-standard-sdk
src/IBM.Watson.PersonalityInsights.v3/Model/ConsumptionPreferencesCategory.cs
1,864
C#
namespace Examples { using System; using Bond; using Bond.Protocols; using Bond.IO.Unsafe; using examples.schema_view; static class Program { static void Main() { var example = new Example { num = 42, str = "test", ...
23.74359
81
0.528078
[ "MIT" ]
1lann/bond
examples/cs/core/schema_view/program.cs
928
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Thismaker.Horus.IO; namespace Thismaker.Aretha { class HorusFile : HorusSoul, ISoulServant { private List<string> GenCommands=new List<string>() { ...
29.645161
103
0.424012
[ "Apache-2.0" ]
Phystro/LiquidSnow
src/Aretha/Souls/HorusSoul/HorusFile.cs
2,759
C#
using System; using Android.Webkit; using Java.Interop; namespace TLExtension.Droid { public class JSBridge : Java.Lang.Object { readonly WeakReference<TLExtensionWebViewRenderer> renderer; public JSBridge(TLExtensionWebViewRenderer inputRenderer) { renderer = new WeakRefe...
26.482759
84
0.644531
[ "MIT" ]
HexagramNM/TLExtension
TLExtension.Android/JSBridge.cs
770
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { #pragma warning disable CS8618 [JsiiByValue(fqn: "aws.Wafv2RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement")] public class Wafv2RuleGroupRuleStatementOrStatementStatementOrState...
43.295455
263
0.700262
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/Wafv2RuleGroupRuleStatementOrStatementStatementOrStatementStatementByteMatchStatement.cs
1,905
C#
/* Copyright (C) 2012-2014 de4dot@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
42.196429
95
0.71223
[ "MIT" ]
Georgeto/dnlib
src/DotNet/Writer/IOffsetHeap.cs
2,365
C#
using System.Linq; using System.Runtime.CompilerServices; using System; using System.Collections; using System.Collections.Generic; using System.Threading.Tasks; using GameplayAbilitySystem.ExtensionMethods; using GameplayAbilitySystem.Abilities; using GameplayAbilitySystem.Events; using GameplayAbilitySystem.Gameplay...
41.029268
158
0.665914
[ "MIT" ]
renBuWen/UnityGameplayAbilitySystem
Assets/Plugins/GameplayAbilitySystem/AbilitySystemComponent.cs
8,413
C#
using System; using System.Xml.Serialization; using Newtonsoft.Json; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// KoubeiRetailWmsSupplierreportQueryModel Data Structure. /// </summary> [Serializable] public class KoubeiRetailWmsSupplierreportQueryModel : AlipayObject ...
25.825397
71
0.540258
[ "MIT" ]
AkonCoder/Payment
src/Essensoft.AspNetCore.Payment.Alipay/Domain/KoubeiRetailWmsSupplierreportQueryModel.cs
1,715
C#
/** * MIT License * * Copyright (c) 2016 Derek Goslin < http://corememorydump.blogspot.ie/ > * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitati...
40.212121
96
0.771665
[ "MIT" ]
DerekGn/DDAPIDash
DDPAIDash/Converter/ImageQualityEnumMatchToBoolConverter.cs
1,329
C#
// Copyright © 2012-2020 Vaughn Vernon. All rights reserved. // // This Source Code Form is subject to the terms of the // Mozilla Public License, v. 2.0. If a copy of the MPL // was not distributed with this file, You can obtain // one at https://mozilla.org/MPL/2.0/. using System.Collections.Generic; using System.Li...
52.931818
269
0.646629
[ "MPL-2.0" ]
Johnny-Bee/vlingo-net-symbio
src/Vlingo.Symbio.Tests/Store/Journal/InMemory/MockAppendResultInterest.cs
4,659
C#
using System; namespace JollyQuotes { /// <inheritdoc cref="IQuoteGenerator"/> /// <typeparam name="T">Type of <see cref="IQuote"/> this class can generate.</typeparam> public abstract partial class QuoteGenerator<T> : IQuoteGenerator where T : class, IQuote { /// <inheritdoc/> public abstract string ApiName ...
28.385965
121
0.68974
[ "MIT" ]
piotrstenke/JollyQuotes
src/JollyQuotes.Core/QuoteGenerator.cs
1,620
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("Nae...
37.459459
84
0.74531
[ "Apache-2.0" ]
anonymousculprit/MakotoNaegi_DiscordBot
Naegi-bot/Naegi-bot/Naegi-bot/Properties/AssemblyInfo.cs
1,389
C#
using System.Threading; using System.Threading.Tasks; using AppKit; using Xamarin.Forms; using Xamarin.Forms.Platform.MacOS; using SkiaSharp.Views.Mac; [assembly: ExportImageSourceHandler(typeof(SkiaSharp.Views.Forms.SKImageImageSource), typeof(SkiaSharp.Views.Forms.SKImageSourceHandler))] [assembly: ExportImageSourc...
34.24
145
0.778037
[ "MIT" ]
jsuarezruiz/SkiaSharp
source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.Mac/SKImageSourceHandler.cs
1,712
C#
using System.Collections.Generic; using System.Collections.ObjectModel; using System.Net.Http.Headers; using System.Web.Http.Description; using AuthorizationDemos.Areas.HelpPage.ModelDescriptions; namespace AuthorizationDemos.Areas.HelpPage.Models { /// <summary> /// The model that represents an API displayed ...
36.722222
123
0.616238
[ "MIT" ]
garrettwong/AuthorizationDemos
AuthorizationDemos/Areas/HelpPage/Models/HelpPageApiModel.cs
3,966
C#
using System; namespace TeamPicker.Classes { [Serializable] public class SettingsData { public decimal Version { get; set; } public int NumberOfTeams { get; set; } public int MaximumRating { get; set; } public bool BalanceTeams { get; set; } public string OrderBy...
20.541667
53
0.604462
[ "MIT" ]
LynxMagnus/team-picker
TeamPicker/Classes/SettingsData.cs
493
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace SaveAndLoad { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void...
22.391304
65
0.615534
[ "MIT" ]
rohansen/Code-Examples
SerialPorts & IO/SaveAndLoadFromHDD/SaveAndLoad/Program.cs
517
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace DEX { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}...
23.75
98
0.580702
[ "Apache-2.0" ]
ADukeLabs/DEX
DEX/DEX/App_Start/RouteConfig.cs
572
C#
using System; using System.Collections.Generic; using System.Linq; using BattleLogic.Card.CardsCore; using UnityEngine; namespace Data.Static.Data.Battle.Cards.CardsGenerate { [CreateAssetMenu(menuName = "Data/Battle/Cards/CardsGenerate/CardsTypeChance", fileName = "CardsTypeChanceGenerate")] public class Car...
27.846154
85
0.714088
[ "MIT" ]
NeoremFf/Wizard-Fighter
WizardFighter/Assets/Scripts/Data/Static/Data/Battle/Cards/CardsGenerate/CardsTypeChanceGenerate.cs
726
C#
using SlackNet.Interaction; namespace SlackNet.Blocks { public class PlainTextInput : BlockElement, IInputBlockElement { public PlainTextInput() : base("plain_text_input") { } /// <summary> /// An identifier for the input value when the parent modal is submitted. /// You can us...
36.914894
128
0.61268
[ "MIT" ]
eFloh/SlackNet
SlackNet/Blocks/PlainTextInput.cs
1,735
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerModel { public PlayerModel(){} public float GetDamage(){ float dmg = 0; if (Input.GetKeyDown (KeyCode.Alpha1)) { dmg += 10; } else if (Input.GetKeyDown (KeyCode.Alpha2)) { dmg += 5; } else if (Input....
15.44
49
0.660622
[ "MIT" ]
Kolefn/ECW
ExampleProject/Assets/MVC/Scripts/PlayerModel.cs
388
C#
namespace RepairsApi.V2.Filtering { public static class FilterSectionConstants { public const string Status = "Status"; public const string Priority = "Priority"; public const string Trades = "Trades"; public const string Contractors = "Contractors"; } public static clas...
25.3125
56
0.65679
[ "MIT" ]
LBHackney-IT/repairs-api-dotnet
RepairsApi/V2/Filtering/FilterSectionConstants.cs
405
C#
using System; using System.Linq; using Eventualize.Interfaces.BaseTypes; namespace Eventualize.Interfaces.Domain { public interface IEventConverter { IEventData DeserializeEventData(BoundedContextName boundedContextName, EventTypeName eventTypeName, Guid id, byte[] data); byte[] SerializeEven...
25.428571
130
0.769663
[ "MIT" ]
Useurmind/Eventualize
Eventualize.Interfaces/Domain/IEventConverter.cs
356
C#
//------------------------------------------------------------------------------ // <copyright file="TransferCollection.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation // </copyright> //------------------------------------------------------------------------------ namespace Microsoft.Azure.Storage.Da...
36.2
171
0.585817
[ "MIT" ]
Azure/azure-storage-net-data-movement
lib/TransferCollection.cs
11,041
C#
/******************************************/ /* */ /* Copyright (c) 2020 monitor1394 */ /* https://github.com/monitor1394 */ /* */ /******************************************/ using System.Collections.Generic; using UnityEngi...
50.60799
135
0.518822
[ "MIT" ]
monitor1394/XUGL
Runtime/UGL.cs
82,362
C#