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; namespace Grades { public class GradeStatistics { public GradeStatistics() { HighestGrade = 0; LowestGrade = float.MaxValue; } ...
25.089744
50
0.314257
[ "Apache-2.0" ]
tarluna/Grades
Grades/GradeStatistics.cs
1,959
C#
// ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by SpecFlow (http://www.specflow.org/). // SpecFlow Version:2.1.0.0 // SpecFlow Generator Version:2.0.0.0 // // Changes to this file may cause incorrect behavior and wi...
37.081633
251
0.578976
[ "BSD-3-Clause" ]
Abaza96/cleanArchitecture
Specification/Customers/GetCustomersList/GetCustomersList.feature.cs
3,636
C#
using System; using System.Collections.Generic; namespace TwilightSparkle.Forum.DomainModel.IdentityServer4 { public class Client { public int Id { get; set; } public bool Enabled { get; set; } = true; public string ClientId { get; set; } public string ProtocolType { get; set...
54.403226
89
0.651645
[ "Apache-2.0" ]
pavvlik777/Fluttershy_Barn_Forum
src/TwilightSparkle.Forum.DomainModel/IdentityServer4/Client.cs
3,375
C#
using System; using System.Linq; using System.Reflection; using System.Threading.Tasks; using NUnit.Framework; namespace BotFramework.Tests { // this [Ignore("This is just a proof of concept.")] public class TaskTests { private static Task _task; [Test] public async Task Test(...
26.08046
106
0.506831
[ "MIT" ]
AskoldMakaruk/BotFramework
BotFramework.Tests/TaskTests.cs
2,269
C#
using System.Text.Json.Serialization; namespace TechSpace.Web.Models { public class Post { public string Id { get; set; } public string Author { get; set; } public string Title { get; set; } public string Content { get; set; } public string PassthroughUrl { get; set; } ...
26.647059
56
0.600442
[ "MIT" ]
LukeBillo/tech-space
TechSpace.Web/Models/Post.cs
455
C#
using System; using System.IO; using System.IO.Compression; using System.Runtime.Serialization; using System.Security.Cryptography; namespace Lokad.Cqrs.StreamingStorage { [DataContract] public sealed class BinaryStreamReference { [DataMember(Order = 1)] public string Container { get; priva...
28.268482
130
0.547694
[ "BSD-3-Clause" ]
FlipGitBits/lokad-cqrs
Cqrs.Portable/DataStreams/BinaryStreams.cs
7,265
C#
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using PureCloudPlatform.Client.V2.Client; namespace PureClo...
31.335616
142
0.535738
[ "MIT" ]
nmusco/platform-client-sdk-dotnet
build/src/PureCloudPlatform.Client.V2/Model/QueueConversationCobrowseEventTopicScoredAgent.cs
4,575
C#
using HarmonyLib; using Kingmaker.UnitLogic; using Kingmaker.UnitLogic.Class.LevelUp.Actions; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace ToyBox.Multiclass { public static class SkillPoint { public static int CalcTotalSkillPointsNonMythic(this ClassData cd) => cd.Char...
47.403226
143
0.562436
[ "MIT" ]
AeonBlack/ToyBox
ToyBox/classes/MonkeyPatchin/Multiclass/StatProgression/SkillPoint.cs
2,941
C#
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace Microsoft.Azure.I...
37.583333
99
0.494457
[ "MIT" ]
Azure/Industrial-IoT
samples/src/Microsoft.Azure.IIoT.App/src/Extensions/DiscovererInfoEx.cs
1,806
C#
//----------------------------------------------------------------------------- // FILE: ModelGenTestHelper // CONTRIBUTOR: Jeff Lill // COPYRIGHT: Copyright (c) 2005-2022 by neonFORGE LLC. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file exce...
29.706897
80
0.679629
[ "Apache-2.0" ]
codelastnight/neonKUBE
Test/Test.Neon.ModelGen/ModelGenTestHelper.cs
1,725
C#
using BusinessLayer.Abstract; using DataAccessLayer.Abstract; using EntityLayer.Concrete; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BusinessLayer.Concrete { public class CommentManager : ICommentService { ICommentDal _...
22.7
53
0.653451
[ "MIT" ]
rabianur412/CoreDemo
BusinessLayer/Concrete/CommentManager.cs
683
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. /*============================================================================= ** ** ** ** Purpose: The arrays are ...
36.185185
134
0.626919
[ "MIT" ]
AaronRobinsonMSFT/coreclr
src/System.Private.CoreLib/shared/System/ArrayTypeMismatchException.cs
1,954
C#
using Newtonsoft.Json; using VkApi.Wrapper.Objects; using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.Threading.Tasks; namespace VkApi.Wrapper.Responses { public class StoriesGetBannedResponse { ///<summary> /// Stories count ///</summary> ...
23.55
41
0.645435
[ "MIT" ]
FrediKats/VkLibrary
VkApi.Wrapper/Responses/Stories/StoriesGetBannedResponse.cs
471
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; using System.Xml.Linq; namespace Microsoft.Build.Logging.StructuredLogger { /// <summary> /...
35.712575
117
0.5555
[ "MIT" ]
0n1zz/main
Samples/XmlFileLogger/LogProcessNode.cs
5,966
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 Microsoft.ML.Probabilistic.Learners.BayesPointMachineClassifierInternal { using System; using Syst...
48.137681
161
0.685684
[ "MIT" ]
ScriptBox99/dotnet-infer
src/Learners/Classifier/BayesPointMachineClassifierInternal/Algorithms/GaussianBinaryFactorizedInferenceAlgorithms.cs
6,643
C#
// Copyright 2004-2010 Castle Project - http://www.castleproject.org/ // // 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 ...
31.457627
126
0.717134
[ "Apache-2.0" ]
hach-que/Castle.Core
src/Castle.Components.Validator/Attributes/ValidateDateTimeAttribute.cs
1,856
C#
using BaoZi.IService; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BaoZi.Service { public class OrderService : IOrderService { public string CreateOrder() { return "下单成功"; } } }
17.166667
45
0.656958
[ "MIT" ]
weixiaolong325/.NetCore5.0AutofacDemo
BaoZi.Service/OrderService.cs
319
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Counselor.Platform.Tests.Core.Repositories { [TestClass] public class DialogsRepositoryTests { [TestMethod] public void CreateOrUpdateDialogSimple() { } } }
15.6
52
0.773504
[ "MIT" ]
AxQE/Counselor.Platform
tests/Counselor.Platform.Tests/Core/Repositories/DialogsRepositoryTests.cs
236
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Input; using System.Windows.Markup; using MaterialDesignExte...
33.78125
177
0.61451
[ "MIT" ]
GerHobbelt/MaterialDesignExtensions
MaterialDesignExtensions/Controls/TextBoxSuggestions.cs
7,569
C#
using UnityEngine; namespace Utils { public class DontDestroyOnLoad : MonoBehaviour { private void Start() => DontDestroyOnLoad(gameObject); } }
16.777778
56
0.754967
[ "MIT" ]
sgaumin/TemplateGJ_2D
Assets/Scripts/Utils/Organization/DontDestroyOnLoad.cs
153
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Reflection; using System.Runtime.Remoting; using System.Threading.Tasks; using Orleans.Runtime; using Orleans.Runtime.Configuration; namespace Orleans.TestingHost { /// <summary> /// Represents a handle to a silo that is ...
32.649425
161
0.534941
[ "MIT" ]
seralexeev/orleans
src/Orleans.TestingHost/AppDomainSiloHandle.cs
5,683
C#
using System; namespace Orleans.Indexing { /// <summary> /// A simple implementation of a partitioned in-memory hash-index /// </summary> /// <typeparam name="K">type of hash-index key</typeparam> /// <typeparam name="V">type of grain that is being indexed</typeparam> [Serializable] public ...
38
170
0.71345
[ "MIT" ]
TedHartMS/OrleansV2.Fork.Indexing
src/Orleans.Indexing/Indexes/ActiveIndexes/ActiveHashIndexPartitionedPerKey.cs
684
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.222222
87
0.669202
[ "Apache-2.0" ]
test-wiz-sec/pulumi-azure-nextgen
sdk/dotnet/DocumentDB/V20200901/Outputs/PeriodicModeBackupPolicyResponse.cs
1,052
C#
namespace JGL.Infra.Globals.DbSettings.Definitions { public static class DatabaseProperties { public static class MySQL { public const int MAXLENGTH_DESCRIPTION = 250; public const int MAXLENGTH_GUID = 50; public const int MAXLENGTH_SHORTNAME = 50; ...
31.285714
62
0.61796
[ "MIT" ]
jagel/meal-planner-api
MealPlanner.Infrastructure/DbSettings/Definitions/DatabaseProperties.cs
659
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("Ja...
40.263158
84
0.752288
[ "MIT" ]
MinyieDiaz/Jabberwocky
src/Extras/Jabberwock.Extras.NewRelic.Sc/Properties/AssemblyInfo.cs
1,533
C#
///<remarks>This file is part of the <see cref="https://github.com/enviriot">Enviriot</see> project.<remarks> using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace X13.MQTT { /// <summary>The different types of messages defined in the MQTT protocol</summary...
32.660225
156
0.611478
[ "MIT" ]
enviriot/EnviriotSW
plugins/MQTT/MqMessages.cs
20,284
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using UnityEngine; using UnityEditor; namespace Microsoft.MixedReality.Toolkit.Editor { /// <summary> /// Custom property drawer to show an optionally collapsible foldout help section in the Inspector /// </summary> /// <exampl...
34.853333
166
0.589135
[ "MIT" ]
AdrianaMusic/MixedRealityToolkit-Unity
Assets/MRTK/Core/Inspectors/PropertyDrawers/HelpDrawer.cs
2,622
C#
using RecipeSocial.Domain.Entities.Template; using System.Collections.Generic; namespace RecipeSocial.Domain.Entities { public class Tag : Base { public int Name { get; set; } public ICollection<RecipeTag> RecipeTags { get; set; } } }
20.461538
62
0.684211
[ "MIT" ]
jvalverdep/recipe-social-test
RecipeSocial.Domain/Entities/Tag.cs
268
C#
#if !NETSTANDARD13 /* * 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 ...
33.8
108
0.676775
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/SageMaker/Generated/Model/_bcl45+netstandard/IListLabelingJobsPaginator.cs
1,352
C#
#if !(UNITY_IPHONE || UNITY_ANDROID || UNITY_METRO) using UnityEngine; using UniRx.Triggers; // for enable gameObject.EventAsObservbale() namespace UniRx.Examples { public class Sample03_GameObjectAsObservable : MonoBehaviour { void Start() { // All events can subscribe...
33
85
0.59552
[ "MIT" ]
Bian-Sh/QFramework
Assets/QFramework/Framework/0.Libs/6.UniRx/Examples/Sample03_GameObjectAsObservable.cs
761
C#
using System; namespace aiala.Backend.ApiModels.Activities { public class ActivityMetadataModel { public DateTimeOffset Timestamp { get; set; } public decimal? Latitude { get; set; } public decimal? Longitude { get; set; } public Guid? ActiveTaskId { get; set; } pub...
20.277778
53
0.627397
[ "MIT" ]
AIALA/aiala.backend
aiala.Backend/ApiModels/Activities/ActivityMetadataModel.cs
367
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FFMpegSharp.FFMPEG.Arguments { /// <summary> /// Represents start number parameter /// </summary> public class StartNumberArgument : Argument<int> { public StartNum...
23
68
0.61413
[ "MIT" ]
qingqibing/FFMpegSharp
FFMpegSharp/FFMPEG/Arguments/StartNumberArgument.cs
738
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Exten...
37.211765
143
0.597534
[ "MIT" ]
codetiki/StripeTest
server/Startup.cs
3,163
C#
using Domain.Models; using Domain.ServiceExtensions; using Persistence.Repositories; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Domain.Services { public class ThreadsService : IThre...
27.050505
97
0.585885
[ "Apache-2.0" ]
dorotaro/ThreadsApp_V1
Domain/Services/ThreadsService.cs
2,680
C#
using Assets.Scripts.InMaze.Networking.Jsonify; using UnityEngine; using UnityEngine.UI; namespace Assets.Scripts.InMaze.UI { public class PlayerNumber : StackableUi { // Use this for initialization void Start() { // Set next node LowerNode = GameObject.Find("Ti...
29.205882
81
0.565962
[ "Apache-2.0" ]
myze/Unity-App
Assets/Scripts/InMaze/UI/PlayerNumber.cs
995
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using AdvUtils; using CRFSharp; namespace GenerateFeatureDictMatch { public class GenerateFeatureDictMatch : IGenerateFeature { DictMatch dictmatch = null; List<Lemma> dm_r; List<int>...
30.328244
95
0.507929
[ "BSD-3-Clause" ]
Oceania2018/CRFSharp
GenerateFeatureDictMatch/GenerateFeatureDictMatch.cs
3,975
C#
// This file has been autogenerated from a class added in the UI designer. using System; using Foundation; using WatchKit; namespace hearRINGWatchOS.WatchOSApp { public partial class InterfaceController : WKInterfaceController { public InterfaceController (IntPtr handle) : base (handle) { } } }
18.117647
74
0.766234
[ "MIT" ]
HayleyO/Senior-Design
src/watch/hearRING/hearRINGWatchOS/hearRINGWatchOS.WatchOSApp/InterfaceController.cs
308
C#
using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Engines; using BenchmarkDotNet.Order; using System; using System.Security.Cryptography; namespace DotNext; [SimpleJob(runStrategy: RunStrategy.Throughput, launchCount: 1)] [Orderer(SummaryOrderPolicy.FastestToSlowest)] public class RandomStringBenchmark { p...
30.12
80
0.767596
[ "MIT" ]
copenhagenatomics/dotNext
src/DotNext.Benchmarks/RandomStringBenchmark.cs
755
C#
namespace DotVVM.Framework.Compilation.Parser { public class ParserConstants { public const string ViewModelDirectiveName = "viewModel"; public const string MasterPageDirective = "masterPage"; public const string BaseTypeDirective = "baseType"; public const string ResourceTypeDir...
46.517241
77
0.714603
[ "Apache-2.0" ]
AMBULATUR/dotvvm
src/DotVVM.Framework/Compilation/Parser/ParserConstants.cs
1,349
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Web.Http; using Microsoft.Owin.Security.OAuth; using Newtonsoft.Json.Serialization; namespace AutomatedComponentTestWriter { public static class WebApiConfig { public static void Register(HttpConfigu...
32.470588
127
0.658514
[ "MIT" ]
cltalmadge/AutomatedComponentTestWriter
AutomatedComponentTestWriter/App_Start/WebApiConfig.cs
1,106
C#
namespace _06._Twitter { public class StartUp { public static void Main() { } } }
13.111111
33
0.491525
[ "MIT" ]
thelad43/CSharp-OOP-Advanced-SoftUni
10. Unit Testing - Exercise/06. Twitter/StartUp.cs
120
C#
using Microsoft.Tools.TeamMate.Foundation.Windows.Input; using Microsoft.Tools.TeamMate.Foundation.Windows.MVVM; using Microsoft.Tools.TeamMate.Model; using Microsoft.Tools.TeamMate.Services; using System.ComponentModel.Composition; using System.Windows.Input; namespace Microsoft.Tools.TeamMate.ViewModels { publi...
32.928571
160
0.671909
[ "MIT" ]
john-alessi/TeamMate
Source/TeamMate/ViewModels/OverviewWindowViewModel.cs
1,846
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading; using System.Windows; namespace TCC.Updater { internal class Program { private static string SourcePath = Path.GetDirectoryName(typeof(Program).Assembly.Location)+ "/tm...
34.725
140
0.542477
[ "MIT" ]
Foglio1024/Tera-custom-cooldowns
TCC.Updater/Program.cs
2,780
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.Win32; using System; using System.Collections.Generic; using System.Globalization; using System.Resources; using System.Runtime.InteropServices; #if RU...
41.696154
243
0.575131
[ "MIT" ]
MarcoRossignoli/msbuild
src/Tasks/ManifestUtil/ComImporter.cs
10,843
C#
using System; using Newtonsoft.Json; using System.Xml.Serialization; namespace Essensoft.AspNetCore.Payment.Alipay.Domain { /// <summary> /// AlipayOpenPublicPayeeBindDeleteModel Data Structure. /// </summary> [Serializable] public class AlipayOpenPublicPayeeBindDeleteModel : AlipayObject { ...
25.678571
68
0.613352
[ "MIT" ]
Aosir/Payment
src/Essensoft.AspNetCore.Payment.Alipay/Domain/AlipayOpenPublicPayeeBindDeleteModel.cs
815
C#
// Description: Async extension methods for LINQ (Language Integrated Query). // Website & Documentation: https://github.com/zzzprojects/LINQ-Async // Forum: https://github.com/zzzprojects/LINQ-Async/issues // License: http://www.zzzprojects.com/license-agreement/ // More projects: http://www.zzzprojects.com/ // Copyr...
46.296296
226
0.752
[ "MIT" ]
Littlepond/LINQ-Async
src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Immediate_Task/IEnumerable`/SequenceEqual.cs
1,252
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.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using ...
44.657534
180
0.620859
[ "Apache-2.0" ]
20chan/roslyn
src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LocalRewriter_AsOperator.cs
3,262
C#
namespace SoftGym.Services.Data.Contracts { using System.Collections.Generic; using System.Threading.Tasks; using SoftGym.Data.Models; public interface INotificationsService { public Task<Notification> CreateNotificationAsync(string content, string url, string userId = null); pub...
29.92
108
0.731283
[ "MIT" ]
PlamenMichev/SoftGym
Services/SoftGym.Services.Data/Contracts/INotificationsService.cs
750
C#
using Assistant; using JsonData; using System.Collections.Generic; using System.Threading; namespace RazorEnhanced { public class Target { private int m_ptarget; private RazorEnhanced.Point3D m_pgtarget; public static bool HasTarget() { return Assistant.Targeting.HasTarget; } public static void Wai...
26.049774
147
0.680389
[ "Apache-2.0" ]
3HMonkey/Razor-Enhanced
Razor/RazorEnhanced/Target.cs
11,516
C#
//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class TestProtolWrap { public static void Register(LuaState L) { L.BeginStaticLibs("TestProtol"); L.RegVar("data", get_data, set_data); L.EndStaticLibs(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSF...
18.272727
72
0.697761
[ "MIT" ]
amostalong/SSFS
Assets/LuaFramework/ToLua/Examples/15_ProtoBuffer/TestProtolWrap.cs
806
C#
#region License /* Copyright © 2014-2019 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 ...
36.725333
211
0.51474
[ "Apache-2.0" ]
fainagof/Ginger
Ginger/GingerCoreCommon/GeneralLib/General.cs
13,775
C#
// This file has been generated using the Simplic.Flow.NodeGenerator using System; using Simplic.Flow; namespace Simplic.Flow.Node { [ActionNodeDefinition(Name = nameof(SystemDateTimeIsLeapYear_Int32), DisplayName = "IsLeapYear(Int32)", Category = "System/DateTime")] public class SystemDateTimeIsLeapYear_I...
35.126316
138
0.579263
[ "MIT" ]
simplic/flow
src/Simplic.Flow.Node/ActionNode/Generic/System.DateTime/SystemDateTimeIsLeapYear_Int32Node.cs
3,337
C#
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** 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; names...
32.709677
205
0.621959
[ "ECL-2.0", "Apache-2.0" ]
davidobrien1985/pulumi-azure
sdk/dotnet/ManagementGroups/GetManagementGroup.cs
3,042
C#
using MediatR; using Opdex.Platform.Application.Abstractions.Models.MarketTokens; using Opdex.Platform.Application.Abstractions.Models.Tokens; using Opdex.Platform.Common.Models; using System; namespace Opdex.Platform.Application.Abstractions.EntryQueries.Tokens; /// <summary> /// Get a market token by its market con...
34.162162
96
0.692247
[ "MIT" ]
Opdex/opdex-v1-api
src/Opdex.Platform.Application.Abstractions/EntryQueries/Tokens/GetMarketTokenByMarketAndTokenAddressQuery.cs
1,264
C#
/* * * (c) Copyright Ascensio System Limited 2010-2020 * * 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 la...
28.630435
134
0.462415
[ "Apache-2.0" ]
Ektai-Solution-Pty-Ltd/CommunityServer
module/ASC.Mail.Autoreply/ASC.Mail.Core/Net/ABNF/ABNF_CharVal.cs
5,268
C#
using Academy.Commands.Contracts; using Academy.Core.Contracts; using Academy.Framework.Core.Contracts; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System; using System.Linq; using System.Text; namespace Academy.Core.Tests { [TestClass] public class Start_Should { public c...
38.819277
130
0.627871
[ "MIT" ]
SvetozarMateev/Exercises
Academy/Academy.UnitTest/Core/EngineTests/Start_Should.cs
3,224
C#
using System; public class OtherStringOperations { public static void Main() { // String.Replace() example string cocktail = "Vodka + Martini + Cherry"; string replaced = cocktail.Replace("+", "and"); Console.WriteLine(replaced); // String.Remove() example strin...
27.727273
55
0.540984
[ "CC0-1.0" ]
ivayloivanof/AdvancedCSharp
AdvancedCSharp/03.StringsAndTextProcessing/Demos/Other-String-Operations/OtherStringOperations.cs
1,220
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class Loser : MonoBehaviour { [SerializeField] TextMeshProUGUI playerLost; // Start is called before the first frame update void Start() { playerLost.text = FindObjectOfType<GameSession>().GetLos...
19.409091
83
0.665105
[ "MIT" ]
hkim1016/Pong
Pong/Assets/Scripts/Loser.cs
427
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class GameManager : MonoBehaviour { //public List<GameObject> npcObjs = new List<GameObject>(); Dictionary<string, float> npcInfo = new Dictionary<string, float>(); public GameObject NPCPrefab; //c...
26.278689
91
0.570805
[ "Unlicense" ]
honeyboyJones/code_lab_1_assignments
tea_game_hw/Assets/Scripts/w12/GameManager.cs
1,603
C#
using System.Collections.Generic; using System.Linq; using System.Net.WebSockets; namespace WebsocketsSimple.Server.Models { public class IdentityWS<T> : IIdentityWS<T> { public T UserId { get; set; } public ICollection<IConnectionWSServer> Connections { get; set; } public IConnectio...
26.263158
105
0.681363
[ "Apache-2.0" ]
LiveOrDevTrying/WebsocketsSimple
WebsocketsSimple.Server/Models/IdentityWS.cs
501
C#
using System; using System.Collections.Generic; using System.Text; namespace Achamenes.ID3.Frames { [global::System.Serializable] public class OfficialAudioFileUrlFrame : UrlFrame { public OfficialAudioFileUrlFrame(string url) : base(url) { } public static Achamenes.ID3.Frames.Parsers.FrameParser Create...
30.170732
123
0.756669
[ "MIT", "Unlicense" ]
sahands/a-id3
ID3/Source/Frames/URL Frames/OfficialAudioFileUrlFrame.cs
1,237
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("Xa...
36.241379
84
0.74215
[ "MIT" ]
Bazzaware/ProfessionalCSharp7
DependencyInjection/PISample/XamarinClient/XamarinClient.UWP/Properties/AssemblyInfo.cs
1,054
C#
using System; using System.Collections.Generic; namespace InstructorIQ.Core.Data.Entities { /// <summary> /// Entity class representing data for table 'ImportJob'. /// </summary> public partial class ImportJob { /// <summary> /// Initializes a new instance of the <see cref="ImportJo...
31.145299
82
0.538694
[ "Apache-2.0" ]
loresoft/InstructorIQ
service/src/InstructorIQ.Core/Data/Entities/ImportJob.cs
3,644
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...
43.280702
293
0.65302
[ "Apache-2.0" ]
pulumi-bot/pulumi-azure-native
sdk/dotnet/Network/Outputs/PacketCaptureFilterResponse.cs
2,467
C#
using System; using System.Collections.Generic; namespace tetris_ai_cn { public class Brick { /// <summary> /// 说明板块类型,0田字形,1|字形,2T字形,3Z字形,4S字形,5J字形,6L字形 /// </summary> public int type = 0; /// <summary> /// 以稀疏矩阵的方式存储每个方块相对板块的位置 /// </summary...
36.635854
148
0.340852
[ "MIT" ]
grdaimap/tetris_ai
tetris_ai_cn/tetris_ai_cn/Brick.cs
13,771
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
30.382166
110
0.574843
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/IoTAnalytics/Generated/Model/DatasetSummary.cs
4,770
C#
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("Microsoft.Content.Recommendations.Common"...
39.277778
84
0.747525
[ "MIT" ]
oswaldor/Plume
NLP/TopicExtraction/LatentDirichletAllocation/ModelBuilder/Properties/AssemblyInfo.cs
1,417
C#
using Klyte.AssetColorExpander.XML; using Klyte.Commons.Libraries; using System.Xml.Serialization; namespace Klyte.AssetColorExpander.Libraries { [XmlRoot("BuildingRuleLib")] public class ACEBuildingRuleLib : LibBaseFile<ACEBuildingRuleLib, BuildingCityDataRuleXml> { protected override string XmlN...
25.571429
94
0.77095
[ "MIT" ]
klyte45/AssetColorExpander
Libraries/ACEBuildingRuleLib.cs
360
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using NuGet.VisualStudio; namespace NuGetConsole { /// <summary> /// ICommandExpansion provider (intellisense). /// To support command expa...
35.304348
111
0.67734
[ "Apache-2.0" ]
0xced/NuGet.Client
src/NuGet.Clients/NuGet.Console/ICommandExpansionProvider.cs
812
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the Apache v.2 license. using System; using Microsoft.SPOT; using System.IO; using System.Collections; using System.Text; using System.Net; using System.Threading; using Gadgeteer; namespace Gadgeteer.Networking { /// <summary> ///...
30.55414
138
0.500521
[ "Apache-2.0" ]
martinca-msft/Gadgeteer
NETMF_44/GadgeteerCore/Libraries/Core/WebClient43/HttpResponse.cs
4,797
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
34.710526
153
0.557998
[ "MIT" ]
Aliases/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/ListItemsCollectionResponse.cs
1,319
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...
26.162791
81
0.594667
[ "Apache-2.0" ]
sebtelko/pulumi-azure-native
sdk/dotnet/DocumentDB/V20210315/Outputs/IndexesResponse.cs
1,125
C#
// <auto-generated /> using System; using Infrastructure.EF; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Inf...
34.68745
117
0.435175
[ "MIT" ]
BinaryStudioAcademy/bsa-2021-scout
backend/src/Infrastructure/Migrations/20210901201917_AddCompanyIdMigration.Designer.cs
43,396
C#
using Olympic.RazorConverter.Razor.DOM; using Olympic.RazorConverter.WebForms.DOM; namespace Olympic.RazorConverter.Razor.Converters { using System.ComponentModel.Composition; using Olympic.RazorConverter.Razor.DOM; using Olympic.RazorConverter.WebForms.DOM; [Export(typeof(IWebFormsConverter<IRazorNo...
31.423077
110
0.556916
[ "MIT" ]
olympicsoftware/razor-converter
Olympic.RazorConverter/Razor/Converters/WebFormsToRazorConverter.cs
1,636
C#
#if UNITY_EDITOR using EditorExtend; using Map; using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEngine; namespace Map { [ExecuteInEditMode] public class TeleportRoot : MapEntityRoot { #region 私有属性 /// <summary> /// json数据 /// </summary> private EditorTeleport[] m...
27.456311
116
0.536598
[ "Apache-2.0" ]
fqkw6/RewriteFrame
other/mapScritps/MapData/TeleportRoot.cs
5,786
C#
using System.Collections.Generic; namespace dotnet_new2 { public class MenuCategory : MenuNode { public IList<MenuNode> Children { get; set; } } }
16.9
53
0.668639
[ "MIT" ]
DamianEdwards/dotnet-new2
src/dotnet-new2/MenuCategory.cs
171
C#
using System.Reactive.Concurrency; namespace PicasaDatabaseReader.Core.Scheduling { public sealed class UISchedulerProvider : SchedulerProvider, IUISchedulerProvider { public IScheduler CurrentThread => Scheduler.CurrentThread; public IScheduler Immediate => Scheduler.Immediate; publ...
29.866667
85
0.754464
[ "MIT" ]
StanleyGoldman/Picasa-database-reader
PicasaDatabaseReader.Core/Scheduling/UISchedulerProvider.cs
450
C#
using SortingPagination.DataAccess.Entities; using SortingPagination.Models; using System.Threading.Tasks; namespace SortingPagination.Services { public interface IOrderService { Task<ListResult<Order>> GetAsync(int pageIndex, int itemsPerPage, string orderBy); } }
26.090909
90
0.773519
[ "MIT" ]
marcominerva/OrderPagination
SortingPagination/Services/IOrderService.cs
289
C#
using System; class Student : Human { public int ClassNumber { get; private set; } public string Comment { get; set; } public Student(string firstName, string middleName, string lastName) : base(firstName, middleName, lastName) { } }
17.8
72
0.655431
[ "MIT" ]
hackohackob/TelerikAcademy
C# OOP/OOPPrinciples/School/Student.cs
269
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.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Microsoft.CodeAn...
47.842451
182
0.644941
[ "MIT" ]
belav/roslyn
src/Workspaces/Core/Portable/CodeGeneration/CodeGenerator.cs
21,866
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...
36.686567
127
0.689585
[ "Apache-2.0" ]
FoxBearBear/aws-sdk-net
sdk/src/Services/SimpleEmail/Generated/Model/CloudWatchDestination.cs
2,458
C#
using Comet.Blazor.Components; namespace Comet.Blazor.Handlers { internal class ButtonHandler : BlazorHandler<Button, BButton> { public static readonly PropertyMapper<Button> Mapper = new PropertyMapper<Button> { { nameof(Button.Text), MapTextProperty }, { nameof(Button...
27.666667
91
0.616648
[ "MIT" ]
PieEatingNinjas/Comet
src/Comet.Blazor/Handlers/ButtonHandler.cs
915
C#
using Microsoft.AspNetCore.Mvc; using Volo.Abp.AspNetCore.Mvc; namespace DevExtremeAngular.Controllers { public class HomeController : AbpController { public ActionResult Index() { return Redirect("~/swagger"); } } }
19.071429
47
0.640449
[ "MIT" ]
271943794/abp-samples
DevExtreme-Angular/aspnet-core/src/DevExtremeAngular.HttpApi.Host/Controllers/HomeController.cs
269
C#
// Straight Pointer Renderer|PointerRenderers|10020 namespace VRTK { using UnityEngine; /// <summary> /// The Straight Pointer Renderer emits a coloured beam from the end of the object it is attached to and simulates a laser beam. /// </summary> /// <remarks> /// It can be useful for ...
46.425781
263
0.619941
[ "MIT" ]
Reality-Virtually-Hackathon/Proxemix
Assets/VRTK/Scripts/Pointers/PointerRenderers/VRTK_StraightPointerRenderer.cs
11,887
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using Windows.Foundation.Metadata; namespace UniversalPlatformTools { /// <summary> /// A Basic implementation of the <see cre...
30.980392
128
0.69557
[ "Apache-2.0" ]
LCTWorks/UniversalPlatformTools
BaseNotifier.cs
1,582
C#
namespace CribblyBackend.DataAccess.Tournaments.Repositories { public static class TournamentQueries { private const string allTournamentColumns = "Id, Date, IsOpenForRegistration, IsActive"; public static string Create = @"INSERT INTO Tournaments (Date, IsOpenForRegistration, ...
51.827586
144
0.664005
[ "MIT" ]
cszczepaniak/cribbly-backend
src/CribblyBackend.DataAccess/Tournaments/Repositories/TournamentQueries.cs
1,503
C#
using CefSharp; using CefSharp.WinForms; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace BGEngine.Forms { public partial class BrowserForm...
26.484848
75
0.679634
[ "MIT" ]
Naamloos/BGEngine
BGEngine/Forms/BrowserForm.cs
876
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace SpeakerMeet.API.Controllers { [Route("api/[controller]")] public class ValuesController : Controller { // GET api/values [HttpGet] public IEnum...
20.555556
55
0.522162
[ "MIT" ]
PacktPublishing/Improving-your-C-Sharp-Skills
Chapter06/SpeakerMeet/SpeakerMeet.API/Controllers/ValuesController.cs
927
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Devices.AllJoyn { #if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__ [global::Uno.NotImplemented] #endif public partial class AllJoynCredentialsReques...
49
162
0.75737
[ "Apache-2.0" ]
AbdalaMask/uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Devices.AllJoyn/AllJoynCredentialsRequestedEventArgs.cs
3,087
C#
using UnityEngine; namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityAudioSource { [TaskCategory("Unity/AudioSource")] [TaskDescription("Sets the inTime value of the AudioSource. Returns Success.")] public class SetTime : Action { [Tooltip("The GameObject that the task operates on. If null th...
30.568182
99
0.607435
[ "Unlicense" ]
LaudateCorpus1/distributed-architecture-of-moba-game-server
PurificationPioneer/Assets/3rd/Behavior Designer/Runtime/Tasks/Unity/AudioSource/SetTime.cs
1,345
C#
// Debouncing for value filter (10 ms) conf.Column(c => c.Title).FilterValue(c => c.Title, ui => ui.ClientFiltering().Inputdelay(10)); // Debouncing for range value filter (10 ms) conf.Column(c => c.Price).FilterRange(c => c.Price, ui => ui.ClientFiltering().Inputdelay(10));
55.2
95
0.699275
[ "MIT" ]
reinforced/Reinforced.Lattice.Samples
Reinforced.Lattice.CaseStudies.Filtering/doc/filter-debouncing.cs
276
C#
using DemoCore.Application.ViewModels; using System; using System.Collections.Generic; namespace DemoCore.Application.Interfaces { public interface IBestWorkTimeService: IDisposable { void Register(BestWorkTimeVM bestWorkVM); IEnumerable<BestWorkTimeVM> GetAll(); BestWorkTimeVM GetById...
29.888889
61
0.724907
[ "MIT" ]
hugomarshall/Demo
DemoCore/src/DemoCore.Application/Interfaces/IBestWorkTimeService.cs
540
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using BuildXL.Utilities.Tracing; namespace BuildXL.Engine.Cache.Artifacts { /// <summary> /// Counters for <see cref="LocalDiskContentStore" />. /...
30.591837
107
0.601734
[ "MIT" ]
AzureMentor/BuildXL
Public/Src/Engine/Cache/Artifacts/LocalDiskContentStoreCounter.cs
2,998
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="XamlElementNameProvider.cs" company="Hukano"> // Copyright (c) Hukano. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full licens...
33.836066
120
0.55281
[ "MIT" ]
hugener/Sundew.Xaml.Optimizations
Sources/Sundew.Xaml.Optimizations/Bindings/Internal/Xaml/XamlElementNameProvider.cs
2,066
C#
using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; namespace IfacesEnumsStructsClasses { #region IHTMLRect Interface /// <summary><para><c>IHTMLRect</c> interface.</para></summary> [Guid("3050F4A3-98B5-11CF-BB82-00AA00BDCE0B")] [ComImport] [TypeLibTyp...
36.975
136
0.539892
[ "Apache-2.0" ]
prog76/csexwb2
HTML_Interfaces/IHTMLRect.cs
2,958
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NosqlTransactionManager { public interface IWriteResource<T> { string ParticipantName { get; } T Create(T t); T Update(T t); bool Delete(T t); } }
18.294118
40
0.598071
[ "Apache-2.0" ]
vinayakbhadage/NosqlTransactionManager
TransctionAdministrator/NosqlTransctionManager/ResourceManager/IWriteResource.cs
313
C#
using System; using System.Threading.Tasks; using Resonance.Outbox.Serialization; using Resonance.Outbox.Storage; namespace Resonance.Outbox.Inbound { public class TransactionOutboxBuilder { private IMessageRepository _repository; private IMessageSerializer _serializer; private IStorag...
32.833333
102
0.676577
[ "Apache-2.0" ]
m-wilczynski/resonance
src/Outbox/Resonance.Outbox/Inbound/TransactionalOutboxBuilder.cs
1,381
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...
47.564516
203
0.611394
[ "MIT" ]
Andrean/azure-powershell
src/StackAdmin/Dns/Commands.Dns/Records/NewAzureDnsRescordSet.cs
5,777
C#
// Copyright (C) 2009-2021 Xtensive LLC. // This code is distributed under MIT license terms. // See the License.txt file in the project root for more information. using System; using Xtensive.Sql.Compiler; using Xtensive.Sql.Info; using SqlServerConnection = Microsoft.Data.SqlClient.SqlConnection; namespace Xtensive...
27
116
0.731481
[ "MIT" ]
DataObjects-NET/dataobjects-net
Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/v09/Driver.cs
1,620
C#
#region License // Copyright (c) 2019 smart-me AG https://www.smart-me.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 the Software without restriction, including without limitation the right...
36.55
96
0.688554
[ "MIT" ]
eCarUp/smartme-api-client-library-dotnet
Src/OidcWebExample/Pages/Devices/GetDevices.cshtml.cs
2,195
C#