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 Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; namespace JekyllLibrary.Library { public partial class BlackOps3 { public class Localize : IXAssetPool { public override string Name => "Localize Entry"; ...
34.935484
142
0.521083
[ "MIT" ]
EpicZombieSlayer115/Jekyll
Jekyll.Library/Game/BlackOps3/XAssets/Localize.cs
3,251
C#
// <auto-generated /> using GoldenForCongress.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage; using Microsoft.EntityFrameworkCore.Sto...
33.266932
117
0.475928
[ "MIT" ]
stevedesmond-ca/GoldenForCongress
src/Migrations/20170911155827_Routes.Designer.cs
8,352
C#
using System.Collections.Generic; using System.Linq; using Newtonsoft.Json.Linq; namespace JsonDiffPatchDotNet.Formatters { public abstract class BaseDeltaFormatter<TContext, TResult> where TContext : IFormatContext<TResult>, new() { public delegate void DeltaKeyIterator(string key, string leftKey, MoveDestinati...
29.886905
154
0.677953
[ "MIT" ]
Kairus101/jsondiffpatch.net
Src/JsonDiffPatchDotNet/Formatters/BaseDeltaFormatter.cs
5,021
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 ...
40.368421
117
0.775098
[ "Apache-2.0" ]
brightness007/unofficial-aliyun-openapi-net-sdk
aliyun-net-sdk-ess/Ess/Transform/V20140828/ModifyScalingConfigurationResponseUnmarshaller.cs
1,534
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.Text; using System.Collections.ObjectModel; using Microsoft.CodeAnalysis.Collections; using Microsoft.CodeAnalysis.ExpressionEvaluator; using Typ...
34.765306
160
0.509246
[ "Apache-2.0" ]
0x53A/roslyn
src/ExpressionEvaluator/CSharp/Source/ResultProvider/CSharpFormatter.cs
3,407
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using k8s.Models; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NJsonSchema; using NJsonSchema.Generation; using NJsonSchema.Generation.TypeMappers; using System; using System.Collections.Generic;...
38.57971
171
0.595667
[ "MIT" ]
ArchonSystemsInc/reverse-proxy
src/OperatorFramework/src/CustomResource/CustomResourceDefinitionGenerator.cs
7,988
C#
using GetcuReone.FactFactory; namespace MovieServiceExample.Facts { /// <summary> /// The fact stores information about the cost of buying a movie for the user /// </summary> public class MoviePurchasePriceFact : FactBase<int> { public MoviePurchasePriceFact(int value) : base(value) ...
22.8
81
0.649123
[ "Apache-2.0" ]
GetcuReone/FactFactory
FactFactory/MovieServiceExample/Facts/MoviePurchasePriceFact.cs
344
C#
using System; public enum DistanceToTargetType { None, FarFromTarget, NearByTarget, ReachedTarget }
11.4
33
0.72807
[ "MIT" ]
corefan/mobahero_src
DistanceToTargetType.cs
114
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; class TriangleSurface { static void Main() { double a = double.Parse(Console.ReadLine()); double b = double.Parse(Console.ReadLine()); double c = double.Parse(Console.ReadLine()); double h = d...
39.2
111
0.642128
[ "MIT" ]
snukal/All-Telerik-Homeworks
C#2/Using-Classes-and-Objects/Triangle surface/4. Triangle surface.cs
1,374
C#
using Esri.ArcGISRuntime.Controls; using Esri.ArcGISRuntime.Geometry; using Esri.ArcGISRuntime.Layers; using Esri.ArcGISRuntime.Symbology; using Esri.ArcGISRuntime.Tasks.Query; using System; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Controls; namespace ArcGISRunti...
35.601695
146
0.584147
[ "Apache-2.0" ]
mikedorais/arcgis-runtime-samples-dotnet
src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/QueryTasks/FindTaskSample.xaml.cs
4,203
C#
using System; using Zenject; using MessagePipe.Zenject; namespace MessagePipe { public static partial class DiContainerExtensions { // original is ServiceCollectionExtensions, trimed openegenerics register. public static MessagePipeOptions BindMessagePipe(this DiContainer builder) { ...
47.111801
146
0.647726
[ "MIT" ]
hadashiA/MessagePipe
src/MessagePipe.Unity/Assets/Plugins/MessagePipe.Zenject/Runtime/DiContainerExtensions.cs
7,585
C#
// © Anamnesis. // Licensed under the MIT license. namespace Anamnesis.Memory { using System; using System.Threading.Tasks; using Anamnesis.Connect; using Anamnesis.Services; public class ActorMemory : ActorBasicMemory { private const short RefreshDelay = 250; private short refreshDelay; private Task? r...
25.366667
112
0.666886
[ "MIT" ]
Maxunit/Anamnesis
Anamnesis/Memory/ActorMemory.cs
6,091
C#
using System; class SumDigits { static void Main(string[] args) { int number = int.Parse(Console.ReadLine()); int sum = 0; while (number > 0) { sum += number % 10; number = number / 10; } Console.WriteLine(sum); } }
16
51
0.473684
[ "MIT" ]
VladimirKyuranov/Programming-Basics-CSharp
HomeWorks/07-AdvancedLoops/09-SumDigits/SumDigits.cs
306
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.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeGeneration; usin...
47.238372
160
0.616369
[ "Apache-2.0" ]
amcasey/roslyn
src/Features/Core/Portable/ImplementAbstractClass/AbstractImplementAbstractClassService.Editor.cs
8,125
C#
using System; using System.Collections.Generic; using System.IO; namespace MNISTLoader { public class MNISTDigitLoader { public static MNISTDigitData LoadDigits(string imageIdxFilePath, string imageLabelIdxPath) { if (!File.Exists(imageIdxFilePath) || !File.Exists(imageLabelIdxPath...
32.778947
127
0.552023
[ "MIT" ]
josipGrgic11235/ML.NET-Playground
DigitRecognition/MNISTLoader/MNISTDigitLoader.cs
3,116
C#
using NServiceBus; using NServiceBus.ProtoBuf; using ProtoBuf; public class EndToEnd { static ManualResetEvent manualResetEvent = new(false); string endpointName = "EndToEnd"; [Fact] public async Task Write() { var configuration = new EndpointConfiguration(endpointName); configura...
28.434783
81
0.654434
[ "MIT" ]
SimonCropp/NServiceBus.ProtoBuf
src/Tests/EndToEnd.cs
1,310
C#
using Gameloop.Vdf; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Reflection; using System.Windows.Forms; namespace AltInjector { public partial class Manage : Fo...
43.83844
445
0.465879
[ "MIT" ]
Idearum/SK-AltInjector
64bitMainApp/Manage.cs
47,216
C#
using Newtonsoft.Json; namespace Nop.Plugin.Api.DTOs.Categories { public class CategoriesCountRootObject { [JsonProperty("count")] public int Count { get; set; } } }
19.5
42
0.651282
[ "MIT" ]
ApertureLabsInc/api-plugin-for-nopcommerce
Nop.Plugin.Api/DTOs/Categories/CategoriesCountRootObject.cs
197
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PingYourPackage.Domain.Services { public class OperationResult { public OperationResult(bool isSuccess) { IsSuccess = isSuccess; } ...
21.941176
52
0.651475
[ "MIT" ]
tugberkugurlu/PingYourPackage
src/apps/PingYourPackage.Domain/Services/OperationResult.cs
375
C#
namespace Todo { using UnityEngine; [System.Serializable] public class TodoEntry { public string Text; public string Note; public string Tag; public string File; public int Line; public string PathToShow; public TodoEntry(string text, string note, string tag, string file, int line) { Text = t...
24.894737
157
0.618746
[ "MIT" ]
densylkin/ToDoManager
Editor/Scripts/Core/TodoEntry.cs
1,421
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...
48.304
178
0.688142
[ "Apache-2.0" ]
ChristopherButtars/aws-sdk-net
sdk/src/Services/Redshift/Generated/Model/AuthorizationAlreadyExistsException.cs
6,038
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Runtime.CompilerServices; using Harmony; using Oxide.Plugins; namespace OxideNoLimit { [HarmonyPatch] public static class OxideSandboxRemove { private static Metho...
35.525
157
0.641802
[ "MIT" ]
virtyvoid/OxideNoLimit
OxideNoLimit/OxideSandboxRemove.cs
1,423
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using log4net; [assembly: log4net.Config.XmlConfigurator(Watch = false)] namespace Framework.Log4NetImpl { public class Log4NetHelper { #region Atributos ...
20.366667
103
0.675941
[ "MIT" ]
gabrielsimas/Framework_DotNET
Log4NetImpl/Log4NetHelper.cs
614
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.TagHelpers; using System.Text.Encodings.Web; namespace TagHelperSamples.Markdown.Tests.Helpers { public class MarkdownHelperToTheTagHelpers { private readonly TagHelperAttributeList _inputAttr...
38.297872
105
0.665556
[ "Apache-2.0" ]
PerryCodes/TagHelperSamples
TagHelperSamples/src/TagHelperSamples.Markdown.Tests/Helpers/MarkdownHelperToTheTagHelpers.cs
1,800
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Lab4.Models { [System.SerializableAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] [System.Xml.Se...
33.4
128
0.53708
[ "Apache-2.0" ]
CavalornGothic/studia_laboratoria
Lab4/Lab4/Models/grade.cs
2,173
C#
// <auto-generated> // automatically generated by the FlatBuffers compiler, do not modify // </auto-generated> namespace Apache.Arrow.Flatbuf { using global::System; using global::FlatBuffers; /// Same as List, but with 64-bit offsets, allowing to represent /// extremely large data values. internal struct LargeList...
34.40625
148
0.742961
[ "Apache-2.0" ]
1mikegrn/arrow
csharp/src/Apache.Arrow/Flatbuf/Types/LargeList.cs
1,101
C#
//----------------------------------------------------------------------------- // Filename: RTSPURI.cs // // Description: RTSP URI. // // History: // 04 May 2007 Aaron Clauson Created. // // License: // This software is licensed under the BSD License http://www.opensource.org/licenses/bsd-license.php // // Copyright ...
39.937107
161
0.586772
[ "BSD-2-Clause" ]
7956968/gb28181-sip
SIPSorcery.28181/Net/RTSP/RTSPURL.cs
6,350
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using System.Runtime.CompilerServ...
33.458333
158
0.610627
[ "MIT" ]
DaZombieKiller/terrafx.interop.windows
sources/Interop/Windows/um/wincrypt/CMSG_RECIPIENT_ENCODE_INFO.cs
2,411
C#
namespace MadHoneyStore.Web.ViewModels.Home { using System; using System.Collections.Generic; public class IndexViewModel { public IEnumerable<IndexCategoryViewModel> Categories { get; set; } public IEnumerable<IndexProductViewModel> Products { get; set; } } }
23.076923
75
0.703333
[ "MIT" ]
russeva/MadHoneyStore
src/Web/MadHoneyStore.Web.ViewModels/Home/IndexViewModel.cs
302
C#
namespace nayuta.Math { public static class Mathf { public static float Round(float a, int b = 0) => (float) System.Math.Round(a, b); public static float Min(float a, float b) => (float) System.Math.Min(a, b); public static float Max(float a, float b) => (float) System.Math.Ma...
36.130435
95
0.616125
[ "MIT" ]
EngineerMark/nayuta-bot
nayuta/nayuta/Math/Mathf.cs
833
C#
 using AutoMapper; using MediatR; using Microsoft.EntityFrameworkCore; using SSW.Rewards.Application.Common.Interfaces; using SSW.Rewards.Application.Reward.Queries.Common; using System; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace SSW.Rewards.Application.Reward.Commands { pu...
36.512397
120
0.54029
[ "Apache-2.0" ]
SSWConsulting/SSW.Rewards
API/SSW.Rewards.Application/Reward/Commands/ClaimReward/ClaimRewardCommand.cs
4,420
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace PtVzzlePrison.Tests { [TestClass] public class GraphTests { /// <summary> /// All ones in the 3x4 matrix with indices: /// 0 1 2 3 /// 4 5 6 7 /// 8 9 10 11 /// </summary> private static...
28.796296
84
0.424437
[ "MIT" ]
3Dmondo/PtVzzlePrison
PtVzzlePrison.Tests/GraphTests.cs
1,557
C#
using System.Collections.Generic; namespace BikeMates.Domain.Entities { public class MapData : Entity { public virtual Coordinate Start { get; set; } public virtual Coordinate End { get; set; } public virtual ICollection<Coordinate> Waypoints { get; set; } } }
24.916667
70
0.668896
[ "MIT" ]
BikeMates/bike-mates
BikeMates/BikeMates.Domain/Entities/MapData.cs
301
C#
using Jetsons.MsgPack.Formatters; using System.Linq; using Jetsons.MsgPack.Internal; using Jetsons.MsgPack.Resolvers; namespace Jetsons.MsgPack.Resolvers { /// <summary> /// Default composited resolver, builtin -> attribute -> dynamic enum -> dynamic generic -> dynamic union -> dynamic object -> primitive. ...
30.832861
181
0.583793
[ "MIT" ]
jetsons/JetPack.Data.Net
MsgPack/Resolvers/StandardResolver.cs
10,886
C#
using AdventOfCode.Core; namespace AdventOfCode2020 { public class WaitingAreaTwo : BaseWaitingArea { public WaitingAreaTwo(string filename) : base(filename.ReadAllLines()) { } internal override void UpdateBoard() { for (int y = 0; y < _h; y++) {...
28.3125
78
0.367329
[ "MIT" ]
rprouse/AdventOfCode
AdventOfCode2020/Day11/WaitingAreaTwo.cs
2,265
C#
using Catalog.API.Data; using Catalog.API.Entities; using MongoDB.Driver; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Catalog.API.Repositories { public class ProductRepository : IProductRepository { private readonly ICatalogContext context...
35.084746
125
0.650725
[ "MIT" ]
abolhoseinisina/eShop
src/Services/Catalog/Catalog.API/Repositories/ProductRepository.cs
2,072
C#
 using System.Drawing; namespace SuchByte.MacroDeck.GUI.CustomControls { partial class DialogForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources...
46.870588
156
0.623494
[ "Apache-2.0" ]
RecklessBoon/Macro-Deck
GUI/CustomControls/DialogForm.Designer.cs
3,986
C#
using System.Collections.Generic; using MongoDB.Driver; using Catalog.API.Entities; namespace Catalog.API.Data { public class CatalogContextSeed { public static void SeedData(IMongoCollection<Product> productCollection) { bool existProduct = productCollection.Find(product => true).A...
70.27907
468
0.622766
[ "MIT" ]
caique39/aspnet-microservices
src/Services/Catalog/Catalog.API/Data/CatalogContextSeed.cs
6,044
C#
using System.Threading.Tasks; using Shouldly; using Xunit; using VOU.Sessions; namespace VOU.Tests.Sessions { public class SessionAppService_Tests : VOUTestBase { private readonly ISessionAppService _sessionAppService; public SessionAppService_Tests() { _sessionAppService ...
28.566038
87
0.625495
[ "MIT" ]
BugBear96/VOU
aspnet-core/test/VOU.Tests/Sessions/SessionAppService_Tests.cs
1,516
C#
using System; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; using Discord; using Discord.Commands; using Discord.WebSocket; using OctoBot.Configs; using OctoBot.Configs.Server; using OctoBot.Configs.Users; using OctoBot.Custom_Library; using OctoBot.Handeling; using OctoBot.Helper; nam...
42.310606
240
0.502059
[ "MIT" ]
OctoBot-Boole/OctoBot
OctoBot/Commands/ServerSetup.cs
16,787
C#
using System.Threading.Tasks; using DSharpPlus.CommandsNext; using DSharpPlus.CommandsNext.Attributes; namespace LaDOSE.DiscordBot.Command { [RequireRolesAttribute("SuperAdmin")] public class Shutdown { private readonly Dependencies dep; public Shutdown(Dependencies d) { ...
22.04
59
0.61706
[ "MIT" ]
darkstack/LaDOSE
LaDOSE.Src/LaDOSE.DiscordBot/Command/Shutdown.cs
553
C#
// CivOne // // To the extent possible under law, the person who associated CC0 with // CivOne has waived all copyright and related or neighboring rights // to CivOne. // // You should have received a copy of the CC0 legalcode along with this // work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. us...
24.538462
73
0.714734
[ "CC0-1.0" ]
Andersw88/CivOne
src/Wonders/HangingGardens.cs
638
C#
 namespace SSRSMigrate.Wrappers { public interface ISerializeWrapper { T DeserializeObject<T>(string value); string SerializeObject(object value); } }
18.9
46
0.645503
[ "MIT" ]
jpann/SSRSMigrate
SSRSMigrate/SSRSMigrate/Wrappers/ISerializeWrapper.cs
191
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("Sw...
38.459459
84
0.748419
[ "MIT" ]
dzharii/swd-recorder
SwdPageRecorder/SwdPageRecorder.TestModel/Properties/AssemblyInfo.cs
1,426
C#
using System; using NHapi.Base; using NHapi.Base.Parser; using NHapi.Base.Model; using NHapi.Model.V251.Datatype; using NHapi.Base.Log; namespace NHapi.Model.V251.Segment{ ///<summary> /// Represents an HL7 GP1 message segment. /// This segment has the following fields:<ol> ///<li>GP1-1: Type of Bill Code (IS)</li> ...
34.142857
121
0.659059
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
AMCN41R/nHapi
src/NHapi.Model.V251/Segment/GP1.cs
7,887
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Sys.Stdio; using Sys; using Sys.IO; namespace Sys.Stdio.Cli { class Batch { private readonly string path; private readonly IWorkspace workspace; p...
26.198529
90
0.435869
[ "MIT" ]
fjiang2/sqlcli
systie/Console/CLI/Batch.cs
3,565
C#
// Decompiled with JetBrains decompiler // Type: BlueStacks.Core.TableLayoutStrategy // Assembly: BlueStacks.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null // MVID: C36AABCB-E7F4-4E86-A72F-981C56431F94 // Assembly location: C:\Program Files\BlueStacks\BlueStacks.Core.dll using System; using System.Collec...
32.338129
177
0.602447
[ "MIT" ]
YehudaEi/Bluestacks-source-code
src/BlueStacks.Core/TableLayoutStrategy.cs
4,497
C#
using CFB.Application.Models; using CFB.Common.Utilities; using CFB.Domain.Commands; using CFB.Infrastructure.Persistence.CosmosGremlinClient; using Gremlin.Net.Driver; using Microsoft.Extensions.Logging; using System; using System.Threading.Tasks; namespace CFB.Application.CommandHandlers { public class CreateFl...
38.366667
115
0.581668
[ "MIT" ]
velicko018/cfb
src/CFB.Application/CommandHandlers/CreateFlightCommandHandler.cs
2,304
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.RevenueManagement { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace ...
23.116667
136
0.756309
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.RevenueManagement/Subrecipient_Response_GroupType.cs
1,387
C#
// ------------------------------------------------------------------------------ // <copyright company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // ------------------------------------------------------------------------------ using System.Collectio...
28.644628
108
0.523081
[ "MIT" ]
yjs/ycs
src/Ycs/Structs/ContentString.cs
3,468
C#
using ReMi.Common.Constants; using ReMi.Common.WebApi.Notifications; using System; using ReMi.Contracts.Cqrs.Events; namespace ReMi.Events { public class NotificationOccuredForUserEvent : IEvent, INotificationFilterForUser { public NotificationOccuredForUserEvent() { Type = Notifica...
25.3125
85
0.630864
[ "MIT" ]
vishalishere/remi
ReMi.Api/ServiceBoundary/ReMi.Events/NotificationOccuredForUserEvent.cs
810
C#
namespace MVVM { public class JoystickUI : VMBase<JoystickUI> { protected override void RegisterActivationEvents() { } protected override void UnregisterActivationEvents() { } } }
17.285714
60
0.586777
[ "MIT" ]
mrvcmrvc/MMUIMenu
UMVVMFramework/Assets/UMVVMFramework/MVVMFramework/Runtime/JoystickController/Scripts/JoystickUI.cs
244
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 #region Usings using System; using System.Web.UI.WebControls; using DotNetNuke.Common; using DotNetNuke.Common...
29.333333
90
0.590909
[ "MIT" ]
Tychodewaard/Dnn.Platform
DNN Platform/Website/admin/Skins/LinkToFullSite.ascx.cs
1,938
C#
using System; using System.IO; using System.Linq; namespace _03.FileSystemTree { public class Startup { public static void Main() { var rootFolderName = @"..\.."; var rootFolder = new Folder(rootFolderName); BuildFileSystemTree(rootFolder); // T...
26.134831
84
0.461737
[ "MIT" ]
VVoev/Telerik-Academy
15.Data-Structures-and-Algorithms/BIG FAT CHEAT SHEET/Homeworks/05.TreesAndTraversals/03.FileSystemTree/Startup.cs
2,328
C#
using UnityEngine; using Febucci.Attributes; namespace Febucci.UI.Core { [System.Serializable] //Do not touch this script, but change the CustomDefaultValues one public class AppearanceDefaultValues { #region Default Effects' values //Do not add your custom effect's values here ...
37
118
0.652842
[ "Apache-2.0" ]
gerlogu/Shooter
Game/Assets/Game/Plugins/Febucci/Text Animator/Core/EffectsDefaultValues.cs
4,294
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using KnapsackProblem.Common; using static KnapsackProblem.Common.ArgumentHelpers; using static KnapsackProblem.Common.Helpers; namespace KnapsackProblem.SimulatedEvolution { class Program { /* args: ...
46.197802
168
0.573977
[ "MIT" ]
kovarmi/paa
KnapsackProblem.SimulatedEvolution/Program.cs
4,206
C#
using System.ComponentModel; namespace EncompassRest.Filters { /// <summary> /// StringFieldMatchType /// </summary> public enum StringFieldMatchType { /// <summary> /// Exact /// </summary> [Description("==")] Exact = 0, /// <summary> /// Ca...
21.193548
36
0.462709
[ "MIT" ]
EncompassRest/EncompassREST
src/EncompassRest/Filters/StringFieldMatchType.cs
659
C#
using System; using System.Collections.Generic; namespace GenericViewModels.Services { public class SelectedItemService<T> : ISelectedItemService<T> { private T _selectedItem; public T SelectedItem { get => _selectedItem; set { if (!E...
24.68
78
0.547812
[ "MIT" ]
CNinnovation/Generic.ViewModels
Generic.ViewModels/Services/SelectedItemService.cs
619
C#
using System; using System.Collections.Generic; using System.Linq; using DBUtil; namespace Models { /// <summary> /// 用户表 /// </summary> [AutoIncrement] public partial class SYS_USER { } }
12.882353
33
0.625571
[ "MIT" ]
0611163/DBHelper
DBHelper/Models/ExtModels/SYS_USER.cs
225
C#
using System; namespace program2 { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); } } }
13.538462
46
0.511364
[ "MIT" ]
sedc-codecademy/skwd9-net-05-oopcsharp
G5/class01 - Introduction/code/program/program2/Program.cs
178
C#
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
28.925373
90
0.579979
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/deviceprovisioningservices/Microsoft.Azure.Management.DeviceProvisioningServices/src/Generated/Models/OperationInputs.cs
1,938
C#
using AutoFixture; using NSubstitute; using Serilog; using System; using System.Collections.Generic; using Products.Service.Domain; using Products.Service.Interfaces.Business; using Products.Service.WebApi.Controllers; using Xunit; namespace Products.Service.WebApi.Tests { public partial class ProductControllerTes...
31.638889
93
0.719052
[ "MIT" ]
mendezgabriel/products-rest-api-demo-dotnet-core
Products.Service.WebApi.Tests/ProductControllerTests.cs
1,139
C#
using Zoro.IO; using Zoro.IO.Caching; using Zoro.IO.Data.LevelDB; using System; namespace Zoro.Persistence.LevelDB { internal class DbMetaDataCache<T> : MetaDataCache<T> where T : class, ICloneable<T>, ISerializable, new() { private readonly DB db; private readonly ReadOptions options;...
27.511628
113
0.581572
[ "MIT" ]
ProDog/Zoro
Zoro/Persistence/LevelDB/DbMetaDataCache.cs
1,185
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace ElementMapperExtension { public static class DictionaryExtension { public enum MapWith { Propertie, Attribute, All }; /// <summary> /// Map data from List Dictionnary to an Object ...
45.358491
146
0.375416
[ "MIT" ]
Kaikon/ElementMapperExtension
ElementMapper/ElementMapper/DictionaryExtension.cs
9,618
C#
using System; namespace Pacco.Services.Orders.Application.Exceptions { public class OrderForReservedVehicleNotFoundException : AppException { public override string Code { get; } = "order_for_reserved_vehicle_not_found"; public Guid VehicleId { get; } public DateTime Date { get;...
33.5
95
0.636816
[ "MIT" ]
Potapy4/Pacco.Services.Orders
src/Pacco.Services.Orders.Application/Exceptions/OrderForReservedVehicleNotFoundException.cs
603
C#
using System; using System.Globalization; using System.Windows; using System.Windows.Data; using System.Windows.Media; namespace VisualProgrammer.WPF.Util { internal static class DataTypeColorUtils { /// <summary> /// Resolves the line/node color for the given type. /// </summary> internal static Color Col...
38.766667
155
0.743336
[ "MIT" ]
Wibble199/VisualProgrammer
VisualProgrammer.WPF/Util/DataTypeColorUtils.cs
2,328
C#
using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows; namespace Rapid.NET.Wpf { public class WindowConfig { public class Area { ...
28.017391
84
0.513035
[ "MIT" ]
maxsgit1234/Rapid.NET
Source/Rapid.NET.Wpf/WindowConfig.cs
3,224
C#
using System; using System.Collections.Generic; using System.Linq; using Kiota.Builder.Extensions; using static Kiota.Builder.CodeTypeBase; namespace Kiota.Builder.Writers.CSharp { public class CSharpConventionService : CommonLanguageConventionService { public override string StreamTypeName => "stream"; ...
65.446429
233
0.645566
[ "MIT" ]
ehtick/kiota
src/Kiota.Builder/Writers/CSharp/CSharpConventionService.cs
10,995
C#
// Copyright (c) Leonardo Brugnara // Full copyright and license information in LICENSE file using System.Collections.Generic; namespace Zenit.Ast { public class ExpressionListNode : Node { public List<Node> Expressions { get; } public ExpressionListNode(List<Node> args) { ...
21.2
57
0.636792
[ "MIT" ]
lbrugnara/flsharp
FrontEnd/Ast/ExpressionListNode.cs
426
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("Apo...
39.297297
84
0.753095
[ "MIT" ]
hancheester/apollo
Data Access/Apollo.DataAccess.EF/Properties/AssemblyInfo.cs
1,457
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.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace System.Diagnostics.Eventing.Reader { /// <summary> /// The metadata for a specific Opcode ...
26.835165
77
0.484029
[ "MIT" ]
2m0nd/runtime
src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/Reader/EventOpcode.cs
2,442
C#
namespace Kyrodan.HiDrive.Requests { public class BaseRequestBuilder { public IBaseClient Client { get; private set; } public string RequestUrl { get; internal set; } public BaseRequestBuilder(string requestUrl, IBaseClient client) { this.Client = client; ...
25.333333
73
0.612782
[ "MIT" ]
Breakpoint21/hidrive-dotnet-sdk
src/Kyrodan.HiDrive/Requests/BaseRequestBuilder.cs
532
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Sql.Models { public partial class PerformanceLevelCapability { internal static PerformanceL...
30.361111
109
0.584629
[ "MIT" ]
AbelHu/azure-sdk-for-net
sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PerformanceLevelCapability.Serialization.cs
1,093
C#
namespace TESVSnip.Framework.Collections { using System; using System.Collections; /// <summary> /// The value comparer. /// </summary> public class ValueComparer : IComparer { /// <summary> /// The default comparer. /// </summary> private static readonly Va...
31.860789
119
0.322386
[ "MIT" ]
Sharlikran/tesv-snip
Framework/Collections/ValueComparer.cs
13,734
C#
using DataAccessLibrary; using Microsoft.Extensions.Configuration; using System.IO; using System.Windows; namespace TextCopier { public partial class App : Application { protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); var dataAccess = new Sqli...
28.4
90
0.628773
[ "MIT" ]
MadalinCernat/TextCopier
TextCopierApp/TextCopier/App.xaml.cs
996
C#
using System; using System.Threading.Tasks; using Cheesebaron.MvxPlugins.Settings.Interfaces; using LiveHTS.Core.Interfaces.Services.Access; using LiveHTS.Core.Interfaces.Services.Config; using LiveHTS.Core.Model.Config; using LiveHTS.Core.Model.Subject; using LiveHTS.Core.Model.Survey; using LiveHTS.Core.Service.Conf...
29.611374
146
0.552657
[ "MIT" ]
palladiumkenya/afyamobile
LiveHTS.Presentation/ViewModel/SignInViewModel.cs
6,250
C#
/* * Users: Joao Ricardo / Joao Rodrigues * <description> * Esta Classe serve para Gerir os Pacientes dos Tratadores * </description> * <number> 18845 / 19431 <number> * <email> a18845@alunos.ipca.pt / a19431@...
31.530822
98
0.43934
[ "Apache-2.0" ]
RicardoPinto18845/-18845_19431_LP2_FII
ClassLibraryTratadores/Lista_Pacientes.cs
9,210
C#
using System.Resources; 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. [ass...
35.193548
84
0.745188
[ "MIT" ]
MeetEric/meeteric-contracts
MeetEric.Contracts/Properties/AssemblyInfo.cs
1,094
C#
//========= Copyright 2016-2019, HTC Corporation. All rights reserved. =========== using UnityEngine.EventSystems; namespace HTC.UnityPlugin.ColliderEvent { public interface IColliderEventHoverEnterHandler : IEventSystemHandler { void OnColliderEventHoverEnter(ColliderHoverEventData eventData...
32.605634
84
0.741253
[ "MIT" ]
Insanious/VR-Graphical-Representation
Assets/HTC.UnityPlugin/ColliderEvent/ColliderEventInterfaces.cs
2,317
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Books.Api.Contexts; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Dependenc...
31.613636
94
0.601725
[ "MIT" ]
codejoncode/Async-API
Books/Books.Api/Program.cs
1,393
C#
using System; using NServiceBus; using ServiceControl.Features; class MyClass { public void Configure_ServiceControl() { #region Heartbeats_Configure_ServiceControl var endpointConfiguration = new EndpointConfiguration("myendpoint"); endpointConfiguration.HeartbeatPlugin( ...
25.886792
77
0.645044
[ "Apache-2.0" ]
A-Franklin/docs.particular.net
Snippets/Heartbeats/Heartbeats6_2/Heartbeats.cs
1,322
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. namespace Mi...
78.612717
494
0.757426
[ "MIT" ]
Agazoth/azure-powershell
src/Purview/Purviewdata.Autorest/generated/api/Models/Api20211001Preview/TeradataDataSource.cs
13,428
C#
using System; using System.Collections.Generic; namespace _14_Osoba_Zivotinja { class Program { static void Main(string[] args) { //Klasični način kreiranja objekata //i popunjavanja svojstava Osoba partner = new Osoba(); partner.Ime = "Ava"; ...
23.407407
81
0.494726
[ "MIT" ]
hrdasdominik/AlgebraC-2020
14_Osoba_Zivotinja/Program.cs
1,902
C#
using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// <summary> /// <para>表示 [POST] /merchant/shelf/getbyid 接口的请求。</para> /// </summary> public class MerchantShelfGetByIdRequest : WechatApiRequest { /// <summary> /// 获取或设置货架 ID。 ...
26.789474
69
0.628684
[ "MIT" ]
KimMeng2015/DotNetCore.SKIT.FlurlHttpClient.Wechat
src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Shelf/MerchantShelfGetByIdRequest.cs
543
C#
using System; using System.Net; using System.Linq; using System.Net.NetworkInformation; using System.Collections.Generic; namespace NetworkTrayGraph { public class InterfaceStatistics { public string Name; public string Id; public OperationalStatus Status; public long Receive...
36.634146
149
0.614181
[ "MIT" ]
Killeroo/Chasovoy
NetworkTrayGraph/NetworkMonitor.cs
6,010
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using EventDrivenThinking.EventInference.Schema; using Humanizer; namespace EventDrivenThinking.Tests.Common { public class EventDictionary { private List<EventEntry> _events; private List<CommandEntry>...
36.858065
102
0.589008
[ "MIT" ]
eventmodeling/eventdriventhinking
EventDrivenThinking.Tests/Common/EventDictionary.cs
5,715
C#
using Catalog.API.Entities; using Catalog.API.Repositories; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; namespace Catalog.API.Controllers { [Route("api/[controller]")] [Ap...
35.024691
99
0.641523
[ "MIT" ]
sarun4jun90/.Net5Microservices
src/Services/Catalog/Catalog.API/Controllers/CatalogController.cs
2,839
C#
using System.Data.Common; namespace Weasel.Core { /// <summary> /// Interface for services that can create a new connection object /// to the underlying database /// </summary> public interface IConnectionSource: IConnectionSource<DbConnection> { } /// <summary> /// Interface for ...
25.535714
71
0.616783
[ "MIT" ]
JasperFx/weasel
src/Weasel.Core/IConnectionSource.cs
715
C#
using System.Windows; namespace SixtenLabs.Gluten { /// <summary> /// Configuration passed to WindowManager (normally implemented by BootstrapperBase) /// </summary> public interface IWindowManagerConfig { /// <summary> /// Returns the currently-displayed window, or null if there is none (or it can't be dete...
26.058824
98
0.717833
[ "Unlicense" ]
SixtenLabs/Gluten
src/SixtenLabs.Gluten/Interfaces/IWindowManagerConfig.cs
445
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.Json; using System.Threading.Tasks; using CancellationToken = System.Threading....
38.242424
120
0.663629
[ "MIT" ]
ScriptBox99/dotnet-hotreload-utils
src/Microsoft.DotNet.HotReload.Utils.Generator/Script/Json/Parsing.cs
2,524
C#
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 RMQWonderwareAdapter { public partial class FormWriteTag : Form { ...
23.151515
67
0.609948
[ "MIT" ]
znoop333/RMQWonderwareAdapter
RMQWonderwareAdapter/RMQWonderwareAdapter/FormWriteTag.cs
766
C#
using System; using System.Collections.Generic; using System.Linq; using GR.Identity.Abstractions; using GR.Notifications.Abstractions; using GR.Notifications.Abstractions.Models.Config; using GR.Notifications.Abstractions.Models.Notifications; using Microsoft.AspNetCore.SignalR; namespace GR.Notifications.Hub.Hubs {...
32.854015
117
0.554766
[ "MIT" ]
indrivo/GEAR
src/GR.Extensions/GR.Notifications.Extension/GR.Notifications.Hub/Hubs/CommunicationHub.cs
4,503
C#
using System; using System.Collections.Generic; using Abp.Authorization.Users; using Abp.Extensions; namespace maarif.myproject.Authorization.Users { public class User : AbpUser<User> { public const string DefaultPassword = "123qwe"; public static string CreateRandomPassword() { ...
25
83
0.564571
[ "MIT" ]
eminekiricii/maarifProject
aspnet-core/src/maarif.myproject.Core/Authorization/Users/User.cs
877
C#
using UnityEngine; using System.Collections.Generic; using OmiyaGames; using OmiyaGames.Audio; using OmiyaGames.Menu; namespace Project { ///----------------------------------------------------------------------- /// <copyright file="MenuTest.cs" company="Omiya Games"> /// The MIT License (MIT) ...
37.428571
150
0.546183
[ "MIT" ]
OmiyaGames/gamemakers-toolkit-jam-2018
Assets/Project/Scripts/MenuTest.cs
5,242
C#
using System.IO; using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using SocketClient.Messages; namespace SocketClient.Protocols { public class JsonMessageProtocol : Protocol<Message> { static readonly JsonSerializer _serializer; static readonly JsonSerializerSett...
33.717949
99
0.643346
[ "MIT" ]
MohamedAl-Hussein/janggi-game
JanggiGame/SocketClient/Protocols/JsonMessageProtocol.cs
1,317
C#
using System; namespace ExpressMapper.Tests.Model.Models.Structs { public struct Feature { public Guid Id { get; set; } public string Name { get; set; } public string Description { get; set; } public decimal Rank { get; set; } } }
21.307692
50
0.602888
[ "Apache-2.0" ]
Enegia/ExpressMapper
ExpressMapper.Tests.Model/Models/Structs/Feature.cs
279
C#
using System; namespace Whyvra.Tunnel.Domain.Entitites { public class ClientNetworkAddress : IEntity { public int Id { get; set; } public int ClientId { get; set; } public WireguardClient Client { get; set; } public int NetworkAddressId { get; set; } public NetworkAd...
21.904762
58
0.623913
[ "MIT" ]
whyvra/tunnel
Whyvra.Tunnel.Domain/Entities/ClientNetworkAddress.cs
460
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 DotNetNuke.Web.UI.WebControls { using System; using Telerik.Web.UI; [Obsolete("Teler...
30.3125
121
0.705155
[ "MIT" ]
Acidburn0zzz/Dnn.Platform
DNN Platform/DotNetNuke.Web.Deprecated/UI/WebControls/DnnTreeList.cs
487
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using Pliant.Builders; using Pliant.Grammars; using Pliant.LexerRules; namespace Pliant.Tests.Unit.Builders { [TestClass] public class GrammarModelTests { [TestMethod] public void GrammarModelShouldAddProductionModel() { ...
36.469072
116
0.582756
[ "MIT" ]
patrickhuber/Earley
tests/Pliant.Tests.Unit/Builders/GrammarModelTests.cs
7,077
C#
// // ClassInterfaceDerivativeFinder.cs // // Author: // Alexander Bothe <info@alexanderbothe.com> // // Copyright (c) 2013 Alexander Bothe // // 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 ...
33.91129
131
0.722473
[ "Apache-2.0" ]
aBothe/D_Parser
DParser2/Refactoring/ClassInterfaceDerivativeFinder.cs
4,205
C#