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; namespace HexTbs.Battle.Map { [Serializable] public class BMapModel { public string Name { get; set; } public int Width { get; set; } public int Height { get; set; } public List<string> Hexes { get; ...
19.153846
57
0.620482
[ "MIT" ]
Gokotti/HexTbs
HexTbs/Battle/Map/BMapModel.cs
500
C#
using System; using System.ComponentModel.DataAnnotations; namespace UniLinks.Dependencies.Models { public class LessonModel { [Key] public Guid LessonId { get; set; } [Required] public string URI { get; set; } public string LessonSubject { get; set; } [Required] public Guid DisciplineId { get; set...
17.258065
44
0.676636
[ "MIT" ]
Speckoz/UniLink
Speckoz.UniLinks/UniLinks.API/Models/LessonModel.cs
537
C#
using System; using System.Collections.Generic; using Xms.Core; using Xms.Core.Data; using Xms.Security.Domain; namespace Xms.Security.DataAuthorization.Data { public interface IRoleObjectAccessEntityPermissionRepository : IRepository<RoleObjectAccessEntityPermission> { RoleObjectAccessEntityPermissio...
35.1875
143
0.815275
[ "MIT" ]
feilingdeng/xms
Libraries/Security/Xms.Security.DataAuthorization/Data/IRoleObjectAccessEntityPermissionRepository.cs
565
C#
using DotNetCore.Validation; using FluentValidation; namespace DotNetCoreArchitecture.Model { public class ItemValidator<T> : Validator<T> where T : ItemModel { public ItemValidator() { RuleFor(x => x.ItemName).NotEmpty(); RuleFor(x => x.Description).NotEmpty(); ...
24.941176
68
0.589623
[ "MIT" ]
yousefexperts/angular8
source/Model/Models/Items/ItemValidator.cs
424
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity.Core.Common { using System.Collections.Generic; using System.Collections.ObjectModel; using System.Data.Entity.Core.Metadata.Edm; using Syste...
42.631206
151
0.573116
[ "Apache-2.0" ]
Cireson/EntityFramework6
src/EntityFramework/Core/Common/DataRecordInfo.cs
6,011
C#
using System; using System.Collections.Generic; using System.Text; namespace VGMToolbox.util { /// <summary> /// Struct containing criteria used to find offsets. /// </summary> public struct FindOffsetStruct { private string searchString; private string startingOffset; p...
29.917808
122
0.555708
[ "MIT" ]
selurvedu/UsmDemuxer
UsmDemuxer/VGMToolbox/util/Constants.cs
13,106
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.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editor.CSharp.Outlining; using Microsoft.CodeAnalysis....
30.148148
161
0.649877
[ "Apache-2.0" ]
HaloFour/roslyn
src/EditorFeatures/CSharpTest/Outlining/EventDeclarationOutlinerTests.cs
1,630
C#
namespace Azure.DigitalTwins.Core { public partial class DigitalTwinsClient { protected DigitalTwinsClient() { } public DigitalTwinsClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public DigitalTwinsClient(System.Uri endpoint, Azure.Core.TokenCredential credential,...
103.134409
387
0.776364
[ "MIT" ]
lapradh/azure-sdk-for-net
sdk/digitaltwins/Azure.DigitalTwins.Core/api/Azure.DigitalTwins.Core.netstandard2.0.cs
19,183
C#
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Quartz.Impl.AdoJobStore; using Quartz.Impl.AdoJobStore.Common; using Serilog; using Serilog.Events; using System.Co...
42.803109
160
0.490376
[ "MIT" ]
teotw1314/quartzui-1
QuartzNetAPI/Host/Startup.cs
8,375
C#
// <auto-generated> // This file was generated by a tool; you should avoid making direct changes. // Consider using 'partial classes' to extend these types // Input: logs.proto // </auto-generated> #region Designer generated code #pragma warning disable CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, ...
47.783626
243
0.691715
[ "Apache-2.0" ]
Kielek/signalfx-dotnet-tracing
tracer/test/OpenTelemetry.TestHelpers/Proto/Logs/V1/Logs.cs
8,171
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace Microsoft.Data.Entity.Design.CodeGeneration { using System.Diagnostics; /// <summary> /// Represents a model configuration to set the precision and scale of a dec...
31.83871
133
0.608916
[ "Apache-2.0" ]
CZEMacLeod/EntityFramework6
src/EFTools/EntityDesign/CodeGeneration/Configuration/Property/PrecisionDecimalConfiguration.cs
989
C#
using System; using System.Reflection; public struct A { public override string ToString () { return "A"; } } public class D { public string Test () { return "Test"; } } enum Enum1 { A, B } enum Enum2 { C, D } class Tests { public static Enum1 return_enum1 () { return Enum1.A; } public static E...
22.736264
183
0.638956
[ "Apache-2.0" ]
UCIS/mono
mono/tests/runtime-invoke.cs
4,138
C#
/* Copyright (c) 2018, Szymon Jakóbczyk, Paweł Płatek, Michał Mielus, Maciej Rajs, Minh Nhật Trịnh, Izabela Musztyfaga All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributio...
43.666667
158
0.730049
[ "Unlicense" ]
Playfloor/Galactromeda
Assets/Scripts/Menus/LoadGameMapSceneInit.cs
2,890
C#
using System.Xml.Serialization; namespace Kachuwa.Web { public enum VideoPurchaseOption { None, [XmlEnum("rent")] Rent, [XmlEnum("own")] Own } }
13.866667
35
0.514423
[ "MIT" ]
amritdumre10/Kachuwa
Core/Kachuwa.Web/SEO/Sitemap/VideoPurchaseOption.cs
210
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
36.046046
238
0.549922
[ "MIT" ]
vasokkumar/redstore
Source/PartnerCenter.CustomerPortal/Resources.Designer.cs
102,559
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using UnityEngine; using KSP; using KSPPluginFramework; namespace KerbalAlarmClock { public class KACAlarm:ConfigNodeStorage { public enum AlarmTypeEnum { Raw, ...
41.556291
175
0.5571
[ "MIT" ]
EwoutH/KerbalAlarmClock
KerbalAlarmClock/AlarmObjects.cs
31,377
C#
/* * Copyright © 2016-2021 EDDiscovery development team * * 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 a...
41.798298
243
0.4825
[ "Apache-2.0" ]
EDDiscovery/EliteDangerous
EliteDangerous/EDSM/EDSMClass.cs
47,942
C#
using NPOI.OpenXml4Net.Util; using System; using System.IO; using System.Xml; using System.Xml.Serialization; namespace NPOI.OpenXmlFormats.Dml { [Serializable] [XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)] [XmlType(Namespace = "http://schemas.openxmlformats.org/d...
20.612903
120
0.684403
[ "MIT" ]
iNeverSleeeeep/NPOI-For-Unity
NPOI.OpenXmlFormats.Dml/CT_PathShadeProperties.cs
1,917
C#
using System; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Linq; namespace Fairweather.Service { public class Command_Line_Parser { readonly bool allow_switches; readonly bool switch_parameters; readonly bool switch_grouping; re...
29.326531
99
0.460682
[ "MIT" ]
staafl/dotnet-bclext
to-integrate/libcs_staaflutil/Classes/Command-line parser/Command_Line_Parser.cs
2,876
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Reclaimed.API.Migrations { public partial class counseloradddateupdated : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<DateTimeOffset>( ...
55.839506
309
0.567544
[ "MIT" ]
CandeeGenerations/candee-camp
api/Migrations/20191205170734_counselor-add-date-updated.cs
4,525
C#
namespace Core.Blocks { using System; public class Block { // The top left starting point of the block private int x = 0; private int y = 0; private int[][] model; public Block(int x, int y, int[][] model) { this.X = x; this.Y = y; ...
23.942029
138
0.41586
[ "MIT" ]
Team-YoNi/Tetris-YoNi
Core/Blocks/Block.cs
1,654
C#
using System.Collections.Generic; using Umbraco.Core; using Umbraco.Core.Logging; using Umbraco.Core.Models.Editors; using Umbraco.Core.PropertyEditors; namespace Umbraco.Web.PropertyEditors { /// <summary> /// Represents a media picker property editor. /// </summary> [DataEditor( Constants.Pr...
32.576271
116
0.635276
[ "MIT" ]
AaronSadlerUK/Umbraco-CMS
src/Umbraco.Web/PropertyEditors/MediaPickerPropertyEditor.cs
1,924
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Xml; using System.Xml.XPath; namespace OfdbParser { public static class XPathHelper { public static List<string> GetXPathValue(XmlDocum...
27.866667
101
0.573565
[ "MIT" ]
Amoenus/MovieSearchEngine
OfdbParser/XPathHelper.cs
1,674
C#
using Mapsui.Layers; namespace Mapsui.Extensions { public static class FetchInfoExtensions { public static Viewport ToViewport(this FetchInfo fetchInfo) { return Viewport.Create(fetchInfo.Extent, fetchInfo.Resolution); } } }
21.153846
75
0.669091
[ "MIT" ]
rafntor/Mapsui
Mapsui/Extensions/FetchInfoExtensions.cs
277
C#
namespace SqlStreamStore { using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using Npgsql; using SqlStreamStore.PgSqlScriptsV1; using SqlStreamStore.Streams; partial class PostgresStreamStore { protected override asy...
43.021739
140
0.525518
[ "MIT" ]
ArneSchoonvliet/SQLStreamStore
src/SqlStreamStore.Postgres/PostgresStreamStore.Append.cs
3,960
C#
/* Copyright 2019-present MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
38.165644
204
0.545732
[ "Apache-2.0" ]
Anarh2404/mongo-csharp-driver
tests/MongoDB.Driver.Tests/Specifications/Runner/MongoClientJsonDrivenSessionsTestRunner.cs
6,223
C#
using Microsoft.AspNetCore.Mvc; namespace Rhendaria.Web.Extensions { public static class ControllerExtensions { public static string NameOf<TController>(this ControllerBase controller) where TController : ControllerBase { return typeof(TController).Name.Replace(nameof(Controller), ...
27.153846
115
0.705382
[ "MPL-2.0" ]
JustMeGaaRa/rhendaria
src/Rhendaria.Web/Extensions/ControllerExtensions.cs
355
C#
using System.Linq; using System.Text; using System.Globalization; namespace Delta.Icao { internal static class StringExtensions { /// <summary> /// Removes the diacritics from the input string. /// </summary> /// <remarks> /// For example, the following string: ...
37.391304
124
0.573837
[ "MIT" ]
odalet/CertXplorer
src/Delta.Icao/mrz/StringExtensions.cs
1,738
C#
using Unity.Collections; using Unity.Jobs; using UnityEngine; using Unity.Mathematics; using static MeshBuilder.Utils; using DataInstance = MeshBuilder.MeshCombinationBuilder.DataInstance; using PieceTransform = MeshBuilder.Tile.PieceTransform; namespace MeshBuilder { abstract public class TileMesherBase<TileVar...
40.195195
203
0.576018
[ "MIT" ]
hbence/MeshBuilder
builders/tile_mesher/TileMesherBase.cs
13,387
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace console_colors { class Program { static void Print(string[] left, string[] right, int rightAt) { if (left.Length != right.Length) throw new ...
36.76259
132
0.419569
[ "MIT" ]
Paulius-Maruska/dotnet-playground
console-colors/Program.cs
5,112
C#
using System; using System.ComponentModel; using System.Diagnostics; using System.IO; using NUnit.Framework; using ProtoBuf; using ProtoBuf.Meta; namespace Examples { interface IExtTest { string Bof { get; set; } string Eof { get; set; } } [ProtoContract] class In...
32.656757
112
0.517421
[ "Apache-2.0" ]
Anters/protobuf-net
Examples/Extensibility.cs
12,085
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...
26.45
104
0.592155
[ "Apache-2.0" ]
ooohtv/aws-sdk-net
sdk/src/Services/CloudWatchEvents/Generated/AmazonCloudWatchEventsConfig.cs
2,116
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
38.6875
153
0.609855
[ "MIT" ]
ScriptBox99/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/ediscovery/requests/ICaseTagsCollectionPage.cs
1,238
C#
using System; using System.Collections.Generic; namespace ReGoap.Core { public interface IReGoapAction<T, W> { // this should return current's action calculated parameter, will be added to the run method // userful for dynamic actions, for example a GoTo action can save some informations (want...
56.125
220
0.701559
[ "Apache-2.0" ]
Raptura/ReGoap
ReGoap/Core/IReGoapAction.cs
1,798
C#
namespace Lucene.Net.Tartarus.Snowball.Ext { /// <summary> /// This class was automatically generated by a Snowball to Java compiler /// It implements the stemming algorithm defined by a snowball script. /// </summary> public class HungarianStemmer : SnowballProgram { private readonly s...
34.03749
234
0.315319
[ "Apache-2.0" ]
BlueCurve-Team/lucenenet
src/Lucene.Net.Analysis.Common/Tartarus/Snowball/Ext/HungarianStemmer.cs
41,766
C#
namespace Plus.HabboHotel.Rooms.Chat.Commands.User { using System.Text; using Communication.Packets.Outgoing.Rooms.Engine; using GameClients; internal class RoomCommand : IChatCommand { public string PermissionRequired => "command_room"; public string Parameters => "push/pull/enab...
51.19774
130
0.458729
[ "Apache-2.0" ]
dotsudo/plus-clean
HabboHotel/Rooms/Chat/Commands/User/RoomCommand.cs
9,064
C#
namespace Server.Communication { public class NavigationStateUpdate { public string Phase { get; set; } public string StoryId { get; set; } } }
17.4
43
0.62069
[ "MIT" ]
LucaSalzani/PlanningPokR
Server/Server/Communication/NavigationStateUpdate.cs
176
C#
using System; using System.Threading.Tasks; using Microsoft.Owin.Security.OAuth; namespace mySPA.Providers { public class ApplicationOAuthProvider : OAuthAuthorizationServerProvider { private readonly string _publicClientId; public ApplicationOAuthProvider(string publicClientId) { if (publicClientId == nu...
23.292683
95
0.718325
[ "MIT" ]
LLouLiang/AngularjsWithWebApi
mySPA/Providers/ApplicationOAuthProvider.cs
957
C#
/* The Keys in this enum are exactly the ones in WinForm, since WPF WndProc still sends the same keys * as WinForm and I've not found a suitable way of converting them to their WPF equivalent. I've tried * using the KeyInterop class but it just makes it cumbersome. With the view of providing the same * functionali...
30.589491
111
0.469805
[ "MIT" ]
bondtech/HotKey-Manager-for-WinForm-and-WPF-Apps
BondTech.HotKeyManagement.WPF.4/Classes/Keys Enum.cs
18,631
C#
// Released under the MIT License. // // Copyright (c) 2018 Ntreev Soft co., Ltd. // Copyright (c) 2020 Jeesu Choi // // 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, i...
46.97561
141
0.733126
[ "MIT" ]
s2quake/JSSoft.Crema
share/JSSoft.Crema.Services/DomainMemberRemovedEventArgs.cs
1,928
C#
using System; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using MusicLibrary.Models; using MusicLibrary.Data; namespace MusicLibrary.Web { public class ApplicationUserManager : UserManager<User> { public ...
39.121212
152
0.623548
[ "MIT" ]
bbojkov/MushroomMusicLibrary
MusicLibrary.Web/App_Start/ApplicationUserManager.cs
2,584
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace Xamarin.FormsDemo_CHN.CustomCells { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class IncomingViewCell : ViewCell ...
21.05
53
0.712589
[ "MIT" ]
l2999019/Xamarin.FormsDemo_CHN
Xamarin.FormsDemo_CHN/Xamarin.FormsDemo_CHN/CustomCells/IncomingViewCell.xaml.cs
423
C#
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Windows.Storage.Streams; namespace MyPhone.OBEX { public class ObexPacket { public Opcode Opcode { get; set; } /// <summary> /// Will only be updated after calling ToBuffer() ...
33.619247
127
0.49944
[ "MIT" ]
mediaexplorer74/MyPhone
MyPhone.OBEX/ObexPacket.cs
8,037
C#
using Imagegram.Application.Requests; using Imagegram.Application.Responses; using Imagegram.Core.Domain; using Imagegram.Core.Exceptions; using Imagegram.Domain.Entities; using Imagegram.Domain.Repositories; using MediatR; using System.Threading; using System.Threading.Tasks; namespace Imagegram.Application.Handlers...
37.294118
174
0.701893
[ "MIT" ]
umutatmaca/imagegram
src/Application/Imagegram.Application/Handlers/CreateCommentCommandHandler.cs
1,904
C#
using System.Threading.Tasks; using System.Collections.Generic; namespace Philadelphia.Common { public delegate void Validate<in T>(T newValue, ISet<string> errors); public interface IReadWriteValue<ValueT> : IReadOnlyValue<ValueT> { event Validate<ValueT> Validate; void Reset(bool isUserChan...
37.214286
157
0.742802
[ "Apache-2.0" ]
todo-it/philadelphia
Philadelphia.Common/Mvp/IReadWriteValue.cs
521
C#
using System; using System.Threading.Tasks; using EventDrivenThinking.App.Configuration.EventStore; using EventDrivenThinking.EventInference.Abstractions; using EventDrivenThinking.EventInference.Abstractions.Write; using EventDrivenThinking.EventInference.EventHandlers; using EventDrivenThinking.EventInference.EventS...
37.565657
131
0.63189
[ "MIT" ]
eventmodeling/eventdriventhinking
EventDrivenThinking/Integrations/EventStore/ProcessorEventSubscriptionProvider.cs
3,721
C#
namespace ProcessControlStandards.OPC.TestTool.Commands { public interface ICommand : System.Windows.Input.ICommand { void RiseCanExecuteChanged(); } }
22.5
62
0.694444
[ "MIT" ]
voyachek/ProcessControlStandards.OPC
TestTool/Commands/ICommand.cs
182
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WamBot.Twitch.Api { public abstract class ChecksAttribute : Attribute { public abstract bool DoCheck(CommandContext ctx); } }
19.571429
57
0.744526
[ "MIT" ]
WamWooWam/WamBot.Twitch
WamBot.Twitch/Api/Attributes/ChecksAttribute.cs
276
C#
using System; using System.Collections.Generic; using System.Net.Http.Headers; using System.Text; using YaCloudKit.Core; namespace YaCloudKit.TTS.Utils { public class YandexTtsHeaderBuilder { public const string HEAD_AUTH = "Authorization"; public const string HEAD_AUTH_BEARER = "Bearer"; ...
39.125
107
0.646965
[ "MIT" ]
gkurbesov/YaCloudKit
src/YaCloudKit.TTS/Utils/YandexTtsHeaderBuilder.cs
1,972
C#
using System; using System.Xml.Serialization; namespace HoloXPLOR.Data.DataForge { [XmlRoot(ElementName = "BTLessThanEqualsOnEnter")] public partial class BTLessThanEqualsOnEnter : BTDecorator { [XmlArray(ElementName = "Lhs")] [XmlArrayItem(Type = typeof(BTInputAny))] [XmlArrayItem(...
39.151515
62
0.673375
[ "MIT" ]
dolkensp/HoloXPLOR
HoloXPLOR.Data/DataForge/AutoGen/BTLessThanEqualsOnEnter.cs
1,292
C#
using Godot; using System; using System.Collections.Generic; using System.Collections; using ai4u; namespace ai4u.ext { public class OrRewardFunc : RewardFunc { private const int NB_OF_ARGS = 2; [Export] public float alfa = 0.5f; [Export] public float successReward = 1.0f; [Export] publi...
18.181818
76
0.607
[ "MIT" ]
gilcoder/AI4U
serverside/godotversion/ai4u/ext/RL/src/OrRewardFunc.cs
2,000
C#
using System; using System.Collections.Generic; using System.Text; namespace Forum.Models { public class Category { public Category(int id, string name, IEnumerable<int> posts) { this.Id = id; this.Name = name; this.Posts = new List<int>(posts); } ...
19.913043
68
0.558952
[ "MIT" ]
Javorov1103/SoftUni-Course
C# OOP Basics/07. Workshop/Forum.Models/Category.cs
460
C#
// // Copyright 2016 Carbonfrost Systems, Inc. (http://carbonfrost.com) // // 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 r...
32.902174
123
0.625702
[ "Apache-2.0" ]
Carbonfrost/f-hxl
dotnet/src/Carbonfrost.Commons.Hxl/Compiler/HxlAssemblyCollection.Static.cs
3,027
C#
using System.IO; namespace Grappachu.Movideo.Core.Components.MediaAnalyzer { public interface IFileAnalyzer { AnalyzedItem Analyze(FileInfo file); } }
19.111111
57
0.72093
[ "MIT" ]
grappachu/apps.movideo
src/Movideo.Core/Components/MediaAnalyzer/IFileAnalyzer.cs
174
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PizzaCalories { public class Pizza { private string name; private Dough dough; private List<Topping> toppings; public Pizza(string name, Dough dough) { this.topp...
24.205479
98
0.513865
[ "MIT" ]
ITonev/SoftUni
C#-OOP/Encapsulation/Exercise/PizzaCalories/Pizza.cs
1,769
C#
// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. namespace SixLabors.ImageSharp.Formats.Bmp { /// <summary> /// Defines possible options, how skipped pixels during decoding of run length encoded bitmaps should be treated. /// </summary> public enum RleSki...
30.703704
132
0.622437
[ "Apache-2.0" ]
GyleIverson/ImageSharp
src/ImageSharp/Formats/Bmp/RleSkippedPixelHandling.cs
829
C#
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team // // 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, co...
32.47449
93
0.74077
[ "MIT" ]
TetradogOther/SharpDevelop
src/AddIns/DisplayBindings/XmlEditor/Test/Tree/PasteTestFixture.cs
12,732
C#
using Newtonsoft.Json; namespace CmsEngine.Application.ViewModels.DataTableViewModels { public class DataOrder { [JsonProperty(PropertyName = "column")] public int Column { get; set; } [JsonProperty(PropertyName = "dir")] public string Dir { get; set; } } }
21.714286
62
0.644737
[ "MIT" ]
davidsonsousa/CmsEngine
CmsEngine.Application/Models/ViewModels/DataTableViewModels/DataOrder.cs
304
C#
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; namespace Console.Formatter.Host.Middleware { public class IdentifiersMiddleware { private readonly RequestDelegate _next; public IdentifiersMiddleware(RequestDelegate next) { ...
26.441176
90
0.619577
[ "MIT" ]
acraven/blog-console-formatter
app/Console.Formatter.Host/Middleware/IdentifiersMiddleware.cs
899
C#
public class OutputMessages { public const string NoWeaponsForSoldierType = "There is no weapon for {0} {1}!"; public const string SoldierToString = "{0} - {1}"; public const string MissionDeclined = "Mission declined - {0}"; public const string MissionSuccessful = "Mission completed - {0}"; pu...
31.947368
84
0.70346
[ "MIT" ]
ViktorAleksandrov/SoftUni--CSharp-Fundamentals
3. CSharp OOP Advanced/09. Exam Preparations/1. Exam - 20 August 2017 - The Last Army/TheLastArmy/Constants/OutputMessages.cs
609
C#
namespace SFA.DAS.Commitments.Domain { public enum CallerType { Employer = 0, Provider } }
14.875
37
0.579832
[ "MIT" ]
Ryan-Fitchett/Test
src/SFA.DAS.Commitments.Domain/CallerType.cs
121
C#
namespace Stratis.Bitcoin.EventBus { /// <summary> /// A generic event that can be raised by any component of the full node. /// <para> /// This can later be extended or abstracted to provide more in-depth information /// on a particular event. /// </para> /// </summary> public sealed c...
28.1875
85
0.616408
[ "MIT" ]
Amazastrophic/StratisFullNode
src/Stratis.Bitcoin/EventBus/FullNodeEvent.cs
453
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using Android.Support.V4.View; using Android.Graphics; using Com.Viewpagerindicator; namespace Xamarin.And...
29.833333
99
0.749302
[ "Apache-2.0" ]
wada811/Xamarin.Android.ViewPagerIndicator
Xamarin.Android.ViewPagerIndicator/Xamarin.Android.ViewPagerIndicator.Sample/Circles/SampleCirclesStyledMethods.cs
1,432
C#
//--------------------------------------------------------------------- // <copyright file="IPackStreamContext.cs" company="Microsoft Corporation"> // Copyright (c) 1999, Microsoft Corporation. All rights reserved. // </copyright> // <summary> // Part of the Deployment Tools Foundation project. // </summary> ...
51.032258
92
0.608565
[ "MIT" ]
darkmastermindz/oneget
src/Microsoft.PackageManagement.ArchiverProviders/Compression/IPackStreamContext.cs
6,330
C#
using EmbeeEDModel.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EmbeePathFinder { public class StarPaths { private List<StarPath> _availablePaths; public StarPaths(IEnumerable<StarPath> availablePaths) ...
25.772727
87
0.519694
[ "MIT" ]
MattBayliss/EmbeeEDNavComm
EmbeePathFinder/StarPaths-Crivens.cs
1,703
C#
#pragma checksum "C:\Users\CihatSolak\Desktop\DERS\PROJE GELİŞTİREREK ASP.NET CORE MVC APİ ÖĞRENİN A-Z\BusinessTrackApplication\BusinessTrack.Web\Areas\Admin\Views\Exigency\Create.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "fcf4216f2aed51c9a08e6d8268fc822902d5546d" // <auto-generated/> #pragma warning disable 159...
69.367232
395
0.763154
[ "MIT" ]
cihatsolak/BusinessTrackApp
BusinessTrackApplication/BusinessTrack.Web/obj/Debug/netcoreapp3.1/Razor/Areas/Admin/Views/Exigency/Create.cshtml.g.cs
12,341
C#
using Microsoft.EntityFrameworkCore; using Paas.Pioneer.Admin.Core.Application.Contracts.Comment.Dto.Input; using Paas.Pioneer.Admin.Core.Application.Contracts.Comment.Dto.Output; using Paas.Pioneer.Admin.Core.Domain.Comment; using Paas.Pioneer.Admin.Core.EntityFrameworkCore.BaseExtensions; using Paas.Pioneer.Admin.Co...
35.607143
114
0.809428
[ "Apache-2.0" ]
xiaolei000129/Paas.Pioneer
modules/admin-core/src/Paas.Pioneer.Admin.Core.EntityFrameworkCore/Comment/EfCoreCommentRepository.cs
999
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace NuGet.Packaging.Licenses { public static class NuGetLicenseExpressionExtensions { /// <summary> /// Det...
43.21
170
0.562601
[ "Apache-2.0" ]
BdDsl/NuGet.Client
src/NuGet.Core/NuGet.Packaging/Licenses/NuGetLicenseExpressionExtensions.cs
4,321
C#
// © Anamnesis. // Licensed under the MIT license. namespace Anamnesis.Memory { using Anamnesis.PoseModule; using Anamnesis.Services; public class HkaPoseMemory : MemoryBase { [Bind(0x000, BindFlags.Pointer)] public HkaSkeletonMemory? Skeleton { get; set; } [Bind(0x010)] public TransformArrayMemory? Transfor...
28.923077
110
0.72695
[ "MIT" ]
Squall-Leonhart/Anamnesis
Anamnesis/Memory/HkaPoseMemory.cs
1,131
C#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Bogus; using QuickElastic.Core.Domain; namespace QuickElastic.Core.DataProviders { public class UserDataProvider : IDataProvider<User> { public UserDataProvider() { Randomizer.Seed = new Random(14);...
34.757576
98
0.571055
[ "MIT" ]
Cosmin-Parvulescu/QuickElastic
quickelastic/src/QuickElastic/QuickElastic.Core/DataProviders/UserDataProvider.cs
1,149
C#
using CC.ElectronicCommerce.Common.IOCOptions; using CC.ElectronicCommerce.Core; using CC.ElectronicCommerce.Interface; using CC.ElectronicCommerce.Model; using CC.ElectronicCommerce.Service; using Com.Ctrip.Framework.Apollo; using Com.Ctrip.Framework.Apollo.Core; using Com.Ctrip.Framework.Apollo.Enums; using Com.Ctri...
45.26506
117
0.602875
[ "Apache-2.0" ]
ccnetcore/ec
.NET5/CC.ElectronicCommerce.ElasticSearchProcessor/Program.cs
3,799
C#
namespace Organizr.Web { using System.Web.Mvc; using System.Web.Routing; public static class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Defa...
26.157895
101
0.557344
[ "MIT" ]
DareDev1l/Organizr
Source/Web/Organizr.Web/App_Start/RouteConfig.cs
499
C#
namespace CsBot { class Channel { public int Id { get; set; } public string Name { get; set; } public string Key { get; set; } } }
16.7
40
0.51497
[ "MIT" ]
trixtur/CsBot
src/CsBot/Channel.cs
167
C#
// ------------------------------------------------------------------------------ // <auto-generated> // Generated by Xsd2Code. Version 3.4.0.19522 Microsoft Reciprocal License (Ms-RL) // <NameSpace>BankId.Merchant.Library.Xml.Schemas.Saml.AuthContext</NameSpace><Collection>Array</Collection><codeType>CSharp</c...
39.384935
1,399
0.573689
[ "MIT" ]
Currence-Online/iDIN-libraries-dotnet
.NET/BankId.Merchant.Library/Xml/Schemas/saml-schema-authn-context-2.0.cs
199,209
C#
using FlightTrend.Core.FlightFinders; using FlightTrend.Core.Ioc; using FlightTrend.Core.Repositories; using FlightTrend.PegasusAirlines; using FlightTrend.Repositories.AzureBlobStorage; using FlightTrend.Serializers; using JetBrains.Annotations; using Microsoft.Extensions.Caching.Memory; using NodaTime; namespace Fl...
36.944444
97
0.679198
[ "MIT" ]
Eraclys/FlightTrend
src/FlightTrend.Register/Ioc.cs
1,997
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Energy : MonoBehaviour { public EnergyStats stats; // Use this for initialization void Start () { } void OnTriggerEnter2D(Collider2D col) { if (col.tag == "Player") { col.GetCo...
17.208333
57
0.619855
[ "MIT" ]
Panzershrekk/Ludum_Dare_42
LudumDare_42/Assets/Script/Map/Energy.cs
415
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Reflection; using Easy.Admin.Common; using Easy.Admin.Entities; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Mvc.Filters;...
34.34
111
0.570763
[ "MIT" ]
xxred/Easy.Admin
Easy.Admin/Filters/ApiAuthorizeFilterAttribute.cs
7,450
C#
using System; using System.Collections.Generic; using System.Diagnostics; namespace SDRSharp.Tetra { unsafe class LlcLevel { private const UInt32 Poly = 0xedb88320; private const UInt32 GoodFCS = 0xdebb20e3; private MleLevel _mle = new MleLevel(); public void Parse(LogicChann...
29.666667
89
0.460986
[ "MIT" ]
vgpastor/SDR-Tetra-Plugin
Parsers/LlcLevel.cs
3,206
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 Apache License // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor ...
26.670455
192
0.631615
[ "MIT" ]
MaiklT/Dnn.Platform
DNN Platform/DotNetNuke.Log4net/log4net/Util/PatternParser.cs
11,737
C#
#region License // PermissionItem.cs // // Copyright (c) 2012 Xoqal.com // // 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 re...
34.689189
144
0.624854
[ "Apache-2.0" ]
AmirKarimi/Xoqal
Source/Xoqal.Security/PermissionItem.cs
2,567
C#
using System; using System.Collections.Generic; using Microsoft.TemplateEngine.Abstractions; using Microsoft.TemplateEngine.Core; using Microsoft.TemplateEngine.Core.Contracts; using Microsoft.TemplateEngine.Orchestrator.RunnableProjects.Macros; using Microsoft.TemplateEngine.Orchestrator.RunnableProjects.Macros....
51.236111
157
0.703714
[ "MIT" ]
KevinRansom/templating
test/Microsoft.TemplateEngine.Orchestrator.RunnableProjects.UnitTests/MacroTests/GuidMacroTests.cs
3,618
C#
namespace Basket.API.Entities { public class ShoppingCartItem { public int Quantity { get; set; } public string Color { get; set; } = null!; public decimal Price { get; set; } public string ProductId { get; set; } = null!; public string ProductName { get; set; } = null!;...
27.416667
56
0.580547
[ "MIT" ]
newmancroos/AspnetMicroservices
src/Services/Basket/Basket.API/Entities/ShoppingCartItem.cs
331
C#
namespace InsanityBot.Commands.Moderation.Locking; using System; using System.Collections.Generic; public struct ChannelData { public List<UInt64> WhitelistedRoles { get; set; } public List<UInt64> LockedRoles { get; set; } public static ChannelData CreateNew() => new() { WhitelistedRoles = new List<UInt64>(),...
24.066667
51
0.739612
[ "MIT" ]
InsanityBot/InsanityBot
InsanityBot/Commands/Moderation/Locking/ChannelData.cs
363
C#
using System; using System.Collections.Generic; using System.IO; using System.Xml; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace WordClustering { [TestClass] public class WordClusteringUnitTest { [TestMethod] public void TestClustering() { List<string> w...
32.507463
149
0.470156
[ "MIT" ]
cschen1205/cs-nlp-word-clustering
cs-nlp-word-clustering-unit/WordClusteringUnitTest.cs
2,180
C#
#if WITH_EDITOR #if PLATFORM_64BITS using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace UnrealEngine { public partial class UMaterialExpressionFunctionInput { static readonly int Preview__Offset; /// <summary>Used for previewing when editing the function, or when b...
40.391304
151
0.763402
[ "MIT" ]
RobertAcksel/UnrealCS
Engine/Plugins/UnrealCS/UECSharpDomain/UnrealEngine/GeneratedScriptFile_Editor_64bits/UMaterialExpressionFunctionInput_FixSize.cs
4,645
C#
 #region License, Terms and Conditions // // PaymentProfileAttributes.cs // // Authors: Kori Francis <twitter.com/djbyter>, David Ball // Copyright (C) 2010 Clinical Support Systems, Inc. All rights reserved. // // THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: // // Permission is hereby...
39.947368
188
0.631094
[ "MIT" ]
Brushfire/chargify-dot-net
Source/Chargify.NET/PaymentProfileAttributes.cs
9,110
C#
using System; namespace nyom.domain.core.MongoDb.Repository.Interface { public interface IEntity { Guid Id { get; set; } } }
14.555556
55
0.717557
[ "MIT" ]
hdrezei/dotnetcore-rabbitmq
nyom/nyom.domain.core/MongoDb/Repository/Interface/IEntity.cs
133
C#
using UnityEngine; namespace ScriptableObjectArchitecture { [CreateAssetMenu(menuName = "SO Architecture/Variable/Constant/Vector2")] public class ConstVector2 : ConstVariable<Vector2> { } }
25.125
77
0.776119
[ "MIT" ]
mfragger/ScriptableObjectArchitecture
Runtime/ConstantCommonTypes/ConstVector2.cs
203
C#
using UnityEngine; using System.Collections; using TMPro; public class EnvMapAnimator : MonoBehaviour { //private Vector3 TranslationSpeeds; public Vector3 RotationSpeeds; private TMP_Text m_textMeshPro; private Material m_material; void Awake() { //Debug.Log("Awak...
32.166667
264
0.642487
[ "Apache-2.0" ]
0ReC0/ArFoundationTestProject
Assets/TextMesh Pro/Examples & Extras/Scripts/EnvMapAnimator.cs
1,160
C#
using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Net.Http; using System.Net.Http.Json; using System.Threading.Tasks; using BlazorApp.Extensions; using BlazorApp.ViewModels.DepartmentsViewModels; using Microsoft.AspNetCore.Mvc.Rendering; using TanvirArjel.Extensions.Microsoft.Depend...
39.902778
147
0.717021
[ "MIT" ]
nagurshaik-git/CleanArchitecture
src/ClientApps/BlazorApp/Services/DepartmentService.cs
2,875
C#
// Copyright 2019 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...
38.777778
89
0.718625
[ "Apache-2.0" ]
LaudateCorpus1/gapic-generator-csharp
Google.Api.Generator.Tests/ProtoTests/Deprecated/Testing.Deprecated.GeneratedSnippets/DeprecatedClient.DeprecatedMessageMethodRequestObjectSnippet.g.cs
1,747
C#
using System ; using System.Diagnostics.CodeAnalysis ; using System.Reactive.Subjects ; using Windows.Devices.Bluetooth ; using Autofac.Extras.DynamicProxy ; using Idasen.Aop.Aspects ; using Idasen.BluetoothLE.Core.Interfaces.ServicesDiscovery ; using Idasen.BluetoothLE.Core.Interfaces.ServicesDiscovery.Wrappers ; usi...
54.106667
114
0.579842
[ "MIT" ]
7orlum/idasen-desk
src/Idasen.BluetoothLE.Core/ServicesDiscovery/Wrappers/BluetoothLeDeviceWrapperFactory.cs
4,060
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KeplerBI.DB.Repositories { public class CelesticalBodySystemsCo : KeplerBI.Repositories.ICelesticslBodySystemsCo { KeplerDBContext _ctx; public CelesticalBodySystemsCo(...
28.678571
102
0.688667
[ "MIT" ]
mk-prg-net/KeplerDB
KeplerBI.DB/Repositories/CelesticalBodySystemsCo.cs
805
C#
// Copyright 2021-2022 The SeedV Lab. // // 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 agree...
29.387755
99
0.674306
[ "Apache-2.0" ]
SeedV/SeedAvatarStudio
Assets/Src/Scripts/SeedAvatar/UI/FpsViewport.cs
1,440
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 0.16.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. ...
37.106667
452
0.633848
[ "MIT" ]
216Giorgiy/azure-sdk-for-net
src/SDKs/DevTestLabs/Management.DevTestLabs/Generated/Models/User.cs
2,783
C#
using System; namespace Shopping.Domain.Events { public class ItemRemovedFromShoppingCart : IDomainEvent { public const string EventName = "ItemRemovedFromShoppingCart"; public ItemRemovedFromShoppingCart(Guid id, Guid cartId) { Id = id; CartId = cartId; ...
22.222222
70
0.605
[ "MIT" ]
JohnCgp/domain-blocks
src/Examples/Shopping.Events/ItemRemovedFromShoppingCart.cs
402
C#
/* * Copyright (C) Sportradar AG. See LICENSE for full license governing this code */ using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Linq; using Sportradar.OddsFeed.SDK.Messages.Internal.REST; namespace Sportradar.OddsFeed.SDK.Entities.REST.Internal.DTO { /// <summary> /// ...
29.111111
86
0.594656
[ "Apache-2.0" ]
Furti87/UnifiedOddsSdkNet
src/Sportradar.OddsFeed.SDK.Entities.REST/Internal/DTO/TournamentSeasonsDTO.cs
1,312
C#
namespace SPNATI_Character_Editor.Controls.EditControls.VariableControls { partial class CategoryControl { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> //...
34.241379
101
0.729439
[ "MIT" ]
laytonc32/spnati
editor source/SPNATI Character Editor/Controls/EditControls/VariableControls/CategoryControl.Designer.cs
2,981
C#
using AuthServer.Core.Provider; using AuthServer.Core.Request; using AuthServer.Core.Response; namespace AuthServer.Core.Handler { public class StatusRequestHandler : IRequestHandler { private IUserProvider userProvider; public StatusRequestHandler(IUserProvider userProvider) { ...
25.534483
94
0.542201
[ "MIT" ]
SchulIT/adauth-server
AuthServer.Core/Handler/StatusRequestHandler.cs
1,483
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Pri...
30.806818
106
0.543342
[ "Apache-2.0" ]
w326004741/MobileApps-3-Labs
Lab2-INotifyProperyChanged/Lab2-INotifyProperyChanged/MainPage.xaml.cs
2,735
C#