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 Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace SolsticeMod.Items.Weapons
{
public class DarknessBow : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Darkness Bow");
Tooltip.SetDefault("Has a 20% chance... | 43.527397 | 202 | 0.682927 | [
"MIT"
] | Caveweasel/SolsticeMod | Items/Weapons/DarknessBow.cs | 6,355 | C# |
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OlympUI {
public partial class Group : Element {
public const int WHFalse = -1;
public const int WHTr... | 30.08982 | 104 | 0.471841 | [
"MIT"
] | 0x0ade/Olympus.FNA | Olympus.FNA/UI/Elements/Group.cs | 5,027 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using FlubuCore.Context;
using FlubuCore.Tasks;
using FlubuCore.Tasks.Process;
namespace FlubuCore.Azure.Tasks.Consumption
{
public partial class AzureConsumptionReservationSummaryTask : ExternalProcessTaskBase<AzureConsumptionReservationSummaryT... | 24.846154 | 130 | 0.685759 | [
"MIT"
] | flubu-core/FlubuCore.Azure | FlubuCore.Azure/Tasks/Consumption/AzureConsumptionReservationSummaryTask.cs | 646 | C# |
using System.Collections.Generic;
using System.Linq;
using Esfa.Poc.Matching.Common;
using Esfa.Poc.Matching.Domain;
namespace Esfa.Poc.Matching.Application.Employer
{
public class EmployerDataValidator
{
public Result Validate(List<FileUploadEmployer> fileData)
{
var validator = n... | 28.735294 | 129 | 0.542477 | [
"MIT"
] | SkillsFundingAgency/das-poc-matching | sfa.poc.matching.fileupload/Esfa.Poc.Matching.Application/Employer/EmployerDataValidator.cs | 979 | C# |
namespace Plus.Communication.Packets.Outgoing.Rooms.Notifications
{
internal class RoomErrorNotifComposer : ServerPacket
{
public RoomErrorNotifComposer(int error)
: base(ServerPacketHeader.RoomErrorNotifMessageComposer)
{
WriteInteger(error);
}
}
} | 28.181818 | 68 | 0.677419 | [
"Apache-2.0"
] | dotsudo/plus-clean | Communication/Packets/Outgoing/Rooms/Notifications/RoomErrorNotifComposer.cs | 312 | C# |
using FluentAssertions;
using MyWarehouse.Application.Products.ProductStockValue;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyWarehouse.Application.IntegrationTests.Products
{
class ProductStockValue : TestB... | 28.666667 | 85 | 0.668605 | [
"MIT"
] | aleh807/MyWarehouse | tests/Application.IntegrationTests/Products/ProductStockValue.cs | 862 | C# |
using System.Collections.Generic;
using UnityEngine;
// Thanks to https://www.youtube.com/watch?v=mXTxQko-JH0, https://www.youtube.com/watch?v=QN39W020LqU, https://www.youtube.com/watch?v=YueAtA_YnSY
namespace QuadTree {
public class Chunk {
public int depth;
private Chunk parentChunk;
private GameObj... | 33.994695 | 151 | 0.56726 | [
"MIT"
] | xam4lor/PlanetarySpaceSimulation | Assets/Scripts/Universe/Body/Planet/Structure/Chunk.cs | 12,816 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using UsbHid.USB.Classes;
using UsbHid.USB.Classes.Messaging;
using UsbHid.USB.Structures;
namespace UsbHid
{
public class UsbHidDevice : IDisposable
{
#region Variables
priv... | 34.398148 | 126 | 0.607672 | [
"MIT"
] | etfovac/hid | UsbHid/UsbHidDevice.cs | 7,430 | C# |
using System;
using System.Linq;
namespace _03_FoldAndSum
{
public class FoldAndSum
{
public static void Main()
{
string input = Console.ReadLine();
int[] inputNumbers = input.Split(' ').Select(int.Parse).ToArray();
int k = inputNumbers.Length / 4;
... | 22.536585 | 78 | 0.393939 | [
"MIT"
] | nellypeneva/SoftUniProjects | 01_ProgrFundamentalsMay/16_Arrays-Exercises/03_FoldAndSum/FoldAndSum.cs | 926 | C# |
using CSharpSpeed;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
namespace InstrumentedLibrary
{
/// <summary>
///
/// </summary>
public static class MultiplyHorizontalVector2DByMatrix2x2Tests
... | 43.073529 | 199 | 0.604302 | [
"MIT"
] | Shkyrockett/CSharpSpeed | InstrumentedLibrary/Mathmatics/Matrix/MatrixMultiplyVector/MultiplyHorizontalVector2DByMatrix2x2Tests.cs | 2,931 | 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... | 30.517857 | 101 | 0.673493 | [
"Apache-2.0"
] | Bio2hazard/aws-sdk-net | sdk/src/Services/ServerMigrationService/Generated/Model/CreateReplicationJobResponse.cs | 1,709 | C# |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace LanguageExt
{
internal class SeqEmptyInternal<A> : ISeqInternal<A>
{
public static ISeqInternal<A> Default = new SeqEmptyInternal<A>();
public A this[int index] =>
throw new Ind... | 23.307692 | 74 | 0.537404 | [
"MIT"
] | arialdomartini/language-ext | LanguageExt.Core/DataTypes/Seq/SeqEmptyInternal.cs | 1,820 | C# |
using System.Collections.Generic;
using MvcContrib.UI.InputBuilder.Conventions;
namespace MvcContrib.UI.InputBuilder
{
public class DefaultConventionsFactory : List<IPropertyViewModelFactory>
{
public DefaultConventionsFactory()
{
Add(new GuidPropertyConvention());
Add(new EnumPropertyConvention());
Add... | 25.25 | 73 | 0.782178 | [
"Apache-2.0"
] | ignatandrei/MvcContrib | src/MVCContrib/UI/InputBuilder/DefaultConventionsFactory.cs | 404 | C# |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
namespace Chinchulines.Graphics
{
public class Trench
{
public Trench()
{
LoadFloorPlan();
}
public void Lo... | 71.679825 | 216 | 0.546717 | [
"MIT"
] | EstebanMellado/2020-2C-3571-Chinchulines | Chinchulines/Graphics/Trench.cs | 16,345 | C# |
using Attention.UWP.Models;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using PixabaySharp.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Input;
using Orientation = PixabaySharp.Enums.Orientation;
namespace Attention.UWP.ViewModels
{
public class Sea... | 32.196429 | 112 | 0.577926 | [
"MIT"
] | hippieZhou/Attention | src/Attention.UWP/ViewModels/SearchViewModel.cs | 1,805 | C# |
// PermissionApprover
Decompiled was cancelled.
| 12.25 | 25 | 0.816327 | [
"MIT"
] | smdx24/CPI-Source-Code | Disney.Mix.SDK.Internal/PermissionApprover.cs | 49 | 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("Web... | 37.722222 | 84 | 0.752577 | [
"Apache-2.0"
] | IdentityManager/IdentityManager.AspNetIdentity | samples/IdMgr_with_AspId/WebApplication1/Properties/AssemblyInfo.cs | 1,361 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace ValveMultitool.Models.Formats.Steam.Distribution.Apps
{
public class AppInfoLaunchEntry
{
/// <summary>
/// Path to the app executable within the app's root directory
/// </summary>
public string Execu... | 25.3 | 70 | 0.550395 | [
"MIT"
] | ChaosInitiative/ValveMultitool | ValveMultitool/Models/Formats/Steam/Distribution/Apps/AppInfoLaunchEntry.cs | 1,014 | C# |
#region LICENSE
/*
MIT License
Copyright (c) 2018 Software free CAS Sharp
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 th... | 37.26087 | 82 | 0.728121 | [
"MIT"
] | bugbit/CASSharp | CASSharp/CASSharp.Core/Exprs/StringExpr.cs | 1,716 | C# |
//-----------------------------------------------------------------------
// <copyright file="ChildInterfaceTests.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: http://www.lhotka.net/cslanet/
// </copyright>
// <summary>no summary</summary>
//--------------------------... | 23.08 | 73 | 0.623339 | [
"MIT"
] | angtianqiang/csla | Source/Csla.test/ChildrenByInterface/ChildInterfaceTests.cs | 1,731 | C# |
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Windows.Forms.VisualStyles;
namespace DB338Core
{
public class DB338
{
private SQLParser sqlParser;
private DB338TransactionMgr transactionMgr;
public DB338(... | 31.118644 | 101 | 0.577887 | [
"MIT"
] | brogly-zz/DB338 | DB338Core/DB338.cs | 1,838 | C# |
using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("PCLCache.UnitTests")]
[assembly: AssemblyDescription("")]
| 23.666667 | 47 | 0.812207 | [
"MIT"
] | davidturneruk/PCLCache | PCLCache/PCLCache.UnitTests/Properties/AssemblyInfo.cs | 215 | C# |
using System.Text.Json.Serialization;
using VeilleConcurrentielle.Infrastructure.Core.Models;
namespace VeilleConcurrentielle.EventOrchestrator.Lib.Servers.Models
{
public class Event
{
public string Id { get; set; }
[JsonConverter(typeof(JsonStringEnumConverter))]
public EventNames Na... | 36 | 68 | 0.681944 | [
"MIT"
] | d605-upjv/veille-concurrentielle | EventOrchestrator/VeilleConcurrentielle.EventOrchestrator.Lib/Servers/Models/Event.cs | 722 | C# |
using System;
using Moq;
using Xunit;
using WholeKitAndCaboodle;
using Shouldly;
using System.Linq;
using WholeKitAndCaboodle.Common;
using WholeKitAndCaboodle.Models;
using WholeKitAndCaboodle.Services;
namespace WholeKitAndCaboodleTest
{
public class VehicleDataServiceHarness
{
private Mock<IDataMan... | 37.394737 | 197 | 0.643913 | [
"MIT"
] | ahatch1490/WholeKitAndCaboodle | WholeKitAndCaboodle/WholeKitAndCaboodleTest/VehicleDataServiceHarness.cs | 2,844 | C# |
/*
* Copyright 2017 Mikhail Shiryaev
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 30.50303 | 101 | 0.51818 | [
"Apache-2.0"
] | carquiza/scada | ScadaComm/OpenKPs/KpHttpNotif/KpHttpNotifView.cs | 5,617 | C# |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text.RegularExpressions;
using System.Web.Mvc... | 59.244444 | 1,319 | 0.564141 | [
"Apache-2.0"
] | 1508553303/AspNetWebStack | src/Microsoft.Web.Mvc/UrlAttribute.cs | 2,668 | C# |
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("SecByte.Xunit.Gherkin.UnitTests")]
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] | 41.25 | 65 | 0.836364 | [
"MIT"
] | Secbyte/SecByte.Xunit.Gherkin | source/SecByte.Xunit.Gherkin/AssemblyInfo.cs | 167 | C# |
using System;
namespace Mighty.Dynamic.Tests.SqlServer.TableClasses
{
public class ContactType : MightyOrm
{
public ContactType() : this(true)
{
}
public ContactType(bool includeSchema) :
base(string.Format(TestConstants.ReadTestConnection, TestConstants.ProviderN... | 24.055556 | 172 | 0.644342 | [
"BSD-3-Clause"
] | MightyORM/MightyORM | tests/Dynamic/SqlServer/TableClasses/ContactType.cs | 435 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine($"{1}");
}
}
}
| 16.058824 | 39 | 0.615385 | [
"MIT"
] | aamirWasi/DCP-320 | ConsoleApp1/ConsoleApp1/Program.cs | 275 | C# |
/*
* Copyright (c) 2019 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 42.140449 | 107 | 0.574857 | [
"ECL-2.0",
"Apache-2.0"
] | GauravQ/dotnet-docs-samples | cloud-sql/sql-server/Startup.cs | 7,503 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xam... | 38.61165 | 99 | 0.617299 | [
"MIT"
] | sam9116/Hangman | Hangman/Hangman/App.xaml.cs | 3,979 | C# |
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.
// Original file: https://github.com/DuendeSoftware/IdentityServer.Quickstart.UI
// Modified by Jan Škoruba
using System.ComponentModel.DataAnnotations;
namespace SkorubaDuende.IdentityServerAdmin.STS.... | 22.357143 | 80 | 0.691693 | [
"Apache-2.0"
] | CentauriConsulting/Duende.IdentityServer.Admin | templates/template-publish/content/src/SkorubaDuende.IdentityServerAdmin.STS.Identity/ViewModels/Account/LoginInputModel.cs | 629 | C# |
using Microsoft.Extensions.Hosting;
using SFA.DAS.EmployerFinance.Configuration;
using StructureMap;
namespace SFA.DAS.EmployerFinance.Api.DependencyResolution
{
public class DefaultRegistry : Registry
{
public DefaultRegistry()
{
For<IHostingEnvironment>().Use<HostingEnvironmentAda... | 24.714286 | 72 | 0.708092 | [
"MIT"
] | SkillsFundingAgency/das-employerfinance | src/SFA.DAS.EmployerFinance.Api/DependencyResolution/DefaultRegistry.cs | 346 | C# |
using Microsoft.Maui.Controls.CustomAttributes;
using Microsoft.Maui.Controls.Internals;
using NUnit.Framework;
namespace Microsoft.Maui.Controls.Compatibility.ControlGallery.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 9355, "ScrollViewRenderer renderer dispose crash", PlatformAffected.Android... | 20.809524 | 106 | 0.678108 | [
"MIT"
] | 10088/maui | src/Compatibility/ControlGallery/src/Issues.Shared/Issue9355.cs | 1,311 | C# |
using System;
namespace Qkmaxware.Units.Energy {
/// <summary>
/// Static class housing si-prefix conversions for the unit "JouleEnergy"
/// </summary>
public static class JouleEnergyConversions {
/// <summary>
/// Extension method to convert Joule to YottaJoule
/// </summary>
/// <param name="val">quantit... | 44.714829 | 120 | 0.663802 | [
"MIT"
] | qkmaxware/CsUnits | Units/src/Qkmaxware/Units/Energy/JouleEnergyConversions.cs | 188,160 | C# |
using System;
using Xamarin.Forms;
using SkiaSharp;
using SkiaSharp.Views.Forms;
namespace SkiaSharpFormsDemos.Effects
{
public partial class BitmapTileFlipModesPage : ContentPage
{
SKBitmap bitmap;
public BitmapTileFlipModesPage ()
{
InitializeComponent ();
SKBitmap or... | 32.096774 | 88 | 0.591457 | [
"Apache-2.0"
] | 15217711253/xamarin-forms-samples | SkiaSharpForms/Demos/Demos/SkiaSharpFormsDemos/Effects/BitmapTileFlipModesPage.xaml.cs | 1,992 | C# |
using System.IdentityModel.Tokens.Jwt;
using System.Net.Http;
using IdentityServer4.EntityFramework.DbContexts;
using IdentityServer4.EntityFramework.Storage;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Microsoft.AspNetCore.Builder;
using Microsoft.A... | 35.660194 | 143 | 0.578818 | [
"MIT"
] | miroslavpopovic/auth-microservice-sample | src/Auth.Admin/Startup.cs | 3,673 | C# |
// <copyright file="BingMainPage.cs" company="Automate The Planet Ltd.">
// Copyright 2021 Automate The Planet Ltd.
// 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/lic... | 37.90625 | 87 | 0.702391 | [
"Apache-2.0"
] | AutomateThePlanet/AutomateThePlanet-Learning-Series | dotnet/Design-Architecture-Series/SingletonDesignPattern/Pages/BingMainPage/BingMainPage.cs | 1,215 | C# |
using System;
using System.Linq;
using GemBox.Document;
using GemBox.Document.Tables;
class Program
{
static void Main(string[] args)
{
// If using Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");
DocumentModel document = DocumentModel.Load... | 46.283582 | 146 | 0.649468 | [
"MIT"
] | nojkhieppso/GemBox.Document | Template Use/TemplateUseCs/Program.cs | 3,101 | C# |
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Dunk.Tools.Foundation.Collections
{
/// <summary>
/// A <see cref="IThrottledProcessingQueue"/> implementation that manages the number
/// of concurrent operations that can be processed at once.
/// </summary>
public se... | 39.224719 | 185 | 0.604984 | [
"MIT"
] | c1gdoyle/Dunk.Tools.Foundation | Dunk.Tools.Foundation/Collections/ThrottledProcessingQueue.cs | 3,493 | C# |
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace TatumPlatform.Model.Requests
{
public class TransactionFilterAccount
{
[Required]
[StringLength(24, MinimumLength = 24)]
[JsonPropertyName("id")]
public string Id { get; set; }
... | 29.62 | 51 | 0.621202 | [
"MIT"
] | saman-hosseini/tatum-csharp | src/Tatum/Model/Requests/Ledger/TransactionFilterAccount.cs | 1,483 | C# |
#if UNITY_EDITOR
using System;
using UnityEditor;
using UnityEngine.Experimental.Input.Editor.Lists;
using UnityEngine.Experimental.Input.Utilities;
namespace UnityEngine.Experimental.Input.Editor
{
/// <summary>
/// Base class for views that show the properties of actions or bindings.
/// </summary>
i... | 37.794118 | 148 | 0.653891 | [
"MIT"
] | ToadsworthLP/Millenium | Library/PackageCache/com.unity.inputsystem@0.2.6-preview/InputSystem/Editor/AssetEditor/PropertiesViewBase.cs | 5,140 | C# |
using System.Collections.Generic;
namespace Material.Styles.Internal
{
internal static class IconsDataSet
{
internal const string UnknownIconData =
"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1... | 130.56 | 599 | 0.658395 | [
"MIT"
] | Al-Dyachkov/Material.Avalonia | Material.Styles/Internal/IconsDataSet.cs | 3,266 | 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.914894 | 114 | 0.641333 | [
"Apache-2.0"
] | polivbr/pulumi-azure-native | sdk/dotnet/Web/V20200601/Outputs/HandlerMappingResponse.cs | 1,500 | C# |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
namespace NuGet.Versioning
{
/// <summary>
/// ... | 33.456693 | 132 | 0.512944 | [
"Apache-2.0"
] | 0xced/NuGet.Client | src/NuGet.Core/NuGet.Versioning/SemanticVersion.cs | 8,498 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UIP.GDM.HW5.OOP.Classes.Factory
{
class Country
{
public List<Order> GetOrders()
{
List<Order> orders = new List<Order>();
foreach (var order in... | 18.952381 | 51 | 0.555276 | [
"MIT"
] | watchbot23/GDM.UIP.HW | UIP.GDM.HW5.OOP.Classes.Factory/Country.cs | 400 | C# |
// MonsterRecordUtilitiesMenu.cs
// Copyright (c) 2014+ by Michael Penner. All rights reserved.
using System;
using System.Collections.Generic;
using Eamon.Framework.Menus;
using Eamon.Game.Attributes;
using Eamon.Game.Menus;
using EamonDD.Framework.Menus.ActionMenus;
using EamonDD.Framework.Menus.Hiera... | 29.694915 | 131 | 0.699772 | [
"MIT"
] | TheRealEamonCS/Eamon-CS | System/EamonDD/Game/Menus/HierarchicalMenus/MonsterMenus/MonsterRecordUtilitiesMenu.cs | 1,754 | C# |
namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell;
/// <summary>Class representing the servers project summary.</summary>
[System.ComponentModel.TypeConverter(typeof(ServersProjectSummaryTypeConverter))]... | 99.691275 | 523 | 0.748957 | [
"MIT"
] | 3quanfeng/azure-powershell | src/Migrate/generated/api/Models/Api20180901Preview/ServersProjectSummary.PowerShell.cs | 14,706 | C# |
//-----------------------------------------------------------------------------
// Copyright : (c) Chris Moore, 2020
// License : MIT
//-----------------------------------------------------------------------------
namespace Z0
{
using System;
using static Root;
using static core;
public class ... | 31.509804 | 85 | 0.408214 | [
"BSD-3-Clause"
] | 0xCM/z0 | src/bits.test/units/t_bitcopy.cs | 1,607 | C# |
// ***********************************************************************
// Copyright (c) 2013-2020 Charlie Poole, Terje Sandstrom
//
// 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 wit... | 44.121019 | 278 | 0.622059 | [
"MIT"
] | ashishdawale20/nunit3-vs-adapter | src/NUnitTestAdapter/TraitsFeature.cs | 6,939 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
public class MemoryUtils
{
[MenuItem("Utils/Memory/ClearCache")]
static void ClearCache()
{
//Clears all of the caches
bool success = Caching.ClearCache();
if (!suc... | 17.387097 | 47 | 0.625232 | [
"MIT"
] | makerhanoi/via-simulation-jeep | Assets/MapBuilder/Scripts/Utils/KoiUtils/Editor/MemoryUtils.cs | 541 | C# |
using System;
namespace Magnesium.Vulkan
{
internal enum VkDebugReportObjectTypeExt : uint
{
DebugReportObjectTypeUnknown = 0,
DebugReportObjectTypeInstance = 1,
DebugReportObjectTypePhysicalDevice = 2,
DebugReportObjectTypeDevice = 3,
DebugReportObjectTypeQueue = 4,
DebugReportObjectTypeSemaphore = 5,
... | 32.868421 | 48 | 0.818255 | [
"MIT"
] | tgsstdio/Mg | Magnesium.Vulkan/Enums/VkDebugReportObjectTypeExt.cs | 1,249 | C# |
// Copyright (c) Suity by HuangWei(4477289@qq.com)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Suity.Rex
{
public sealed class EmptyDisposable : IDisposable
... | 21.583333 | 103 | 0.667954 | [
"MIT"
] | simage3d/Suity.Engine.Runtime.V4 | Source/Suity.Rex/Rex/EmptyDisposable.cs | 520 | C# |
using System;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using NUnit.Framework;
using Spring.Context.Support;
namespace Spring.Remoting
{
public class BaseRemotingTestFixture
{
protected static TcpChannel channel;
private static object lockObj... | 30.959184 | 99 | 0.454186 | [
"Apache-2.0"
] | TerryRen/spring-net | test/Spring/Spring.Services.Tests/Remoting/BaseRemotingTestFixture.cs | 1,517 | 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.Collections.Generic;
using System.IO;
using System.IO.Tests;
using System.Linq;
using System.Net.Quic;
using System.Net.Security;
using System.Net.Test.Common;
using Sy... | 44.188312 | 195 | 0.633872 | [
"MIT"
] | jtschuster/runtime | src/libraries/System.Net.Http/tests/FunctionalTests/ResponseStreamZeroByteReadTests.cs | 13,612 | C# |
using System;
using System.Xml.Serialization;
using System.ComponentModel.DataAnnotations;
using BroadWorksConnector.Ocip.Validation;
using System.Collections.Generic;
namespace BroadWorksConnector.Ocip.Models
{
/// <summary>
/// Request to get all the information of a Auto Attendant instance.
/// The resp... | 31.325581 | 130 | 0.657016 | [
"MIT"
] | Rogn/broadworks-connector-net | BroadworksConnector/Ocip/Models/GroupAutoAttendantGetInstanceRequest16.cs | 1,347 | C# |
using System.Linq;
namespace ADTool.Extensions
{
public static class ByteArrayExtensions
{
public static string ToHex(this byte[] bytes)
{
return string.Join("", bytes.Select(x => string.Format("{0:x2}", x)));
}
}
} | 22 | 82 | 0.590909 | [
"MIT"
] | bduman/ADTool | src/ADTool/Extensions/ByteArrayExtensions.cs | 264 | C# |
using System;
namespace More.Net
{
/// <summary>
///
/// </summary>
public static class Endian
{
/// <summary>
///
/// </summary>
static Endian()
{
flippedBytes = new Byte[]
{
0x00, 0x80, 0x40, 0xC0, 0x20, 0xA0, 0x60... | 33.864662 | 99 | 0.434059 | [
"MIT"
] | fallfromgrace/More.Net | More.Net/Endian.cs | 4,506 | C# |
using System;
using System.IO;
using Xamarin.Forms;
using ImagenesMercadoLibre.Data;
using ImagenesMercadoLibre.Views;
using ImagenesMercadoLibre.Services.ML;
using ImagenesMercadoLibre.ViewModels.Base;
using ImagenesMercadoLibre.Services.Me;
using ImagenesMercadoLibre.Services;
using System.Net.Http;
namespace Image... | 29.099415 | 150 | 0.491359 | [
"Apache-2.0"
] | Civeloo/ImagenesMercadoLibre | ImagenesMercadoLibre/ImagenesMercadoLibre/App.xaml.cs | 4,978 | C# |
//-----------------------------------------------------------------------
// <copyright file="GitHub.cs" company="https://github.com/jhueppauff/Dynamics365-Customizing-Downloader">
// Copyright 2018 Jhueppauff
// Mozilla Public License Version 2.0
// For licence details visit https://github.com/jhueppauff/Dynamics365... | 37.080645 | 152 | 0.605481 | [
"MPL-2.0"
] | jhueppauff/Dynamics365-Customizing-Downloader | UnitTest/GitHub.cs | 2,301 | C# |
using System.Collections.Generic;
using System.IO;
namespace GitNoob.Gui.Program.Action.Remedy
{
public class RenameExistingDirectory : Remedy
{
public RenameExistingDirectory(Step.Step Step, MessageWithLinks Message) :
base(Step, ref Message)
{
string RenameTo = Utils.... | 39.84375 | 162 | 0.523137 | [
"MIT"
] | MircoBabin/GitNoob | src/GitNoob.Gui.Program/Action/Remedy/RenameExistingDirectory.cs | 1,277 | C# |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Runtime.InteropServices;
using Microsoft.Win32.SafeHandles;
namespace System.Diagnostics
{
public static partial class Debug
{
// intern... | 38.098765 | 162 | 0.481529 | [
"MIT"
] | josephwinston/corefx | src/System.Diagnostics.Debug/src/System/Diagnostics/Debug.Unix.cs | 3,088 | C# |
using CloudNative.CloudEvents;
using Google.Cloud.Functions.Framework;
using Google.Events.Protobuf.Cloud.Storage.V1;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace MyFunction
{
/// <summary>
/// A function that can be triggered in responses to changes in Google Cloud Storage.
... | 52.4 | 116 | 0.658015 | [
"Apache-2.0"
] | AshleyMedway/functions-framework-dotnet | src/Google.Cloud.Functions.Templates/templates/event-function-cs/Function.cs | 2,620 | C# |
using Application.Auth.Commands.RegisterNewUser;
using Application.Common;
using Application.Common.Dtos;
using Application.Common.Interfaces;
using Application.User;
using Domain.Entities;
using MediatR;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Persistence;
using System.Threadin... | 38.802198 | 128 | 0.662985 | [
"MIT"
] | mrodrigues95/ClassroomChat | api/Application/Auth/Commands/RegisterNewUser/RegisterNewUserCommandHandler.cs | 3,533 | C# |
using System;
using System.Runtime.Serialization;
namespace _4charm.Models
{
[DataContract]
public class BoardID
{
[DataMember]
public string Name { get; set; }
[DataMember]
public string Description { get; set; }
[DataMember]
public bool IsNSFW... | 22.333333 | 69 | 0.539179 | [
"MIT"
] | pantaloons/4charm | 4charm/Models/BoardID.cs | 538 | C# |
// Python Tools for Visual Studio
// Copyright(c) Microsoft Corporation
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the License); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
//... | 47.52149 | 192 | 0.642327 | [
"Apache-2.0"
] | Cellule/PTVS | Python/Product/Debugger/DkmDebugger/TraceManager.cs | 16,585 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Threading;
using System.Threading.Tasks;
using Azure.Core;
namespace Azure.Messaging.EventHubs.Producer
{
/// <summary>
/// A client responsible for publishing <see cref="EventData" /> to a specific... | 64.676056 | 238 | 0.649245 | [
"MIT"
] | ChenTanyi/azure-sdk-for-net | sdk/eventhub/Azure.Messaging.EventHubs.Experimental/src/Producer/IdempotentProducer.cs | 13,778 | C# |
// ***********************************************************************
// Copyright (c) 2018 Charlie Poole
//
// 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, incl... | 40.148936 | 75 | 0.651298 | [
"MIT"
] | drSte/testcentric-gui | src/TestModel/model/Settings/RecentProjectsSettings.cs | 1,889 | C# |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Draco.Core.Hosting.Interfaces;
using Draco.Core.Models.Interfaces;
using Draco.Execution.Api.Interfaces;
using Draco.Execution.Api.Services;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namesp... | 37 | 101 | 0.760915 | [
"MIT"
] | timmyreilly/draco | src/draco/api/Execution.Api/Modules/CoreExecutionApiModule.cs | 962 | C# |
/* Copyright (C) 2015 haha01haha01
* 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/. */
using System;
using System.Collections.Generic;
using System.Drawing;
using Syst... | 39.284365 | 231 | 0.541949 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | Piezoelectric/Harepacker-resurrected | HaRepacker/GUI/MainForm.cs | 74,878 | 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 PartyCluster.Appl... | 39.23913 | 142 | 0.572299 | [
"MIT"
] | LSTANCZYK/service-fabric-dotnet-management-party-cluster | src/PartyCluster.ApplicationDeployService/Program.cs | 1,807 | C# |
using System;
using System.Threading;
using System.Threading.Tasks;
using HotChocolate;
using HotChocolate.Execution.Configuration;
using HotChocolate.Resolvers;
using HotChocolate.Types;
namespace Microsoft.Extensions.DependencyInjection;
public static partial class SchemaRequestExecutorBuilderExtensions
{
/// <... | 30.947464 | 96 | 0.599953 | [
"MIT"
] | AccountTechnologies/hotchocolate | src/HotChocolate/Core/src/Execution/DependencyInjection/SchemaRequestExecutorBuilderExtensions.Resolvers.cs | 17,083 | C# |
using System;
namespace Appy.Play.Infrastructure.Utils
{
public interface ILogger
{
void Info(string message);
}
public class ConsoleLogger : ILogger
{
public void Info(string message) => Console.WriteLine(message);
}
} | 18.714286 | 71 | 0.652672 | [
"MIT"
] | jrgcubano/play-azure-sdk | src/Appy.Play.Infrastructure/Utils/ConsoleLogger.cs | 264 | 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
*
... | 44.617873 | 226 | 0.605281 | [
"Apache-2.0"
] | hapsyou/tencentcloud-sdk-dotnet | TencentCloud/Cdb/V20170320/CdbClient.cs | 182,226 | C# |
#region License
// Moonpie
//
// Copyright (c) 2022 Stay
//
// MIT License
//
// 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 righ... | 30.45283 | 103 | 0.580634 | [
"MIT"
] | Stay1444/Moonpie | src/Moonpie/Protocol/Network/Connection.cs | 11,300 | C# |
// <auto-generated />
using System;
using DatabaseInterface;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace DatabaseInterface.Migrations
{
[DbContext(typ... | 37.013917 | 95 | 0.458964 | [
"MIT"
] | yokovaski/EnergyPortal | DatabaseInterface/Migrations/20200413123843_RemovedDayMetric.Designer.cs | 18,620 | C# |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
names... | 29.21875 | 107 | 0.64385 | [
"ECL-2.0",
"Apache-2.0"
] | RafalSumislawski/pulumi-aws | sdk/dotnet/WafV2/Inputs/RuleGroupRuleActionCountCustomRequestHandlingInsertHeaderArgs.cs | 935 | C# |
// Copyright (c) 2014-2020 The Khronos Group Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and/or associated documentation files (the "Materials"),
// to deal in the Materials without restriction, including without limitation
// the rights to use, copy... | 37.18 | 92 | 0.546682 | [
"MIT"
] | IceSDK/IceSDK | third-party/bgfx/3rdparty/spirv-headers/include/spirv/unified1/spirv.cs | 59,488 | C# |
using System;
using UnityEngine;
namespace UnityStandardAssets.ImageEffects
{
[ExecuteInEditMode]
[RequireComponent (typeof(Camera))]
public class PostEffectsBase : MonoBehaviour
{
protected bool supportHDRTextures = true;
protected bool supportDX11 = false;
protected bool isSup... | 28.32377 | 263 | 0.46795 | [
"CC0-1.0"
] | 00010023/waifu.run | assets/NatureStarterKit2/Standard Assets/Effects/ImageEffects/Scripts/PostEffectsBase.cs | 6,911 | C# |
using System;
using System.Web.Mvc;
using IBuyStuff.Application.InputModels.Order;
using IBuyStuff.Application.Services;
using IBuyStuff.Application.Services.Order;
using IBuyStuff.Application.ViewModels;
using IBuyStuff.Application.ViewModels.Orders;
namespace IBuyStuff.Server.Controllers.Business
{
[Authorize]
... | 32.381643 | 120 | 0.591825 | [
"MIT"
] | nodashin/DDD-OnionArchitecture-Traning | Samples/IBuyStuff/IBuyStuff-dm/src/Site/IBuyStuff.Server/Controllers/Business/OrderController.cs | 6,705 | C# |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DefaultRegistry.cs" company="Web Advanced">
// Copyright 2012 Web Advanced (www.webadvanced.com)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not u... | 50.887324 | 148 | 0.687517 | [
"MIT"
] | BugsUK/FindApprenticeship | src/SFA.Apprenticeship.Web.Api/DependencyResolution/DefaultRegistry.cs | 3,613 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using maths.Distribution;
namespace maths.Helpers
{
public class Gamma
{
/// <summary>
/// Natural logarithm of the gamma function.
/// </summary>
///
public static double Log(doubl... | 26.825926 | 105 | 0.346403 | [
"MIT"
] | cschen1205/cs-genetic-programming | lgp/Helpers/Gamma.cs | 7,245 | C# |
using System.Threading.Tasks;
using Tweetinvi.Models;
namespace Tweetinvi
{
public static class RateLimitAsync
{
public static async Task<ICredentialsRateLimits> GetCurrentCredentialsRateLimits()
{
return await Sync.ExecuteTaskAsync(() => RateLimit.GetCurrentCredentialsRat... | 31.473684 | 115 | 0.687291 | [
"MIT"
] | 247GradLabs/tweetinvi | Tweetinvi/RateLimitAsync.cs | 600 | C# |
namespace stellar_dotnet_sdk.responses.results
{
/// <summary>
/// No issuer for what we are selling.
/// </summary>
public class ManageSellOfferSellNoIssuer : ManageSellOfferResult
{
}
} | 21.2 | 68 | 0.674528 | [
"Apache-2.0"
] | BlockForks/dotnet-stellar-sdk | stellar-dotnet-sdk/responses/results/ManageSellOfferSellNoIssuer.cs | 212 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | 35.321839 | 153 | 0.585421 | [
"MIT"
] | OfficeGlobal/msgraph-beta-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/WorkbookFunctionsReceivedRequest.cs | 3,073 | 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... | 48.741935 | 181 | 0.690437 | [
"Apache-2.0"
] | ChristopherButtars/aws-sdk-net | sdk/src/Services/DynamoDBv2/Generated/Model/PointInTimeRecoveryUnavailableException.cs | 6,044 | C# |
//*******************************************************************************************//
// //
// Download Free Evaluation Version From: https://bytescout.com/download/web-installer //
// ... | 40.714286 | 95 | 0.297076 | [
"Apache-2.0"
] | atkins126/ByteScout-SDK-SourceCode | Cloud API Server/Document Parser API/C#/Parse and Generate HL7 Output/Src/MessageElement.cs | 1,711 | C# |
using UnityEngine;
using UnityEngine.UI;
namespace FallingBoxes
{
public class GameManager : MonoBehaviour
{
public GameObject box;
public GameObject platformPiece;
public GameObject character;
public GameObject laser;
public GameObject motivationArrow;
private Transform gameManager;
private int box... | 39.810811 | 195 | 0.716904 | [
"MIT"
] | grahamallen/falling-boxes | Assets/Standard Assets/2D/Scripts/GameManager.cs | 4,421 | C# |
#pragma warning disable 108 // new keyword hiding
#pragma warning disable 114 // new keyword hiding
namespace Windows.Devices.AllJoyn
{
#if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
#endif
public partial class AllJoynBusAttachmentStateChangedEventArgs
{
#if __ANDROID... | 35.088235 | 168 | 0.765298 | [
"Apache-2.0"
] | AlexTrepanier/Uno | src/Uno.UWP/Generated/3.0.0.0/Windows.Devices.AllJoyn/AllJoynBusAttachmentStateChangedEventArgs.cs | 1,193 | C# |
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.... | 38.316456 | 129 | 0.556326 | [
"MIT"
] | 02Naitsirk/osu | osu.Game.Rulesets.Mania/Skinning/Legacy/LegacyHitTarget.cs | 2,949 | C# |
namespace Microsoft.CodeAnalysis.CSharp
{
internal static partial class ErrorFacts
{
public static bool IsWarning(ErrorCode code)
{
switch (code)
{
case ErrorCode.WRN_InvalidMainSig:
case ErrorCode.WRN_UnreferencedEvent:
ca... | 54.805755 | 94 | 0.65575 | [
"Apache-2.0"
] | GovernessS/roslyn | src/Compilers/CSharp/Portable/Generated/ErrorFacts.Generated.cs | 15,238 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using PPDFramework;
namespace PPD
{
public class GameResultManager
{
const int MIN = 0;
const int MAX = 1023;
int combo;
int[] evacount = new int[5];
int currentlife = MAX / 2;
public GameResultM... | 24.113924 | 108 | 0.35643 | [
"Apache-2.0"
] | KHCmaster/PPD | Win/PPD/PPD/GameResultManager.cs | 3,812 | C# |
// The MIT License (MIT)
//
// Copyright (c) 2015-2016 Rasmus Mikkelsen
// Copyright (c) 2015-2016 eBay Software Foundation
// https://github.com/rasmus/EventFlow
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software")... | 44.108696 | 104 | 0.738788 | [
"MIT"
] | AntoineGa/EventFlow | Source/EventFlow.TestHelpers/Aggregates/Snapshots/ThingySnapshot.cs | 2,031 | C# |
// [[[[INFO>
// Copyright 2015 Epicycle (http://epicycle.org, https://github.com/open-epicycle)
//
// 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... | 44.857143 | 144 | 0.730892 | [
"Apache-2.0"
] | open-epicycle/Epicycle.Math-cs | projects/Epicycle.Math_cs/Probability/IntegralStochasticProcess.cs | 2,514 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace TicTacToe
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
... | 22.863636 | 66 | 0.574553 | [
"Apache-2.0"
] | ekade/tictactoe | TicTacToe/TicTacToe/TicTacToe/Program.cs | 505 | C# |
using System;
namespace Aneejian.PowerPoint.Downsizer
{
public abstract class Response : IResponse
{
public bool IsSuccess { get; set; }
public string ResultMessage { get; set; } = "";
public Exception Exception { get; set; }
protected Response()
{
}
p... | 24.862069 | 85 | 0.564494 | [
"MIT"
] | kannansuresh/PowerPoint-Downsizer-Add-In | src/Aneejian.PowerPoint.Downsizer/Response.cs | 723 | C# |
namespace codewars;
using static String;
public class FakeBinarySolution
{
public static string Fake(string s) => Concat(s.Select(c => c / '5'));
}
public class FakeBinaryTests
{
[Theory]
[InlineData("45385593107843568", "01011110001100111")]
[InlineData("509321967506747", "101000111101101")]
[In... | 30.117647 | 118 | 0.742188 | [
"Unlicense"
] | MartinRL/codewars | codewars/FakeBinaryKata.cs | 512 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("_Local.ConsoleApp")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: ... | 26.027027 | 56 | 0.717549 | [
"Apache-2.0"
] | yuanrui/Examples | _Local.ConsoleApp/Properties/AssemblyInfo.cs | 1,330 | C# |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Microsoft.AspNetCore.Mvc.ApplicationParts;
namespac... | 27.146341 | 111 | 0.649596 | [
"Apache-2.0"
] | belav/aspnetcore | src/Mvc/Mvc.Core/test/TestApplicationPart.cs | 1,115 | 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... | 27.527027 | 81 | 0.57241 | [
"Apache-2.0"
] | polivbr/pulumi-azure-native | sdk/dotnet/Synapse/V20210501/Outputs/LibraryInfoResponse.cs | 2,037 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.