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 2020 Confluent 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 applicable law or agreed to in w...
38.338235
143
0.575949
[ "Apache-2.0" ]
ChadJessup/confluent-kafka-dotnet
src/Confluent.SchemaRegistry.Serdes.Json/JsonSerializerConfig.cs
5,214
C#
using System; using System.Collections.Generic; using Microsoft.EntityFrameworkCore; namespace Tracker.PostgreSQL.Core.Data.Mapping { public partial class TaskExtendedMap : IEntityTypeConfiguration<Tracker.PostgreSQL.Core.Data.Entities.TaskExtended> { public void Configure(Microsoft.EntityFrame...
35.46875
156
0.557709
[ "MIT" ]
Enric-Gilabert/EntityFrameworkCore.Generator
sample/Tracker.PostgreSQL/Tracker.PostgreSQL.Core/Data/Mapping/TaskExtendedMap.cs
3,405
C#
using System; namespace XLua.LuaDLL { using System.Runtime.InteropServices; #if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || XLUA_GENERAL || (UNITY_WSA && !UNITY_EDITOR) [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate void TableSizeReport(IntPtr p, int size); [UnmanagedF...
37.075472
162
0.46799
[ "BSD-3-Clause" ]
107191613/xLua
General/LuaMemoryLeakChecker/LuaMemoryLeakChecker.cs
9,827
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using Xunit; namespac...
47.624277
191
0.564996
[ "MIT" ]
ipavel83/Collections.Pooled
Collections.Pooled.Tests/TestBase.Generic.cs
16,480
C#
using AutoMapper; using Business.Resources.Location; namespace Business.Mapping.Location { public class ModelToResourceProfile : Profile { public ModelToResourceProfile() { CreateMap<Domain.Models.Location, LocationResource>(); } } }
20.285714
66
0.669014
[ "MIT" ]
dong-nguyen-hd/HR-Management
BE/Business/Mapping/Location/ModelToResourceProfile.cs
286
C#
using UnityEngine; using System; using System.Collections; using System.Collections.Generic; [RequireComponent(typeof(CanvasGroup))] public class CanvasFader : MonoBehaviour { private CanvasGroup _canvasGroupEntity; private CanvasGroup _canvasGroup { get { if(_...
21.489655
110
0.515725
[ "MIT" ]
kuro0096/RaceGame
RaceGame/Assets/Script/Scene/CanvasFader.cs
3,304
C#
#if !NOJSONNET using System.IO; using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace NBitcoin.RPC { //{"code":-32601,"message":"Method not found"} public class RPCError { internal RPCError(JObject error) { Code = (RPCErrorCode)((int)error.GetValue("co...
22.072289
96
0.476528
[ "MIT" ]
MIPPL/StratisBitcoinFullNode
src/NBitcoin/RPC/RPCResponse.cs
1,834
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="App.cs" company="Flush Arcade Pty Ltd."> // Copyright (c) 2015 Flush Arcade Pty Ltd. All rights reserved. // </copyright> // ----------------------------------------------------...
24.225352
120
0.575
[ "MIT" ]
PacktPublishing/Xamarin-Blueprints
Chapter 5/App.xaml.cs
1,722
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.RazorPages; namespace SignalRTest.Pages { public class AboutModel : PageModel { public string Message { get; set; } public void OnGet() { ...
20.894737
60
0.627204
[ "MIT" ]
abcamitan/NetCoreSignalRChat
Pages/About.cshtml.cs
399
C#
/* Based on code from MVVM Dialogs, located at https://github.com/FantasticFiasco/mvvm-dialogs Specifically FileDialogSettings.cs, located at https://github.com/FantasticFiasco/mvvm-dialogs/blob/master/src/net/FrameworkDialogs/FileDialogSettings.cs MVVM Dialogs is licensed under the Apache License 2.0, Co...
50.95935
171
0.590619
[ "MIT" ]
danjoconnell/VideoScriptEditor
VideoScriptEditor/VideoScriptEditor.Core/Services/Dialog/SystemFileDialogSettings.cs
12,538
C#
using RadarSoft.RadarCube.Enums; namespace RadarSoft.RadarCube.Interfaces { internal interface IChartGridZone { ChartGridZone Zone { get; } } }
18.222222
40
0.707317
[ "MIT" ]
RadarSoft/radarcube-olap-analysis
src/Interfaces/IChartGridZone.cs
164
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("Sor...
38.432432
84
0.748945
[ "MIT" ]
Uendy/CodeWars
CodeWars/Sort The Odd/Properties/AssemblyInfo.cs
1,425
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Secur...
41.067742
233
0.571165
[ "Apache-2.0", "MIT" ]
AtOMiCNebula/azure-functions-host
src/WebJobs.Script.WebHost/Security/KeyManagement/SecretManager.cs
25,464
C#
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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 * ...
30.529412
83
0.64483
[ "Apache-2.0" ]
ImEdisonJiang/tencentcloud-sdk-dotnet
TencentCloud/Cpdp/V20190820/Models/CreateRedInvoiceResponse.cs
1,623
C#
#region License /* Copyright © 2014-2021 European Support Limited 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 a...
31.301887
101
0.685353
[ "Apache-2.0" ]
Ginger-Automation/Ginger
Ginger/Ginger/AutomatePageLib/AddActionMenu/WindowExplorer/Java/JavaTabTreeItem.cs
1,660
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Xml; using Microsoft.Build.Evaluation; using Microsoft.Build.Utilities; namespace Dnt.Commands { public static class ProjectExtensions { public static bool GeneratesPackage(this P...
40.674528
138
0.578453
[ "MIT" ]
MaartenBE/DNT
src/Dnt.Commands/ProjectExtensions.cs
8,625
C#
using System; using System.Collections.Generic; using System.Text; namespace SkiRental { public class Ski { public Ski(string manufacturer,string model,int year) { Manufacturer = manufacturer; Model = model; Year = year; } public string Manu...
21.192308
61
0.546279
[ "MIT" ]
IvanIvTodorov/SoftUniEducation
C#Advanced/C#AdvancedExams/Exam26June2021/SkiRental/Ski.cs
553
C#
using AllReady.ViewModels.Shared; using MediatR; namespace AllReady.Features.Tasks { public class VolunteerTaskSignupCommand : IAsyncRequest<VolunteerTaskSignupResult> { public VolunteerTaskSignupViewModel TaskSignupModel { get; set; } } }
23.818182
86
0.767176
[ "MIT" ]
7as8ydh/allReady
AllReadyApp/Web-App/AllReady/Features/Tasks/VolunteerTaskSignupCommand.cs
264
C#
using MasterDevs.ChromeDevTools; using Newtonsoft.Json; using System; using System.Collections.Generic; namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page { [CommandResponse(ProtocolName.Page.GetManifestIcons)] [SupportedBy("Chrome")] public class GetManifestIconsCommandResponse { /// <summary> /// Gets o...
24.526316
62
0.774678
[ "MIT" ]
rollrat/custom-crawler
ChromeDevTools/Protocol/Chrome/Page/GetManifestIconsCommandResponse.cs
466
C#
// Copyright (c) 2019 Alachisoft // // 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...
40.756757
174
0.627542
[ "Apache-2.0" ]
delsoft/NCache
Src/NCCommon/Util/ProcessorAffinity.cs
4,524
C#
using CSharpSpeed; using System.Diagnostics; using System.Runtime.CompilerServices; using static InstrumentedLibrary.Maths; namespace InstrumentedLibrary { /// <summary> /// /// </summary> public static class ElasticOutInValueEasingTests { /// <summary> /// /// </summary>...
36.869565
191
0.591392
[ "MIT" ]
Shkyrockett/CSharpSpeed
InstrumentedLibrary/Dynamics/ValueEasing/ElasticOutInValueEasingTests.cs
1,698
C#
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Threading.Tasks; using ANYWAYS.UrbanisticPolygons.Graphs.Polygons; using ANYWAYS.UrbanisticPolygons.Tiles; using NetTopologySuite.Features; using OsmSharp; using OsmSharp.Tags; namespace ANYWAY...
37.268657
125
0.579495
[ "MIT" ]
anyways-open/coherent-polygons
src/ANYWAYS.UrbanisticPolygons/TiledPolygonGraphBuilder.cs
2,497
C#
using System; using System.Collections; using System.Collections.Generic; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; using NetOffice.CollectionsGeneric; namespace NetOffice.DAOApi { /// <summary> /// DispatchInterface TableDefs /// SupportByVersion DAO, 3.6,12.0 ///...
29.863636
170
0.703196
[ "MIT" ]
igoreksiz/NetOffice
Source/DAO/DispatchInterfaces/TableDefs.cs
1,316
C#
using System; using System.Text; using System.IO; using System.Globalization; using System.Collections.Generic; //check out ccd2iso linux program? //https://wiki.archlinux.org/index.php/CD_Burning#TOC.2FCUE.2FBIN_for_mixed-mode_disks advice here //also referencing mednafen sources //TODO - copy mednafen sa...
33.618067
183
0.646066
[ "MIT" ]
Asnivor/BizHawk
BizHawk.Emulation.DiscSystem/DiscFormats/CCD_format.cs
21,215
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...
34.8
131
0.611694
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/src/Services/OpsWorks/Generated/Model/Internal/MarshallTransformations/ListTagsRequestMarshaller.cs
4,002
C#
using Cellarium.Api; using Cellarium.Commands.Aliases; using Cellarium.Commands.Base; using Cellarium.Commands.Parameters; using Cellarium.Handlers; using YandexDisk.Client.Http; namespace Cellarium.Commands; public class ClearExpiredCommand : BaseCommand { public sealed override string Description { get; init; ...
31.068493
110
0.555115
[ "MIT" ]
icYFTL/Cellarium
Cellarium/Commands/ClearExpiredCommand.cs
2,270
C#
using NSubstitute; using Xunit; using Xunit.Sdk; using Yak2D.Internal; using Yak2D.Surface; namespace Yak2D.Tests { public class GpuSurfaceManagerTest { private IGpuSurfaceManager SetUpManagerWithFakes() { var components = Substitute.For<ISystemComponents>(); var appasse...
51.793388
167
0.544918
[ "Apache-2.0" ]
AlzPatz/yak2d
src/Yak2D.Tests/Surface/GpuSurfaceManagerTest.cs
6,267
C#
namespace GeoLib { public class Coords { public double Longitude { get; set; } public double Latitude { get; set; } } }
14.222222
39
0.664063
[ "MIT" ]
hardsky/HotelFinder
src/GeoLib/Coords.cs
130
C#
namespace Patterns.Creational.AbstractFactory { public interface IFactory<out T> where T : IProduct { T Create(); } }
19.714286
55
0.652174
[ "MIT" ]
SeletskySergey/Patterns
Creational/AbstractFactory/IFactory.cs
140
C#
using System; using System.Collections.Generic; using System.Linq; using NetFabric.Assertive; using Xunit; namespace NetFabric.Tests { public class AppendTests { [Fact] void AppendNullLeft() { // Arrange // Act Action action = () => DoublyLinkedList....
34.670455
106
0.450016
[ "MIT" ]
NetFabric/NetFabric.DoubleLinkedList
NetFabric.DoublyLinkedList.Tests/AppendTests.cs
3,051
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Windows.Controls; using System.Windows; using System.Windows.Input; namespace Microsoft...
31.809091
133
0.470134
[ "MIT" ]
batzen/wpf-test
src/Test/Common/Code/Microsoft/Test/Stability/Extensions/Actions/DataGridSelectAction.cs
3,501
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.Azure.Devices.Common { using System; static class CommonConstants { // TODO: move these to ConfigProvider public const ...
52
161
0.716158
[ "MIT" ]
5dprinted/azure-iot-sdks
csharp/service/Microsoft.Azure.Devices/Common/CommonConstants.cs
10,608
C#
using System; using System.Numerics; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); BigInteger player1TotalScore = 0; BigInteger player2TotalScore = 0; int player1GamesWon = 0; int player2GamesWon = 0; for (int i = 0; i < n; i++) ...
31.970297
78
0.449055
[ "MIT" ]
ilian1902/BGcoder-C-1-exam
C#1 - 2013 2014/Telerik Academy Exam 1 @ 24 June 2013 Evening/03.CardWars/Program.cs
3,231
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Reflection; using Microsoft.Toolkit.Uwp.Helpers; using Windows.UI; using Windows.UI.Xaml....
31.808511
109
0.637458
[ "MIT" ]
IamNeha99/Uno.WindowsCommunityToolkit
Microsoft.Toolkit.Uwp.SampleApp.Shared/Common/SolidColorBrushConverter.cs
1,495
C#
using Newtonsoft.Json; namespace Tiny.RestClient.Tests.Models { public class SnakeResponse { [JsonProperty("id")] public int Id { get; set; } [JsonProperty("response_data")] public string ResponseData { get; set; } } }
20.384615
48
0.615094
[ "MIT" ]
btbensoft/Tiny.RestClient
Tests/Tiny.RestClient.ForTest.Api/Models/SnakeResponse.cs
267
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Security.Cr...
42.34633
194
0.607377
[ "Apache-2.0" ]
DavidKlempfner/aspnetcore
src/Servers/Kestrel/Core/src/KestrelServerOptions.cs
18,463
C#
using UnityEngine; [System.Serializable] public class FlyingEnemy : IEnemy { int health; int attackDmg; EnemyType enemyType; public FlyingEnemy() { health = 10; attackDmg = 5; enemyType = EnemyType.FLYING_ENEMY; } public int Health { get { ...
14.571429
53
0.457843
[ "Apache-2.0" ]
gmostofa/Design-Pattern-in-Unity-using-C-
Factory/Assets/_module/_enemy/FlyingEnemy.cs
1,020
C#
// // CEF provides functions for converting between UTF-8, -16 and -32 strings. // CEF string types are safe for reading from multiple threads but not for // modification. It is the user's responsibility to provide synchronization if // modifying CEF strings from multiple threads. // // // This file manually written f...
39.52
106
0.725709
[ "Apache-2.0" ]
dongshengfengniaowu/ShoppingWebCrawler
ShoppingWebCrawler.Cef.Core/Interop/libcef.string.cs
1,978
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _04.Palindromes { class Program { static void Main(string[] args) { string[] text = Console.ReadLine().Split(new char[] { ' ', '.', ',', '?', '!' } , String...
27.069767
133
0.498282
[ "MIT" ]
stoyanovmiroslav/Tech-Module-Practice
Programming Fundamentals/Strings and Text Processing - Lab/04. Palindromes/Program.cs
1,166
C#
using System; using Newtonsoft.Json; using OpenEventSourcing.Events; namespace OpenEventSourcing.Serialization.Json.Converters { public sealed class EventIdJsonConverter : JsonConverter<EventId> { public override void WriteJson(JsonWriter writer, EventId value, JsonSerializer serializer) { ...
31
122
0.690616
[ "MIT" ]
danielcirket/OpenEventSourcing
src/OpenEventSourcing.Serialization.Json/Converters/EventIdJsonConverter.cs
684
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; using UFO.Commander.Helper; using UFO.Commander.ViewModel.Entities; using UFO.Server.Bll.Common; using Ga...
36.171975
135
0.576334
[ "Apache-2.0" ]
Xpitfire/ufo
UFO.Commander/UFO.Commander/ViewModel/PerformanceEditViewModel.cs
5,681
C#
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace BatMap { internal class ProjectionVisitor : ExpressionVisitor { private readonly MapConfiguration _mapConfiguration; private readonly IEnumerable<IncludePath> _includes; internal Pr...
42.217391
145
0.586165
[ "MIT" ]
liamwang/BatMap
BatMap/ProjectionVisitor.cs
5,826
C#
namespace ABCo.ABSave.Mapping.Description { public enum SaveMembersMode : byte { Fields = 1, Properties = 2 } public enum SaveInheritanceMode { /// <summary> /// Tells ABSave to use the index the type appears in the list provided to store what sub-type is present. ...
34.233333
126
0.609542
[ "MIT" ]
ABCo-Src/ABSave
ABCo.ABSave/Mapping/Description/SaveMembersMode.cs
1,029
C#
using UnityEngine; using UnityEditor; using System.Linq; using ParadoxEngine.Utilities; [CustomEditor(typeof(NHideCharacter))] public class NHideCharacterEditor : Editor { private GUIStyle _title; private NHideCharacter _node; private Container _characterContainer; private int _characterSelected; ...
32.344595
184
0.62231
[ "MIT" ]
deadlysmiletm/ADayWithArcueid
Assets/Paradox Engine/Graph/Editor/CustomInspector/Nodes/NHideCharacterEditor.cs
4,789
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text.Encodings.Web; using System.Threading.Tasks; using JRPC_HMS.Services.Mail; namespace Microsoft.AspNetCore.Mvc { public static class MailManagerExtensions { public static Task SendEmailConfirmationAsync(this IMailManage...
36.56
121
0.699125
[ "MIT" ]
rudman11/JRPC_HMS
Extensions/MailManagerExtensions.cs
914
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. namespace System.Transactions { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2229", J...
33.232877
179
0.563067
[ "MIT" ]
Aevitas/corefx
src/System.Transactions.Local/src/System/Transactions/DependentTransaction.cs
2,426
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using NUnit.Framework; using ProtoBuf; using ProtoBuf.Meta; namespace Examples.Issues { [TestFixture] public class SO11317045 { [ProtoContract] [ProtoInclude(1, typeof(A), DataFormat = Da...
24.903846
76
0.523938
[ "MIT" ]
Bhaskers-Blu-Org2/vsminecraft
dependencies/protobuf-net/Examples/Issues/SO11317045.cs
2,592
C#
using System.Threading.Tasks; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Host; using Microsoft.Extensions.Logging; using TextMood.Backend.Common; namespace TextMood.Functions { [StorageAccount(QueueNameConstants.AzureWebJobsStorage)] public static class SaveTextModelToDatabase { ...
30.384615
129
0.722785
[ "MIT" ]
AzureAdvocateBit/TextMood
TextMood.Functions/Functions/SaveTextModelToDatabase.cs
790
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ManagerApp_GUI.View { interface ICategoryManagerView { void ClearCategoryList(); void AddCategoryToList(int id, string name); void BlockEditContro...
23.703704
53
0.651563
[ "MIT" ]
pacmancoder/WebTrainingYard
client/ManagerApp/ManagerApp_GUI/View/ICategoryManagerView.cs
642
C#
using System.Threading.Tasks; using MAVN.Service.SmsProviderInfobip.InfobipClient.Models.Requests; using MAVN.Service.SmsProviderInfobip.InfobipClient.Models.Responses; using Refit; namespace MAVN.Service.SmsProviderInfobip.InfobipClient { /// <summary> /// Interface that describes Infobip SMS client access ...
31.409091
85
0.680174
[ "MIT" ]
HannaAndreevna/MAVN.Service.SMSProviderInfobip
client/MAVN.Service.SmsProviderInfobip.InfobipClient/IInfobip.cs
691
C#
using System; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Xamarin.MacDev; using Xamarin.Localization.MSBuild; namespace Xamarin.MacDev.Tasks { public abstract class GetNativeExecutableNameTaskBase : XamarinTask { #region Inputs [Required] public string AppManifest { get; set; } ...
16.772727
68
0.714092
[ "BSD-3-Clause" ]
Therzok/xamarin-macios
msbuild/Xamarin.MacDev.Tasks.Core/Tasks/GetNativeExecutableNameTaskBase.cs
740
C#
using System.Collections.Generic; using Math = System.Math; using UnityEngine; #if UNITY_5_5_OR_NEWER using UnityEngine.Profiling; #endif namespace Pathfinding { using Pathfinding.Serialization; using Pathfinding.Util; [JsonOptIn] /// <summary> /// Generates a grid of nodes. /// The GridGraph does exactly what ...
36.34537
223
0.668535
[ "MIT" ]
BilJose/2D-Game
Assets/AstarPathfindingProject/Generators/GridGenerator.cs
78,506
C#
using System.Net; using System.Threading.Tasks; using VSphere.Models.JsonConvert; namespace VSphere.Services.Inteface { public interface IService { Task<VMConverter> GetVMsAPI(string url, string username, string password); Task<HostConverter> GetHostsAPI(string url, string username, string pa...
32.875
122
0.741445
[ "MIT" ]
caioaugusto1/VCenterVMWare
VSphere/Services/Inteface/IService.cs
1,054
C#
using System; namespace SRATS.Utils { public static class NMath { static int FACTMAX; static double PI; static double LOG_2PI; // static double LOG_PI; static public double ZERO = 1.0e-14; static int N; static double B2; static double B4; sta...
33.657754
104
0.378138
[ "MIT" ]
SwReliab/SRATS2017
SRATS2017/Utils/NMath.cs
25,176
C#
using System; using DynamicMVC.ApplicationMetadataLibrary.Interfaces; using DynamicMVC.Shared.Enums; using DynamicMVC.Shared.Interfaces; using ReflectionLibrary.Enums; namespace DynamicMVC.ApplicationMetadataLibrary.Strategies.SimpleTypeParsers { /// <summary> /// Simple Type Parser for Nullable UInt64 datatyp...
25.566667
76
0.672751
[ "Apache-2.0" ]
PrecisionWebTechnologies/DynamicMVC
DynamicMVC.ApplicationMetadataLibrary/Strategies/SimpleTypeParsers/SimpleTypeUInt64NullableParser.cs
767
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 ...
32.4
134
0.699735
[ "Apache-2.0" ]
chys0404/aliyun-openapi-net-sdk
aliyun-net-sdk-ros/ROS/Model/V20190910/ListStackResourcesRequest.cs
2,268
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Dot...
41.9002
146
0.611042
[ "MIT" ]
AzureMentor/arcade-services
src/Microsoft.DotNet.Darc/src/DarcLib/Actions/Remote.cs
20,992
C#
namespace PostalCodeDistance.NETStandard.Readers { public interface INameTransfer { string Transfer(string name); } }
17.375
49
0.697842
[ "MIT" ]
MeilCli/PostalCodeDistance
PostalCodeDistance.NETStandard/Readers/INameTransfer.cs
141
C#
// ConcurrentStack.cs // // Authors: // Marek Safar <marek.safar@gmail.com> // // Copyright (c) 2008 Jérémie "Garuma" Laval // Copyright (C) 2014 Xamarin Inc (http://www.xamarin.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation file...
23.477032
117
0.642234
[ "Apache-2.0" ]
eiz/mono
mcs/class/corlib/System.Collections.Concurrent/ConcurrentStack.cs
6,646
C#
//----------Permission开始---------- using System; using YBlog.Core.FrameWork.IServices; using YBlog.Core.FrameWork.IRepository; using YBlog.Core.FrameWork.Entity; namespace YBlog.Core.FrameWork.Services { /// <summary> /// PermissionServices /// </summary> public class PermissionServices : BaseServices<Pe...
20.310345
80
0.616299
[ "MIT" ]
yb123speed/YBlog
YBlog.Core.FrameWork/YBlog.Core.FrameWork.Services/work/PermissionServices.cs
597
C#
using System; using System.Collections.Generic; using NueDeck.Scripts.Enums; using NueDeck.Scripts.Managers; using NueExtentions; using UnityEngine; namespace NueDeck.Scripts.Data.Collection { [CreateAssetMenu(fileName = "Card Data",menuName = "Data/Collection/Card",order = 0)] public class CardData : Scripta...
28.134615
97
0.529733
[ "MIT" ]
Arefnue/UNOG-Fall-Jam
Assets/NueDeck/Scripts/Data/Collection/CardData.cs
2,928
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DamageOnHit : MonoBehaviour { [SerializeField] private int damage = 1; private void OnTriggerEnter(Collider other) { if (other.GetComponent<Enemy>()) { other.GetComponent<Enemy>().TakeD...
21.411765
70
0.664835
[ "MIT" ]
RosieMable/TinyGame2_21stOct
BoxBorne/Assets/Scripts/DamageOnHit.cs
366
C#
using System; namespace Composable.Persistence.Common.EventStore { public class EventDuplicateKeyException : Exception { //Todo: Oracle exceptions has property: IsRecoverable. Research what this means and if there is something equivalent for the other providers and how this could be useful to us. ...
45.6
184
0.75731
[ "Apache-2.0" ]
mlidbom/Composable
src/framework/Composable.CQRS.ExternalDependencies/Persistence/Common/EventStore/EventDuplicateKeyException.cs
684
C#
using System; using BindingsRx.Bindings; using BindingsRx.Converters; using BindingsRx.Filters; using TMPro; using UniRx; using UnityEngine; namespace BindingsRx.TMP { public static class TMP_TextExtensions { public static IDisposable BindTextTo(this TMP_Text input, IReadOnlyReactiveProperty<string> p...
44.269841
120
0.630154
[ "MIT" ]
starikcetin/BindingsRx-TextMeshPro
UnityProject/Packages/com.starikcetin.bindingsrx-textmeshpro/src/TMP_TextExtensions.cs
5,580
C#
namespace MySkillsServer.Web.ViewModels.Educations { using MySkillsServer.Data.Models; using MySkillsServer.Services.Mapping; public class EducationExportModel : IMapFrom<Education> { public int Id { get; set; } public string Degree { get; set; } public string Speciality { ge...
22.703704
59
0.621533
[ "MIT" ]
Paulina-Dyulgerska/MySkillsServer
Web/MySkillsServer.Web.ViewModels/Educations/EducationExportModel.cs
615
C#
using System; using System.Collections.Generic; using System.Text; 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; using System.Windows.Navigation; using System.Wi...
23.888889
63
0.731783
[ "MIT" ]
DaveCS1/ModernWpf
samples/SamplesCommon/SamplePages/SampleStandardSizingPage.xaml.cs
647
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc.Testing; using Xunit; namespace Mic...
42.3125
182
0.761448
[ "Apache-2.0" ]
SeppPenner/AspNetCore
src/Mvc/test/Mvc.FunctionalTests/GlobalAuthorizationFilterEndpointRoutingTest.cs
1,354
C#
using System; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using ESRI.ArcGIS.Client; using ESRI.ArcGIS.Client.Symbols; using ESRI.ArcGIS.Client.Tasks; using ESRI.ArcGIS.Client.Geometry; namespace ArcGISSilverlightSDK { public partial class DriveTimes : UserControl { ...
37.222222
172
0.608529
[ "Apache-2.0" ]
Esri/arcgis-samples-silverlight
src/ArcGISSilverlightSDK/Geoprocessor/DriveTimes.xaml.cs
4,692
C#
/* Copyright (C) 2005 <Paratrooper> paratrooper666@gmx.net * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * any later version. */ using System; usin...
41.391534
201
0.339384
[ "Apache-2.0" ]
CrypToolProject/CrypTool-2
CrypPlugins/BooleanFunctionParser/MathParser.cs
7,825
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...
35.1875
107
0.595249
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Pinpoint/Generated/Model/SMSMessageActivity.cs
4,504
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.Templates.Core.Locations; namespace Microsoft.UI.Test.ProjectConfigurationTests { publ...
31
110
0.64977
[ "MIT" ]
Microsoft/WindowsTemplateStudio
code/test/SharedFunctionality.UI.Tests/ProjectConfigurationTests/UiTestsTemplatesSource.cs
843
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Collections.Generic; using System.Linq; using UnityEngine; namespace HoloToolkit.Unity { /// <summary> /// A collection of useful ext...
31.005917
134
0.494084
[ "MIT" ]
4dpocket/Unitytest1
DesignLabs_Unity/Assets/HoloToolkit/Utilities/Scripts/Extensions/VectorExtensions.cs
5,242
C#
// <auto-generated /> using System; using ConsoleApp1; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace ConsoleApp1.Migrations { [DbContext(typeof(DataStor...
29.26
75
0.534518
[ "MIT" ]
HekunX/EazyPageQuery
example/ConsoleApp1/ConsoleApp1/Migrations/20201104173716_Init.Designer.cs
1,465
C#
// Copyright © 2014 Rick Beerendonk. All Rights Reserved. // // This code is a C# port of the Java version created and maintained by Cognitect, therefore // // Copyright © 2014 Cognitect. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in c...
37
92
0.726834
[ "Apache-2.0" ]
NForza/transit-csharp
src/Transit/Impl/ReadHandlers/KeywordReadHandler.cs
1,040
C#
using AntDesign.TestApp.Client.Data; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace AntDesign.TestApp.Server.Controllers { [Authorize] [ApiC...
29.162791
110
0.619617
[ "MIT" ]
1051324354/ant-design-blazor
tests/AntDesign.TestApp/Server/Controllers/WeatherForecastController.cs
1,256
C#
using System.Collections.Generic; using System.IO; using DataTools.SqlBulkData.Columns; using DataTools.SqlBulkData.PersistedModel; using DataTools.SqlBulkData.Serialisation; namespace DataTools.SqlBulkData { public class NullFieldMap { private readonly BitSetPacker packer; private ...
29.731707
75
0.590648
[ "MIT" ]
alex-davidson/DataTools
DataTools.SqlBulkData/NullFieldMap.cs
1,221
C#
namespace ImageManipulator { partial class HistogramForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
48.967742
157
0.632631
[ "MIT" ]
IordanisKostelidis/ImageManipulator
ImageManipulator/HistogramForm.Designer.cs
4,556
C#
using System.Text.Json.Serialization; namespace Essensoft.AspNetCore.Payment.Alipay.Response { /// <summary> /// AlipayBusinessOrderCancelResponse. /// </summary> public class AlipayBusinessOrderCancelResponse : AlipayResponse { /// <summary> /// 商户外部订单号 /// </summary> ...
24.869565
67
0.597902
[ "MIT" ]
LuohuaRain/payment
src/Essensoft.AspNetCore.Payment.Alipay/Response/AlipayBusinessOrderCancelResponse.cs
600
C#
/******************************************************************************* * Copyright 2012-2019 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...
46.383673
290
0.623636
[ "Apache-2.0" ]
aws/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/ChimeSDKIdentity/Basic/Remove-CHMIDAppInstanceAdmin-Cmdlet.cs
11,364
C#
using UnityEngine; public class Sense : MonoBehaviour { public bool enableDebug = true; public Aspect.AspectTypes aspectName = Aspect.AspectTypes.ENEMY; public float detectionRate = 1.0f; protected float elapsedTime = 0.0f; protected virtual void Initialize() {} protected virtual void UpdateSe...
21.576923
68
0.639929
[ "MIT" ]
StanHaakman/unity-tutorial
Assets/Scripts/Sense.cs
561
C#
using System; using System.Net.Http; using System.Web.OData.Formatter.Serialization; using Bit.Core.Contracts; using Bit.Owin.Contracts; using Microsoft.OData; using Microsoft.OData.Edm; using Microsoft.Owin; namespace Bit.OData.Serialization { public class DefaultODataPrimitiveSerializer : ODataPrimitiveSerializ...
34.5
108
0.696558
[ "MIT" ]
moshtaba/bit-framework
src/Server/Bit.OData/Serialization/DefaultODataPrimitiveSerializer.cs
1,106
C#
using System; using Xunit; using Sample.MaxSubarray; namespace Sample.Tests{ public class UnitTest_MaxSubarray{ [Theory] [InlineData(new int[]{-2,1,-3,4,-1,2,1,-5,4},6)] [InlineData(new int[]{5,4,-1,7,8},23)] public void checkResult(int[] nums,int expected){ Assert.Equal...
24.933333
59
0.606952
[ "MIT" ]
zcemycl/algoTest
cs/sample/Sample.Tests/MaxSubarray/testMaxSubarray.cs
374
C#
#region License // /* // * ###### // * ###### // * ############ ####( ###### #####. ###### ############ ############ // * ############# #####( ###### #####. ###### ############# ############# // * ###### #####( ###### #####. ###### ##### ###### ##...
39.051282
79
0.328956
[ "MIT" ]
AlexandrosMor/adyen-dotnet-api-library
Adyen/Model/Nexo/LogoutRequest.cs
1,525
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.CodeAnalysis.Sarif; namespace Microsoft.CodeAnalysis.IL { internal static class ErrorRules { public static ReportingDescripto...
31.666667
108
0.666667
[ "MIT" ]
Bhaskers-Blu-Org2/binskim
src/BinSkim.Driver/ErrorRules.cs
555
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity.Infrastructure.DependencyResolution { using System.Collections.Concurrent; using System.Collections.Generic; using System.Data.Entity.Core.Common...
41.463277
171
0.59831
[ "Apache-2.0" ]
Lempireqc/EntityFramework-Classic
src/Shared/EntityFramework/Infrastructure/DependencyResolution/AppConfigDependencyResolver.cs
7,339
C#
using System; using System.Xml.Serialization; namespace Aop.Api.Domain { /// <summary> /// AlipayOpenServicemarketOrderItemCompleteModel Data Structure. /// </summary> [Serializable] public class AlipayOpenServicemarketOrderItemCompleteModel : AopObject { /// <summary> /// 订购服务插...
23.96
74
0.602671
[ "MIT" ]
BJDIIL/DiiL
Sdk/AlipaySdk/Domain/AlipayOpenServicemarketOrderItemCompleteModel.cs
639
C#
using System; using JetBrains.Annotations; namespace BuildNotifications.PluginInterfaces.SourceControl { /// <summary> /// Contains information about a branch. /// </summary> [PublicAPI] public interface IBranch : IEquatable<IBranch> { /// <summary> /// Name that can be used wh...
26.678571
82
0.576975
[ "MIT" ]
TheSylence/BuildNotifications
Plugins/BuildNotifications.PluginInterfaces/SourceControl/IBranch.cs
749
C#
//Copyright 2014 Esri // 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 wri...
38.272727
84
0.665677
[ "Apache-2.0" ]
Esri/arcgis-pro-samples-beta
Beta5/FixedZoom/FixedZoomOut.cs
1,686
C#
// $Id: EditMenu.cs 1766 2008-09-14 16:54:14Z lining $ using System; using System.Diagnostics; using System.Threading; using System.Windows.Forms; using UW.ClassroomPresenter.Model; using UW.ClassroomPresenter.Model.Undo; using UW.ClassroomPresenter.Model.Presentation; using UW.ClassroomPresenter.Viewer.S...
39.111111
129
0.56097
[ "Apache-2.0" ]
ClassroomPresenter/CP3
UW.ClassroomPresenter/Viewer/Menus/EditMenu.cs
4,576
C#
using RabbitMQ.Client.Framing.Impl; namespace RabbitMQ.Client.Impl { ///<summary>Normal ISession implementation used during normal channel operation.</summary> public class Session : SessionBase { private readonly CommandAssembler _assembler; public Session(Connection connection, int chann...
27.461538
94
0.616246
[ "MIT" ]
houseofcat/RabbitMQ.Core
v6.0.0/RabbitMQ.Client/Impl/Session.cs
714
C#
// -------------------------------------------------------------------------------------------- // Version: MPL 1.1/GPL 2.0/LGPL 2.1 // // The contents of this file are subject to the Mozilla Public License Version // 1.1 (the "License"); you may not use this file except in compliance with // the License. You may obta...
50.643382
573
0.710345
[ "MIT" ]
haga-rak/Freezer
Freezer/GeckoFX/__Core/Generated/nsIDOMMessageEvent.cs
13,775
C#
using Prism.Ioc; using Prism.Ninject; using System.Configuration; using System.Windows; using Tanka.GraphQL.Sample.Chat.Client.Shared; using Tanka.GraphQL.Sample.Chat.Client.Shared.Services; using Tanka.GraphQL.Sample.Chat.Client.Wpf.Services; using Tanka.GraphQL.Sample.Chat.Client.Wpf.Views; namespace Tanka.GraphQL....
34.210526
130
0.693077
[ "Apache-2.0" ]
anttikajanus/tanka-graphql-net-client
sample/tanka-graphql-sample-chat-wpf/App.xaml.cs
1,302
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCor...
38.825175
154
0.580512
[ "MIT" ]
Logwise/IdentityEmails
Examples/IdentityEmails.Examples.WebApp/Areas/Identity/Pages/Account/ExternalLogin.cshtml.cs
5,554
C#
using UnityEngine; using System.Collections; public class GameManager : MonoBehaviour { public Transform platformGenerator; private Vector3 platformStartPoint; public PlayerController player; private Vector3 playerStartPoint; private PlatformDestroyer[] platformArr; private ScoreManager sc...
22.725806
61
0.678495
[ "MIT" ]
mmacken42/MM_Jump
MM_Jump - Unity Project Files/Assets/Scripts/GameManager.cs
1,411
C#
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // package aes -- go2cs converted at 2020 October 09 04:53:48 UTC // import "crypto/aes" ==> using aes = go.crypto.aes_package // Original source: C:\Go\src\cry...
34.155039
126
0.537449
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/crypto/aes/ctr_s390x.cs
4,406
C#
using System; using System.IO; using System.Linq; using FluentAssertions; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration.KeyPerFile; using Moq; using NUnit.Framework; namespace VH.Core.Configuration.UnitTests.TheIConfigurationBuilderExtensions { public class when_given_valid_pat...
30.679487
97
0.568742
[ "MIT" ]
hmcts/vh-common
VH.Core.Configuration.UnitTests/TheIConfigurationBuilderExtensions/when_given_valid_path_string.cs
2,393
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NLog; namespace UnderTheCursorTranslatorLibrary { public abstract class InputHook { Logger Logger; public InputCombination InputCombination { get; protected set; } public ProcessFunction ImageProcessFunctio...
20.333333
91
0.761124
[ "Apache-2.0" ]
KvanTTT/Draft-Projects
UnderTheCursorTranslator/UnderTheCursorTranslatorLibrary/InputHooking/InputHook.cs
856
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...
51.601913
163
0.652556
[ "Apache-2.0" ]
Hazy87/aws-sdk-net
sdk/test/Services/StepFunctions/UnitTests/Generated/Marshalling/StepFunctionsMarshallingTests.cs
156,457
C#
// cs3005-8.cs: Identifier `II.Foo()' differing only in case is not CLS-compliant // Line: 9 // Compiler options: -warnaserror using System; [assembly:CLSCompliant(true)] public interface II { int Foo(); int foo { get; } }
20.083333
81
0.655602
[ "MIT" ]
zlxy/Genesis-3D
Engine/extlibs/IosLibs/mono-2.6.7/mcs/errors/cs3005-8.cs
241
C#
using System; using System.Text; using Application.Common.Interfaces; using Infrastructure.Identity; using Infrastructure.Persistence; using Infrastructure.Services; using Infrastructure.Services.Handlers; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.A...
43.705882
160
0.641454
[ "MIT" ]
ntitsolutins01/TesteWebMotors
src/Common/Infrastructure/DependencyInjection.cs
3,717
C#