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.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Snarf.Udp; namespace Snarf.Nfs { public static class NfsListenerManager { private static List<Tuple<int, int, UdpListener>> _cache; static NfsListenerManager() { _cache = new List<Tup...
20.756757
74
0.690104
[ "MIT" ]
shellscape/Snarf
Application/Nfs/NfsListenerManager.cs
770
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Luna Multiplayer Mod")] [assembly: AssemblyDescription("Luna Multiplayer Mod (server)")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("LMP...
33.181818
64
0.773973
[ "MIT" ]
211network/LunaMultiplayer
Server/Properties/AssemblyInfo.cs
733
C#
// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // --------------------------------------------------------...
25.429907
100
0.438074
[ "MIT" ]
alexsyeo/PSharp
Tests/TestingServices.Tests/Specifications/Monitors/MonitorWildCardEventTest.cs
2,723
C#
namespace SFA.Apprenticeships.Application.Candidate.Strategies.Apprenticeships { using System; using Domain.Entities.Applications; using Domain.Interfaces.Messaging; using Domain.Interfaces.Repositories; public class SaveApprenticeshipApplicationStrategy : ISaveApprenticeshipApplicationStrategy ...
56.984127
154
0.78663
[ "MIT" ]
BugsUK/FindApprenticeship
src/SFA.Apprenticeships.Application.Candidate/Strategies/Apprenticeships/SaveApprenticeshipApplicationStrategy.cs
3,592
C#
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using System.IO; namespace ICSharpCode.AspNet.Mvc { public class MvcControllerFileName : MvcFileName { stri...
22
103
0.722127
[ "MIT" ]
Plankankul/SharpDevelop-w-Framework
src/AddIns/BackendBindings/AspNet.Mvc/Project/Src/MvcControllerFileName.cs
1,168
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Spark.TfsExplorer.Models.Folders { public interface IInstallerFolder : IBranchFolder { TriggerFolder Trigger { get; } PublishHistoryFolder PublishHistory { get; } }...
21.533333
53
0.733746
[ "MIT" ]
jackobo/jackobs-code
DeveloperTool/src/TfsExplorer/Models/Folders/IInstallerFolder.cs
325
C#
using System.Collections.Generic; public partial class Config { public readonly NPCSetting NPCSetting = new NPCSetting() { timeFactor = 3.1415f, npcCount = 10, assetPath = "http://download.game.com" }; };
27.666667
62
0.618474
[ "MIT" ]
flyingSnow-hu/ConfigGenerator
demo/Assets/Config/Gen/NPCSetting.cs
249
C#
using Panda.Models; using System; using System.Collections.Generic; namespace Panda.Services { public interface IUserService { void AddUser(string username, string email, string password); User GetUserByUsernameAndPassword(string username, string password); IList<User> GetAllUsers(); ...
26.4375
76
0.716312
[ "MIT" ]
kovachevmartin/SoftUni
Web/PastExams/04-Nov-2018_Panda/Panda.Services/IUserService.cs
425
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
40.121212
153
0.609517
[ "MIT" ]
Aliases/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/IEducationClassMembersCollectionReferencesRequestBuilder.cs
1,324
C#
using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using ESFA.DC.ESF.Interfaces.DataAccessLayer; using ESFA.DC.ESF.Interfaces.Reports.Services; using ESFA.DC.ESF.Models; namespace ESFA.DC.ESF.ReportingService.Services { public class ILRService : IILRService ...
36.253165
147
0.653282
[ "MIT" ]
SkillsFundingAgency/DC-ESF
src/ESFA.DC.ESF.ReportingService/Services/ILRService.cs
2,866
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.269 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----...
40.482353
172
0.58297
[ "MIT" ]
bostelk/delta
Delta.Core/EmbeddedContent.Designer.cs
3,443
C#
using System; using System.Text.Json.Serialization; namespace graphqlapi.Models { public class Meta : Element { [JsonPropertyName("versionId")] public string VersionId { get; set; } [JsonPropertyName("lastUpdated")] public DateTime LastUpdated { get; set; } [JsonPrope...
22.47619
49
0.620763
[ "MIT" ]
microsoft/blazor-graphql-starter-kit
graphqlapi/Models/Meta.cs
474
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...
53.204918
271
0.533431
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/CloudFormation/Generated/Model/Internal/MarshallTransformations/CreateChangeSetRequestMarshaller.cs
12,982
C#
using Microsoft.Maui.Controls; using System; using System.Collections.Generic; using System.Collections.Specialized; namespace InputKit.Shared.Controls; public class AutoCompleteView : Entry { private static readonly Func<string, ICollection<string>, ICollection<string>> _defaultSortingAlgorithm = (t, d) => d; ...
35.090164
122
0.686522
[ "MIT" ]
enisn/Xamarin.Forms.InputK
src/InputKit/Shared/Controls/AutoCompleteView.cs
4,283
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Mips.Data; using Mips.Io; namespace Mips.Commands { public abstract class MipsMessage { public static readonly MipsMessage[] EmptyArray = new MipsMessage[0]; protected MipsCommand command; i...
30.875984
132
0.721709
[ "MIT" ]
PNNL-Comp-Mass-Spec/AmpsSDK
Mips-net/Commands/MipsMessage.cs
15,687
C#
using Sandbox; namespace Fortwars { public static class DamageInfoExtension { public static DamageInfo FromFall( float damage, Entity attacker ) { return new DamageInfo { Flags = DamageFlags.Fall, Damage = damage, Attacker = attacker }; } public static DamageInfo FromProjectile( float ...
18.3
107
0.672131
[ "MIT" ]
DevulTj/sbox-fortwars
code/util/DamageInfoExtension.cs
551
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Collections.Generic; using System.Diagnostics.ContractsLight; namespace BuildXL.Cache.Interfaces { /// <summary> /// A struct that contains the cache statistics and the cache ID from /// which the statistics ...
33.722892
112
0.588424
[ "MIT" ]
BearerPipelineTest/BuildXL
Public/Src/Cache/VerticalStore/Interfaces/CacheSessionStatistics.cs
2,799
C#
using PnP.Scanning.Core.Authentication; using PnP.Scanning.Core.Services; using System.CommandLine; using System.CommandLine.Binding; namespace PnP.Scanning.Process.Commands { internal sealed class StartBinder : BinderBase<StartOptions> { private readonly Option<Mode> mode; private readonly Op...
48.097561
252
0.675456
[ "MIT" ]
pnp/pnpscanning
src/PnP.Scanning/PnP.Scanning.Process/Commands/Options/StartBinder.cs
3,946
C#
// Copyright 2009 Andy Kernahan // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
30.478723
101
0.569983
[ "Apache-2.0" ]
andykernahan/ak-f1-timing
src/AK.F1.Timing.Model/src/Collections/SortableObservableCollection.cs
2,865
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using SN_Net.MiscClass; using SN_Net.DataModels; using WebAPI; using WebAPI.ApiResult; using Newtonsoft.Json; namespace SN_Net.Subform...
44.717791
162
0.536105
[ "MIT" ]
wee2tee/SN_Net_V1.1
SN_Net/Subform/UsersList.cs
22,271
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...
37.436842
141
0.570645
[ "Apache-2.0" ]
DalavanCloud/aws-sdk-net
sdk/src/Services/ServiceCatalog/Generated/Model/Internal/MarshallTransformations/CreateProductRequestMarshaller.cs
7,113
C#
//extern alias SpeckleNewtonsoft; //using SNJ = SpeckleNewtonsoft.Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CefSharp.WinForms; using CefSharp; using System.IO; using SpeckleCore; using System.Diagnostics; using System...
31.5
189
0.624301
[ "MIT" ]
BHoM/SpeckleRhino
SpeckleRhinoPlugin/src/Interop.cs
17,894
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...
33.401235
283
0.588246
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Sql/GetElasticPool.cs
5,411
C#
using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; using System.Threading; namespace CodingToolBox.Command { class TidyControl { public static CancellationTokenSource RunningTidy {get; set;} public static void CancelAndShowHelp(AsyncPackage package) { ...
30.575758
105
0.617443
[ "Apache-2.0" ]
codingtoolbox/RunClangTidy
RunClangTidy/Command/TidyControl.cs
1,011
C#
using System.Configuration; namespace MultiFactor.AspNet.Sample.Services { public class MultiFactorSettings { public string ApiUrl { get; set; } public string ApiKey { get; } public string ApiSecret { get; } public MultiFactorSettings() { ApiUrl = Configura...
29.055556
75
0.634799
[ "MIT" ]
MultifactorLab/MultiFactor.AspNet.Sample
MultiFactor.AspNet.Sample/Services/MultiFactorSettings.cs
525
C#
//------------------------------------------------------------------------------ // <auto-generated /> // This file was automatically generated by the UpdateVendors tool. //------------------------------------------------------------------------------ #region License // Copyright (c) 2007 James Newton-King // // Permis...
39.293578
126
0.611254
[ "Apache-2.0" ]
ConnectionMaster/dd-trace-dotnet
src/Datadog.Trace/Vendors/Newtonsoft.Json/Serialization/NamingStrategy.cs
4,283
C#
using System; using System.Windows.Input; using Xceed.Wpf.Toolkit; namespace SqlPad { public class SearchTextBox : WatermarkTextBox { private static readonly RoutedCommand ClearPhraseCommand = new RoutedCommand("ClearPhrase", typeof(SearchTextBox), new InputGestureCollection { new KeyGesture(Key.Escape) }); pu...
27.444444
176
0.769231
[ "MIT" ]
Husqvik/SQLPad
SqlPad/SearchTextBox.cs
496
C#
namespace SqlStreamStore { using System; using System.Linq; using System.Net.Http; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.TestHost; using SqlStreamStore.HAL; using SqlStreamStore.Infrastructure; public class HttpClientStrea...
32.671429
120
0.577613
[ "MIT" ]
ArneSchoonvliet/SQLStreamStore
tests/SqlStreamStore.Http.Tests/HttpClientStreamStoreFixture.cs
2,287
C#
namespace E3DC.RSCP.Lib.Tags { [TagGroup(0x18)] public enum MYPV : uint { RSP_FIND_DEVICES = 0x000003, RSP_REMOVE_DEVICES = 0x000006, RSP_INSTANT_BOOST = 0x000007, DEVICE = 0x000100, DEVICE_SERIAL = 0x000101, DEVICE_ENABLED = 0x000102, DEVICE_IP = 0x0...
32.40625
46
0.648023
[ "Apache-2.0" ]
mr-sven/E3DC.RSCP
E3DC.RSCP.Lib/Tags/MYPV.cs
1,039
C#
namespace DomainDrivenDesign; public static class OrderItemFactory { public static OrderItem Create(Product product, decimal quantity) { return new OrderItem(product, new Quantity(quantity)); } }
21.7
69
0.737327
[ "MIT" ]
rafaelfgx/DomainDrivenDesign
source/DomainDrivenDesign/Order/OrderItemFactory.cs
217
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.BenefitsAdministration { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Names...
23.328947
136
0.752397
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.BenefitsAdministration/Person_Name_DataType.cs
1,773
C#
#region License /* * Copyright 2002-2010 the original author or authors. * * 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 * * Unle...
32.4
110
0.55189
[ "Apache-2.0" ]
MaferYangPointJun/Spring.net
src/Spring/Spring.Messaging.Ems/Messaging/Ems/Jndi/JndiLookupFactoryObject.cs
5,184
C#
/** * Copyright 2015 Canada Health Infoway, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
37.75
83
0.712394
[ "ECL-2.0", "Apache-2.0" ]
CanadaHealthInfoway/message-builder-dotnet
message-builder-release-ab-r02_04_03_imm/Main/Ca/Infoway/Messagebuilder/Model/Ab_r02_04_03_imm/Domainvalue/PeriarticularRoute.cs
1,057
C#
using Hi3Helper.Data; using Hi3Helper.Preset; using Hi3Helper.Shared.ClassStruct; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threadin...
39.975446
203
0.582556
[ "MIT" ]
neon-nyan/CollapseLauncher
CollapseLauncher/XAMLs/MainApp/Pages/Dialogs/InstallationConvert.xaml.cs
17,911
C#
using ReactiveUI; using System.Windows.Input; namespace RVisUI.Mvvm { public class SimulationLabelViewModel : ReactiveObject, ISimulationLabelViewModel { public SimulationLabelViewModel() { OK = ReactiveCommand.Create( () => DialogResult = true, this.ObservableForProperty(vm => vm.Na...
23.511628
83
0.649852
[ "MIT" ]
GMPtk/RVis
UI/RVisUI.Mvvm/Dialog/SimulationLabelViewModel.cs
1,013
C#
using System; using System.Linq; using System.Collections.Concurrent; using System.Collections.Generic; using com.csutil.eventbus; namespace com.csutil { public class EventBus : IEventBus { static EventBus() { // Log.d("EventBus used the first time.."); } public static IEvent...
42.081301
126
0.580371
[ "Apache-2.0" ]
dignati/cscore
CsCore/PlainNetClassLib/src/Plugins/CsCore/com/csutil/eventbus/EventBus.cs
5,176
C#
/* * DocuSign REST API * * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. * * OpenAPI spec version: v2 * Contact: devcenter@docusign.com * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using NUnit.Framework; us...
27.65368
125
0.529117
[ "MIT" ]
CameronLoewen/docusign-csharp-client
sdk/src/DocuSign.eSign.Test/Model/AccountBillingPlanTests.cs
6,388
C#
using Xunit; using Veil.Parser; namespace Veil.Handlebars { public class WhitespaceControlTests : ParserTestBase<HandlebarsParser> { [Fact] public void Should_trim_whitespace_from_previous_literal() { var template = Parse("Hello \r\n{{~this}}", typeof(string)); ...
30.40625
92
0.567318
[ "MIT" ]
csainty/Veil
src/Veil.Tests/Handlebars/WhitespaceControlTests.cs
975
C#
// Copyright 2007-2015 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...
53.22807
162
0.727423
[ "Apache-2.0" ]
zengdl/MassTransit
src/MassTransit/Monitoring/Performance/Windows/ConsumerPerformanceCounters.cs
3,036
C#
using System; using System.Drawing.Imaging; using System.IO; using System.Security.AccessControl; using System.Security.Principal; using System.Windows.Input; namespace PipeShot.Libraries.Helper { public static class ConfigHelper { #region Properties //Value whether PipeShot should strech over all...
33.641791
106
0.611949
[ "MIT" ]
PipeRift/Pipeshot
PipeShot/Libraries/Helper/ConfigHelper.cs
6,764
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
34.101124
139
0.65173
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/CloudDirectory/Generated/Model/Internal/MarshallTransformations/GetDirectoryRequestMarshaller.cs
3,035
C#
using System.Runtime.Serialization; using System.ServiceModel; // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService" in both code and config file together. [ServiceContract] public interface IService { [OperationContract] string GetData(int value); [OperationCon...
25.821429
143
0.759336
[ "MIT" ]
darcane/CorporateBackend
Corp.AdventureWorks.WcfService/App_Code/IService.cs
725
C#
/** * Copyright 2016 d-fens GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
40.230769
132
0.734863
[ "Apache-2.0" ]
dfensgmbh/net.sharedop.Appclusive.Products
src/net.sharedop.Appclusive.Products/Example1/v001/ExampleProductSetPercentage.cs
1,571
C#
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using IdentityServer4.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; ...
29.016667
109
0.594486
[ "MIT" ]
Anberm/coolstore-microservices
src/services/idp/Quickstart/Home/HomeController.cs
1,741
C#
/*-----------------------------+-------------------------------\ | | | !!!NOTICE!!! | | | | These libraries are under heavy development so they are ...
33.461245
194
0.654249
[ "MIT" ]
KarloEldic/ForgeNetworkingRemastered
BeardedManStudios/Source/Forge/Networking/TCPServer.cs
26,336
C#
using System; namespace Lib2 { public class Class2 { } }
7.888889
23
0.577465
[ "MIT" ]
luke1226/vscode_sln_template
Lib2/Class2.cs
73
C#
using System.Collections.Generic; using System.Linq; namespace Microsoft.Rest.ClientRuntime.PowerShell { internal static class CollectionExtensions { public static T[] NullIfEmpty<T>(this T[] collection) => (collection?.Any() ?? false) ? collection : null; public static IEnumerable<T> EmptyIfN...
33.916667
123
0.707617
[ "MIT" ]
NelsonDaniel/autorest.powershell
extensions/powershell/resources/runtime/BuildTime/CollectionExtensions.cs
409
C#
using System.Diagnostics.CodeAnalysis; using AltV.Net.Data; using AltV.Net.Elements.Entities; namespace AltV.Net.Async.Elements.Entities { [SuppressMessage("ReSharper", "InconsistentlySynchronizedField")] // we sometimes use object in lock and sometimes not public class AsyncCheckpoint<TCheckpoint> : ...
30.670588
125
0.492137
[ "MIT" ]
Arochka/coreclr-module
api/AltV.Net.Async/Elements/Entities/AsyncCheckpoint.cs
2,609
C#
using System; namespace VitaliiPianykh.FileWall.Client { public interface IFormBugReport { event EventHandler SendClicked; event EventHandler DontSendClicked; void ShowDialog(); void Hide(); string WhatYouDid { get; } string Email { get; } string Deta...
18.210526
43
0.609827
[ "Apache-2.0" ]
caidongyun/FileWall
Client/FormBugReport/IFormBugReport.cs
348
C#
using System; using NBitcoin; using WalletWasabi.WabiSabi.Crypto.CredentialRequesting; namespace WalletWasabi.WabiSabi.Models { public record InputRegistrationResponse( uint256 AliceId, CredentialsResponse AmountCredentials, CredentialsResponse VsizeCredentials ); }
21.230769
56
0.84058
[ "MIT" ]
0racl3z/WalletWasabi
WalletWasabi/WabiSabi/Models/InputRegistrationResponse.cs
276
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using PetaPoco; namespace RawBencher.Benchers { /// <summary> /// Specific bencher for PetaPocoBencher , doing no-change tracking fetch /// </summary> public class PetaPocoBencher : BencherBase<Sale...
28.7375
146
0.705524
[ "MIT" ]
SoftFluent/RawDataAccessBencher
RawBencher/Benchers/PetaPocoBencher.cs
2,301
C#
// // X509AsymmetricSecurityKey.cs // // Author: // Atsushi Enomoto <atsushi@ximian.com> // // Copyright (C) 2005 Novell, Inc. http://www.novell.com // // 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 ...
32.989418
143
0.742743
[ "Apache-2.0" ]
121468615/mono
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/X509AsymmetricSecurityKey.cs
6,235
C#
// // General: // This file is part of .NET Bridge // // Copyright: // 2010 Jonathan Shore // 2017 Jonathan Shore and Contributors // // License: // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You ...
17.762712
80
0.544609
[ "Apache-2.0" ]
Anabad/.Net-Bridge
src/DotNet/Library/src/common/io/BitConversions.cs
8,386
C#
/* Copyright (C) 2019-2021 Junruoyu Zheng. Home page: https://junruoyu-zheng.gitee.io/ligral Distributed under MIT license. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ using System; using System.Collections.Generic; using Xunit; using MathNet.Numerics.LinearAlgebra; using Ligra...
39.870968
137
0.601133
[ "MIT" ]
JRY-Zheng/ligral
test/ModelComputation/TestCos.cs
2,472
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SaaSEqt.IdentityAccess.Application.Commands { public class AddGroupToGroupCommand { public AddGroupToGroupCommand() { } public AddGroupToGroupCommand(string tenantId, string childGr...
25.769231
101
0.656716
[ "MIT" ]
Liang-Zhinian/CqrsFrameworkDotNet
Sample/Reservation/src/Services/IdentityAccess/IdentityAccess/Application/Commands/AddGroupToGroupCommand.cs
672
C#
/* * Camunda BPM REST API * * OpenApi Spec for Camunda BPM REST API. * * The version of the OpenAPI document: 7.13.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using RestSh...
51.550345
177
0.634933
[ "Apache-2.0" ]
yanavasileva/camunda-bpm-examples
openapi-python-client/src/Org.OpenAPITools/Api/TaskIdentityLinkApi.cs
37,374
C#
using System; using System.Text; using awsiotmqttoverwebsocketswinapp.View; using awsiotmqttoverwebsocketswinapp.Presenter; using awsiotmqttoverwebsocketswinapp.Utils; namespace awsiotmqttoverwebsocketswinapp { public partial class Form : System.Windows.Forms.Form, IAwsIotView { private delegate void ...
23.497696
114
0.46617
[ "Apache-2.0" ]
aws-samples/aws-iot-core-dotnet-app-mqtt-over-websockets-sigv4
Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Form.cs
5,101
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 ...
46.509434
170
0.772008
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-slb/Slb/Transform/V20140515/ListTagResourcesResponseUnmarshaller.cs
2,465
C#
/* SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. * * Licensed to Elasticsearch B.V. unde...
36.194805
139
0.761751
[ "Apache-2.0" ]
Bit-Quill/opensearch-net
src/Osc/Analysis/Plugins/Kuromoji/KuromojiIterationMarkCharFilter.cs
2,787
C#
// Copyright © 2018 Wave Engine S.L. All rights reserved. Use is subject to license terms. #region Using Statements using System; using System.Collections.Generic; using System.Text; using WaveEngine.Common.Media; using WaveEngine.Framework; using WaveEngine.Framework.Services; #endregion namespace WaveEngine.Compon...
31.125
96
0.545515
[ "MIT" ]
WaveEngine/Components
Shared/GameActions/GameActionNode.cs
5,979
C#
namespace ONI_Common.Reflection { using Mono.Cecil; using System.Linq; public static class CecilHelper { public static FieldDefinition GetFieldDefinition(ModuleDefinition module, string typeName, string fieldName) { TypeDefinition type = GetTypeDefinition(module, typeName);...
34.809524
116
0.635659
[ "MIT" ]
Blindfold-Games/ONI-Modloader-Mods
Source/ONI-Common/Reflection/CecilHelper.cs
2,195
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. // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // HashLookup.cs // // ...
30.936842
96
0.434502
[ "MIT" ]
Aevitas/corefx
src/System.Linq.Parallel/src/System/Linq/Parallel/Utils/HashLookup.cs
5,878
C#
using System.Resources; using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("LiteDB.Shell")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("LiteDB.Shell")] [assembly: AssemblyCopyright("MIT © 20...
31.842105
56
0.757025
[ "MIT" ]
RytisLT/LiteDB
LiteDB.Shell/Properties/AssemblyInfo.cs
608
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://ww...
45.270833
120
0.663599
[ "MIT" ]
faroukfriha/azure-powershell
src/Sql/Sql.Test/ScenarioTests/ThreatDetectionClassicStorageTests.cs
2,126
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using MyNoSqlServer.Abstractions; using Service.InterestManager.Postrges; using Service.IntrestManager.Domain; using Service.IntrestManager.Domain.Models; using Service.IntrestManager.Dom...
42.535398
117
0.531884
[ "MIT" ]
MyJetWallet/Service.IntrestManager
src/Service.IntrestManager.Api/Storage/InterestRateSettingsStorage.cs
9,613
C#
// Copyright (c) 2014-2017 Wolfgang Borgsmüller // All rights reserved. // // This software may be modified and distributed under the terms // of the BSD license. See the License.txt file for details. // Generated file. Do not edit. using System; namespace Chromium.Remote { using Event; /// <summary> ...
48.284069
231
0.58976
[ "MIT" ]
0XC8/NanUI
NetDimension.NanUI/ChromiumFX/Generated/Remote/CfrLoadHandler.cs
25,157
C#
#region Copyright(c) Alexey Sadomov, Vladimir Timashkov. All Rights Reserved. // ----------------------------------------------------------------------------- // Copyright(c) 2010 Alexey Sadomov, Vladimir Timashkov. All Rights Reserved. // // Redistribution and use in source and binary forms, with or without // m...
49.855072
100
0.647093
[ "MIT" ]
sadomovalex/camlex
Camlex.NET/Tags.cs
3,442
C#
using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace PartsUnlimited.Data.Migrations { [DbContext(typeof(PartsUnlimitedContext))] [Migration("20151222030342_I...
33.65625
117
0.456438
[ "MIT" ]
Delta-N/PracticalDevOps
src/PartsUnlimited.Website/Data/Migrations/20151222030342_InitialMigration.Designer.cs
12,924
C#
using System; using System.Threading; #if !NETFX_CORE namespace Custom_Scenery.Compression { internal class DeflateStreamAsyncResult : IAsyncResult { public byte[] buffer; public int offset; public int count; // disable csharp compiler warning #0414: field assigned unused value #pra...
36.992424
137
0.565022
[ "MIT" ]
ParkitectNexus/Billboards
Compression/DeflateStreamAsyncResult.cs
4,883
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace URBDRemoteService { public static class ServiceHelper { private const int STANDARD_RIGHTS_REQUIRED = 0xF0000; private const int SERVICE_WIN32_OWN_PRO...
34.768166
139
0.471537
[ "Apache-2.0" ]
iremezoff/urbd
Ugoria.URBD.RemoteWindowsService/ServiceHelper.cs
20,098
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...
56.563221
238
0.670978
[ "Apache-2.0" ]
ebattalio/aws-sdk-net
sdk/src/Services/SageMaker/Generated/_bcl45/IAmazonSageMaker.cs
598,552
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using IdentityServer.Legacy; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspN...
30.895833
119
0.648011
[ "Apache-2.0" ]
jugstalt/identityserver-legacy
is4/IdentityServer/Areas/Identity/Pages/Account/ConfirmEmail.cshtml.cs
1,485
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace IDG { public abstract class ProtocolBase { public abstract ProtocolBase InitMessage(byte[] bytes); public abstract int Length { get; } public abstract byte[] GetByteStream(); public ...
26.818713
90
0.54034
[ "Apache-2.0" ]
QinZhuo/IDG_FightServer
IDG_FightServer/Protocol.cs
4,588
C#
using AppTokiota.Users.Models; using Microsoft.AppCenter.Crashes; using Polly; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace AppTokiota.Users.Services { public class ReviewService : IRevi...
40.033333
225
0.547599
[ "MIT" ]
ioadres/AppTokiota
AppTokiota.Users/Services/Review/ReviewService.cs
3,605
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using AleFIT.Workflow.Core; using AleFIT.Workflow.Test.TestData; namespace AleFIT.Workflow.Test.Mocks { public class DecrementNode : IExecutable<GenericContext<int>> { public Task<ExecutionContext<Generic...
25.35
118
0.712032
[ "MIT" ]
alefgroup/AleFIT.Workflow
AleFIT.Workflow.Test/Mocks/DecrementNode.cs
509
C#
using SPICA.Formats.Common; using System.IO; using System.Text; using SPICA.Formats.GFL2.Texture; using SPICA.Formats.CtrH3D; using System.Collections.Generic; using System.Linq; namespace SPICA.WinForms.Formats { class GFPackedTexture { private List<GFTexture> Textures; public GFPackedTexture() { Tex...
27.445652
129
0.549703
[ "Unlicense" ]
HelloOO7/SPICA
SPICA.WinForms/Formats/GFPackedTexture.cs
2,527
C#
using System; using Symbolica.Expression; namespace Symbolica.Computation.Exceptions { [Serializable] public class IrreducibleSymbolicExpressionException : SymbolicaException { public IrreducibleSymbolicExpressionException() : base("The symbolic expression cannot be reduced to a consta...
23.6
78
0.700565
[ "MIT" ]
SymbolicaDev/Symbolica
src/Computation/Exceptions/IrreducibleSymbolicExpressionException.cs
356
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Uno.Extensions; using Uno.SourceGeneration; namespace Uno.UI.SourceGenerators.TSBindings { class TSBindingsGenerator : Sour...
29.242358
174
0.662286
[ "Apache-2.0" ]
06needhamt/uno
src/SourceGenerators/Uno.UI.SourceGenerators/TSBindings/TSBindingsGenerator.cs
13,395
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. using System.Linq; using Analyzer.Utilities.PooledObjects; namespace System.Collections.Immutable { internal static class ImmutableHashSetExtensions { publi...
26.94
145
0.466964
[ "MIT" ]
AndreasVolkmann/roslyn-analyzers
src/Utilities/Compiler/Extensions/ImmutableHashSetExtensions.cs
2,696
C#
// Copyright 2016 Google Inc. 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 License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
34.066667
82
0.710372
[ "Apache-2.0" ]
Acidburn0zzz/google-cloud-dotnet
apis/Google.Cloud.BigQuery.V2/Google.Cloud.BigQuery.V2/GetJobOptions.cs
1,024
C#
using Godot; using YUtil.Random; public class DarkRandomizer : WalkingShooter { public override void _Ready() { GDArea.Bullets.RegisterEmitter(this, "DropStuff", (p, i) => { p.Translate(new Vector2(12, 14)); p.VelocityMMF2 = 20 + random.Next(40);...
26.052632
90
0.511111
[ "MIT" ]
up-left/ykny
knytt/objects/banks/bank17/DarkRandomizer.cs
495
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace marketplaceservice.Helpers { public interface IJwtIdClaimReaderHelper { public Guid getUserIdFromToken(string jwt); } }
19.153846
51
0.759036
[ "MIT" ]
S65-2-project/MarketplaceService
MarketplaceService/Helpers/IJwtIdClaimReaderHelper.cs
251
C#
// <copyright file="ClientPacketHandler.cs" company="MUnique"> // Licensed under the MIT License. See LICENSE file in the project root for full license information. // </copyright> namespace MUnique.OpenMU.ConnectServer.PacketHandler { using System; using System.Collections.Generic; using System.Net.Socke...
38.8875
208
0.582449
[ "MIT" ]
Apollyon221/OpenMU
src/ConnectServer/PacketHandler/ClientPacketHandler.cs
3,113
C#
using System; using NUnit.Framework; using it.unifi.dsi.stlab.networkreasoner.model.gas; using it.unifi.dsi.stlab.networkreasoner.gas.system.exactly_dimensioned_instance; using it.unifi.dsi.stlab.networkreasoner.gas.system.formulae; using log4net; using log4net.Config; using System.IO; using System.Collections.Generic;...
30.335
106
0.732982
[ "MIT" ]
massimo-nocentini/network-reasoner
it.unifi.dsi.stlab.networkreasoner.gas.system.tests/NetwonRaphsonSystemThreeNodesNetworkLoadNodesWithNegativePressures.cs
6,067
C#
using IndieVisible.Infra.CrossCutting.Abstractions; using IndieVisible.Infra.CrossCutting.Notifications.Slack; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using RestSharp; using SendGrid; using SendGrid.Helpers.Mail; using Sy...
35.016949
127
0.600678
[ "MIT" ]
programad/indiecativo
IndieVisible.Infra.CrossCutting.Notifications/SendGridSlackNotificationService.cs
4,134
C#
//--------------------------------------------------------------------------- // // Name: Config.cs // Author: Vita Tucek // Created: 11.3.2015 // License: MIT // Description: Save / load program configuration // //--------------------------------------------------------------------------- using S...
26.883117
97
0.47037
[ "MIT" ]
docbender/SerialMonitor
SerialMonitor/Config.cs
6,212
C#
namespace BeUtl.Models; public static class BeUtlDataFormats { public const string Layer = "BeUtlLayerJson"; }
16.714286
49
0.760684
[ "MIT" ]
YiB-PC/BeUtl
src/BeUtl/Models/BeUtlDataFormats.cs
119
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class LangMgr { static LangMgr mgr; string _sLang = "Chinese"; Dictionary<string, string> dic1 = new Dictionary<string, string> (); Dictionary<string, string> dic2 = new Dictionary<string, string> (); public static LangMgr get...
24.37037
69
0.598024
[ "MIT" ]
Jonle/SolitaireCollection
Assets/Scripts/Mgr/LangMgr.cs
1,318
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...
55.712692
194
0.672758
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/MediaStore/Generated/_netstandard/IAmazonMediaStore.cs
39,946
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; namespace ButtonScaler.WinPhone { public partial class MainPage : global::Xamarin....
25.76
96
0.71118
[ "Apache-2.0" ]
NoleHealth/xamarin-forms-book-preview-2
Chapter21/ButtonScaler/ButtonScaler/ButtonScaler.WinPhone/MainPage.xaml.cs
646
C#
namespace Domain { public class UserFavorite { public int AdvertiseId { get; set; } public Advertise Advertise { get; set; } public string AppUserId { get; set; } public AppUser AppUser { get; set; } } }
19.307692
48
0.585657
[ "MIT" ]
ebradim/OlxClone_dotNET5_Angular11
Domain/UserFavorite.cs
253
C#
using System.Collections.Generic; namespace StuffPacker { public enum WeightPrefix { none = 0, Gram, Ounce, Pound } public static class WeightPrefixHelper { public static List<string> GetWeightPrefix() { return new List<string> ...
19.115385
52
0.513078
[ "MIT" ]
StuffPacker/StuffPacker
src/Shared/Shared.Contract/WeightPrefix.cs
499
C#
using System.Text.Json; using RTGS.DotNetSDK.Subscriber.Handlers; using RTGS.Public.Messages.Subscriber; using RTGS.Public.Payment.V3; namespace RTGS.DotNetSDK.Subscriber.Adapters; internal class PayawayCompleteV1MessageAdapter : IMessageAdapter<PayawayCompleteV1> { public string MessageIdentifier => nameof(Payaway...
33.222222
99
0.837793
[ "MIT" ]
RTGS-OpenSource/rtgs-dotnet-sdk
src/RTGS.DotNetSDK/RTGS.DotNetSDK/Subscriber/Adapters/PayawayCompleteV1MessageAdapter.cs
600
C#
using AutoMapper; using MediatR; using Microsoft.Extensions.Logging; using Ordering.Application.Contracts.Persistence; using Ordering.Domain.Entities; using System; using System.Threading; using System.Threading.Tasks; using Ordering.Application.Exceptions; namespace Ordering.Application.Features.Orders.Commands.Delet...
39.682927
133
0.704978
[ "MIT" ]
emanuellopes/dotnetMicroservices
src/Services/Ordering/Ordering.Application/Features/Orders/Commands/DeleteOrder/DeleteOrderCommandHandler.cs
1,627
C#
using Shouldly; using StructureMap.Graph; using StructureMap.Pipeline; using Xunit; namespace StructureMap.Testing.Bugs { public class Bug_255_InstanceAttribute_Implementation { [Fact] public void smart_instance_respects_the_name_of_the_inner() { new SmartInstan...
27.681159
104
0.580105
[ "Apache-2.0" ]
CurufinweU/structuremap
src/StructureMap.Testing/Bugs/Bug_255_InstanceAttribute_Implementation.cs
1,912
C#
using Sitecore.Remote.Installation.Client.Responses; using Sitecore.Remote.Installation.Models; namespace Sitecore.Remote.Installation.Pipelines { /// <summary> /// Installation conflict details /// </summary> public class InstallationConflictDetails { /// <summary> /// Initializes a new instance of...
26.490909
93
0.61908
[ "MIT" ]
zigor/sinst
sinst/Pipelines/50-InstallationConflicts/InstallationConflictDetails.cs
1,459
C#
#if UNITY_EDITOR using System.Collections; using ModestTree; using UnityEngine.TestTools; using Zenject.Tests.Bindings.FromPrefabResource; namespace Zenject.Tests.Bindings { public class TestFromPrefabResource : ZenjectIntegrationTestFixture { const string PathPrefix = "TestFromPrefabResource/"; ...
31.791209
138
0.588144
[ "MIT" ]
NRatel/Zenject
UnityProject/Assets/Plugins/Zenject/OptionalExtras/IntegrationTests/Tests/Bindings/TestFromPrefabResource/TestFromPrefabResource.cs
5,788
C#
using System.Collections.Generic; using Essensoft.AspNetCore.Payment.Alipay.Response; namespace Essensoft.AspNetCore.Payment.Alipay.Request { /// <summary> /// alipay.ebpp.pdeduct.async.pay /// </summary> public class AlipayEbppPdeductAsyncPayRequest : IAlipayRequest<AlipayEbppPdeductAsyncPayResponse>...
22.853659
101
0.547492
[ "MIT" ]
LuohuaRain/payment
src/Essensoft.AspNetCore.Payment.Alipay/Request/AlipayEbppPdeductAsyncPayRequest.cs
2,849
C#
using System; namespace Entitas.CodeGenerator { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] public class CustomPrefixAttribute : Attribute { public readonly string prefix; public CustomPrefixAttribute(string prefix) { this.prefix = prefix; } ...
24.846154
73
0.687307
[ "MIT" ]
cedricdg/Roslyn-CSharp-Code-Generator
Fixtures/Entitas CodeGenerator/Attributes/CustomPrefixAttribute.cs
325
C#
using Microsoft.EntityFrameworkCore; namespace ArrearsRules.V1.Infrastructure { public class DatabaseContext : DbContext { //TODO: rename DatabaseContext to reflect the data source it is representing. eg. MosaicContext. //Guidance on the context class can be found here https://github.com/LBHac...
31.823529
132
0.713494
[ "MIT" ]
LBHackney-IT/lbh-arrears-rules
ArrearsRules/V1/Infrastructure/DatabaseContext.cs
541
C#