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
#region Snippet:Managing_Resource_Groups_Namespaces using System; using System.Threading.Tasks; using Azure.Core; using Azure.Identity; using Azure.ResourceManager.Resources; using Azure.ResourceManager.Resources.Models; #endregion using NUnit.Framework; namespace Azure.ResourceManager.Tests.Samples { class Sampl...
47.348837
113
0.679273
[ "MIT" ]
AntonioVT/azure-sdk-for-net
sdk/resourcemanager/Azure.ResourceManager/tests/Samples/Sample2_ManagingResourceGroups.cs
6,110
C#
using Natasha; using System; using System.Collections.Generic; using System.Text; namespace DeepClone.Template { public class CtorTempalte { private readonly HashSet<Dictionary<string, Type>> _ctors; private readonly Dictionary<Dictionary<string, Type>, Dictionary<string, string>> _parameter...
25.134228
109
0.431242
[ "MIT" ]
night-moon-studio/DeepClone
src/DeepClone/Template/Class/CtorTempalte.cs
3,955
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Xamarin.Android.Prepare { abstract partial class Scenario : AppObject { public string Name { get; } public string Description { get; } public string LogFilePath { get; protected set; } public List<Step> Steps { g...
25.546667
87
0.676931
[ "MIT" ]
06051979/xamarin-android
build-tools/xaprepare/xaprepare/Application/Scenario.cs
1,916
C#
using UnityEngine; class CameraRoll : MonoBehaviour { public Transform Target; //获取旋转目标 public int Speed; void Update() { transform.RotateAround(Target.position, Vector3.up, Speed * Time.deltaTime); //摄像机围绕目标旋转 } }
18.923077
96
0.674797
[ "Apache-2.0" ]
euphrat1ca/Asteroid
Assets/Script/CameraRoll.cs
278
C#
namespace System { public struct Int32 { public override string ToString() { return Internal.NumberFormatUtils.Int32ToString(this); } } }
17
66
0.57754
[ "MIT" ]
MishaTY/DotNetParser
mscorlib/MainTypes/Int32.cs
189
C#
using System.Resources; using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Veracity.Authentic...
40.384615
110
0.760635
[ "MIT" ]
AndyMason75/Veracity.Authentication.OpenIDConnect.AspNet
Veracity.Authentication.OpenIDConnect.AspNet/Properties/AssemblyInfo.cs
1,578
C#
/* * The MIT License (MIT) * * Copyright (c) 2013 Alistair Leslie-Hughes * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights ...
35.657895
83
0.751292
[ "MIT" ]
alesliehughes/monoDX
Microsoft.DirectX.DirectInput/Microsoft.DirectX.DirectInput/CooperativeLevelFlags.cs
1,355
C#
/* * CharacterCreator.ConsoleHost * ITSE 1430 * Semester 2021 * Orlando Valdez */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CharacterCreator { /// <summary>Represents a character.</summary> public class Character { ...
23.947368
74
0.469011
[ "MIT" ]
orlandovaldez/itse1430
labs/Lab2/CharacterCreator/Character.cs
2,277
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using ConnectorGrasshopper.Properties; using GH_IO.Serialization; using Grasshopper.Kernel; using Grasshopper.Kernel.Data; using Grasshopper.Kernel.Types; using Rhino; us...
32.881319
180
0.598824
[ "Apache-2.0" ]
connorivy/speckle-sharp
ConnectorGrasshopper/ConnectorGrasshopper/Ops/Operations.SendComponentSync.cs
14,965
C#
//----------------------------------------------------------------------- // <copyright file="BuildConfigurationViewModel.cs" company="Wohs Inc."> // Copyright © Wohs Inc. // </copyright> //----------------------------------------------------------------------- namespace Lurker.UI.ViewModels { using System; ...
28.948339
124
0.500319
[ "MIT" ]
C1rdec/Poe-Lurker
src/Lurker.UI/ViewModels/BuildConfigurationViewModel.cs
7,848
C#
using System.Collections.Generic; namespace TorebaCrawlerCore { public interface IDataAccess { List<Replay> GetReplayByReplayID(int replayID); void InsertMachine(Machine machine); void InsertReplay(Replay replay); } }
23.181818
55
0.705882
[ "MIT" ]
a-drianchan/TorebaCrawler
TorebaCrawler/IDataAccess.cs
257
C#
#region Copyright Notice // Copyright (c) by Achilles Software, All rights reserved. // // Licensed under the MIT License. See License.txt in the project root for license information. // // Send questions regarding this copyright notice to: mailto:todd.thomson@achilles-software.com #endregion namespace Achilles.Ent...
22.5
95
0.715556
[ "Apache-2.0" ]
Achilles-Software/Entities.Sqlite
Achilles.Entities.Sqlite/Linq/IEntityCollection.cs
452
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...
29.5
81
0.635225
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/RecoveryServices/V20201001/Outputs/InquiryValidationResponse.cs
1,357
C#
/* * Trade secret of Alibaba Group R&D. * Copyright (c) 2015 Alibaba Group R&D. * * All rights reserved. This notice is intended as a precaution against * inadvertent publication and does not imply publication or any waiver * of confidentiality. The year included in the foregoing notice is the * year o...
25.195122
77
0.608906
[ "Apache-2.0" ]
aliyun/aliyun-tablestore-csharp-sdk
sdk/Aliyun/OTS/Response/UpdateRowResponse.cs
1,085
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------...
38.033333
129
0.614373
[ "MIT" ]
praveenv4k/Indriya
src/indriya_msgs/csharp/spheregeom.cs
1,141
C#
namespace CsCss.Tests.Properties.Color { public class StaticsTests { } }
12.285714
39
0.662791
[ "MIT" ]
iantonge/CsCss
CsCss.Tests/Properties/Color/StaticsTests.cs
88
C#
// // Copyright (c) Microsoft Corporation. All rights reserved. // /*******************************************************************/ /* WARNING */ /* This file should be identical in the Bartok and Singularity */ /* depots. Master copy resides in Bartok...
44.238668
114
0.50023
[ "MIT" ]
pmache/singularityrdk
SOURCE/base/Imported/Bartok/runtime/shared/GCs/PageManager.cs
47,822
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...
36.657143
148
0.618342
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/GlobalAccelerator/Generated/Model/Internal/MarshallTransformations/DescribeListenerRequestMarshaller.cs
3,849
C#
using UnityEngine; using System; using System.Text; using System.IO; using System.IO.Ports; using System.Threading; namespace Bno055 { public class SerialReceiver : MonoBehaviour, IDataReceiver { public event DataReceivedEventHandler OnDataReceived; public bool IsRunning { get { return isRunnin...
28.544444
124
0.415726
[ "MIT" ]
curiosity-inc/bno055-unity
Assets/Scripts/SerialReceiver.cs
5,138
C#
namespace MassTransit.Containers.Tests.Common_Tests { using System; using System.Linq; using System.Threading.Tasks; using ConsumeContextTestSubjects; using Context; using NUnit.Framework; using TestFramework; using TestFramework.Messages; public abstract class Common_ConsumeContex...
36.620438
150
0.664242
[ "ECL-2.0", "Apache-2.0" ]
LukePammant/MassTransit
tests/MassTransit.Containers.Tests/Common_Tests/Common_ConsumeContext.cs
10,034
C#
using Microsoft.Extensions.Options; using Silky.Core.DependencyInjection; using Silky.Core.Runtime.Rpc; using Silky.Rpc.Configuration; namespace Silky.Rpc.Security { public class CurrentRpcToken : ICurrentRpcToken, IScopedDependency { private string _token; public CurrentRpcToken(IOptionsMonit...
30.88
115
0.693005
[ "MIT" ]
Dishone/silky
framework/src/Silky.Rpc/Security/CurrentRpcToken.cs
772
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespac...
27.26
114
0.584006
[ "MIT" ]
brywang-msft/autorest
src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs
1,363
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _5.Exam_Shopping { class ExamShopping { public static void Main(string[] args) { Dictionary<string, int> shopStock = new Dictionary<string, int>(); ...
27.724138
93
0.441128
[ "MIT" ]
msotiroff/Softuni-learning
Tech Module/Programming Fundamentals/Practice/Dictionaries/5. Exam Shopping/ExamShopping.cs
2,414
C#
// Problem 3. English digit // Write a method that returns the last digit of given integer as an English word. // Examples: // input output // 512 two // 1024 four // 12309 nine using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace P03...
25.243243
120
0.577088
[ "MIT" ]
GAlex7/TA
02. CSharpPart2/03. Methods/P03-EnglishDigit/EnglishDigit.cs
936
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using Fasterflect; using Testity.Common; namespace Testity.BuildProcess { public class SerializedMemberParser : ITypeMemberParser { public SerializedMemberParser() { } /// <summary> /// Creates...
37.195122
155
0.752131
[ "MIT" ]
HelloKitty/Testity
src/Testity.BuildProcess/Parsing/Type/SerializedMemberParser.cs
1,527
C#
using System; namespace TripToWorldCup { class Program { static void Main(string[] args) { double ticketPriceForGoing = double.Parse(Console.ReadLine()); double ticketPriceForArriving = double.Parse(Console.ReadLine()); double ticketPriceForMatch = double.P...
39.37037
91
0.639699
[ "MIT" ]
stanislavstoyanov99/SoftUni-Software-Engineering
Programming-Basics-with-C#/Final-Exams/ProgrammingBasicsExam28-29-July-18/TripToWorldCup/Program.cs
1,065
C#
using System; namespace TextExtract.Services { public class SuspensionState { public object Data { get; set; } public DateTime SuspensionDate { get; set; } } }
15.916667
52
0.633508
[ "MIT" ]
ThomasPe/TextExtract-UWP
TextExtract/Services/SuspensionState.cs
193
C#
using ALE.ETLBox; using ALE.ETLBox.ConnectionManager; using ALE.ETLBox.ControlFlow; using ALE.ETLBox.DataFlow; using ALE.ETLBox.Helper; using ALE.ETLBox.Logging; using ALE.ETLBoxTests.Fixtures; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using Xunit; names...
37
120
0.655528
[ "MIT" ]
HaSaM-cz/etlbox
TestsETLBox/src/DataFlowTests/BlockTransformationTests/BlockTransformationStringArrayTests.cs
2,035
C#
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; namespace Svt.Caspar.AMCP { internal class AMCPProtocolStrategy : Svt.Network.IProtocolStrategy { CasparDevice device_ = null; AMCPParser parser_ = new AMCPParser(); internal AMCPProtocolStrategy(CasparDevice device) ...
28.534314
120
0.624635
[ "MIT" ]
OssiPesonen/Eilium
framework/Svt.Caspar/AMCP/AMCPProtocolStrategy.cs
5,821
C#
using InfectedRose.Nif.Controllers; using InfectedRose.Core; using RakDotNet.IO; namespace InfectedRose.Nif { public class NiObjectNet : NiObject { public NiStringRef Name { get; set; } public NiRef<NiExtraData>[] ExtraData { get; set; } public NiRef<NiTimeController> ...
25.511628
69
0.550593
[ "MIT" ]
UchuServer/InfectedRose
InfectedRose.Nif/Nodes/NiObjectNet.cs
1,097
C#
// *** WARNING: this file was generated by crd2pulumi. *** // *** 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.Kubernetes.Types.O...
79.055556
618
0.809557
[ "Apache-2.0" ]
pulumi/pulumi-kubernetes-crds
operators/seldon-operator/dotnet/Kubernetes/Crds/Operators/SeldonOperator/Machinelearning/V1/Outputs/SeldonDeploymentSpecPredictorsComponentSpecsSpecAffinityNodeAffinity.cs
2,846
C#
using EPiServer.Core; using WebHookAlloy.Models.Pages; namespace WebHookAlloy.Models.ViewModels { /// <summary> /// Defines common characteristics for view models for pages, including properties used by layout files. /// </summary> /// <remarks> /// Views which should handle several page types (T) ...
33.45
109
0.678625
[ "MIT" ]
PaulGruffyddAmaze/kinandcarta-epi-webhooks
WebHookAlloy/Models/ViewModels/IPageViewModel.cs
669
C#
namespace ApertureLabs.Selenium.Css { /// <summary> /// Represents a css unit of measurement. /// </summary> /// <remarks> /// View https://drafts.csswg.org/css-values-4 for more details. /// </remarks> public enum CssUnit { /// <summary> /// There is no unit associated ...
23.485981
78
0.462992
[ "Apache-2.0" ]
sai09451/ApertureLabs.Selenium
ApertureLabs.Selenium/Css/CssUnit.cs
5,051
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; namespace Newtonsoft.Json.Tests.Documentation.Samples.Xml { public class ConvertXmlToJsonForceArray { public void Example() { #region Usage string xml = @"<person id='1'> <name>Alan<...
22.6
84
0.5
[ "MIT" ]
Chimpaneez/LiveSplit
LiveSplit/Libs/JSON.Net/Source/Src/Newtonsoft.Json.Tests/Documentation/Samples/Xml/ConvertXmlToJsonForceArray.cs
1,358
C#
// Copyright 2021 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
39.410256
104
0.705921
[ "Apache-2.0" ]
googleapis/googleapis-gen
google/cloud/dialogflow/v2beta1/google-cloud-dialogflow-v2beta1-csharp/Google.Cloud.Dialogflow.V2beta1.StandaloneSnippets/ConversationProfilesClient.DeleteConversationProfileSnippet.g.cs
1,537
C#
using Microsoft.Extensions.Logging; using System; namespace HotelManagementApp.Services.Common { public class TimedLogger<T> : ILogger<T> { private readonly ILogger _logger; public TimedLogger(ILogger logger) => _logger = logger; public TimedLogger(ILoggerFactory loggerFactory) : this(new Logger<T>(loggerFa...
36.285714
142
0.749344
[ "Unlicense" ]
Dasik/HotelManagementApp
HotelManagementApp/Services/Common/TimedLogger.cs
764
C#
namespace Discord { /// <summary> /// Represents a parameter recived with a Slash Command Interaction /// </summary> public class InteractionParameter { /// <summary> /// Name of the parameter /// </summary> public string Name { get; } /// <summary> /...
24.225806
100
0.532623
[ "MIT" ]
Cenngo/Discord.Net-Labs
src/Discord.Net.Core/Entities/SlashCommands/SocketInteractionParameter.cs
751
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.Med...
24.363636
53
0.670398
[ "MIT" ]
vduseev/simple-graph-library
GraphLibrary/User control/Present/PresentWindow.xaml.cs
806
C#
#region Copyright notice and license // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // http://github.com/jskeet/dotnet-protobufs/ // Original C++/Java/Python code: // http://code.google.com/p/protobuf/ // // Redistribution and use in source and binary forms, w...
37.264012
145
0.605937
[ "BSD-3-Clause" ]
apkbox/nano-rpc
third_party/protobuf-csharp-port/src/src/ProtocolBuffers/UnknownFieldSet.cs
25,265
C#
namespace TPP.Core.Data.Entities { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; [Table("Microcycle")] public partial class Microcycle { public in...
23.357143
55
0.620795
[ "MIT" ]
Bhaskers-Blu-Org2/SPP_Public
src/api/Data/DataEntityGenerator/Microcycle.cs
654
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Net.Sockets; namespace server { class Program { static Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); static void Main(string[] args...
29.203704
106
0.507292
[ "MIT" ]
randomvi/network-group-message-tool
server/server/Program.cs
1,579
C#
// // Copyright (c) 2004-2011 Jaroslaw Kowalski <jaak@jkowalski.net> // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of source code must retain the above co...
39.481481
120
0.67636
[ "BSD-3-Clause" ]
YuLad/NLog
src/NLog/LayoutRenderers/AspApplicationValueLayoutRenderer.cs
3,198
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YPIConnect.Xps.Result.ClientBillingDetailReportResult { public class ClientBillingDetailReportData : List<ClientBillingDetailReportDataAccessionOrder> { public ClientBillingDet...
21.470588
98
0.756164
[ "MIT" ]
SidHarder/ypi-connect
Xps/Result/ClientBillingDetailReportResult/ClientBillingDetailReportData.cs
367
C#
using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace RESTAURANT.API.DAL { public class DrinkGroup : RestaurantBase { [ForeignKey("DrinkGroupId")] public virtual List<Drink> Drinks { get; set; } } }
24.545455
55
0.707407
[ "Apache-2.0" ]
tiepnx/restaurentAPI
source/RESTAURANT.API.DAL/DBModel/DrinkGroup.cs
272
C#
//---------------------------------------------------------------------------------------------- // <copyright file="ISettings.cs" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> //---------------------------------------------------------------------------------------------- name...
28.296296
97
0.426702
[ "MIT" ]
AlexAhrens/microsoft-teams-apps-stickers
StickersTemplate/Interfaces/ISettings.cs
766
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.Linq; using NUnit.Framework; using osu.Framework.Graphics.Containers; using osu.Framework.Testing; using osu.Framework.Utils; using osu.Game.Graphic...
34.382716
159
0.582406
[ "MIT" ]
AaqibAhamed/osu
osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModDifficultyAdjust.cs
2,707
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; using System.Collections.Generic; using System.Linq; using StarkPlatform.CodeAnalysis; using StarkPlatform.CodeAnalys...
36.454545
161
0.632031
[ "Apache-2.0" ]
stark-lang/stark-roslyn
src/VisualStudio/Core/Impl/CodeModel/Collections/ExternalNamespaceEnumerator.cs
3,611
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("15...
37.864865
84
0.744468
[ "MIT" ]
Andro0/TelerikAcademy
C#2/06.Homework_Strings_and_Text_Processing/15.ReplaceTags/Properties/AssemblyInfo.cs
1,404
C#
namespace ClassLib095 { public class Class005 { public static string Property => "ClassLib095"; } }
15
55
0.633333
[ "MIT" ]
333fred/performance
src/scenarios/weblarge2.0/src/ClassLib095/Class005.cs
120
C#
using Util = Saklient.Util; namespace Saklient.Cloud.Resources { /// <summary>FTPサーバのアカウント情報。 /// </summary> public class FtpInfo { internal string _HostName; public string Get_hostName() { return this._HostName; } /// <summary>ホスト名 /// </summary> public string HostName { get { retu...
17.793651
107
0.636931
[ "MIT" ]
223n/saklient.cs
src/Saklient/Cloud/Resources/FtpInfo.cs
1,171
C#
using Microsoft.AspNetCore.Mvc.ModelBinding; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace CompanyEmployees.ModelBinders { public class ArrayModelBinder : IModelBinder { public Task BindM...
37.418605
85
0.642014
[ "MIT" ]
DiegooDV/ASP.NET-CORE-3-Web-API-Project
CompanyEmployees/ModelBinders/ArrayModelBinder.cs
1,611
C#
using Cactus.IService.Store; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cactus.SQLiteService.Store { public class CustomerService : ICustomerService { public bool Insert(Model.Store.Customer entity) ...
25.479167
118
0.589534
[ "MIT" ]
MyFarmland/Cactus
Cactus.SQLiteService/Store/CustomerService.cs
1,225
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using ExcelDna.Integration; namespace CellAddressTests.AddIn.UI { public class UnitTestAddIn : IExcelAddIn { #region Implementation of IExcelAddIn public v...
20.583333
60
0.661943
[ "MIT" ]
zwq00000/CellAddress
test/CellAddress.Tests.AddIn/UI/UnitTestAddIn.cs
496
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Xunit; namespace AppConfigTransforms.Tests { public class TargetsTests { private readonly string _thisAssembly; private readonly s...
35.325581
105
0.657011
[ "MIT" ]
dan-turner/AppConfigTransforms
src/AppConfigTransforms.Tests/TargetsTests.cs
1,521
C#
//GENERATED: CS Code using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace UnrealEngine{ public partial class ULocalMessage:UObject { [MethodImplAttribute(MethodImplOptions.InternalCall)] public static extern new IntPtr StaticClass(); } }
25
55
0.793333
[ "MIT" ]
RobertAcksel/UnrealCS
Engine/Plugins/UnrealCS/UECSharpDomain/UnrealEngine/GeneratedScriptFile/ULocalMessage.cs
300
C#
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
39.211382
123
0.639643
[ "MIT" ]
cuteant/SpanNetty
src/DotNetty.Codecs.Http2/AbstractInboundHttp2ToHttpAdapterBuilder.cs
4,825
C#
using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; namespace Utj.UnityChoseKun { [System.Serializable] public class SpriteView { [SerializeField] SpriteKun m_spriteKun; [SerializeField] bool m_spriteFoldout...
31.720588
154
0.486092
[ "MIT" ]
katsumasa/UnityChoseKun
Editor/Scripts/SpriteView.cs
4,316
C#
namespace CCCS { public enum TokenKind { Unknown, Reserved, Identifier, Number, String, EOF } }
13
25
0.461538
[ "MIT" ]
mtakagi/CCCS
Assets/Editor/Tokenizer/TokenKind.cs
158
C#
using Microsoft.Extensions.Logging; namespace BO4E { #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member // todo: this thing should be removed. public static class StaticLogger { public static ILogger Logger { get; set; } } #pragma warning ...
26.4
90
0.70202
[ "MIT" ]
Hochfrequenz/BO4E-dotnet
BO4E/StaticLogger.cs
384
C#
using System; using System.Windows.Media.Imaging; using System.Windows; using System.Windows.Controls; using MahApps.Metro.Controls; using System.IO; using Brew.HacPack; namespace Brew.NSPack.GUI { public partial class ProgramWindow : MetroWindow { public int PreSelect = 0; public Start start...
33.05102
94
0.5159
[ "MIT" ]
tiliarou/Brew.NET
NSPack/GUI/ProgramWindow.xaml.cs
3,241
C#
using UnityEngine; using System.Collections; using System.Collections.Generic; public class Matrix<T> : IEnumerable<T> { int _width; int _height; int _capacity; T[,] data; Matrix<T> auxData; public int width { get { return _width; } } public int height { get { return _height; } } ...
21.754902
65
0.451104
[ "Apache-2.0" ]
TaaroBravo/Monsterfall
Assets/Scripts/Utility/Matrix.cs
2,221
C#
namespace BarraksWars.Core.CommandsPackage { public class Fight : Command { public Fight(string[] data) : base(data) { } public override string Execute() { return "end"; } } }
16.4375
43
0.48289
[ "MIT" ]
valkin88/CSharp-Fundamentals
CSharp OOP Advanced/Reflection and Attributes - Exercises/BarraksWars/BarraksWars/Core/CommandsPackage/Fight.cs
265
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.ComponentModel; using Pulumi; namespace Pulumi.AzureNextGen.ImportExport.V20210101 { /// <summary> /// The drive's current state...
42.961039
117
0.685611
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/ImportExport/V20210101/Enums.cs
3,308
C#
using IqOption.Client.Models; using IqOption.Client.Ws.Base; using Newtonsoft.Json; namespace IqOption.Client.Ws.Request.Portfolio { //{"name":"subscribeMessage","request_id":"s_5","msg":{"name":"portfolio.position-changed","version":"2.0","params":{"routingFilters":{"user_balance_id":xxxx,"instrument_type":"forex...
40.5
190
0.591943
[ "MIT" ]
aritters/IqOptionApiDotNet
src/IqOption.Client/Wss/Request/SubscribeMessages/SubscribeBalanceChangedRequest.cs
3,078
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace Calendar.Pages { public class PrivacyModel : PageModel { public void OnGet() { } } }
19
42
0.700658
[ "MIT" ]
telebovich/Calendar
Calendar/Pages/Privacy.cshtml.cs
306
C#
using System; using System.Collections.Generic; using System.Text; using System.Net; using Acn.ArtNet.IO; namespace Acn.ArtNet.Packets { public enum ArtTodControlCommand { AtcNone = 0, AtcFlush = 1 } public class ArtTodControlPacket : ArtNetPacket { public ArtTodControlPack...
20.935484
66
0.561633
[ "MIT" ]
HakanL/ACN
Acn/ArtNet/Packets/ArtTodControlPacket.cs
1,298
C#
using System; namespace JetBrains.ReSharper.Plugins.Unity.CSharp.Daemon.Stages.PerformanceCriticalCodeAnalysis.Analyzers { [Flags] public enum UnityProblemAnalyzerContext : byte { NONE = 0, PERFORMANCE_CONTEXT = 1 << 0, BURST_CONTEXT = 1 << 1 } public static class ...
23.777778
106
0.67757
[ "Apache-2.0" ]
terrorizer1980/resharper-unity
resharper/resharper-unity/src/CSharp/Daemon/Stages/UnityProblemAnalyzerContext.cs
428
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
42.970588
159
0.59822
[ "MIT" ]
FosterMichelle/azure-powershell
src/ResourceManager/Resources/Commands.Resources.Test/Providers/UnregisterResourceProviderCmdletTests.cs
7,138
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Fap.Workflow.Engine.Xpdl { /// <summary> /// 执行活动的可选类型 /// </summary> public class NextActivityMatchedResult { #region 属性和构造函数 internal static string Unkonwn = "未知原因"; internal s...
36.225806
124
0.606411
[ "Apache-2.0" ]
48355746/FapCore3.0
src/Fap.Workflow/Engine/Xpdl/NextActivityMatchedResult.cs
3,711
C#
using AutoMapper; using MediatR; using Microsoft.Extensions.Logging; using Opdex.Platform.Domain.Models.LiquidityPools; using Opdex.Platform.Infrastructure.Abstractions.Data; using Opdex.Platform.Infrastructure.Abstractions.Data.Commands.LiquidityPools; using Opdex.Platform.Infrastructure.Abstractions.Data.Extensions; ...
52.464646
161
0.686369
[ "MIT" ]
Opdex/opdex-v1-api
src/Opdex.Platform.Infrastructure/Data/Handlers/LiquidityPools/Summaries/PersistLiquidityPoolSummaryCommandHandler.cs
5,194
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; struct S { public String str; } class Test { public static void c(S s1) { GC.Collect(); Console.WriteLine(s1.str); GC.Collect(...
14.451613
71
0.555804
[ "MIT" ]
2m0nd/runtime
src/tests/JIT/Regression/VS-ia64-JIT/V1.2-M02/b27980/struct1.cs
448
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ES.Activation { class Activator:IActivator { public T Activate<T>() { return System.Activator.CreateInstance<T>(); } public object Activate...
19
57
0.619617
[ "MIT" ]
danryd/es
src/ES/ES/Activation/Activator.cs
420
C#
using System; namespace S2Geometry.S2BuilderUtil { // A SnapFunction that snaps every vertex to itself. It should be used when // vertices do not need to be snapped to a discrete set of locations (such as // E7 lat/lngs), or when maximum accuracy is desired. // // If the given "snap_radius" is zero...
52.180511
113
0.619042
[ "Apache-2.0" ]
alas/s2geometry
S2Geometry/S2BuilderUtil/SnapFunctions.cs
32,665
C#
#region Copyright /* This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/ Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com) Permission is hereby granted, free of charge, * to any person obtainin...
35.846154
165
0.664623
[ "Apache-2.0" ]
Sergey-Terekhin/net7mma
Common/Extensions/IPEndPointExtensions.cs
3,264
C#
// <copyright file="PrivateMessageList.cs" company="Drastic Actions"> // Copyright (c) Drastic Actions. All rights reserved. // </copyright> using System; using System.Collections.Generic; namespace Awful.Core.Entities.Messages { /// <summary> /// Private Message List. /// </summary> public class Pri...
28.5
85
0.612865
[ "MIT" ]
AlanGraham/Awful.NET
Awful.Core/Entities/Messages/PrivateMessageList.cs
857
C#
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace TravelRecords.iOS { public class Application { // This is the main entry point of the application. static void Main(string[] args) { // if you want to use a differen...
23.095238
91
0.635052
[ "Apache-2.0" ]
ccruz182/Xamarin
TravelRecords/TravelRecords/TravelRecords.iOS/Main.cs
487
C#
// // Copyright (c) 2008-2011, Kenneth Bell // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge,...
43.8125
78
0.742511
[ "MIT" ]
KuromeSan/chovy-sign
CHOVY-SIGN/DiscUtils/Iso9660Ps1/Susp/PaddingSystemUseEntry.cs
1,404
C#
using System; using System.Collections.Generic; using System.Text; namespace InheritanceMammalCatHuman { /*add the modifier so that this class won't be instantiated*/ abstract class Mammal { public bool hasFur = true; public int numLegs { get; set; } public int...
22.697674
85
0.566598
[ "MIT" ]
2002-feb24-net/jacob-code
Week1/Inheritance/Mammal.cs
978
C#
using System; using System.Collections.Generic; using Elasticsearch.Net; using Nest; using Tests.Framework; using Tests.Framework.Integration; using Tests.Framework.ManagedElasticsearch.Clusters; using Xunit; namespace Tests.Indices.IndexSettings.IndexTemplates.PutIndexTemplate { public class PutIndexTemplateApiTest...
24.791304
138
0.638022
[ "Apache-2.0" ]
BedeGaming/elasticsearch-net
src/Tests/Indices/IndexSettings/IndexTemplates/PutIndexTemplate/PutIndexTemplateApiTests.cs
2,853
C#
using Mirai_CSharp.Models; using System; using System.Threading.Tasks; #pragma warning disable CA1031 // Do not catch general exception types namespace Mirai_CSharp.Example { public partial class ExamplePlugin { public async Task<bool> Disconnected(MiraiHttpSession session, IDisconnectedEventArgs e) ...
30.275862
130
0.559226
[ "MIT" ]
PoH98/QQBotXClashOfClans
Mirai-CSharp-release-1.0.2.2/Mirai-CSharp.Example/ExamplePlugin.Disconnected.cs
946
C#
using System; using NUnit.Framework; namespace PostalCodes.UnitTests.Generated { [TestFixture] internal class TWPostalCodeTests { [TestCase("11234","11233")] [TestCase("82888","82887")] [TestCase("00001","00000")] public void Predecessor_ValidInput_ReturnsCorrec...
39.756757
117
0.598572
[ "Apache-2.0" ]
twiho2/PostalCodes.Net
src/PostalCodes.UnitTests/Generated/TWPostalCodeTests.gen.cs
5,737
C#
using System; using System.Collections.Generic; using Context = VM.Interpreter.Context; namespace VM { public class Tracer : IDebugger { private readonly Bytecode _bytecode; public Tracer() { _bytecode = new Bytecode(); } public Context BeforeInstruction(C...
25.080645
174
0.490675
[ "MIT" ]
dragonquest/stack-based-vm-csharp
src/VM/Tracer.cs
1,555
C#
using System.Collections.Generic; using UnicornHack.Generation; using UnicornHack.Generation.Effects; using UnicornHack.Primitives; namespace UnicornHack.Data.Items { public static partial class ItemData { public static readonly Item Shortbow = new Item { Name = "shortbow", ...
34.238095
82
0.52573
[ "Apache-2.0" ]
AndriySvyryd/UnicornHack
src/UnicornHack.Core/Data/Items/ShortBow.cs
1,438
C#
using CleanCoder; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using NUnit.Framework; using RoslynTestKit; namespace CsharpMacros.Test.General { public class GeneralTest : CodeFixTestFixture { [Test] public void should_be_able_to_add_single_filter() ...
40.21519
174
0.714196
[ "MIT" ]
EMostafaAli/CsharpMacros
src/CsharpMacros.Test/General/GeneralTest.cs
3,101
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Xunit; using DeezerSync.Models; namespace DeezerSync.Test.MusicProvider { public class SoundCloud { [Theory] [InlineData("omg-network-radio")] public async Task CheckPlaylistType(stri...
25.086957
103
0.679376
[ "MIT" ]
BackInBash/DeezerSync
DeezerSync/DeezerSync.Test/MusicProvider/SoundCloud.cs
579
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...
56.812834
509
0.65305
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/DocumentDB/V20200301/SqlResourceSqlUserDefinedFunction.cs
10,624
C#
// ArrayMapCallback.cs // Script#/Libraries/jQuery/Core // This source code is subject to terms and conditions of the Apache License, Version 2.0. // using System; using System.Runtime.CompilerServices; namespace jQueryApi { /// <summary> /// A callback to be invoked for each item in an array being mapped. ...
30.142857
90
0.690363
[ "Apache-2.0" ]
doc22940/scriptsharp
src/Libraries/jQuery/jQuery.Core/ArrayMapCallback.cs
633
C#
using UnityEngine; using Unity.Jobs; using Unity.Burst; using Unity.Collections; using Unity.Mathematics; using static Unity.Mathematics.math; namespace Deform { [Deformer (Name = "Skew", Description = "Skews mesh", Type = typeof (SkewDeformer))] [HelpURL("https://github.com/keenanwoodall/Deform/wiki/S...
26.508197
96
0.659246
[ "Unlicense" ]
chrsjwilliams/6feetunder
6FeetUnder/Assets/Deform/Code/Runtime/Mesh/Deformers/SkewDeformer.cs
3,236
C#
//------------------------------------------------------------------------------ // 此代码版权(除特别声明或在RRQMCore.XREF命名空间的代码)归作者本人若汝棋茗所有 // 源代码使用协议遵循本仓库的开源协议及附加协议,若本仓库没有设置,则按MIT开源协议授权 // CSDN博客:https://blog.csdn.net/qq_40374647 // 哔哩哔哩视频:https://space.bilibili.com/94253567 // Gitee源代码仓库:https://gitee.com/RRQM_Home // Gi...
26.882353
80
0.459519
[ "Apache-2.0" ]
850wyb/RRQMSocket
RRQMSocket.WebSocket/Enum/WSDataType.cs
1,711
C#
using Mirror; using UnityEngine; namespace WeaverMonoBehaviourTests.MonoBehaviourClientCallback { class MonoBehaviourClientCallback : MonoBehaviour { [ClientCallback] void ThisCantBeOutsideNetworkBehaviour() { } } }
20.416667
62
0.746939
[ "MIT" ]
10allday/OpenMMO
Plugins/3rdParty/Mirror/Tests/Editor/Weaver/WeaverMonoBehaviourTests~/MonoBehaviourClientCallback.cs
245
C#
using Microsoft.Extensions.Hosting; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using websocketschat.Bot.Interfaces; namespace websocketschat.Web.BackgroundService { public class BotBackgroundService : IHostedService { IBotMa...
25.933333
79
0.582691
[ "MIT" ]
gena56rus1/websocketschat_v2
src/websocketschat.Web/BackgroundService/BotBackgroundService.cs
1,169
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Z.Test { [TestClass] public partial class Bulk_BulkAction_BulkMerge_ManySelector { } }
13.75
63
0.757576
[ "MIT" ]
VagrantKm/Dapper-Plus
src/test/Z.Test/Bulk_BulkAction/BulkMerge_ManySelector/global_class.cs
165
C#
// <copyright file="CompositeProcessor.cs" company="OpenTelemetry Authors"> // Copyright The OpenTelemetry 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.apa...
29.88
109
0.503538
[ "Apache-2.0" ]
BearerPipelineTest/opentelemetry-dotnet
src/OpenTelemetry/CompositeProcessor.cs
5,229
C#
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.DependencyInjection; using aspnetHosting = Microsoft.AspNetCore.Hosting; namespace HelloWorld.Server { public class Sta...
33.428571
122
0.644078
[ "MIT" ]
JozefR/practical-aspnetcore
projects/3-0/razor-component/hello-world/HelloWorld.Server/Program.cs
1,638
C#
using System; using System.Collections.Generic; using System.ComponentModel; using UnityEngine; namespace traVRsal.SDK { [Serializable] public class Game { public enum ReleaseChannel { Live = 0, Beta = 1, Alpha = 2 } public enum Publishi...
29.258621
113
0.58574
[ "MIT" ]
studentutu/traVRsal-sdk
Runtime/Construction/Game.cs
1,699
C#
using AemonsNookMono.Admin; using AemonsNookMono.Player; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Text; namespace AemonsNookMono.Menus.World { public class ProfileMenu : Menu { public ProfileMenu(StateManager.State originalState) : base("...
47.666667
194
0.55702
[ "MIT" ]
JamCamAbreu/AemonsNookMono
AemonsNookMono/Menus/World/ProfileMenu.cs
7,438
C#
#region License /* The MIT License Copyright (c) 2008 Sky Morey Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy...
36.121622
80
0.61691
[ "MIT" ]
Grimace1975/bclcontrib-abstract
src/System.Abstract/+Nparams+Impl/NparamsManager.cs
2,675
C#
using System; using System.Text; class UnicodeCharacters { static void Main() { string input = Console.ReadLine(); foreach (char c in input) { Console.Write("\\u{0:X4}", getUnicodeCode(c)); } Console.WriteLine(); } private static int getUnicodeCode...
23.72
77
0.60371
[ "MIT" ]
sholev/SoftUni
Fundamentals-2.0/C#-Advanced/Homework/2015-09/StringsAndTextProcessing/UnicodeCharacters/UnicodeCharacters.cs
595
C#
using CompanyName.MyMeetings.Modules.Meetings.Domain.Meetings; using CompanyName.MyMeetings.Modules.Meetings.Domain.Meetings.Events; using CompanyName.MyMeetings.Modules.Meetings.Domain.Meetings.Rules; using CompanyName.MyMeetings.Modules.Meetings.Domain.UnitTests.SeedWork; using NUnit.Framework; using System; name...
45.433333
123
0.671191
[ "MIT" ]
GamilYassin/modular-monolith-with-ddd
src/Modules/Meetings/Tests/UnitTests/Meetings/MeetingRolesTests.cs
8,180
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 ...
44.5
111
0.790092
[ "Apache-2.0" ]
bbs168/aliyun-openapi-net-sdk
aliyun-net-sdk-ehpc/EHPC/Transform/V20180412/DescribeGWSClusterPolicyResponseUnmarshaller.cs
1,958
C#