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 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
41.953488
186
0.721175
[ "Apache-2.0" ]
Acidburn0zzz/google-cloud-dotnet
apis/Google.Cloud.Storage.V1/Google.Cloud.Storage.V1/StorageClientImpl.GetBucketIamPolicy.cs
1,806
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace System.Threading.Tests { public class AclTests { protected string GetRandomName() ...
26
71
0.661538
[ "MIT" ]
06needhamt/runtime
src/libraries/System.Threading.AccessControl/tests/AclTests.cs
392
C#
//------------------------------------------------------------------------------ // <auto-generated> // Este código fue generado por una herramienta. // Versión del motor en tiempo de ejecución:2.0.50727.4952 // // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si // ...
37.664659
180
0.544597
[ "MIT" ]
im-noob/6th-sem-ai
AI2/Sliding Puzzle with picture too/Backup/Sliding Puzzle/Properties/Resources.Designer.cs
18,772
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace R1Engine.Jade { // TODO: Use similar system to AI_Links - this array is probably different for other games public enum MDF_ModifierType_Montreal : int { None = -1, GEO_ModifierSnap = 0, ...
28.37037
91
0.755875
[ "MIT" ]
Adsolution/Ray1Map
Assets/Scripts/DataTypes/Jade/MDF/MDF_ModifierType_Montreal.cs
2,300
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using BrWebHost.Models.Entities; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json; using SharpBroadlink; using Shar...
38.429457
147
0.390406
[ "MIT" ]
ume05rw/BrWebHost
BrWebHost/Models/Stores/ControlSetStore.cs
25,553
C#
using System; using Microsoft.AspNetCore.Mvc; using RecipeApplication.Models; namespace RecipeApplication.Controllers { [Route("api/recipe")] [ValidateModel, HandleException, FeatureEnabled(IsEnabled = true)] public class RecipeApiController : Controller { public RecipeService _service; ...
26.848485
81
0.634312
[ "MIT" ]
AnzhelikaKravchuk/asp-dot-net-core-in-action
chapter13/1.1/RecipeApplication/RecipeApplication/Controllers/RecipeApiController.cs
888
C#
using System; using MikhailKhalizev.Processor.x86.BinToCSharp; namespace MikhailKhalizev.Max.Program { public partial class RawProgram { [MethodInfo("0x1019_0008-9909")] public void /* sys_mve */ Method_1019_0008() { ii(0x1019_0008, 2); mov(ah, bl); ...
24.666667
88
0.545946
[ "Apache-2.0" ]
mikhail-khalizev/max
source/MikhailKhalizev.Max/source/Program/Auto/z-1019-0008-sys-mve.cs
370
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; namespace VkApi.Wrapper.Objects { public class PhotosPhotoUploadResponse { ///<summary> /// Album ID ///</summary> [JsonProperty("aid")] public int Aid { get; set; } ///<summary> /// ...
22.666667
46
0.529412
[ "MIT" ]
FrediKats/VkLibrary
VkApi.Wrapper/Objects/Photos/PhotosPhotoUploadResponse.cs
748
C#
using Character.Display; namespace Character.Physical.Proficiencies { public class Shortsword : ProficiencyBase, IProficiency, IEquateableProficiency { public Shortsword():base(new TextObj("Shortsword")){} public ITextObj Name() => ProficiencyName; } }
25.636364
83
0.719858
[ "MIT" ]
MyTurnyet/CharacterBuilder
Character/Physical/Proficiencies/Shortsword.cs
282
C#
using System; using System.Windows.Forms; using WallStreet.Models; using WallStreet.Services.AccountServices; using WallStreet.Services.UserServices; namespace WallStreet.Forms { public partial class SettingsForm : Form { private readonly User user; private readonly IUserService userService = ...
29.444444
79
0.609811
[ "MIT" ]
mmivanova/wall-street-game
WallStreet/WallStreet/Forms/SettingsForm.cs
1,327
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Snaker.Game.Data { /// <summary> /// 定义游戏单局中可能的玩家操作 /// </summary> public static class GameVKey { /// <summary> /// X方向移动 /// </summary> public const int MoveX = 11; ...
17.805556
43
0.4961
[ "MIT" ]
U3DC/Snaker
Assets/Snaker/Game/Data/GameVKey.cs
715
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ZoomTiledSpectrograms.cs" company="QutEcoacoustics"> // All code in this file and all associated files are the copyright and property of the QUT Ecoacoustics Research Group (forme...
45.179272
388
0.579887
[ "Apache-2.0" ]
stewartmacdonald/audio-analysis
src/AudioAnalysisTools/LongDurationSpectrograms/Zooming/ZoomTiledSpectrograms.cs
32,260
C#
namespace Coevent.Dal.Configuration; using Coevent.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; public class EventOccurrenceConfiguration : AuditColumnsConfiguration<EventOccurrence> { protected override void OnConfigure(EntityTypeBuilder<EventOccurrence> b...
44.384615
129
0.709705
[ "Apache-2.0" ]
FosolSolutions/coevent
api/libs/dal/configuration/EventOccurrenceConfiguration.cs
1,154
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiByValue(fqn: "aws.GlueCatalogTableStorageDescriptorSkewedInfo")] public class GlueCatalogTableStorageDescriptorSkewedInfo : aws.IGlueCatalogTableStorageDescriptorSkewedInfo { [JsiiOptional] ...
36.257143
189
0.620173
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/GlueCatalogTableStorageDescriptorSkewedInfo.cs
1,269
C#
using System.Collections.Generic; using System.Text.RegularExpressions; namespace TerritoryTools.Entities.AddressParsers { public class PostalCodeFinder : Finder { public PostalCodeFinder(AddressParseContainer container) : base(container) { possibleMatches = new List<Ad...
28.648649
77
0.548428
[ "MIT" ]
territorytools/territory-tools
Common/AddressParser/PostalCodeFinder.cs
3,182
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> //---------------------------------...
33.04
82
0.565981
[ "MIT" ]
CMeeg/kentico-contrib
src/CMS/CMSModules/Membership/Pages/Users/General/User_Online.aspx.designer.cs
1,654
C#
using yozepi.Retry.Runners; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace yozepi.Retry.Builders { public class TaskRetryBuilder<T>: BaseAsyncBuilder { public Task<T> Go() { retur...
21.5
68
0.652952
[ "Apache-2.0" ]
yozepi/Retry
yozepi.TryIt.PCL/Builders/Task_T_RetryBuilder.cs
561
C#
// ================================================================================================================================ // File: ObservationCamera.cs // Description: Handles the controls and status of the servers observation camera // Author: Harley Laurie https://www.github.com/Swaelo/ // ====...
38.84127
132
0.518799
[ "MIT" ]
Swaelo/mmo-server-2.0
Server/Logic/ObservationCamera.cs
4,896
C#
using System.Collections.Generic; using FluentValidation; using FluentValidation.Results; namespace CoreSharp.Validation.Tests.Models { public class GenericChildParent { public List<GenericChildChild> Children { get; set; } = new List<GenericChildChild>(); public GenericChildChild Relation { ...
28.446429
139
0.6629
[ "MIT" ]
cime/CoreSharp
CoreSharp.Validation.Tests/Models/GenericChildModel.cs
1,595
C#
/* Copyright 2013-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...
36.783333
111
0.607839
[ "Apache-2.0" ]
Anarh2404/mongo-csharp-driver
tests/MongoDB.Driver.Core.Tests/Core/WireProtocol/Messages/Encoders/BinaryEncoders/KillCursorsMessageBinaryEncoderTests.cs
4,416
C#
using System; using System.Collections.Generic; using System.Text; namespace Surging.Tools.Cli.Internal { public interface ITransportMessageCodecFactory { /// <summary> /// 获取编码器。 /// </summary> /// <returns>编码器实例。</returns> ITransportMessageEncoder GetEncoder(); ...
21.454545
50
0.582627
[ "MIT" ]
JohnZhaoXiaoHu/surging
src/Surging.Tools/Surging.Tools.Cli/Internal/ITransportMessageCodecFactory.cs
522
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("Pa...
38.081081
84
0.747339
[ "MIT" ]
thewizster/parse-server-console
ParseServerConsole/Properties/AssemblyInfo.cs
1,412
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: POGOProtos/Settings/InventorySettings.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collection...
33.520833
249
0.654237
[ "MIT" ]
Necrobot-Private/POGOProtos
Settings/InventorySettings.g.cs
9,654
C#
using System; using System.Reflection; using System.Threading.Tasks; using EventStore.ClientAPI; using Marketplace.Domain.ClassifiedAds; using Marketplace.Framework; using Marketplace.Infrastructure; using Marketplace.Infrastructure.EventStore; using Marketplace.Infrastructure.JsonNet; using Marketplace.Infrastructur...
39.758427
137
0.608591
[ "Apache-2.0" ]
UbiquitousAS/WorkshopEventSourcing
src/Marketplace/Startup.cs
7,081
C#
/**************************************************************************** * Copyright 2019 Nreal Techonology Limited. All rights reserved. * * This file is pa...
47.703704
160
0.473602
[ "MIT" ]
NoxDecima/MR-Dashboard
Assets/NRSDK/Demos/HelloMR/Scripts/EnsureSlamTrackingMode.cs
2,578
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using CouchDB.Driver; using CouchDB.Driver.Indexes; using CouchDB.Driver.Options; using CouchDB.Driver.Types; using Flurl.Http.Configuration; using M5x.Schemas; using Serilog;...
31.813433
183
0.546094
[ "MIT" ]
rgfaber/m5x-sdk
src/obsolete/M5x.DEC.Infra/CouchDb/CouchStateStore.cs
4,263
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ReadOnlyText.cs" company="Sitecore A/S"> // Copyright (C) 2013 by Sitecore A/S // </copyright> // <summary> // Present ReadOnly field type. // </summary> // -----------...
25.822222
121
0.481928
[ "Apache-2.0" ]
BrightcoveOS/Sitecore-8.x-Media-Framework-2.x-Connector
src/Sitecore.MediaFramework/UI/FieldTypes/ReadOnlyText.cs
1,164
C#
using System; using System.Collections.Generic; using Elasticsearch.Net; using Nest; using Tests.Framework; using Tests.Framework.Integration; using Xunit; namespace Tests.Indices.AliasManagement.PutAlias { [Collection(IntegrationContext.Indexing)] public class PutAliasApiTests : ApiIntegrationTestBase<IPutAliasRes...
41.157895
129
0.776854
[ "Apache-2.0" ]
RossLieberman/NEST
src/Tests/Indices/AliasManagement/PutAlias/PutAliasApiTests.cs
1,566
C#
using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace MindMapEditor { public class DragSelection : MonoBehaviour { private LineRenderer lineRenderer; private DragRectDrawer dragRectDrawer; private bool isFirstClick = true; ...
29.956522
145
0.523948
[ "MIT" ]
palapapa/MindMapEditor
Assets/Scripts/DragSelection.cs
1,380
C#
namespace EnvDTE { public interface ToolBox { DTE DTE { get; } Window Parent { get; } ToolBoxTab ActiveTab { get; } ToolBoxTabs ToolBoxTabs { get; } } }
18
40
0.545455
[ "Apache-2.0" ]
JetBrains/JetBrains.EnvDTE
EnvDTE.Interfaces/ToolBox.cs
200
C#
using System.Diagnostics; namespace Gst.Tests { public abstract class BaseTest { public BaseTest() { Gstreamer.Init(); } public void PrintLine(object line) { Debug.WriteLine(line); } } }
16.058824
42
0.512821
[ "MIT" ]
ismaildurmaz/gstreamer-sharp
src/gstreamer-sharp/Tests/BaseTest.cs
275
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("JK...
37.648649
84
0.743719
[ "MIT" ]
JoniKukko/JKLog
JKLog/JKLog/Properties/AssemblyInfo.cs
1,396
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Microsoft.Azure.II...
34.494662
99
0.518209
[ "MIT" ]
TheWaywardHayward/Industrial-IoT
common/src/Microsoft.Azure.IIoT.Net.Scan/src/Port/PortScanner.cs
9,693
C#
/* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. Copyright (C) 2011 Michael Möller <mmoeller@openhardwaremonitor.org> */ using System; using System.Collectio...
30.491228
122
0.546893
[ "MIT" ]
manicken/FanController
OpenHardwareMonitorControl/GUI/UserRadioGroup.cs
3,479
C#
namespace LRS.NET.Core.Extensions { using System.Linq; using CuttingEdge.Conditions; using Dnum; public static class EnumExtensions { public static int GetLowerBound<TEnum>() where TEnum : struct { Condition.Requires(typeof (TEnum)).Evaluate(t => t.IsEnum); var values = Dnum<TEnum>.GetValues(); retu...
21.96
65
0.697632
[ "MIT" ]
m-sadegh-sh/LRS.NET
src/LRS.NET.Core/Extensions/EnumExtensions.cs
549
C#
namespace Nager.Country.Currencies { /// <summary> /// Gnf Currency /// </summary> public class GnfCurrency : ICurrency { ///<inheritdoc/> public string Symbol => "FG"; ///<inheritdoc/> public string Singular => null; ///<inheritdoc/> public string P...
20.444444
46
0.523551
[ "MIT" ]
OpenBoxLab/Nager.Country
src/Nager.Country/Currencies/GnfCurrency.cs
552
C#
using System.Collections.Generic; namespace AvaloniaStyles.Utils { internal static class ListExtensions { public static void OverrideWith<T>(this IList<T> that, IList<T> with) { int i = 0; foreach (var r in with) { if (i < that.Count) ...
22.48
77
0.414591
[ "Unlicense" ]
BAndysc/WoWDatabaseEditor
AvaloniaStyles/Utils/ListExtensions.cs
562
C#
namespace CalcModels { public interface IBetonService { IBetonModel[] GetList(); string[] GetNameList(); IBetonModel GetNew(string name); } }
19.777778
40
0.61236
[ "MIT" ]
mikara89/EuroCodeCalculator
CalcModels/Abstract/IBetonService.cs
180
C#
using System; using UnityEngine; using UnityEngine.UI; using Assets.Scripts.Networking; namespace Assets.Scripts.UI { class LobbyPlayerTeamPin : MonoBehaviour { Image image; LobbyPlayer lobbyPlayer; void Start() { image = GetComponent<Image>(); lobbyPlayer = GetCo...
21.857143
62
0.616558
[ "MIT" ]
phBirais/flamewars
source/Assets/Scripts/UI/LobbyPlayer/LobbyPlayerTeamPin.cs
461
C#
// Lucene version compatibility level 4.8.1 using YAF.Lucene.Net.Analysis.Core; using YAF.Lucene.Net.Analysis.En; using YAF.Lucene.Net.Analysis.Standard; using YAF.Lucene.Net.Analysis.Tr; using YAF.Lucene.Net.Analysis.Util; using YAF.Lucene.Net.Util; using System; using System.IO; namespace YAF.Lucene.Net.An...
48.282828
221
0.636611
[ "Apache-2.0" ]
10by10pixel/YAFNET
yafsrc/Lucene.Net/Lucene.Net.Analysis.Common/Analysis/Snowball/SnowballAnalyzer.cs
4,682
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("MCV_Plugin_forVCas")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assem...
29.702703
56
0.750682
[ "MIT" ]
chinng-inta/comment_viewer_plugin
MCV_Plugin_forVCas/MCV_Plugin_forVCas/Properties/AssemblyInfo.cs
1,684
C#
using System; using System.Text; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.IdentityModel.Tokens; namespace ShopManage.Web.Startup { public static class AuthConfigurer { public static void Configure(IServiceCollection services, IConfigurat...
40.434783
152
0.524194
[ "MIT" ]
DSOY/ShopManage
aspnet-core/src/ShopManage.Web.Mvc/Startup/AuthConfigurer.cs
1,862
C#
using System; using System.Globalization; using Unicorn.Base; namespace Unicorn.Images { /// <summary> /// A source image that consists of a single colour. Also referred to as a "mock image" elsewhere. /// </summary> public class SingleColourSourceImage : ISourceImage { /// <summary> ...
35.794872
139
0.582378
[ "MIT" ]
caitlinsalt/unicorn
src/Unicorn/Images/SingleColourSourceImage.cs
2,794
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
33.269231
187
0.539595
[ "MIT" ]
DFE-Digital/spi-rates-adapter
src/Dfe.Spi.RatesAdapter.FunctionApp/HttpErrorMessages.Designer.cs
3,462
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.Diagnostics; using Microsoft.CodeAnalysis.UnitTests; using Xunit; namespace Microsoft.ApiDesignGuidelines.Analyzers.UnitTests { ...
31.734043
197
0.61817
[ "Apache-2.0" ]
jcouv/roslyn-analyzers
src/Microsoft.ApiDesignGuidelines.Analyzers/UnitTests/UseIntegralOrStringArgumentForIndexersTests.cs
2,983
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Routing; namespace HelloWorldDialogs { public class WebApiApplication : System.Web.HttpApplication { protected void Application_Start() { GlobalConfiguration...
20.722222
65
0.707775
[ "MIT" ]
PacktPublishing/Building-Bots-with-Microsoft-Bot-Framework
Chapter02/HelloWorldDialogs/HelloWorldDialogs/Global.asax.cs
375
C#
using MidiPlayerTK; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; namespace MidiPlayerTK { public class MainMenu : MonoBehaviour { static private Texture buttonIconHome; static private Texture buttonIconMPTK; ...
41.849315
136
0.596072
[ "MIT" ]
alkaitagi/SpaceSound
Assets/MidiPlayer/Scenes For Demo/Demos/Script/MainMenu.cs
3,061
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using Unity.Entities; [GenerateAuthoringComponent] public struct VertTag : IComponentData { }
17.5
38
0.822857
[ "MIT" ]
Patatobeurre/DOTSprototypeV3
Assets/Gestionnaire/ComponentData/Tag/Material/VertTag.cs
177
C#
//----------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // // The MIT License (MIT) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files...
42.4
86
0.633648
[ "MIT" ]
Bhaskers-Blu-Org2/Appsample-Photosharing
PhotoSharingApp/PhotoSharingApp.Universal/ViewModels/UploadViewModelEditPhotoArgs.cs
1,910
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Core2ViewComponent.Models.ManageViewModels { public class IndexViewModel { public string Username { get; set; } public bool IsEmailConfirmed ...
22.461538
52
0.65411
[ "MIT" ]
kalimist123/loginViewComponent
Core2ViewComponent/Core2ViewComponent/Models/ManageViewModels/IndexViewModel.cs
586
C#
using Blazored.Toast; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Net.Http; using System.Text; using System.Threading....
29.071429
124
0.713759
[ "MIT" ]
viktormark92/BlazorChat
BlazorChat/BlazorChat/Client/Program.cs
814
C#
using System.Collections.Generic; using Payments.Core.Domain; using Shouldly; using TestHelpers.Helpers; using Xunit; namespace Payments.Tests.DatabaseTests { [Trait("Category", "DatabaseTests")] public class PaymentEventTests { [Fact] public void TestAllFieldsInTheDatabaseHaveBeenTested() ...
55.09
120
0.628971
[ "MIT" ]
ucdavis/payments
tests/Payments.Tests/DatabaseTests/PaymentEventTests.cs
5,509
C#
namespace MovieList.ViewModels.Forms.Base { public interface ISeriesComponentForm : IForm { SeriesFormViewModel Parent { get; } string Channel { get; set; } int SequenceNumber { get; set; } int GetNextYear(); } }
19.923077
49
0.621622
[ "MIT" ]
op07n/test20
MovieList.Core/ViewModels/Forms/Base/ISeriesComponentForm.cs
259
C#
using System.Threading.Tasks; using FluentAssertions; using NUnit.Framework; namespace Beeffective.Tests.Models.HoneycombModelTests { class AddCellAsync : TestFixture { [Test] public async Task Cells_Contain_AddedCellModel() { var addedCellModel = await Sut.AddCellAsync(Cel...
23.764706
68
0.673267
[ "MIT" ]
PeterMilovcik/DoThis
Beeffective.Tests/Models/HoneycombModelTests/AddCellAsync.cs
406
C#
using System.Collections.Generic; using Microsoft.AspNetCore.Http; using Abp.Localization; namespace MPACore.PhoneBook.Web.Views.Shared.Components.AccountLanguages { public class LanguageSelectionViewModel { public LanguageInfo CurrentLanguage { get; set; } public IReadOnlyList<LanguageInfo> ...
25.25
72
0.732673
[ "MIT" ]
52ABP/MPACore.PhoneBook
aspnet-core/src/MPACore.PhoneBook.Web.Mvc/Views/Shared/Components/AccountLanguages/LanguageSelectionViewModel.cs
406
C#
using System; using System.Collections.Generic; using System.Threading; namespace Amg.Build { interface IFileSystem { /// <summary> /// Copy a file. /// </summary> /// <param name="existingFileName">Name of the copy source file.</param> /// <param name="newFileName">Nam...
43.142857
134
0.634658
[ "MIT" ]
ArminBecher/Amg.Build
src/Amg.Build/IFileSystem.cs
1,814
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("ot...
37.324324
84
0.742216
[ "Apache-2.0" ]
benma/opentxs
scripts/demo/vscsharp/otvs/Properties/AssemblyInfo.cs
1,384
C#
using System; using System.Windows.Input; using Xamarin.Forms; namespace BusPoa.ViewModels { public class AboutViewModel : BaseViewModel { public AboutViewModel() { Title = "About"; OpenWebCommand = new Command(() => Device.OpenUri(new Uri("https://xamarin.com/platfor...
20.684211
104
0.613232
[ "MIT" ]
pedroca656/super-duper-umbrella
BusPoa/BusPoa/BusPoa/ViewModels/AboutViewModel.cs
395
C#
using System; using NUnit.Framework; namespace Lucene.Net.Attributes { [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = false)] public class NightlyAttribute : ExplicitAttribute { public NightlyAttribute() : base("Nigh...
24.466667
140
0.675749
[ "Apache-2.0" ]
SeanKilleen/lucenenet
src/Lucene.Net.TestFramework/Attributes/NightlyAttribute.cs
369
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; using System.Threading; using WalletWasabi.Crypto; using WalletWasabi.Helpers; namespace WalletWasabi.Logging { public static class Logger { #region PropertiesAndMembers private static long On = 1; p...
37.823129
213
0.694065
[ "MIT" ]
SeppPenner/WalletWasabi
WalletWasabi/Logging/Logger.cs
22,240
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("Emo...
37.459459
84
0.746753
[ "MIT" ]
Horopter/Network_Embedded_Applications-2018
Rover - Emotiv/Rover/Properties/AssemblyInfo.cs
1,389
C#
using System; using System.Collections.Generic; using System.Runtime.Serialization; using Hammock.Model; using Newtonsoft.Json; namespace TweetSharp { /// <summary> /// Denotes a list of user friends in a user stream. /// </summary> #if !SILVERLIGHT [Serializable] #endif #if !Smartphone && !NET20 ...
23.623016
97
0.560222
[ "MIT" ]
DavidChristiansen/tweetsharp
src/net40/TweetSharp.Next/Model/TwitterUserStreams.cs
5,955
C#
// Shatter Toolkit // Copyright 2011 Gustav Olsson using System.Collections.Generic; using UnityEngine; public class MouseShatter : MonoBehaviour { public ShatterScheduler scheduler = null; public void Update() { if (Input.GetMouseButtonDown(0)) { RaycastHit hit; if (Physics.Raycast(Camera.main.Scre...
21.137931
92
0.698206
[ "MIT" ]
artemistint/KoronaKiru
Assets/Library/Shatter Toolkit/Helpers/Mouse/MouseShatter.cs
613
C#
using System.ComponentModel; namespace Merq { /// <summary> /// Marker interface for all generic command handlers, whether synchronous or asynchronous, /// allowing easy introspection of the generic <typeparam name="TCommand" /> if necessary. /// </summary> [EditorBrowsable(EditorBrowsableState.Never)] public ...
39.44
145
0.762677
[ "MIT" ]
MobileEssentials/Merq
src/Core/Merq/IExecutableCommandHandler.cs
988
C#
using System.Collections.Generic; using Assets.Scripts.Common.Windows; using UnityEngine; using YxFramwork.Common; using YxFramwork.ConstDefine; using YxFramwork.Controller; using YxFramwork.Manager; using YxFramwork.View; using com.yxixia.utile.YxDebug; namespace Assets.Scripts.Hall.View.AboutRoomWindows { /// <...
30.636792
104
0.445266
[ "MIT" ]
GEngine-JP/chessgame
Assets/Scripts/Hall/View/AboutRoomWindows/FindRoomWindow.cs
6,721
C#
using Prism; using Prism.DryIoc; using Prism.Ioc; using Prism.Plugin.Popups; using ProjetoCondominioSmart.ViewModels; using ProjetoCondominioSmart.ViewModels.Popup; using ProjetoCondominioSmart.Views; using ProjetoCondominioSmart.Views.Popup; using Xamarin.Forms; namespace ProjetoCondominioSmart { public partial ...
29.542373
139
0.689616
[ "MIT" ]
WillBrigida/ProjetoCondominioSmart
ProjetoCondominioSmart/ProjetoCondominioSmart/App.xaml.cs
1,745
C#
using System.Runtime.InteropServices; namespace CssUI { [StructLayout(LayoutKind.Sequential, Pack = 1)] public readonly struct ReadOnlyRect4f { #region Properties public readonly double Top, Right, Bottom, Left; #endregion #region Constructor public ReadOnlyRect4f(...
26.358025
116
0.511007
[ "MIT" ]
dsisco11/CssUI
CssUI/CORE/Units/ReadOnly/ReadOnlyRect4f.cs
2,137
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information namespace DotNetNuke.UI.ControlPanel { using System; using System.Collections; using System.Collec...
40.407448
185
0.496043
[ "MIT" ]
Acidburn0zzz/Dnn.Platform
DNN Platform/DotNetNuke.Website.Deprecated/admin/ControlPanel/AddModule.ascx.cs
36,894
C#
namespace Kodekit.Features.Elements; public class Input : ISerializable { public Input() : base() { Font = new(); Padding = new(); Border = new(); } public Input(double? fontSize, string? fontWeight, double? verticalPadding, double? horizontalPadding, double? cornerRadius, ...
25.862069
128
0.622667
[ "MIT" ]
sparc-coop/kodekit
Kodekit.Features/Elements/Inputs/Input.cs
752
C#
using System.Management.Automation; using System.Threading.Tasks; namespace psCheckPoint.Objects.Network { /// <api cmd="delete-network">Remove-CheckPointNetwork</api> /// <summary> /// <para type="synopsis">Delete existing Network using object name or uid.</para> /// <para type="description"></para> ...
32.925
139
0.64161
[ "Apache-2.0" ]
DWOF/psCheckPoint
psCheckPoint/Objects/Network/RemoveCheckPointNetwork.cs
1,319
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Ship { namespace TIEAggressor { public class SienarSpecialist : TIEAggressor { public SienarSpecialist() : base() { PilotName = "Sienar Specialist"; ...
19.75
52
0.526582
[ "MIT" ]
borkin8r/FlyCasual
Assets/Scripts/Model/Ships/TIE Aggressor/SienarSpecialist.cs
397
C#
namespace Serenity.Services { public enum ColumnSelection { List = 0, KeyOnly = 1, Details = 2, } }
15.111111
31
0.522059
[ "MIT" ]
davidzhang9990/SimpleProject
Serenity.Data/Mapping/ColumnSelection.cs
138
C#
using System; using System.Globalization; using System.Linq; using System.Reflection; using Unity.Builder; using Unity.Exceptions; using Unity.Injection; using Unity.Lifetime; using Unity.Policy; using Unity.Registration; using Unity.Resolution; namespace Unity.Strategies { /// <summary> /// A <see cref="Build...
39.624204
164
0.59058
[ "Apache-2.0" ]
Eragra3/container
src/Strategies/BuildPlanStrategy.cs
6,221
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
33.819149
135
0.642026
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/WAFV2/Generated/Model/VersionToPublish.cs
3,179
C#
using System; using System.Collections.Generic; using System.Linq; using I18Next.Net.Backends; using I18Next.Net.Extensions.Configuration; using I18Next.Net.Plugins; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Localization; using...
42.036635
130
0.584745
[ "Apache-2.0" ]
DarkLiKally/I18Next.Net
src/I18Next.Net.Extensions/Builder/I18NextBuilder.cs
30,983
C#
// ReSharper disable InconsistentNaming namespace Orleans { /// <summary> /// The set of error types used by the Orleans runtime libraries for logging errors. /// </summary> internal enum ErrorCode { Runtime = 100000, Runtime_Error_100001 = Runtime + 1, Runtime_Error_100002 =...
59.613333
103
0.63088
[ "MIT" ]
seralexeev/orleans
src/Orleans.Core/Logging/ErrorCodes.cs
67,065
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using Microsoft.MixedReality.Toolkit.Utilities; using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.Profiling; namespace Microsoft.M...
46.228571
168
0.602802
[ "MIT" ]
MRW-Eric/MixedRealityToolkit-Unity
Assets/MRTK/Core/Utilities/CameraFOVChecker.cs
4,854
C#
namespace Unosquare.PassCore.Common { using System; using System.Collections.Generic; using System.Text; /// <summary> /// Link info https://docs.secureauth.com/display/KBA/Active+Directory+Attributes+List /// </summary> public class UserInfoAd { /// <summary> /// Retu...
24.036269
117
0.43005
[ "MIT" ]
baonxvn/passcore
src/Unosquare.PassCore.Common/UserInfoAd.cs
4,681
C#
using System.Collections.Generic; using System.Windows.Forms; using System.Drawing; namespace TimeHACK.Engine { public class TaskBarController { public static int AvalibleApplicationID; public Panel AddTaskbarItem95(string ApplicationID, string ApplicationName, Image ApplicationIcon,...
27.15
148
0.494782
[ "MIT" ]
STTADev/TimeHTML
TimeHACK.Engine/TaskBarController.cs
1,631
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; namespace PersonalityAppWeb { public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API configuration and services // Web API routes ...
23.68
62
0.584459
[ "MIT" ]
Wolverine971/PersonalityApp
Web/App_Start/WebApiConfig.cs
594
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.Collections.Generic; using System.Threading.Tasks; using Microsoft.Extensions.Options; namespace Microsoft.AspNetCore.ConcurrencyLimiter { internal cl...
30.302752
132
0.505298
[ "MIT" ]
48355746/AspNetCore
src/Middleware/ConcurrencyLimiter/src/QueuePolicies/StackPolicy.cs
3,303
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.Extensions.DependencyInjection { public static partial class PollyHttpClientBuilderExtension...
102.857143
410
0.825231
[ "MIT" ]
beppemarazzi/extensions
src/HttpClientFactory/Polly/ref/Microsoft.Extensions.Http.Polly.netstandard2.0.cs
4,320
C#
// // ThemedImage.cs // // Author: // Lluis Sanchez Gual <lluis@xamarin.com> // // Copyright (c) 2015 Xamarin, Inc (http://www.xamarin.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...
29.531646
89
0.696099
[ "MIT" ]
BretJohnson/xwt
Xwt/Xwt.Drawing/ThemedImage.cs
2,335
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Fibon.Api.Repository; using Fibon.Messages.Commands; using Microsoft.AspNetCore.Mvc; using Microsoft.CodeAnalysis.Semantics; using RawRabbit; namespace Fibon.Api.Controllers { [Route("[controller]")] public ...
29.152174
81
0.618941
[ "MIT" ]
MKurpinski/Fibon
Fibon.Api/Controllers/FibonacciController.cs
1,343
C#
using System.Collections.Generic; using System.Linq; namespace Dgt.Yahtzee.Engine { public class FaceValueCategory : ICategory { public string Name { get; } private readonly int _faceValue; // TODO Parameter validation of the name - no nulls or empty strings public FaceValueCa...
31.238095
124
0.650915
[ "MIT" ]
mmmcaffeine/yahtzee
src/Engine/FaceValueCategory.cs
658
C#
namespace LTMCompanyNameFree.YoyoCmsTemplate.Web.ViewModels.Account { public class RegisterResultViewModel { public string TenancyName { get; set; } public string UserName { get; set; } public string EmailAddress { get; set; } public string NameAndSurname { get...
25.2
69
0.634921
[ "MIT" ]
cnmediar/YoyoCmsFree.Template
src/aspnet-core/src/LTMCompanyNameFree.YoyoCmsTemplate.Web.Mvc/ViewModels/Account/RegisterResultViewModel.cs
504
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Globalization.DateTimeFormatting { #if false || false || false || false || false || false || false public enum SecondFormat { // Skipping already declared field Windows.Globalization.DateTimeFor...
35.230769
98
0.777293
[ "Apache-2.0" ]
AbdalaMask/uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Globalization.DateTimeFormatting/SecondFormat.cs
458
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using NUnit.Framework.Internal.Filters; using UnityEditor; using UnityEditor.TestRunner.TestLaunchers; using UnityEditor.TestTools.TestRunner.Api; using UnityEngine; using UnityEngine.SceneManagement; using Unity...
44.830918
197
0.661422
[ "MIT" ]
16pxdesign/genetic-algorithm-unity
Library/PackageCache/com.unity.test-framework@1.1.9/UnityEditor.TestRunner/TestLaunchers/PlayerLauncher.cs
9,280
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManager : MonoBehaviour { public int highScore = 0; public int livesLeft = 3; void Awake() { GameObject[] objs = GameObject.FindGameObjectsWithTag("DrManager"); if (objs.Length...
18.969697
76
0.5623
[ "MIT" ]
dmcleodnine/2D-Unity-Platformer
GameManager.cs
626
C#
using System; using System.Collections.Generic; using Reinforced.Typings.Attributes; using Reinforced.Typings.Fluent.Interfaces; namespace Reinforced.Typings.Fluent { /// <summary> /// Configuration builder for Enum type /// </summary> /// <typeparam name="TEnum"></typeparam> public class Enum...
30
99
0.629379
[ "MIT" ]
otto-gebb/Reinforced.Typings
Reinforced.Typings/Fluent/EnumConfigurationBuilder.cs
1,772
C#
using System.Collections.Generic; using Q42.HueApi; namespace Xpressive.Home.Plugins.PhilipsHue.LightCommandStrategies { internal sealed class AlarmOnceLightCommandStrategy : LightCommandStrategyBase { public override LightCommand GetLightCommand(IDictionary<string, string> values, PhilipsHueDev...
27.470588
112
0.64454
[ "MIT" ]
xpressive-websolutions/Xpressive.Home
Xpressive.Home.Plugins.PhilipsHue/LightCommandStrategies/AlarmOnceLightCommandStrategy.cs
467
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014 Ingo Herbote * http://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * d...
32.402985
115
0.540304
[ "Apache-2.0" ]
maxdm/YAFNET
yafsrc/YAF.Providers/Utils/ExceptionReporter.cs
6,314
C#
/* * Measurement repository interface. * * @author Michel Megens * @email michel@michelmegens.net */ using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using MongoDB.Bson; using SensateIoT.Platform.Network.Data.Models; namespace SensateIoT.Platform.Network.DataAccess.Abst...
25.88
105
0.794436
[ "Apache-2.0" ]
sensate-iot/platform-network
SensateIoT.Platform.Network.DataAccess/Abstract/IMeasurementRepository.cs
649
C#
// Copyright 2018 yinyue200.com // 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 agre...
29.4
148
0.619571
[ "Apache-2.0" ]
cm4ker/LottieSharp
LottieSkiaSharp/Model/Content/ShapeTrimPath.cs
1,913
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
39.216216
85
0.729152
[ "MIT" ]
informedcitizenry/z80DotNet
z80DotNet/Properties/AssemblyInfo.cs
1,454
C#
using GRA.Domain.Model; using GRA.Domain.Model.Filters; using GRA.Domain.Repository; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using GRA.Domain.Repository.Extensions; using AutoMapper.QueryableExtensions; ...
32.275
108
0.587916
[ "MIT" ]
codacy-badger/greatreadingadventure
src/GRA.Data/Repository/BroadcastRepository.cs
2,584
C#
using ChunkUpload.Helpers; using ChunkUpload.Interfaces; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.WebUtilities; using Microsoft.Extensions.Options; using Microsoft.Net.Http.Headers; using System; using System.IO; ...
37.889831
145
0.549094
[ "MIT" ]
adamfoneil/ChunkUpload
ChunkUpload/Services/UploadService.cs
4,473
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 System; using System.Runtime.C...
49.388889
302
0.666667
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
sources/Interop/Windows/um/msxml/IXMLElementCollection.cs
5,336
C#
using System.Xml.Serialization; namespace Rock.Logging.Configuration { [XmlRoot("category")] public class Category { [XmlAttribute("name")] public string Name { get; set; } [XmlAttribute("throttlingRule")] public string ThrottlingRule { get; set; } [XmlArray("provi...
23.944444
60
0.61949
[ "MIT" ]
bfriesen/Rock.Logging
Rock.Logging/Configuration/Xml/Category.cs
431
C#
// Copyright 2021 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
55.763126
200
0.647561
[ "Apache-2.0" ]
nwls-hermesj/google-api-dotnet-client
Src/Generated/Google.Apis.CloudAsset.v1/Google.Apis.CloudAsset.v1.cs
323,928
C#