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 (c) 2019-2020 Integrative Software LLC Created: 6/2019 Author: Pablo Carbonell */ using System.Threading.Tasks; using Microsoft.AspNetCore.Http; namespace Integrative.Lara { internal sealed class PublishedItemHandler : BaseHandler { private readonly LaraOptions _options; private ...
26.727273
108
0.657596
[ "Apache-2.0" ]
rChavz/lara
src/LaraUI/Middleware/PublishedItemHandler.cs
884
C#
namespace MetroEXControls { partial class SettingsDlg { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /...
51.602871
135
0.621929
[ "MIT" ]
RolanS/MetroEX
libs/MetroEXControls/src/windows/SettingsDlg.Designer.cs
21,572
C#
using System; namespace FuncSharp { /// <summary> /// Base class and factory of canonical coproduct types. /// </summary> public abstract class CoproductBase : ICoproduct { public CoproductBase(int arity, int discriminator, object value) { CoproductArity = arity; ...
38.690145
245
0.540837
[ "MIT" ]
KaliCZ/FuncSharp
src/FuncSharp/Coproduct/Coproduct.cs
266,964
C#
using System.Collections.Generic; using System.Threading.Tasks; using AspnetRunBasics.Models; namespace AspnetRunBasics.Services { public interface ICatalogService { Task<IEnumerable<CatalogModel>> GetCatalog(); Task<IEnumerable<CatalogModel>> GetCatalogByCategory(string category); Task...
30.5
78
0.749415
[ "MIT" ]
JimmyDi/AspnetMicroservices
src/WebApps/AspnetRunBasics/Services/ICatalogService.cs
427
C#
namespace Microsoft.Azure.Cosmos.EmulatorTests.Tracing { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Xml; using Mi...
44.150522
226
0.479072
[ "MIT" ]
Azure/azure-cosmos-dotnet-v3
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/Tracing/EndToEndTraceWriterBaselineTests.cs
59,252
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace HelloAspNetCore { ...
30.214286
122
0.588652
[ "MIT" ]
210726-wvu-net-ext/training-code
05MVC/HelloAspNetCore/Startup.cs
2,117
C#
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Prime.Auth; using Prime.Models.Api; using Prime.Services; using Prime.HttpClients; namespace Prime.Controllers { [Produces("application/json")] [Route("a...
39.308642
122
0.684045
[ "Apache-2.0" ]
countable-web/moh-prime
prime-dotnet-webapi/Controllers/DocumentAccessController.cs
3,184
C#
using Newtonsoft.Json; namespace ArgentPonyWarcraftClient { /// <summary> /// A recipe. /// </summary> public class Recipe { /// <summary> /// Gets or sets the recipe ID. /// </summary> [JsonProperty("id")] public int Id { get; set; } /// <summary> ...
22.542857
46
0.490494
[ "MIT" ]
Alyzandestudent/ArgentPonyWarcraftClient
src/ArgentPonyWarcraftClient/Models/Recipe.cs
791
C#
using Aow.Infrastructure.IRepositories; using System; using System.Threading.Tasks; namespace Aow.Services.ProductAttribute { [Service] public class AddProductAttribute { private IRepositoryWrapper _repoWrapper; public AddProductAttribute(IRepositoryWrapper repoWrapper) { ...
31.625
93
0.463329
[ "Apache-2.0" ]
dpk2789/aow-new-api
Aow.Services/ProductAttribute/AddProductAttribute.cs
2,279
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.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using EditorBrowsa...
44.4925
162
0.577457
[ "MIT" ]
2E0PGS/corefx
src/Common/src/CoreLib/System/Span.Fast.cs
17,797
C#
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ChilliSource.Cloud.Core.LinqMapper { /// <summary> /// Auto applies an after map action on a query result. The action needs to be registered using M...
53.53125
199
0.637332
[ "MIT" ]
BlueChilli/ChilliSource.Cloud.Core
src/ChilliSource.Cloud.Core/Infrastructure/LinqMapper/MaterializerExtensions.cs
6,854
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Domain { /// <summary> /// MiniAppSecondCategoryInfo Data Structure. /// </summary> [Serializable] public class MiniAppSecondCategoryInfo : AopObject { /// <summary> /// 小程序类目Id /// </summary> [XmlEl...
22
54
0.567273
[ "Apache-2.0" ]
Varorbc/alipay-sdk-net-all
AlipaySDKNet/Domain/MiniAppSecondCategoryInfo.cs
574
C#
using FluentAssertions; using Xunit; namespace ValueObjects.Tests { public class MoneyTests { [Theory] [InlineData(1.0, 2.0, 3.0)] [InlineData(1.15, 2.20, 3.35)] [InlineData(1.99, 2.99, 4.98)] [InlineData(0, 0, 0)] public void Should_Add(decimal v1, decimal v2, ...
27.21875
82
0.519326
[ "MIT" ]
DawidMierzejewski/Useful-Value-Objects
Tests/ValueObjects.Tests/Money/MoneyTests.cs
2,615
C#
using System; namespace TaskCar { class Program { static void Main(string[] args) { Car carAuto1 = new Car(); carAuto1.AskData(); carAuto1.ShowCarInfo(); Console.WriteLine("Car speed after 30+:"); carAuto1.Accelerate(30); ...
27.787879
63
0.507088
[ "MIT" ]
amanndajosefiina/object-oriented-programming
object-method/TaskCar/TaskCar/Program.cs
919
C#
// ******------------------------------------------------------****** // ProductManagerEditor.cs // // Author: // K.Sinan Acar <ksa@puzzledwizard.com> // // Copyright (c) 2019 PuzzledWizard // // ******------------------------------------------------------****** using UnityEngine; using UnityEditor; using System...
43.847938
265
0.5775
[ "Unlicense" ]
HouseIsKing/Summer2021CoffeeShop
Summer2021B/Assets/CoffeeShopStarterPack/Scripts/Editor/ProductManagerEditor.cs
17,015
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> //--...
39.407407
151
0.580827
[ "Apache-2.0" ]
developersthinksmartbox/openzwave-dotnet-uwp
Samples/DotNet/OZWDotNet/Properties/Settings.Designer.cs
1,066
C#
// Copyright (c) 2017 Jon P Smith, GitHub: JonPSmith, web: http://www.thereformedprogrammer.net/ // Licensed under MIT licence. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using DataLayer.BookApp; using DataLayer.EfCode.BookApp; using TestSupport.E...
29.916667
102
0.557799
[ "MIT" ]
JeanCollas/EfCore.TestSupport
Test/UnitTests/TestDataLayer/ExampleTest.cs
1,438
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.6125
101
0.594645
[ "Apache-2.0" ]
HaiNguyenMediaStep/aws-sdk-net
sdk/src/Services/ServerMigrationService/Generated/AmazonServerMigrationServiceConfig.cs
2,129
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MercadoPago.DataStructures.Payment { public struct Item { #region Properties private string _id; private string _title; private string _description; private str...
26.575342
45
0.461856
[ "MIT" ]
EngrKhizarIqbal/dx-dotnet
px-dotnet/DataStructures/Payment/Item.cs
1,942
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. namespace Microsoft.Data.Entity.Design.Model.Validation { using System; using System.Diagnostics; using System.Reflection; using System.Xml; using System...
41.381818
145
0.579745
[ "MIT" ]
dotnet/ef6tools
src/EFTools/XmlCore/Model/Validation/XNodeReaderLineNumberService.cs
4,554
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemySpawner : MonoBehaviour { public Vector2 spawnRange = new Vector2(10f, 20f); public int spawnCap = 30; [HideInInspector] public int enemyCount; private GameObject[] enemies; private PlayerControll...
25
155
0.591667
[ "MIT" ]
Owmacohe/Vehementia
Assets/Scripts/Enemies/EnemySpawner.cs
1,200
C#
using Athena.Exceptions; using System.Net; namespace Athena.Extensions { public static class RepositoryExtensions { public static T NotFoundIfNull<T>(this T obj) { if (obj == null) { throw new ApiException(HttpStatusCode.NotFound, "The specified Object w...
20.684211
102
0.564885
[ "MIT" ]
athena-scheduler/athena
src/Athena/Extensions/RepositoryExtensions.cs
395
C#
using System; using System.Globalization; using System.Text.RegularExpressions; using System.Threading.Tasks; using DSharpPlus.Entities; namespace DSharpPlus.CommandsNext.Converters { public class DateTimeConverter : IArgumentConverter<DateTime> { Task<Optional<DateTime>> IArgumentConverter<DateTime>....
36.474747
181
0.557463
[ "MIT" ]
13xforever/DSharpPlus
DSharpPlus.CommandsNext/Converters/TimeConverters.cs
3,613
C#
using Anemonis.RandomOrg; namespace CardGame_Heroes.Network { public class RandomOrg { public RandomOrgClient randomOrgClient; public readonly bool isConnectingToGoogle; public RandomOrg() { if (!new InternetChecker().PingGoogleDotCom()) throw new E...
26.833333
102
0.656315
[ "MIT" ]
DAcKeyy/CardGame-Heroes-Karnel
CardGame_Heroes.Network/RandomOrg.cs
510
C#
using System; namespace SisVac.Framework.Domain { public class ClinicLocation : BaseEntity { public string Name { get; set; } public string Latitude { get; set; } public string Longitude { get; set; } } }
22
45
0.623967
[ "MIT" ]
opticrd/sisvac-mobile-vacunacion
src/Vacunacion/SisVac/Framework/Domain/Entity/ClinicLocation.cs
244
C#
//------------------------------------------------------------------------------ // <auto-generated> // 此代码由工具生成。 // 运行时版本:4.0.30319.42000 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // </auto-generated> //------------------------------------------------------------------------------ namespace M...
36.634146
175
0.570905
[ "MIT" ]
IoTSharp/IoTSharp-MqqtBroker
MQTT.Chat/Properties/Resources.Designer.cs
3,394
C#
using Core.Entities; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace Entities.Concrete { public class Brand:IEntity { [Key] public int Id { get; set; } public string Name { get; set; } } }
18.8125
44
0.671096
[ "MIT" ]
barisertugrul/CarRentalFullProject
CarRental_Backend/Entities/Concrete/Brand.cs
303
C#
using System.Collections.Generic; namespace NetModular.Lib.Module.Abstractions { /// <summary> /// 模块集合 /// </summary> public interface IModuleCollection : IList<IModuleDescriptor> { /// <summary> /// 加载 /// </summary> void Load(); } }
19.533333
65
0.56314
[ "MIT" ]
380138129/NetModular
src/Framework/Module/Module.Abstractions/IModuleCollection.cs
307
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; namespace ParrelSyncEditor { [InitializeOnLoad] public class EditorQuit { /// <summary> /// Is editor being closed /// </summary> static public bool IsQuiting { get; private set...
21.44
58
0.563433
[ "MIT" ]
kamyker/ParrelSync
ParrelSync/Editor/AssetModBlock/EditorQuit.cs
538
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.Storage.Models { public partial class StorageAccountUpdateParameters : IUtf8JsonSerializable { ...
37.471074
82
0.561094
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountUpdateParameters.Serialization.cs
4,534
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace strategy { class Program { public class People { private string name; private string lastname; public virtual string Name { get { return name; } set { this.name = val...
18.666667
112
0.604464
[ "MIT" ]
pabloaguiars/8vo
patrones-diseno/practicas/strategy/strategy/Program.cs
3,362
C#
using JsonApiDotNetCore.Configuration; using JsonApiDotNetCore.Controllers; using JsonApiDotNetCore.Services; using Microsoft.Extensions.Logging; namespace JsonApiDotNetCoreExampleTests.IntegrationTests.Archiving { public sealed class TelevisionStationsController : JsonApiController<TelevisionStation> { ...
34.625
151
0.796029
[ "MIT" ]
Degreed-jdw/JsonApiDotNetCore
test/JsonApiDotNetCoreExampleTests/IntegrationTests/Archiving/TelevisionStationsController.cs
554
C#
using Microsoft.AspNetCore.Authorization; namespace ProcurementTracker.Shared.Auth.Requirements.Bid { public class ReadBidRequirement : BaseRequirement, IAuthorizationRequirement { public ReadBidRequirement(bool isAuthorized) { IsAuthorized = isAuthorized; } } }
24.076923
80
0.709265
[ "MIT" ]
joeseggie/procurements-tracker
ProcurementTracker/Shared/Auth/Requirements/Bid/ReadBidRequirement.cs
315
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("Ic...
38.081081
84
0.747339
[ "MIT" ]
0x4a616e/sharpshell
SharpShell/Samples/PreviewHandler/IconPreviewHandler/Properties/AssemblyInfo.cs
1,412
C#
using System.Collections.Generic; namespace GitOut.Features.Git { public class AddOptions { private AddOptions(bool intentToAdd) => IntentToAdd = intentToAdd; public bool IntentToAdd { get; } public IEnumerable<string> BuildArguments() { if (IntentToAdd) ...
24.6
78
0.557491
[ "MIT" ]
calahatras/gitout
GitOut/Features/Git/AddOptions.cs
861
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static COOLgrammarParser; using static CmpProject.TypeCool; namespace CmpProject { public class FeatureBuilderVisitor : IVisitor<ProgramContext>, IVisitor<ClassContext>, IVisitor<FeatureContext>...
44.459854
194
0.590051
[ "MIT" ]
matcom-compilers-2019/cool-compiler-durakotocool
src/Cool/FeatureBuilderVisitor.cs
6,093
C#
using System.Data.Entity; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; namespace adminlte.Models { // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://...
36.363636
175
0.705
[ "MIT" ]
lgyaguapaz/ProyectoBancaVirtual
adminlte/Models/IdentityModels.cs
1,202
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EnamelDesktop_Injector { public enum LVM { FIRST = 0x1000, SETUNICODEFORMAT = 0x2005, // CCM_SETUNICODEFORMAT, GETUNICODEFORMAT = 0x2006, ...
38.08284
87
0.521131
[ "MIT" ]
7UKECREAT0R/EnamelDesktop
MSGEnums.cs
6,438
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-...
40.701754
133
0.589655
[ "MIT" ]
Arpple/projectend
Assets/Scripts/Generated/Tile/Components/TileMapPositionComponent.cs
2,320
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...
32.285714
131
0.597345
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Network/V20180601/Inputs/ApplicationGatewayFrontendIPConfigurationArgs.cs
2,486
C#
using System.ComponentModel.DataAnnotations; namespace Schruted.Configuration.Dto { public class ChangeUiThemeInput { [Required] [StringLength(32)] public string Theme { get; set; } } }
18.666667
45
0.65625
[ "MIT" ]
KaanYilmazz/Schruted
aspnet-core/src/Schruted.Application/Configuration/Dto/ChangeUiThemeInput.cs
226
C#
using Esri.ArcGISRuntime.Geometry; using Esri.ArcGISRuntime.Layers; using Esri.ArcGISRuntime.Symbology; using Esri.ArcGISRuntime.Tasks.Query; using System; using System.Globalization; using System.Linq; using System.Threading.Tasks; using Windows.UI.Xaml.Controls; namespace ArcGISRuntimeSDKDotNet_StoreSamples.Samples...
35.648649
160
0.580743
[ "Apache-2.0" ]
boonyachengdu/arcgis-runtime-samples-dotnet
src/Store/ArcGISRuntimeSDKDotNet_StoreSamples/Samples/QueryTasks/AttributeQuery.xaml.cs
3,959
C#
//----------------------------------------------------------------------- // <copyright file="LazyRecordingFolderItemViewModel.cs" company="James Chaldecott"> // Copyright (c) 2012-2013 James Chaldecott. All rights reserved. // </copyright> //----------------------------------------------------------------------- ...
32.223077
119
0.547625
[ "MIT" ]
swythan/showlist-tivo
Src/TivoAhoy.Common/ViewModels/LazyRecordingFolderItemViewModel.cs
4,191
C#
using DevnotMentor.Api.Entities; using DevnotMentor.Api.Repositories.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DevnotMentor.Api.Repositories { public class BaseRepository<TEntity> : IRepository<TEntity> where TEntity : class, new...
24.541667
67
0.603565
[ "MIT" ]
enisn/devnot-mentor-back-end
Devnot.Mentor.Api/Repositories/BaseRepository.cs
1,180
C#
using EventStore.Common.Utils; using EventStore.Core.Messages; using EventStore.Core.Messaging; using EventStore.Core.Services.Monitoring.Stats; namespace EventStore.Core.Services.Monitoring { public class StatsCollectorEnvelope : IEnvelope { private readonly StatsContainer _statsContainer; public StatsCollector...
29.636364
71
0.785276
[ "Apache-2.0", "CC0-1.0" ]
01100010011001010110010101110000/EventStore
src/EventStore.Core/Services/Monitoring/StatsCollectorEnvelope.cs
652
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespac...
43.149254
195
0.653407
[ "MIT" ]
DiogenesPolanco/azure-sdk-for-net
src/Batch/Client/Src/Azure.Batch/GeneratedProtocol/Models/ApplicationListNextOptions.cs
2,891
C#
using System; namespace BTCPayServer.Events { public class BitPayInvoiceIPNEvent { public BitPayInvoiceIPNEvent(string invoiceId, int? eventCode, string name) { InvoiceId = invoiceId; EventCode = eventCode; Name = name; Timestamp= DateTimeOffset.U...
26.638889
83
0.532847
[ "MIT" ]
queilawithaQ/btcpayserver
BTCPayServer/Events/BitPayInvoiceIPNEvent.cs
959
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.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Inte...
60.406202
270
0.720574
[ "MIT" ]
Ali-YousefiTelori/runtime
src/libraries/System.Private.CoreLib/src/System/Type.cs
38,962
C#
/*MIT License Copyright (c) 2020 - 2021 Sergiy Tolkachov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
38.352941
78
0.791411
[ "MIT" ]
Symontoclay/SymOntoClay
SymOntoClayUnityAssetCore/Internal/EndPoints/MainThread/IInvocableInMainThread.cs
1,304
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18034 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
38.541667
175
0.602523
[ "MIT" ]
Mohammed95m/ADP_HomeWork
DXApplication1/WcfClient/Properties/Resources.Designer.cs
2,777
C#
using System; using Cysharp.Threading.Tasks; using UniRx; namespace Domain { public class FadeModel { public IReadOnlyReactiveProperty<bool> IsOut => isOut; private ReactiveProperty<bool> isOut = new ReactiveProperty<bool>(false); public IObservable<float> OnFadeOut => onFadeOut; ...
28.114286
81
0.607724
[ "Unlicense" ]
kameffee/unity1week-202102-code
Scripts/Domain/FadeModel.cs
986
C#
using UnityEngine; using System.Collections; public class FaceToCamera : MonoBehaviour { public int rotY; // Use this for initialization void Start () { } // Update is called once per frame void Update () { this.transform.rotation = Quaternion.Euler(0, rotY, 0); } }
14.35
57
0.689895
[ "MIT" ]
106820017/VRController
Assets/PQAssets/Query-Chan-SD/Scripts/GUIController/FaceToCamera.cs
289
C#
using NJection.LambdaConverter.Visitors; using NJection.Scope; using NRefactory = ICSharpCode.NRefactory.CSharp; namespace NJection.LambdaConverter.Expressions { public abstract partial class AstExpression { public static While While(NRefactory.WhileStatement whileStatement, IScope scope, INRe...
33.769231
130
0.738041
[ "MIT" ]
sagifogel/NJection.LambdaConverter
NJection.LambdaConverter/Ast/Expressions/While/AstExpression.cs
441
C#
using System.ComponentModel; using Terraria.ID; using Terraria.ModLoader.Config; namespace YABSSM { public class YABSSMConfig : ModConfig { public enum PossibleNPCs : short { Clothier = NPCID.Clothier, Dryad = NPCID.Dryad, Merchant = NPCID.Merchant, Demolitionist = NPCID.Demolitionist, DyeTrader =...
25
63
0.7375
[ "MIT" ]
Ilysen/YABSSM
YABSSMConfig.cs
800
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> //--...
38.541667
175
0.602523
[ "MIT" ]
ColdMatter/EDMSuite
WaveMeter/Properties/Resources.Designer.cs
2,777
C#
using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace Biztory.EnterpriseToolkit.TableauServerUnifiedApi.Rest.Model { /// <summary> /// /// </summary> [DataContract] public class UpdateProjectRequest...
27.044444
72
0.662284
[ "Apache-2.0" ]
biztory/tableau-performance-accelerator
tableau-server-api-unified/Rest/Model/UpdateProjectRequest.cs
1,219
C#
/* // <copyright> // dotNetRDF is free and open source software licensed under the MIT License // ------------------------------------------------------------------------- // // Copyright (c) 2009-2017 dotNetRDF Project (http://dotnetrdf.org/) // // Permission is hereby granted, free of charge, to any person obtainin...
40.654135
207
0.621417
[ "MIT" ]
DFihnn/dotnetrdf
Libraries/dotNetRDF/Ontology/Individual.cs
5,407
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable enable namespace System.Runtime.InteropServices.ComTypes { [Guid("00000010-0000-0000-C000-000000000046...
41.4
115
0.736232
[ "MIT" ]
AfsanehR-zz/corefx
src/Common/src/CoreLib/System/Runtime/InteropServices/ComTypes/IRunningObjectTable.cs
1,035
C#
// File generated from our OpenAPI spec namespace Stripe { using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; public class AccountCreateOptions : BaseOptions, IHasMetadata { /// <summary> /// An <a href="https://stripe.com/docs/api#create_account_t...
42.947826
105
0.614092
[ "Apache-2.0" ]
polinar68/stripe-dotnet
src/Stripe.net/Services/Accounts/AccountCreateOptions.cs
4,939
C#
using System.Collections.Generic; namespace EF6CodeFirstDemo { public class Grade { public int GradeId { get; set; } public string GradeName { get; set; } public string Section { get; set; } public virtual ICollection<Student> Students { get; set; } } }
24.916667
66
0.632107
[ "MIT" ]
nirzaf/EF6-Code-First-Demo-master
EF6CodeFirstDemo/Grade.cs
301
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class BlueprintNodeEventUpdate : BlueprintNodeEvent { //If running in the Unity Editor #if UNITY_EDITOR //Returns the blueprint node event updates title protected override string GetTitle() { //Return the ...
22.647059
58
0.78961
[ "MIT" ]
ZackaryCowled/Unity-Blueprints
Assets/Blueprint/Scripts/Source/Nodes/EventNodes/BlueprintNodeEventUpdate.cs
387
C#
using MADCA.Core.Data; using MADCA.Core.Note.Abstract; namespace MADCA.Core.Note.Concrete { public sealed class Touch : ShortNote { public override NoteType NoteType => NoteType.Touch; private Touch() { } public Touch(LanePotision lane, TimingPosition timing, NoteSize size) ...
22.625
77
0.654696
[ "MIT" ]
TinyTany/MADCA
MADCA/Core/Note/Concrete/Touch.cs
364
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
36.380952
146
0.580716
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/network/Microsoft.Azure.Management.Network/src/Generated/Models/NetworkConfigurationDiagnosticProfile.cs
4,584
C#
using UnityEngine; public class AnimationSetActive : StateMachineBehaviour { public bool activeState = false; // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { ...
41.741935
140
0.789026
[ "MIT" ]
Aggrathon/rps_tournament
Assets/Scripts/UI/AnimationSetActive.cs
1,296
C#
using System; using System.Collections.Generic; using System.Data; using FirebirdSql.Data.FirebirdClient; namespace MyMeta.Firebird { #if ENTERPRISE using System.Runtime.InteropServices; [ComVisible(true), ClassInterface(ClassInterfaceType.AutoDual), ComDefaultInterface(typeof(IColumns))] #endif public class Fireb...
26.490013
444
0.533276
[ "BSD-3-Clause" ]
cafephin/mygeneration
src/mymeta/Firebird/Columns.cs
19,894
C#
using Paxstore.OpenApi.Base.Dto; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Paxstore.OpenApi.Model { public class PushFirmwareTaskPageResponse : PageResponse<PushFirmwareTaskInfo> { } }
20.214286
82
0.784452
[ "Apache-2.0" ]
PAXSTORE/paxstore-openapi-dotnet-sdk
PaxstoreOpenApi/Paxstore/OpenApi/Model/TerminalFirmware/PushFirmwareTaskPageResponse.cs
285
C#
using System.Windows.Controls; using System.Windows.Input; using ClojureExtension.Utilities; namespace ClojureExtension.Repl { public class InputKeyHandler { private readonly TextBox _interactiveTextBox; private readonly KeyboardExaminer _keyboardExaminer; private readonly Entity<ReplState> _replEnt...
40.532258
185
0.754477
[ "MIT" ]
ragnard/vsClojure
ClojureExtension.Repl/InputKeyHandler.cs
2,515
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.3
108
0.589829
[ "Apache-2.0" ]
Vfialkin/aws-sdk-net
sdk/src/Services/WorkSpaces/Generated/AmazonWorkSpacesConfig.cs
2,104
C#
using Microsoft.Extensions.Configuration; namespace et12.edu.ar.AGBD.Ado { /// <summary> /// Clase que abstrae de la creación de la conexión de <c>AdoAGBD</c> /// </summary> public static class FactoryAdoAGBD { /// <summary> /// Método que devuelve una instancia de <c>AdoAGBD</c> ...
38.181818
80
0.596032
[ "MIT" ]
ET12DE1Computacion/AGBD-Ado
AGBD/Ado/FactoryAdoAGBD.cs
1,268
C#
namespace Mapbox.Editor { using UnityEngine; using UnityEditor; using Mapbox.Unity.MeshGeneration.Factories; [CustomEditor(typeof(FlatTerrainFactory))] public class FlatTerrainFactoryEditor : FactoryEditor { public SerializedProperty material_Prop, collider_Prop, addLayer_Prop, layerId_Prop; pri...
30.76087
99
0.770318
[ "MIT" ]
MGM-HUD-Hackathon/HelloMapBox
Assets/Mapbox/Unity/Editor/FlatTerrainFactoryEditor.cs
1,417
C#
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information using Elastic.Xunit.XunitPlumbing; using Nest; using System.ComponentModel; namespace Examples.Analysis.Tokenfilt...
26.310345
76
0.584972
[ "Apache-2.0" ]
magaum/elasticsearch-net
tests/Examples/Analysis/Tokenfilters/EdgengramTokenfilterPage.cs
2,289
C#
using UnityEngine; using UnityEngine.EventSystems; using Utility.Manager.EventArgs; using Utility.Manager.Type; using Utility.System.Publisher_Subscriber_System; namespace Utility.Manager { public class InputManager : MonoBehaviour, IPointerDownHandler, IPointerUpHandler, IDragHandler { private float ...
35.772727
99
0.657349
[ "MIT" ]
punsal/HexFall-Clone
Assets/Scripts/Utility/Manager/InputManager.cs
2,363
C#
using NationalInstruments.CommonModel; using NationalInstruments.DataTypes; using NationalInstruments.Dfir; using Rebar.Common; namespace Rebar.Compiler.Nodes { /// <summary> /// Represents a node that will output references in a common lifetime from its inputs. The <see cref="AlwaysBeginLifetime"/> /// a...
40.419753
142
0.613317
[ "MIT" ]
ni/rebar
src/Rebar/Compiler/Nodes/ExplicitBorrowNode.cs
3,276
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ContosoUniversity.Models { public class Course { [DatabaseGenerated(DatabaseGeneratedOption.None)] [Display(Name = "Number")] public int CourseID...
27.333333
76
0.659892
[ "MIT" ]
AllaHINDIR/GestionPFE
ContosoUniversity/Models/Course.cs
740
C#
using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; [assembly: AssemblyVersion("2015.0.0.0")] [assembly: AssemblyFileVersion("2015.0.0.0")] [assembly: AssemblyCompany("Autodesk, Inc.")] [assembly...
38.055556
87
0.785401
[ "MIT" ]
ricaun/RevitAddInManager
src/AddInManager/Properties/AssemblyInfo.cs
687
C#
using UnityEngine; namespace HoloToolkit.Sharing { public class SharingStage : MonoBehaviour { public static SharingStage Instance = null; /// <summary> /// Set whether this app should be a Primary or Secondary client. /// Primary: Connects directly to the Session Server, can ...
32.097087
110
0.567453
[ "MIT" ]
gomez-addams/HoloLens-Samples
Unity/TransparentObject/Assets/HoloToolkit/Sharing/Scripts/SharingStage.cs
3,308
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using VPX.BusinessLogic.Core.Contracts.Groups; using Microsoft.EntityFrameworkCore; using VPX.ApiModels; using VPX.BusinessLogic.Mappings.Users; using VPX.DataAccess.Core.Contracts; using VPX.Domain; namespace VPX.Busines...
32.237624
95
0.52672
[ "MIT" ]
VadimProkopchuk/JML
src/VPX.BusinessLogic/Services/Groups/GroupService.cs
3,258
C#
using System; using Newtonsoft.Json; using Xrpl.Client.Json.Converters; namespace Xrpl.Client.Model.Ledger.Objects { public class PayChannelLedgerObject : BaseRippleLedgerObject { public PayChannelLedgerObject() { LedgerEntryType = LedgerEntryType.PayChannel; } pub...
25.638298
67
0.635685
[ "Apache-2.0" ]
CASL-AE/Xrpl.C
Xrpl.C/Xrpl/Client/Model/Ledger/Objects/PayChannelLedgerObject.cs
1,207
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="UperoleiaMimula.cs" company="QutEcoacoustics"> // All code in this file and all associated files are the copyright and property of the QUT Ecoacoustics Research Group (formerly MQU...
45.718182
225
0.618314
[ "Apache-2.0" ]
ninascarpelli/audio-analysis
src/AnalysisPrograms/Recognizers/UperoleiaMimula.cs
10,058
C#
using System; using System.Drawing; using ESolutions.Core.Drawing; using Xunit; namespace ESolutions.Core.Test { public class SizeUnitTest { #region TestGetRatioSquare [Fact] public void TestGetRatioSquare() { Size testUnit = new Size(100, 100); Double actual = testUnit.GetRatio(); Assert.Equal(1....
19.381295
44
0.68337
[ "MIT" ]
everyday-solution/ESolutions
ESolutions.Core.Tests/SizeUnitTest.cs
2,696
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...
34.527778
151
0.625637
[ "Apache-2.0" ]
DalavanCloud/aws-sdk-net
sdk/src/Services/XRay/Generated/Model/Internal/MarshallTransformations/DeleteSamplingRuleRequestMarshaller.cs
3,729
C#
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Diagnostics; using Roslynator...
18.97377
160
0.58666
[ "Apache-2.0" ]
manunio/Roslynator
src/Tests/Analyzers.Tests/RCS1207ConvertMethodGroupToAnonymousFunctionTests.cs
11,576
C#
namespace DeemZ.Services.AutoMapperProfiles { using AutoMapper; using DeemZ.Data.Models; using DeemZ.Models.ViewModels.ChatMessages; public class ChatMessagesProfile : Profile { public ChatMessagesProfile() { CreateMap<ChatMessage, ChatMessageViewModel>(); } ...
24.846154
59
0.665635
[ "MIT" ]
Berat-Dzhevdetov/DeemZ
DeemZ/DeemZ.Services/AutoMapperProfiles/ChatMessagesProfile.cs
325
C#
namespace Utilities.Models { using System.Runtime.Serialization; /// <summary> /// The point information. /// </summary> [DataContract] public class PointInformation { #region Public Properties /// <summary> /// Gets or sets the intensity. /// </summary> ...
22.181818
53
0.534153
[ "MIT" ]
PNNL-Comp-Mass-Spec/Atreyu
Utilities/Models/PointInformation.cs
732
C#
namespace Friedforfun.ContextSteering.Utilities { public enum SteerDirection { ATTRACT, REPULSE } public enum RotationAxis { YAxis, ZAxis, XAxis } }
12
47
0.550926
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
friedforfun/ContextSteering
Runtime/Utilities/SteeringEnums.cs
216
C#
using System; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Localization; using Newtonsoft.Json.Linq; using OrchardCore.DisplayManagement; using OrchardCore.DisplayManagement.Notif...
35.454545
147
0.59324
[ "BSD-3-Clause" ]
ThisNetWorks/ThisNetWorks.OrchardCore.CKEditor
src/ThisNetWorks.OrchardCore.CKEditor/Controllers/AdminController.cs
8,580
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="StartupBuilderSimpleCreator.cs" company="Marcin Smółka zNET Computer Solutions"> // Copyright (c) Marcin Smółka zNET Computer Solutions. All rights reserved. // </copyright> // ...
34.246914
129
0.556597
[ "MIT" ]
msmolka/ZNetCS.AspNetCore.Logging.EntityFrameworkCore
test/ZNetCS.AspNetCore.Logging.EntityFrameworkCoreTest/StartupBuilderSimpleCreator.cs
2,780
C#
using System; using UnityEngine; namespace FootIK { public struct Length { public float min; public float max; } [Serializable] public struct Limb { public Leg leg; public Knees knees; public Foot foot; public Vector3 target; Bone[] bon...
32.159292
121
0.518987
[ "MIT" ]
Yene2017/ProcedureAnimation_IK_Baka
_Scripts/FootIK/Limb.cs
3,636
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace Core { public interface IEntityRepository<T> where T:class,IEntity,new() { List<T> GetAll(Expression<Func<T, bool>> filter = null); T Get...
23.894737
69
0.671806
[ "MIT" ]
TekEmre/Restful-API-Rental-App
Core/IEntityRepository.cs
456
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. [assembly:System.Reflection.AssemblyVersionAttribute("4.0.0.0")] [assembly:System.CLSCompliantAttribute(true)] [asse...
65.042388
322
0.696889
[ "MIT" ]
marek-safar/reference-assemblies
src/v4.7/System.Drawing.cs
259,324
C#
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using TicketReservationSystem.Data; using TicketReservationSystem.Models; using Microsof...
36.758065
129
0.597631
[ "MIT" ]
zingmars/TicketReservationSystem
Pages/Performances/Index.cshtml.cs
2,281
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 ...
43.04
187
0.663197
[ "MIT" ]
naivetang/2019MiniGame22
Server/ThirdParty/MongoDBDriver/MongoDB.Driver.Core/Core/Operations/MapReduceLegacyOperation.cs
5,382
C#
using System.Text.Json.Serialization; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// AlipayCommerceCityfacilitatorScriptQueryModel Data Structure. /// </summary> public class AlipayCommerceCityfacilitatorScriptQueryModel : AlipayObject { /// <summary> /// ...
28.869565
77
0.638554
[ "MIT" ]
LuohuaRain/payment
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayCommerceCityfacilitatorScriptQueryModel.cs
768
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Dcomms { public class ActionsQueue : IDisposable { bool _isDisposing; readonly Action<Exception> _onException; reado...
36.43128
157
0.489007
[ "MIT" ]
dcomms/dcomms
Dcomms.Core/ActionsQueue.cs
7,689
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace API.Migrations { public partial class BananaMigration2 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DeleteData( table: "User", k...
47.733333
357
0.594041
[ "MIT" ]
Kinaetron/Bulee.Banana
API/Migrations/20190903142907_BananaMigration2.cs
2,150
C#
#region copyright /* * * * * * * * * * * * * * * * * * * * * * * * * */ /* Carl Zeiss Industrielle Messtechnik GmbH */ /* Softwaresystem PiWeb */ /* (c) Carl Zeiss 2013 */ /* * * * * * * * * * * * * * * * * * * * * * * * * */ #endregion namespace Zeiss.P...
14.863014
53
0.44977
[ "BSD-3-Clause" ]
ZEISS-PiWeb/PiWeb-Formplots
src/Formplot/FileFormat/GeometryTypes.cs
1,087
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...
31.142857
102
0.588775
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Glue/Generated/Model/S3Target.cs
3,706
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // Sourced from https://github.com/dotnet/core-setup/tree/be8d8e3486b2bf598ed69d39b1629a24caaba45e/tools-local/tasks, needs to be kept in sync u...
46.920635
149
0.498647
[ "Apache-2.0" ]
aspnet/Universe
build/tasks/Utilities/RuntimeReference.cs
2,956
C#
namespace TmLox.Interpreter.Tests; using NUnit.Framework; using Errors; public class StringTests { [Test] public void Test_Creating_String_Without_Termination_Character_Should_Produce_Error_About_Unterminated_String() { const string code = @" var test_variable = ""Hello world; ...
28.349206
118
0.628219
[ "MIT" ]
GustasG/TmLox
TmLox.Interpreter.Tests/src/StringTests.cs
1,786
C#
using System; using Newtonsoft.Json; using RestSharp; namespace Harmony.API { public class SearchChainsEntries { public HarmonyClient Harmony { get; private set; } public IRestResponse RestResponse { get; private set; } public Response DataResponse { g...
27.804598
94
0.505994
[ "MIT" ]
FactoidAuthority/HarmonySharp
HarmonySharp/API/Entries/SearchChainsEntries.cs
2,421
C#