content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System; using System.Text; namespace StringSample { class Program { static void Main() { SimpleStrings(); UsingStringBuilder(); Console.ReadLine(); } public static void UsingStringBuilder() { var greetingBuilder = ...
28.850746
95
0.470771
[ "MIT" ]
Bazzaware/ProfessionalCSharp7
StringsAndRegularExpressions/StringSample/Program.cs
1,935
C#
using UnityEngine; using UnityEngine.UI; public class MethodCalls : MonoBehaviour { [SerializeField] private Animator animator; [SerializeField] private Text output; [SerializeField] private InputField inputField; private AnimationManager am; private void Start() { am = Anima...
30
90
0.636667
[ "MIT" ]
MathewHDYT/Unity-Animation-Manager
Example Project/Assets/Scripts/MethodCalls.cs
1,500
C#
using UnityEngine; using KBEngine; using System; using System.Collections; namespace KBEngine { /* KBEngine的数学相关模块 */ public class KBEMath { public static float int82angle(SByte angle, bool half) { float halfv = 128f; if(half == true) halfv = 254f; halfv = ((float)angle) * ((float)System.Math.PI / h...
14.59375
66
0.674518
[ "MIT" ]
15951836388/m2client-u3d
Assets/Scripts/kbengine_unity3d_plugins-0.9.6/Math.cs
483
C#
namespace Auction.Data.Migrations { using System; using System.Data.Entity.Migrations; using System.Linq; using Data; using Models; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity; public sealed class Configuration : DbMigrationsConfiguration<Auction.Dat...
35.663551
188
0.600629
[ "MIT" ]
JozefinaNikolova/AuctionWebsite
Auction/Auction.Data/Migrations/Configuration.cs
3,816
C#
// // Copyright 2013 Carbonfrost Systems, Inc. (http://carbonfrost.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 // // Unless r...
34.634146
102
0.639085
[ "Apache-2.0" ]
Carbonfrost/f-core
dotnet/src/Carbonfrost.Commons.Core/Runtime/ProviderRegistrationAttribute.cs
2,840
C#
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Traders Dynamic Index")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Traders Dynamic Index")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly:...
30
56
0.760417
[ "MIT" ]
Mikai47/cAlgoBot
Sources/Indicators/Traders Dynamic Index/Traders Dynamic Index/Properties/AssemblyInfo.cs
482
C#
namespace EnvironmentAssessment.Common.VimApi { public class UnsupportedVmxLocation : VmConfigFault { } }
15.571429
52
0.807339
[ "MIT" ]
octansIt/environmentassessment
EnvironmentAssessment.Wizard/Common/VimApi/U/UnsupportedVmxLocation.cs
109
C#
// The MIT License (MIT) // // Copyright (c) 2014-2017, Institute for Software & Systems Engineering // // 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 wi...
31.781818
80
0.711098
[ "MIT" ]
isse-augsburg/ssharp
SafetySharpTests/Analysis/Invariants/Violated/array components.cs
1,750
C#
using System; using System.Net.Http; using System.Net.Security; using System.Security.Cryptography.X509Certificates; namespace DataAPI.Client { internal class DataApiHttpClientProxy : IHttpClientProxy { private bool IgnoreSslNameMismatch { get; } private HttpClientHandler httpClien...
33.044776
147
0.602529
[ "MIT" ]
mindleaving/dataapi
DataAPI.Client/DataApiHttpClientProxy.cs
2,216
C#
using AvaloniaEdit.Document; using AvaloniaEdit.Rendering; using AvaloniaEdit.TextMate; using NUnit.Framework; namespace AvaloniaEdit.Tests.TextMate { [TestFixture] internal class TextEditorModelTests { [Test] public void Lines_Should_Have_Valid_Count() { TextView text...
33.865385
84
0.592683
[ "MIT" ]
AvaloniaEdit/AvaloniaEdit
test/AvaloniaEdit.Tests/TextMate/TextEditorModelTests.cs
12,329
C#
// Generated class v2.13.0.0, don't modify using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; namespace NHtmlUnit.Javascript.Host.Svg { public partial class SVGFEOffsetElement : NHtmlUnit.Javascript.Host.Svg.SVGElement { ...
31.666667
141
0.719617
[ "Apache-2.0" ]
timorzadir/NHtmlUnit
app/NHtmlUnit/Generated/Javascript/Host/Svg/SVGFEOffsetElement.cs
1,045
C#
using System; using System.Runtime.InteropServices; namespace Ultraviolet.SDL2.Native { #pragma warning disable 1591 [StructLayout(LayoutKind.Sequential)] public struct SDL_KeyboardEvent { public UInt32 type; public UInt32 timestamp; public UInt32 windowID; public Byte stat...
24.05
41
0.683992
[ "Apache-2.0", "MIT" ]
MicroWorldwide/ultraviolet
Source/Ultraviolet.SDL2/Shared/Native/SDL_KeyboardEvent.cs
483
C#
using Microsoft.VisualStudio.Services.Licensing; using TfsCmdlets.Cmdlets.Identity; using Microsoft.VisualStudio.Services.Licensing.Client; namespace TfsCmdlets.Controllers.Identity.User { [CmdletController(typeof(AccountEntitlement))] partial class GetUserController { protected override IEnumerabl...
36.887324
129
0.415808
[ "MIT" ]
igoravl/tfscmdlets
CSharp/TfsCmdlets/Controllers/Identity/User/GetUserController.cs
2,619
C#
using System; using System.Threading; using EasyNetQ.AmqpExceptions; using EasyNetQ.Events; using EasyNetQ.Logging; using EasyNetQ.Sprache; using RabbitMQ.Client; using RabbitMQ.Client.Events; using RabbitMQ.Client.Exceptions; namespace EasyNetQ.Producer { public class PersistentChannel : IPersistentChannel {...
29.645
110
0.547141
[ "MIT" ]
Pliner/EasyNetQ
Source/EasyNetQ/Producer/PersistentChannel.cs
5,931
C#
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.4 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ------------------------------...
35.145923
164
0.696361
[ "Apache-2.0" ]
0u812/roadrunner
third_party/libSBML-5.10.0-Source/src/bindings/csharp/csharp-files-win/ModelHistory.cs
16,378
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
30.00813
101
0.599837
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/EC2/Generated/Model/CreateNetworkInterfacePermissionRequest.cs
3,691
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Service.ClientProfile.Pos...
37.45045
128
0.532115
[ "MIT" ]
MyJetWallet/Service.ClientProfile
Service.ClientProfile.Postgres/Migrations/20211102112423_version_5.Designer.cs
4,159
C#
using Greg.Xrm.Logging; namespace Greg.Xrm.EnvironmentSolutionsComparer.Views.Solutions.ComponentResolution { public class ResolverForRibbonCustomizations : ResolverCommon { public ResolverForRibbonCustomizations(ILog log) : base(log) { this.LabelExtractor = entity => { var label = entity.GetAttribu...
24.821429
99
0.746763
[ "MIT" ]
neronotte/Greg.Xrm
src/Greg.Xrm.EnvironmentSolutionsComparer/Views/Solutions/ComponentResolution/ResolverForRibbonCustomizations.cs
697
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...
29.974359
114
0.622327
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/KinesisAnalytics/Generated/Model/LambdaOutputDescription.cs
2,338
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
41.55914
143
0.603881
[ "MIT" ]
Acidburn0zzz/azure-powershell
src/ResourceManager/Profile/Commands.Profile.Test/CommonDataCmdletTests.cs
7,547
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. // Modifications copyright (c) 2021 Sharafeev Ravil using System; using Telegram.Bot.Host.Middleware; namespace Telegram.Bot.Host.ApplicationBuilder {...
31.210526
111
0.743676
[ "Apache-2.0" ]
SharafeevRavil/Telegram.Bot.Host
Telegram.Bot.Host/ApplicationBuilder/IApplicationBuilder.cs
593
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.Linq; using System.Security.Cryptography.X509Certificates; using Test.Cryptography; using Xunit; namespace System.Security.Cryptography.Pkcs.Tests { public static c...
39.222222
132
0.579519
[ "MIT" ]
333fred/runtime
src/libraries/System.Security.Cryptography.Pkcs/tests/Rfc3161/TimestampTokenTests.cs
42,713
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 ...
42.178571
88
0.800593
[ "BSD-2-Clause" ]
EastBenchTech/MatterControl
MatterControlLib/Library/Interfaces/ILibraryWritableContainer.cs
2,364
C#
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Numerics; using System.Runtime.Remoting.Messaging; using System.Text; using System.Threading.Tasks; namespace Tetris.domain { // Authors: DeAngelo Wilson, Name2 // Description: A class which stores...
31.455516
165
0.451295
[ "Apache-2.0" ]
shade219/Tetris
Tetris/domain/BlockGrid.cs
8,841
C#
using System; namespace ADOUtils { public class Connection : IConnection { private readonly Action _action; public Connection(Action action = null) { _action = action ?? delegate {}; } public virtual void Close() { _action.Invoke(); } public virtual void Dispose() { ...
14.583333
42
0.608571
[ "Apache-2.0" ]
gimmi/adoutils
src/ADOUtils/Connection.cs
352
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Net.Http; using System.Reflection; using System.ComponentModel.DataAnnotations; using SF.Sys.Entities; using SF.Sys.Services; using SF.Sys.Collections.Generic; using SF.Sys....
27.950166
133
0.686557
[ "Apache-2.0" ]
etechi/ServiceFramework
Projects/Server/Common/SF.Common.BackEndConsoleServices.Implements/Front/BackEndConsoleExportService.cs
8,553
C#
using System.Collections.Generic; namespace WinRTXamlToolkit.Controls { public sealed partial class AutoCompleteTextBox { /// <summary> /// Provides a shared interface for all autocomplete distance scoring and suggestion providing algorithms. /// </summary> public inte...
41.318182
115
0.633663
[ "MIT" ]
JUV-Studios/WinRTXamlToolk
WinRTXamlToolkit/Controls/AutoCompleteTextBox/Algorithm/IAutoCompletable.cs
911
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace RemoteDeploy { public class Program { public s...
25.703704
70
0.645533
[ "MIT" ]
ErikXu/remote-deploy
src/RemoteDeploy/Program.cs
694
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.ViewManagement; using Wind...
39.07619
99
0.620278
[ "MIT" ]
djeedai/skescher
skescher/App.xaml.cs
4,105
C#
using System; using System.Linq; using System.Collections.Generic; namespace ABC086C { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var plan = Enumerable.Range(0, n).Select(i => { var input = Console...
25.666667
83
0.420579
[ "MIT" ]
KoyashiroKohaku/AtCoder
csharp/abs/11_ABC086C/Program.cs
1,001
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace NModbusTCP.Pages { public class ErrorModel : PageModel { public string RequestId { get; set; } ...
25.791667
92
0.696284
[ "MIT" ]
tilizi/NModbus
NModbusTCP/Pages/Error.cshtml.cs
619
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WindowsKernelBrowserUI { class CTLCodeUtility { public static int GetCTLCode(DeviceType deviceType, int Function, MethodType Method, AccessType Access) { r...
22.694444
111
0.607099
[ "MIT" ]
tlsnns/WindowsKernelBrowser
src/WindowsKernelBrowser/WindowsKernelBrowserUI/CTLCodeUtility.cs
819
C#
using System; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using Microsoft.Owin.Security.Cookies; using Microsoft.Owin.Security.Google; using Owin; using BugTrackerUI.Models; namespace BugTrackerUI { public partial class Startup { // For more information...
50.867647
160
0.658861
[ "MIT" ]
VeronikaDmytryk/BugTracker
BugTrackerApp/BugTrackerUI/App_Start/Startup.Auth.cs
3,461
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("Tra...
38.432432
84
0.750352
[ "MIT" ]
angelrps/ARP_Toolkit
2020/TransferViewTemplates/VS_TransferViewTemplate/Properties/AssemblyInfo.cs
1,425
C#
using System; namespace NeoBoilerplate.Domain.Common { public class AuditableEntity { public string? CreatedBy { get; set; } public DateTime CreatedDate { get; set; } public string? LastModifiedBy { get; set; } public DateTime? LastModifiedDate { get; set; } } }
23.769231
55
0.640777
[ "Apache-2.0" ]
NeoShivam/NeoBoilerplate-v6.0
src/Core/NeoBoilerplate.Domain/Common/AuditableEntity.cs
311
C#
/******************************************************************************* * Copyright 2009-2019 Amazon Services. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * * You may not use this file except in compliance with the License. * You may obtain a copy of the Licens...
28.41844
118
0.662091
[ "BSD-3-Clause" ]
skuvault-integrations/amazonAccess
src/AmazonAccess/Services/Finances/Model/ListFinancialEventsByNextTokenRequest.cs
4,007
C#
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Harrison314.EntityFrameworkCore.Encryption { public class DbContextEncryptedProviderOptions<TDbContext> where TDbContext : DbContext { ...
22.307692
67
0.604598
[ "MIT" ]
harrison314/Harrison314.EntityFrameworkCore.Encryption
src/src/Harrison314.EntityFrameworkCore.Encryption/DbContextEncryptedProviderOptions.cs
872
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.Json; using System.Threading.Tasks; namespace MessengerLibrary { public class Message { public DateTime TimeSend { get; set; } public string Text { get; set; } public int Sender { get...
33.714286
123
0.592691
[ "Apache-2.0" ]
atom20000/Messenger
MessengerLibrary/Message.cs
1,995
C#
using UnityEditor; using UnityEngine; using System.Collections; class CreatePrefabFromSelected : ScriptableObject { const string menuTitle = "GameObject/Create Prefab From Selected"; /// <summary> /// Creates a prefab from the selected game object. /// </summary> [MenuItem(menuTitle)] static ...
30.586207
92
0.568771
[ "MIT" ]
DennisTDev/HackPrinceton
Assets/Editor/Procedural Low Poly Cities/Editor/CreatePrefabFromSelected.cs
1,776
C#
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Web; using AutoMapper; using NHS111.Business.ITKDispatcher.Api.ITKDispatcherSOAPService; using NHS111.Business.ITKDispatcher.Api.Mappings; using StructureMap; using StructureMap.Graph; using AutoMapperWebConfigur...
35.7
168
0.710551
[ "Apache-2.0" ]
NHSChoices/nhs111-online
NHS111/NHS111.Business.ITKDispatcher.Api/IoC/ItkDispatcherApiRegistry.cs
1,073
C#
/* * Copyright (c) 2019-2021 Angouri. * AngouriMath is licensed under MIT. * Details: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md. * Website: https://am.angouri.org. */ using System; using System.Collections.Generic; using System.Linq; using AngouriMath.Core; using AngouriMath.Core.HashC...
40.553571
136
0.590929
[ "MIT" ]
KuhakuPixel/AngouriMath
Sources/AngouriMath/Core/Entity/Omni/Entity.Piecewise.cs
4,544
C#
using System; using System.Collections.Generic; namespace ExtremeAndy.CombinatoryFilters { public interface IFilterNode : IEquatable<IFilterNode> { bool IsCollapsed { get; } /// <summary> /// As for <see cref="IEquatable{T}.Equals"/>, but uses an unordered set comparison /// o...
40.342105
124
0.615134
[ "MIT" ]
extremeandy/CombinatoryFilters
src/IFilterNode.cs
3,068
C#
using System; using System.Collections; using System.Linq; using Jint.Native; using Jint.Native.Array; using Jint.Runtime.Descriptors; using Jint.Runtime.Descriptors.Specialized; using Jint.Runtime.Interop; namespace Knyaz.Optimus.Scripting.Jint.Internal { using Engine = global::Jint.Engine; /// <summary> /// Li...
23.5
95
0.690039
[ "MIT" ]
RusKnyaz/Optimus
source/Knyaz.Optimus.Scripting.Jint/Internal/ListAdapter.cs
2,070
C#
// Copyright © 2021 Matan Brightbert // // 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 ag...
59.040486
475
0.434959
[ "Apache-2.0", "MIT" ]
matanbright/Scrupdate
Scrupdate/Classes/Objects/Settings.cs
14,586
C#
using System; using System.Collections.Generic; using SciChart.UI.Bootstrap.Utility; namespace SciChart.UI.Bootstrap { public class AttributedTypeDiscoveryService : IAttributedTypeDiscoveryService { private static ILogFacade Log = LogManagerFacade.GetLogger(typeof(AttributedTypeDiscoveryService)); ...
37.74359
140
0.693614
[ "Apache-2.0" ]
ABTSoftware/SciChart.Wpf.UI
SciChart.UI.Bootstrap/AttributedTypeDiscoveryService.cs
1,474
C#
//------------------------------------------------------------------------------ // <auto-generated> // O código foi gerado por uma ferramenta. // Versão de Tempo de Execução:4.0.30319.42000 // // As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se // o código for gerado...
44.973684
153
0.623757
[ "MIT" ]
vilsonmoro/curso-csharp
windowsForms/TesteSession/Properties/Settings.Designer.cs
1,720
C#
namespace MainApp.Samples { public class SampleDto { public int Value { get; set; } } }
15.428571
38
0.583333
[ "MIT" ]
antosubash/abp-add-module-bug
src/MainApp.Application.Contracts/Samples/SampleDto.cs
110
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("az...
37.756757
84
0.742305
[ "MIT" ]
firehouse/azure-camp-dec
demo/sql-demo/azure-sql-cs/azure-sql-cs/Properties/AssemblyInfo.cs
1,400
C#
using System; using JetBrains.Annotations; namespace CSharp.Rop.GenericResult { public static partial class ResultExtensions { public static TK Match<TK, T>(this Result<T> result, [NotNull] Func<T, TK> onSuccessHasValue, [NotNull] Func<TK> onSuccessIsNone, [NotNull] Func<Error, TK> onFailure) {...
34.512195
174
0.584452
[ "MIT" ]
rferstl/CSharp.Rop.Generic.Result
CSharp.Rop.GenericResult/Result/Match.cs
1,415
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
37.04878
96
0.564714
[ "MIT" ]
blee-usa/BlogEngine28
admin/Settings/Advanced.aspx.designer.cs
7,597
C#
/* MIT License Copyright (c) 2019 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, s...
39.908367
181
0.508785
[ "MIT" ]
Tauron1990/TextAdventure
Alt/Temp1/Room.cs
20,034
C#
using System; using System.Collections.Generic; using System.Text; using System.Windows; namespace MedabotsRandomizer { public class BattleWrapper : Wrapper<Battle> { public BattleWrapper(int id, int memory_location, byte[] data) : base(id, memory_location, data) { } public st...
34.863636
104
0.688396
[ "MIT" ]
STulling/Medabots-Randomizer
MedabotsRandomizer/Wrappers/BattleWrapper.cs
769
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using HandyControl.Tools.Extension; using me.cqp.luohuaming.CustomGacha.UI.Command; using me.cqp.luohuaming.CustomGacha.UI.View; using PublicInfos; namespace me.cqp.luohuaming.CustomGacha.UI.ViewModel {...
29.772152
134
0.56165
[ "Apache-2.0" ]
Hellobaka/CustomGacha
me.cqp.luohuaming.CustomGacha.UI/ViewModel/NewPoolStepViewModel.cs
2,354
C#
using System; using Xunit; namespace GraphQL.EntityFrameworkCore.Helpers.Tests { public class ResolveFieldContextExtensionsTests { [Fact] public void Should_ThrowException_When_TryingToGetServiceWhenRequestServicesIsNotSet() { var context = new ResolveFieldContext<object>();...
32.294118
107
0.704918
[ "MIT" ]
ganhammar/GraphQL.EntityFrameworkCore.Helpers
tests/src/GraphQL.EntityFrameworkCore.Helpers.Tests/ResolveFieldContextExtensionsTests.cs
549
C#
using System.Diagnostics.CodeAnalysis; using KLineEdCmdApp.Controller.Base; using KLineEdCmdApp.Model; using MxReturnCode; using KLineEdCmdApp.Utils; using KLineEdCmdApp.View.Base; namespace KLineEdCmdApp.View { [SuppressMessage("ReSharper", "ArrangeStaticMemberQualifier")] public class MsgLineView : BaseView...
37.773333
166
0.517826
[ "MIT" ]
wpqs/GenDotNetCmdApps
KLineEd/KLineEdCmdApp/View/MsgLineView.cs
2,835
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop.Windows...
48.269231
145
0.758566
[ "MIT" ]
IngmarBitter/terrafx.interop.windows
sources/Interop/Windows/Windows/um/winioctl/STORAGE_DISK_HEALTH_STATUS.cs
1,257
C#
#region License /* * Copyright 2019 Jiruffe * * 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 ...
30.276
158
0.45792
[ "Apache-2.0" ]
jiruffe/csiraffe
Jiruffe.CSiraffe/Utility/StringExtensionMethods.cs
7,571
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was not generated by a tool. but for stylecop suppression. // </auto-generated> //------------------------------------------------------------------------------ using Microsoft.VisualStudio.TestTools.U...
48.25
174
0.627254
[ "Apache-2.0" ]
StrixIT/StrixIT.Platform.Modules.Membership
StrixIT.Platform.Modules.Membership.Tests/Attributes/AuthorizationAttributeTests.cs
9,652
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "li...
32.2125
107
0.605355
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/GlueDataBrew/Generated/Model/ListJobRunsResponse.cs
2,577
C#
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: DataStructures.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::...
35.379894
224
0.684094
[ "MIT" ]
jstedfast/CoreML
CoreML/DataStructures.cs
33,434
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; namespace KeyMan.Core { public class CryptoManager { public static CryptoKeyPair GenerateKeyPair(int keySize = 1024) { var cryptoKeyPair = new CryptoKeyPair {Id = Guid.NewGuid()}; ...
31.897436
108
0.644695
[ "MIT" ]
ballance/KeyMan
KeyMan.Core/CryptoManager.cs
1,244
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using NetTopologySuite.Geometries; using RTools_NTS.Util; namespace NetTopologySuite.IO { /// <summary> /// Reads a sequence of {@link Geometry}s in WKBHex format /// from a text file. /// Each WKBHe...
40.288591
111
0.588372
[ "EPL-1.0" ]
m1dst/NetTopologySuite
src/NetTopologySuite/IO/WKBHexFileReader.cs
6,005
C#
using System.Collections.Generic; using System.Linq; using UnityEngine; using Google.Protobuf; namespace mlagentsdev { /// <summary> /// The batcher is an RL specific class that makes sure that the information each object in /// Unity (Academy and Brains) wants to send to External is appropriately batche...
37.986348
99
0.573854
[ "Apache-2.0" ]
vkakerbeck/ml-agents-dev
UnitySDK/Assets/ML-Agents/Scripts/Batcher.cs
11,132
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace TNBCSurvey.Models { public class SurveyAnswer { [Key] public int Answer_SID { get; set; } [Req...
25.48
52
0.637363
[ "MIT" ]
hca-foundation/newbeginnings
visualstudio/NewBeginningsSurvey/TNBCSurvey/Models/SurveyAnswer.cs
639
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; using PrintNodeNet.Http; namespace PrintNodeNet { public sealed class PrintNodePrinter { [JsonProperty("id")] public long Id { get; set; } [JsonPropert...
31.096774
114
0.626037
[ "MIT" ]
Ben52/printnode-net
PrintNodePrinter.cs
1,930
C#
 namespace XamarinShot.Models { using ARKit; using Foundation; using System; using UIKit; public class KeyPositionAnchor : ARAnchor { public KeyPositionAnchor(UIImage image, OpenTK.NMatrix4 transform, ARWorldMappingStatus mappingStatus) : base("KeyPosition", transform) { ...
30.777778
143
0.580712
[ "MIT" ]
Art-Lav/ios-samples
ios12/XamarinShot/XamarinShot/Core/World Map Loading/KeyPositionAnchor.cs
1,941
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014-2016 Ingo Herbote * http://www.yetanotherforum.net/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file ...
29.443038
94
0.654342
[ "Apache-2.0" ]
hismightiness/YAFNET
yafsrc/YAF.Core/Extensions/IPermissionsExtensions.cs
2,249
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...
32.102941
105
0.666972
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/ManagedGrafana/Generated/Model/Internal/MarshallTransformations/IdpMetadataMarshaller.cs
2,183
C#
/* * Copyright 2010-2013 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...
32.784314
121
0.666866
[ "Apache-2.0" ]
mahanthbeeraka/dataservices-sdk-dotnet
AWSSDK/Amazon.DirectConnect/Model/DeleteConnectionResponse.cs
1,672
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using Microsoft.Diagnostics.Tracing.Session; namespace JitBench { public class TestRun { public TestRun() { Ben...
42.863014
192
0.562081
[ "MIT" ]
3F/coreclr
tests/src/performance/Scenario/JitBench/Runner/TestRun.cs
12,518
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("Ht...
37.486486
84
0.74261
[ "MIT" ]
bosoni/htk
Htk/Properties/AssemblyInfo.cs
1,390
C#
using System; using System.Collections.Generic; using System.Linq; namespace _6.ReverseAndExcludeE { class Program { static void Main(string[] args) { List<int> numbers = Console.ReadLine() .Split(" ", StringSplitOptions.RemoveEmptyEntries) .Select(i...
23.071429
66
0.555728
[ "MIT" ]
deedeedextor/Software-University
C#Advanced/C#Advanced/FunctionalProgrammingLE/6.ReverseAndExcludeE/Program.cs
648
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace fart { class Program { static void Main(string[] args) { int i = 255; byte b; checked { b = (byte)i; } // bu satır veri kaybı kontro...
15.214286
85
0.549296
[ "MIT" ]
Mikotochan/csders
Checked/checked.cs
430
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.597222
177
0.603095
[ "MIT" ]
SaLaaRHuSyN/BarCodeDemo
BarCodeDemo/Properties/Resources.Designer.cs
2,781
C#
using System; namespace winPEAS.Wifi.NativeWifiApi { /// <summary> /// Defines flags passed to <see cref="WlanGetAvailableNetworkList"/>. /// </summary> [Flags] public enum WlanGetAvailableNetworkFlags { /// <summary> /// No additional flags /// </summary> None ...
35.645038
482
0.579934
[ "MIT" ]
0rlixxx/PEASS-ng
winPEAS/winPEASexe/winPEAS/Wifi/NativeWifiApi/Enums.cs
9,341
C#
using System; using System.Collections.Generic; using System.Text; namespace Shapes.Library { public class ColoredCircle : Circle { public String Color { get; set; } //overridde on the derived class's method will replace parent class impemention of met...
28
97
0.598456
[ "MIT" ]
aopdaca/antonio-code
1-csharp/Shapes/Shapes.Library/ColoredCircle.cs
1,038
C#
using FluentValidation; using ConversorMoeda.Application.Commands; namespace ConversorMoeda.Application.Validators { public class ConverterMoedaCommandValidator: AbstractValidator<LiveMoedaCommand> { public ConverterMoedaCommandValidator() { RuleFor(x => x).Custom((model, context) ...
29.363636
84
0.575851
[ "MIT" ]
Agnei/CurrencyConvertion
src/Application/ConversorMoeda.Application/Validators/ConverterMoedaCommandValidator.cs
648
C#
using HMUI; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BeatSaberMultiplayer.Interop { internal interface IDismissable { FlowCoordinator ParentFlowCoordinator { get; set; } void Dismiss(bool immediately); } }...
20.0625
59
0.738318
[ "MIT" ]
andruzzzhka/BeatSaberMultiplayer
BeatSaberMultiplayer/Interop/IDismissable.cs
323
C#
using System; using System.Collections.Generic; using System.Data.OleDb; using System.Linq; using System.Text; using Tortuga.Chain.CommandBuilders; using Tortuga.Chain.Core; using Tortuga.Chain.Materializers; using Tortuga.Chain.Metadata; namespace Tortuga.Chain.SqlServer.CommandBuilders { /// <summary> /// Use for...
36.615625
177
0.716907
[ "MIT" ]
TortugaResearch/Chain
Tortuga.Chain/Tortuga.Chain.SqlServer.OleDb/SqlServer/CommandBuilders/OleDbSqlServerTableFunction.cs
11,719
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("PB-...
38.810811
84
0.748607
[ "MIT" ]
jeliozver/SoftUni-Work
Programming-Basics-May-2017/Old-Format-Exams/PB-February-2016-1-Hungry-Garfield/Properties/AssemblyInfo.cs
1,439
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Discount.Grpc.Repositories;...
35.104167
215
0.653412
[ "MIT" ]
CodeWithKashif/AspNetMicroservices
src/Services/Discount/Discount.Grpc/Startup.cs
1,687
C#
namespace Vidzy.Migrations { using System; using System.Data.Entity.Migrations; public partial class EnhanceVideosTable : DbMigration { public override void Up() { Sql("ALTER TABLE dbo.Videos DROP CONSTRAINT DF__Videos__Classifi__07F6335A"); DropForeignKey("d...
45.294118
94
0.575974
[ "MIT" ]
tuvshinot/csharp
Entity/LoadingsAndExercise/Vidzy/Migrations/201510110403407_EnhanceVideosTable.cs
1,540
C#
/* * Copyright (c) Contributors, 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: * * Redistributions of source code must r...
40.671233
111
0.684406
[ "BSD-3-Clause" ]
WhiteCoreSim/WhiteCore-Merger
OpenSim/Region/Application/OpenSimBackground.cs
2,969
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LeetCode754 { class Program { static void Main(string[] args) { } } public class Solution { public int ReachNumber(int target) { ...
19.744681
42
0.372845
[ "MIT" ]
Armin1995/LeetCode
LeetCode754/Program.cs
930
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using PaymentAutomationLC.Data; namesp...
37.62234
125
0.467553
[ "MIT" ]
robin-j9/PaymentAutomationLC
PaymentAutomationLC/Data/Migrations/20200524232201_ApplicationUser.Designer.cs
14,148
C#
using RbarExample.Entities; using System; using System.Linq; namespace RbarExample.DataAccess.Repositories { public interface IItemRepository { Item Get(Guid itemId); IQueryable<Item> Items { get; } void Update(Item item); } }
17.625
46
0.634752
[ "MIT" ]
RePierre/orm-rbar-example
src/RbarExample/DataAccess/Repositories/IItemRepository.cs
284
C#
using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ASTRA.EMSG.Business.Services.Administration; using ASTRA.EMSG.Business.Services.Common; using ASTRA.EMSG.Common.Enums; using ASTRA.EMSG.Web.Infrastructure.Security; namespace ASTRA.EMSG.Web.Areas.Administration.Controll...
34.285714
154
0.708929
[ "BSD-3-Clause" ]
astra-emsg/ASTRA.EMSG
Master/ASTRA.EMSG.Web/Areas/Administration/Controllers/GlobalResourceController.cs
1,682
C#
namespace Deloitte.Labs { using Microsoft.Xrm.Sdk; using System.IO; public class Import : IImport { private Super _super; public void SetImport(Super pSuper) { _super = pSuper; } public void ImportaData() { string[] files = Comm...
24.08
115
0.553156
[ "MIT" ]
Atili0/dlabs_alm
Deloitte.Labs.Common/Import.cs
604
C#
using System; namespace Automation.Concord { public enum MessageType { Unknown, AlarmTrouble, ArmingLevel, AutomationEventLost, ClearAutomationDynamicImage, DynamicDataRefreshRequest, EntryExitDelay, EquipmentListComplete, EquipmentL...
21.0625
48
0.615232
[ "MIT" ]
markberndt/concord2mqtt
Concord/Enums/MessageType.cs
1,013
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"); y...
32.097561
64
0.669453
[ "Apache-2.0" ]
AI-ML-Projects/reef
lang/cs/Org.Apache.REEF.Tests/Functional/Common/Task/ExceptionTask.cs
1,278
C#
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using StakeApp.Data.DatabaseContexts.Ap...
34.759615
117
0.51397
[ "MIT" ]
Logic2114/stake-app
src/StakeApp.Data/Migrations/ApplicationDb/20200930131618_added columns to property entity.Designer.cs
3,617
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: AssemblyConfigurat...
44.428571
84
0.783494
[ "Apache-2.0" ]
Arch/Npoi.Core
src/Npoi.Core.Ooxml/Properties/AssemblyInfo.cs
935
C#
namespace Commerce.Host { /// <summary> /// Represents options for the product service. /// </summary> public class ProductServiceOptions { /// <summary> /// Gets or sets the kind of service to use. "Memory", or "Production". /// </summary> public string Service { g...
26
80
0.568047
[ "MIT" ]
Omegapoint/tdd2-net
Source/Commerce.Host/ProductServiceOptions.cs
340
C#
#region License /* * 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 ...
44.507212
939
0.565703
[ "Apache-2.0" ]
alexdrenea/tinkerpop
gremlin-dotnet/test/Gremlin.Net.UnitTest/Structure/IO/GraphSON/GraphSONReaderTests.cs
18,517
C#
using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Core.Arango.Protocol; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace Core.Arango { public partial class ArangoContext { public async Task<JObject> ExecuteTransactionAsync(ArangoHandle database, ArangoTrans...
42.576923
117
0.672087
[ "MIT" ]
JTOne123/ArangoDB
Core.Arango/ArangoContext.Transaction.cs
2,216
C#
using System; using ColossalFramework.UI; using CustomizeItExtended.GUI; using CustomizeItExtended.GUI.Citizens; using CustomizeItExtended.Internal.Citizens; using UnityEngine; namespace CustomizeItExtended.Extensions { public static class CitizenExtensions { public static UICitizenPanelWrapper Genera...
31.571429
112
0.651584
[ "MIT" ]
Celisuis/CustomizeItEnhanced
CustomizeItExtended/Extensions/CitizenExtensions.cs
886
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.IO; using System.Linq; using System.Text; namespace Microsoft.DiaSymReader.Tools { internal static class PdbToXmlApp { ...
33.523077
164
0.478507
[ "Apache-2.0" ]
akoeplinger/symreader-converter
src/Pdb2Xml/PdbToXml.cs
6,537
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Reflection; using System.Reflection.Emit; using System.Threading; using Xunit; namespace System.Reflection.Emit.Tests { public class Me...
40.587719
141
0.648801
[ "MIT" ]
690486439/corefx
src/System.Reflection.Emit/tests/MethodBuilder/MethodBuilderToString.cs
4,627
C#
using Microsoft.AspNetCore.Mvc.ModelBinding; using System; using System.Threading.Tasks; using Voltaic; namespace Wumpus.Server.Binders { public class VoltaicUtf8StringModelBinder : IModelBinder { public Task BindModelAsync(ModelBindingContext bindingContext) { if (bindingContext =...
34.645161
99
0.68622
[ "MIT" ]
Aux/Wumpus.Net
test/Wumpus.Net.Tests.Server/Binders/VoltaicUtf8StringModelBinder.cs
1,076
C#
using Alturos.Yolo.LearningImage.Helper; using System.Collections.Generic; using System.IO; using System.Linq; namespace Alturos.Yolo.LearningImage.Model { public class AnnotationPackage { public string ExternalId { get; set; } public string PackagePath { get; set; } public string Dis...
33.916667
123
0.527905
[ "MIT" ]
LKneringer/Alturos.Yolo
src/Alturos.Yolo.LearningImage/Model/AnnotationPackage.cs
2,851
C#