content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Diagnostics; using System.Xml; namespace DocumentFormat.OpenXml { /// <summary> /// Represents the Int16 value for attributes. ...
34.092715
111
0.539433
[ "Apache-2.0" ]
lpperras/Open-XML-SDK
DocumentFormat.OpenXml/SimpleTypes/Int16Value.cs
5,150
C#
using System; using System.Text.RegularExpressions; using log4net; namespace CKAN.CmdLine { public class ConsoleUser : NullUser { private static readonly ILog log = LogManager.GetLogger(typeof(ConsoleUser)); private bool m_Headless = false; public ConsoleUser(bool headless) { ...
30.046875
129
0.443708
[ "MIT" ]
RichardLake/CKAN
Cmdline/ConsoleUser.cs
7,694
C#
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace StatesAndProvinces.UnitTests { [TestClass] public class UntTest1 { [TestMethod] public void MakesUSStates() { var actual = Factory.Make(CountrySelection.UnitedStates); Assert.AreEqual(51, actual.Count); } [TestMethod] p...
20.536585
86
0.741093
[ "MIT" ]
paulgbrown/StatesAndProvinces
StatesAndProvinces.UnitTests/UntTest1.cs
844
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.Collections.Generic; using System.IO; using System.Linq; using System.Xml; using System.Xml.Linq; using Clippit.Word; using DocumentFormat.OpenXml.Packagi...
65.724409
144
0.684378
[ "MIT" ]
nmase88/Clippit
OpenXmlPowerTools.Tests/Word/DocumentAssemblerTests.cs
16,696
C#
using System; using System.Collections.Generic; using System.Linq; namespace ListOfPredicates { class StartUp { static void Main() { int endofTheRange = int.Parse(Console.ReadLine()); List<int> dividers = Console.ReadLine() .Split(new char[] { ' ' }, St...
24.736842
82
0.476596
[ "MIT" ]
A-Manev/SoftUni-CSharp-Advanced-january-2020
Functional Programming - Exercise/09. List Of Predicates/StartUp.cs
942
C#
using System; using System.Collections.Generic; using System.Text; using Microsoft.AspNetCore.Components; namespace StackableUi.Component.Button { public class ButtonBase: SComponentBase { [Parameter] public EnumButtonType Type { get; set; } = EnumButtonType.Default; } }
22.615385
86
0.744898
[ "MIT" ]
hueifeng/StackableUi
src/StackableUi.Component/Button/ButtonBase.cs
296
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace Microsoft.Azure.Management.Compute.Fluent { using Microsoft.Azure.Management.Compute.Fluent.Models; using Microsoft.Azure.Management.ResourceMana...
46.315789
166
0.715909
[ "MIT" ]
abharath27/azure-libraries-for-net
src/ResourceManagement/Compute/Domain/IVirtualMachineExtensionImageVersion.cs
1,760
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("Act...
37.351351
84
0.74602
[ "MIT" ]
cheficha/TelerikAcademyAlpha
Actions/Actions/Properties/AssemblyInfo.cs
1,385
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("Ag...
37.864865
84
0.745896
[ "MIT" ]
PetarTilevRusev/Introduction-to-Programming-Homework
AgeCalculation/Properties/AssemblyInfo.cs
1,404
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; using System.Collections.Generic; using Microsoft.EntityFrameworkCore.Design; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migratio...
42.176471
99
0.622734
[ "MIT" ]
FelicePollano/efcore
src/EFCore.Design/Migrations/Design/IMigrationsCodeGenerator.cs
2,868
C#
using System; using Arrowgene.O2Jam.Server.Common; using Arrowgene.O2Jam.Server.Core; using Arrowgene.O2Jam.Server.Packet; using Arrowgene.Logging; using Arrowgene.Networking.Tcp; namespace Arrowgene.O2Jam.Server.Logging { public class ServerLogger : Logger { private Setting _setting; public ...
30.765306
112
0.558541
[ "MIT" ]
sebastian-heinz/Arrowgene.O2Jam
Arrowgene.O2Jam.Server/Logging/ServerLogger.cs
3,017
C#
namespace Logic { /// <summary> /// Json Validator. /// </summary> public interface IJsonValidator { /// <summary> /// Checks if string is json. /// </summary> /// <param name="value">String for checking.</param> /// <returns>true if string is json.</returns>...
23.25
60
0.537634
[ "MIT" ]
ntulenev/KafkaSimpleAppender
src/Logic/IJsonValidator.cs
374
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiByValue(fqn: "aws.Wafv2WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString")] public class Wafv2WebAclRuleStatementAndState...
49.75
311
0.902848
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/Wafv2WebAclRuleStatementAndStatementStatementNotStatementStatementAndStatementStatementRegexPatternSetReferenceStatementFieldToMatchQueryString.cs
597
C#
using System; using System.Collections.Generic; using System.Linq; namespace Mindbox.WorkingCalendar { public sealed class WorkingCalendar { private static readonly IReadOnlyDictionary<DayOfWeek, int> dayOfWeekOffsets = new Dictionary<DayOfWeek, int> { [DayOfWeek.Monday] = 0, [DayOfWeek.Tuesday] = 1, [...
29.443662
126
0.719684
[ "MIT" ]
mindbox-moscow/working-calendar
Mindbox.WorkingCalendar/WorkingCalendar.cs
4,183
C#
using VI.NumSharp.Arrays; namespace VI.Neural.Layer { public class MultipleActivationLayer : IMultipleLayer { public MultipleActivationLayer(int size, int[] conectionsSize) { Size = size; ConectionsSize = conectionsSize; } public Array<FloatArray2D> Kno...
31.064516
70
0.617861
[ "MIT" ]
snownz/Virtual-Intelligence
VI/VI.Neural/Layer/MultipleActivationLayer.cs
965
C#
using System; using Microsoft.Extensions.Logging; using System.Threading; namespace Boyd.DataBuses.Interfaces { /// <summary> /// provides a mechanism to couple duplex data pipelines /// </summary> public interface IDataCoupler<TData> { /// <summary> /// /// </summary> ...
29.5
160
0.632768
[ "MIT" ]
akboyd88/DataBuses
DataBuses/Interfaces/IDataCoupler.cs
710
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AssemblyDefender.Net { public abstract class SignaturePredicate { protected bool _defaultValue; public virtual bool Predicate(Signature signature) { switch (signature.SignatureType) { case SignatureType....
21.72327
73
0.679357
[ "MIT" ]
nickyandreev/AssemblyDefender
src/AssemblyDefender.Net/Signature/SignaturePredicate.cs
6,910
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Ghostscript.NET; using Ghostscript.NET.Rasterizer; using System.Diagnostics; using System.Drawing.Imaging; using System.IO; using NLog; using MongoDB.Driver; using System.Drawing; using iTextSharp....
40.995951
201
0.552933
[ "MIT" ]
robdobsn/ScanMonitor
ScanMonitorApp/ScanMonitorApp/PdfRasterizer.cs
10,128
C#
using NUnit.Framework; using System; using System.Collections.Generic; using System.Text; using TacitusLogger.Exceptions; namespace TacitusLogger.UnitTests.ExceptionTests { [TestFixture] public class LogDestinationExceptionTests { #region Ctor tests [Test] public void Ctor_Taking_...
36.116883
145
0.677095
[ "Apache-2.0" ]
khanlarmammadov/TacitusLogger
src/TacitusLogger.UnitTests/ExceptionTests/LogDestinationExceptionTests.cs
2,783
C#
using EventCollectorServer.Infrastructure.Interfaces.Configurations; namespace EventCollectorServer.Infrastructure.Application.Configurations { /// <inheritdoc /> public class ApplicationConfiguration : IApplicationConfiguration { /// <summary> /// Initializes a new instance of the <see cref="ApplicationConfig...
26.181818
85
0.741319
[ "MIT" ]
AnyCase-Company-LTD/Event-Collector-Server
EventCollectorServer/EventCollectorServer.Infrastructure.Application/Configurations/ApplicationConfiguration.cs
578
C#
namespace BlazorFluentUI { public class ScrollDimensions { public double ScrollWidth { get; set; } public double ScrollHeight { get; set; } } }
19.222222
48
0.630058
[ "MIT" ]
3-PRO/BlazorFluentUI
src/BlazorFluentUI.BFUBaseComponent/ScrollDimensions.cs
175
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.Collections.Immutable; using System.Diagnostics.CodeAnalysis; using Analyzer.Utilities; using Ana...
39.8125
301
0.462436
[ "Apache-2.0" ]
Atrejoe/roslyn-analyzers
src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Runtime/ProvideCorrectArgumentsToFormattingMethods.cs
17,836
C#
using System; using System.Collections.Generic; using System.Text; namespace ValorantAPI.JsonStructs { public class ActiveShard { public string puuid { get; set; } public string game { get; set; } public string activeShard { get; set; } } }
20.857143
48
0.623288
[ "MIT" ]
Pro-Swapper/ProSwapperValorant
ValorantAPI/JsonStructs/ActiveShard.cs
294
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
38.122807
153
0.600552
[ "MIT" ]
Aliases/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/IManagedDeviceShutDownRequest.cs
2,173
C#
using System; using System.Collections.Generic; using System.Reflection; public class ReflectionUtils { public static FieldInfo GetCustomAttributeField<T>(Type type) { FieldInfo[] fInfos = type.GetFields(BindingFlags.Public | BindingFlags.Instance); int l = fInfos.Length; for (int i = ...
28.461538
91
0.589189
[ "MIT" ]
tromagon/Gonity
Utils/ReflectionUtils.cs
1,482
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...
40.847619
178
0.658429
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/MachineLearning/Generated/AmazonMachineLearningException.cs
4,289
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { // 구조체 정보. public struct PINFO { public float MAX_HP; // 체력의 최대치. public float HP; // 현재 체력 public float BulletPower; // 총알의 힘. ...
27.94697
93
0.531309
[ "MIT" ]
CNU-Core/Core
Assets/ARSurvive/Scripts/Enemy/Player.cs
4,197
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/d2d1svg.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop { pu...
26.73913
145
0.668293
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
sources/Interop/Windows/um/d2d1svg/D2D1_SVG_VIEWBOX.cs
617
C#
// ========================================================================== // Notifo.io // ========================================================================== // Copyright (c) Sebastian Stehle // All rights reserved. Licensed under the MIT license. // ======================================================...
32.71875
106
0.487106
[ "MIT" ]
INOS-soft/notifo
backend/src/Notifo/Areas/Api/OpenApi/FixProcessor.cs
1,049
C#
#region License // Copyright (c) 2011, ClearCanvas Inc. // All rights reserved. // http://www.clearcanvas.ca // // This software is licensed under the Open Software License v3.0. // For the complete license, see http://www.clearcanvas.ca/OSLv3.0 #endregion using System; using ClearCanvas.Common.Utilities...
25.282158
200
0.643525
[ "Apache-2.0" ]
SNBnani/Xian
ImageViewer/Imaging/DataModalityLut.cs
6,093
C#
using System; using DotNetNuke.Common; using DotNetNuke.Common.Utilities; using DotNetNuke.Entities.Modules; using DotNetNuke.Entities.Modules.Definitions; using DotNetNuke.Entities.Tabs; using DotNetNuke.Security.Permissions; using DotNetNuke.Services.Upgrade; namespace DNN.Modules.SecurityAnalyzer.Components { ...
38.668203
124
0.528304
[ "MIT" ]
hismightiness/SecurityAnalyzer
Components/FeatureController.cs
8,393
C#
using MaterialMvvmSample.Utilities; using MaterialMvvmSample.Views; using Xamarin.Forms; using Xamarin.Forms.Xaml; [assembly: XamlCompilation(XamlCompilationOptions.Compile)] namespace MaterialMvvmSample { public partial class App : Application { public App(INavigationService navigationService) ...
24.540541
73
0.627753
[ "MIT" ]
msc2402/XF-Material-Library
Samples/MaterialMvvmSample/App.xaml.cs
910
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using static TestVRF.vcsparsing.UtilHelpers; namespace TestVRF.vcsparsing { public class DataReaderZFrameByteAnalysis : DataReader { FILETYPE filetype; public DataReaderZFrameByteAnalysis(byte[] data, FILE...
36.920673
133
0.502962
[ "MIT" ]
robert-hoff/ValveResourceFormat
TestVRF/vcsparsing/DataReaderZFrameByteAnalysis.cs
15,359
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace cor64.Mips.Rsp { internal interface IMipsOpcodes { void BitwiseLogic(DecodedInstruction inst); void Add(DecodedInstruction inst); void Subtract(...
25
66
0.677931
[ "MIT" ]
bryanperris/cor64
src/cor64/Mips/Rsp/IMipsOpcodes.cs
1,452
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; namespace AutoLot.Model.Entities { public class SeriLogEntry { public int Id { get; set; } public string? Message { get; set; } public string? MessageTemplate { ge...
32.322581
95
0.668663
[ "MIT" ]
rontucuman/auto-lot
src/Chapter23_AllProjects/AutoLot.Model/Entities/SeriLogEntry.cs
1,004
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace NLayerProject.API.DTOs { public class CategoryDto { public int Id { get; set; } [Required(ErrorMessage = "{0} alanı gereklidir")] publ...
22.3125
57
0.689076
[ "MIT" ]
TunaAksit/NLayerProject
NLayerProject.API/DTOs/CategoryDto.cs
360
C#
using System.Threading.Tasks; namespace Client.Services.Interfaces { public interface IClientServerService { public void Start(); public Task Stop(); } }
18.3
41
0.666667
[ "MIT" ]
al3xfischer/DITO
DITO/Client/Services/Interfaces/IClientServerService.cs
185
C#
// // SEPA.Net SEPA Parser for C# // https://sepa.codeplex.com // File: TCDev.SEPA.GenericIdentification32.cs // Author: Tim Cadenbach, TCDev // Created: 08.09.2013 - TCA // Changed: 13.09.2013 - TCA // Purpose: // ...
17.736434
61
0.456731
[ "Apache-2.0" ]
DeeJayTC/sepa.net
TCDev.SEPA/Generic/Identification/GenericIdentification32.cs
2,288
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("10S...
37.945946
84
0.75
[ "MIT" ]
lapd87/SoftUniProgrammingFundamentalsCSharp
ProgrammingFundamentalsCSharp/08DictionariesLambdaLINQ/10SrybskoUnleashed/Properties/AssemblyInfo.cs
1,407
C#
using System.Data; using System.Threading.Tasks; using DataAccess.Settings; using Microsoft.Extensions.Options; using Npgsql; namespace DataAccess.ConnectionFactories { public class NpgConnectionFactory : IConnectionFactory { private readonly DatabaseConnectionSettings _settings; public NpgCo...
26.111111
81
0.695035
[ "MIT" ]
jva44ka/sunset_prediction
DataAccess/ConnectionFactories/NpgConnectionFactory.cs
707
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 System; using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Rulesets.Filter; using osu.Game.Screens.Select; using osu.Game.Screens.Select.Filter...
45.760618
122
0.622933
[ "MIT" ]
Aleeeesz/osu
osu.Game.Tests/NonVisual/Filtering/FilterQueryParserTest.cs
11,596
C#
/* * Original author: Max Horowitz-Gelb <maxhg .at. u.washington.edu>, * MacCoss Lab, Department of Genome Sciences, UW * * Copyright 2016 University of Washington - Seattle, WA * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in comp...
34.133333
146
0.476318
[ "Apache-2.0" ]
vagisha/pwiz
pwiz_tools/Skyline/Model/RetentionTimes/LoessAligner.cs
8,194
C#
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // This class represents the Ole Automation binder. // #define DISPLAY_DEBUG_INFO namespace System { using System; using System.Runtime.InteropServices; using System.Reflection; using Microsoft.Win32; usin...
36.269565
138
0.576361
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/clr/src/BCL/system/oleautbinder.cs
4,171
C#
using MVCProject.Model; 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; namespace MVCProject.View { public partial class frmPrincipal : Form { ...
28.04918
88
0.630041
[ "MIT" ]
DrGabenator/GitC
29-07_02-08/MVCProject/MVCProject/View/frmPrincipal.cs
1,716
C#
using Autofac; using AutofacContrib.NSubstitute; using AutoFixture; using NSubstitute; using NSubstitute.Extensions; using System; using System.Configuration; using System.IO; using System.Linq; using System.Runtime.CompilerServices; using System.Web; using WWTWebservices; using Xunit; namespace WWT.Providers.Tests { ...
33.700935
134
0.573211
[ "MIT" ]
twsouthwick/wwt-website
tests/WWT.Providers.Tests/DSSTests.cs
3,606
C#
using Machine.Specifications; namespace Elders.Cronus.Tests.MessageStreaming { [Subject("")] public class When__MessageStream__has_subscription_which_fails_to_handle_a_message { //Establish context = () => // { // handlerFacotry = new CalculatorHandlerFactory(); /...
47.111111
161
0.650472
[ "Apache-2.0" ]
mynkow/Cronus
src/Elders.Cronus.Tests/MessageStreaming/When__MessageStream__has_subscription_which_fails_to_handle_a_message.cs
2,120
C#
using Sandbox.Game.Entities; using System; using VRage.Game.Entity; using VRageMath; using WeaponCore.Support; using System.Collections.Generic; using static WeaponCore.Support.WeaponComponent.Start; using static WeaponCore.Support.WeaponComponent.BlockType; using static WeaponCore.Platform.Weapon; namespace WeaponCo...
47.8125
328
0.524632
[ "MIT" ]
B4Rme/WeaponCore
Data/Scripts/WeaponCore/WeaponComp/PlatformInit.cs
24,482
C#
using System; using System.Collections.Generic; using System.Text; namespace Core.Models { public class Sale { public Sale() { } public Sale(short productId, string playerId) { ProductId = productId; PlayerId = playerId; } public int SaleId { ge...
28.6875
53
0.588235
[ "MIT" ]
RestoreMonarchy/Servers
Core/Models/Sale.cs
920
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Luaan.Yggmire.OrleansInterfaces.Structures; using Luaan.Yggmire.OrleansServer.Actors; namespace Luaan.Yggmire.OrleansServer.Behaviours { [Serializable] public class ItemStorageBehaviour :...
28.125
114
0.555556
[ "MIT" ]
Luaancz/Yggmire
Server/Luaan.Yggmire.OrleansServer/Behaviours/ItemStorageBehaviour.cs
1,577
C#
using System; using System.Windows.Media; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using TARY_Library; namespace hero { //說明:直線行走 使用身體撞擊當作攻擊 public class MONSTER1_A : MONSTER1 { public MONSTER1_A(Vector2 loc) : ba...
19.652174
64
0.497788
[ "MIT" ]
TaryHuang/FINAL-FIGHTER
hero/hero/hero/monster/MONSTER1_A.cs
1,058
C#
// ------------------------------------------------------------------------- // Copyright © 2021 Province of British Columbia // // 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 // // h...
31.681564
214
0.646212
[ "Apache-2.0" ]
josephweinkam/embc-ess-mod
registrants/src/API/EMBC.Registrants.API/Controllers/EvacuationsController.cs
17,016
C#
using System.Web.Mvc; using JetBrains.Annotations; namespace essentialMix.Web.Mvc.Annotations { /// <summary> /// Register this in Global.asax Application_Start() /// GlobalFilters.Filters.Add(new SaveModelStateAttribute()); /// or in App_Start/FilterConfig.cs RegisterGlobalFilters /// filters.Add(new SaveModelS...
29.25
98
0.77208
[ "MIT" ]
asm2025/asm
Framework/essentialMix.Web.Mvc/Annotations/SaveModelStateAttribute.cs
704
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
36.423913
194
0.669651
[ "Apache-2.0" ]
orinem/aws-sdk-net
sdk/src/Services/KinesisAnalyticsV2/Generated/Model/Internal/MarshallTransformations/RunConfigurationDescriptionUnmarshaller.cs
3,351
C#
using System; using Twainsoft.FHDO.Compiler.Scanner; namespace Twainsoft.FHDO.Compiler.App { static class Program { static void Main() { string[] inputs = {"() \n349 )4.1E1(", "\t-349 ) ( +598", "() \n+555 )+-222", ") \n-566 287)<", "( \n5.66 M)287)", "(...
28.4
111
0.404609
[ "MIT" ]
fdeitelhoff/Twainsoft.FHDO.Compiler
src/Twainsoft.FHDO.Compiler.App/Program.cs
1,564
C#
namespace StudentsLearning.Data.Repositories { #region using System; using System.Data.Entity; using System.Linq; #endregion public class EfGenericRepository<T> : IRepository<T> where T : class { public EfGenericRepository(IStudentsLearningDbContext context) { ...
24.203704
119
0.491201
[ "MIT" ]
Momus-Telerik-Academy/Student-Learning-System
Source/Data/StudentsLearningSystem.Data/Repositories/EfGenericRepository.cs
2,616
C#
namespace UglyToad.PdfPig.Graphics.Operations.TextState { using System.IO; /// <inheritdoc /> /// <summary> /// Set the character spacing to a number expressed in unscaled text space units. /// Initial value: 0. /// </summary> public class SetCharacterSpacing : IGraphicsStateOperation ...
26.87037
85
0.550655
[ "Apache-2.0" ]
BenyErnest/PdfPig
src/UglyToad.PdfPig/Graphics/Operations/TextState/SetCharacterSpacing.cs
1,453
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 Microsoft.EntityFrameworkCore.TestUtilities; namespace Microsoft.EntityFrameworkCore.Query { public abstract class OwnedEntityQueryRelationa...
36.944444
111
0.765414
[ "Apache-2.0" ]
SergerGood/efcore
test/EFCore.Relational.Specification.Tests/Query/OwnedEntityQueryRelationalTestBase.cs
667
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Target { public class CombinedTests { public string currentWriteCopier; public bool LogAndEVentSource() { LogTo.Debug("Sent & finished " + currentWriteCopier.Length); var a = Dat...
21.186441
78
0.6112
[ "Apache-2.0" ]
enyim/BuildTools
Tests/Target/CombinedTests.cs
2,501
C#
using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace NSspi.Credentials { /// <summary> /// Provides access to the pre-existing credentials of a security principle. /// </summary> public class Credential : IDisposable { /// <summary...
29.188119
100
0.43521
[ "BSD-2-Clause" ]
yadavvineet/nsspi
NSspi/Credentials/Credential.cs
5,898
C#
using HarmonyLib; using RimWorld; using Verse; namespace ConvertThenRecruit; [HarmonyPatch(typeof(Pawn_IdeoTracker), "IdeoConversionAttempt")] public static class Pawn_IdeoTracker_IdeoConversionAttempt { public static void Postfix(bool __result, Pawn ___pawn) { if (!__result) { re...
27.606061
87
0.665203
[ "MIT" ]
Dipod/ConvertThenRecruit
Source/ConvertThenRecruit/Pawn_IdeoTracker_IdeoConversionAttempt.cs
913
C#
namespace Crypton.AvChat.Gui { partial class ChangeLogView { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
39.539683
107
0.588519
[ "MIT" ]
CryptonZylog/ueravchatclient
Crypton.AvChat.Gui/ChangeLogView.Designer.cs
2,493
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: AssemblyTi...
42.205882
86
0.734495
[ "MIT" ]
FingersCrossed/Arebis.Common
Arebis.Data/Properties/AssemblyInfo.cs
1,438
C#
using ChakraCore.API; namespace JavaScript.API.JSUnityEngine { class JSYieldInstruction { public static void Register(JavaScriptContext context) { JavaScriptValue YieldInstructionPrototype; JavaScriptValue YieldInstructionConstructor = Bridge.CreateConstructor( typeof(UnityEngine.YieldInstruc...
20.4
77
0.676471
[ "MIT" ]
SpiralP/typescript-for-unity
Assets/Scripts/JavaScript/API/UnityEngine/YieldInstruction.cs
816
C#
using FavourAPI.Data.Repositories; using FavourAPI.GraphQL.Types; using FavourAPI.Services; using FavourAPI.Services.Contracts; using GraphQL.Types; using GraphQL.Authorization; using System; using FavourAPI.Data.Dtos.Offerings; using System.Collections.Generic; using FavourAPI.Dtos; namespace FavourAPI.GraphQL { ...
40.248555
120
0.53138
[ "MIT" ]
indeavr/favour-api
FavourAPI/GraphQL/FavourQuery.cs
6,965
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...
33.347826
152
0.638527
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/Macie2/Generated/Model/Internal/MarshallTransformations/DomainDetailsUnmarshaller.cs
3,068
C#
using System; namespace _03._On_Time_for_the_Exam { class Program { static void Main(string[] args) { int examHour = int.Parse(Console.ReadLine()); int examMin = int.Parse(Console.ReadLine()); int arriveHour = int.Parse(Console.ReadLine()); int a...
32.388889
130
0.457404
[ "MIT" ]
theoners/Programing-Basics-Exams
Exam - 6 March 2016/03. On Time for the Exam/Program.cs
1,751
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; namespace VehicleTrakker { public class ValidGuidToVisibilityConverter : IValueConverter { public object Convert(object value, Type tar...
27.08
99
0.682422
[ "MIT" ]
NiclasBackman/VehicleTrakker
VehicleTrakker/Converters/ValidGuidToVisibilityConverter.cs
679
C#
namespace Breeze.Core { public enum OperatorType { AnyAll = 1, AndOr = 2, Binary = 3, Unary = 4 } }
12.1
28
0.553719
[ "MIT" ]
Breeze/breeze.server.net
AspNetCore-v3/Breeze.Core/Query/OperatorType.cs
121
C#
using static DncZeus.Api.Entities.Enums.CommonEnum; namespace DncZeus.Api.RequestPayload.Base.Manager { /// <summary> /// 图标请求参数实体 /// </summary> public class ManagerSelectRequestPayload { public int HospitalId { get; set; } } }
20.230769
52
0.657795
[ "MIT" ]
SkyGrass/ttxy
DncZeus.Api/RequestPayload/Base/Manager/ManagerSelectRequestPayload.cs
281
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
36.511811
141
0.607721
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Translate/Generated/Model/Internal/MarshallTransformations/TranslateTextRequestMarshaller.cs
4,637
C#
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir & xuri 2021 // // 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...
33.161538
158
0.568082
[ "MIT" ]
xuri02/SharpVk
src/SharpVk/FramebufferCreateInfo.gen.cs
4,311
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.619835
186
0.595792
[ "MIT" ]
NathanClouseAX/AAXDataEntityPerfTest
Projects/AAXDataEntityPerfTest/ConsoleApp1/Connected Services/D365/ApplicantExam.cs
10,316
C#
#region License and information /* * * * * * A quick mesh serializer that allows to serialize a Mesh as byte array. It should * support any kind of mesh including skinned meshes, multiple submeshes, different * mesh topologies as well as blendshapes. I tried my best to avoid unnecessary data * by only serializing i...
35.435146
119
0.531822
[ "MIT" ]
Alaa-elgreatly/SlicerConnector
GcodeToMesh/MeshClasses/meshserializer.cs
8,470
C#
using System.Collections.Generic; using System.Text.RegularExpressions; using AspNet.Metrics.Infrastructure; using Microsoft.AspNetCore.Http; namespace AspNet.Metrics { public class MetricsOptions { public MetricsOptions() { IgnoredRequestPatterns = new List<Regex>(); Ro...
35.409836
99
0.635648
[ "Apache-2.0" ]
alhardy/aspnet-metrics
src/AspNet.Metrics/MetricsOptions.cs
2,160
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.EntityFrameworkCore; using mad3.Models; namespace mad3.Controllers { public class CountriesController : Controller { ...
29.803922
190
0.521491
[ "MIT" ]
alrazyreturn/core_project
Controllers/CountriesController.cs
4,560
C#
using System; namespace _03.Play_Card { class Program { static void Main() { string switchCase = Console.ReadLine(); switch (switchCase) { case "2": case "3": case "4": case "5": ...
21.485714
66
0.325798
[ "MIT" ]
tpulkov/CSharp-Part1
homework/05.Conditional-Statements-Solution/03.Play Card/Program.cs
754
C#
using System; using System.Threading.Tasks; using HipChat.Net.Http; using HipChat.Net.Models.Request; using HipChat.Net.Models.Response; namespace HipChat.Net.Clients { public interface IRoomsClient { /// <summary> /// Creates the asynchronous. /// </summary> /// <param name="name">The name.</para...
40.658333
184
0.638451
[ "MIT" ]
sirkirby/hipchat.net
src/HipChat.Net/Clients/IRoomsClient.cs
4,881
C#
// <copyright> // Copyright Southeast Christian Church // // Licensed under the Southeast Christian Church License (the "License"); // you may not use this file except in compliance with the License. // A copy of the License shoud be included with this file. // // Unless required by applicable law or agreed to in wr...
33.983051
125
0.500125
[ "ECL-2.0" ]
KingdomFirst/Avalanche
App/Avalanche/Avalanche/Components/ListView/CardListView.xaml.cs
8,022
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. using System; using System.Collections.Generic; using System.Reflection; using System.Text; namespace Microsoft.AzureIntegrationMigration.Tool.Plugins { /// <summary> /// Defines an interface to host plugins. /// </summary> publ...
37.666667
131
0.659292
[ "MIT" ]
345James/aimtool
src/Microsoft.AzureIntegrationMigration.Tool/Plugins/IPluginHost.cs
1,356
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
24.408
100
0.550311
[ "MIT" ]
escooo/Nucleus
Nucleus/Nucleus.WPF/TextComboDialog.xaml.cs
3,053
C#
#region Copyright // // DotNetNuke® - http://www.dotnetnuke.com // Copyright (c) 2002-2018 // by DotNetNuke Corporation // // 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 restric...
36.868687
116
0.647671
[ "MIT" ]
Abrahamberg/Dnn.Platform
DNN Platform/Library/Services/Upgrade/Internals/UpdateService.cs
3,653
C#
 using System; using System.IO; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using Eneter.Messaging.Diagnostic; namespace Eneter.Messaging.DataProcessing.Serializing { /// <summary> /// Serializer digitaly signing data. /// </summary> /// <re...
47.196
194
0.581151
[ "MIT" ]
ng-eneter/eneter-net
EneterMessaging/EneterMessagingFramework/DataProcessing/Serializing/RsaDigitalSignatureSerializer.cs
11,801
C#
using System; namespace UrbanBlimp.Apple { public class GetRegistrationService { public IRequestBuilder RequestBuilder; public void Execute(GetRegistrationRequest request, Action<GetRegistrationResponse> responseCallback, Action<Exception> exceptionCallback) { var webReques...
33.68
146
0.663895
[ "MIT" ]
farhadbheekoo/UrbanBlimp
UrbanBlimp/Apple/Registration/GetRegistrationService.cs
842
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. /****************************************************************************** * This file is auto-generated from ...
41.625378
146
0.569531
[ "MIT" ]
ruben-ayrapetyan/coreclr
tests/src/JIT/HardwareIntrinsics/X86/Sse2/Add.Int32.cs
13,778
C#
using System; using System.IO; using System.Threading.Tasks; using Microsoft.Owin; using NSwag.SwaggerGeneration; namespace NSwag.AspNet.Owin.Middlewares { internal class SwaggerUiIndexMiddleware<T> : OwinMiddleware where T : SwaggerGeneratorSettings, new() { private readonly string _indexPath;...
37.8
159
0.628968
[ "MIT" ]
Inzanit/NSwag
src/NSwag.AspNet.Owin/Middlewares/SwaggerUiIndexMiddleware.cs
1,512
C#
using System; using System.Collections.Generic; using System.Text; namespace DesignPattern.Observer2 { public class Son : IObserver { private readonly IList<IObserver> _observers = new List<IObserver>(); public void AddObserver(IObserver observer) { _observers.Add(observer...
20.388889
77
0.53406
[ "MIT" ]
ZShijun/DesignPattern
src/Patterns/17. Observer/DesignPattern.Observer2/Son.cs
750
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ===========================...
35.571429
119
0.489067
[ "MIT" ]
Avd6977/squidex
src/Squidex.Domain.Apps.Entities/Backup/Helpers/Safe.cs
2,243
C#
using Mapster; using Meiam.System.Hostd.Authorization; using Meiam.System.Hostd.Extensions; using Meiam.System.Interfaces; using Meiam.System.Model; using Meiam.System.Model.Dto; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using SqlSugar; using System; using System.Linq; using System.Threading....
30.138393
175
0.518294
[ "Apache-2.0" ]
HaiLinWang/Meiam.System
Meiam.System.Hostd/Controllers/Basic/FactoryController.cs
7,093
C#
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated w...
42.321429
98
0.709283
[ "MIT" ]
Macrotitech/WPF-3d-source
Ch04/Perspective/Properties/AssemblyInfo.cs
2,373
C#
namespace GooglePlayGames.BasicApi.Events { internal class Event : IEvent { private string mId; private string mName; private string mDescription; private string mImageUrl; private ulong mCurrentCount; private EventVisibility mVisibility; internal Event(...
22.537037
83
0.525062
[ "Apache-2.0" ]
ToufuSekka/play-games-plugin-for-unity
Assets/Public/GooglePlayGames/com.google.play.games/Runtime/Scripts/BasicApi/Events/Event.cs
1,219
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Android.App; using Android.Content; using Android.Content.Res; using Android.OS; using Android.Runtime; using Android.Support.Design.Widget; using Android.Views; using...
44.038363
166
0.481851
[ "MIT" ]
Druffl3/Xamarin.RisePlugin.Floatingactionbutton
Xamarin.RisePlugin.Droid.Floatingactionbutton/COAFloatingactionbutton.cs
17,221
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...
47.66867
329
0.580201
[ "MIT" ]
AzureMentor/azure-sdk-for-net
sdk/network/Microsoft.Azure.Management.Network/src/Generated/PacketCapturesOperations.cs
63,447
C#
using Android.App; using Android.Content; using AndroidX.AppCompat.App; namespace TemploBelen.Prism.Droid { [Activity(Theme = "@style/MainTheme.Splash", MainLauncher = true, NoHistory = true)] public class SplashActivity : AppCompatActivity { // Launches the startup task...
25.15
81
0.624254
[ "MIT" ]
rubberydev/templobelenApp
TemploBelen.Prism/TemploBelen.Prism/TemploBelen.Prism.Android/SplashActivity.cs
503
C#
using System; using System.Linq; using System.Reactive.Linq; using System.Threading; using System.Threading.Tasks; using DockerSdk.Containers.Events; using DockerSdk.Networks; namespace DockerSdk.Containers { /// <summary> /// Represents a Docker container. /// </summary> internal class Container : IC...
34.885714
127
0.633497
[ "MIT" ]
Emdot/DockerSdk
DockerSdk/Containers/Container.cs
2,444
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("Ph...
37.648649
84
0.743001
[ "MIT" ]
noogen/phuncms
src/Phun.Tests/Properties/AssemblyInfo.cs
1,396
C#
using System; using Server; using Server.Items; namespace Server.Mobiles { [CorpseName( "a dryad corpse" )] public class DryadA : BaseCreature { public override bool InitialInnocent{ get{ return true; } } [Constructable] public DryadA() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 ) { Name = ...
25.859813
115
0.663535
[ "BSD-2-Clause" ]
greeduomacro/vivre-uo
Scripts/Customs/Nerun's Distro/ML/Mobiles/Twisted Weald/DryadA.cs
2,767
C#
#region License /* * HttpDigestIdentity.cs * * The MIT License * * Copyright (c) 2014-2017 sta.blockhead * * 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, includ...
26.744681
80
0.628679
[ "MIT" ]
16it/surging
src/WebSocket/WebSocketCore/Net/HttpDigestIdentity.cs
5,028
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace PizzaBox.Storing.Migrations { public partial class InitialCreate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Crusts", ...
41.975186
101
0.462698
[ "MIT" ]
KevinTouch/PizzaBox
aspnet/PizzaBox.Storing/Migrations/20210117100614_InitialCreate.cs
16,918
C#
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Hos...
32.636364
184
0.669452
[ "Apache-2.0" ]
enginekit/copy_of_roslyn
Src/Workspaces/CoreTest/Host/TestHost.cs
1,079
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 NuGet.Test.Utility; using System.IO; using Xunit; using System.Diagnostics; namespace NuGet.Common.Test { public class DirectoryUtilityTests ...
30.622222
111
0.526488
[ "Apache-2.0" ]
BdDsl/NuGet.Client
test/NuGet.Core.Tests/NuGet.Common.Test/DirectoryUtilityTests.cs
2,756
C#