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
//------------------------------------------------------------------------------ // <copyright file="XmlSchemaAttribute.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // <owner current="true" primary="true">Microsoft</owner> ...
36.817308
187
0.541264
[ "MIT" ]
Abdalla-rabie/referencesource
System.Xml/System/Xml/Schema/XmlSchemaAttribute.cs
7,658
C#
/* // <copyright> // dotNetRDF is free and open source software licensed under the MIT License // ------------------------------------------------------------------------- // // Copyright (c) 2009-2021 dotNetRDF Project (http://dotnetrdf.org/) // // Permission is hereby granted, free of charge, to any person obtainin...
36.714286
169
0.529426
[ "MIT" ]
BME-MIT-IET/iet-hf2021-gitgud
Libraries/dotNetRDF/Query/Aggregates/XPath/StringJoin.cs
8,224
C#
using System; using Microsoft.AspNetCore.Mvc; namespace UTMAPP.Controllers { [ApiController] [Produces("application/json")] [Route("/")] public class MainController : ControllerBase { [HttpGet] public IActionResult GetApiInfo() { return Ok(new { ...
20.521739
48
0.512712
[ "MIT" ]
vitaliemiron/utm-equation
be/UTMAPP/Controllers/MainController.cs
472
C#
using Microsoft.Web.WebView2.Core; namespace WebView2.DOM { // https://github.com/chromium/chromium/blob/master/third_party/blink/renderer/core/svg/svg_mask_element.idl public partial class SVGMaskElement : SVGElement { protected internal SVGMaskElement(CoreWebView2 coreWebView, string referenceId) : base(co...
31.53125
109
0.773043
[ "MIT" ]
R2D221/WebView2.DOM
WebView2.DOM/SVG/Elements/SVGMaskElement.cs
1,011
C#
using Geek.Server.Logic.Bag; using Geek.Server.Proto; using NLog; using System; using System.Threading.Tasks; namespace Geek.Server.Logic.Role { public class RoleCompAgent : StateComponentAgent<RoleComp, RoleState> { private static readonly Logger LOGGER = LogManager.GetCurrentClassLogger(); ...
29.172185
85
0.472645
[ "MIT" ]
ErQing/GeekServer
GeekServer.Hotfix/Logic/Role/RoleCompAgent.cs
4,455
C#
using CyberCAT.Core.Classes.Mapping; namespace CyberCAT.Core.Classes.DumpedClasses { [RealName("gameIAttack")] public class GameIAttack : IScriptable { } }
17.3
45
0.716763
[ "MIT" ]
Deweh/CyberCAT
CyberCAT.Core/Classes/DumpedClasses/GameIAttack.cs
173
C#
namespace EasyBrush.Views { partial class QuestionnaireForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
40.208955
149
0.604677
[ "MIT" ]
yuzhengyang/EasyBrush
EasyBrush/EasyBrush/Views/QuestionnaireForm.Designer.cs
2,704
C#
using System.Collections.Generic; using DotNetify; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace UnitTests { [TestClass] public class BaseVMCRUDExtensionTest { public class TestObject { public int Id { get; set; } public string Name { get; set; } } p...
35.542373
94
0.59752
[ "Apache-2.0" ]
BajakiGabesz/dotNetify
UnitTests/BaseVMCRUDExtensionTest.cs
2,099
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class AppController : MonoBehaviour { public GameObject configPanel; public GameObject buttonsControl; void Start() { } public void CloseApp(){ Application.Quit()...
19.296296
136
0.696737
[ "MIT" ]
probots-ml/control-universal-ml
Assets/Scripts/AppController.cs
523
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...
39.684211
165
0.640584
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/Web/V20201201/Inputs/BackupScheduleArgs.cs
2,262
C#
using GitHub.Unity; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; namespace UnitTests { static class ProcessManagerExtensions { static NPath defaultGitPath = "git".ToNPath(); public static async Task<IEnumerable<GitBranch>> GetGitBra...
37.636364
130
0.617633
[ "MIT" ]
Frozenfire92/Unity
src/tests/UnitTests/ProcessManagerExtensions.cs
4,140
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> //---...
43.12
121
0.663265
[ "MIT" ]
090820-dotnet-uta/ChristopherKeller_p1
P1_WIP/P1/obj/Debug/netcoreapp3.1/P1.AssemblyInfo.cs
1,078
C#
using Microsoft.AspNetCore.Mvc; namespace MithrilShards.WebApi { [ApiController] [Produces("application/json")] [Route("[area]/[controller]/[action]")] public abstract class MithrilControllerBase : ControllerBase { } }
23.3
67
0.729614
[ "MIT" ]
MithrilMan/MithrilShards
src/MithrilShards.WebApi/MithrilControllerBase.cs
235
C#
using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using FlatMate.Module.Common.Extensions; using FlatMate.Module.Common.Tasks; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using prayzzz.Common.Attributes; namespace FlatMate.Module.Offers.Tasks { [Inj...
36.056338
103
0.634766
[ "MIT" ]
prayzzz/FlatMate-v2
src/FlatMate.Module.Offers/Tasks/DeleteOldProductsTask.cs
2,560
C#
using System.Data.Entity.ModelConfiguration; using SmartStore.Core.Domain.Catalog; namespace SmartStore.Data.Mapping.Catalog { public partial class CategoryMap : EntityTypeConfiguration<Category> { public CategoryMap() { this.ToTable("Category"); this.HasKey(c => c.Id); ...
35.037037
72
0.658562
[ "MIT" ]
jenmcquade/csharp-snippets
SmartStoreNET-3.x/src/Libraries/SmartStore.Data/Mapping/Catalog/CategoryMap.cs
946
C#
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
41.325
119
0.714459
[ "Apache-2.0" ]
googleapis/googleapis-gen
google/ads/googleads/v8/googleads-csharp/Google.Ads.GoogleAds.V8.Services.StandaloneSnippets/AdGroupBidModifierServiceClient.GetAdGroupBidModifierSnippet.g.cs
1,653
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="OxyRectTests.cs" company="OxyPlot"> // Copyright (c) 2014 OxyPlot contributors // </copyright> // <summary> // Provides unit tests for the <see cref="OxyRect" /> class and it'...
33.068966
132
0.452555
[ "MIT" ]
GeertvanHorrik/oxyplot
Source/OxyPlot.Tests/Foundation/OxyRectTests.cs
1,920
C#
using Adyen.CloudApiSerialization; using Newtonsoft.Json; using System.Runtime.Serialization; namespace Adyen.Model.Nexo { /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [Syst...
66.5
166
0.782581
[ "MIT" ]
Ganesh-Chavan/adyen-dotnet-api-library
Adyen/Model/Nexo/RepeatedResponseMessageBody.cs
1,598
C#
// Copyright (c) 2008-2018, Hazelcast, 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...
42.710106
130
0.594308
[ "Apache-2.0" ]
asimarslan/hazelcast-csharp-client
Hazelcast.Net/Hazelcast.Client.Spi/ClientListenerService.cs
16,061
C#
#pragma checksum "D:\c#\blazor\vtl-nvp\RadzenBlazorDemos\Pages\NumericRangeValidatorPage.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "6d43d3bde11a25b5d8a122bb4f4725154d5b3ad4" // <auto-generated/> #pragma warning disable 1591 namespace RadzenBlazorDemos.Pages { #line hidden using System; using System.Co...
45.90303
463
0.634473
[ "MIT" ]
longvutam/vtl-nvp
RadzenBlazorDemos/obj/Debug/net5.0/Razor/Pages/NumericRangeValidatorPage.razor.g.cs
15,148
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; using System.IO; namespace BackupRotator { public class Config { private const string CONFIG_FILE_NAME = "config.xml"; private stat...
24.988235
96
0.44209
[ "MIT" ]
ExempliG/BackupRotator
BackupRotator/Config.cs
2,126
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AsyncAwaitBestPractices; using AsyncAwaitBestPractices.MVVM; using Autofac; using GitTrends.Mobile.Common; using GitTrends.Mobile.Common.Constants; using GitTrends.Shared; using Shiny; using Xamarin.Communit...
41.370079
161
0.748953
[ "MIT" ]
Tiamat-Tech/GitTrends
GitTrends/Pages/RepositoryPage.cs
10,510
C#
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="AwePayingManaCostViewer.cs" company="nGratis"> // The MIT License (MIT) // // Copyright (c) 2014 - 2021 Cahya Ong // // Permission is hereby granted, free of charge, to any per...
37.531792
120
0.561066
[ "MIT" ]
cahyaong/ai.kvasir
Source/Kvasir.Client/Controls/AweManaCostViewer.cs
6,495
C#
using System.ComponentModel.DataAnnotations; using System.Web.Mvc; using YUTPLAT.Services.Interface; using YUTPLAT.ViewModel; namespace YUTPLAT.Validadores { public class ValidarIndicador : ValidationAttribute { public ValidarIndicador() { } protected override ValidationResult...
34
127
0.575163
[ "MIT" ]
ballesta1234/Y-U-T-P-L-A-T
YUTPLAT/Validadores/ValidarIndicador.cs
1,532
C#
using System; using System.Linq; using System.Reflection; using McMorph.Tools; using McMorph.Files; namespace McMorph.Recipes { public class RecipeParser { public static Recipe Parse(PathName filepath) { var lines = new Lines(filepath.ReadAllLines()); var recipe = new ...
35.398496
125
0.359176
[ "MIT" ]
knutjelitto/McMorph
McMorph.Morph/Recipes/Parsing/RecipeParser.cs
4,708
C#
using System; namespace Lenoard.AspNetCore.Identity.UnitTests { /// <summary> /// Entity type for a user's token /// </summary> public class TestUserToken : TestUserToken<string> { } /// <summary> /// Entity type for a user's token /// </summary> /// <typeparam name="TKey"...
28.945946
73
0.537815
[ "MIT" ]
edwardmeng/Lenoard.AspNetCore
test/Model/TestUserToken.cs
1,073
C#
using Microsoft.Extensions.FileProviders; using System; using System.Collections.Generic; using System.IO; using System.Text; namespace XWidget.SwaggerUI { internal class ManifestResourceFileInfo : IFileInfo { public Stream Stream { get; set; } public bool Exists => true; public long Leng...
24.142857
68
0.653846
[ "MIT" ]
XuPeiYao/XWidget.SwaggerUI
XWidget.SwaggerUI/ManifestResourceFileInfo.cs
678
C#
using HarmonyLib; using Multiplayer.Common; using RimWorld; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Reflection.Emit; using Verse; namespace Multiplayer.Client { [HarmonyPatch(typeof(Designator))] [HarmonyPatch(nameof(Designator.Finalize))] [...
33.421053
100
0.64162
[ "MIT" ]
Cameron-Friel/Multiplayer
Source/Client/Designators.cs
4,447
C#
using PKISharp.WACS.Plugins.Base.Options; using PKISharp.WACS.Plugins.Interfaces; using PKISharp.WACS.Services; using System; using System.Threading.Tasks; namespace PKISharp.WACS.Plugins.Base.Factories.Null { /// <summary> /// Null implementation /// </summary> internal class NullTargetFactory : ITar...
45.04
182
0.742451
[ "Apache-2.0" ]
AbstractionsAs/win-acme
src/main.lib/Plugins/Base/OptionsFactories/Null/NullTargetOptionsFactory.cs
1,128
C#
namespace DecTest { using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; [TestFixture] public class Recorder : Base { public class PrimitivesRecordable : Dec.IRecordable { public int intValue; public float floatVal...
34.131855
190
0.566203
[ "MIT", "Unlicense" ]
zorbathut/dec
test/unit/Recorder.cs
29,251
C#
// Copyright (c) 2020 Yann Crumeyrolle. All rights reserved. // Licensed under the MIT license. See LICENSE in the project root for license information. using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NETSTANDARD2_0 && !NET461 && !NETCOREAPP2_1 using System.Runtime.Intr...
50.648649
141
0.658751
[ "MIT" ]
MortalFlesh/Jwt
src/JsonWebToken/Cryptography/AesDecryptor.cs
3,750
C#
// // (C) Copyright 2003-2019 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // that both that copyright notice and the limited war...
51.0625
133
0.615235
[ "MIT" ]
xin1627/RevitSdkSamples
SDK/Samples/CurtainSystem/CS/UI/CurtainForm.Designer.cs
13,889
C#
// // Unit tests for NSBundle // // Authors: // Sebastien Pouliot <sebastien@xamarin.com> // // Copyright 2012-2013 Xamarin Inc. All rights reserved. // using System; using System.Net; #if XAMCORE_2_0 using Foundation; #if MONOMAC using AppKit; #else using UIKit; #endif using ObjCRuntime; #else using MonoTouch.Foundat...
31.461165
148
0.67721
[ "BSD-3-Clause" ]
1975781737/xamarin-macios
tests/monotouch-test/Foundation/BundleTest.cs
6,481
C#
/* Dieser Code Anteil wurde geschrieben von: Name: Kamga Vorname : Nicodeme */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using Syst...
41.259259
349
0.598145
[ "MIT" ]
iliassh1/hotel-management-system-desktop
Hotel_Management_WPF/Hotel_Management_WPF/Report2.xaml.cs
3,346
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. using System.Collections.Generic; using System.Globalization; using System.IO; using FluentAssertions; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Interfaces; using Microsoft.OpenApi.Models; using Microsoft.OpenA...
33.607692
84
0.593729
[ "MIT" ]
CenterEdge/OpenAPI.NET
test/Microsoft.OpenApi.Tests/Models/OpenApiTagTests.cs
13,109
C#
namespace CH3.LawOfDemeter { /// <summary> /// Data connection object /// </summary> public class Connection { /// <summary> /// Opens a connection to the data source. /// </summary> public void Open() { // ... implementation ... } } }
20
50
0.475
[ "MIT" ]
PacktPublishing/Clean-Code-in-C-
CH03/LawOfDemeter/Connection.cs
322
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SuperSocket.Common; using SuperSocket.SocketBase; using SuperSocket.SocketBase.Command; using SuperSocket.SocketBase.Protocol; namespace SuperSocket.QuickStart.CustomProtocol { class MyRequestFilter : RequestFil...
38.824324
163
0.581622
[ "BSD-3-Clause" ]
3rdandUrban-dev/Nuxleus
src/external/SuperSocket/mainline/QuickStart/CustomProtocol/MyRequestFilter.cs
2,875
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace generic_api_1.Controllers { [Produces("application/json")] [Route("api/[controller]")] [ApiController] public class Controller1 : ControllerBase { // G...
26.473684
73
0.61332
[ "MIT" ]
pablodiloreto/api-demos
netcore_2_2/generic_api_1/Controllers/Controller1.cs
1,008
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; namespace GSAKWrapper.UIControls.ActionBuilder { public class ActionIsOwner : ActionImplementationYesNo { public const string STR_NAM...
21.7
58
0.693548
[ "MIT" ]
GlobalcachingEU/GSAKWrapper
GSAKWrapper/UIControls/ActionBuilder/ActionIsOwner.cs
436
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 ...
39.575
132
0.780796
[ "Apache-2.0" ]
chys0404/aliyun-openapi-net-sdk
aliyun-net-sdk-dcdn/Dcdn/Transform/V20180115/DeleteDcdnSpecificStagingConfigResponseUnmarshaller.cs
1,583
C#
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("MatrixOperations")] [assembly: AssemblyDes...
37.805556
84
0.745775
[ "MIT" ]
rvats/TWIAlgorithms
MatrixOperations/Properties/AssemblyInfo.cs
1,364
C#
using System.Threading.Tasks; using Nest; using Tests.Framework; namespace Tests.Indices.Monitoring.IndicesSegments { public class SegmentsUrlTests { [U] public async Task Urls() { await UrlTester.GET($"/_segments") .Fluent(c => c.Segments(Nest.Indices.All)) .Request(c => c.Segments(new SegmentsReque...
26.964286
67
0.682119
[ "Apache-2.0" ]
lukapor/NEST
src/Tests/Indices/Monitoring/IndicesSegments/SegmentsUrlTests.cs
757
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using WebGAC.Core; namespace WebGACForVS { public partial class ConfigureWebGAC : Form { private readonly WebGAC.Core.WebGAC mGac; ...
33.941748
106
0.688501
[ "Unlicense" ]
paulj/webgac
WebGACForVS/ConfigureWebGAC.cs
3,496
C#
using System; using System.Net.Http; using System.Net.Http.Json; using System.Threading.Tasks; using FluentAssertions; using FluentUtils.MediatR.Pagination; using FluentUtils.MediatR.Samples; using Microsoft.AspNetCore.Mvc.Testing; using Xunit; namespace FluentUtils.MediatR.UnitTests; public class Mediato...
35.163793
128
0.648198
[ "MIT" ]
draekien/Draekien.FluentUtils
tests/FluentUtils.MediatR.UnitTests/MediatorApiControllerFacts.cs
4,079
C#
/* * Created on 25-Jan-2006 */ using Lucene.Net.Analysis; using Lucene.Net.Index; using Lucene.Net.Search; using Lucene.Net.Support; using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; namespace Lucene.Net.Queries.Mlt { /* * Licensed to the Apache Softwar...
33.289916
135
0.529976
[ "Apache-2.0" ]
DiogenesPolanco/lucenenet
src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs
7,925
C#
using AzureFromTheTrenches.Commanding.Abstractions; using FunctionMonkey.Tests.Integration.Common.Commands.Model; namespace FunctionMonkey.Tests.Integration.Common.Commands { public class HttpPostCommandWithSecurityProperty : ICommand<SimpleResponse> { [SecurityProperty] public int Value { get;...
29.230769
79
0.744737
[ "MIT" ]
AKomyshan/FunctionMonkey
Tests/FunctionMonkey.Tests.Integration.Common/Commands/HttpPostCommandWithSecurityProperty.cs
380
C#
using System; using System.Reflection; namespace LambdicSql.SQLite.MultiplatformCompatibe { static class ReflectionAdapter { internal static bool IsAssignableFromEx(this Type type, Type target) => type.GetTypeInfo().IsAssignableFrom(target.GetTypeInfo()); public static Type[] GetG...
26.933333
76
0.707921
[ "MIT" ]
Codeer-Software/LambdicSql.SQLite
Project/LambdicSql.SQLite.PCL/MultiplatformCompatibe/ReflectionAdapter.cs
406
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Ejercicio7 : MonoBehaviour { //7. Realizá un programa que al ingresar por Inspector tres números enteros num1, num2 y num3, muestre el valor del mayor de todos. //En caso de igualdad entre los tres imprimir "Los número...
33.452381
168
0.572242
[ "MIT" ]
NicoUmansky/GuiaDeProgramacion1
Assets/Scripts/Ejercicio7.cs
1,418
C#
using UnityEngine; using UnityEngine.UI; using System.Collections; using System.Collections.Generic; namespace Fungus { [CommandInfo("UI", "Set Interactable", "Set the interactable sate of selectable objects.")] public class SetInteractable : Command { [Tooltip("List of objects to...
20.333333
79
0.640369
[ "MIT" ]
FeniXb3/In-Progress
Assets/Fungus/UI/Scripts/Commands/SetInteractable.cs
1,954
C#
using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using FluentAssertions; using LiteDB.Engine; using Xunit; using LiteDB.Async; using LiteDB; namespace Tests.LiteDB.Async { public class Transactions_Tests { [Fact] public async Task Transaction_Write_Lock_...
34.068376
113
0.504014
[ "Apache-2.0" ]
devinSpitz/litedb-async
litedbasynctest/engine/Transaction_Tests.cs
7,972
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Web; namespace LogDataConversionServiceApplication.Logfiles { public class TextLog : ILogFile { private List<Char> Seperators = new List<Char> { '\t' }; public TextLog(string[] log) { this....
22.023256
124
0.682154
[ "MIT" ]
alex855k/WelfareProject
LogDataConversionServiceApplication/LogDataConversionServiceApplication/Logfiles/TextLog.cs
949
C#
using System; using System.Xml.Serialization; namespace Niue.Alipay.Domain { /// <summary> /// AlipayMarketingVoucherConfirmModel Data Structure. /// </summary> [Serializable] public class AlipayMarketingVoucherConfirmModel : AopObject { /// <summary> /// 用于决定在用户确认领券后是否重定向。可枚举:...
26.612245
71
0.559049
[ "MIT" ]
P79N6A/abp-ant-design-pro-vue
Niue.Alipay/Domain/AlipayMarketingVoucherConfirmModel.cs
1,556
C#
using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata; namespace RestaurantReviews.DataAccess.Model { public partial class RestaurantReviewsDbContext : DbContext { public RestaurantReviewsDbContext() { } public RestaurantReviewsDbConte...
28.851852
95
0.550706
[ "MIT" ]
2002-feb24-net/nick-project1
RestaurantReviews.DataAccess/Model/RestaurantReviewsDbContext.cs
1,560
C#
// <auto-generated/> #pragma warning disable 1591 #pragma warning disable 0414 #pragma warning disable 0649 #pragma warning disable 0169 namespace Authentication.Pages.DepotUI { #line hidden using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using M...
28.557823
123
0.754645
[ "MIT" ]
CatalinCaldararu/Blazor-Real-Estate-Project-Management
obj/Release/net5.0/RazorDeclaration/Pages/DepotUI/DeleteDepot.razor.g.cs
4,198
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("Zoo...
37.888889
84
0.753666
[ "MIT" ]
vetuha/ZooAnimals
Zoo Animals Client/Zoo Animals Client/Properties/AssemblyInfo.cs
1,367
C#
// Instance generated by TankLibHelper.InstanceBuilder // ReSharper disable All namespace TankLib.STU.Types { [STUAttribute(0x29D0D734)] public class STU_29D0D734 : STUUXGeometry { } }
22
54
0.747475
[ "MIT" ]
Mike111177/OWLib
TankLib/STU/Types/STU_29D0D734.cs
198
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace ProtocolGateway.Host.Common { using System; using System.Diagnostics.Contracts; using System.Net; using System.Security.Cryptography.X509Certi...
49.259912
185
0.630299
[ "MIT" ]
GinterP/azure-iot-protocol-gateway
host/ProtocolGateway.Host.Common/Bootstrapper.cs
11,182
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Azure.Core.Tests; using Azure.Messaging.EventHubs.Consumer; using Azure.Messaging.EventHubs.Dia...
46.881944
205
0.625907
[ "MIT" ]
ctstone/azure-sdk-for-net
sdk/eventhub/Azure.Messaging.EventHubs.Processor/tests/Diagnostics/DiagnosticsTests.cs
13,504
C#
using Newtonsoft.Json; namespace BetfairNG.Data { public class AccountFundsResponse { [JsonProperty(PropertyName = "availableToBetBalance")] public double AvailableToBetBalance { get; set; } [JsonProperty(PropertyName = "discountRate")] public double DiscountRate { get; set; }...
30.08
62
0.656915
[ "MIT" ]
k-s-s/betfairng
Data/AccountFundsResponse.cs
754
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _04.Count_Symbols { class Program { static void Main(string[] args) { string text = Console.ReadLine(); SortedDictionary<char, int> result = new...
24.294118
83
0.490315
[ "MIT" ]
stoianov00/C-Advanced
C# Advanced/02.Sets and Dictionaries/04.Count Symbols/Count Symbols.cs
828
C#
using System; using System.Collections; using System.Data; using NUnit.Framework; using g = CodeGenerator; namespace CodeGeneratorTest { [TestFixture] public class SqlDatabaseLoaderTest : BaseTest { [Test] public void TestLoadDatabase() { g.Sql.Database db = dbLoader.Dat...
38.100358
114
0.56698
[ "MIT" ]
ic4f/codegenerator
CodeGeneratorTest/SqlDatabaseLoaderTest.cs
10,630
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.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Text; using Silk.NET.Core; using Silk.NET.Core.Native; using Silk.NET.Core.At...
36.98893
114
0.573125
[ "MIT" ]
Zellcore/Silk.NET
src/Vulkan/Silk.NET.Vulkan/Video/Structs/StdVideoEncodeH265SliceHeaderFlags.gen.cs
10,024
C#
using Microsoft.Xna.Framework.Content.Pipeline; using MonoGame.Extended.Content.Pipeline.Json; namespace MonoGame.Extended.Content.Pipeline.SpriteFactory { [ContentProcessor(DisplayName = "Sprite Factory Processor - MonoGame.Extended")] public class SpriteFactoryContentProcessor : JsonContentProcessor { ...
35.866667
143
0.760223
[ "MIT" ]
Apostolique/MonoGame.Extended
src/dotnet/MonoGame.Extended.Content.Pipeline/SpriteFactory/SpriteFactoryContentProcessor.cs
540
C#
using System; using System.Collections.Generic; using System.IO; using System.Text.Json; using System.Threading.Tasks; using SmartTaskbar.Core.Helpers; namespace SmartTaskbar.Core.Settings { public static class SettingsHelper { private static readonly string SettingPath = Path.Combine(Envi...
39.6
115
0.588215
[ "MIT" ]
nonomal/SmartTaskbar
SmartTaskbar.Core/Settings/SettingsHelper.cs
2,972
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> //--...
37.363636
195
0.56187
[ "MIT" ]
JanWichelmann/ctf4e
src/Ctf4e.Server/Resources/Views/AdminUsers.Edit.Designer.cs
5,756
C#
#region Using directives using SimpleFramework.Xml; using System; #endregion namespace SimpleFramework.Xml.Core { public class NamespaceDefaultTest : ValidationTestCase { private const String SOURCE = "<a xmlns:x='http://domain/x' xmlns='http://domain/z'>\n"+ " <y:b xmlns:y='http://domain/y'>\n"...
40.870968
85
0.571429
[ "Apache-2.0" ]
AMCON-GmbH/simplexml
port/src/main/Xml/Core/NamespaceDefaultTest.cs
2,534
C#
using System; using System.Linq; using Microsoft.EntityFrameworkCore; using DatabaseFirstLINQ.Models; using System.Collections.Generic; namespace DatabaseFirstLINQ { class Problems { private ECommerceContext _context; public Problems() { _context = new ECommerceContext(); ...
40.008902
189
0.568716
[ "MIT" ]
EbonyRiddick/LINQ-Ecommerce-Project
DatabaseFirstLINQ/Problems.cs
13,485
C#
 namespace Raiding.Models { public class Paladin : BaseHero { private const int POWER = 100; public Paladin(string name) : base(name) { this.Power = POWER; } public override string CastAbility() { return $"{this.GetType().Name}...
21.055556
82
0.511873
[ "MIT" ]
tonchevaAleksandra/C-Sharp-OOP
Polymorphism/Raiding/Models/Paladin.cs
381
C#
using NWheels.Composition.Model; using NWheels.Composition.Model.Impl; using NWheels.Composition.Model.Impl.Metadata; using NWheels.DevOps.Model.Impl.Parsers; namespace NWheels.DevOps.Model { [ModelParser(typeof(EnvironmentParser))] public abstract class AnyEnvironment : ICanInclude<AnyDeployment>, ICanInclude...
27.333333
110
0.668022
[ "MIT" ]
nwheels-io/NWheels
source/NWheels.DevOps.Model/Environment.cs
738
C#
using System; using System.Collections.Generic; #nullable disable namespace Sopra.Lab.App4.ConsoleApp4.Models { public partial class Orders_Qry { public int OrderID { get; set; } public string CustomerID { get; set; } public int? EmployeeID { get; set; } public DateTime? Order...
34.03125
51
0.605142
[ "Unlicense" ]
vPlata98/Labs
Sopra.Lab.App4.ConsoleApp4/Models/Orders_Qry.cs
1,091
C#
using System.Reactive; using System.Reactive.Subjects; using JetBrains.Annotations; namespace Sholo.HomeAssistant.Mqtt.Entities.DeviceTrigger { [PublicAPI] public interface IDeviceTrigger : IEntity { ISubject<Unit> TriggerSubject { get; } void Trigger(); } }
20.857143
57
0.712329
[ "MIT" ]
scottt732/Sholo.HomeAssistant
Source/Sholo.HomeAssistant.Mqtt/Entities/DeviceTrigger/IDeviceTrigger.cs
292
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; /// <summary> /// System.MathF.Min(System.Single, System.Single) /// </summary> public class MathFMin8...
29.441176
125
0.541459
[ "MIT" ]
AaronRobinsonMSFT/coreclr
tests/src/CoreMangLib/cti/system/mathf/mathfmin.cs
3,003
C#
// nVLC // // Author: Roman Ginzburg // // nVLC is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // nVL...
29.895238
122
0.546671
[ "MIT" ]
drazenzadravec/projects
Media/Player/Nequeo.Media.Vlc/Nequeo.Media.Vlc/Media/MediaFromFile.cs
3,141
C#
using System; namespace R5T.D0101.T001 { /// <summary> /// IProjectRepositoryFileContext definition. /// </summary> public static class Documentation { } }
15.083333
49
0.635359
[ "MIT" ]
SafetyCone/R5T.D0101
source/R5T.D0101.I001.T001/Code/Documentation.cs
181
C#
/** * Copyright 2013 Canada Health Infoway, 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...
32.497942
178
0.690769
[ "ECL-2.0", "Apache-2.0" ]
CanadaHealthInfoway/message-builder-dotnet
message-builder-core/Main/Ca/Infoway/Messagebuilder/Marshalling/HL7/IiValidationUtils.cs
7,897
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...
45.088028
305
0.617025
[ "Apache-2.0" ]
polivbr/pulumi-azure-native
sdk/dotnet/TimeSeriesInsights/EventHubEventSource.cs
12,805
C#
using System; using Xunit; namespace CreditCardApplications.Tests { public class CreditCardApplicationEvaluatorShould { [Fact] public void AcceptHighIncomeApplications() { var sut = new CreditCardApplicationEvaluator(null); var application = new CreditCardApplic...
27.542857
88
0.665975
[ "MIT" ]
svetlimladenov/WorkDemos
UnitTests/02/demos/after/03NewDependency/CreditCardApplications.Tests/CreditCardApplicationEvaluatorShould.cs
964
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq.Expressions; using AutoMapper.Configuration; using AutoMapper.Mappers.Internal; namespace AutoMapper.Mappers { using static Expression; using static CollectionMapperExpressionFactory; public class Enumera...
46.766667
228
0.682823
[ "MIT" ]
FeiYanLeung/AutoMapper
src/AutoMapper/Mappers/EnumerableMapper.cs
1,403
C#
namespace CodeFragments; public class FileChangeDemo { public static void Exection() { string path = @"c:/"; // Create a new FileSystemWatcher and set its properties. FileSystemWatcher watcher = new FileSystemWatcher(); watcher.Path = path; /* Watch for changes in LastAc...
36.093023
81
0.654639
[ "Apache-2.0" ]
futugyou/CodeFragments
CodeFragments/FileChangeDemo.cs
1,552
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Room : MonoBehaviour { public int Width; public int Height; public int X; public int Y; private bool updatedDoors = false; public bool cleared = false; public Room(int x, int y) { X = x;...
23.853659
79
0.464724
[ "Apache-2.0" ]
tcarausu/Game-Project---6th-Semester
Assets/Scripts/DungeonGenerator/Room.cs
3,912
C#
using System.Collections.Generic; using Content.Server.Atmos; using Content.Server.Body.Systems; using Content.Shared.Atmos; using Content.Shared.Chemistry.Components; using Robust.Shared.Analyzers; using Robust.Shared.GameObjects; using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.ViewVariables...
26.576923
56
0.756874
[ "MIT" ]
Alainx277/space-station-14
Content.Server/Body/Components/LungComponent.cs
693
C#
using System.Collections.Generic; using NSubstitute; using NUnit.Framework; using Regseed.Common.Builder; using Regseed.Common.Random; using Regseed.Common.Ranges; using Regseed.Expressions; namespace Regseed.Test.Expressions { [TestFixture] internal class UnionExpressionTest : UnionExpression { pr...
36.879195
156
0.630755
[ "Apache-2.0" ]
JanZsch/RegSeed
src/Regseed.Test/Expressions/UnionExpressionTest.cs
5,495
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...
33.071429
120
0.606715
[ "Apache-2.0" ]
NGL321/aws-sdk-net
sdk/src/Services/S3Control/Generated/Model/GetAccessPointResponse.cs
5,093
C#
using UnityEngine; using TMPro; using NonStandard.Ui; using NonStandard.Data.Parse; using UnityEngine.UI; using System.Collections.Generic; using System; using System.Reflection; using NonStandard.Data; using NonStandard.Utility.UnityEditor; using NonStandard.Extension; using NonStandard.Process; namespace NonStandar...
41.468944
138
0.710327
[ "Unlicense" ]
mvaganov/NonStandardDataSheet
Scripts/NonStandardUnity/DataSheet/ColumnHeaderEditor.cs
13,355
C#
 using WASApiBassNet.Components.AudioCapture; using WPFUtilities.ComponentModel; namespace WindowsAudioSession.UI.FFT { /// <summary> /// fft view model /// </summary> public interface IFFTViewModel : IModelBase, IValidableModel, IAudioPlugin { /// <summary> /// bar count ...
19.88
78
0.577465
[ "MIT" ]
franck-gaspoz/WindowsAudioSessionSample
WindowsAudioSession/UI/FFT/IFFTViewModel.cs
499
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.Security.Attestation.Models { public partial class TpmAttestationRequest : IUtf8JsonSerializable { void IUt...
24.259259
70
0.636641
[ "MIT" ]
0rland0Wats0n/azure-sdk-for-net
sdk/attestation/Azure.Security.Attestation/src/Generated/Models/TpmAttestationRequest.Serialization.cs
655
C#
/* Copyright 2018 [andriniaina](https://github.com/andriniaina/Farmhash.Sharp.HashObject/) 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 rig...
50.802817
460
0.604242
[ "Unlicense" ]
andriniaina/Farmhash.Sharp.HashObject
Farmhash.Sharp.HashObject/HashObject.cs
14,430
C#
using System; namespace SCHOTT.Core.Extensions { /// <summary> /// A class of double extensions. /// </summary> public static class DoubleExtensions { private const double DoubleTolerance = 0.001; /// <summary> /// Checks if a double is within a tolerance of an integer val...
39.23913
85
0.61662
[ "MIT" ]
SCHOTTNorthAmerica/SCHOTT.Core
SCHOTT/Core/Extensions/Numbers.cs
1,807
C#
/* Copyright 2019 Pitney Bowes Inc. Licensed under the MIT License(the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License in the README file or at https://opensource.org/licenses/MIT Unless required by applicable law or agreed to in writing, softwar...
44.444444
120
0.70625
[ "MIT-0", "MIT" ]
PitneyBowes/pitneybowes-shipping-api-csharp
src/rules/Country.cs
1,602
C#
// // Authors: // Rafael Mizrahi <rafim@mainsoft.com> // Erez Lotan <erezl@mainsoft.com> // Vladimir Krasnov <vladimirk@mainsoft.com> // // // Copyright (c) 2002-2005 Mainsoft Corporation. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated...
31.538012
86
0.724828
[ "Apache-2.0" ]
121468615/mono
mcs/class/System.Web/Test/mainsoft/MainsoftWebApp/System_Web_UI_WebControls/WebControl/WebControl_TableStyle_CellSpacing.aspx.cs
5,393
C#
namespace Titan.Assets { // TODO: this should be generated by the source generator, but it mess up the IDE coloring so I've disabled it. public enum AssetTypes { VertexShader, PixelShader, Texture, Model, Material, Atlas, Font, Count } ...
20.125
115
0.565217
[ "MIT" ]
Golle/Titan
src/Titan.Assets/AssetTypes.cs
322
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
33.961538
85
0.537939
[ "MIT" ]
VanHakobyan/ISTC_Coding_School
ISTC.FourthStage.Database/ISTC.FourthStage.Database.EF.DatabaseFirst2/LinkedinEducation.cs
883
C#
// Copyright (C) 2014 dot42 // // Original filename: Android.Location.cs // // 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 // // Unles...
42.480971
1,376
0.639819
[ "Apache-2.0" ]
Dot42Xna/master
Generated/v4.0/Android.Location.cs
129,482
C#
#if HE_SYSCORE && STEAMWORKS_NET && HE_STEAMCOMPLETE && !HE_STEAMFOUNDATION && !DISABLESTEAMWORKS using Steamworks; using UnityEngine.Events; namespace HeathenEngineering.SteamworksIntegration { [System.Serializable] public class AvailableBeaconLocationsUpdatedEvent : UnityEvent<AvailableBeaconLocationsUpdat...
33.8
105
0.813609
[ "MIT" ]
KD-Kevin/Age-of-War---Like-Game
Age Of War Game/Assets/Imported Assets/_Heathen Engineering/Assets/com.heathen.steamworkscomplete/Runtime/Events/AvailableBeaconLocationsUpdatedEvent.cs
340
C#
using System; using System.Threading.Tasks; using Windows.ApplicationModel.Core; using Windows.UI.ViewManagement; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace Template10.Services.WindowService { public class WindowHelper { private Window Main { get; set; } private Window Wi...
32.15
114
0.520995
[ "Apache-2.0" ]
ArtjomP/Template10
Template10 (Services)/WindowService/WindowHelper.cs
2,574
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("Vi...
40.5
84
0.759259
[ "Unlicense" ]
JackTrapper/Delphi-for-Visual-Studio
DelphiForVisualStudio/VisualStudio.Delphi.ConverterWizard.Test/Properties/AssemblyInfo.cs
1,461
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using Materia.Imaging; using Materia.Nodes.Helpers; using Materia.Nodes.Attributes; using Newtonsoft.Json; using Materia.Textures; using Materia.Imaging.GLProcessing; namespace M...
25.391667
87
0.498523
[ "MIT" ]
0xflotus/Materia
Materia/Nodes/Atomic/BlendNode.cs
6,096
C#
using Content.Client.UserInterface.Stylesheets; using Content.Client.Utility; using Content.Shared.GameObjects.Components.Atmos.GasTank; using Robust.Client.Graphics.Drawing; using Robust.Client.Interfaces.ResourceManagement; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; using Robust.C...
35.029661
105
0.507318
[ "MIT" ]
BananaFlambe/space-station-14
Content.Client/UserInterface/Atmos/GasTank/GasTankWindow.cs
8,269
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AdventureWorks.Dal.Adapter.v54.DatabaseSpecific; using AdventureWorks.Dal.Adapter.v54.TypedViewClasses; using AdventureWorks.Dal.Adapter.v54.HelperClasses; using AdventureWorks.Dal.Adapter.v54.Linq...
31.691176
146
0.727146
[ "MIT" ]
sanekpr/RawDataAccessBencher
RawBencher/Benchers/LLBLGenProNoChangeTrackingLinqPocoBencher.cs
2,157
C#
namespace TRuDI.TafAdapter.Interface { using System; using TRuDI.HanAdapter.Interface; /// <summary> /// Common interface used by all TAF adapters for the resulting data object. /// </summary> public interface ITafData { /// <summary> /// TAF to that the data b...
22.857143
81
0.50625
[ "Apache-2.0", "MIT" ]
flobecker/trudi-koala
src/TRuDI.TafAdapter.Interface/ITafData.cs
642
C#