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.Linq; using System.Text; using System.Threading.Tasks; using static TeamLab.Distributore.ConsoleApp.Models.SlotSelector; namespace TeamLab.Distributore.ConsoleApp.Models.Interfaces { interface ISlotSelector { //Use case: 1 selezione prodotto...
21.136364
65
0.733333
[ "MIT" ]
ncarandini/Distributore
TeamLab.Distributore.ConsoleApp/Models/Interfaces/ISlotSelector.cs
467
C#
 namespace ImageSharp.Tests.Drawing.Paths { using System; using System.IO; using ImageSharp; using ImageSharp.Drawing.Brushes; using Processing; using System.Collections.Generic; using Xunit; using ImageSharp.Drawing; using System.Numerics; using SixLabors.Shapes; using Imag...
38.283465
166
0.569519
[ "Apache-2.0" ]
ststeiger/ImageSharpTestApplication
tests/ImageSharp.Tests/Drawing/Paths/ShapePathTests.cs
4,864
C#
using Commons.Domain; using System; namespace FileMicroservice.Domain { public class File : BaseEntity { public int id { get; set; } public string filePath { get; set; } } }
17
44
0.627451
[ "MIT" ]
sebamed/saup-microservices
FileMicroservice/Domain/File.cs
206
C#
using System; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.Windows.Media.Imaging; using ...
28.474747
149
0.520043
[ "BSD-3-Clause" ]
nokiadatagathering/WP7-Official
NDG.DataAccessModels/DataModels/QuestionDataModels/ImageQuestionData.cs
2,821
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. using Azure.Base; using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; namespace A...
38.957746
134
0.572849
[ "MIT" ]
jitendriyag2/azure-sdk-for-net
src/SDKs/Azure.ApplicationModel.Configuration/data-plane/Azure.ApplicationModel.Configuration/ConfigurationWatcher.cs
5,534
C#
// Copyright (c) Microsoft Open Technologies, Inc. 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.Text; using System.Text.Encodings.Web; using Microsoft.AspNetCore.Http.Authentication; namespace Microsoft....
30.041667
111
0.562182
[ "Apache-2.0" ]
KroneckerX/Security
test/Microsoft.AspNetCore.Authentication.Test/OpenIdConnect/AuthenticationPropertiesFormaterKeyValue.cs
2,163
C#
using DNA.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace DNA.CastleMinerZ.GraphicsProfileSupport { public class GraphicsProfileManager { private static GraphicsProfileManager _instance; private GraphicsProfile _profile; public static GraphicsProfileManager Instance {...
21.990476
90
0.698571
[ "MIT" ]
JettSettie/CastleMinerZsrc
DNA.CastleMinerZ.GraphicsProfileSupport/GraphicsProfileManager.cs
2,309
C#
using System.Linq; namespace Overmind.Solitaire.UnityClient { /// <summary>The stock is the pile with the leftover cards from the setup, from which the player can draw.</summary> public class StockCardPile : CardPile { public WasteCardPile Waste; public void OnMouseUp() { if (Cards.Any()) { Draw()...
15.255319
117
0.620642
[ "MIT" ]
BenjaminHamon/Overmind.Solitaire
UnityClient/Assets/StockCardPile.cs
719
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Analytics.Synapse.Artifacts.Models; using Azure.Core; using Azure...
52.379576
249
0.633805
[ "MIT" ]
AbelHu/azure-sdk-for-net
sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkJobDefinitionRestClient.cs
27,185
C#
using UnityEngine; // Pistol weapon public class Pistol : Weapon { public new void Shoot(Camera playerCam) { base.Shoot(playerCam); } }
14.818182
43
0.625767
[ "MIT" ]
AdrianKrige/GamesCapstoneProject
Neo Divitias/Assets/Scripts/Combat/Equipment/Weapons/Pistol.cs
165
C#
// Copyright (c) SDV Code Project. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace SdvCode.Areas.Administration.ViewModels.AddEmoji.InputModels { using System; using System.Collections.Generic; using System.ComponentModel...
29.484848
101
0.652621
[ "MIT" ]
biproberkay/SdvCodeWebsite
SdvCode/SdvCode/Areas/Administration/ViewModels/AddEmoji/InputModels/AddEmojiInputModel.cs
975
C#
namespace CrudeObservatory.Abstractions.Interfaces { public interface IDataValue { public string Name { get; set; } public object Value { get; set; } } }
20.333333
51
0.639344
[ "MPL-2.0" ]
jkoplo/CrudeObservatory
src/Libraries/CrudeObservatory.Abstractions/Interfaces/IDataValue.cs
185
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. // // Generated on 2020 October 09 05:00:06 UTC // </auto-generated> //--------------...
34.189189
123
0.635573
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/encoding/json/encode_InvalidUTF8ErrorStruct.cs
2,530
C#
namespace BashSoft.IO.Commands { using Attributes; using Contracts; using Exceptions; [Alias("cdabs")] public class ChangeAbsolutePathCommand : Command { [Inject] private IDirectoryManager inputOutputManager; public ChangeAbsolutePathCommand(string input, string[] data...
23.810811
81
0.582293
[ "MIT" ]
BorislavBarov/OOP-Advanced-With-C-Sharp
BashSoft Third Stage/StoryMode/BashSoft/IO/Commands/ChangeAbsolutePathCommand.cs
883
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using BeerViewer.Libraries; using CefSharp; using CefSharp.Handler; namespace BeerViewer.Framework { internal class FrameworkRequestHandler : DefaultRequestHandler { public overri...
30.354839
157
0.78746
[ "MIT" ]
WolfgangKurz/BeerViewer
BeerViewer/Framework/FrameworkRequestHandler.cs
943
C#
#nullable enable namespace FitsCs.Keys { public class KeyUpdater { public string? Name { get; set; } public string? Comment { get; set; } public object? Value { get; set; } public KeyType Type { get; set; } } }
21.333333
44
0.574219
[ "MIT" ]
Ilia-Kosenkov/Fits-Cs
Fits-Cs/Keys/KeyUpdater.cs
258
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...
36.123894
155
0.630083
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/CloudDirectory/Generated/Model/Internal/MarshallTransformations/UpgradeAppliedSchemaRequestMarshaller.cs
4,082
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...
31.949367
126
0.560222
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/SecurityHub/Generated/Model/AwsIamGroupDetails.cs
5,048
C#
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace Microsoft.Azure.Cosmos.Json { using System; using System.Collections.Generic; using Microsoft.Azure.Cosmos.Qu...
36.918033
172
0.468853
[ "MIT" ]
lingdaLi/azure-cosmos-dotnet-v3
Microsoft.Azure.Cosmos/src/Json/JsonNavigator.JsonTextNavigator.cs
47,294
C#
using System; using System.Collections.Generic; using System.Text; namespace DRI.BasicDI.UnitTests.TestClasses { internal class TestClassA { public TestClassA(TestClassB testClassB, TestClassC testClassC) { } } }
21.076923
71
0.631387
[ "MIT" ]
ranasabih/BasicDI
DRI.BasicDI.UnitTests/TestClasses/TestClassA.cs
276
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using KeyValueStorage.Memory; using NUnit.Framework; namespace KeyValueStorage.Testing.Memory { [TestFixture] class SimpleMemoryStoreProviderRelationalTests { [SetUp] public void SetUp() { ...
25.342105
107
0.666667
[ "Apache-2.0" ]
Metal10k/KeyValueStorage
KeyValueStorage.Testing/Memory/SimpleMemoryStoreProviderRelationalTests.cs
965
C#
// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. // using HoloToolkit.Unity; using HoloToolkit.Unity.Buttons; using System.Collections.Generic; using UnityEngine; namespace HoloToolkit.MRDL.PeriodicTabl...
31.962264
92
0.474616
[ "MIT" ]
cre8ivepark/MRDesignLabs_Unity_PeriodicTable
Assets/MRDL_PeriodicTable/Scripts/ElementButton.cs
1,696
C#
using System.Collections.Generic; using System.IO; using System.Linq; using AutoMapper; using DirScan.Data; using DirScan.ErrorLogging; using DirScan.Logging; namespace DirScan.Service { public abstract class DirectoryServiceBase { protected readonly IErrorLogger _errorLogger; protected readon...
32.423077
116
0.533215
[ "MIT" ]
KentGabrys/DirScan
DirScan.Service/DirectoryServiceBase.cs
1,688
C#
// // IconNames.cs // // Author: endofunk // // Copyright (c) 2019 // // 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 ...
41.521739
110
0.707504
[ "MIT" ]
endofunk/WeatherFX
Model/IconNames.cs
2,867
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.Buffers; using System.Collections; using System.Collections.Generic; using System.IO; using System.IO.Pipelines; using System...
42.834106
175
0.656649
[ "Apache-2.0" ]
MichalStrehovsky/AspNetCore
src/Servers/Kestrel/Core/test/Http1ConnectionTests.cs
46,218
C#
using System; using System.ComponentModel.DataAnnotations; namespace IdsPlusContext { public class Tenant { [Required] public Guid Id { get; set; } [Required] public string Name { get; set; } public string Notes { get; set; } } }
17.75
44
0.598592
[ "MIT" ]
Code-Inside/Samples
2017/IdsPlusContext/IdsPlusContext/Tenant.cs
284
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace LanguageServer.Json { /// <nodoc /> public sealed class StringOrObject<TObject> : Either<string, TObject> { /// <nodoc /> ...
28.272727
102
0.539389
[ "MIT" ]
AzureMentor/BuildXL
Public/Src/IDE/LanguageServerProtocol/LanguageServer/Json/StringOrObject.cs
1,244
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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://w...
46.159574
235
0.595529
[ "MIT" ]
3quanfeng/azure-powershell
src/Compute/Compute/Extension/VMAccess/RemoveAzureVMAccessExtension.cs
4,248
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Semmle.Util { /// <summary> /// Utility to temporarily rename a set of files. /// </summary> public sealed class FileRenamer : IDisposable { private readonly string[] files; private const ...
22.542857
63
0.534854
[ "MIT" ]
00mjk/codeql
csharp/extractor/Semmle.Util/FileRenamer.cs
791
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT license. See License.txt in the project root for license information. using Microsoft.CodeAnalysis.Razor.ProjectSystem; using Microsoft.CodeAnalysis.Text; namespace Microsoft.AspNetCore.Razor.LanguageServer { internal abstract class...
38.125
108
0.793443
[ "MIT" ]
dougbu/razor-tooling
src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/GeneratedDocumentPublisher.cs
612
C#
using System.Collections.Generic; using Sample.Concrete.Repository.Entities; namespace Sample.Concrete.Repository { public interface IBaseRepository<T> where T : BaseEntity { IEnumerable<T> Get(); T Get(long id); void Create(T entity); void Update(T entity); ...
19.944444
61
0.618384
[ "MIT" ]
rdyc/sample
src/Sample.Concrete.Repository/IBaseRepository.cs
359
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; namespace UMA { /// <summary> /// This ScriptableObject class is used for advanced mesh hiding with UMA and the DCS. /// </summary> /// <remarks> /// This class simply stores a link to a SlotDataAsset (the s...
32.170213
173
0.508846
[ "MIT" ]
coding2233/UMA
UMAProject/Assets/UMA/Core/StandardAssets/UMA/Scripts/MeshHideAsset.cs
12,098
C#
// Copyright(c) Microsoft Corporation. // All rights reserved. // // Licensed under the MIT license. See LICENSE file in the solution root folder for full license information using System.Net.Http; using System.Threading.Tasks; namespace ApplicationCore.Interfaces { public interface IProposalManagerClientFactory ...
25.2
108
0.791005
[ "MIT" ]
laujan/ProposalManager
ApplicationCore/Interfaces/IProposalManagerClientFactory.cs
380
C#
//=================================================================================== // Microsoft patterns & practices // Composite Application Guidance for Windows Presentation Foundation and Silverlight //=================================================================================== // Copyright (c) Microsoft C...
45.410256
93
0.608696
[ "MIT" ]
TataDvd/G
2012/Tempo2012/Tempo2012.UI.WPF/StockTrader RI/Desktop/StockTraderRI.Modules.News.Tests/Services/NewsFeedServiceFixture.cs
1,771
C#
#if !NETSTANDARD13 /* * 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 ...
32.45
120
0.691063
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/CodeStarNotifications/Generated/Model/_bcl45+netstandard/IListTargetsPaginator.cs
1,298
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.17626 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
28.671875
180
0.683924
[ "Apache-2.0" ]
holtsoftware/Sannel.Helpers
Sannel.TestHelpers/WP 8.1 Silverlight/Sannel.TestHelpers.Tests/Resources/AppResources.Designer.cs
3,672
C#
using CalculatorApp; using Xunit; namespace CalculatorTests { public class CalculatorTests { private readonly Calculator _calculator; public CalculatorTests() { _calculator = new Calculator(); } [Fact] public void ShouldAddNumbers() { ...
19.604167
56
0.521785
[ "Apache-2.0" ]
FilipAdamiak/tpw_game
CalculatorApp/CalculatorApp.Tests/CalculatorTests.cs
941
C#
using Ferret.InGame.Data.Container; using Ferret.InGame.Presentation.Controller; using UnityEngine; namespace Ferret.InGame.Domain.UseCase { public sealed class PlayerContainerUseCase { private readonly PlayerContainer _playerContainer; public PlayerContainerUseCase(PlayerContainer playerConta...
23.888889
84
0.618605
[ "MIT" ]
kitatas/FerretForever
Assets/Ferret/Scripts/InGame/Domain/UseCase/PlayerContainerUseCase.cs
860
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using DinkToPdf; using DinkToPdf.Contracts; using JRPC_HMS.Data; using JRPC_HMS.Models; using JRPC_HMS.Services.Mail; using Microsoft.AspNetCore.Authorization; using Microsof...
47.548128
227
0.453748
[ "MIT" ]
rudman11/JRPC_HMS
Pages/WarehousePages/EditRequisition.cshtml.cs
17,785
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.Collections.Generic; using System.Linq; using Dnn.PersonaBar.Library.Containers; ...
37.297561
160
0.535443
[ "MIT" ]
Tychodewaard/Dnn.Platform
Dnn.AdminExperience/Library/Dnn.PersonaBar.Library/Controllers/PersonaBarController.cs
7,648
C#
using System; namespace Coffee.Beans.Tests.Utility { [BeanObject(BeanPolicy.OptOut)] public class PlayerOptOut : Player { [BeanProperty] public new string NickName { get; set; } } }
18
48
0.643519
[ "MIT" ]
g3ntle/Coffee.Beans
test/Coffee.Beans.Tests/Utility/PlayerOptOut.cs
218
C#
using System; using System.Collections.Generic; using System.Text; namespace Metroit.Win32.Api { /// <summary> /// ウィンドウメッセージを提供します。 /// </summary> public static class WindowMessage { /// <summary> /// キーの押下を定義します。 /// </summary> public const int WM_KE...
25.945205
79
0.529039
[ "MIT" ]
takiru/Metro
net20/src/Metroit.2/Win32/Api/WindowMessage.cs
2,556
C#
// <auto-generated /> using System; using ElectionResults.Core.Repositories; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace ElectionResults.Core.Migrations {...
34.34657
95
0.419978
[ "MPL-2.0" ]
Utwo/rezultate-vot-api
src/ElectionResults.Core/Migrations/20200928172740_AddedWinnersTable.Designer.cs
28,544
C#
namespace Valhalla.Modules.Domain.Enums { public enum EAddressType { Delivery = 1, Payment = 2 } }
14.222222
40
0.578125
[ "MIT" ]
Louzada08/valhalla-hexagonal-architecture
src/Modules/Valhalla.Modules.Domain/Enums/EAddressType.cs
130
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...
35.905882
140
0.656291
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Devices/V20200101/Outputs/IotDpsPropertiesDescriptionResponse.cs
3,052
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...
26.475
106
0.59254
[ "Apache-2.0" ]
icanread/aws-sdk-net
sdk/src/Services/KinesisFirehose/Generated/AmazonKinesisFirehoseConfig.cs
2,118
C#
using System.IO; namespace ReferenceAnalyzer.Core.ProjectEdit { public class ProjectAccess : IProjectAccess { public string Read(string path) { return File.ReadAllText(path); } public void Write(string path, string content) { File.WriteAllText(pa...
19.555556
54
0.590909
[ "MIT" ]
OptiNav/ReferenceAnalyzer
src/ReferenceAnalyzer.Core/ProjectEdit/ProjectAccess.cs
352
C#
using Microsoft.AspNet.OData.Query; namespace AutoMapper.AspNet.OData { /// <summary> /// This class describes the settings to use during query composition. /// </summary> public class QuerySettings { /// <summary> /// Settings for configuring OData options on the server //...
29.8
74
0.616107
[ "MIT" ]
darjanbogdan/AutoMapper.Extensions.OData
AutoMapper.AspNetCore.OData.EFCore/QuerySettings.cs
747
C#
namespace Zoo { public class Gorilla : Mammal { public Gorilla(string name) : base(name) { } } }
14.75
52
0.567797
[ "MIT" ]
vassdeniss/software-university-courses
csharp-oop/02.InheritanceExercise/E02.Zoo/Gorilla.cs
120
C#
namespace IoTHs.Core { public static class IoTHsConstants { public const int MessageLoopDelay = 1; // Delay in ms for message loops } }
19.625
79
0.66242
[ "MIT" ]
kreuzhofer/homeautomation
src/IoTApp/IoTHs.Core/IoTHsConstants.cs
159
C#
// // Copyright (c) 2004-2011 Jaroslaw Kowalski <jaak@jkowalski.net> // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of source code must retain the above co...
45.65812
177
0.672033
[ "BSD-3-Clause" ]
BrandonLegault/NLog
src/NLog/Config/SimpleConfigurator.cs
5,342
C#
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; namespace GenericMvc.Clients { public class ReadOnlyClient<T, TKey> : IReadOnlyClient<T, TKey> where T : class where TKey...
24.438202
128
0.669655
[ "MIT" ]
clarkis117/GenericMvc
src/GenericMvc.Clients/ReadOnlyClient.cs
4,352
C#
using Finanzuebersicht.Backend.Generated.Contract.Persistence.Modules.Accounting.AccountingEntries; using Finanzuebersicht.Backend.Generated.Contract.Persistence.Modules.Accounting.Categories; using Finanzuebersicht.Backend.Generated.Contract.Persistence.Modules.Accounting.CategorySearchTerms; using System; using Syste...
34.4
101
0.75814
[ "MIT" ]
shuralw/Finanzuebersicht2.0
Finanzuebersicht.CodeGeneration/2-Post-Contractor/Backend/Contract/Persistence/Modules/Accounting/Categories/DTOs/IDbCategoryDetail.cs
860
C#
// <copyright file="ActivityExtensionsTest.cs" company="OpenTelemetry Authors"> // Copyright The OpenTelemetry 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://ww...
40.708661
133
0.597389
[ "Apache-2.0" ]
yallie/opentelemetry-dotnet
test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/ActivityExtensionsTest.cs
10,342
C#
using System; using System.Collections.Generic; using System.Reflection.Emit; using System.Text; namespace EasyRpc.AspNetCore.CodeGeneration { /// <summary> /// Used by 3rd party serializer to attribute type for serialization /// </summary> public interface ISerializationTypeAttributor { v...
32.708333
116
0.763057
[ "MIT" ]
ipjohnson/EasyRpc
src/EasyRpc.AspNetCore/CodeGeneration/ISerializationTypeAttributor.cs
787
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.317647
130
0.647235
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Rekognition/Generated/Model/Internal/MarshallTransformations/ThrottlingExceptionUnmarshaller.cs
3,002
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("Lau...
38.054054
84
0.747869
[ "MIT" ]
Lynxx21/Launcher-Samp-Loading-Bar
Properties/AssemblyInfo.cs
1,411
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class general : Singleton<general> { protected general() { } // Protect the constructor! public string globalVar; public int lifeHero = 100; public int staminaHero = 100; public int globalHeroFace = 0; publ...
16.781818
77
0.587216
[ "MIT" ]
ConradoAndrade/Dont-Trust-in-Drones
Assets/codes/general.cs
923
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Bytewizer.TinyCLR.Http { #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member /// <summary> /// Well-know header names. /...
64.1
112
0.701872
[ "MIT" ]
bytewizer/microserver
src/Bytewizer.TinyCLR.Http/Http/HeaderNames.cs
6,412
C#
using Microsoft.eShopOnContainers.Services.Ordering.Domain.Seedwork; using Ordering.Domain.Events; using Ordering.Domain.Exceptions; using System; using System.Collections.Generic; using System.Linq; namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.OrderAggregate { public class Order...
34.843318
148
0.591588
[ "MIT" ]
anjoy8/eShopOnContainersAs
src/Services/Ordering/Ordering.Domain/AggregatesModel/OrderAggregate/Order.cs
8,471
C#
using Newtonsoft.Json; namespace HipChat.Net.Models.Response { [JsonObject] public class Notification : IMessage { [JsonProperty("color")] public string Color { get; set; } [JsonProperty("date")] public string Date { get; set; } [JsonProperty("from")] public string From { get; set; } ...
20.411765
43
0.615274
[ "MIT" ]
cmsd2/manfred
src/HipChat.Net/Models/Response/Notification.cs
696
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Mindscape.Raygun4Net; namespace Mindscape.Raygun4Net4.Tests { public class FakeRaygunClient : RaygunClient { public IEnumerable<Exception> ExposeStripWrapperExceptions(Exception exception) { return base.Strip...
21.294118
83
0.773481
[ "MIT" ]
Havunen/raygun4net
Mindscape.Raygun4Net4.Tests/Model/FakeRaygunClient.cs
364
C#
// // Author: // Jb Evain (jbevain@gmail.com) // // Copyright (c) 2008 - 2015 Jb Evain // Copyright (c) 2008 - 2011 Novell, Inc. // // Licensed under the MIT/X11 license. // using System.Threading; using Mono.Collections.Generic; namespace Mono.Cecil { public sealed class MethodReturnType : IConstantProvider, IC...
23.272727
111
0.689236
[ "MIT" ]
TestCentric/TestCentric.Metadata
src/testcentric.engine.metadata/Mono.Cecil/MethodReturnType.cs
2,304
C#
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using LLVMSharp.Interop; namespace LLVMSharp { public partial class Instruction { public enum BinaryOps { Add = ...
32
169
0.585938
[ "MIT" ]
Microsoft/LLVMSharp
sources/LLVMSharp/Values/Users/Instructions/Instruction.BinaryOps.cs
1,024
C#
namespace GlobalConstants { public class CommonConstants { public const int DEFAULT_PAGE_SIZE = 10; public const int DEFAULT_PAGE = 1; } }
16.9
48
0.650888
[ "Apache-2.0" ]
siderisltd/EshopPrototypeRepository
Eshop/GlobalConstants/CommonConstants.cs
171
C#
namespace Whiskey_Tycoon.lib.Marketing.Base { public abstract class BaseMarketing { public abstract string Name { get; } public abstract uint Impact { get; } public abstract uint QuartersLength { get; } public abstract ulong QuarterCost { get; } } }
22.846154
52
0.649832
[ "MIT" ]
jcapellman/Whiskey-Tycoon
src/Whiskey-Tycoon.lib/Marketing/Base/BaseMarketing.cs
299
C#
using System; using System.Collections.Generic; using System.Reflection; using System.Text; using UnityEngine; namespace LMirman.VespaIO { public static class DevConsole { /// <summary> /// Whether the console is currently enabled and open. /// </summary> public static bool ConsoleActive { get; internal set...
31.440129
281
0.671745
[ "MIT" ]
Orange-Panda/VespaIO
Runtime/DevConsole.cs
9,717
C#
/* This code is derived from jgit (http://eclipse.org/jgit). Copyright owners are documented in jgit's IP log. This program and the accompanying materials are made available under the terms of the Eclipse Distribution License v1.0 which accompanies this distribution, is reproduced below, and is available at http://www...
31.504132
108
0.737671
[ "BSD-3-Clause" ]
ashmind/ngit
NGit/NGit.Revwalk/RevFlag.cs
3,812
C#
namespace SkySwordKill.Next.Mod { public enum ModState { Unload, Disable, Loading, LoadSuccess, LoadFail } }
14.636364
32
0.52795
[ "MIT" ]
magicskysword/Next
Next/Scr/Mod/ModState.cs
163
C#
using System; using System.Drawing; using System.Windows.Forms; namespace GridGraphics { public partial class MainForm : Form { private readonly Grid grid = new Grid(); public MainForm() { InitializeComponent(); grid.AnchorX.AsCoef = true; grid.Anc...
29.827273
104
0.54648
[ "Unlicense" ]
Ring-r/GridGraphics
GridGraphics/MainForm.cs
3,283
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Windows; using System.Windows.Data; namespace KoS.Apps.SharePoint.SmartCAML.Editor.BindingConverters { public class BooleanConverter<T> : IValueConverter { public BooleanConverter() {} public BooleanConve...
27.74
111
0.63951
[ "Apache-2.0" ]
konradsikorski/smartCAML
KoS.Apps.SharePoint.SmartCAML/KoS.Apps.SharePoint.SmartCAML.Editor/BindingConverters/BooleanConverter.cs
1,389
C#
using Entitas; using Entitas.CodeGeneration.Attributes; namespace _1010C.Scripts.Components.Piece { [Game, FlagPrefix("flag"), Event(EventTarget.Self), Event(EventTarget.Self, EventType.Removed)] public class DragComponent : IComponent { } }
25.9
99
0.745174
[ "MIT" ]
ahmetayrnc/1010C
Assets/1010C/Scripts/Components/Piece/DragComponent.cs
261
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin.Security; using Microsoft.Owin.Security.Cookies; us...
34.989796
115
0.641586
[ "MIT" ]
nmug/Workshop-Angular2AndDotNetCore-12-2016
Prep/TestApp/Providers/ApplicationOAuthProvider.cs
3,431
C#
using BonusBot.Common.Extensions; using BonusBot.Common.Interfaces.Commands; using BonusBot.Common.Interfaces.Guilds; using BonusBot.LoggingModule.Language; using Discord; using Discord.Commands; using Discord.WebSocket; using System.Threading.Tasks; namespace BonusBot.LoggingModule.EventHandlers { internal class...
35.74
144
0.668719
[ "MIT" ]
emre1702/BonusBo
Modules/LoggingModule/EventHandlers/WebCommandExecuted.cs
1,789
C#
using System; using System.Diagnostics; using J = Newtonsoft.Json.JsonPropertyAttribute; namespace Fortnite_API.Objects.V1 { [DebuggerDisplay("{" + nameof(Score) + "}")] public class BrStatsV2V1LtmStats : IEquatable<BrStatsV2V1LtmStats> { [J] public long Score { get; private set; } [J] public double ScorePerM...
26.047619
148
0.665905
[ "MIT" ]
Fortnite-API/csharp-wrapper
src/Fortnite-API/Objects/V1/BrStatsV2V1LtmStats.cs
2,190
C#
using System; using System.ComponentModel; using System.IO; using System.Linq; using PS.Build.Extensions; using PS.Build.Services; using PS.Build.Types; namespace PS.Build.Essentials.Attributes { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] [Designer("PS.Build.Adaptation")] public clas...
31.492958
113
0.571556
[ "MIT" ]
BlackGad/PS.Build
PS.Build.Essentials/Attributes/Files/FilesEmbedAttribute.cs
2,236
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Network.Models { public partial class P2SVpnConnectionHealthRequest : IUtf8JsonSerializable { ...
28.918919
78
0.594393
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SVpnConnectionHealthRequest.Serialization.cs
1,070
C#
#pragma checksum "..\..\MainPage.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "45DCDC8D4427BA181FE43860FC4F0640F4FAF314" //------------------------------------------------------------------------------ // <auto-generated> // Этот код создан программой. // Исполняемая версия:4.0.30319.42000 // // Изменени...
37.440147
141
0.595819
[ "MIT" ]
FloydReme/KeepWastes
KeepWastes/obj/Release/MainPage.g.cs
20,466
C#
using Dapper; using Frapper.ViewModel.Customers; using System.Data; namespace Frapper.Repository.Customers.Command { public class CustomersCommand : ICustomersCommand { private readonly IDbConnection _dbConnection; private readonly IDbTransaction _dbTransaction; public CustomersCommand...
40.147059
111
0.665201
[ "MIT" ]
Ramasagar/Frapper
Frapper.Web/Frapper.Repository/Customers/Command/CustomersCommand.cs
1,367
C#
using Terraria; using Terraria.Localization; using Terraria.DataStructures; using Terraria.ModLoader; namespace PrismaticRivals.Debug { class CommandSpawnNPC : ModCommand { public override string Command => "spawnprismnpc"; public override CommandType Type => CommandType.World; ...
29.290323
118
0.535242
[ "MIT" ]
Solid-Wires/terrariamod-prismaticrivals
Debug/CommandSpawnNPC.cs
910
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> ...
40.148148
152
0.564576
[ "MIT" ]
centennialcoder/MtFrac
MtFract/Properties/Settings.Designer.cs
1,086
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. ...
52.885593
335
0.608525
[ "MIT" ]
DiogenesPolanco/azure-sdk-for-net
src/ResourceManagement/Resource/Microsoft.Azure.Management.ResourceManager/Generated/FeaturesOperationsExtensions.cs
12,481
C#
using System; using System.Collections.Generic; using System.Text.RegularExpressions; using UnityEngine; namespace Bodies.Stars { public enum ESpectralType { UNKNOWN = 0, O3, O5, O8, B0, B3, B5, B8, A0, A5, F0, F5, G0, G2, G5, K0, K5, M0, M5, M8, M9, L0, L2, L5, T0, T5, T8 }; public enum ELum...
39.503198
150
0.418254
[ "MIT" ]
Ultraporing/Song_of_the_Stars
Assets/_Scripts/Bodies/Stars/StarFactory.cs
18,527
C#
// ------------------------------------------ // <copyright file="ECParallelOptimTest.cs" company="Pedro Sequeira"> // // Copyright (c) 2018 Pedro Sequeira // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to...
35.583333
119
0.668512
[ "MIT" ]
pedrodbs/SocioEmotionalIMRL
PS.Learning/EvolutionaryComputation/Testing/MultipleTests/ECParallelOptimTest.cs
4,697
C#
namespace Ship { namespace FirstEdition.YT2400 { public class EadenVrill : YT2400 { public EadenVrill() : base() { PilotInfo = new PilotCardInfo( "Eaden Vrill", 3, 32, isLimit...
26.46
102
0.534392
[ "MIT" ]
97saundersj/FlyCasual
Assets/Scripts/Model/Content/FirstEdition/Pilots/YT2400/EadenVrill.cs
1,325
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.Http; namespace MessageService { public class ValuesController : ApiController { public IEnumerable<string> Get() { return new string[] { "value1", "va...
19.723404
55
0.516721
[ "Apache-2.0" ]
foxundermoon/MessageService
MessageServer/Core/HttpApi/DefaultApiController.cs
929
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Seguetech.Zippy.Database.Entities { public class Cabinet { [Key, DatabaseGenera...
29.208333
72
0.691869
[ "CC0-1.0" ]
seguemodev/Meducated-Ninja
Web/Zippy.Database/Entities/Cabinet.cs
703
C#
namespace BinarySerialization; /// <summary> /// The serialization binding mode. /// </summary> public enum BindingMode { /// <summary> /// Update the source during serialization and the target during deserialization. /// </summary> TwoWay, /// <summary> /// Only update the target...
21.347826
89
0.617108
[ "MIT" ]
shaggygi/BinarySerializer
BinarySerializer/BindingMode.cs
493
C#
using System; namespace StaticEvil { public sealed class Evil<T> : IDisposable where T : class { public T Value { get; private set; } void IDisposable.Dispose() { Value = null; } private Evil() { StaticDispatcher...
20.44
66
0.495108
[ "MIT" ]
Danand/StaticEvil
Assets/Scripts/Evil.cs
513
C#
using EasyExecute.Common; using System; using System.Threading.Tasks; namespace EasyExecute.Tests { public class TestHappyPathRequest<TCommand, TResult> where TResult : class { public string Id { set; get; } public TCommand Command { set; get; } public Func<bool> HasFailed { set; get; }...
33.923077
88
0.689342
[ "MIT" ]
EasyExecute/DevEasyExecute
Src/EasyExecute.Tests/TestHappyPathRequest.cs
882
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 System; namespace ShaderTools.CodeAnalysis.Editor.Host { internal interface IWaitIndicator { /// <summary> /// Schedu...
41.12
162
0.689689
[ "Apache-2.0" ]
BigHeadGift/HLSL
src/ShaderTools.CodeAnalysis.EditorFeatures/Host/IWaitIndicator.cs
1,006
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Net.Http; using Newtonsoft.Json; using AboriginalHeroes.Data.DataModels.Awm; using AboriginalHeroes.Data.DataModels.Daa; using AboriginalHeroes.Entities; using System.IO; u...
54.536313
270
0.640135
[ "MIT" ]
govhacktothefuture/AboriginalHeroes
AboriginalHeroes.Data/DataService.cs
9,764
C#
using System.Windows; namespace KeyConvert.FrontendWpf { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { } }
16.166667
42
0.618557
[ "MIT" ]
epaz/KeyConvert
KeyConvert.Frontends/KeyConvert.Frontends.Wpf/App.xaml.cs
196
C#
using Spfx.Diagnostics; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; namespace Spfx.Utilities.Threading { internal static partial class TaskEx { [Me...
35.587613
159
0.553674
[ "MIT" ]
fbrosseau/SimpleProcessFramework
SimpleProcessFramework/Utilities/Threading/TaskEx.cs
23,561
C#
namespace OpenGLBindings { /// <summary> /// Used in GL.GetShaderPrecisionFormat /// </summary> public enum ShaderPrecision { /// <summary> /// Original was GL_LOW_FLOAT = 0x8DF0 /// </summary> LowFloat = 36336, /// <summary> /// Original was GL_MEDIUM...
24.969697
49
0.496359
[ "MIT" ]
DeKaDeNcE/WoWDatabaseEditor
Rendering/OpenGLBindings/ShaderPrecision.cs
824
C#
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
31.100917
97
0.558407
[ "MIT" ]
Amrinder-Singh29/azure-powershell
src/Purview/generated/runtime/Nodes/JsonNumber.cs
3,284
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...
37.352273
175
0.679039
[ "Apache-2.0" ]
PureKrome/aws-sdk-net
sdk/src/Services/ElasticFileSystem/Generated/Model/Internal/MarshallTransformations/DescribeLifecycleConfigurationRequestMarshaller.cs
3,287
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Caching; namespace OMB.SharePoint.Infrastructure { public class MemCache { private static ObjectCache cache = MemoryCache.Default; private static int cacheMinutes = 15; public st...
26.645161
128
0.656174
[ "CC0-1.0" ]
EOP-OMB/OGE-450
API/OMB.SharePoint.Infrastructure/MemCache.cs
828
C#
// Url:https://leetcode.com/problems/subdomain-visit-count /* 811. Subdomain Visit Count Easy A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com", and at the lowest level, "discuss.leetcode.com". When we visit a domain...
39.517241
328
0.708988
[ "MIT" ]
tarunbatta/ipg
core/leetcode/811.cs
2,292
C#
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Threading; using CommandLine; using CommandLine.Text; using Extreme.Net; using RuriLib; using RuriLib.Models; using RuriLib.Runner; using RuriLib.ViewModels; using Console = Colorful.Console; namespa...
39.620438
162
0.556927
[ "MIT" ]
foxcornlab/Reboot
OpenBulletCLI/Program.cs
10,858
C#