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.IO; using SharpCompress.Common; namespace SharpCompress.IO { internal class ListeningStream : Stream { private long currentEntryTotalReadBytes; private IExtractionListener listener; public ListeningStream(IExtractionListener listener, Stream stream) { ...
24.209877
101
0.54156
[ "Apache-2.0" ]
3-1415926/mono
mcs/class/System.IO.Compression/SharpCompress/IO/ListeningStream.cs
1,963
C#
//----------------------------------------------------------------------------- // FILE: InternalDescribeDomainResponse.cs // CONTRIBUTOR: Jeff Lill // COPYRIGHT: Copyright (c) 2005-2021 by neonFORGE LLC. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use...
35.493333
118
0.636364
[ "Apache-2.0" ]
nforgeio/neonKUBE
Lib/Neon.Cadence/Internal/InternalDescribeDomainResponse.cs
2,664
C#
// [System.Serializable] // public class ByteConstantSO : ConstantSO<byte> { } // [System.Serializable] // public class ByteConstantReference : ConstantReference<ByteConstantSO, byte> // { // public ByteConstantReference( byte startValue = 0 ) : base( startValue ) { } // public static implicit operator by...
33.363636
81
0.702997
[ "MIT" ]
k10czar/K10-SOVars
ConstantSO/ByteConstantSO.cs
367
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
41.357143
153
0.625216
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Models/Generated/MailboxUsageQuotaStatusMailboxCounts.cs
3,474
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using Sander.DirLister.Core.Application.Writers; namespace Sander.DirLister.Core.Application { internal sealed class OutputFileWriter { private readonly Configuration _config...
28.77907
119
0.723232
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
SanderSade/DirLister
DirLister.Core/Application/OutputFileWriter.cs
2,477
C#
//#define COSMOSDEBUG using System; using System.Collections.Generic; using Cosmos.HAL.BlockDevice; using Cosmos.System.FileSystem.FAT; using Cosmos.System.FileSystem.ISO9660; using Cosmos.System.FileSystem.VFS; namespace Cosmos.System.FileSystem; public class Disk { private readonly FileSystem[] MountedPartiti...
32.538217
165
0.538612
[ "BSD-3-Clause" ]
Kiirx/Cosmos
source/Cosmos.System2/FileSystem/Disk.cs
10,219
C#
/* * Copyright 2018 JDCLOUD.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 required by applicable law or agreed to in...
27.926829
115
0.735371
[ "Apache-2.0" ]
jdcloud-api/jdcloud-sdk-net
sdk/src/Service/Ipanti/Apis/ModifyBlackListRuleOfForwardRuleResponse.cs
1,169
C#
public class Rectangle { public Rectangle(string id = default(string), double width = 0, double height = 0, double left = 0, double top = 0) { this.Id = id; this.Width = width; this.Height = height; this.Left = left; this.Top = to...
45.823529
119
0.377835
[ "MIT" ]
spzvtbg/03-Fundamentals
02 OOP basics/01.Defining Classes/09. RectangleIntersection/Rectangle.cs
2,339
C#
namespace GranularRecovery.Framework { public enum SmoAuthenticationMode { WindowsAuthentication = 1, SqlServerAuthentication = 2 }; }
18.222222
37
0.676829
[ "MIT" ]
aamshukov/miscellaneous
staging/Gr.Framework/Smo/SmoAuthenticationMode.cs
166
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace AspNetCore2_1.ExampleAngularWeb.Pages { [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None,...
26.5
88
0.709119
[ "MIT" ]
jakegough/HelloWorld.NetCore
Examples.AspNetCore/AspNetCore2_1.ExampleAngularWeb/AspNetCore2_1.ExampleAngularWeb/Pages/Error.cshtml.cs
636
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Android.App; // 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:...
36.857143
84
0.758915
[ "Apache-2.0" ]
DLozanoNavas/xamarin-forms-book-samples
Chapter16/BindingPathDemos/BindingPathDemos/BindingPathDemos.Droid/Properties/AssemblyInfo.cs
1,291
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("04...
38.351351
84
0.74771
[ "MIT" ]
EmilMitev/Telerik-Academy
CSharp - part 2/4.NumeralSystems/04.HexadecimalToDecimal/Properties/AssemblyInfo.cs
1,422
C#
// <auto-generated /> namespace Data.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] public sealed partial class Ajoutdun...
27.7
100
0.622142
[ "Apache-2.0" ]
NitriKx/M2DL-ACEE-TPs-CSharp
ASP.NET/TP-Web-Rechercher-Recette/TP-Web-Rechercher-Recette/Data/Migrations/201603110914281_Ajout d'une ligne JPA.Designer.cs
831
C#
using System; using System.ComponentModel.DataAnnotations; using Abp.Application.Services.Dto; using Abp.Authorization.Users; using Abp.AutoMapper; using DgERM.Authorization.Users; namespace DgERM.Users.Dto { [AutoMapFrom(typeof(User))] public class UserDto : EntityDto<long> { [Required] [S...
25.365854
57
0.649038
[ "MIT" ]
PowerDG/DgERM
aspnet-core/src/DgERM.Application/Users/Dto/UserDto.cs
1,040
C#
using System; using Abp.Dependency; using Abp.Timing; using Castle.Core.Logging; namespace CodeYu.AspNetBoilerplateDemo.Migrator { public class Log : ITransientDependency { public ILogger Logger { get; set; } public Log() { Logger = NullLogger.Instance; ...
22.565217
89
0.558767
[ "MIT" ]
codeyu/AspNetBoilerplateDemo
src/CodeYu.AspNetBoilerplateDemo.Migrator/Log.cs
519
C#
using System; using System.Linq; namespace Memento { class BoardPrinter { public void Print(string memo, Othello othello) { var width = othello.Board.GetLength(0); var height = othello.Board.GetLength(1); Console.WriteLine(memo); Console.WriteLine($"First: {GetColorString(othello.FirstColor)}, Next: ...
22.342105
112
0.640754
[ "MIT" ]
kakureusagi/DesignPattern
Memento/BoardPrinter.cs
853
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> //--...
40.335484
209
0.586212
[ "MIT" ]
SkillsFundingAgency/tl-results-and-certification
src/Sfa.Tl.ResultsAndCertification.Web/Content/PostResultsService/PrsNoAssessmentEntry.Designer.cs
6,254
C#
namespace Cake.Issues.Testing { using System; using Cake.Core.IO; /// <summary> /// Class for checking issues. /// </summary> public static class IssueChecker { /// <summary> /// Checks values of an issue. /// </summary> /// <param name="issueToCheck">Issue ...
40.772059
147
0.529125
[ "MIT" ]
janniksam/Cake.Issues
src/Cake.Issues.Testing/IssueChecker.cs
11,092
C#
namespace Todo.Integrations.Serilog.Destructuring { using System.Collections.Generic; using global::Serilog.Core; using global::Serilog.Events; using Services.Security; using Services.TodoItemLifecycleManagement; /// <summary> /// Instructs Serilog how to log instances of <seealso cref="N...
31.5
106
0.636591
[ "MIT" ]
srvsk/aspnetcorepoc
Sources/Todo.Integrations.Serilog/Destructuring/NewTodoItemInfoDestructuringPolicy.cs
1,197
C#
using Microsoft.AspNetCore.SignalR; namespace Ordering.Application.HubConfiguration { public class OrderStatusHub : Hub { // For now we don't need any implementation since we are only sending notification about the changed status from the Commands with IHubContext to Client // Only one way co...
28.333333
160
0.738235
[ "MIT" ]
Ninchuga/AspNetMicroservicesShop
Src/Services/Ordering/Ordering.Application/HubConfiguration/OrderStatusHub.cs
342
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PlayerMove : MonoBehaviour { // == public fields == // refrence to game object enemy spawner public GameObject enemySpawner; // refrence to our gameover object public GameObject gameOv...
31.910714
84
0.602686
[ "MIT" ]
LuqmanFarooq/Shooter-Game-Project
Space Of War/Assets/--Scripts/InGame/PlayerMove.cs
3,576
C#
using BookIt.Data.Models.Contracts; using BookIt.Data.Models.Model; namespace BookIt.Data.Models { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; public class StaffUnit : Rateable, IDeletableEntity, IBookItEntity, ICommentable, IRateable { pri...
25.723404
95
0.610422
[ "MIT" ]
siderisltd/bookit
BookIT/BookIt.Api/Data/BookIt.Data.Models/StaffUnit.cs
1,211
C#
using DDCImprover.Core; using System; using System.IO; namespace DDCImprover.CLI { internal static class Program { private static int Main(string[] args) { if(args.Length == 1) { string configFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "c...
29.204082
102
0.491964
[ "MIT" ]
iminashi/DDCImprover
DDCImprover.CLI/Program.cs
1,433
C#
 using System; using System.Threading; using System.Threading.Tasks; using UtilsTests.Matrix; namespace Runner { class Program { private const string LogFolderName = "Log"; static void Main(string[] args) { RunCacheSimTests(); RunTimeTests(); } ...
26.842105
124
0.50719
[ "MIT" ]
Maroslav/DataStructures
4MatTrans/Runner/Program.cs
1,532
C#
using System.IO; using System.Text.RegularExpressions; using DotLiquid.Exceptions; namespace DotLiquid.FileSystems { /// <summary> /// This implements an abstract file system which retrieves template files named in a manner similar to Rails partials, /// ie. with the template name prefixed with an underscore. The ...
41.589286
155
0.697295
[ "Apache-2.0" ]
seanlinmt/tradelr
DotLiquid/FileSystems/LocalFileSystem.cs
2,331
C#
using System.Threading.Tasks; namespace Pulumi.Azure.Extensions.Tests { internal static class TestingExtensions { public static Task<T> GetValueAsync<T>(this Output<T> output) { var tcs = new TaskCompletionSource<T>(); output.Apply(v => { ...
24.791667
70
0.507563
[ "MIT" ]
StefH/Pulumi.Azure.Extensions
tests/Pulumi.Azure.Extensions.Tests/TestingExtensions.cs
597
C#
 namespace OpenCvSharp { #if LANG_JP /// <summary> /// cvCopyMakeBorderで指定する, 境界線のタイプ /// </summary> #else /// <summary> /// Type of the border to create around the copied source image rectangle /// </summary> #endif public enum BorderTypes : int { #if LANG_JP /// <summary> /// 境界はこの関数の最後...
23.666667
124
0.535798
[ "MIT" ]
Atharvap14/SecondaryVision
DepthMap/Assets/OpenCV+Unity/Assets/Scripts/OpenCvSharp/modules/imgproc/Enum/BorderTypes.cs
1,876
C#
using Amazon.JSII.Runtime.Deputy; #pragma warning disable CS0672,CS0809,CS1591 namespace aws { [JsiiInterface(nativeType: typeof(IWafv2WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath), fullyQualifiedName: "aws.Wafv2WebAclRuleStatementOrStatemen...
59.2
318
0.85473
[ "MIT" ]
scottenriquez/cdktf-alpha-csharp-testing
resources/.gen/aws/aws/IWafv2WebAclRuleStatementOrStatementStatementNotStatementStatementAndStatementStatementXssMatchStatementFieldToMatchUriPath.cs
1,184
C#
using System.Collections; using System.Collections.Generic; using Amazon.CDK; using Amazon.CDK.AWS.S3; using Amazon.CDK.AWS.ECS; using Amazon.CDK.AWS.EC2; using Amazon.CDK.AWS.ECR; using Amazon.CDK.AWS.IAM; using Amazon.CDK.AWS.Logs; using Amazon.CDK.AWS.EFS; using Amazon.CDK.AWS.StepFunctions; using Amazon.CDK.AWS.Ste...
52.56962
414
0.748615
[ "MIT" ]
msinno01/SARSCoV2HeronPipeline
heronPipeline/src/HeronPipeline/HeronPipelineStack.cs
4,153
C#
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AlibabaCloud.SDK.Ecs20140526.Models { public class CreateAutoSnapshotPolicyRequest : TeaModel { [NameInMap("regionId")] [Validation(Required=true)] ...
28.786885
73
0.626424
[ "Apache-2.0" ]
alibabacloud-sdk-swift/alibabacloud-sdk
ecs-20140526/csharp/core/Models/CreateAutoSnapshotPolicyRequest.cs
1,756
C#
/* * Copyright(c) 2016 - 2018 Puma Security, LLC (https://www.pumascan.com) * * Project Leader: Eric Johnson (eric.johnson@pumascan.com) * Lead Developer: Eric Mead (eric.mead@pumascan.com) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not ...
35.540984
143
0.695111
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
denmilu/puma-scan_code-realtime-scan
Rules/Analyzer/Core/IdentifierNameSyntaxAnalyzer.cs
2,168
C#
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2019 Datadog, Inc. using System; using System.Collections.Generic; using System.Linq; using System....
37.371212
268
0.590716
[ "Apache-2.0" ]
BartoszChrostowski/serilog-sinks-datadog-logs
src/Serilog.Sinks.Datadog.Logs/Sinks/Datadog/DatadogSink.cs
4,935
C#
// *** WARNING: this file was generated by crd2pulumi. *** // *** 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.Kubernetes.Types.O...
41.985915
662
0.649446
[ "Apache-2.0" ]
pulumi/pulumi-kubernetes-crds
operators/splunk/dotnet/Kubernetes/Crds/Operators/Splunk/Enterprise/V1Alpha2/Outputs/StandaloneSpecSparkRef.cs
2,981
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text.Internal; using System.Text.Unicode; using Xunit; namespace System.Text...
33.327751
223
0.543249
[ "MIT" ]
2m0nd/runtime
src/libraries/System.Text.Encodings.Web/tests/TextEncoderSettingsTests.cs
13,931
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 ...
55.132075
240
0.804244
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-rds/Rds/Transform/V20140815/DescribeDBInstanceIPArrayListResponseUnmarshaller.cs
2,922
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.261 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated>...
44.5625
181
0.600281
[ "Apache-2.0" ]
SNBnani/Xian
ImageServer/TestApp/ImageStreaming/Properties/Resources.Designer.cs
2,854
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("Ra...
37.638889
84
0.746863
[ "MIT" ]
DiaPasc/ragnarok
Ragnarok.DA/Properties/AssemblyInfo.cs
1,358
C#
using System; using Blitzy.Tests.Mocks; using log4net.Core; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Blitzy.Tests.Global { [TestClass] [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public class LogTests : TestBase { [TestMethod, TestCategory( "Global" )] public void LogHelperT...
29.347107
59
0.601521
[ "MIT" ]
TheSylence/Blitzy_old
Blitzy.Tests/Tests/LogTests.cs
7,104
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace LoRaWan.Tests.Unit.LoRaWanTests { using System; using LoRaTools.Utils; using Xunit; /// <summary> /// Class to test the conversion helper...
33.170732
101
0.597794
[ "MIT" ]
Mandur/iotedge-lorawan-starterk
Tests/Unit/LoRaWanTests/ConversionHelperTest.cs
1,360
C#
using DynamicVsStaticCode.WinPhone.Resources; namespace DynamicVsStaticCode.WinPhone { /// <summary> /// Provides access to string resources. /// </summary> public class LocalizedStrings { private static AppResources _localizedResources = new AppResources(); public AppResources Lo...
25.666667
86
0.706494
[ "Apache-2.0" ]
NoleHealth/xamarin-forms-book-preview-2
Chapter11/DynamicVsStaticCode/DynamicVsStaticCode/DynamicVsStaticCode.WinPhone/LocalizedStrings.cs
387
C#
using System; using UnityEngine; namespace Shooter.Scripts { [Serializable] public class AgentStats { [SerializeField] private int _maxHp = 20; [SerializeField] private float _shootDelay = 0.2f; [SerializeField] private int _defaultDamageAmount = 5; [SerializeField] private...
23.16
63
0.583765
[ "Apache-2.0" ]
Ragueel/ml-agents
Project/Assets/Shooter/Scripts/Stats/AgentStats.cs
1,160
C#
using System.Xml.Serialization; using static openTRANS.Common; namespace openTRANS { public partial class ProductId { [XmlElement("SUPPLIER_PID", Namespace = Common.Namespace.bmecat)] public string SupplierPid; [XmlElement("BUYER_PID", Namespace = Common.Namespace.bmecat)] pub...
27.681818
78
0.697865
[ "MIT" ]
DXSdata/openTRANS
openTRANS/SHARED/ProductId.cs
611
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....
30.875
85
0.504723
[ "Apache-2.0" ]
lequanganhkhuong/eProject-Sem3
eProject-Sem3/ZuLuCommerce/ZuLuCommerce/Models/Picture.cs
741
C#
using Autofac; using Dal; using WebApplication.Helpers; namespace WebApplication { public class DefaultModule : Module { protected override void Load(ContainerBuilder builder) { //builder.RegisterInstance<IUserStore>(new UserStoreLocal()).SingleInstance(); builder.Regist...
28.352941
106
0.688797
[ "MIT" ]
duongphuhiep/chatasp
src/webapp/DefaultModule.cs
482
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...
34.164557
104
0.645054
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/AWSHealth/Generated/Model/DescribeEventAggregatesResponse.cs
2,699
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("03...
38.459459
84
0.748419
[ "MIT" ]
George221b/SoftUni-Taks
C#Advanced/02.SetsAndDictionariesLab/03.CountSameValuesInArray/Properties/AssemblyInfo.cs
1,426
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...
34.839858
157
0.602758
[ "Apache-2.0" ]
NGL321/aws-sdk-net
sdk/src/Services/KinesisFirehose/Generated/Model/ExtendedS3DestinationDescription.cs
9,790
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 System.Reflection; using Contoso.GameNetCore.Builder; using Contoso.GameNetCore.Builder.Internal; using Contoso.GameNetCore.H...
38.163636
123
0.639828
[ "Apache-2.0" ]
bclnet/GameNetCore
src/Hosting/Hosting/test/ConfigureBuilderTests.cs
2,099
C#
using Newtonsoft.Json; namespace Akinator.Api.Net.Model.External { internal class NewGameParameters : IBaseParameters { [JsonProperty("identification")] internal Identification Identification { get; set; } [JsonProperty("step_information")] public Question StepInformation { ge...
25.923077
60
0.68546
[ "MIT" ]
Forevka/Akinator.Api.Net
Akinator.Api.Net/Model/External/NewGameParameters.cs
339
C#
// Copyright 2007-2011 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // 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...
32.55
89
0.650538
[ "Apache-2.0" ]
SeanKilleen/MassTransit
src/MassTransit/Exceptions/MassTransitException.cs
1,302
C#
using Castle.DynamicProxy; using TddXt.AnyExtensibility; using TddXt.AnyGenerators.AutoFixtureWrapper; using TddXt.AnyGenerators.Generic; using TddXt.TypeResolution; using TddXt.TypeResolution.CustomCollections; using TddXt.TypeResolution.FakeChainElements; namespace TddXt.AnyGenerators.Root.ImplementationDetails { ...
43.602273
114
0.755799
[ "MIT" ]
grzesiek-galezowski/any
src/netstandard2.0/AnyGenerators/Root/ImplementationDetails/AllGeneratorFactory.cs
3,839
C#
namespace BuddyApiClient.Projects.Models { internal static class StatusJsonConverter { public const string ActiveAsJson = "ACTIVE"; public const string ClosedAsJson = "CLOSED"; public static Status ConvertFrom(string? json) { return json switch { ...
28.107143
57
0.532402
[ "MIT" ]
logikfabrik/BuddyApiClient
src/BuddyApiClient/Projects/Models/StatusJsonConverter.cs
789
C#
// <auto-generated /> namespace GigHub.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] public sealed partial class Overri...
28.733333
111
0.640371
[ "Apache-2.0" ]
antcalatayud/GigHub
GigHub/Persistence/Migrations/201710271130209_OverrideConventionsGigGenres.Designer.cs
862
C#
using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using FreeSql.DataAnnotations; namespace Admin.Core.Common.BaseModel { /// <summary> /// 实体创建审计 /// </summary> public class EntityAdd<TKey> : Entity<TKey>, IEntityAdd<TKey> where TKey : struct { /// <su...
25.075
85
0.567298
[ "MIT" ]
DotNetExample/Admin.Core
Admin.Core.Common/BaseModel/EntityAdd.cs
1,057
C#
// ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ---------------------------------------...
32.287234
186
0.658979
[ "Apache-2.0" ]
JetBrains/space-dotnet-sdk
src/JetBrains.Space.Client/Generated/Dtos/BGStats.generated.cs
3,035
C#
using System; using System.Globalization; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin.Security; using ACMWeb.Models; namespace ACMWeb.Controllers { ...
35.843299
173
0.553037
[ "MIT" ]
Ali-HA/APMS
ACMWeb/Controllers/AccountController.cs
17,386
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("Int...
37.405405
84
0.746387
[ "MIT" ]
mattuylee/stormchat
stormchat-client-csharp/Interact/Properties/AssemblyInfo.cs
1,387
C#
using System; using System.Net; namespace webservice.Library.Exceptions { public class HttpException : Exception { public HttpStatusCode status; public HttpException(HttpStatusCode status, string message) : base(message) { this.status = status; } }...
17.944444
67
0.616099
[ "CC0-1.0" ]
brandonmpetty/Hydra
dotnetcore-webservice/webservice/Library/Exceptions/HttpException.cs
325
C#
using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.TagHelpers; using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Razor.TagHelpers; using Microsoft.Extensions.DependencyInjection; using Mozlite.Extensions.Groups; using System; using System.Collections.Generic; using System.Li...
37.340278
165
0.528362
[ "Apache-2.0" ]
Mozlite/Docs
src/Mozlite.Mvc/TagHelpers/DropdownListTagHelper.cs
5,725
C#
using System; public class GFG { public static int Fib(int n) { if (n <= 1) { return n; } else { return Fib(n - 1) + Fib(n - 2); } } public static void Main(string[] args) { int n = 9; Console.Write(Fib(n)); } }
12.285714
40
0.5
[ "MIT" ]
Abhi-4793/Ultimate-Logic
Fibonacci/fibonacci.cs
258
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.Linq; namespace Microsoft.VisualStudio.ProjectSystem.VS.Automation { internal static class VisualBasicNamespaceImportsListFactory { ...
31.888889
161
0.705575
[ "Apache-2.0" ]
333fred/roslyn-project-system
src/Microsoft.VisualStudio.ProjectSystem.VisualBasic.VS.UnitTests/Mocks/VisualBasicNamespaceImportsListFactory.cs
576
C#
using System; using Microsoft.Extensions.Logging; using Orleans.Runtime; namespace Orleans.ServiceBus { /// <summary> /// Orleans ServiceBus error codes /// </summary> internal enum OrleansServiceBusErrorCode { /// <summary> /// Start of orlean servicebus error codes /// </...
33.537037
137
0.652678
[ "MIT" ]
1007lu/orleans
src/Azure/Orleans.Streaming.EventHubs/OrleansServiceBusErrorCode.cs
1,813
C#
using NUnit.Framework; using SepaWriter.Utils; using System; using System.Collections.Generic; using System.IO; using System.Xml; namespace SepaWriter.Test { [TestFixture] public class SepaCreditTransferTest { private static readonly SepaIbanData Debtor = new SepaIbanData ...
48.508816
2,220
0.599958
[ "Apache-2.0" ]
openMCW/sepawriter
SepaWriter.Test/SepaCreditTransferTest.cs
19,260
C#
// ----------------------------------------------------------------------- // <copyright file="UserFunctionController.cs" company="OSharp开源团队"> // Copyright (c) 2014-2018 OSharp. All rights reserved. // </copyright> // <site>http://www.osharp.org</site> // <last-editor>郭明锋</last-editor> // <last-date>2018-06-...
37.628866
149
0.625479
[ "Apache-2.0" ]
chunjieyaya/osharp
src/OSharp.Hosting.Apis/Areas/Admin/Controllers/Auth/UserFunctionController.cs
3,748
C#
using System; using System.Windows.Forms; namespace TextToKeystrokes { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Ap...
21.6
65
0.574074
[ "MIT" ]
samuelwilliams/TextToKeystrokes
Program.cs
434
C#
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved. // 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 full license information. using System; using System.Com...
47.362832
191
0.628176
[ "MIT" ]
Noggog/ReactiveUI
src/ReactiveUI/ReactiveObject/ReactiveObject.cs
5,354
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. //...
31.666667
84
0.505263
[ "MIT" ]
houssems/boombox
MusikApp/users.cs
760
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; using System.Collections.Generic; using System.Collections.Immutable; using System.ComponentModel; us...
49.931472
335
0.633072
[ "MIT" ]
Evangelink/roslyn
src/Compilers/CSharp/Portable/Syntax/SyntaxFactory.cs
137,713
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(TMPro.TextMeshProUGUI))] public class DebugLabel : MonoBehaviour { [Header("Debug Label Settings")] [SerializeField] protected string label; private TMPro.TextMeshProUGUI text; private static L...
25.875
151
0.611916
[ "MIT" ]
Liam-Harrison/Battle-RPG-Demonstration
Assets/Scripts/Utilities/DebugLabel.cs
1,865
C#
// This is free and unencumbered software released into the public domain. // // Anyone is free to copy, modify, publish, use, compile, sell, or // distribute this software, either in source code form or as a compiled // binary, for any purpose, commercial or non-commercial, and by any // means. // // In jurisdictions...
38.633333
91
0.672994
[ "Unlicense" ]
ubiety/Ubiety.Scram.Core
src/Ubiety.Scram.Core/Attributes/ClientProofAttribute.cs
2,320
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Globalization; namespace BuildXL.ViewModel { /// <nodoc /> public class BuildSummaryPipDiagnostic { /// <nodoc /> ...
32.714286
108
0.542279
[ "MIT" ]
breidikl/BuildXL
Public/Src/Engine/ViewModel/BuildSummaryPipDiagnostic.cs
2,521
C#
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DocAsCode.MarkdownLite { using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; public ...
32.171875
102
0.565323
[ "MIT" ]
Algorithman/docfx
src/Microsoft.DocAsCode.MarkdownLite/Validators/MarkdownTokenTreeValidatorFactory.cs
1,998
C#
//Missão referente ao terceiro dia de jogo -> player ir até a cidade do leste, na casa do capitão e interagrir com ela using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Porta_Leste : MonoBehaviour { Vector3 Dist; public bool final3 = false; float pos...
33.231884
213
0.70519
[ "MIT" ]
heitor57/One-Week
Assets/Porta_Leste.cs
2,302
C#
/*---------------------------------------------------------------------------------- // Copyright 2019 Huawei Technologies Co.,Ltd. // 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 // ...
31.26087
87
0.51669
[ "ECL-2.0", "Apache-2.0" ]
he1a2s0/huaweicloud-sdk-dotnet-obs
Model/CorsConfiguration.cs
1,438
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.Core...
56.532143
260
0.636869
[ "MIT" ]
lubaozhen/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs
31,658
C#
using DevExtreme.AspNet.Data.Aggregation; using DevExtreme.AspNet.Data.Helpers; using DevExtreme.AspNet.Data.Types; using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace DevExtreme.AspNet.Data { partial class DataSourceLoadContext { readonly DataSourceLoad...
33.47351
146
0.568602
[ "MIT" ]
AmitN-Learner/DevExtreme.AspNet.Data
net/DevExtreme.AspNet.Data/DataSourceLoadContext.cs
10,111
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; /// <summary> /// Descrição resumida de Locais /// </summary> /// namespace falconDex.Models { public class Local { public int Id { get; set; } public String Nome { get; set; } public String Bloco { ...
18.357143
56
0.544747
[ "MIT" ]
brunoaugustosilva/falconDex
App_Code/Models/Local.cs
519
C#
#region License // Copyright (c) 2009 Sander van Rossen // // 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, copy, m...
30.393064
145
0.711868
[ "MIT" ]
Eresea/QuestCreator
Graph/Node.cs
5,260
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("QSimPlanner")] [assembly: AssemblyDescrip...
37.638889
84
0.741697
[ "MIT" ]
JetStream96/QSimPlanner
src/QSP/Properties/AssemblyInfo.cs
1,358
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // 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: Asse...
59.705882
368
0.789163
[ "Apache-2.0" ]
andyhopp/aws-sdk-net
sdk/src/Services/Route53RecoveryReadiness/Properties/AssemblyInfo.cs
3,045
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class lose : MonoBehaviour { private Rigidbody m_Rigidbody; private Transform m_Transform; // Use this for initialization void Start () { } // Update is called once per frame void Update () { //if() //...
19.25
41
0.672727
[ "MIT" ]
zhaoyiran924/Crazy_Football
congtre/lose.cs
387
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("AWSSDK.IoTJobsDataPlane")] [assembly: Asse...
47.75
245
0.750654
[ "Apache-2.0" ]
gbent/aws-sdk-net
sdk/code-analysis/ServiceAnalysis/IoTJobsDataPlane/Properties/AssemblyInfo.cs
1,528
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("12....
38.864865
84
0.75452
[ "MIT" ]
stanislaviv/Programming-Fundamentals-May-2017
06_Arrays/06. Arrays/12.Cnt_occurancies_larger_nrs_array/Properties/AssemblyInfo.cs
1,441
C#
using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Query; using Microsoft.EntityFrameworkCore.TestModels.Northwind; using Microsoft.EntityFrameworkCore.TestUtilities; using Pomelo.EntityFrameworkCore.MySql.Infrastructure; using Pomelo.EntityFramewor...
46.634921
208
0.638359
[ "MIT" ]
Artrilogic/Pomelo.EntityFrameworkCore.MySql
test/EFCore.MySql.FunctionalTests/Query/NorthwindIncludeQueryMySqlTest.cs
5,876
C#
using System.Text.RegularExpressions; using SmartFormat; using WDE.Common.Database; namespace WDE.Conditions.Exporter { public static class ConditionsSerializer { private static readonly Regex ConditionLineRegex = new( @"\(\s*(-?\d+),\s*(-?\d+),\s*(-?\d+),\s*(-?\d+),\s*(-?\d+),\s*(-?\d+),\...
43.066667
214
0.565789
[ "Unlicense" ]
Crypticaz/WoWDatabaseEditor
WDE.Conditions/Exporter/ConditionsSerializer.cs
2,586
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace StoreApi { public class Program { pu...
23
61
0.660535
[ "MIT" ]
cob3x85/NetCoreDev
WebApiStore/StoreApi/Program.cs
600
C#
using System; using System.Linq; using System.Threading.Tasks; using AutoMapper; using Sombra.Core; using Sombra.Core.Enums; using Sombra.Infrastructure.DAL; using Sombra.Messaging.Infrastructure; using Sombra.Messaging.Requests.Search; using Sombra.Messaging.Responses.Search; using Sombra.Messaging.Shared; using Somb...
32.567568
127
0.697095
[ "MIT" ]
markslingerland/Sombra
Sombra.SearchService/GetRandomCharitiesRequestHandler.cs
1,207
C#
using System; using System.Collections.Generic; using System.Text; namespace Core.Utilities.Results { public class SuccessResult:Result { public SuccessResult(string message) : base(true,message) { } public SuccessResult() : base(true) { } } }
15.45
65
0.608414
[ "MIT" ]
sdnrcvk/FinalProject
Core/Utilities/Results/SuccessResult.cs
311
C#
namespace Be.Vlaanderen.Basisregisters.Api.Exceptions { using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Versioning; using Microsoft.Ex...
45.977528
135
0.674242
[ "MIT" ]
CumpsD/api
src/Be.Vlaanderen.Basisregisters.Api/Exceptions/ProblemDetailsResponseProvider.cs
4,092
C#
namespace CarRentalSystem.Dealers.Data.Configurations { using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using Models; using static DataConstants.Dealers; using static CarRentalSystem.Data.DataConstants.Common; internal class DealerConfiguration : IE...
27.9
73
0.545699
[ "MIT" ]
Digid-GMAO/MyTested.AspNet.TV
src/Eventual Consistency Done Right/CarRentalSystem.Dealers/Data/Configurations/DealerConfiguration.cs
1,118
C#
using System; using System.Collections.Generic; using System.Text; namespace Command.Receiver { public sealed class CodeGroup : Group { public override void ExcuteOpeation() { Console.WriteLine("This is Code Group."); } public override void Rollback() { ...
19.45
53
0.59126
[ "Apache-2.0" ]
HadesKing/DesignPatterns
src/Behavioral Patterns/Command/Receiver/CodeGroup.cs
391
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; using System.IO; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.Co...
66.7812
1,332
0.631485
[ "Apache-2.0" ]
Maxprofs/roslyn
src/Compilers/CSharp/Test/Semantic/Semantics/QueryTests.cs
292,704
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace Telerik.UI.Xaml.Controls.Primitives { /// <summary> /// Represents a strongly-typed class that provides basic infrastructure for <see cref="RadControl"/> co...
26.763158
115
0.52409
[ "Apache-2.0" ]
ChristianGutman/UI-For-UWP
Controls/Primitives/Primitives.UWP/Common/Services/Commands/CommandServiceBase.cs
2,036
C#
using System; namespace Mes { class Program { static void Main(string[] args) { int mes = int.Parse(Console.ReadLine()); switch (mes) { case 1: Console.WriteLine("January"); break; case 2: Console.Writ...
24.982456
71
0.389747
[ "MIT" ]
jardelMoraes/Desafios-Bootcamps-DIO-Jardel-Moraes
C#/GFT Start #4 .NET/Mes/Program.cs
1,428
C#
// This file is part of Silk.NET. // // You may modify and distribute Silk.NET under the terms // of the MIT license. See the LICENSE file for details. using System; using Silk.NET.Core.Attributes; #pragma warning disable 1591 namespace Silk.NET.OpenGL { [NativeName("Name", "PointParameterNameARB")] public...
27.962963
64
0.690066
[ "MIT" ]
ThomasMiz/Silk.NET
src/OpenGL/Silk.NET.OpenGL/Enums/PointParameterNameARB.gen.cs
755
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
34.680412
91
0.534185
[ "Apache-2.0" ]
BryceSuchy/Hospital-Online-Scheduling-System
WebApplication1/hoss/Site1.Master.designer.cs
3,366
C#
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace Launchpad { public class LaunchpadSRenderer : IRenderer { private readonly MidiDevice _device; ...
35.349727
93
0.488638
[ "MIT" ]
RogueException/Launchpad.Net
src/Launchpad.Net/Renderers/LaunchpadSRenderer.cs
6,469
C#
namespace SqlPad.Oracle.ToolTips { public partial class ToolTipPartition { public ToolTipPartition(PartitionDetailsModelBase dataModel) { InitializeComponent(); DataContext = dataModel; } } }
16.076923
62
0.755981
[ "MIT" ]
Husqvik/SQLPad
SqlPad.Oracle/ToolTips/ToolTipPartition.xaml.cs
211
C#
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; namespace SSH.IO { abstract class HashWriter : PacketWriter { private static Dictionary<string, Type> types; protected HashAlgorithm algorithm; protected string name; ...
26.923077
119
0.527619
[ "MIT" ]
neoscrib/secureshell
SSH/IO/HashWriter.cs
2,102
C#
using BlazorBoilerplate.Infrastructure.Extensions; using BlazorBoilerplate.Infrastructure.Server.Models; using BlazorBoilerplate.Infrastructure.Storage.DataModels; using BlazorBoilerplate.Localization; using BlazorBoilerplate.Storage; using IdentityModel; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Ide...
42.157051
160
0.533795
[ "MIT" ]
mobinseven/Questionnaire
src/Server/BlazorBoilerplate.Server/Middleware/APIResponseRequestLoggingMiddleware.cs
13,155
C#