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
namespace NorthwindApi.Areas.HelpPage { /// <summary> /// Indicates whether the sample is used for request or response /// </summary> public enum SampleDirection { Request = 0, Response } }
20.818182
68
0.611354
[ "MIT" ]
addinfinity/Northwind
NorthwindApi/Areas/HelpPage/SampleGeneration/SampleDirection.cs
229
C#
using AntMe.Runtime; using System; using System.Collections.Generic; using System.Linq; namespace AntMe.Generator { /// <summary> /// Code Generator to generate the players Source Template. /// </summary> public sealed class TemplateGenerator { private List<string> factions; priva...
33.333333
158
0.621053
[ "MIT" ]
OmegaRogue/AntMeCore
src/AntMe.Generator/TemplateGenerator.cs
1,902
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.Collections.Immutable; using System.Composition; using System.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.C...
40.361446
160
0.590746
[ "Apache-2.0" ]
TechnoridersForks/Roslynator
source/Analyzers/CodeFixProviders/LocalDeclarationStatementCodeFixProvider.cs
3,352
C#
using Microsoft.Maui.Graphics; #if __IOS__ || MACCATALYST using PlatformView = UIKit.UIView; #elif __ANDROID__ using PlatformView = Android.Views.View; #elif WINDOWS using PlatformView = Microsoft.UI.Xaml.FrameworkElement; #elif TIZEN using PlatformView = ElmSharp.EvasObject; #elif (NETSTANDARD || !PLATFORM) using Plat...
27.655556
89
0.732824
[ "MIT" ]
10088/maui
src/Core/src/Handlers/View/ViewHandler.cs
9,956
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
41.659091
100
0.775777
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-iot/Iot/Transform/V20180120/CreateConsumerGroupResponseUnmarshaller.cs
1,833
C#
// <copyright file="IHistogram.cs" company="App Metrics Contributors"> // Copyright (c) App Metrics Contributors. All rights reserved. // </copyright> namespace App.Metrics.Histogram { /// <summary> /// A Histogram measures the distribution of values in a stream of data: e.g., the number of results return...
36.413793
122
0.590909
[ "Apache-2.0" ]
8adre/AppMetrics
src/Core/src/App.Metrics.Abstractions/Histogram/IHistogram.cs
1,058
C#
using System.Text.Json.Serialization; namespace nerderies.TelegramBotApi.DTOS { public class SendPhotoReply : Reply { [JsonPropertyName("result")] [JsonInclude] public Message SentMessage; } }
19.25
39
0.670996
[ "MIT" ]
devnulli/TelegramBotApi.NET
TelegramBotApi/TelegramBotApi/DTOS/Replies/SendPhotoReply.cs
233
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Gov.Jag.Spice.Interfaces { using Microsoft.Rest; using Models; using System.Collections; using System.Co...
39.313725
335
0.648878
[ "Apache-2.0" ]
BrendanBeachBC/jag-spd-spice
interfaces/Dynamics-Autorest/IRegardingobjectidspiceexportrequestemail.cs
2,005
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...
44.678733
134
0.583451
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Network/V20190801/RouteTable.cs
9,874
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace dla { class dla { static void Main(string[] args) { foreach (var t in args) { Console.WriteLine(t); } if...
29.822222
136
0.487332
[ "Unlicense" ]
DLArch/Dynamically-linked-archiving-methods-Console
Console/dla/dla.cs
1,344
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using System.Text.Encodings.Web; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.UI.Services; using Microsoft.AspNetCore.Mvc; using M...
34.326531
126
0.572731
[ "MIT" ]
Csharp2020/csharp2020
pmrvic/MVCRazvoj/Fakultet/Areas/Identity/Pages/Account/Manage/Email.cshtml.cs
5,048
C#
using System.Collections.Generic; using AonWeb.FluentHttp.HAL; namespace AonWeb.FluentHttp.Mocks.Hal { public class MockHalBuilderFactory : HalBuilderFactory, IMockHalBuilderFactory { public MockHalBuilderFactory() : this(new MockTypedBuilderFactory(), new [] { new HalConfig...
30.551724
82
0.651242
[ "MIT" ]
andrewescutia/fluent-http
AonWeb.FluentHttp.Mocks/Hal/MockHalBuilderFactory.cs
886
C#
using System; namespace lab_17_selection { public class PassFailClass { static void Main(string[] args) { Console.WriteLine(PassFailTernary(41)); } public static string PassFailTernary(int mark) { return mark >= 40 ? "Pass" : "Fail"; } ...
25.182927
79
0.373366
[ "MIT" ]
chenshanmugarajah/2020-06-c-sharp-labs
labs/lab_17_selection/Program.cs
2,067
C#
namespace Furiza.AspNetCore.WebApi.Configuration.SecurityProvider.Dtos.v1.Auth { public enum GrantType { Password, RefreshToken } }
20
79
0.68125
[ "MIT" ]
ivanborges/furiza-aspnetcore
src/Furiza.AspNetCore.WebApi.Configuration.SecurityProvider/Dtos/v1/Auth/GrantType.cs
162
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using System.Xml.Linq; using Azure.Core; namespace ContasimpleAPI.Models { public partial class ApiListResultProductSto...
39.872093
150
0.560222
[ "MIT" ]
JonasBr68/ContaSimpleClient
ClientApi/generated/Models/ApiListResultProductStockOperationApiModel.Serialization.cs
3,429
C#
using System; using System.Collections.Generic; using System.IO; using System.Net; namespace DotnetHttpClient { /// <summary> /// A container for generalized request inputs. This type allows consumers to extend the request functionality /// by abstracting away from the default (built-in) request framework ...
34.446154
114
0.589549
[ "MIT" ]
ddieruf/dotnet-httpclient
dotnet-httpclient/RequestOptions.cs
2,239
C#
using Newtonsoft.Json; using System; using System.Globalization; namespace TMDbLib.Utilities.Converters { public class TmdbPartialDateConverter : JsonConverter { public override bool CanConvert(Type objectType) { return objectType == typeof(DateTime?); } public ove...
31.121212
124
0.639727
[ "MIT" ]
1337joe/TMDbLib
TMDbLib/Utilities/Converters/TmdbPartialDateConverter.cs
1,029
C#
using SNT.Data; using SNT.Models; using SNT.ServiceModels; using SNT.ViewModels.Home; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SNT.Services { public class ShoppingBagService : IShoppingBagService { private SntDbContext context; ...
32.605691
134
0.581224
[ "MIT" ]
danailstratiev/SNT-Beta
SNT/SNT/Services/ShoppingBagService.cs
8,023
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; // Code adapted from Nicole's "note_launcher" script. public class Bull_Note_Attack : Actor { [SerializeField] int ProjectileAmount = 10; [SerializeField] GameObject musicNotes = null; Vector2 startPoint = Vector2.ze...
25.536082
122
0.616068
[ "MIT" ]
AGGP-NHTI/GinyuForce
Assets/Scripts/Bosses/Bull/Attacks/Bull_Note_Attack.cs
2,479
C#
// // Copyright 2010-2017 Deveel // // 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 applica...
24.335878
89
0.698243
[ "Apache-2.0" ]
deveel/deveeldb.core
src/DeveelDb.Core/Data/Sql/Statements/LoopStatement.cs
3,190
C#
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
33.605974
201
0.520508
[ "CC0-1.0" ]
IrenJones/ignite
modules/platforms/dotnet/Apache.Ignite.Core.Tests/TestUtils.cs
23,625
C#
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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...
53.872093
851
0.639686
[ "Apache-2.0" ]
Bimble/Lean
Common/Securities/UniverseManager.cs
13,901
C#
using System.Collections.Generic; namespace Stein.Common.InstallerFiles { /// <summary> /// A configuration to configure an <see cref="IInstallerFileBundleProvider"/>. /// </summary> public interface IInstallerFileBundleProviderConfiguration { /// <summary> /// Type of the provider...
27.428571
83
0.623264
[ "MIT" ]
nkristek/Stein
src/Stein.Common/InstallerFiles/IInstallerFileBundleProviderConfiguration.cs
578
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.UI; public class UIStreetControl : MonoBehaviour { public Text section; [SerializeField] private GameObject SectionPanel; StreetBehaivor sb; private List<GameObject> selectedGameObjects = new List<GameObject>(); ...
26.661765
104
0.710976
[ "Apache-2.0" ]
cwaidelich/Handel
Handel2/Assets/Scripts/UI/UIStreetControl.cs
1,815
C#
using System.Collections.Generic; namespace Xunit.Runners { /// <summary> /// Represents a test that passed. /// </summary> public class TestPassedInfo : TestExecutedInfo { /// <summary/> public TestPassedInfo( string typeName, string methodName, Dictionary<string, List<string>>? traits, string t...
23.347826
107
0.726257
[ "Apache-2.0" ]
0xced/xunit
src/xunit.v3.runner.utility/Runners/TestPassedInfo.cs
539
C#
/// This code was generated by /// \ / _ _ _| _ _ /// | (_)\/(_)(_|\/| |(/_ v1.0.0 /// / / /// <summary> /// PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution. /// /// AlphaSenderResource /// </summary> using Newtonsoft.Json; using System; using S...
44.904328
132
0.563587
[ "MIT" ]
FishDawg/twilio-csharp
src/Twilio/Rest/Messaging/V1/Service/AlphaSenderResource.cs
19,713
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BooInterpreter { public class StringLiteral : Expression { public StringLiteral() { } public string Value { get; set; } public override strin...
16.125
43
0.602067
[ "MIT" ]
nordleif/BooInterpreter
BooInterpreter/Expressions/StringLiteral.cs
389
C#
using Bitfinex.Net.Enums; using CryptoExchange.Net.Objects; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Bitfinex.Net.Objects.Models; using Bitfinex.Net.Objects.Models.V1; namespace Bitfinex.Net.Interfaces.Clients.SpotApi { /// <summary> /// Bitfi...
56.472826
270
0.637956
[ "MIT" ]
GetoXs/Bitfinex.Net
Bitfinex.Net/Interfaces/Clients/SpotApi/IBitfinexClientSpotApiExchangeData.cs
10,393
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.AspNetCore.Mvc; using WordCounterMVC.Controllers; namespace WordCounterMVC.Tests.ControllerTests { [TestClass] public class WordCounterMVCControllerTests { [TestMethod] public void Counter_ReturnsCorrectView_True(...
35.949153
93
0.638378
[ "MIT" ]
nikkiboyd/word-counter
WordCounterMVC.Tests/ControllerTests/WordCounterMVCTests.cs
2,121
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("Em...
37.583333
84
0.747967
[ "MIT" ]
Silvenga/Small-Projects
SchoolCode/Code/VS Workspace/EmberHello/EmberHello/Properties/AssemblyInfo.cs
1,356
C#
using System; using NimbleConfig.Core.Logging; namespace NimbleConfig.Core.Configuration { public abstract class ConfigurationSetting<TValue> { public virtual TValue Value { get; set; } /// <summary> /// This method gets called when setting the value, use this to customize the logic ...
29.793103
102
0.596065
[ "MIT" ]
dasiths/NimbleConfig
NimbleConfig.Core/Configuration/ConfigurationSetting.cs
866
C#
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Dock.Model { /// <summary> /// Dock window contract. /// </summary> public interface IDockWindow { /// <summary> ///...
24.909091
101
0.482208
[ "MIT" ]
PurpleGray/Dock
src/Dock.Model/IDockWindow.cs
2,197
C#
using Archimedes.Framework.Stereotype; namespace Archimedes.Framework.Test.ContainerTest { [Service] public class ServiceB : IServiceB { public void Test() { } } }
15.642857
49
0.584475
[ "MIT" ]
ElderByte-/Archimedes.Framework
Archimedes.Framework.Test/ContainerTest/ServiceB.cs
221
C#
using System; using Newtonsoft.Json; using System.Xml.Serialization; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// KoubeiMerchantShopQueryModel Data Structure. /// </summary> [Serializable] public class KoubeiMerchantShopQueryModel : AlipayObject { /// <summar...
27.928571
95
0.639386
[ "MIT" ]
Aosir/Payment
src/Essensoft.AspNetCore.Payment.Alipay/Domain/KoubeiMerchantShopQueryModel.cs
1,002
C#
// <auto-generated/> #pragma warning disable 1591 #pragma warning disable 0414 #pragma warning disable 0649 #pragma warning disable 0169 namespace EC1._44CharacterGenerator.Pages { #line hidden using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; usin...
25.431193
118
0.782828
[ "MIT" ]
FlintTD/EC1.44CharacterGenerator
obj/Debug/net5.0/RazorDeclaration/Pages/Counter.razor.g.cs
2,772
C#
public abstract class BaseArtSet : ScriptableObject // TypeDefIndex: 9630 { // Methods // RVA: 0x22AEEF0 Offset: 0x22AEFF1 VA: 0x22AEEF0 protected void .ctor() { } }
19
73
0.719298
[ "MIT" ]
SinsofSloth/RF5-global-metadata
Funly/SkyStudio/BaseArtSet.cs
171
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using System.Windows.Forms; namespace TouchKB { class GraphicTouchKey : TouchKey { private Bitmap releasedBmp_ = null; private Bitmap pressedBmp_ = null; private Rectangle? textR...
27.770833
90
0.6009
[ "Unlicense" ]
gcardi/TouchKB
TouchKB/GraphicTouchKey.cs
1,335
C#
/* Copyright (c) Citrix Systems, Inc. * 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 * copyright notice...
65.937716
191
0.705237
[ "BSD-2-Clause" ]
GaborApatiNagy/xenadmin
XenAdmin/Images.cs
57,170
C#
// c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\d3dumddi.h(2625,13) using System; using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct _DDICERTIFICATEINFO { public _D3DDDI_CERTIFICATETYPE CertificateType; pu...
27.6
86
0.743961
[ "MIT" ]
bbday/DirectN
DirectN/DirectN/Generated/_DDICERTIFICATEINFO.cs
416
C#
namespace Panoukos41.Helpers.Services { /// <summary> /// A service that helps you change themes that implements <see cref="IThemeService"/>. /// </summary> public partial class ThemeService : IThemeService { private static IThemeService @default; /// <summary> /// It will ...
32.685714
91
0.566434
[ "MIT" ]
panoukos41/Helpers
src/Helpers/Abstractions/Services/ThemeService/ThemeService.cs
1,146
C#
/* Copyright (C) 2016 Alexey Lavrenchenko (http://prosecuritiestrading.com/) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unles...
29.402985
76
0.604569
[ "Apache-2.0" ]
AlexeyLA0509/PSTTrader
src/ProSecuritiesTrading.MOEX.FIX/Base/Message/ASTS/OrderCancelRejectData.cs
1,972
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> //--...
35.866667
151
0.586431
[ "Unlicense" ]
SED4906/clipboardmonitoring
Properties/Settings.Designer.cs
1,078
C#
namespace CustomCode.Core.Composition.SourceGenerator.Extensions { using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; using System; /// <summary> /// Extension methods for the <see cref="AttributeSyntax"/> type. /// </summary> public static class AttributeSyntaxExtens...
43.289474
117
0.561702
[ "MIT" ]
git-custom-code/Core-Composition
src/Core.Composition.SourceGenerator/Extensions/AttributeSyntaxExtensions.cs
4,935
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; using Android.Content; using Android.OS; using Android.Views; using Android.Views.Animations; using Microsoft.Maui.Controls.Compatibility.Platform.Android.AppCompat; using Microsoft.Maui.Control...
29.025492
189
0.712523
[ "MIT" ]
3DSX/maui
src/Compatibility/Core/src/Android/AppCompat/Platform.cs
25,049
C#
using System; using TMPro; using UnityEngine; public class ItemButton : MonoBehaviour { public void ButtonPressed() { if (FilteredInventoryWindowPopUp.Instance.FilteredInventoryWindow.activeSelf) { Guid.TryParse(transform.GetComponentsInChildren<TextMeshProUGUI>(true)[2].text, out ...
30.151515
115
0.683417
[ "Apache-2.0" ]
SchwiftyPython/PizzalikeRL
Assets/Resources/Scripts/UI/ItemButton.cs
997
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Backend.Entities; namespace Backend.DTO { public class MessageDTO { public int Id { get; set; } public int SenderId { get; set; } public string SenderUsername { get; set; } pub...
28.695652
52
0.637879
[ "Apache-2.0" ]
jamil-source/GamerFind
Backend/DTO/MessageDTO.cs
660
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.Drawing; #pragma warning disable CS1591, CS1572, CS1573 namespace Iot.Device.PiJuiceDevice.Models { /// <summary> /// Led configuration /// </summary> ...
38.583333
103
0.697624
[ "MIT" ]
HumJ0218/iot
src/devices/PiJuice/Models/LEDConfig.cs
928
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Specialized; using System.Net; using System.Threading.Tasks; using IdentityServer4.Configuration; using IdentityS...
33.733766
111
0.574783
[ "Apache-2.0" ]
belav/aspnetcore
src/Identity/ApiAuthorization.IdentityServer/src/Extensions/AutoRedirectEndSessionEndpoint.cs
5,195
C#
using System; namespace Nez.Tweens { public interface ITweenable { /// <summary> /// called by TweenManager each frame like an internal Update /// </summary> bool tick(); /// <summary> /// called by TweenManager when a tween is removed. Subclasses can optionally recycle themself. Subclasses /// sho...
22
108
0.639147
[ "MIT" ]
AlmostBearded/monogame-platformer
Platformer/Nez/Nez.Portable/Utils/Tweens/Interfaces/ITweenable.cs
1,080
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace ApprovalTests.Reporters { public class DotNet4Utilities { public static string GetFirstWorking(string path, string[] paths) { var fullPath = path; foreach (var p in ...
28.642857
74
0.523691
[ "Apache-2.0" ]
RasheR666/ApprovalTests.Net
ApprovalTests/Reporters/DotNet4Utilities.cs
1,162
C#
// Copyright (c) 2022 AccelByte Inc. All Rights Reserved. // This is licensed software from AccelByte Inc, for limitations // and restrictions contact your company contract manager. // This code is generated by tool. DO NOT EDIT. using System.Net; using System.IO; using System.Text.Json; using AccelByte.Sdk.Api.Platf...
31.061069
132
0.565249
[ "MIT" ]
AccelByte/accelbyte-csharp-sdk
AccelByte.Sdk/Api/Platform/Operation/Entitlement/GetUserEntitlementHistories.cs
4,069
C#
using Xunit; namespace AspNet.WebApi.Server.Tests { /// <inheritdoc /> public partial class ServerTests { [Fact] public void ApiInfo() { var apiInfo = new Startup(null).ApiInfo; Assert.Equal("AspNet.WebApi.Server.Tests", apiInfo.AssemblyName); A...
31.5
92
0.61039
[ "MIT" ]
LeonidEfremov/AspNet.WebApi.Server
AspNet.WebApi.Server.Tests/StartupTests.cs
695
C#
 namespace dqxEnthuse { partial class FullWindow { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <p...
37.688525
107
0.592431
[ "Unlicense" ]
john-guo/dqxEnthuse
dqxEnthuse/FullWindow.Designer.cs
2,301
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace firstwebapp....
29.685393
129
0.554883
[ "MIT" ]
Zeroks77/webapp
src/firstwebapp/Areas/Identity/Pages/Account/ResetPassword.cshtml.cs
2,644
C#
namespace Lpp.Dns.Data.Migrations { using Lpp.Dns.DTO.Security; using Lpp.Utilities; using System; using System.Data.Entity.Migrations; public partial class AddRequestTypeSecurity : DbMigration { public override void Up() { Sql("DROP TRIGGER AclRequestTypes_Inser...
73.452381
276
0.681037
[ "Apache-2.0" ]
Missouri-BMI/popmednet
Lpp.Dns.Data/Migrations/201410021843337_AddRequestTypeSecurity.cs
3,085
C#
using System; using System.Globalization; using ClearHl7.Extensions; using ClearHl7.Helpers; namespace ClearHl7.V281.Segments { /// <summary> /// HL7 Version 2 Segment RFI - Request For Information. /// </summary> public class RfiSegment : ISegment { /// <summary> /// Gets the ID f...
48.44
187
0.609827
[ "MIT" ]
davebronson/clear-hl7-net
src/ClearHl7/V281/Segments/RfiSegment.cs
4,846
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; using System.Management.Automation.Internal; using System.Mana...
31.75
149
0.72266
[ "MIT" ]
DCtheGeek/PowerShell
src/Microsoft.PowerShell.ScheduledJob/commands/EnableJobTrigger.cs
1,143
C#
// <copyright file="BingTests.cs" company="Automate The Planet Ltd."> // Copyright 2016 Automate The Planet Ltd. // Licensed under the Apache License, Version 2.0 (the "License"); // You may not use this file except in compliance with the License. // You may obtain a copy of the License at http://www.apache.org/licens...
46.096154
155
0.765957
[ "Apache-2.0" ]
pravrawa/AutomateThePlanet
Design-Architecture-Series/FailedTestsAnalysisDecorator/BingTests.cs
2,399
C#
#region License /* The MIT License * * Copyright (c) 2011 Red Badger Consulting * * 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 limitatio...
37.472222
81
0.716086
[ "MIT" ]
Halofreak1990/XPF
XPF/RedBadger.Xpf/HorizontalAlignment.cs
1,349
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; using Azure.Messaging.ServiceBus.Core; using Azure.Messaging.ServiceBus.Dia...
46.591346
165
0.63657
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/servicebus/Azure.Messaging.ServiceBus/src/Receiver/ServiceBusSessionReceiver.cs
9,693
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.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.Comp...
56.982275
262
0.636519
[ "MIT" ]
lubaozhen/azure-sdk-for-net
sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs
38,577
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace AirBreath.Server.Migrations { public partial class InitialCreate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "contacts", ...
41.302521
105
0.475381
[ "MIT" ]
krozhkov/airbreath
AirBreath.Server/Migrations/20200409095909_InitialCreate.cs
9,832
C#
using System; namespace problema2 { class Program { static void Main(string[] args) { Console.WriteLine("Avem triunghiul: "); triunghi t = new triunghi( p1: new Point(10, 10), p2: new Point(20, 20), p3: new Point(10, 30));...
23.785714
94
0.458709
[ "MIT" ]
iuliki/problema2
problema2/problema2/Program.cs
1,334
C#
using UnityEngine; using System.Collections; public class WindowManager : MonoBehaviour { [HideInInspector] public GenericWindow[] windows; public int currentWindowID; public int defaultWindowID; public GenericWindow GetWindow(int value){ return windows [value]; } private void ToggleVisability(int value, ...
18.686275
67
0.660021
[ "MIT" ]
dparke/dragonstabbers
Assets/AdvancedUI/Scripts/Managers/WindowManager.cs
955
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...
30
95
0.575342
[ "MIT" ]
AzureAutomationTeam/azure-sdk-for-net
src/SDKs/CognitiveServices/dataPlane/Vision/Vision/Generated/Face/Models/UpdatePersonFaceDataRequest.cs
2,190
C#
using System; using System.Net; using System.Net.Sockets; using System.Reactive.Subjects; using System.Threading; using System.Threading.Tasks; using NetworkMonitor.Framework.Logging; using NetworkMonitor.Models.Entities; using NLog; namespace NetworkMonitor.ViewModels.Services { internal class TcpTransmissionClient...
23.75
100
0.741176
[ "MIT" ]
taori/Network-Monitor
src/NetworkMonitor/NetworkMonitor.ViewModels/Services/TcpTransmissionClient.cs
1,617
C#
using DCT.ILR.Model; using FluentAssertions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace BusinessRules.POC.Tests { public class FileDataTests { [Fact] public void Populate_FilePreparationDate() ...
24.078947
76
0.561749
[ "MIT" ]
SkillsFundingAgency/DC-Alpha-ValidationService-POC
src/DCT.ValidationService.POC/BusinessRules.POC.Tests/FileDataTests.cs
917
C#
using LWFramework.Core; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml; using UnityEditor; using UnityEditor.Compilation; using UnityEngine; public class DllBuild { /// <summary> /// 打包完成,返回一个bool表示成功还是失败 /// </summary> public Action<DllBuild, bool...
43.591398
2,004
0.639245
[ "Apache-2.0" ]
chen0123bin/MyTools
ToolsProject/Assets/Packages/LWFramework/Editor/BuildEditor/DllBuild.cs
8,250
C#
namespace Aviant.DDD.Infrastructure.Services { using MailKit.Net.Smtp; public interface ISmtpClientFactory { public SmtpClient GetSmtpClient(); } }
17.3
44
0.699422
[ "MIT" ]
panosru/Aviant.DDD
src/Infrastructure/Services/ISmtpClientFactory.cs
173
C#
using System; using System.Collections.Generic; using System.Reflection; using System.Linq; using System.Text; using ILRuntime.Runtime.Enviorment; namespace ILRuntime.Runtime.CLRBinding { static class MethodBindingGenerator { internal static string GenerateMethodRegisterCode(this Type type, MethodInfo...
50.104972
219
0.404528
[ "MIT" ]
AlunWorker/ET-
Unity/Assets/ThirdParty/ILRuntime/ILRuntime/Runtime/CLRBinding/MethodBindingGenerator.cs
27,209
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: AssemblyConfiguration("")] [assembly: AssemblyCompany("")...
41
84
0.775353
[ "MIT" ]
leonardo-buta/automated-nps
aspnet-core/src/NPS.Core/Properties/AssemblyInfo.cs
781
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public interface Buyable { int Price{ get; set; } }
17
33
0.757353
[ "MIT" ]
unagi11/project21
Assets/Scripts/Model/Buyable.cs
138
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...
38.970803
161
0.60236
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/DeploymentManager/V20180901Preview/ServiceTopology.cs
5,339
C#
using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Text; using M8OU.Models; namespace M8OU.Data { public class ApplicationDbContext : IdentityDbContext { public DbSet<FormHistory> FormHistories { get...
24.809524
83
0.710173
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
NorthstarWang/GoogleFormSubmitter
Data/ApplicationDbContext.cs
521
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("Wil...
37.513514
84
0.747118
[ "MIT" ]
krypt-lynx/PawnTableGrouped
Source/PawnTableGrouped/Properties/AssemblyInfo.cs
1,391
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...
68.534161
431
0.706181
[ "MIT" ]
yifanz0/azure-powershell
src/HealthcareApis/generated/api/Models/Api20211101/ServiceAuthenticationConfigurationInfo.PowerShell.cs
10,874
C#
using System.Net.Http.Headers; namespace RabbitRelink.Serialization.Abstractions; public interface ISerializer { Task<byte[]?> SerializeAsync<T>(T? value, CancellationToken token = default) where T : class; Task<byte[]?> SerializeAsync(object? value, CancellationToken token = default); MediaTypeH...
31.470588
98
0.721495
[ "MIT" ]
ijsgaus/rabbit-relink
src/RabbitRelink.Serialization.Abstractions/ISerializer.cs
521
C#
// Copyright (c) rubicon IT GmbH, www.rubicon.eu // // See the NOTICE file distributed with this work for additional information // regarding copyright ownership. rubicon licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may not use this // file except in compliance with the Lic...
34.64
98
0.750577
[ "ECL-2.0", "Apache-2.0" ]
bubdm/TypePipe
Development/UnitTesting/ObjectMothers/MutableReflection/Implementation/TestableCustomPropertyInfo.cs
1,732
C#
#pragma warning disable 0618 using System; using System.Linq; using System.Collections.Generic; using UnityEngine; using UnityEditor; using UnityEditor.EditorTools; using UnityEditor.Experimental.Rendering.Universal.Path2D.GUIFramework; using UnityObject = UnityEngine.Object; #if !UNITY_2020_2_OR_NEWER using ToolManag...
28.858
151
0.543142
[ "CC0-1.0" ]
CemCkrc/URP_BURGER_SHADER
Library/PackageCache/com.unity.render-pipelines.universal@11.0.0/Editor/2D/ShapeEditor/EditorTool/PathEditorTool.cs
14,429
C#
 namespace NumbersN1 { using System; class StartUp { static void Main(string[] args) { int num = int.Parse(Console.ReadLine()); for (int i = num; i >= 1; i--) { Console.WriteLine(i); } } } }
16.277778
52
0.423208
[ "MIT" ]
beinsaduno/SoftUni-Software-Engineering
C#/M01C#ProgrammingBasics/L04ForLoop/Lab/E02NumbersN1/StartUp.cs
295
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Allgemeine Informationen über eine Assembly werden über die folgenden // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // die mit einer Assembly verknüpft sind. [assembly: A...
41.638889
106
0.767845
[ "MIT" ]
chandusekhar/gViewGisOS
gView.DataSources.PostGIS.UI/Properties/AssemblyInfo.cs
1,517
C#
//////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2009, Daniel Kollmann // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted // provided that the following conditions are met: // /...
57.086957
236
0.652704
[ "BSD-3-Clause" ]
Manistein/behaviac
tools/designer/BehaviacDesignerBase/NodeViewData/NodeViewDataStyled.cs
5,252
C#
using System; using UnityEngine; using WEngine; [Serializable] public class ContainerData { // Constants public AssetContainerData Asset; // Editor-assignable instances public UiContainerData Ui; // Pure instances public SceneContainerData Scene = new SceneContainerData(); }
17.941176
63
0.734426
[ "MIT" ]
wishfuldroplet/unity-projecta
Assets/Sources/Modules/GameData/ContainerData.cs
307
C#
using System.Windows; using ErikEJ.SqlCeToolbox.Helpers; namespace ErikEJ.SqlCeToolbox.Dialogs { public partial class RenameDialog { public string NewName { get; set; } // ReSharper disable once UnusedAutoPropertyAccessor.Global public bool DbRename { get; set; } public Renam...
24.836735
73
0.556286
[ "Apache-2.0" ]
BekoSan/SqlCeToolbox
src/GUI/SSMSToolbox/Dialogs/RenameDialog.xaml.cs
1,219
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 Microsoft.ML.Runtime; using Microsoft.ML.Runtime.CommandLine; ...
47.670051
180
0.620275
[ "MIT" ]
SolyarA/machinelearning
src/Microsoft.ML/Runtime/EntryPoints/OneVersusAllMacro.cs
9,391
C#
using Appraiser.Data.Models; using Appraiser.DTOs; namespace Appraiser.Mapping { public class StaffMapper : Mapper<StaffDTO, Staff> { public StaffMapper(ChangeChecker<StaffDTO> checker) : base(checker) { } public override Staff ToModel(StaffDTO from, Staff to) { ...
31.725
124
0.515366
[ "MIT" ]
dominicshaw/Appraiser
Appraiser.Mapping/StaffMapper.cs
1,271
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.Immutable; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeA...
78.164179
184
0.801413
[ "Apache-2.0" ]
HenrikWM/roslyn
src/Features/CSharp/Portable/Structure/CSharpBlockStructureProvider.cs
5,239
C#
 namespace PlayDrone2SQL { using System.Collections.Generic; using Models; using System; public class CategoryLogger : IWriter<Category>, IReader { private IWriter<Category> writer; private IReader reader; private ILogger log; public CategoryLogger(IWriter<Categor...
26.942308
112
0.569593
[ "MIT" ]
alexhyett/PlayDrone2SQL
PlayDrone2SQL/CategoryLogger.cs
1,403
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...
26.307692
88
0.678363
[ "ECL-2.0", "Apache-2.0" ]
XBeg9/pulumi-databricks
sdk/dotnet/Aws/Inputs/MwsNetworksErrorMessageArgs.cs
684
C#
//----------------------------------------------------------------------- // <copyright file="TcpListener.cs" company="Akka.NET Project"> // Copyright (C) 2009-2021 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2021 .NET Foundation <https://github.com/akkadotnet/akka.net> // </copyright> //--...
33.933333
144
0.525431
[ "Apache-2.0" ]
DeepakArora76/akka.net
src/core/Akka/IO/TcpListener.cs
4,583
C#
using System; using System.Collections.Generic; namespace MinecraftClient.Mapping.EntityPalettes { public class EntityPalette1161 : EntityPalette { private static Dictionary<int, EntityType> mappings = new Dictionary<int, EntityType>(); static EntityPalette1161() { mappings...
44.125984
96
0.590828
[ "MIT" ]
IsaacJuracich/Replay-MCBot
Mapping/EntityPalettes/EntityPalette1161.cs
5,604
C#
// Copyright 2007-2017 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // 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...
42.242424
139
0.694405
[ "Apache-2.0" ]
OriginalDeveloper/MassTransit
src/MassTransit/Transports/InMemory/IInMemoryHost.cs
1,396
C#
using System; using System.Collections.Generic; using System.Text; namespace Yunyong.Redis.Base { public interface ICache { bool Expire(TimeSpan validTimeSpan, params string[] key); bool Rename(string oldKey, string newKey); } }
19.923077
65
0.698842
[ "Apache-2.0" ]
yunyongtech/Yunyong
src/Yunyong/Yunyong.Redis/Base/ICache.cs
261
C#
using AutoMapper; using VISOKI_NAPON.Controllers.Resources; using VISOKI_NAPON.Questions; using VISOKI_NAPON.PlayersTopList; namespace VISOKI_NAPON.Mapping { public class MappingProfile : Profile { public MappingProfile() { CreateMap<Question, QuestionResource>(); ...
24.1875
53
0.653747
[ "MIT" ]
goran-milenkovic/VisokiNapon
VisokiNapon/Mapping/MappingProfile.cs
387
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; using UnityEngine.EventSystems; namespace Microsoft.MixedReality.Toolkit.Diagnostics { /// <summary> /// The default implementation of th...
30.478873
133
0.524677
[ "MIT" ]
AdamMitchell-ms/MixedRealityToolkit-Unity
Assets/MixedRealityToolkit.Services/DiagnosticsSystem/MixedRealityDiagnosticsSystem.cs
10,822
C#
// ReSharper disable All namespace OpenTl.Schema { using System; using System.Collections; using System.Text; using OpenTl.Schema; using OpenTl.Schema.Serialization.Attributes; [Serialize(0x688a30aa)] public sealed class TUpdateNewStickerSet : IUpdate { [SerializationOrder(0)] public OpenTl.S...
18.8
71
0.744681
[ "MIT" ]
zzz8415/OpenTl.Schema
src/OpenTl.Schema/_generated/_Entities/Update/TUpdateNewStickerSet.cs
378
C#
using Microsoft.Xrm.Sdk.Client; using System; namespace Handy.Crm.Powershell.Cmdlets.Helpers { public static class SecurityTokenResponseExtensions { public static bool HasExpired(this SecurityTokenResponse securityTokenResponse) { return securityTokenResponse == null || DateTime.Ut...
28.214286
119
0.726582
[ "MIT" ]
sergeytunnik/HandyCrmPS
Handy.Crm.Powershell.Cmdlets/Helpers/SecurityTokenResponseExtensions.cs
397
C#
using Tellma.Model.Common; namespace Tellma.Repository.Common { /// <summary> /// The .NET version of the user defined table type [dbo].[StringList]. /// </summary> public class StringListItem : EntityWithKey<string> { } }
19.230769
75
0.648
[ "Apache-2.0" ]
lulzzz/tellma
Tellma.Repository.Common/Dto/StringListItem.cs
252
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.IO; using Microsoft.Azure.WebJobs.Script.Config; namespace Microsoft.Azure.WebJobs.Script.WebHost { public class WebHostSettings { ...
41.402985
117
0.623648
[ "MIT" ]
Armandd123/azure-functions-host
src/WebJobs.Script.WebHost/WebHostSettings.cs
2,776
C#
using System.Text; using System.ServiceModel.Channels; using System.Xml; namespace WcfRestContrib.ServiceModel.Channels { public class BinaryBodyWriter : BodyWriter { private readonly byte[] _data; public BinaryBodyWriter(string data) : base(true) { _data = Enc...
26.034483
80
0.603974
[ "MIT" ]
mikeobrien/WcfRestContrib
src/WcfRestContrib/ServiceModel/Channels/BinaryBodyWriter.cs
757
C#