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
// 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. /****************************************************************************** * This file is auto-generated from ...
41.172205
144
0.565233
[ "MIT" ]
ruben-ayrapetyan/coreclr
tests/src/JIT/HardwareIntrinsics/X86/Avx2/And.Byte.cs
13,628
C#
using EntityLayer.Concrete; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataAccessLayer.Abstract { public interface ICommentDal:IGenericDal<Comment> { } }
17.357143
51
0.802469
[ "MIT" ]
batuhansariikaya/MVC_CoreBlogProject
CoreProject_MVC/DataAccessLayer/Abstract/ICommentDal.cs
245
C#
using System; using System.Linq; using System.Xml.Linq; using AutoFixture; using NUnit.Framework; namespace Dfe.Spi.UkrlpAdapter.Infrastructure.UkrlpSoapApi.UnitTests { public class WhenBuildingMessageToGetUpdatesSince { private static readonly XNamespace soapNs = "http://schemas.xmlsoap.org/soap/envel...
39.489583
125
0.658401
[ "MIT" ]
DFE-Digital/spi-ukrlp-adapter
src/Dfe.Spi.UkrlpAdapter.Infrastructure.UkrlpSoapApi.UnitTests/WhenBuildingMessageToGetUpdatesSince.cs
3,791
C#
/******************************************************** * ADO.NET 2.0 Data Provider for SQLite Version 3.X * Written by Robert Simpson (robert@blackcastlesoft.com) * * Released to the public domain, use at your own risk! ********************************************************/ namespace Mono.Data.Sqli...
27.418605
157
0.560645
[ "Apache-2.0" ]
121468615/mono
mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLiteTransaction.cs
4,718
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="UrlSettings" company=""> // // </copyright> // <summary> // The class UrlSettings. // </summary> // ------------------------------------------------------------------------------...
21
119
0.425714
[ "MIT" ]
laredoza/SingleSignOnApi
src/AdminApi/V1/UrlSettings.cs
1,050
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.ServiceModel.Channels; using System.Text; using System.Threading.Tasks; namespace AMQPBizTalkAdapter { class AmqpNetLitePollingReceiver : AmqpNetLiteReceiver, IReceiver { readonly Object ObjectLoc...
41.104895
202
0.495407
[ "MIT" ]
AbdelazizElbaz/AMQPBizTalkAdapter
src/AMQPBizTalkAdapter/Messaging/AmqpNetLite/AmqpNetLitepollingReceiver.cs
5,880
C#
using System.IO; using Calamari.Common.Plumbing.FileSystem; using Calamari.Common.Plumbing.Variables; using Calamari.Deployment; using Calamari.Tests.Fixtures.Deployment.Packages; using Calamari.Tests.Helpers; using NUnit.Framework; namespace Calamari.Tests.Fixtures.Deployment { [TestFixture] [Category(TestCat...
54.319767
242
0.656962
[ "Apache-2.0" ]
OctopusDeploy/Calamari
source/Calamari.Tests/Fixtures/Deployment/DeployVhdFixture.cs
9,343
C#
using System.Runtime.Serialization; namespace EncompassRest.Loans.Enums { public enum ATRQMStatus { [EnumMember(Value = "Meets Standard")] MeetsStandard = 0, [EnumMember(Value = "Not Meet")] NotMeet = 1, [EnumMember(Value = "Review Needed")] ReviewNeeded = 2 ...
23.071429
46
0.606811
[ "MIT" ]
gashach/EncompassRest
src/EncompassRest/Loans/Enums/ATRQMStatus.cs
323
C#
/* * Copyright (c) Contributors, http://aurora-sim.org/, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistr...
41.513353
127
0.618585
[ "BSD-3-Clause" ]
BillyWarrhol/Aurora-Sim
Aurora/Framework/Services/IGroupsServicesConnector.cs
13,990
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; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.VisualStudio.Interac...
41.333333
161
0.724194
[ "Apache-2.0" ]
0x53A/roslyn
src/InteractiveWindow/Editor/Commands/IInteractiveWindowCommandsFactory.cs
1,242
C#
using RelhaxModpack.Database; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RelhaxModpack.Automation.Tasks { public class CreateDirectoryTask : DirectoryTask, IXmlSerializable { public const string TaskCom...
30.488372
114
0.646834
[ "Apache-2.0" ]
SigmaTel71/RelhaxModpack
RelhaxModpack/RelhaxModpack/Automation/Tasks/CreateDirectoryTask.cs
1,313
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; namespace Microsoft.AspNetCore.Rewrite; internal static class RedirectToWwwHelper { private const s...
26.881356
94
0.592055
[ "MIT" ]
3ejki/aspnetcore
src/Middleware/Rewrite/src/RedirectToWwwHelper.cs
1,586
C#
using System.Collections.Generic; using System.Web; using Newtonsoft.Json; namespace AirtableApiClient { public enum SortDirection { Asc, Desc } public class Sort { [JsonProperty("fields")] public string Field { get; set; } [JsonProperty("direction")] ...
26.141414
136
0.514683
[ "MIT" ]
DJCodeMonkey/airtable.net
AirtableApiClient/QueryParamHelper.cs
2,590
C#
namespace SimpleShop.Data { public class DataSettings { public const string ConnectionString = @"Server=.\SQLEXPRESS;Database=SimpleShop;Trusted_Connection=True"; } }
22.222222
81
0.675
[ "MIT" ]
kalintsenkov/SimpleShopConsoleApp
Data/SimpleShop.Data/DataSettings.cs
202
C#
using System; using System.Linq; using System.Management.Automation; using PnP.PowerShell.Commands.Attributes; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; using PnP.PowerShell.Commands.Model; namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsSecurity.Grant, "PnPAzureADAppS...
32.515625
243
0.54493
[ "MIT" ]
ToddKlindt/powershell-1
src/Commands/Apps/GrantAzureADAppSitePermission.cs
2,081
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...
48.728643
172
0.630917
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/Network/V20180601/ExpressRouteCircuitConnection.cs
9,697
C#
namespace DigitalLearningSolutions.Data.Services { using System; using System.Collections.Generic; using System.IO; using System.Linq; using ClosedXML.Excel; using DigitalLearningSolutions.Data.DataServices; using DigitalLearningSolutions.Data.Enums; using DigitalLearningSoluti...
40.765766
115
0.601878
[ "MIT" ]
TechnologyEnhancedLearning/DLSV2
DigitalLearningSolutions.Data/Services/ActivityService.cs
9,052
C#
// Copyright (c) 2010-2014 SharpDX - Alexandre Mutel // // 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, modif...
68.061538
169
0.721293
[ "MIT" ]
Altair7610/SharpDX
Source/SharpDX.DirectInput/Generated/LocalInterop.cs
4,424
C#
#if !NETSTANDARD1_3 using System; namespace Kzrnm.Competitive.IO { /// <summary> /// <see cref="RepeatReader"/> /// </summary> public static class RepeatReaderSelectArray { /// <summary> /// Repeat <paramref name="factory"/>() /// </summary> public static (T1[], T2[...
35.702128
95
0.461263
[ "MIT" ]
naminodarie/Competitive.IO
Competitive.IO/ConsoleReader.RepeatReader.SelectArray.cs
3,358
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 #region Usings using System; using System.Collections; using System.Collections.Generic; using System.Linq...
43.025066
182
0.498268
[ "MIT" ]
Tychodewaard/Dnn.Platform
DNN Platform/Website/admin/Modules/Modulesettings.ascx.cs
32,615
C#
using GoodToCode.Shared.Specs; using GoodToCode.Subjects.Infrastructure; using GoodToCode.Subjects.Models; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.IO; using S...
37.031579
124
0.630756
[ "Apache-2.0" ]
goodtocode/stack
src/Subjects.Specs.Unit/Infrastructure/Associate/BusinessUpdateSteps.cs
3,520
C#
namespace RegularExpressionScratchpad { using System; /// <summary> /// RegexRef. /// </summary> public class RegexRef : IComparable { private readonly int start; private int end; /// <summary> /// Initializes a new instance of the <see cref="RegexRef"/> class. ...
31.277778
287
0.523268
[ "MIT" ]
mikefourie-zz/RegularExpressionScratchpad
Classes/RegexRef.cs
2,815
C#
using static ProjectEuler.Problems.Helpers.Funcs; namespace ProjectEuler.Problems.Solutions { /// <summary> /// Smallest multiple /// <see cref="https://projecteuler.net/problem=5"/> /// </summary> public class Problem005 : IProblem { public int Id => 5; public string Title => ...
29.965517
100
0.563867
[ "MIT" ]
cyberpunk2099/Project-Euler
src/ProjectEuler/ProjectEuler.Problems/Solutions/Problem005.cs
871
C#
using Newtonsoft.Json; using Shriek.Events; using Shriek.Exceptions; using Shriek.Messages; using Shriek.Notifications; using System; namespace Shriek.Commands { public class CommandMessageSubscriber<TCommand> : IMessageSubscriber<TCommand> where TCommand : Message { private readonly IServiceProvider ...
31.354167
112
0.583389
[ "MIT" ]
1071157808/shriek-fx
src/Shriek/Commands/CommandMessageSubscriber.cs
1,539
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. namespace Mi...
75.506203
451
0.667324
[ "MIT" ]
Arsasana/azure-powershell
src/Kusto/generated/cmdlets/AddAzKustoDatabasePrincipal_AddViaIdentityExpanded.cs
30,027
C#
// ------------------------------------------------------------ // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace ServiceFabric.WindowsPatchInstaller { using Microsoft.ServiceFabric.Se...
39.380952
134
0.551391
[ "MIT" ]
DianeHadley/service-fabric-windows-patch-installer
src/PatchInstallerService/Program.cs
1,656
C#
namespace CustomCode.Core.CodeGeneration.Scripting.Features { using Composition; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; using System; using System.Collections.Generic; using System.Linq; /// <summary> /// An <see cref="IFeatureAnalyzer"/> that analyzes...
38.302326
130
0.547055
[ "MIT" ]
git-custom-code/Core-CodeGeneration
src/Core/CodeGeneration.Scripting/Features/ParameterCollection/ParameterCollectionAnalyzer.cs
3,294
C#
using System; using System.Collections.Generic; namespace PenguinSteamerSecondSeason.Common { /// <summary> /// APIなどを呼び出さない単純な関数を集める /// 計算用関数など /// </summary> public class Utility { #region ToRoundDown:指定した精度の数値に切り捨てします。 /// ---------------------------------------------------...
29.596774
94
0.473706
[ "MIT" ]
genkokudo/PenguinSteamerSecondSeason
PenguinSteamerSecondSeason/Common/Utility.cs
8,914
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GameMemento.Session { /// <summary> /// Clase Originator (Creador). /// </summary> public class Player { #region State /// <summary> /// Nivel. ...
24.62
109
0.500812
[ "Unlicense" ]
wilmerbz/designpatterns
GameMemento/GameMemento.Session/Player.cs
2,466
C#
using System; using System.IO; using System.Threading.Tasks; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using System.Security.Claims; using Microsoft.Azure.WebJobs.Extensions.SignalRService; using Microsoft....
49.972222
187
0.74597
[ "Apache-2.0" ]
napkin-ide/state-api-application-management
state-api-application-management/Host/ConnectToState.cs
1,799
C#
using UnityEngine; using System.Collections.Generic; namespace Telescopes { public static class TelescopeUtils { static int segmentCount = 0; /// <summary> /// Returns the coordinate-wise min of two vectors. /// </summary> /// <param name="v1"></param> /// <par...
42.58006
137
0.57858
[ "MIT" ]
icethrush/telescoping-structures
Assets/Scripts/TelescopeUtils.cs
28,190
C#
namespace OpenORPG.Toolkit.Views.Content { partial class MonsterEditorForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. ///...
44.156
161
0.582571
[ "MIT" ]
hilts-vaughan/OpenORPG
OpenORPG.Toolkit/Views/Content/MonsterEditorForm.Designer.cs
11,041
C#
using Elsa.Mediator.Middleware.Notification.Contracts; using Microsoft.Extensions.DependencyInjection; namespace Elsa.Mediator.Middleware.Notification; public static class MiddlewareExtensions { public static INotificationPipelineBuilder UseMiddleware<TMiddleware>(this INotificationPipelineBuilder builder, params...
45.15
181
0.748616
[ "MIT" ]
elsa-workflows/experimental
src/core/Elsa.Mediator/Middleware/Notification/MiddlewareExtensions.cs
903
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...
27.611111
117
0.622736
[ "ECL-2.0", "Apache-2.0" ]
EladGabay/pulumi-oci
sdk/dotnet/Database/Outputs/KeyStoreAssociatedDatabase.cs
994
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("07-...
37.891892
84
0.745364
[ "Apache-2.0" ]
KostadinovK/Technology-Fundamentals
03-Data-Types-And-Variables/Homework/07-Lower-Or-Upper/Properties/AssemblyInfo.cs
1,405
C#
namespace Caliburn.Micro.HelloWP7 { public class PivotPageModelStorage : StorageHandler<PivotPageViewModel> { public override void Configure() { this.ActiveItemIndex() .InPhoneState() .RestoreAfterViewLoad(); } } }
32.333333
78
0.591065
[ "MIT" ]
anaisbetts/CaliburnMicro
samples/Caliburn.Micro.HelloWP7/Caliburn.Micro.HelloWP7/PivotPageModelStorage.cs
293
C#
namespace Silence.Simulation { /// <summary> /// The mouse button /// </summary> public enum MouseButton { /// <summary> /// Left mouse button /// </summary> LeftButton, /// <summary> /// Middle mouse button /// </summary> MiddleButto...
18.608696
31
0.462617
[ "MIT" ]
MisterDr/silence
Silence.Simulation/MouseButton.cs
430
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using System.Data; using System.Threading; namespace Plan.Domain { // Generated 07/26/2013 00:00:42 // Add custom code inside partial class public partial class Entity<T> where T : Entity<T>, new()...
17.315789
61
0.729483
[ "MIT" ]
kiapanahi/famous-design-patterns
Plan/Plan.Domain/Domain/Entity.partial.cs
329
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Cloud : MonoBehaviour { // Use this for initialization void Start () { transform.position = new Vector3(Random.Range(-9f, 9f), Random.Range(4.2f, 3f), transform.position.z); } // Update is called once per frame void ...
28.8
109
0.720486
[ "MIT" ]
jlawcordova/Baho-Kog-Ahem
Assets/Scripts/Cloud.cs
578
C#
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Helpers { using System; using System.Linq; using System.Threading; using Microsoft.CodeAnalysi...
45.872881
232
0.643451
[ "Apache-2.0" ]
Andreyul/StyleCopAnalyzers
StyleCop.Analyzers/StyleCop.Analyzers/Helpers/UsingDirectiveSyntaxHelpers.cs
5,415
C#
using System; static class Crash { static X GetFoo () { return null; } static int Main () { int res = (GetFoo ()?.ToLower ()).ToUpper (); if (res != 0) return 1; return 0; } } class X { public Y ToLower () { throw new ApplicationException ("should not be called"); } } class Y { } static clas...
10.121951
58
0.583133
[ "Apache-2.0" ]
AvolitesMarkDaniel/mono
mcs/tests/test-null-operator-13.cs
415
C#
using System; namespace TableClothKernel { public class InputProcessor { readonly Parser _parser; readonly Solution _solution; public InputProcessor( Solution solution ) { _solution = solution; _parser = new Parser(); _parser.Errors.Message += MessagesDispatcher; } public R...
20.024691
72
0.616523
[ "MIT" ]
lis355/TableCloth
Source/TCKernel/Base Classes/Solution/InputProcessor.cs
1,624
C#
// hardcodet.net NotifyIcon for WPF // Copyright (c) 2009 - 2013 Philipp Sumi // Contact and Information: http://www.hardcodet.net // // This library is free software; you can redistribute it and/or // modify it under the terms of the Code Project Open License (CPOL); // either version 1.0 of the License, or (at your ...
31.442308
69
0.655657
[ "MIT" ]
HavenDV/H.NotifyIcon.WPF
src/libs/H.NotifyIcon/BalloonIcon.cs
1,637
C#
/* Copyright (c) 2014 <a href="http://www.gutgames.com">James Craig</a> 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, ...
53.135347
310
0.597962
[ "MIT" ]
sealong/Craig-s-Utility-Library
UnitTests/ORM/Manager/SessionUsingComposition.cs
47,505
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.Game.Graphics; using osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces; namespace osu.Game.Rulesets.Taiko.Objects.Drawab...
30.481481
113
0.651276
[ "MIT" ]
123tris/osu
osu.Game.Rulesets.Taiko/Objects/Drawables/DrawableCentreHit.cs
799
C#
namespace ParaInfo.Web.Settings { public class MongoDbSettings : IMongoDbSettings { public string DatabaseName { get; set; } public string ConnectionString { get; set; } } }
22.555556
52
0.660099
[ "Apache-2.0" ]
krum142/ParaInfo
Server/ParaInfoServer/Settings/MongoDBSettings.cs
205
C#
using System.Threading.Tasks; using Abp.Application.Services; using Abp.Application.Services.Dto; using BlazorProject.Backend.Roles.Dto; using BlazorProject.Backend.Users.Dto; namespace BlazorProject.Backend.Users { public interface IUserAppService : IAsyncCrudAppService<UserDto, long, PagedUserResultRequestDto, C...
29.0625
125
0.782796
[ "MIT" ]
274188A/BlazorProjectASPBoilerplateBackend
aspnet-core/src/BlazorProject.Backend.Application/Users/IUserAppService.cs
465
C#
using System.Reflection; 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("AWSSDK.IotData")] [assembly: AssemblyDescr...
55.40625
512
0.759729
[ "Apache-2.0" ]
augustoproiete-forks/aws--aws-sdk-net
sdk/code-analysis/ServiceAnalysis/IotData/Properties/AssemblyInfo.cs
1,773
C#
namespace _03.Mission_Private_Impossible___Lab { using System; using _03.Mission_Private_Impossible___Lab.Models; public class Startup { public static void Main() { Spy spy = new Spy(); string result = spy.RevealPrivateMethods("Hacker"); Console.Writ...
22.0625
63
0.606232
[ "MIT" ]
alexandrateneva/CSharp-Fundamentals-SoftUni
CSharp OOP Advanced/Reflection/03. Mission Private Impossible - Lab/Startup.cs
355
C#
using System; using System.Collections.Generic; using System.Linq; using Microsoft.ML; using Microsoft.ML.Data; namespace Samples.Dynamic.Trainers.Regression { public static class FastTreeTweedieRegression { // This example requires installation of additional NuGet // package for Microsoft.ML....
38.458333
84
0.575081
[ "MIT" ]
AhmedsafwatEwida/machinelearning
docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Regression/FastTreeTweedie.cs
4,617
C#
using Microsoft.Extensions.DependencyInjection.Extensions; using Rabble.EventBus.Abstractions; using Rabble.EventBus.InMemory; using System; using System.Collections.Generic; using System.Text; namespace Microsoft.Extensions.DependencyInjection { /// <summary> /// /// </summary> public static class I...
26.967742
94
0.638756
[ "MIT" ]
1015450578/EventBus
src/Rabble.EventBus.InMemory/InMemoryEventBusServiceCollectionExtensions.cs
856
C#
//---------------------- // <auto-generated> // Generated using the NJsonSchema v10.3.2.0 (Newtonsoft.Json v12.0.0.0) (http://NJsonSchema.org) // </auto-generated> //---------------------- namespace Redox.Ehr.Contracts.Models.Redox.Referral.Authresponse { #pragma warning disable // Disable all warnings [S...
55.379447
173
0.707201
[ "Apache-2.0" ]
matjazbravc/Redox.Ehr.OpenApi.Demo
src/Redox.Ehr.Contracts/Models/Redox/Referral/Authresponse.cs
70,055
C#
using Orchard.ContentManagement; using Orchard.ContentManagement.Handlers; using Orchard.Data; using Orchard.Environment; using Orchard.Security; using SoftIT.HouseParty.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace SoftIT.HouseParty.Handlers { public class...
32.666667
116
0.683673
[ "BSD-3-Clause" ]
OrganicAdapter/HouseParty
src/Orchard.Web/Modules/SoftIT.HouseParty/Handlers/SupplyPartHandler.cs
884
C#
//using Microsoft.Extensions.DependencyInjection; //namespace WebVella.TagHelpers //{ // public static class WebVellaTagHelpersServiceCollectionExtensions // { // public static void AddWebVellaTagHelpers(this IServiceCollection services) // { // services.ConfigureOptions(typeof(WebVellaTagHelpersConfigurationOpt...
26.307692
79
0.780702
[ "MIT" ]
5118234/TagHelpers
WebVella.TagHelpers/WebVellaTagHelpersServiceCollectionExtensions.cs
344
C#
using System; using System.Linq; using System.Reflection; using Microsoft.Extensions.Configuration; namespace aemarcoCommons.Toolbox.AppConfiguration.Transformations { public abstract class StringTransformerBase { /// <summary> /// /// </summary> /// <param name="currentValue"...
42.314815
153
0.62407
[ "Unlicense" ]
Mahmoud-zino/aemarcoCommons
Toolbox/AppConfiguration/Transformations/StringTransformerBase.cs
2,287
C#
using System; using System.Collections.Generic; using System.Data.Entity.Validation; using System.Linq; using System.Web; using Tdlr.Models; namespace Tdlr.DAL { public class TasksDbHelper { public static List<Task> GetAllTasks(List<string> objectIds) { // Get all tasks that the us...
32.258333
104
0.500646
[ "MIT" ]
Azure-Samples/active-directory-dotnet-demo-tdlr
TDLR/DAL/TasksDbHelper.cs
3,873
C#
using Infusion.IO; namespace Infusion.Packets.Server { internal sealed class DrawGamePlayerPacket : MaterializedPacket { private Packet rawPacket; public DrawGamePlayerPacket() { } public DrawGamePlayerPacket(ObjectId playerId, ModelId bodyType, Location3D location, D...
30.231707
154
0.581686
[ "MIT" ]
3HMonkey/Infusion
Infusion/Packets/Server/DrawGamePlayerPacket.cs
2,481
C#
//--------------------------------------------------------------------------------------------------- // <auto-generated> // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. // Generated by DynamicsCrm.DevKit - https://github.com/phuocle/Dynamics-Crm-DevKit // </auto-gen...
32.45234
236
0.685768
[ "MIT" ]
Kayserheimer/Dynamics-Crm-DevKit
test/v.2.12.31/TestAllEntities/All-DEMO/Dev.DevKit.Shared/Entities/SLAItem.generated.cs
18,727
C#
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Pubs.CoreDomain.Entities; namespace Pubs.Infrastructure.Persistence.EntityConfigurations { public class RoyaltyConfiguration : BaseConfiguration, IEntityTypeConfiguration<Royalty> { public RoyaltyConfigur...
31.108108
92
0.631625
[ "MIT" ]
theMickster/pubs
src/Pubs.Infrastructure.Persistence/EntityConfigurations/RoyaltyConfiguration.cs
1,153
C#
#if !ONPREMISES using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Framework.Provisioning.Connectors; using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.Model.Configuration; using OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers; using OfficeDevPnP.Core....
50.22549
301
0.542504
[ "MIT" ]
FPotrafky/PnP-PowerShell
Commands/Provisioning/Tenant/ApplyTenantTemplate.cs
20,494
C#
namespace Providers { public class EventsProvider : Provider { } }
17.5
46
0.728571
[ "MIT" ]
Croniks/ShootingMan
Assets/Scripts/Providers/EventsProvider.cs
70
C#
using System; using SSLapp.Models; using Newtonsoft.Json.Linq; using System.Diagnostics; namespace SSLapp.Utils.Files.Update { static class UpdateJSONFields { public static void UpdateCertificate(JObject jsonObj, ToscaConfigFilesModel config, string appsetting) { try { ...
34.929293
136
0.540486
[ "MIT" ]
benjithompson/DEXSSL
SSLapp/Utils/Files/Updates/Helpers/UpdateJSONFields.cs
3,460
C#
using System; using System.Net; using System.Net.Sockets; using LiteNetLib; namespace Playground.Client.WinForms { public class LiteNetLibClient : INetEventListener { private readonly NetManager client; private NetPeer peer; public event EventHadler MessageReceived; public eve...
26.986111
134
0.625322
[ "MIT" ]
LevchenkovHeyworks/Networking
Playground/Playground.Client.WinForms/LiteNetLibClient.cs
1,945
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using EWSEditor.Common.Exports; using EWSEditor.Common; using EWSEditor.Common.Extensions; using EWSEdit...
38.218623
151
0.568008
[ "MIT" ]
manoj75/o365-EWS-Editor
EWSEditor/Forms/Archive/FolderArchiveSettings.cs
9,442
C#
using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Alpaca.Markets { /// <summary> /// Conditions map type for <see cref="PolygonDataClient.GetConditionMapAsync"/> call form Polygon REST API. /// </summary> [Json...
30.535714
112
0.65614
[ "Apache-2.0" ]
darocha/alpaca-trade-api-csharp
Alpaca.Markets/Enums/TickType.cs
857
C#
using AzureStorageProvider.Azure; using AzureStorageProvider.Collections; using AzureStorageProvider.Helpers; using AzureStorageProvider.Models; using CMS.Core; using CMS.Scheduler; using System; using System.Linq; namespace AzureStorageProvider.Tasks { public class CacheClearingTask : ITask { private...
36.526316
189
0.601825
[ "MIT" ]
Kentico/AzureStorageProvider
k12/src/AzureStorageProvider/Tasks/CacheClearingTask.cs
2,084
C#
// // KinoFog - Deferred fog effect // // Copyright (C) 2015 Keijiro Takahashi // // 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...
37.854545
85
0.720941
[ "MIT" ]
Hifoz/TGAG
Assets/Kino/Fog/Editor/FogEditor.cs
2,082
C#
/* Copyright (c) 2017, John Lewin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following ...
35.965517
159
0.768696
[ "BSD-2-Clause" ]
jingliang2005/MatterControl
Tests/MatterControl.AutomationTests/MatterControlTests.cs
4,174
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.444444
264
0.609344
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/Compute/V20171201/GetLogAnalyticExportRequestRateByInterval.cs
4,088
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> //--...
42.31746
142
0.617779
[ "MIT" ]
wokste/SilverStreetSimulator
CitySimulator/Properties/Resources.Designer.cs
2,668
C#
#region File Description //----------------------------------------------------------------------------- // CpuVertex.cs // // Microsoft XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #endregion u...
28.333333
79
0.541176
[ "MIT" ]
SimonDarksideJ/XNAGameStudio
Samples/CPUSkinningSample_4_0/CpuSkinningDataTypes/CpuVertex.cs
767
C#
/************************************************************************ AvalonDock Copyright (C) 2007-2013 Xceed Software Inc. This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at https://opensource.org/licenses/MS-PL **********************************...
41.888889
116
0.628647
[ "Apache-2.0" ]
sak9188/WinIO2
WinIO/WinIO/AvalonDock/Layout/ILayoutPane.cs
1,131
C#
using Microsoft.AspNet.Mvc.Rendering; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace IdentitySample.Models { public class ExternalLoginConfirmationViewModel { [Required] [Display(Name = "Email")] public string Email { get; set; } } pub...
28.867347
110
0.59597
[ "Apache-2.0" ]
stuartleeks/Identity
samples/IdentitySample.Mvc/Models/AccountViewModels.cs
2,831
C#
//----------------------------------------------------------------------- // <copyright file="KPURegistration.cs" company="Breanos GmbH"> // Copyright Notice: // DAIPAN - This file, program or part of a program is considered part of the DAIPAN framework by Breanos GmbH for Industrie 4.0 // Published in 2018 by Gerhar...
46.2493
291
0.598147
[ "CC0-1.0" ]
BREANOS-ABE/daipan
Towers of Hanoi Demo/CWF Fabric Services/CWFStateless/KPURegistration.cs
16,513
C#
namespace EA.Prsd.Email { public interface ITemplateLoader { string LoadTemplate(string name); } }
17
41
0.655462
[ "Unlicense" ]
DEFRA/prsd-iws
src/EA.Prsd.Email/ITemplateLoader.cs
121
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.Filters; namespace BTCPayServer.Filters { public class XXSSProtectionAttribute : Attribute, IActionFilter { public void OnActionExecuted(ActionExecutedContext context) ...
24.227273
98
0.707317
[ "MIT" ]
dergigi/btcpayserver
BTCPayServer/Filters/XXSSProtectionAttribute.cs
535
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("Dp6...
37.135135
84
0.744541
[ "Apache-2.0" ]
kellybirr/dp6
Dp6/Properties/AssemblyInfo.cs
1,377
C#
using System.Collections; using System.Collections.Generic; using Unity.Entities; using UnityEngine; public class TimeSystem : ComponentSystem { public struct TimeEntities { public TimeComponent timeComponent; } public float time; public float timeScale = 1f; protected override void OnUpda...
22
46
0.684091
[ "MIT" ]
rzmarcin/ecs-out-of-space
Assets/Scripts/Time/TimeSystem.cs
442
C#
// <copyright file="PreSharedKey.cs" company="Arm"> // Copyright (c) Arm. All rights reserved. // </copyright> namespace MbedCloudSDK.Bootstrap.Model { using System; using Mbed.Cloud.Common; using MbedCloudSDK.Common; using MbedCloudSDK.Common.Extensions; using Newtonsoft.Json; /// <summary> ...
34.8
225
0.576065
[ "Apache-2.0" ]
ARMmbed/mbed-cloud-sdk-dotnet
src/Legacy/Bootstrap/Model/PreSharedKey.cs
2,958
C#
using System; using System.Runtime.InteropServices; namespace hds { public class AttributeClass2513 :GameObject { public Attribute Orientation = new Attribute(16, "Orientation"); public Attribute Position = new Attribute(24, "Position"); public Attribute HalfExtents = new Attribute(12, "HalfExtents"...
24.166667
68
0.677586
[ "MIT" ]
hdneo/mxo-hd
hds/resources/gameobjects/definitions/AttributeClasses/AttributeClass2513.cs
580
C#
namespace Abstractions.Commands { public interface IUnitCommand { public CommandType CommandType { get; } } public enum CommandType { None = 0, Attack = 1, Move = 2, Stop = 3, Patrol =43, } }
16.5625
47
0.520755
[ "Apache-2.0" ]
DSvinka/StrategyGame
Assets/Code/Abstractions/Commands/IUnitCommand.cs
267
C#
using Gif.Service.Attributes; using Gif.Service.Const; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Runtime.Serialization; namespace Gif.Service.Models { [CrmEntity("cc_capabilities")] [DataContract] public class Capability : EntityBase { [DataMember...
23.042553
75
0.618652
[ "MIT" ]
TrevorDArcyEvans/NHSBuyingCatalogue
beta-private/api/NHSD.GPITF.BuyingCatalog/crm/Gif.Datastore.CRM/Models/Capability.cs
1,085
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Management.Automation; using System.Text; using System.Threading.Tasks; using DotNetTemplatesCreator.Models; namespace DotNetTemplatesCreator.Utils { public class CreateProjectsUtility { private readonly strin...
31.278107
157
0.539728
[ "MIT" ]
srezasm/DotNet-Core-Projects-Template
src/Utils/CreateProjectsUtility.cs
5,288
C#
#region License // Copyright (c) 2021 Peter Šulek / ScaleHQ Solutions s.r.o. // // 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 r...
32.926554
136
0.56383
[ "MIT" ]
psulek/lhqeditor
src/App/ViewModels/ProjectSettingsViewModel.cs
5,831
C#
// Copyright (c) Converter Systems LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Workstation.ServiceModel.Ua { public interface IServiceRequest : IEncodable { RequestHeader RequestHeader { get; set; } } }
31.8
101
0.732704
[ "MIT" ]
dojo90/opc-ua-client
UaClient/ServiceModel/Ua/IServiceRequest.cs
320
C#
// MbUnit Test Framework // // Copyright (c) 2004 Jonathan de Halleux // // This software is provided 'as-is', without any express or implied warranty. // // In no event will the authors be held liable for any damages arising from // the use of this software. // Permission is granted to anyone to use this s...
33.634921
112
0.71496
[ "ECL-2.0", "Apache-2.0" ]
Gallio/mbunit-v2
src/mbunit/MbUnit.Framework/Core/Framework/DecoratorPatternAttribute.cs
2,119
C#
using System; using System.Collections.Generic; using System.Linq; namespace Ademund.Utils.TypeExtensions { public static class TypeExtensionMethods { // Queries a type for a list of all attributes of a specific type. public static IEnumerable<T> GetAttributes<T>(this Type typeWithAttributes) w...
34.677419
112
0.619535
[ "MIT" ]
netclectic/Ademund.Utils
source/Ademund.Utils.General/TypeExtensions/TypeExtensions.cs
1,075
C#
using Microsoft.AspNetCore.Mvc; namespace StoreBuilder.Web.Controllers; [ApiController] [Route("[controller]")] public class WeatherForecastController : ControllerBase { private static readonly string[] Summaries = new[] { "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Swelt...
28.030303
106
0.652973
[ "Apache-2.0" ]
ahammadfaishal/sallascraper
src/StoreBuilder.Web/Controllers/WeatherForecastController.cs
925
C#
using Vulkan; using static Vulkan.VulkanNative; namespace Veldrid.Vk { internal unsafe class VkTextureView : TextureView { private readonly VkGraphicsDevice _gd; private readonly VkImageView _imageView; private bool _destroyed; private string? _name; public VkImageView...
33.534653
129
0.53853
[ "MIT" ]
TechnologicalPizza/veldrid
src/Veldrid/Vk/VkTextureView.cs
3,389
C#
namespace SadConsole.Themes { using System.Runtime.Serialization; /// <summary> /// A theme for a Window object. /// </summary> [DataContract] public class ControlsConsoleTheme { /// <summary> /// The style of of the console surface. /// </summary> [DataMemb...
34.416667
143
0.59661
[ "MIT" ]
Coleoid/SadConsole
src/SadConsole/Themes/ControlsConsoleTheme.cs
2,067
C#
using System; using System.Collections.Generic; using MongoDragons.Managers; using MongoDragons.Types; namespace MongoDragons { class Program { static void Main(string[] args) { string keyword = ""; // Initialize our database provider. Setup.Initialize(); ...
27.25
175
0.452818
[ "Unlicense" ]
primaryobjects/MongoDragons
MongoDragons/Program.cs
1,528
C#
using ReturnTrue.QueryBuilder.Elements; using ReturnTrue.QueryBuilder.Renderers; namespace ReturnTrue.QueryBuilder.Modifiers { public class NotModifier : IQueryElement { public string Render(IRenderer renderer) { return renderer.Render(this); } } }
22.923077
48
0.687919
[ "MIT" ]
aleripe/QueryBuilder
QueryBuilder/Modifiers/NotModifier.cs
300
C#
using UnityEngine; namespace Diablerie.Engine { public class IsoInput : MonoBehaviour { public static Vector2 mousePosition; public static Vector3 mouseTile; void Update() { Vector3 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition); mousePo...
23.333333
83
0.628571
[ "MIT" ]
Bia10/Diablerie
Assets/Scripts/Diablerie/Engine/IsoInput.cs
422
C#
namespace Common.Notifications { public class ValidationNotification : INotificationMessage { public ValidationNotification(string message, string property) { Message = message; Property = property; } public string Message { get; private set; } ...
23.3125
70
0.619303
[ "MIT" ]
otaviojulianons/DynamicRestApi
src/Common/Notifications/ValidationNotification.cs
375
C#
using System; namespace FluentSpecification.Integration.Tests.Data { public class CreditCard : IEquatable<CreditCard> { public int CustomerId { get; set; } public string CardNumber { get; set; } public DateTime ValidityDate { get; set; } public virtual Customer Customer { get;...
29.363636
73
0.583591
[ "Apache-2.0" ]
michalkowal/FluentSpecification
src/FluentSpecification.Integration.Tests/Data/CreditCard.cs
1,294
C#
using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Tokens; using System; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Text; namespace TestBlocklyHtml.Authorization { public class AuthorizationToken { private readonly IConfiguration configurati...
32.690476
94
0.638019
[ "MIT" ]
BigHam/NETCoreBlockly
src/NetCore2Blockly/TestBlocklyHtml/Authorization/AuthorizationToken.cs
1,375
C#
using System; using System.Collections.Generic; using Couchbase.Lite; using Xamarin.Forms; using CouchbaseConnect2014.Services; using CouchbaseConnect2014.Views; using TinyIoC; namespace CouchbaseConnect2014 { public class App { public async static void Initialize () { TinyIoCContainer.Current.Register<...
30.678571
110
0.718277
[ "MIT" ]
Vineymahendru/Conference-app-module
src/Shared.Front/App.cs
1,720
C#
using System.Collections.Generic; using System.Threading; using LanguageExt; namespace SJP.Schematic.Core.Comments; /// <summary> /// Defines an object which retrieves comments for database tables. /// </summary> /// <seealso cref="IRelationalDatabaseTable"/> public interface IRelationalDatabaseTableCommen...
45.148148
137
0.728466
[ "MIT" ]
sjp/SJP.Schema
src/SJP.Schematic.Core/Comments/IRelationalDatabaseTableCommentProvider.cs
1,195
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; using UnityEngine.Events; using MyNamespace.databridge; using MyNamespace.rayMapPathFinding.myQueue; // 用于Drama Script的回调函数 public delegate void WalkTaskCallback(); // 角色控制器 public clas...
38.252381
119
0.503921
[ "MIT" ]
MorizeroDev/Morizero
code/Morizero/Assets/Map/Chara.cs
16,858
C#
using CodingLibrary.JSS.IO; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JSS.IO { public class JDirectories { /// <summary> /// Takes the given directory, moves the files and subdirectories up one...
35.048387
114
0.577543
[ "MIT" ]
HomerGaidarski/Gunter-Hans-Transaction-Reports
GH_DataImporter/GH_DataImporter/GH_DataImporter/IO/JDirectories.cs
2,175
C#