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.Threading.Tasks; using AspnetRunBasics.Models; using AspnetRunBasics.Services; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace AspnetRunBasics { public class ProductDetailModel : PageModel { private readonly ICatalogService _catalogServic...
28.78125
95
0.580347
[ "MIT" ]
elequipoderiki/AspNetMicroservices
src/WebApps/AspnetRunBasics/Pages/ProductDetail.cshtml.cs
1,844
C#
using System; using System.Collections.Generic; using System.Text; namespace Sitefinity_CLI.Model { /// <summary> /// Represents a file model /// </summary> internal class FileModel { /// <summary> /// The target absolute file path /// </summary> public string FileP...
21.086957
48
0.56701
[ "Apache-2.0" ]
DarrinRobertson/Sitefinity-CLI
Sitefinity CLI/Model/FileModel.cs
487
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("6.R...
37.675676
84
0.746772
[ "MIT" ]
rdineva/Programming-Fundamentals
RegEx-Lab/6.ReplaceATag/Properties/AssemblyInfo.cs
1,397
C#
namespace DroneDefender.Common { public interface INullResultDictionarywhere<TKey, TValue> where TKey : class { TValue this[TKey key] { get; } } }
25.666667
59
0.733766
[ "MIT" ]
tomhsmith/DroneIsTheLoneliestNumber
Assets/Scripts/Common/INullResultDictionary.cs
156
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; using System.Net; using System.Net.WebSockets; using System.Net.Sockets; using System.IO; us...
33.736434
108
0.357077
[ "MIT" ]
idan22moral/SimpleScreen
Receiver/Form1.cs
4,354
C#
using System; using System.IO; using System.Text; using System.Collections; using System.Windows.Forms; using System.Diagnostics; class Script { const string usage = "Usage: cscscript sample [sampleIndex]:[sampleName] [outputFile]\n\tCreates copy of a sample file.\n\n"+ "Example: cscscript sample MailTo \n...
26.83
127
0.597838
[ "MIT" ]
Diullei/Storm
Libs/cs-script/Lib/sample.cs
5,366
C#
namespace CavemanTools.Data { public enum JsonStatus { Ok, Error, Redirect } }
12.666667
27
0.526316
[ "Apache-2.0" ]
sapiens/cavemantools
src/CavemanTools/Data/JsonStatus.cs
114
C#
using System; using System.IO; 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 LogApp { public partial class LogForm : Form { ...
37.419643
154
0.48628
[ "MIT" ]
JontCont/writeLogVersion
LogApp/LogApp/Form1.cs
4,297
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
32.342105
153
0.571196
[ "MIT" ]
Aliases/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/model/WindowsUpdateInstallScheduleType.cs
1,229
C#
using System.ComponentModel.DataAnnotations; namespace Kiwi_review.Models.UpdateDto { public class MovieUpdateModel { [Required] public int MovieId { get; set; } [MaxLength(200)] public string? MovieDescription { get; set; } public bool OnlyHighlightOnce { get; set; } } }
28.181818
70
0.680645
[ "MIT" ]
LANNDS18/Kiwi_Review
Models/UpdateDto/MovieUpdateModel.cs
312
C#
namespace CoolMvcTemplate.Data.Configurations { using CoolMvcTemplate.Data.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; public class AppUserConfiguration : IEntityTypeConfiguration<AppUser> { public void Configure(EntityTypeBuilder<Ap...
28.857143
73
0.529703
[ "MIT" ]
georgy-kirilov/CoolMvcTemplate
src/Data/CoolMvcTemplate.Data/Configurations/AppUserConfiguration.cs
1,012
C#
using System; using DataLinq; using DataLinq.Interfaces; using DataLinq.Attributes; namespace DataLinq.MySql.Models { [Name("INNODB_CMP_RESET")] public interface INNODB_CMP_RESET : IViewModel { [Type("int")] int compress_ops { get; } [Type("int")] int compress_ops_ok { get;...
18.733333
50
0.560498
[ "MIT" ]
bazer/DataLinq
src/DataLinq.MySql/Models/information_schema/Views/INNODB_CMP_RESET.cs
562
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entities.Models { public class Employee { [Column("EmployeeId")] public...
30.8125
91
0.661258
[ "MIT" ]
Mohammad-Nour-Rezek/CompanyEmployeesComponent
backend/Entities/Models/Employee.cs
988
C#
namespace LottoLion.BaseLib.Models.Entity { public partial class TbLionSelect { public int SequenceNo { get; set; } public int SelectNo { get; set; } public short Digit1 { get; set; } public s...
14.628571
42
0.361328
[ "MIT" ]
lisa3907/lotto.lion
src/proxy/lion.baselib/Models/entities/TbLionSelect.cs
1,026
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EncompassREST.Data { public class Tax4506 { public bool? tax4506TIndicator { get; set; } public bool? historyIndicator { get; set; } public string person { get;...
42.797297
68
0.615409
[ "MIT" ]
sgandewar/EncompassAPI
Data/Tax4506.cs
3,167
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using TranscendenceChat.ServerClient.Entities; namespace TranscendenceChat.ServerClient.Interfaces { public interface IUserManager { Task<User> GetUserViaEmail(int id); ...
25.681818
81
0.714159
[ "MIT" ]
tamifist/Transcendence
TranscendenceChat.ServerClient/Interfaces/IUserManager.cs
1,132
C#
/* Copyright © Bryan Apellanes 2015 */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Bam.Net.Data.Repositories { [Serializable] public class MetaId { public ulong Value { get; set; } } }
15.388889
35
0.736462
[ "MIT" ]
BryanApellanes/bam.net.shared
Data/Repositories/MetaId.cs
278
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace Serial_port_read_tests { static class Program { /// <summary> /// Point d'entrée principal de l'application. /// </summary> [STATh...
23.73913
66
0.59707
[ "MIT" ]
Thynkon/projet-heartBeat
Tests/Serial port/Program.cs
549
C#
using System; using System.Collections.Generic; using System.Text; namespace MarvinEde.CoreExtensions { /// <summary> /// Static class to hold all extensions for <see cref="System.Object"/>, so they can be called from anywhere with "this." /// </summary> public static class Object { /// <s...
33.85
214
0.559823
[ "MIT" ]
AKnopf/MarvinEde.CoreExtensions
CoreExtensions/Object.cs
1,356
C#
using System; using System.Collections.Generic; namespace SensateIoT.Platform.Router.Contracts.DTO { public class GenericResponse<TValue> { public Guid Id { get; } public TValue Data { get; set; } public IEnumerable<string> Errors { get; set; } public GenericResponse() { this.Id = Guid.NewGuid(); } ...
18.055556
50
0.698462
[ "Apache-2.0" ]
sensate-iot/SensateService
SensateIoT.Platform.Router.Contracts/DTO/GenericResponse.cs
327
C#
using System; namespace Hanoi { public static class StreamElements { /// <summary> /// XMPP Stream XML root node name /// </summary> internal static readonly string XmppStreamName = "stream:stream"; /// <summary> /// XMPP Stream XML open node tag ///...
29.148148
98
0.578145
[ "BSD-3-Clause" ]
MustafaUzumcuCom/Hanoi
source/Hanoi/StreamElements.cs
787
C#
using FluentMigrator; namespace Bd.Icm.Migrations.Scripts { [Migration(201603110005)] public class CreateTableInstrument : Migration { public override void Up() { Create.Table("Instrument") .WithColumn("Id").AsInt32().NotNullable().PrimaryKey() ....
36.685714
101
0.596573
[ "MIT" ]
aliostad/deep-learning-lang-detection
data/train/csharp/491e4aaab67881b22cc8651167dbad7384f58095CreateTableInstrument.cs
1,286
C#
using System; using System.Collections.Generic; using System.Linq; namespace Prism.Modularity { /// <summary> /// The <see cref="ModuleCatalog"/> holds information about the modules that can be used by the /// application. Each module is described in a <see cref="ModuleInfo"/> class, that records the ...
37.772727
135
0.596069
[ "MIT" ]
dansiegel/Prism
Source/Xamarin/Prism.Forms/Modularity/ModuleCatalog.cs
2,495
C#
 using UnityEngine; using System.Collections; //this is an example of how to build a senario, later ideally we will have some editor tools that makes instances of this in an easier to use visual format public class PracticeSenario : MonoBehaviour { public int width, depth; float offset = 1f; ...
28.833333
156
0.691164
[ "MIT" ]
vaccaris/NonStopWorkShop
Scripts/SandBox/PracticeSenario.cs
1,213
C#
// Copyright (c) The Avalonia Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; using Avalonia.LogicalTree; namespace Avalonia.Controls { /// <summary> /// Ex...
35.320988
104
0.564138
[ "MIT" ]
Karlyshev/Avalonia
src/Avalonia.Styling/Controls/NameScopeExtensions.cs
2,861
C#
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from shared/mmreg.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using Sys...
38.657143
145
0.727273
[ "MIT" ]
reflectronic/terrafx.interop.windows
tests/Interop/Windows/Windows/shared/mmreg/CONTRESCR10WAVEFORMATTests.cs
1,355
C#
using PhramacyLibrary.Model; using PharmacyLibrary.IRepository; using PharmacyLibrary.Model; using PharmacyLibrary.Repository; using System; using System.Collections.Generic; using System.Text; namespace PharmacyLibrary.Services { public class HospitalService { private readonly IHospitalRepository hos...
25.340909
65
0.61435
[ "MIT" ]
magdalenaRA822018/slack
PharmacyLibrary/Services/HospitalService.cs
1,117
C#
using System; class URI { static void Main(string[] args) { var line = Console.ReadLine(); var data = line.Split(' '); var x = double.Parse(data[0]); var y = double.Parse(data[1]); if (x == 0 && y == 0) { Console.Wri...
22.266667
45
0.312375
[ "Unlicense" ]
Reilly27/Tasks
URI/BEGINNER/25.cs
1,002
C#
namespace Blobs.IO { using System; using Interfaces; public class ConsoleOutputWriter : IOutputWriter { public void Write(string output) { Console.WriteLine(output); } } }
16.428571
52
0.582609
[ "MIT" ]
Supbads/Softuni-Education
03. HighQualityCode 12.15/Homework/04. Code-Documentation-and-Comments-Homework/Interfaces Documentation/OOP_Exam_Blobs/Blobs/IO/ConsoleOutputWriter.cs
232
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: AssemblyTi...
38.675676
85
0.726066
[ "MIT" ]
aamay001/EasyWMI
EasyWMI/EasyWMIDemo/Properties/AssemblyInfo.cs
1,434
C#
using System; using PF; using UnityEngine; namespace ET { [ActorMessageHandler] public class G2M_CreateUnitHandler : AMActorRpcHandler<Scene, G2M_CreateUnit, M2G_CreateUnit> { protected override async ETTask Run(Scene scene, G2M_CreateUnit request, M2G_CreateUnit response, Action reply) { Unit unit = Entit...
28.166667
113
0.715131
[ "MIT" ]
Ecstasyzzz/ET
Server/Hotfix/Demo/G2M_CreateUnitHandler.cs
1,195
C#
using System.Collections.Generic; using ESRI.ArcGIS.esriSystem; using ESRI.ArcGIS.Geometry; using ProSuite.QA.Container; using ProSuite.QA.Container.Geometry; using ProSuite.Commons.AO.Geometry; using ProSuite.Commons.Essentials.Assertions; using ProSuite.Commons.Essentials.CodeAnnotations; namespace ProSuite.QA.Tests...
27.358289
84
0.71638
[ "MIT" ]
ProSuite/ProSuite
src/ProSuite.QA.Tests/EdgeMatch/EdgeMatchBorderConnectionUnion.cs
5,116
C#
namespace Factory.Models { public class EngineerMachine { public int EngineerMachineId { get; set; } public int EngineerId { get; set; } public int MachineId { get; set; } public virtual Engineer Engineer { get; set; } public virtual Machine Machine { get; set; } } }
24.5
50
0.670068
[ "MIT" ]
wowgr8/Factory.Solution
Factory/Models/EngineerMachine.cs
294
C#
using Microsoft.EntityFrameworkCore; namespace Password.Desktop.Win.Data.Migration { public static class ModelBuilderExtensions { public static void UseMigrationsHistory(this ModelBuilder builder) { builder.ApplyConfiguration(new MigrationsHistoryConfiguration()); } } }
26.666667
77
0.715625
[ "MIT" ]
b-a-x/Password
src/Password.Desktop.Win/Data/Migration/ModelBuilderExtensions.cs
322
C#
using BEDA.CMB.Contracts.Responses; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace BEDA.CMB.Contracts.Requests { /// <summary> /// 12.5.4.汇入汇款综合查询请求主体 /// </summary> ...
26.344086
129
0.47551
[ "MIT" ]
fdstar/BankEnterpriseDirectAttach
src/BEDA.CMB/Contracts/Requests/12/RQ12_5_4.cs
2,594
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.5485 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
34.354839
150
0.581221
[ "MIT" ]
bg1bgst333/Sample
wpf/Application/Exit/src/Application_/Application_/Properties/Settings.Designer.cs
1,067
C#
using System; using McMaster.Extensions.CommandLineUtils; using System.Collections.Generic; using System.IO; using System.Net; using System.Reflection; using McMaster.Extensions.CommandLineUtils.Abstractions; using McMaster.Extensions.CommandLineUtils.HelpText; namespace ServiceBusCopyValidation { using System.G...
35.2375
116
0.619369
[ "MIT" ]
Azure-Samples/azure-messaging-replication-dotnet
test/ServiceBusCopyValidation/Program.cs
2,821
C#
using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PublicTransport.Infrastructure.Migrations { public partial class AddIsDeletedAndImgUrlToNews : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( ...
33.169118
71
0.50798
[ "MIT" ]
HNochev/PublicTransport
PublicTransport.Infrastructure/Migrations/20220324212058_AddIsDeletedAndImgUrlToNews.cs
9,024
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. using MyDriving.DataObjects; using MyDriving.DataStore.Abstractions; using System.Threading.Tasks; using System.Collections.Generic; namespace MyDriving.DataStore.Azure.St...
28.233333
84
0.661157
[ "MIT" ]
HydAu/MyDriving
src/MobileApps/MyDriving/MyDriving.DataStore.Azure/Stores/PhotoStore.cs
849
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Principal; using System.Web; using System.Web.Mvc; using Moq; using Xunit; namespace NuGetGallery { public class CuratedFeedsControllerFacts { public class TestableCuratedFeedsController : CuratedFeedsController ...
41.57265
149
0.498458
[ "ECL-2.0", "Apache-2.0" ]
KuduApps/NuGetGallery
tests/NuGetGallery.Facts/Controllers/CuratedFeedsControllerFacts.cs
9,730
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace StreamJsonRpc { using System; using System.Buffers; using System.Collections.Generic; using System.Diagnostics; using System....
39.558442
200
0.570725
[ "MIT" ]
tinaschrepfer/vs-streamjsonrpc
src/StreamJsonRpc/JsonMessageFormatter.cs
21,324
C#
#region License // Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk) // // 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...
34.72973
92
0.71284
[ "Apache-2.0" ]
xareas/FluentValidation
src/FluentValidation.Tests.Mvc4/ValidationResultExtensionTests.cs
2,570
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Reflection; using System.Resources; [assembly: AssemblyTitle("Microsoft Azure DataBox Edge Gateway Management Library")] [assembly: AssemblyDescript...
43.210526
131
0.785627
[ "MIT" ]
93mishra/azure-sdk-for-net
sdk/databoxedge/Microsoft.Azure.Management.DataBoxEdge/src/Properties/AssemblyInfo.cs
821
C#
/* The MIT License (MIT) Copyright (c) 2014-2016 Marc de Verdelhan & respective authors (see AUTHORS) 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 limit...
35.227273
80
0.769032
[ "MIT" ]
chrisw000/TA4N
TA4N/Indicators/Simple/MaxPriceIndicator.cs
1,552
C#
/****************************************************************************** * Copyright (C) Ultraleap, Inc. 2011-2020. * * * * Use subject to the terms of the Apache License 2.0 available at * ...
38.896552
122
0.576832
[ "MIT" ]
EricoVeriscimo/jogo_bolinha
Assets/Plugins/LeapMotion/Core/Editor/TransformTweenBehaviourEditor.cs
3,384
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObjectMenuManager : MonoBehaviour { public List<GameObject> objectList; //handled automatically at start public List<GameObject> objectPrefabList; // set manually in inspector and MUST match order of scene's menu objects pu...
30.372881
116
0.736607
[ "MIT" ]
kevenson/KE_RubeGoldberg
Assets/Scripts/ObjectMenuManager.cs
1,794
C#
using Microsoft.AspNetCore.Http; using System.ComponentModel.DataAnnotations; namespace Sunioj.Core.Resources.Settings { public class ImageSettingForUpdateDTO { [Required] public string Name { get; set; } [Required] public IFormFile Image { get; set; } } }
20.266667
44
0.667763
[ "MIT" ]
brugner/sunioj
Sunioj/Core/Resources/Settings/ImageSettingForUpdateDTO.cs
306
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Diagnostics.Contracts; using System.Linq; using System.Linq.Expressions; using System.Security.Principal; using Revenj.Extensibility; namespace Revenj.Security { internal class PermissionManager : IPermissionManager, ...
30.098901
108
0.669222
[ "BSD-3-Clause" ]
hperadin/revenj
csharp/Core/Revenj.Security/PermissionManager.cs
5,480
C#
using System; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using Microsoft.Owin.Security.Cookies; using Microsoft.Owin.Security.Google; using Owin; using _safe_project_name_.Models; namespace _safe_project_name_ { public partial class Startup { // For mo...
51.058824
160
0.660138
[ "Apache-2.0" ]
GoogleCloudPlatform/google-cloud-visualstudio
GoogleCloudExtension/ProjectTemplates/GcpProjectTemplate/Framework/MVC/App_Start/Startup.Auth.cs
3,474
C#
using StepsInSpace.Core.Abstractions.Math; using StepsInSpace.Core.Abstractions.Math.Extensions; using StepsInSpace.Core.Abstractions.Physics; namespace StepsInSpace.Core.Physics; public class Movable : IMovable { private Vector3d _position = Vector3d.Zero; public Vector3d Position => _position; priv...
33.439024
96
0.709701
[ "MIT" ]
SteffenRossberg/StepsInSpace
src/StepsInSpace.Core/Physics/Movable.cs
1,371
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; namespace CodeWars { /// <see cref="https://www.codewars.com/kata/52774a314c2333f0a7000688/train/csharp"/> [TestClass] public class VaildParentheses { [TestMethod] public void Test() ...
29.113208
89
0.511342
[ "MIT" ]
Hyolog/CodeWars
CodeWars/CodeWars/VaildParentheses.cs
1,543
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...
28.980952
176
0.568518
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/SecurityInsights/V20200101/GetAction.cs
3,043
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...
44.627737
153
0.598626
[ "MIT" ]
hchungmsft/azure-powershell
src/ResourceManager/Insights/Commands.Insights.Test/Autoscale/GetAzureRmAutoscaleSettingTests.cs
5,980
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...
34.78125
110
0.681941
[ "ECL-2.0", "Apache-2.0" ]
ScriptBox99/pulumi-azure
sdk/dotnet/EventHub/Inputs/EventSubscriptionStorageBlobDeadLetterDestinationArgs.cs
1,113
C#
using System.ComponentModel.DataAnnotations.Schema; namespace Caasiope.Explorer.Database.SQL.Entities { public class hashlock { [DatabaseGe‌​nerated(DatabaseGen‌​eratedOption.None)] public long declaration_id { get; set; } public byte[] account { get; set; } public short secret...
28.285714
61
0.659091
[ "MIT" ]
caasiope/caasiope-blockchain
Caasiope.Explorer.Database.SQL/Entities/hashlock.cs
406
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Razor; using Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudio.Test; u...
32.264368
111
0.587104
[ "Apache-2.0" ]
JalilAzzad1993/ASPNET
src/Razor/test/Microsoft.VisualStudio.Editor.Razor.Test/Documents/EditorDocumentTest.cs
2,809
C#
using BWModLoader; namespace FlagReplacement { internal static class Log { static readonly public ModLogger logger = new ModLogger("[FlagReplacement]", ModLoader.LogPath + "\\FlagReplacement.txt"); } }
22.4
130
0.705357
[ "MIT" ]
Modwake/customFlags
FlagReplacement/Log.cs
226
C#
namespace FastHashesNet.MurmurHash { internal static class MurmurHashConstants { internal const uint C1_32 = 0xcc9e2d51; internal const uint C2_32 = 0x1b873593; internal const ulong C1_64 = 0x87c37b91114253d5UL; internal const ulong C2_64 = 0x4cf5ad432745937fUL; } }
26.083333
58
0.702875
[ "MIT" ]
Genbox/FastHashesNet
src/FastHashesNet/MurmurHash/MurmurHashConstants.cs
315
C#
using System.Collections; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Reflection; using IngeniuxApiDemos.Target.IngeniuxCms.Model.Attributes; using IngeniuxApiDemos.Common.Extensions; namespace IngeniuxApiDemos.Target.IngeniuxCms.Model.Validation { ...
38.338843
184
0.564992
[ "MIT" ]
gwendolyngoetz/IngeniuxApiDemos
IngeniuxApiDemos/Target/IngeniuxCms/Model/Validation/BaseObjectValidator.cs
4,641
C#
// Copyright 2015 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
43.704266
180
0.509306
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
IBM/openrpa
WindowsAccessBridgeInterop/AccessibleContextNode.cs
60,445
C#
using System.Collections.Generic; using System.Threading.Tasks; using DotNet.Sdk.Extensions.Testing.Configuration; using DotNet.Sdk.Extensions.Tests.Options.ValidateEagerly.Auxiliary; using DotNet.Sdk.Extensions.Tests.Options.ValidateEagerly.Auxiliary.DataAnnotations; using Microsoft.AspNetCore.Hosting; using Microsoft...
42.473684
177
0.609665
[ "MIT" ]
edumserranotest/dot-net-sdk-extensions
tests/DotNet.Sdk.Extensions.Tests/Options/ValidateEagerly/OptionsValidateEagerlyWithValidateDataAnnotationsTests.cs
3,228
C#
using System; using System.IO; using System.Threading.Tasks; using CorePhoto.Colors.PackedPixel; using CorePhoto.IO; using ImageSharp; namespace CorePhoto.Tiff { public static class TiffImageReader { public async static Task<Action<byte[], PixelAccessor<Rgb888>, Rectangle>> GetImageDecoderAsync(TiffIfd...
41.692982
161
0.540501
[ "Apache-2.0" ]
Andy-Wilkinson/CorePhoto
src/CorePhoto/Tiff/TiffImageReader.cs
4,753
C#
//----------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Debugger { using System; using System.Activities.Expressions; ...
41.974533
172
0.556365
[ "Apache-2.0" ]
295007712/295007712.github.io
sourceCode/dotNet4.6/ndp/cdf/src/NetFx40/System.Activities/System/Activities/Debugger/DebugManager.cs
24,723
C#
using System; using System.Collections; using System.Collections.Generic; using Microsoft.Maui.Graphics; using Microsoft.Maui.Layouts; // This is a temporary namespace until we rename everything and move the legacy layouts namespace Microsoft.Maui.Controls.Layout2 { [ContentProperty(nameof(Children))] public abstrac...
25.735849
93
0.747434
[ "MIT" ]
IgorPRZ/maui
src/Controls/src/Core/Layout/Layout.cs
2,728
C#
using System; using System.Collections.Generic; using System.Linq; namespace ConnectedGraph { internal class Program { private static bool[] visited; private static List<int>[] graph; static void Main(string[] args) { graph = ReadGraph(); CheckIfConnect...
23.796875
70
0.428102
[ "MIT" ]
wuweisage/Softuni-Svetlina-Projects-and-Code
C#/DataStructuresAndAlgorithms/Graphs/Graphs-Exercise/ConnectedGraph/Program.cs
1,525
C#
// <auto-generated> using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace KyGunCo.Counterpoint.Sdk.Entities { // USER_ITEM_IMPORT public class UserItemImport { public int ItemNo { get; set; } // ITEM_NO (Primary key) public string D...
57.036585
86
0.619414
[ "MIT" ]
kygunco/KyGunCo.Counterpoint
Source/KyGunCo.Counterpoint.Sdk/Entities/UserItemImport.cs
4,677
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
46.176471
279
0.645096
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/model/CredentialUserRegistrationDetails.cs
3,925
C#
// Copyright (c) SimpleIdServer. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using Newtonsoft.Json.Linq; using SimpleIdServer.Scim.Builder; using SimpleIdServer.Scim.Domain; using SimpleIdServer.Scim.DTOs; using System.Collections.Gen...
52.676471
204
0.587381
[ "Apache-2.0" ]
gengle/SimpleIdServer
tests/SimpleIdServer.Scim.Tests/SCIMRepresentationPatchFixture.cs
3,584
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.PlayerLoop; public class DamageRegistration : MonoBehaviour { public bool colliding; private CountDown reset = new CountDown(0.5f); void Update() { if (colliding) reset.Start(Reset);...
21.285714
107
0.600671
[ "MIT" ]
TimvHal/Minor-Restless-Shadows-mirror
Assets/Scripts/Player/DamageRegistration.cs
896
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...
40.815789
471
0.686654
[ "ECL-2.0", "Apache-2.0" ]
pjbizon/pulumi-gcp
sdk/dotnet/Storage/Inputs/TransferJobTransferSpecAwsS3DataSourceGetArgs.cs
1,551
C#
#pragma warning disable 1591 // ------------------------------------------------------------------------------ // <autogenerated> // This code was generated by a tool. // Mono Runtime Version: 4.0.30319.17020 // // Changes to this file may cause incorrect behavior and will be lost if // the code ...
18.403846
104
0.591432
[ "MIT" ]
06needhamt/MonoGame
IDE/MonoDevelop/MonoDevelop.MonoGame.Android/templates/Android/Resource.cs
1,914
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110 { using Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PowerShell; /// <summary>A2A cloud creation input.</summary> [System.ComponentModel.TypeConverter(typeof(A2AContainerCreationInputTypeConverter))] public partial clas...
63.145038
385
0.692819
[ "MIT" ]
3quanfeng/azure-powershell
src/Migrate/generated/api/Models/Api20180110/A2AContainerCreationInput.PowerShell.cs
8,142
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Le informazioni generali relative a un assembly sono controllate dal seguente // set di attributi. Modificare i valori di questi attributi per modificare le informazioni // associate a un assembly. [assembly: Ass...
41.405405
127
0.760444
[ "MIT" ]
umbertocilia/MSC_refactoring_interview
UnitTest/UnitTest/Properties/AssemblyInfo.cs
1,538
C#
using Android.Content; using Android.Views; using Android.Widget; using Xamarin.Forms; using Xamarin.Forms.Material.Android; using Xamarin.Forms.Platform.Android; using AView = Android.Views.View; namespace Xamarin.Forms.Material.Android { public class MaterialDatePickerRenderer : DatePickerRendererBase<MaterialPic...
33.04
113
0.809322
[ "MIT" ]
AlleSchonWeg/Xamarin.Forms
Xamarin.Forms.Material.Android/MaterialDatePickerRenderer.cs
1,652
C#
using System.Collections.Generic; using Godot; using MTW7DRL2021.scenes.components; using MTW7DRL2021.scenes.entities; namespace MTW7DRL2021.scenes { public class EncounterViewportContainer : Godot.ViewportContainer { private Texture moveNCursor = ResourceLoader.Load<Texture>("res://resources/cursors/move_n_24x2...
52.851852
128
0.647652
[ "MIT" ]
MoyTW/7DRL2021
scenes/EncounterViewportContainer.cs
7,135
C#
using LogParsers.Base.Parsers; using System.Collections.Generic; namespace LogParsers.Base { public interface IParserFactory { /// <summary> /// Create an instance of the correct parser type for a given log file. /// </summary> /// <param name="fileName">The logfile to be parsed...
37.542857
90
0.61796
[ "MIT" ]
bermetj/Logshark
LogParsers.Base/IParserFactory.cs
1,314
C#
using Dfc.DiscoverSkillsAndCareers.AssessmentFunctionApp.Services; using Dfc.DiscoverSkillsAndCareers.Models; using System; using System.Collections.Generic; using Xunit; using System.Linq; using Dfc.DiscoverSkillsAndCareers.Repositories; using Microsoft.Extensions.Logging; using NSubstitute; using System.Threading.Ta...
57.987234
265
0.521281
[ "MIT" ]
Muthuramana/dfc-discoverskillsandcareers
src/Dfc.DiscoverSkillsAndCareers.UnitTests/AssessmentCalculationServiceTests.cs
54,514
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Konsole { public interface IWrite { /// <summary> /// writes out to the console using the requested color, resetting the color back to the console afterwards. /...
33.913043
116
0.669231
[ "Apache-2.0" ]
avsnarayan/progress-bar
Goblinfactory.ProgressBar/Konsole/IWrite.cs
782
C#
using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.IO; namespace Matr.Utilities.Test.Attributes.UnitTests { [TestClass] public class JsonTestMethodAttributeTests { public class WeatherForecast { public DateTime Date { get; set;...
28.971429
109
0.630178
[ "MIT" ]
MatrTech/MatrTech.TestUtilities
tests/Utilities.Test.MSTest.UnitTests/JsonTestMethodAttributeTests.cs
1,014
C#
/* Program : WSPBuilderCustomActions * Created by: Tom Clarkson * Date : 2007 * * The WSPBuilder comes under GNU GENERAL PUBLIC LICENSE (GPL). * * Modified by Carsten Keutmann * Date : 2009 */ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing...
27.64557
189
0.580128
[ "MIT" ]
keutmann/wspbuilder
WSPTools/App/WSPBuilderTemplates/Framework/Forms/FeatureSettingsForm.cs
2,184
C#
namespace Gift4U.BlazorApp.Data { public enum RequestStateEnum { Pending, RequestApproved, RequestDenied, RequestStarted, Completed } }
16.166667
32
0.57732
[ "MIT" ]
Gukaratsa/Gift4U
Gift4U.BlazorApp/Data/RequestStateEnum.cs
196
C#
// ------------------------------------------------------------------------------ // <copyright file="Campaign.cs" company="Drake53"> // Licensed under the MIT license. // See the LICENSE file in the project root for more information. // </copyright> // -----------------------------------------------------------------...
48.817797
162
0.643781
[ "MIT" ]
YakaryBovine/War3Net
src/War3Net.Build.Core/Campaign.cs
11,523
C#
using AutoMapper; namespace DAL.APP.EF.Mappers { public class RestaurantSubscriptionMapper : BaseMapper<DAL.App.DTO.OrderModels.RestaurantSubscription, Domain.OrderModels.RestaurantSubscription> { public RestaurantSubscriptionMapper(IMapper mapper) : base(mapper) { } } }
28.090909
149
0.731392
[ "MIT" ]
Flexplicit/Restofy
AspSolutionBackend/DAL.App.EF/Mappers/RestaurantSubscriptionMapper.cs
311
C#
using System; using UnityEngine; public class ElementEmitter : SimComponent { [SerializeField] public ElementConverter.OutputElement outputElement; [SerializeField] public float emissionFrequency = 1f; [SerializeField] public byte emitRange = 1; [SerializeField] public float maxPressure = 1f; private Guid...
35.776923
244
0.783917
[ "MIT" ]
undancer/oni-data
Managed/main/ElementEmitter.cs
4,651
C#
namespace Switchvox.Extensions.Phones.Analog { class Add { } }
10.857143
45
0.631579
[ "MIT" ]
bfranklin825/SwitchvoxAPI
SwitchvoxAPI/_Unimplemented/extensions/Phones/Analog/Add.cs
78
C#
namespace Basic.Azure.Storage.Communications.BlobService { public class BlobCopyProgress { public int BytesCopied { get; protected set; } public int BytesTotal { get; protected set; } public double PercentComplete { get { return (double)BytesCopied/BytesTotal; } } public BlobC...
29.25
88
0.643162
[ "BSD-3-Clause" ]
tarwn/BasicAzureStorageSDK
Basic.Azure.Storage/Communications/BlobService/BlobCopyProgress.cs
470
C#
namespace PointInRectangle { using System; using System.Linq; public class Program { public static void Main(string[] args) { int[] coordinates = Console.ReadLine() .Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) .Select(int.P...
31.204545
80
0.520757
[ "MIT" ]
GeorgenaGeorgieva/OOP-CSharp
01. Working with Abstraction Lab/2. Point in Rectangle/Program.cs
1,373
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
35.603448
153
0.588378
[ "MIT" ]
DamienTehDemon/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/IWorkbookFunctionsRank_AvgRequest.cs
2,065
C#
using System.Web.Http; namespace ALS.Glance.Api.Security.Filters { public class ApiAuthorizeAttribute : AuthorizeAttribute { private ApiAuthorizeAttribute(string[] roles) { Roles = string.Join(",", roles); } public ApiAuthorizeAttribute() : this(new string[0]) { } ...
35.045455
141
0.645914
[ "ECL-2.0", "Apache-2.0" ]
smeegoan/als-glance
ALS.Glance.Api/Security/Filters/ApiAuthorizeAttribute.cs
773
C#
namespace VSCC.Roll20.Macros.SpellLinks { using System; using System.Collections.Generic; using System.IO; using System.Windows.Documents; using VSCC.DataType; using VSCC.Roll20.Macros.Basic; public class MacroActionSLIsConcentration : MacroActionSpellLinkBase { private readonl...
36.553571
150
0.657059
[ "MIT" ]
skyloutyr/VSCC
VSCC/Roll20/Macros/SpellLinks/MacroActionSLIsConcentration.cs
2,049
C#
using CommandLine; using System; using System.Collections.Generic; using System.IO; using Unicorn.FontTools.Afm; namespace Unicorn.FontTools.Afm2Cs { class Program { static void Main(string[] args) { Parser.Default.ParseArguments<Options>(args) .WithParsed(o => ...
39.847826
147
0.53246
[ "MIT" ]
willsalt/unicorn
src/Unicorn.FontTools.Afm2Cs/Program.cs
1,835
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace KarteikartenDesktop { static class Program { /// <summary> /// Der Haupteinstiegspunkt für die Anwendung. /// </summary> [STAThread] st...
22.73913
65
0.625239
[ "MIT" ]
jbeezy24/KarteikartenDesktop
Program.cs
526
C#
using System.Globalization; using System.Text.Json; using System.Text.Json.Serialization; namespace WebApi.Utils; // Note: Current .NET 6 runtime cannot (de)serialize DateOnly. See https://github.com/dotnet/runtime/issues/53539 public class DateOnlyJsonConverter : JsonConverter<DateOnly> { private const string D...
29.085714
113
0.675835
[ "MIT" ]
BenjaminSchmitt/Doggos
src/WebApi/Utils/DateOnlyJsonConverter.cs
1,020
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "li...
39.153846
225
0.631876
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/Personalize/Generated/Model/Internal/MarshallTransformations/DefaultCategoricalHyperParameterRangeUnmarshaller.cs
4,072
C#
using System; using System.Collections.Generic; using System.Text; namespace CXuesong.Shims.VisualBasic.Devices { public static class ComputerExtensions { private static readonly object portsKey = new object(); /// <summary> /// Gets an object that provides a property and a method f...
22.916667
107
0.663636
[ "MIT" ]
CXuesong/Shims.VisualBasic
CXuesong.Shims.VisualBasic.Devices.Ports/ComputerExtensions.cs
552
C#
namespace HemaVideoLib.Models { public interface IUser { int? UserKey { get; } } }
13
30
0.576923
[ "MIT" ]
Grauenwolf/HemaVideoWiki
HemaVideo/HemaVideoLib/Models/IUser.cs
106
C#
 namespace Servya { public interface IHttpContext { IHttpRequest Request { get; } IHttpResponse Response { get; } } }
12.6
33
0.698413
[ "MIT" ]
returnString/Servya
Servya.Http/Listening/IHttpContext.cs
128
C#
using System; using UnityEngine; using System.Xml; using System.Collections.Generic; using GameDefine; using BlGame.Resource; using System.Linq; public class ReadHeroConfig { XmlDocument xmlDoc = null; public ReadHeroConfig(string xmlFilePath) { //TextAsset xmlfile = Resources.Load(xmlFilePath) as TextAsset;...
35.896679
108
0.635588
[ "Unlicense" ]
tsymiar/----
Client/Assets/Scripts/ConfigReader/ReadHeroConfig.cs
9,762
C#
namespace Eto.SkiaDraw.Demo { using Eto.Forms; public partial class MainForm : Form { public MainForm() { this.InitializeComponent(); this.Content = new TableLayout(new TableRow(new TableCell(new TestView(), true), new TableCell(new TestView2(), true))); } } }
17.5
123
0.696429
[ "MIT" ]
rafntor/Eto.SkiaDraw
Eto.SkiaDraw.Demo/MainForm.cs
280
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.Xml.Serialization { using System; /// <include file='doc\XmlTextAttribute.uex' path='do...
33.719298
132
0.568678
[ "MIT" ]
Bencargs/wcf
src/dotnet-svcutil/lib/src/FrameworkFork/Microsoft.Xml/Xml/Serialization/XmlTextAttribute.cs
1,922
C#